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
863 ac_subst_files='MCOMMON'
864 ac_precious_vars='build_alias
881 # Initialize some variables set by options.
883 ac_init_version=false
884 # The variables have the same names as the options, with
885 # dashes changed to underlines.
893 program_transform_name=s,x,x,
901 # Installation directory options.
902 # These are left unexpanded so users can "make install exec_prefix=/foo"
903 # and all the variables that are supposed to be based on exec_prefix
904 # by default will actually change.
905 # Use braces instead of parens because sh, perl, etc. also accept them.
906 # (The list follows the same order as the GNU Coding Standards.)
907 bindir='${exec_prefix}/bin'
908 sbindir='${exec_prefix}/sbin'
909 libexecdir='${exec_prefix}/libexec'
910 datarootdir='${prefix}/share'
911 datadir='${datarootdir}'
912 sysconfdir='${prefix}/etc'
913 sharedstatedir='${prefix}/com'
914 localstatedir='${prefix}/var'
915 includedir='${prefix}/include'
916 oldincludedir='/usr/include'
917 docdir='${datarootdir}/doc/${PACKAGE}'
918 infodir='${datarootdir}/info'
923 libdir='${exec_prefix}/lib'
924 localedir='${datarootdir}/locale'
925 mandir='${datarootdir}/man'
931 # If the previous option needs an argument, assign it.
932 if test -n "$ac_prev"; then
933 eval $ac_prev=\$ac_option
939 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
943 # Accept the important Cygnus configure options, so we can diagnose typos.
945 case $ac_dashdash$ac_option in
949 -bindir | --bindir | --bindi | --bind | --bin | --bi)
951 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
954 -build | --build | --buil | --bui | --bu)
955 ac_prev=build_alias ;;
956 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
957 build_alias=$ac_optarg ;;
959 -cache-file | --cache-file | --cache-fil | --cache-fi \
960 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
961 ac_prev=cache_file ;;
962 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
963 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
964 cache_file=$ac_optarg ;;
967 cache_file=config.cache ;;
969 -datadir | --datadir | --datadi | --datad)
971 -datadir=* | --datadir=* | --datadi=* | --datad=*)
972 datadir=$ac_optarg ;;
974 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
975 | --dataroo | --dataro | --datar)
976 ac_prev=datarootdir ;;
977 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
978 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
979 datarootdir=$ac_optarg ;;
981 -disable-* | --disable-*)
982 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
985 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
986 { (exit 1); exit 1; }; }
987 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
988 eval enable_$ac_feature=no ;;
990 -docdir | --docdir | --docdi | --doc | --do)
992 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
995 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
997 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000 -enable-* | --enable-*)
1001 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1002 # Reject names that are not valid shell variable names.
1003 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1004 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1005 { (exit 1); exit 1; }; }
1006 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1007 eval enable_$ac_feature=\$ac_optarg ;;
1009 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1010 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1011 | --exec | --exe | --ex)
1012 ac_prev=exec_prefix ;;
1013 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1014 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1015 | --exec=* | --exe=* | --ex=*)
1016 exec_prefix=$ac_optarg ;;
1018 -gas | --gas | --ga | --g)
1019 # Obsolete; use --with-gas.
1022 -help | --help | --hel | --he | -h)
1023 ac_init_help=long ;;
1024 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1025 ac_init_help=recursive ;;
1026 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1027 ac_init_help=short ;;
1029 -host | --host | --hos | --ho)
1030 ac_prev=host_alias ;;
1031 -host=* | --host=* | --hos=* | --ho=*)
1032 host_alias=$ac_optarg ;;
1034 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1036 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1038 htmldir=$ac_optarg ;;
1040 -includedir | --includedir | --includedi | --included | --include \
1041 | --includ | --inclu | --incl | --inc)
1042 ac_prev=includedir ;;
1043 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1044 | --includ=* | --inclu=* | --incl=* | --inc=*)
1045 includedir=$ac_optarg ;;
1047 -infodir | --infodir | --infodi | --infod | --info | --inf)
1049 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1050 infodir=$ac_optarg ;;
1052 -libdir | --libdir | --libdi | --libd)
1054 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1055 libdir=$ac_optarg ;;
1057 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1058 | --libexe | --libex | --libe)
1059 ac_prev=libexecdir ;;
1060 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1061 | --libexe=* | --libex=* | --libe=*)
1062 libexecdir=$ac_optarg ;;
1064 -localedir | --localedir | --localedi | --localed | --locale)
1065 ac_prev=localedir ;;
1066 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1067 localedir=$ac_optarg ;;
1069 -localstatedir | --localstatedir | --localstatedi | --localstated \
1070 | --localstate | --localstat | --localsta | --localst | --locals)
1071 ac_prev=localstatedir ;;
1072 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1073 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1074 localstatedir=$ac_optarg ;;
1076 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1078 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1079 mandir=$ac_optarg ;;
1081 -nfp | --nfp | --nf)
1082 # Obsolete; use --without-fp.
1085 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1086 | --no-cr | --no-c | -n)
1089 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1090 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1094 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1095 | --oldin | --oldi | --old | --ol | --o)
1096 ac_prev=oldincludedir ;;
1097 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1098 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1099 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1100 oldincludedir=$ac_optarg ;;
1102 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1104 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1105 prefix=$ac_optarg ;;
1107 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1108 | --program-pre | --program-pr | --program-p)
1109 ac_prev=program_prefix ;;
1110 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1111 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1112 program_prefix=$ac_optarg ;;
1114 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1115 | --program-suf | --program-su | --program-s)
1116 ac_prev=program_suffix ;;
1117 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1118 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1119 program_suffix=$ac_optarg ;;
1121 -program-transform-name | --program-transform-name \
1122 | --program-transform-nam | --program-transform-na \
1123 | --program-transform-n | --program-transform- \
1124 | --program-transform | --program-transfor \
1125 | --program-transfo | --program-transf \
1126 | --program-trans | --program-tran \
1127 | --progr-tra | --program-tr | --program-t)
1128 ac_prev=program_transform_name ;;
1129 -program-transform-name=* | --program-transform-name=* \
1130 | --program-transform-nam=* | --program-transform-na=* \
1131 | --program-transform-n=* | --program-transform-=* \
1132 | --program-transform=* | --program-transfor=* \
1133 | --program-transfo=* | --program-transf=* \
1134 | --program-trans=* | --program-tran=* \
1135 | --progr-tra=* | --program-tr=* | --program-t=*)
1136 program_transform_name=$ac_optarg ;;
1138 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1140 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1141 pdfdir=$ac_optarg ;;
1143 -psdir | --psdir | --psdi | --psd | --ps)
1145 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1149 | -silent | --silent | --silen | --sile | --sil)
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1156 sbindir=$ac_optarg ;;
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1167 sharedstatedir=$ac_optarg ;;
1169 -site | --site | --sit)
1171 -site=* | --site=* | --sit=*)
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1198 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 { echo "$as_me: error: invalid package name: $ac_package" >&2
1202 { (exit 1); exit 1; }; }
1203 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1204 eval with_$ac_package=\$ac_optarg ;;
1206 -without-* | --without-*)
1207 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 { echo "$as_me: error: invalid package name: $ac_package" >&2
1211 { (exit 1); exit 1; }; }
1212 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1213 eval with_$ac_package=no ;;
1216 # Obsolete; use --with-x.
1219 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1220 | --x-incl | --x-inc | --x-in | --x-i)
1221 ac_prev=x_includes ;;
1222 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1223 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1224 x_includes=$ac_optarg ;;
1226 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1227 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1228 ac_prev=x_libraries ;;
1229 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1230 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1231 x_libraries=$ac_optarg ;;
1233 -*) { echo "$as_me: error: unrecognized option: $ac_option
1234 Try \`$0 --help' for more information." >&2
1235 { (exit 1); exit 1; }; }
1239 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1242 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1243 { (exit 1); exit 1; }; }
1244 eval $ac_envvar=\$ac_optarg
1245 export $ac_envvar ;;
1248 # FIXME: should be removed in autoconf 3.0.
1249 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1250 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1251 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1252 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1258 if test -n "$ac_prev"; then
1259 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1260 { echo "$as_me: error: missing argument to $ac_option" >&2
1261 { (exit 1); exit 1; }; }
1264 # Be sure to have absolute directory names.
1265 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
1270 eval ac_val=\$$ac_var
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1276 { (exit 1); exit 1; }; }
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1284 target=$target_alias
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1291 If a cross compiler is detected then cross compile mode will be used." >&2
1292 elif test "x$build_alias" != "x$host_alias"; then
1298 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300 test "$silent" = yes && exec 6>/dev/null
1303 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304 ac_ls_di=`ls -di .` &&
1305 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1306 { echo "$as_me: error: Working directory cannot be determined" >&2
1307 { (exit 1); exit 1; }; }
1308 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1309 { echo "$as_me: error: pwd does not report name of working directory" >&2
1310 { (exit 1); exit 1; }; }
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$0" ||
1318 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$0" : 'X\(//\)[^/]' \| \
1320 X"$0" : 'X\(//\)$' \| \
1321 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1345 ac_srcdir_defaulted=no
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1350 { (exit 1); exit 1; }; }
1352 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1355 { (exit 1); exit 1; }; }
1357 # When building in place, set srcdir=.
1358 if test "$ac_abs_confdir" = "$ac_pwd"; then
1361 # Remove unnecessary trailing slashes from srcdir.
1362 # Double slashes in file names in object file debugging info
1363 # mess up M-x gdb in Emacs.
1365 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1367 for ac_var in $ac_precious_vars; do
1368 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_env_${ac_var}_value=\$${ac_var}
1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1375 # Report the --help message.
1377 if test "$ac_init_help" = "long"; then
1378 # Omit some internal or obsolete options to make the list less imposing.
1379 # This message is too long to be a string in the A/UX 3.1 sh.
1381 \`configure' configures this package to adapt to many kinds of systems.
1383 Usage: $0 [OPTION]... [VAR=VALUE]...
1385 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386 VAR=VALUE. See below for descriptions of some of the useful variables.
1388 Defaults for the options are specified in brackets.
1391 -h, --help display this help and exit
1392 --help=short display options specific to this package
1393 --help=recursive display the short help of all the included packages
1394 -V, --version display version information and exit
1395 -q, --quiet, --silent do not print \`checking...' messages
1396 --cache-file=FILE cache test results in FILE [disabled]
1397 -C, --config-cache alias for \`--cache-file=config.cache'
1398 -n, --no-create do not create output files
1399 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401 Installation directories:
1402 --prefix=PREFIX install architecture-independent files in PREFIX
1403 [$ac_default_prefix]
1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1407 By default, \`make install' will install all the files in
1408 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410 for instance \`--prefix=\$HOME'.
1412 For better control, use the options below.
1414 Fine tuning of the installation directories:
1415 --bindir=DIR user executables [EPREFIX/bin]
1416 --sbindir=DIR system admin executables [EPREFIX/sbin]
1417 --libexecdir=DIR program executables [EPREFIX/libexec]
1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
1439 --x-includes=DIR X include files are in DIR
1440 --x-libraries=DIR X library files are in DIR
1443 --build=BUILD configure for building on BUILD [guessed]
1444 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1448 if test -n "$ac_init_help"; then
1453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1455 --disable-nls do not use Native Language Support
1456 --disable-rpath do not hardcode runtime library paths
1457 --enable-gnome enable build of bgnome-console GUI disabled
1458 --enable-bat enable build of bat Qt4 GUI disabled
1459 --enable-bwx-console enable build of wxWidgets console disabled
1460 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
1461 --enable-smartalloc enable smartalloc debugging support disabled
1462 --enable-static-tools enable static tape tools disabled
1463 --enable-static-fd enable static File daemon disabled
1464 --enable-static-sd enable static Storage daemon disabled
1465 --enable-static-dir enable static Director disabled
1466 --enable-static-cons enable static Console disabled
1467 --enable-client-only build client (File daemon) only disabled
1468 --enable-build-dird enable building of dird (Director) enabled
1469 --enable-build-stored enable building of stored (Storage daemon) enabled
1470 --disable-conio disable conio support enabled
1472 --enable-ipv6 enable ipv6 support enabled
1474 --disable-readline disable readline support disable
1476 --enable-batch-insert enable the DB batch insert code disabled
1477 --disable-largefile omit support for large files
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-gnu-ld assume the C compiler uses GNU ld default=no
1483 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1484 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1485 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1486 --without-libintl-prefix don't search for libintl in includedir and libdir
1487 --with-included-gettext use the GNU gettext library included here
1488 --with-qwt[=DIR] specify qwt library directory
1489 --with-readline[=DIR] specify readline library directory
1491 --with-python[=DIR] Include Python support. DIR is the Python base
1492 install directory, default is to search through
1493 a number of common places for the Python files.
1494 --with-tcp-wrappers[=DIR] enable tcpwrappers support
1495 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1496 --with-working-dir=PATH specify path of Bacula working directory
1497 --with-archivedir=PATH specify path of SD archive directory
1498 --with-scriptdir=PATH specify path of Bacula scripts directory
1499 --with-dump-email=EMAIL dump email address
1500 --with-job-email=EMAIL job output email address
1501 --with-smtp-host=HOST SMTP mail host address
1502 --with-pid-dir=PATH specify location of Bacula pid files
1503 --with-subsys-dir=PATH specify location of Bacula subsys file
1504 --with-baseport=PORT specify base port address for daemons
1505 --with-dir-password=PASSWORD specify Director's password
1506 --with-fd-password=PASSWORD specify Client's password
1507 --with-sd-password=PASSWORD specify Storage daemon's password
1508 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
1509 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
1510 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
1511 --with-db-name=DBNAME specify database name (default bacula)
1512 --with-db-user=UNAME specify database user (default bacula)
1513 --with-db-password=UNAME specify database password (default *none*)
1514 --with-dir-user=USER specify user for Director daemon
1515 --with-dir-group=GROUP specify group for Director daemon
1516 --with-sd-user=USER specify user for Storage daemon
1517 --with-sd-group=GROUP specify group for Storage daemon
1518 --with-fd-user=USER specify user for File daemon
1519 --with-fd-group=GROUP specify group for File daemon
1520 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
1521 --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1522 base install directory, defaults to /usr/local/pgsql
1524 --with-mysql[=DIR] Include MySQL support. DIR is the MySQL base
1525 install directory, default is to search through
1526 a number of common places for the MySQL files.
1528 --with-embedded-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-sqlite3[=DIR] Include SQLite3 support. DIR is the SQLite3 base
1533 install directory, default is to search through
1534 a number of common places for the SQLite3 files.
1536 --with-sqlite[=DIR] Include SQLite support. DIR is the SQLite base
1537 install directory, default is to search through
1538 a number of common places for the SQLite files.
1539 --with-x use the X Window System
1541 Some influential environment variables:
1542 CC C compiler command
1543 CFLAGS C compiler flags
1544 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1545 nonstandard directory <lib dir>
1546 LIBS libraries to pass to the linker, e.g. -l<library>
1547 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1548 you have headers in a nonstandard directory <include dir>
1549 CXX C++ compiler command
1550 CXXFLAGS C++ compiler flags
1552 WXCONFIG wx-config command. On some systems, you must set it to
1553 wx-config-2.6 to use wxWidgets 2.6.
1554 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1555 XMKMF Path to xmkmf, Makefile generator for X Window System
1557 Use these variables to override the choices made by `configure' or to help
1558 it to find libraries and programs with nonstandard names/locations.
1564 if test "$ac_init_help" = "recursive"; then
1565 # If there are subdirs, report their specific --help.
1566 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567 test -d "$ac_dir" || continue
1571 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1573 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1574 # A ".." for each directory in $ac_dir_suffix.
1575 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1576 case $ac_top_builddir_sub in
1577 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581 ac_abs_top_builddir=$ac_pwd
1582 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1583 # for backward compatibility:
1584 ac_top_builddir=$ac_top_build_prefix
1587 .) # We are building in place.
1589 ac_top_srcdir=$ac_top_builddir_sub
1590 ac_abs_top_srcdir=$ac_pwd ;;
1591 [\\/]* | ?:[\\/]* ) # Absolute name.
1592 ac_srcdir=$srcdir$ac_dir_suffix;
1593 ac_top_srcdir=$srcdir
1594 ac_abs_top_srcdir=$srcdir ;;
1596 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1597 ac_top_srcdir=$ac_top_build_prefix$srcdir
1598 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1600 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1602 cd "$ac_dir" || { ac_status=$?; continue; }
1603 # Check for guested configure.
1604 if test -f "$ac_srcdir/configure.gnu"; then
1606 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1607 elif test -f "$ac_srcdir/configure"; then
1609 $SHELL "$ac_srcdir/configure" --help=recursive
1611 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1613 cd "$ac_pwd" || { ac_status=$?; break; }
1617 test -n "$ac_init_help" && exit $ac_status
1618 if $ac_init_version; then
1621 generated by GNU Autoconf 2.61
1623 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1624 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1625 This configure script is free software; the Free Software Foundation
1626 gives unlimited permission to copy, distribute and modify it.
1630 cat >config.log <<_ACEOF
1631 This file contains any messages produced by compilers while
1632 running configure, to aid debugging if configure makes a mistake.
1634 It was created by $as_me, which was
1635 generated by GNU Autoconf 2.61. Invocation command line was
1647 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1648 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1649 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1650 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1651 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1653 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1654 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1656 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1657 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1658 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1659 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1660 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1661 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1662 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 test -z "$as_dir" && as_dir=.
1671 echo "PATH: $as_dir"
1687 # Keep a trace of the command line.
1688 # Strip out --no-create and --no-recursion so they do not pile up.
1689 # Strip out --silent because we don't want to record it for future runs.
1690 # Also quote any args containing shell meta-characters.
1691 # Make two passes to allow for proper duplicate-argument suppression.
1695 ac_must_keep_next=false
1701 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1703 | -silent | --silent | --silen | --sile | --sil)
1706 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1709 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1711 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1712 if test $ac_must_keep_next = true; then
1713 ac_must_keep_next=false # Got value, back to normal.
1716 *=* | --config-cache | -C | -disable-* | --disable-* \
1717 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1718 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1719 | -with-* | --with-* | -without-* | --without-* | --x)
1720 case "$ac_configure_args0 " in
1721 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1724 -* ) ac_must_keep_next=true ;;
1727 ac_configure_args="$ac_configure_args '$ac_arg'"
1732 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1733 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1735 # When interrupted or exit'd, cleanup temporary files, and complete
1736 # config.log. We remove comments because anyway the quotes in there
1737 # would cause problems or look ugly.
1738 # WARNING: Use '\'' to represent an apostrophe within the trap.
1739 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1740 trap 'exit_status=$?
1741 # Save into config.log some information that might help in debugging.
1746 ## ---------------- ##
1747 ## Cache variables. ##
1748 ## ---------------- ##
1751 # The following way of writing the cache mishandles newlines in values,
1753 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1754 eval ac_val=\$$ac_var
1758 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1759 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1762 _ | IFS | as_nl) ;; #(
1763 *) $as_unset $ac_var ;;
1768 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1769 *${as_nl}ac_space=\ *)
1771 "s/'\''/'\''\\\\'\'''\''/g;
1772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1775 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1783 ## ----------------- ##
1784 ## Output variables. ##
1785 ## ----------------- ##
1788 for ac_var in $ac_subst_vars
1790 eval ac_val=\$$ac_var
1792 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1794 echo "$ac_var='\''$ac_val'\''"
1798 if test -n "$ac_subst_files"; then
1800 ## ------------------- ##
1801 ## File substitutions. ##
1802 ## ------------------- ##
1805 for ac_var in $ac_subst_files
1807 eval ac_val=\$$ac_var
1809 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1811 echo "$ac_var='\''$ac_val'\''"
1816 if test -s confdefs.h; then
1826 test "$ac_signal" != 0 &&
1827 echo "$as_me: caught signal $ac_signal"
1828 echo "$as_me: exit $exit_status"
1830 rm -f core *.core core.conftest.* &&
1831 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1834 for ac_signal in 1 2 13 15; do
1835 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1839 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1840 rm -f -r conftest* confdefs.h
1842 # Predefined preprocessor variables.
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_NAME "$PACKAGE_NAME"
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1854 cat >>confdefs.h <<_ACEOF
1855 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1859 cat >>confdefs.h <<_ACEOF
1860 #define PACKAGE_STRING "$PACKAGE_STRING"
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1869 # Let the site file select an alternate cache file if it wants to.
1870 # Prefer explicitly selected file to automatically selected ones.
1871 if test -n "$CONFIG_SITE"; then
1872 set x "$CONFIG_SITE"
1873 elif test "x$prefix" != xNONE; then
1874 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1876 set x "$ac_default_prefix/share/config.site" \
1877 "$ac_default_prefix/etc/config.site"
1882 if test -r "$ac_site_file"; then
1883 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1884 echo "$as_me: loading site script $ac_site_file" >&6;}
1885 sed 's/^/| /' "$ac_site_file" >&5
1890 if test -r "$cache_file"; then
1891 # Some versions of bash will fail to source /dev/null (special
1892 # files actually), so we avoid doing that.
1893 if test -f "$cache_file"; then
1894 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1895 echo "$as_me: loading cache $cache_file" >&6;}
1897 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1898 *) . "./$cache_file";;
1902 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1903 echo "$as_me: creating cache $cache_file" >&6;}
1907 # Check that the precious variables saved in the cache have kept the same
1909 ac_cache_corrupted=false
1910 for ac_var in $ac_precious_vars; do
1911 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1912 eval ac_new_set=\$ac_env_${ac_var}_set
1913 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1914 eval ac_new_val=\$ac_env_${ac_var}_value
1915 case $ac_old_set,$ac_new_set in
1917 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1918 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1919 ac_cache_corrupted=: ;;
1921 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1922 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1923 ac_cache_corrupted=: ;;
1926 if test "x$ac_old_val" != "x$ac_new_val"; then
1927 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1928 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1929 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1930 echo "$as_me: former value: $ac_old_val" >&2;}
1931 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1932 echo "$as_me: current value: $ac_new_val" >&2;}
1933 ac_cache_corrupted=:
1936 # Pass precious variables to config.status.
1937 if test "$ac_new_set" = set; then
1939 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1940 *) ac_arg=$ac_var=$ac_new_val ;;
1942 case " $ac_configure_args " in
1943 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1944 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1948 if $ac_cache_corrupted; then
1949 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1950 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1951 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1952 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1953 { (exit 1); exit 1; }; }
1973 ac_cpp='$CPP $CPPFLAGS'
1974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1986 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1987 if test -f "$ac_dir/install-sh"; then
1989 ac_install_sh="$ac_aux_dir/install-sh -c"
1991 elif test -f "$ac_dir/install.sh"; then
1993 ac_install_sh="$ac_aux_dir/install.sh -c"
1995 elif test -f "$ac_dir/shtool"; then
1997 ac_install_sh="$ac_aux_dir/shtool install -c"
2001 if test -z "$ac_aux_dir"; then
2002 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
2003 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
2004 { (exit 1); exit 1; }; }
2007 # These three variables are undocumented and unsupported,
2008 # and are intended to be withdrawn in a future Autoconf release.
2009 # They can cause serious problems if a builder's source tree is in a directory
2010 # whose full name contains unusual characters.
2011 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2012 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2013 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2016 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2024 # Extract the first word of "$ac_prog", so it can be a program name with args.
2025 set dummy $ac_prog; ac_word=$2
2026 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2028 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2029 echo $ECHO_N "(cached) $ECHO_C" >&6
2033 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 test -z "$as_dir" && as_dir=.
2041 for ac_exec_ext in '' $ac_executable_extensions; do
2042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2043 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2044 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054 TRUEPRG=$ac_cv_path_TRUEPRG
2055 if test -n "$TRUEPRG"; then
2056 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2057 echo "${ECHO_T}$TRUEPRG" >&6; }
2059 { echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6; }
2064 test -n "$TRUEPRG" && break
2066 test -n "$TRUEPRG" || TRUEPRG=":"
2068 for ac_prog in false
2070 # Extract the first word of "$ac_prog", so it can be a program name with args.
2071 set dummy $ac_prog; ac_word=$2
2072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2074 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086 test -z "$as_dir" && as_dir=.
2087 for ac_exec_ext in '' $ac_executable_extensions; do
2088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2089 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100 FALSEPRG=$ac_cv_path_FALSEPRG
2101 if test -n "$FALSEPRG"; then
2102 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2103 echo "${ECHO_T}$FALSEPRG" >&6; }
2105 { echo "$as_me:$LINENO: result: no" >&5
2106 echo "${ECHO_T}no" >&6; }
2110 test -n "$FALSEPRG" && break
2112 test -n "$FALSEPRG" || FALSEPRG=":"
2116 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2117 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2118 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2119 echo "configuring for bacula $VERSION ($DATE)"
2124 ac_cpp='$CPP $CPPFLAGS'
2125 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2126 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2127 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2128 if test -n "$ac_tool_prefix"; then
2129 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2130 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2133 if test "${ac_cv_prog_CC+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2136 if test -n "$CC"; then
2137 ac_cv_prog_CC="$CC" # Let the user override the test.
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 test -z "$as_dir" && as_dir=.
2144 for ac_exec_ext in '' $ac_executable_extensions; do
2145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2146 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 if test -n "$CC"; then
2158 { echo "$as_me:$LINENO: result: $CC" >&5
2159 echo "${ECHO_T}$CC" >&6; }
2161 { echo "$as_me:$LINENO: result: no" >&5
2162 echo "${ECHO_T}no" >&6; }
2167 if test -z "$ac_cv_prog_CC"; then
2169 # Extract the first word of "gcc", so it can be a program name with args.
2170 set dummy gcc; ac_word=$2
2171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2173 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2174 echo $ECHO_N "(cached) $ECHO_C" >&6
2176 if test -n "$ac_ct_CC"; then
2177 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2183 test -z "$as_dir" && as_dir=.
2184 for ac_exec_ext in '' $ac_executable_extensions; do
2185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2186 ac_cv_prog_ac_ct_CC="gcc"
2187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2197 if test -n "$ac_ct_CC"; then
2198 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2199 echo "${ECHO_T}$ac_ct_CC" >&6; }
2201 { echo "$as_me:$LINENO: result: no" >&5
2202 echo "${ECHO_T}no" >&6; }
2205 if test "x$ac_ct_CC" = x; then
2208 case $cross_compiling:$ac_tool_warned in
2210 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2211 whose name does not start with the host triplet. If you think this
2212 configuration is useful to you, please write to autoconf@gnu.org." >&5
2213 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2214 whose name does not start with the host triplet. If you think this
2215 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2216 ac_tool_warned=yes ;;
2224 if test -z "$CC"; then
2225 if test -n "$ac_tool_prefix"; then
2226 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2227 set dummy ${ac_tool_prefix}cc; ac_word=$2
2228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2230 if test "${ac_cv_prog_CC+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2233 if test -n "$CC"; then
2234 ac_cv_prog_CC="$CC" # Let the user override the test.
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 test -z "$as_dir" && as_dir=.
2241 for ac_exec_ext in '' $ac_executable_extensions; do
2242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2243 ac_cv_prog_CC="${ac_tool_prefix}cc"
2244 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2254 if test -n "$CC"; then
2255 { echo "$as_me:$LINENO: result: $CC" >&5
2256 echo "${ECHO_T}$CC" >&6; }
2258 { echo "$as_me:$LINENO: result: no" >&5
2259 echo "${ECHO_T}no" >&6; }
2265 if test -z "$CC"; then
2266 # Extract the first word of "cc", so it can be a program name with args.
2267 set dummy cc; ac_word=$2
2268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2270 if test "${ac_cv_prog_CC+set}" = set; then
2271 echo $ECHO_N "(cached) $ECHO_C" >&6
2273 if test -n "$CC"; then
2274 ac_cv_prog_CC="$CC" # Let the user override the test.
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2281 test -z "$as_dir" && as_dir=.
2282 for ac_exec_ext in '' $ac_executable_extensions; do
2283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2284 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2285 ac_prog_rejected=yes
2289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2296 if test $ac_prog_rejected = yes; then
2297 # We found a bogon in the path, so make sure we never use it.
2298 set dummy $ac_cv_prog_CC
2300 if test $# != 0; then
2301 # We chose a different compiler from the bogus one.
2302 # However, it has the same basename, so the bogon will be chosen
2303 # first if we set CC to just the basename; use the full file name.
2305 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2311 if test -n "$CC"; then
2312 { echo "$as_me:$LINENO: result: $CC" >&5
2313 echo "${ECHO_T}$CC" >&6; }
2315 { echo "$as_me:$LINENO: result: no" >&5
2316 echo "${ECHO_T}no" >&6; }
2321 if test -z "$CC"; then
2322 if test -n "$ac_tool_prefix"; then
2323 for ac_prog in cl.exe
2325 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2329 if test "${ac_cv_prog_CC+set}" = set; then
2330 echo $ECHO_N "(cached) $ECHO_C" >&6
2332 if test -n "$CC"; then
2333 ac_cv_prog_CC="$CC" # Let the user override the test.
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2339 test -z "$as_dir" && as_dir=.
2340 for ac_exec_ext in '' $ac_executable_extensions; do
2341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2342 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 if test -n "$CC"; then
2354 { echo "$as_me:$LINENO: result: $CC" >&5
2355 echo "${ECHO_T}$CC" >&6; }
2357 { echo "$as_me:$LINENO: result: no" >&5
2358 echo "${ECHO_T}no" >&6; }
2362 test -n "$CC" && break
2365 if test -z "$CC"; then
2367 for ac_prog in cl.exe
2369 # Extract the first word of "$ac_prog", so it can be a program name with args.
2370 set dummy $ac_prog; ac_word=$2
2371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2373 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2374 echo $ECHO_N "(cached) $ECHO_C" >&6
2376 if test -n "$ac_ct_CC"; then
2377 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2383 test -z "$as_dir" && as_dir=.
2384 for ac_exec_ext in '' $ac_executable_extensions; do
2385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2386 ac_cv_prog_ac_ct_CC="$ac_prog"
2387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2397 if test -n "$ac_ct_CC"; then
2398 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2399 echo "${ECHO_T}$ac_ct_CC" >&6; }
2401 { echo "$as_me:$LINENO: result: no" >&5
2402 echo "${ECHO_T}no" >&6; }
2406 test -n "$ac_ct_CC" && break
2409 if test "x$ac_ct_CC" = x; then
2412 case $cross_compiling:$ac_tool_warned in
2414 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2415 whose name does not start with the host triplet. If you think this
2416 configuration is useful to you, please write to autoconf@gnu.org." >&5
2417 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2418 whose name does not start with the host triplet. If you think this
2419 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2420 ac_tool_warned=yes ;;
2429 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2430 See \`config.log' for more details." >&5
2431 echo "$as_me: error: no acceptable C compiler found in \$PATH
2432 See \`config.log' for more details." >&2;}
2433 { (exit 1); exit 1; }; }
2435 # Provide some information about the compiler.
2436 echo "$as_me:$LINENO: checking for C compiler version" >&5
2437 ac_compiler=`set X $ac_compile; echo $2`
2438 { (ac_try="$ac_compiler --version >&5"
2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441 *) ac_try_echo=$ac_try;;
2443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2444 (eval "$ac_compiler --version >&5") 2>&5
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2447 (exit $ac_status); }
2448 { (ac_try="$ac_compiler -v >&5"
2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451 *) ac_try_echo=$ac_try;;
2453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2454 (eval "$ac_compiler -v >&5") 2>&5
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }
2458 { (ac_try="$ac_compiler -V >&5"
2460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2461 *) ac_try_echo=$ac_try;;
2463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2464 (eval "$ac_compiler -V >&5") 2>&5
2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467 (exit $ac_status); }
2469 cat >conftest.$ac_ext <<_ACEOF
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2484 ac_clean_files_save=$ac_clean_files
2485 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2486 # Try to create an executable without -o first, disregard a.out.
2487 # It will help us diagnose broken compilers, and finding out an intuition
2489 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2490 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2491 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2493 # List of possible output files, starting from the most likely.
2494 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2495 # only as a last resort. b.out is created by i960 compilers.
2496 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2498 # The IRIX 6 linker writes into existing files which may not be
2499 # executable, retaining their permissions. Remove them first so a
2500 # subsequent execution test works.
2502 for ac_file in $ac_files
2505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2506 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2511 if { (ac_try="$ac_link_default"
2513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514 *) ac_try_echo=$ac_try;;
2516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2517 (eval "$ac_link_default") 2>&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }; then
2521 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2522 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2523 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2524 # so that the user can short-circuit this test for compilers unknown to
2526 for ac_file in $ac_files ''
2528 test -f "$ac_file" || continue
2530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2533 # We found the default executable, but exeext='' is most
2537 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2539 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2541 # We set ac_cv_exeext here because the later test for it is not
2542 # safe: cross compilers may not add the suffix if given an `-o'
2543 # argument, so we may need to know it at that point already.
2544 # Even if this section looks crufty: it has the advantage of
2551 test "$ac_cv_exeext" = no && ac_cv_exeext=
2557 { echo "$as_me:$LINENO: result: $ac_file" >&5
2558 echo "${ECHO_T}$ac_file" >&6; }
2559 if test -z "$ac_file"; then
2560 echo "$as_me: failed program was:" >&5
2561 sed 's/^/| /' conftest.$ac_ext >&5
2563 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2564 See \`config.log' for more details." >&5
2565 echo "$as_me: error: C compiler cannot create executables
2566 See \`config.log' for more details." >&2;}
2567 { (exit 77); exit 77; }; }
2570 ac_exeext=$ac_cv_exeext
2572 # Check that the compiler produces executables we can run. If not, either
2573 # the compiler is broken, or we cross compile.
2574 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2575 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2576 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2577 # If not cross compiling, check that we can run a simple program.
2578 if test "$cross_compiling" != yes; then
2579 if { ac_try='./$ac_file'
2580 { (case "(($ac_try" in
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2585 (eval "$ac_try") 2>&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; }; then
2591 if test "$cross_compiling" = maybe; then
2594 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2595 If you meant to cross compile, use \`--host'.
2596 See \`config.log' for more details." >&5
2597 echo "$as_me: error: cannot run C compiled programs.
2598 If you meant to cross compile, use \`--host'.
2599 See \`config.log' for more details." >&2;}
2600 { (exit 1); exit 1; }; }
2604 { echo "$as_me:$LINENO: result: yes" >&5
2605 echo "${ECHO_T}yes" >&6; }
2607 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2608 ac_clean_files=$ac_clean_files_save
2609 # Check that the compiler produces executables we can run. If not, either
2610 # the compiler is broken, or we cross compile.
2611 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2612 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2613 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2614 echo "${ECHO_T}$cross_compiling" >&6; }
2616 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2617 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2618 if { (ac_try="$ac_link"
2620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2621 *) ac_try_echo=$ac_try;;
2623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2624 (eval "$ac_link") 2>&5
2626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2627 (exit $ac_status); }; then
2628 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2629 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2630 # work properly (i.e., refer to `conftest.exe'), while it won't with
2632 for ac_file in conftest.exe conftest conftest.*; do
2633 test -f "$ac_file" || continue
2635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2636 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2642 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2643 See \`config.log' for more details." >&5
2644 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2645 See \`config.log' for more details." >&2;}
2646 { (exit 1); exit 1; }; }
2649 rm -f conftest$ac_cv_exeext
2650 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2651 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2653 rm -f conftest.$ac_ext
2654 EXEEXT=$ac_cv_exeext
2656 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2657 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2658 if test "${ac_cv_objext+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2661 cat >conftest.$ac_ext <<_ACEOF
2664 cat confdefs.h >>conftest.$ac_ext
2665 cat >>conftest.$ac_ext <<_ACEOF
2666 /* end confdefs.h. */
2676 rm -f conftest.o conftest.obj
2677 if { (ac_try="$ac_compile"
2679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2680 *) ac_try_echo=$ac_try;;
2682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2683 (eval "$ac_compile") 2>&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; then
2687 for ac_file in conftest.o conftest.obj conftest.*; do
2688 test -f "$ac_file" || continue;
2690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2691 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2696 echo "$as_me: failed program was:" >&5
2697 sed 's/^/| /' conftest.$ac_ext >&5
2699 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2700 See \`config.log' for more details." >&5
2701 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2702 See \`config.log' for more details." >&2;}
2703 { (exit 1); exit 1; }; }
2706 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2708 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2709 echo "${ECHO_T}$ac_cv_objext" >&6; }
2710 OBJEXT=$ac_cv_objext
2712 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2713 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2714 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2715 echo $ECHO_N "(cached) $ECHO_C" >&6
2717 cat >conftest.$ac_ext <<_ACEOF
2720 cat confdefs.h >>conftest.$ac_ext
2721 cat >>conftest.$ac_ext <<_ACEOF
2722 /* end confdefs.h. */
2735 rm -f conftest.$ac_objext
2736 if { (ac_try="$ac_compile"
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2742 (eval "$ac_compile") 2>conftest.er1
2744 grep -v '^ *+' conftest.er1 >conftest.err
2746 cat conftest.err >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); } && {
2749 test -z "$ac_c_werror_flag" ||
2750 test ! -s conftest.err
2751 } && test -s conftest.$ac_objext; then
2754 echo "$as_me: failed program was:" >&5
2755 sed 's/^/| /' conftest.$ac_ext >&5
2760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2761 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2764 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2765 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2766 GCC=`test $ac_compiler_gnu = yes && echo yes`
2767 ac_test_CFLAGS=${CFLAGS+set}
2768 ac_save_CFLAGS=$CFLAGS
2769 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2770 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2771 if test "${ac_cv_prog_cc_g+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 ac_save_c_werror_flag=$ac_c_werror_flag
2775 ac_c_werror_flag=yes
2778 cat >conftest.$ac_ext <<_ACEOF
2781 cat confdefs.h >>conftest.$ac_ext
2782 cat >>conftest.$ac_ext <<_ACEOF
2783 /* end confdefs.h. */
2793 rm -f conftest.$ac_objext
2794 if { (ac_try="$ac_compile"
2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2797 *) ac_try_echo=$ac_try;;
2799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2800 (eval "$ac_compile") 2>conftest.er1
2802 grep -v '^ *+' conftest.er1 >conftest.err
2804 cat conftest.err >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } && {
2807 test -z "$ac_c_werror_flag" ||
2808 test ! -s conftest.err
2809 } && test -s conftest.$ac_objext; then
2812 echo "$as_me: failed program was:" >&5
2813 sed 's/^/| /' conftest.$ac_ext >&5
2816 cat >conftest.$ac_ext <<_ACEOF
2819 cat confdefs.h >>conftest.$ac_ext
2820 cat >>conftest.$ac_ext <<_ACEOF
2821 /* end confdefs.h. */
2831 rm -f conftest.$ac_objext
2832 if { (ac_try="$ac_compile"
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838 (eval "$ac_compile") 2>conftest.er1
2840 grep -v '^ *+' conftest.er1 >conftest.err
2842 cat conftest.err >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); } && {
2845 test -z "$ac_c_werror_flag" ||
2846 test ! -s conftest.err
2847 } && test -s conftest.$ac_objext; then
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2853 ac_c_werror_flag=$ac_save_c_werror_flag
2855 cat >conftest.$ac_ext <<_ACEOF
2858 cat confdefs.h >>conftest.$ac_ext
2859 cat >>conftest.$ac_ext <<_ACEOF
2860 /* end confdefs.h. */
2870 rm -f conftest.$ac_objext
2871 if { (ac_try="$ac_compile"
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877 (eval "$ac_compile") 2>conftest.er1
2879 grep -v '^ *+' conftest.er1 >conftest.err
2881 cat conftest.err >&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } && {
2884 test -z "$ac_c_werror_flag" ||
2885 test ! -s conftest.err
2886 } && test -s conftest.$ac_objext; then
2889 echo "$as_me: failed program was:" >&5
2890 sed 's/^/| /' conftest.$ac_ext >&5
2895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2902 ac_c_werror_flag=$ac_save_c_werror_flag
2904 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2905 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2906 if test "$ac_test_CFLAGS" = set; then
2907 CFLAGS=$ac_save_CFLAGS
2908 elif test $ac_cv_prog_cc_g = yes; then
2909 if test "$GCC" = yes; then
2915 if test "$GCC" = yes; then
2921 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2922 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2923 if test "${ac_cv_prog_cc_c89+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 ac_cv_prog_cc_c89=no
2928 cat >conftest.$ac_ext <<_ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h. */
2936 #include <sys/types.h>
2937 #include <sys/stat.h>
2938 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2939 struct buf { int x; };
2940 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2941 static char *e (p, i)
2947 static char *f (char * (*g) (char **, int), char **p, ...)
2952 s = g (p, va_arg (v,int));
2957 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2958 function prototypes and stuff, but not '\xHH' hex character constants.
2959 These don't provoke an error unfortunately, instead are silently treated
2960 as 'x'. The following induces an error, until -std is added to get
2961 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2962 array size at least. It's necessary to write '\x00'==0 to get something
2963 that's true only with -std. */
2964 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2966 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2967 inside strings and character constants. */
2969 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2971 int test (int i, double x);
2972 struct s1 {int (*f) (int a);};
2973 struct s2 {int (*f) (double a);};
2974 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2980 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2985 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2986 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2988 CC="$ac_save_CC $ac_arg"
2989 rm -f conftest.$ac_objext
2990 if { (ac_try="$ac_compile"
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996 (eval "$ac_compile") 2>conftest.er1
2998 grep -v '^ *+' conftest.er1 >conftest.err
3000 cat conftest.err >&5
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); } && {
3003 test -z "$ac_c_werror_flag" ||
3004 test ! -s conftest.err
3005 } && test -s conftest.$ac_objext; then
3006 ac_cv_prog_cc_c89=$ac_arg
3008 echo "$as_me: failed program was:" >&5
3009 sed 's/^/| /' conftest.$ac_ext >&5
3014 rm -f core conftest.err conftest.$ac_objext
3015 test "x$ac_cv_prog_cc_c89" != "xno" && break
3017 rm -f conftest.$ac_ext
3022 case "x$ac_cv_prog_cc_c89" in
3024 { echo "$as_me:$LINENO: result: none needed" >&5
3025 echo "${ECHO_T}none needed" >&6; } ;;
3027 { echo "$as_me:$LINENO: result: unsupported" >&5
3028 echo "${ECHO_T}unsupported" >&6; } ;;
3030 CC="$CC $ac_cv_prog_cc_c89"
3031 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3032 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3037 ac_cpp='$CPP $CPPFLAGS'
3038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3043 ac_cpp='$CXXCPP $CPPFLAGS'
3044 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3045 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3046 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3047 if test -z "$CXX"; then
3048 if test -n "$CCC"; then
3051 if test -n "$ac_tool_prefix"; then
3052 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3054 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3055 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3058 if test "${ac_cv_prog_CXX+set}" = set; then
3059 echo $ECHO_N "(cached) $ECHO_C" >&6
3061 if test -n "$CXX"; then
3062 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068 test -z "$as_dir" && as_dir=.
3069 for ac_exec_ext in '' $ac_executable_extensions; do
3070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3082 if test -n "$CXX"; then
3083 { echo "$as_me:$LINENO: result: $CXX" >&5
3084 echo "${ECHO_T}$CXX" >&6; }
3086 { echo "$as_me:$LINENO: result: no" >&5
3087 echo "${ECHO_T}no" >&6; }
3091 test -n "$CXX" && break
3094 if test -z "$CXX"; then
3096 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3098 # Extract the first word of "$ac_prog", so it can be a program name with args.
3099 set dummy $ac_prog; ac_word=$2
3100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3102 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3105 if test -n "$ac_ct_CXX"; then
3106 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3115 ac_cv_prog_ac_ct_CXX="$ac_prog"
3116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3126 if test -n "$ac_ct_CXX"; then
3127 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3128 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3130 { echo "$as_me:$LINENO: result: no" >&5
3131 echo "${ECHO_T}no" >&6; }
3135 test -n "$ac_ct_CXX" && break
3138 if test "x$ac_ct_CXX" = x; then
3141 case $cross_compiling:$ac_tool_warned in
3143 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3144 whose name does not start with the host triplet. If you think this
3145 configuration is useful to you, please write to autoconf@gnu.org." >&5
3146 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3147 whose name does not start with the host triplet. If you think this
3148 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3149 ac_tool_warned=yes ;;
3157 # Provide some information about the compiler.
3158 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3159 ac_compiler=`set X $ac_compile; echo $2`
3160 { (ac_try="$ac_compiler --version >&5"
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_compiler --version >&5") 2>&5
3168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169 (exit $ac_status); }
3170 { (ac_try="$ac_compiler -v >&5"
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_compiler -v >&5") 2>&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }
3180 { (ac_try="$ac_compiler -V >&5"
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_compiler -V >&5") 2>&5
3188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189 (exit $ac_status); }
3191 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3192 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3193 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3196 cat >conftest.$ac_ext <<_ACEOF
3199 cat confdefs.h >>conftest.$ac_ext
3200 cat >>conftest.$ac_ext <<_ACEOF
3201 /* end confdefs.h. */
3214 rm -f conftest.$ac_objext
3215 if { (ac_try="$ac_compile"
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3221 (eval "$ac_compile") 2>conftest.er1
3223 grep -v '^ *+' conftest.er1 >conftest.err
3225 cat conftest.err >&5
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } && {
3228 test -z "$ac_cxx_werror_flag" ||
3229 test ! -s conftest.err
3230 } && test -s conftest.$ac_objext; then
3233 echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3243 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3244 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3245 GXX=`test $ac_compiler_gnu = yes && echo yes`
3246 ac_test_CXXFLAGS=${CXXFLAGS+set}
3247 ac_save_CXXFLAGS=$CXXFLAGS
3248 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3249 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3250 if test "${ac_cv_prog_cxx_g+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3254 ac_cxx_werror_flag=yes
3257 cat >conftest.$ac_ext <<_ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3272 rm -f conftest.$ac_objext
3273 if { (ac_try="$ac_compile"
3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276 *) ac_try_echo=$ac_try;;
3278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279 (eval "$ac_compile") 2>conftest.er1
3281 grep -v '^ *+' conftest.er1 >conftest.err
3283 cat conftest.err >&5
3284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285 (exit $ac_status); } && {
3286 test -z "$ac_cxx_werror_flag" ||
3287 test ! -s conftest.err
3288 } && test -s conftest.$ac_objext; then
3289 ac_cv_prog_cxx_g=yes
3291 echo "$as_me: failed program was:" >&5
3292 sed 's/^/| /' conftest.$ac_ext >&5
3295 cat >conftest.$ac_ext <<_ACEOF
3298 cat confdefs.h >>conftest.$ac_ext
3299 cat >>conftest.$ac_ext <<_ACEOF
3300 /* end confdefs.h. */
3310 rm -f conftest.$ac_objext
3311 if { (ac_try="$ac_compile"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_compile") 2>conftest.er1
3319 grep -v '^ *+' conftest.er1 >conftest.err
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } && {
3324 test -z "$ac_cxx_werror_flag" ||
3325 test ! -s conftest.err
3326 } && test -s conftest.$ac_objext; then
3329 echo "$as_me: failed program was:" >&5
3330 sed 's/^/| /' conftest.$ac_ext >&5
3332 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3334 cat >conftest.$ac_ext <<_ACEOF
3337 cat confdefs.h >>conftest.$ac_ext
3338 cat >>conftest.$ac_ext <<_ACEOF
3339 /* end confdefs.h. */
3349 rm -f conftest.$ac_objext
3350 if { (ac_try="$ac_compile"
3352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356 (eval "$ac_compile") 2>conftest.er1
3358 grep -v '^ *+' conftest.er1 >conftest.err
3360 cat conftest.err >&5
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); } && {
3363 test -z "$ac_cxx_werror_flag" ||
3364 test ! -s conftest.err
3365 } && test -s conftest.$ac_objext; then
3366 ac_cv_prog_cxx_g=yes
3368 echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.$ac_ext >&5
3374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3381 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3383 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3384 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3385 if test "$ac_test_CXXFLAGS" = set; then
3386 CXXFLAGS=$ac_save_CXXFLAGS
3387 elif test $ac_cv_prog_cxx_g = yes; then
3388 if test "$GXX" = yes; then
3394 if test "$GXX" = yes; then
3401 ac_cpp='$CPP $CPPFLAGS'
3402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3406 if test "x$CC" != xcc; then
3407 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3408 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3410 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3411 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3413 set dummy $CC; ac_cc=`echo $2 |
3414 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3415 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 cat >conftest.$ac_ext <<_ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3433 # Make sure it works both with $CC and with simple cc.
3434 # We do the test twice because some compilers refuse to overwrite an
3435 # existing .o file with -o, though they will create one.
3436 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3438 if { (case "(($ac_try" in
3439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440 *) ac_try_echo=$ac_try;;
3442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443 (eval "$ac_try") 2>&5
3445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446 (exit $ac_status); } &&
3447 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3452 (eval "$ac_try") 2>&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); };
3457 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3458 if test "x$CC" != xcc; then
3459 # Test first that cc exists at all.
3460 if { ac_try='cc -c conftest.$ac_ext >&5'
3461 { (case "(($ac_try" in
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3466 (eval "$ac_try") 2>&5
3468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3469 (exit $ac_status); }; }; then
3470 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3472 if { (case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_try") 2>&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } &&
3481 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3486 (eval "$ac_try") 2>&5
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); };
3494 # cc exists but doesn't like -o.
3495 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3500 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3502 rm -f core conftest*
3505 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3506 { echo "$as_me:$LINENO: result: yes" >&5
3507 echo "${ECHO_T}yes" >&6; }
3509 { echo "$as_me:$LINENO: result: no" >&5
3510 echo "${ECHO_T}no" >&6; }
3512 cat >>confdefs.h <<\_ACEOF
3513 #define NO_MINUS_C_MINUS_O 1
3519 ac_cpp='$CPP $CPPFLAGS'
3520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3523 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3524 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3525 # On Suns, sometimes $CPP names a directory.
3526 if test -n "$CPP" && test -d "$CPP"; then
3529 if test -z "$CPP"; then
3530 if test "${ac_cv_prog_CPP+set}" = set; then
3531 echo $ECHO_N "(cached) $ECHO_C" >&6
3533 # Double quotes because CPP needs to be expanded
3534 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3537 for ac_c_preproc_warn_flag in '' yes
3539 # Use a header file that comes with gcc, so configuring glibc
3540 # with a fresh cross-compiler works.
3541 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3542 # <limits.h> exists even on freestanding compilers.
3543 # On the NeXT, cc -E runs the code through the compiler's parser,
3544 # not just through cpp. "Syntax error" is here to catch this case.
3545 cat >conftest.$ac_ext <<_ACEOF
3548 cat confdefs.h >>conftest.$ac_ext
3549 cat >>conftest.$ac_ext <<_ACEOF
3550 /* end confdefs.h. */
3552 # include <limits.h>
3554 # include <assert.h>
3558 if { (ac_try="$ac_cpp conftest.$ac_ext"
3560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561 *) ac_try_echo=$ac_try;;
3563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3566 grep -v '^ *+' conftest.er1 >conftest.err
3568 cat conftest.err >&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); } >/dev/null && {
3571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3572 test ! -s conftest.err
3576 echo "$as_me: failed program was:" >&5
3577 sed 's/^/| /' conftest.$ac_ext >&5
3579 # Broken: fails on valid input.
3583 rm -f conftest.err conftest.$ac_ext
3585 # OK, works on sane cases. Now check whether nonexistent headers
3586 # can be detected and how.
3587 cat >conftest.$ac_ext <<_ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3593 #include <ac_nonexistent.h>
3595 if { (ac_try="$ac_cpp conftest.$ac_ext"
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3603 grep -v '^ *+' conftest.er1 >conftest.err
3605 cat conftest.err >&5
3606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3607 (exit $ac_status); } >/dev/null && {
3608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3609 test ! -s conftest.err
3611 # Broken: success on invalid input.
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3617 # Passes both tests.
3622 rm -f conftest.err conftest.$ac_ext
3625 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3626 rm -f conftest.err conftest.$ac_ext
3627 if $ac_preproc_ok; then
3639 { echo "$as_me:$LINENO: result: $CPP" >&5
3640 echo "${ECHO_T}$CPP" >&6; }
3642 for ac_c_preproc_warn_flag in '' yes
3644 # Use a header file that comes with gcc, so configuring glibc
3645 # with a fresh cross-compiler works.
3646 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3647 # <limits.h> exists even on freestanding compilers.
3648 # On the NeXT, cc -E runs the code through the compiler's parser,
3649 # not just through cpp. "Syntax error" is here to catch this case.
3650 cat >conftest.$ac_ext <<_ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3657 # include <limits.h>
3659 # include <assert.h>
3663 if { (ac_try="$ac_cpp conftest.$ac_ext"
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3671 grep -v '^ *+' conftest.er1 >conftest.err
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } >/dev/null && {
3676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3677 test ! -s conftest.err
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3684 # Broken: fails on valid input.
3688 rm -f conftest.err conftest.$ac_ext
3690 # OK, works on sane cases. Now check whether nonexistent headers
3691 # can be detected and how.
3692 cat >conftest.$ac_ext <<_ACEOF
3695 cat confdefs.h >>conftest.$ac_ext
3696 cat >>conftest.$ac_ext <<_ACEOF
3697 /* end confdefs.h. */
3698 #include <ac_nonexistent.h>
3700 if { (ac_try="$ac_cpp conftest.$ac_ext"
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3708 grep -v '^ *+' conftest.er1 >conftest.err
3710 cat conftest.err >&5
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } >/dev/null && {
3713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3714 test ! -s conftest.err
3716 # Broken: success on invalid input.
3719 echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3722 # Passes both tests.
3727 rm -f conftest.err conftest.$ac_ext
3730 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3731 rm -f conftest.err conftest.$ac_ext
3732 if $ac_preproc_ok; then
3735 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3736 See \`config.log' for more details." >&5
3737 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3738 See \`config.log' for more details." >&2;}
3739 { (exit 1); exit 1; }; }
3743 ac_cpp='$CPP $CPPFLAGS'
3744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3749 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3750 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3751 if test "${ac_cv_path_GREP+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 # Extract the first word of "grep ggrep" to use in msg output
3755 if test -z "$GREP"; then
3756 set dummy grep ggrep; ac_prog_name=$2
3757 if test "${ac_cv_path_GREP+set}" = set; then
3758 echo $ECHO_N "(cached) $ECHO_C" >&6
3760 ac_path_GREP_found=false
3761 # Loop through the user's path and test for each of PROGNAME-LIST
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3766 test -z "$as_dir" && as_dir=.
3767 for ac_prog in grep ggrep; do
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3770 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3771 # Check for GNU ac_path_GREP and select it if it is found.
3772 # Check for GNU $ac_path_GREP
3773 case `"$ac_path_GREP" --version 2>&1` in
3775 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3778 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3781 cat "conftest.in" "conftest.in" >"conftest.tmp"
3782 mv "conftest.tmp" "conftest.in"
3783 cp "conftest.in" "conftest.nl"
3784 echo 'GREP' >> "conftest.nl"
3785 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3786 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3787 ac_count=`expr $ac_count + 1`
3788 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3789 # Best one so far, save it but keep looking for a better one
3790 ac_cv_path_GREP="$ac_path_GREP"
3791 ac_path_GREP_max=$ac_count
3793 # 10*(2^10) chars as input seems more than enough
3794 test $ac_count -gt 10 && break
3796 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3800 $ac_path_GREP_found && break 3
3810 GREP="$ac_cv_path_GREP"
3811 if test -z "$GREP"; then
3812 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3813 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3814 { (exit 1); exit 1; }; }
3818 ac_cv_path_GREP=$GREP
3823 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3824 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3825 GREP="$ac_cv_path_GREP"
3828 { echo "$as_me:$LINENO: checking for egrep" >&5
3829 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3830 if test "${ac_cv_path_EGREP+set}" = set; then
3831 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3834 then ac_cv_path_EGREP="$GREP -E"
3836 # Extract the first word of "egrep" to use in msg output
3837 if test -z "$EGREP"; then
3838 set dummy egrep; ac_prog_name=$2
3839 if test "${ac_cv_path_EGREP+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 ac_path_EGREP_found=false
3843 # Loop through the user's path and test for each of PROGNAME-LIST
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3848 test -z "$as_dir" && as_dir=.
3849 for ac_prog in egrep; do
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3852 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3853 # Check for GNU ac_path_EGREP and select it if it is found.
3854 # Check for GNU $ac_path_EGREP
3855 case `"$ac_path_EGREP" --version 2>&1` in
3857 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3860 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3863 cat "conftest.in" "conftest.in" >"conftest.tmp"
3864 mv "conftest.tmp" "conftest.in"
3865 cp "conftest.in" "conftest.nl"
3866 echo 'EGREP' >> "conftest.nl"
3867 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3868 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3869 ac_count=`expr $ac_count + 1`
3870 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3871 # Best one so far, save it but keep looking for a better one
3872 ac_cv_path_EGREP="$ac_path_EGREP"
3873 ac_path_EGREP_max=$ac_count
3875 # 10*(2^10) chars as input seems more than enough
3876 test $ac_count -gt 10 && break
3878 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3882 $ac_path_EGREP_found && break 3
3892 EGREP="$ac_cv_path_EGREP"
3893 if test -z "$EGREP"; then
3894 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3895 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3896 { (exit 1); exit 1; }; }
3900 ac_cv_path_EGREP=$EGREP
3906 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3907 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3908 EGREP="$ac_cv_path_EGREP"
3911 if test $ac_cv_c_compiler_gnu = yes; then
3912 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3913 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3914 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3917 ac_pattern="Autoconf.*'x'"
3918 cat >conftest.$ac_ext <<_ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3928 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3929 ac_cv_prog_gcc_traditional=yes
3931 ac_cv_prog_gcc_traditional=no
3936 if test $ac_cv_prog_gcc_traditional = no; then
3937 cat >conftest.$ac_ext <<_ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3947 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3948 ac_cv_prog_gcc_traditional=yes
3954 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3955 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3956 if test $ac_cv_prog_gcc_traditional = yes; then
3957 CC="$CC -traditional"
3961 BASECC=`basename $CC`
3963 if test "x$BASECC" = xgcc; then
3964 cat >>confdefs.h <<\_ACEOF
3970 # Extract the first word of "$CXX", so it can be a program name with args.
3971 set dummy $CXX; ac_word=$2
3972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3974 if test "${ac_cv_path_CXX+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3979 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 test -z "$as_dir" && as_dir=.
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3989 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3997 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4002 if test -n "$CXX"; then
4003 { echo "$as_me:$LINENO: result: $CXX" >&5
4004 echo "${ECHO_T}$CXX" >&6; }
4006 { echo "$as_me:$LINENO: result: no" >&5
4007 echo "${ECHO_T}no" >&6; }
4011 if test ! -e $CXX; then
4012 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
4013 echo "$as_me: error: Unable to find C++ compiler" >&2;}
4014 { (exit 1); exit 1; }; }
4017 # Find a good install program. We prefer a C program (faster),
4018 # so one script is as good as another. But avoid the broken or
4019 # incompatible versions:
4020 # SysV /etc/install, /usr/sbin/install
4021 # SunOS /usr/etc/install
4022 # IRIX /sbin/install
4024 # AmigaOS /C/install, which installs bootblocks on floppy discs
4025 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4026 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4027 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4028 # OS/2's system install, which has a completely different semantic
4029 # ./install, which can be erroneously created by make from ./install.sh.
4030 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4031 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4032 if test -z "$INSTALL"; then
4033 if test "${ac_cv_path_install+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 test -z "$as_dir" && as_dir=.
4041 # Account for people who put trailing slashes in PATH elements.
4043 ./ | .// | /cC/* | \
4044 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4045 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4048 # OSF1 and SCO ODT 3.0 have their own names for install.
4049 # Don't use installbsd from OSF since it installs stuff as root
4051 for ac_prog in ginstall scoinst install; do
4052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4054 if test $ac_prog = install &&
4055 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4056 # AIX install. It has an incompatible calling convention.
4058 elif test $ac_prog = install &&
4059 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4060 # program-specific install script used by HP pwplus--don't use.
4063 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4076 if test "${ac_cv_path_install+set}" = set; then
4077 INSTALL=$ac_cv_path_install
4079 # As a last resort, use the slow shell script. Don't cache a
4080 # value for INSTALL within a source directory, because that will
4081 # break other packages using the cache if that directory is
4082 # removed, or if the value is a relative name.
4083 INSTALL=$ac_install_sh
4086 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4087 echo "${ECHO_T}$INSTALL" >&6; }
4089 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4090 # It thinks the first close brace ends the variable substitution.
4091 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4093 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4095 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4097 if test -n "$ac_tool_prefix"; then
4098 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4099 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4102 if test "${ac_cv_prog_RANLIB+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4105 if test -n "$RANLIB"; then
4106 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 test -z "$as_dir" && as_dir=.
4113 for ac_exec_ext in '' $ac_executable_extensions; do
4114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4115 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 RANLIB=$ac_cv_prog_RANLIB
4126 if test -n "$RANLIB"; then
4127 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4128 echo "${ECHO_T}$RANLIB" >&6; }
4130 { echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6; }
4136 if test -z "$ac_cv_prog_RANLIB"; then
4137 ac_ct_RANLIB=$RANLIB
4138 # Extract the first word of "ranlib", so it can be a program name with args.
4139 set dummy ranlib; ac_word=$2
4140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4142 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 if test -n "$ac_ct_RANLIB"; then
4146 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 test -z "$as_dir" && as_dir=.
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4155 ac_cv_prog_ac_ct_RANLIB="ranlib"
4156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4166 if test -n "$ac_ct_RANLIB"; then
4167 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4168 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4170 { echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6; }
4174 if test "x$ac_ct_RANLIB" = x; then
4177 case $cross_compiling:$ac_tool_warned in
4179 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4180 whose name does not start with the host triplet. If you think this
4181 configuration is useful to you, please write to autoconf@gnu.org." >&5
4182 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4183 whose name does not start with the host triplet. If you think this
4184 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4185 ac_tool_warned=yes ;;
4187 RANLIB=$ac_ct_RANLIB
4190 RANLIB="$ac_cv_prog_RANLIB"
4193 # Extract the first word of "mv", so it can be a program name with args.
4194 set dummy mv; ac_word=$2
4195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4197 if test "${ac_cv_path_MV+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4212 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4225 if test -n "$MV"; then
4226 { echo "$as_me:$LINENO: result: $MV" >&5
4227 echo "${ECHO_T}$MV" >&6; }
4229 { echo "$as_me:$LINENO: result: no" >&5
4230 echo "${ECHO_T}no" >&6; }
4234 # Extract the first word of "rm", so it can be a program name with args.
4235 set dummy rm; ac_word=$2
4236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4238 if test "${ac_cv_path_RM+set}" = set; then
4239 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250 test -z "$as_dir" && as_dir=.
4251 for ac_exec_ext in '' $ac_executable_extensions; do
4252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4253 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4266 if test -n "$RM"; then
4267 { echo "$as_me:$LINENO: result: $RM" >&5
4268 echo "${ECHO_T}$RM" >&6; }
4270 { echo "$as_me:$LINENO: result: no" >&5
4271 echo "${ECHO_T}no" >&6; }
4275 # Extract the first word of "cp", so it can be a program name with args.
4276 set dummy cp; ac_word=$2
4277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4279 if test "${ac_cv_path_CP+set}" = set; then
4280 echo $ECHO_N "(cached) $ECHO_C" >&6
4284 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291 test -z "$as_dir" && as_dir=.
4292 for ac_exec_ext in '' $ac_executable_extensions; do
4293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4294 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4307 if test -n "$CP"; then
4308 { echo "$as_me:$LINENO: result: $CP" >&5
4309 echo "${ECHO_T}$CP" >&6; }
4311 { echo "$as_me:$LINENO: result: no" >&5
4312 echo "${ECHO_T}no" >&6; }
4316 # Extract the first word of "sed", so it can be a program name with args.
4317 set dummy sed; ac_word=$2
4318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4320 if test "${ac_cv_path_SED+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4325 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4348 if test -n "$SED"; then
4349 { echo "$as_me:$LINENO: result: $SED" >&5
4350 echo "${ECHO_T}$SED" >&6; }
4352 { echo "$as_me:$LINENO: result: no" >&5
4353 echo "${ECHO_T}no" >&6; }
4357 # Extract the first word of "echo", so it can be a program name with args.
4358 set dummy echo; ac_word=$2
4359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4361 if test "${ac_cv_path_ECHO+set}" = set; then
4362 echo $ECHO_N "(cached) $ECHO_C" >&6
4366 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4373 test -z "$as_dir" && as_dir=.
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4376 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4384 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4388 ECHO=$ac_cv_path_ECHO
4389 if test -n "$ECHO"; then
4390 { echo "$as_me:$LINENO: result: $ECHO" >&5
4391 echo "${ECHO_T}$ECHO" >&6; }
4393 { echo "$as_me:$LINENO: result: no" >&5
4394 echo "${ECHO_T}no" >&6; }
4398 # Extract the first word of "cmp", so it can be a program name with args.
4399 set dummy cmp; ac_word=$2
4400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4402 if test "${ac_cv_path_CMP+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4414 test -z "$as_dir" && as_dir=.
4415 for ac_exec_ext in '' $ac_executable_extensions; do
4416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4417 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4425 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4430 if test -n "$CMP"; then
4431 { echo "$as_me:$LINENO: result: $CMP" >&5
4432 echo "${ECHO_T}$CMP" >&6; }
4434 { echo "$as_me:$LINENO: result: no" >&5
4435 echo "${ECHO_T}no" >&6; }
4439 # Extract the first word of "tbl", so it can be a program name with args.
4440 set dummy tbl; ac_word=$2
4441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4443 if test "${ac_cv_path_TBL+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4448 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4455 test -z "$as_dir" && as_dir=.
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4458 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4471 if test -n "$TBL"; then
4472 { echo "$as_me:$LINENO: result: $TBL" >&5
4473 echo "${ECHO_T}$TBL" >&6; }
4475 { echo "$as_me:$LINENO: result: no" >&5
4476 echo "${ECHO_T}no" >&6; }
4480 # Extract the first word of "ar", so it can be a program name with args.
4481 set dummy ar; ac_word=$2
4482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4484 if test "${ac_cv_path_AR+set}" = set; then
4485 echo $ECHO_N "(cached) $ECHO_C" >&6
4489 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496 test -z "$as_dir" && as_dir=.
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4499 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4507 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4512 if test -n "$AR"; then
4513 { echo "$as_me:$LINENO: result: $AR" >&5
4514 echo "${ECHO_T}$AR" >&6; }
4516 { echo "$as_me:$LINENO: result: no" >&5
4517 echo "${ECHO_T}no" >&6; }
4521 # Extract the first word of "openssl", so it can be a program name with args.
4522 set dummy openssl; ac_word=$2
4523 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4525 if test "${ac_cv_path_OPENSSL+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4552 OPENSSL=$ac_cv_path_OPENSSL
4553 if test -n "$OPENSSL"; then
4554 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4555 echo "${ECHO_T}$OPENSSL" >&6; }
4557 { echo "$as_me:$LINENO: result: no" >&5
4558 echo "${ECHO_T}no" >&6; }
4562 # Extract the first word of "mtx", so it can be a program name with args.
4563 set dummy mtx; ac_word=$2
4564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4566 if test "${ac_cv_path_MTX+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4581 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4589 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4594 if test -n "$MTX"; then
4595 { echo "$as_me:$LINENO: result: $MTX" >&5
4596 echo "${ECHO_T}$MTX" >&6; }
4598 { echo "$as_me:$LINENO: result: no" >&5
4599 echo "${ECHO_T}no" >&6; }
4603 # Extract the first word of "dd", so it can be a program name with args.
4604 set dummy dd; ac_word=$2
4605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4607 if test "${ac_cv_path_DD+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4612 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4635 if test -n "$DD"; then
4636 { echo "$as_me:$LINENO: result: $DD" >&5
4637 echo "${ECHO_T}$DD" >&6; }
4639 { echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6; }
4644 # Extract the first word of "mkisofs", so it can be a program name with args.
4645 set dummy mkisofs; ac_word=$2
4646 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4648 if test "${ac_cv_path_MKISOFS+set}" = set; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4653 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4663 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4664 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4671 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4675 MKISOFS=$ac_cv_path_MKISOFS
4676 if test -n "$MKISOFS"; then
4677 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4678 echo "${ECHO_T}$MKISOFS" >&6; }
4680 { echo "$as_me:$LINENO: result: no" >&5
4681 echo "${ECHO_T}no" >&6; }
4685 # Extract the first word of "python", so it can be a program name with args.
4686 set dummy python; ac_word=$2
4687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4689 if test "${ac_cv_path_PYTHON+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4694 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4716 PYTHON=$ac_cv_path_PYTHON
4717 if test -n "$PYTHON"; then
4718 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4719 echo "${ECHO_T}$PYTHON" >&6; }
4721 { echo "$as_me:$LINENO: result: no" >&5
4722 echo "${ECHO_T}no" >&6; }
4726 # Extract the first word of "growisofs", so it can be a program name with args.
4727 set dummy growisofs; ac_word=$2
4728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4730 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4745 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4757 GROWISOFS=$ac_cv_path_GROWISOFS
4758 if test -n "$GROWISOFS"; then
4759 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4760 echo "${ECHO_T}$GROWISOFS" >&6; }
4762 { echo "$as_me:$LINENO: result: no" >&5
4763 echo "${ECHO_T}no" >&6; }
4767 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4768 set dummy dvd+rw-mediainfo; ac_word=$2
4769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4771 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4772 echo $ECHO_N "(cached) $ECHO_C" >&6
4774 case $DVDRWMEDIAINFO in
4776 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4786 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4798 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4799 if test -n "$DVDRWMEDIAINFO"; then
4800 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4801 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4803 { echo "$as_me:$LINENO: result: no" >&5
4804 echo "${ECHO_T}no" >&6; }
4808 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4809 set dummy dvd+rw-format; ac_word=$2
4810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4812 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 case $DVDRWFORMAT in
4817 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4839 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4840 if test -n "$DVDRWFORMAT"; then
4841 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4842 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4844 { echo "$as_me:$LINENO: result: no" >&5
4845 echo "${ECHO_T}no" >&6; }
4849 # Extract the first word of "pkg-config", so it can be a program name with args.
4850 set dummy pkg-config; ac_word=$2
4851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4853 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4854 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 test -z "$as_dir" && as_dir=.
4866 for ac_exec_ext in '' $ac_executable_extensions; do
4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4876 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4880 PKGCONFIG=$ac_cv_path_PKGCONFIG
4881 if test -n "$PKGCONFIG"; then
4882 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4883 echo "${ECHO_T}$PKGCONFIG" >&6; }
4885 { echo "$as_me:$LINENO: result: no" >&5
4886 echo "${ECHO_T}no" >&6; }
4890 # Extract the first word of "qmake", so it can be a program name with args.
4891 set dummy qmake; ac_word=$2
4892 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4894 if test "${ac_cv_path_QMAKE+set}" = set; then
4895 echo $ECHO_N "(cached) $ECHO_C" >&6
4899 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 test -z "$as_dir" && as_dir=.
4907 for ac_exec_ext in '' $ac_executable_extensions; do
4908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4909 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4917 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4921 QMAKE=$ac_cv_path_QMAKE
4922 if test -n "$QMAKE"; then
4923 { echo "$as_me:$LINENO: result: $QMAKE" >&5
4924 echo "${ECHO_T}$QMAKE" >&6; }
4926 { echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6; }
4931 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4932 set dummy qmake-qt4; ac_word=$2
4933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4935 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4936 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4962 QMAKEQT4=$ac_cv_path_QMAKEQT4
4963 if test -n "$QMAKEQT4"; then
4964 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4965 echo "${ECHO_T}$QMAKEQT4" >&6; }
4967 { echo "$as_me:$LINENO: result: no" >&5
4968 echo "${ECHO_T}no" >&6; }
4973 if test "x$WXCONFIG" = x; then
4976 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4977 set dummy ${WXCONFIG}; ac_word=$2
4978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4980 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4981 echo $ECHO_N "(cached) $ECHO_C" >&6
4985 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5007 WXCONFIG=$ac_cv_path_WXCONFIG
5008 if test -n "$WXCONFIG"; then
5009 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
5010 echo "${ECHO_T}$WXCONFIG" >&6; }
5012 { echo "$as_me:$LINENO: result: no" >&5
5013 echo "${ECHO_T}no" >&6; }
5018 # Extract the first word of "cdrecord", so it can be a program name with args.
5019 set dummy cdrecord; ac_word=$2
5020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5022 if test "${ac_cv_path_CDRECORD+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5045 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5049 CDRECORD=$ac_cv_path_CDRECORD
5050 if test -n "$CDRECORD"; then
5051 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5052 echo "${ECHO_T}$CDRECORD" >&6; }
5054 { echo "$as_me:$LINENO: result: no" >&5
5055 echo "${ECHO_T}no" >&6; }
5059 # Extract the first word of "pidof", so it can be a program name with args.
5060 set dummy pidof; ac_word=$2
5061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5063 if test "${ac_cv_path_PIDOF+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 test -z "$as_dir" && as_dir=.
5076 for ac_exec_ext in '' $ac_executable_extensions; do
5077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5090 PIDOF=$ac_cv_path_PIDOF
5091 if test -n "$PIDOF"; then
5092 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5093 echo "${ECHO_T}$PIDOF" >&6; }
5095 { echo "$as_me:$LINENO: result: no" >&5
5096 echo "${ECHO_T}no" >&6; }
5100 for ac_prog in gawk mawk nawk awk
5102 # Extract the first word of "$ac_prog", so it can be a program name with args.
5103 set dummy $ac_prog; ac_word=$2
5104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5106 if test "${ac_cv_prog_AWK+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5109 if test -n "$AWK"; then
5110 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 test -z "$as_dir" && as_dir=.
5117 for ac_exec_ext in '' $ac_executable_extensions; do
5118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5119 ac_cv_prog_AWK="$ac_prog"
5120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 if test -n "$AWK"; then
5131 { echo "$as_me:$LINENO: result: $AWK" >&5
5132 echo "${ECHO_T}$AWK" >&6; }
5134 { echo "$as_me:$LINENO: result: no" >&5
5135 echo "${ECHO_T}no" >&6; }
5139 test -n "$AWK" && break
5142 # Some AWK programs fail, so test it and warn the user
5143 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5144 { if ((prog == $2) || (("(" prog ")") == $2) ||
5145 (("" prog "") == $2) ||
5146 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5148 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5149 The regex engine of $AWK is too broken to be used you
5150 might want to install GNU AWK.
5151 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5152 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5153 The regex engine of $AWK is too broken to be used you
5154 might want to install GNU AWK.
5155 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5156 { (exit 1); exit 1; }; }
5159 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5160 set dummy $THE_AWK; ac_word=$2
5161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5163 if test "${ac_cv_path_AWK+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5191 if test -n "$AWK"; then
5192 { echo "$as_me:$LINENO: result: $AWK" >&5
5193 echo "${ECHO_T}$AWK" >&6; }
5195 { echo "$as_me:$LINENO: result: no" >&5
5196 echo "${ECHO_T}no" >&6; }
5202 test -n "$ARFLAG" || ARFLAGS="cr"
5213 # Make sure we can run config.sub.
5214 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5215 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5216 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5217 { (exit 1); exit 1; }; }
5219 { echo "$as_me:$LINENO: checking build system type" >&5
5220 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5221 if test "${ac_cv_build+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 ac_build_alias=$build_alias
5225 test "x$ac_build_alias" = x &&
5226 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5227 test "x$ac_build_alias" = x &&
5228 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5229 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5230 { (exit 1); exit 1; }; }
5231 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5232 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5233 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5234 { (exit 1); exit 1; }; }
5237 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5238 echo "${ECHO_T}$ac_cv_build" >&6; }
5239 case $ac_cv_build in
5241 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5242 echo "$as_me: error: invalid value of canonical build" >&2;}
5243 { (exit 1); exit 1; }; };;
5246 ac_save_IFS=$IFS; IFS='-'
5252 # Remember, the first character of IFS is used to create $*,
5253 # except with old shells:
5256 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5260 { echo "$as_me:$LINENO: checking host system type" >&5
5261 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5262 if test "${ac_cv_host+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5265 if test "x$host_alias" = x; then
5266 ac_cv_host=$ac_cv_build
5268 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5269 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5270 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5271 { (exit 1); exit 1; }; }
5275 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5276 echo "${ECHO_T}$ac_cv_host" >&6; }
5279 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5280 echo "$as_me: error: invalid value of canonical host" >&2;}
5281 { (exit 1); exit 1; }; };;
5284 ac_save_IFS=$IFS; IFS='-'
5290 # Remember, the first character of IFS is used to create $*,
5291 # except with old shells:
5294 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5298 *cygwin* ) CYGWIN=yes;;
5302 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5308 HAVE_SUN_OS_FALSE='#'
5310 HAVE_SUN_OS_TRUE='#'
5313 cat >>confdefs.h <<\_ACEOF
5314 #define HAVE_SUN_OS 1
5322 HAVE_SUN_OS_FALSE='#'
5324 HAVE_SUN_OS_TRUE='#'
5329 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5335 HAVE_OSF1_OS_FALSE='#'
5337 HAVE_OSF1_OS_TRUE='#'
5340 cat >>confdefs.h <<\_ACEOF
5341 #define HAVE_OSF1_OS 1
5349 HAVE_OSF1_OS_FALSE='#'
5351 HAVE_OSF1_OS_TRUE='#'
5356 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5362 HAVE_AIX_OS_FALSE='#'
5364 HAVE_AIX_OS_TRUE='#'
5367 cat >>confdefs.h <<\_ACEOF
5368 #define HAVE_AIX_OS 1
5376 HAVE_AIX_OS_FALSE='#'
5378 HAVE_AIX_OS_TRUE='#'
5383 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5389 HAVE_HPUX_OS_FALSE='#'
5391 HAVE_HPUX_OS_TRUE='#'
5394 cat >>confdefs.h <<\_ACEOF
5395 #define HAVE_HPUX_OS 1
5403 HAVE_HPUX_OS_FALSE='#'
5405 HAVE_HPUX_OS_TRUE='#'
5410 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5416 HAVE_LINUX_OS_FALSE='#'
5418 HAVE_LINUX_OS_TRUE='#'
5419 HAVE_LINUX_OS_FALSE=
5421 cat >>confdefs.h <<\_ACEOF
5422 #define HAVE_LINUX_OS 1
5430 HAVE_LINUX_OS_FALSE='#'
5432 HAVE_LINUX_OS_TRUE='#'
5433 HAVE_LINUX_OS_FALSE=
5437 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5442 HAVE_FREEBSD_OS_TRUE=
5443 HAVE_FREEBSD_OS_FALSE='#'
5445 HAVE_FREEBSD_OS_TRUE='#'
5446 HAVE_FREEBSD_OS_FALSE=
5448 cat >>confdefs.h <<\_ACEOF
5449 #define HAVE_FREEBSD_OS 1
5456 HAVE_FREEBSD_OS_TRUE=
5457 HAVE_FREEBSD_OS_FALSE='#'
5459 HAVE_FREEBSD_OS_TRUE='#'
5460 HAVE_FREEBSD_OS_FALSE=
5464 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5469 HAVE_NETBSD_OS_TRUE=
5470 HAVE_NETBSD_OS_FALSE='#'
5472 HAVE_NETBSD_OS_TRUE='#'
5473 HAVE_NETBSD_OS_FALSE=
5475 cat >>confdefs.h <<\_ACEOF
5476 #define HAVE_NETBSD_OS 1
5483 HAVE_NETBSD_OS_TRUE=
5484 HAVE_NETBSD_OS_FALSE='#'
5486 HAVE_NETBSD_OS_TRUE='#'
5487 HAVE_NETBSD_OS_FALSE=
5491 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5496 HAVE_OPENBSD_OS_TRUE=
5497 HAVE_OPENBSD_OS_FALSE='#'
5499 HAVE_OPENBSD_OS_TRUE='#'
5500 HAVE_OPENBSD_OS_FALSE=
5502 cat >>confdefs.h <<\_ACEOF
5503 #define HAVE_OPENBSD_OS 1
5510 HAVE_OPENBSD_OS_TRUE=
5511 HAVE_OPENBSD_OS_FALSE='#'
5513 HAVE_OPENBSD_OS_TRUE='#'
5514 HAVE_OPENBSD_OS_FALSE=
5518 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5524 HAVE_BSDI_OS_FALSE='#'
5526 HAVE_BSDI_OS_TRUE='#'
5529 cat >>confdefs.h <<\_ACEOF
5530 #define HAVE_BSDI_OS 1
5538 HAVE_BSDI_OS_FALSE='#'
5540 HAVE_BSDI_OS_TRUE='#'
5545 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5551 HAVE_SGI_OS_FALSE='#'
5553 HAVE_SGI_OS_TRUE='#'
5556 cat >>confdefs.h <<\_ACEOF
5557 #define HAVE_SGI_OS 1
5565 HAVE_SGI_OS_FALSE='#'
5567 HAVE_SGI_OS_TRUE='#'
5572 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5578 HAVE_IRIX_OS_FALSE='#'
5580 HAVE_IRIX_OS_TRUE='#'
5583 cat >>confdefs.h <<\_ACEOF
5584 #define HAVE_IRIX_OS 1
5592 HAVE_IRIX_OS_FALSE='#'
5594 HAVE_IRIX_OS_TRUE='#'
5599 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5604 HAVE_DARWIN_OS_TRUE=
5605 HAVE_DARWIN_OS_FALSE='#'
5607 HAVE_DARWIN_OS_TRUE='#'
5608 HAVE_DARWIN_OS_FALSE=
5610 cat >>confdefs.h <<\_ACEOF
5611 #define HAVE_DARWIN_OS 1
5618 HAVE_DARWIN_OS_TRUE=
5619 HAVE_DARWIN_OS_FALSE='#'
5621 HAVE_DARWIN_OS_TRUE='#'
5622 HAVE_DARWIN_OS_FALSE=
5627 # -----------------------------------------------------------
5628 # ----------------------------------------------------------
5629 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5630 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5631 if test "x$DISTNAME" != "x"
5633 echo "distname set to $DISTNAME"
5634 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5637 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5640 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5643 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5646 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5649 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5652 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5655 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5658 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5661 elif test -f /etc/SuSE-release
5664 elif test -d /etc/SuSEconfig
5667 elif test -f /etc/mandrake-release
5670 elif test -f /etc/whitebox-release
5673 elif test -f /etc/redhat-release
5676 elif test -f /etc/gentoo-release
5679 elif test -f /etc/debian_version
5682 elif test -f /etc/slackware-version
5685 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5688 elif test -f /etc/engarde-version
5691 elif test "$CYGWIN" = yes
5694 cat >>confdefs.h <<\_ACEOF
5695 #define HAVE_CYGWIN 1
5701 { echo "$as_me:$LINENO: result: done" >&5
5702 echo "${ECHO_T}done" >&6; }
5705 # --------------------------------------------------
5706 # Suppport for gettext (translations)
5707 # By default, $datadir is ${prefix}/share
5708 # --------------------------------------------------
5709 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5710 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5711 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5712 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5715 cat >conftest.make <<\_ACEOF
5718 @echo '@@@%%%=$(MAKE)=@@@%%%'
5720 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5721 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5723 eval ac_cv_prog_make_${ac_make}_set=yes;;
5725 eval ac_cv_prog_make_${ac_make}_set=no;;
5729 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5730 { echo "$as_me:$LINENO: result: yes" >&5
5731 echo "${ECHO_T}yes" >&6; }
5734 { echo "$as_me:$LINENO: result: no" >&5
5735 echo "${ECHO_T}no" >&6; }
5736 SET_MAKE="MAKE=${MAKE-make}"
5742 if test -n "$ac_aux_dir"; then
5743 case "$ac_aux_dir" in
5744 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5745 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5748 if test -z "$MKINSTALLDIRS"; then
5749 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5754 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5755 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5756 # Check whether --enable-nls was given.
5757 if test "${enable_nls+set}" = set; then
5758 enableval=$enable_nls; USE_NLS=$enableval
5763 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5764 echo "${ECHO_T}$USE_NLS" >&6; }
5771 # Prepare PATH_SEPARATOR.
5772 # The user is always right.
5773 if test "${PATH_SEPARATOR+set}" != set; then
5774 echo "#! /bin/sh" >conf$$.sh
5775 echo "exit 0" >>conf$$.sh
5777 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5785 # Find out how to test for executable files. Don't use a zero-byte file,
5786 # as systems may use methods other than mode bits to determine executability.
5787 cat >conf$$.file <<_ASEOF
5791 chmod +x conf$$.file
5792 if test -x conf$$.file >/dev/null 2>&1; then
5793 ac_executable_p="test -x"
5795 ac_executable_p="test -f"
5799 # Extract the first word of "msgfmt", so it can be a program name with args.
5800 set dummy msgfmt; ac_word=$2
5801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5803 if test "${ac_cv_path_MSGFMT+set}" = set; then
5804 echo $ECHO_N "(cached) $ECHO_C" >&6
5808 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5811 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5812 for ac_dir in $PATH; do
5814 test -z "$ac_dir" && ac_dir=.
5815 for ac_exec_ext in '' $ac_executable_extensions; do
5816 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5817 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5818 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5819 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5820 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5827 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5831 MSGFMT="$ac_cv_path_MSGFMT"
5832 if test "$MSGFMT" != ":"; then
5833 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5834 echo "${ECHO_T}$MSGFMT" >&6; }
5836 { echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6; }
5840 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5841 set dummy gmsgfmt; ac_word=$2
5842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5844 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 test -z "$as_dir" && as_dir=.
5857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5859 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5871 GMSGFMT=$ac_cv_path_GMSGFMT
5872 if test -n "$GMSGFMT"; then
5873 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5874 echo "${ECHO_T}$GMSGFMT" >&6; }
5876 { echo "$as_me:$LINENO: result: no" >&5
5877 echo "${ECHO_T}no" >&6; }
5883 # Prepare PATH_SEPARATOR.
5884 # The user is always right.
5885 if test "${PATH_SEPARATOR+set}" != set; then
5886 echo "#! /bin/sh" >conf$$.sh
5887 echo "exit 0" >>conf$$.sh
5889 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5897 # Find out how to test for executable files. Don't use a zero-byte file,
5898 # as systems may use methods other than mode bits to determine executability.
5899 cat >conf$$.file <<_ASEOF
5903 chmod +x conf$$.file
5904 if test -x conf$$.file >/dev/null 2>&1; then
5905 ac_executable_p="test -x"
5907 ac_executable_p="test -f"
5911 # Extract the first word of "xgettext", so it can be a program name with args.
5912 set dummy xgettext; ac_word=$2
5913 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5915 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5923 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5924 for ac_dir in $PATH; do
5926 test -z "$ac_dir" && ac_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5929 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5930 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5931 (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
5932 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5939 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5943 XGETTEXT="$ac_cv_path_XGETTEXT"
5944 if test "$XGETTEXT" != ":"; then
5945 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5946 echo "${ECHO_T}$XGETTEXT" >&6; }
5948 { echo "$as_me:$LINENO: result: no" >&5
5949 echo "${ECHO_T}no" >&6; }
5955 # Prepare PATH_SEPARATOR.
5956 # The user is always right.
5957 if test "${PATH_SEPARATOR+set}" != set; then
5958 echo "#! /bin/sh" >conf$$.sh
5959 echo "exit 0" >>conf$$.sh
5961 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5969 # Find out how to test for executable files. Don't use a zero-byte file,
5970 # as systems may use methods other than mode bits to determine executability.
5971 cat >conf$$.file <<_ASEOF
5975 chmod +x conf$$.file
5976 if test -x conf$$.file >/dev/null 2>&1; then
5977 ac_executable_p="test -x"
5979 ac_executable_p="test -f"
5983 # Extract the first word of "msgmerge", so it can be a program name with args.
5984 set dummy msgmerge; ac_word=$2
5985 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5986 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5987 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5995 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5996 for ac_dir in $PATH; do
5998 test -z "$ac_dir" && ac_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6001 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6002 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6003 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6010 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6014 MSGMERGE="$ac_cv_path_MSGMERGE"
6015 if test "$MSGMERGE" != ":"; then
6016 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6017 echo "${ECHO_T}$MSGMERGE" >&6; }
6019 { echo "$as_me:$LINENO: result: no" >&5
6020 echo "${ECHO_T}no" >&6; }
6024 if test "$GMSGFMT" != ":"; then
6025 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6026 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6029 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6030 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6031 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6036 if test "$XGETTEXT" != ":"; then
6037 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6038 (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
6041 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6042 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6048 ac_config_commands="$ac_config_commands default-1"
6052 if test "X$prefix" = "XNONE"; then
6053 acl_final_prefix="$ac_default_prefix"
6055 acl_final_prefix="$prefix"
6057 if test "X$exec_prefix" = "XNONE"; then
6058 acl_final_exec_prefix='${prefix}'
6060 acl_final_exec_prefix="$exec_prefix"
6062 acl_save_prefix="$prefix"
6063 prefix="$acl_final_prefix"
6064 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6065 prefix="$acl_save_prefix"
6068 # Check whether --with-gnu-ld was given.
6069 if test "${with_gnu_ld+set}" = set; then
6070 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6075 # Prepare PATH_SEPARATOR.
6076 # The user is always right.
6077 if test "${PATH_SEPARATOR+set}" != set; then
6078 echo "#! /bin/sh" >conf$$.sh
6079 echo "exit 0" >>conf$$.sh
6081 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6089 if test "$GCC" = yes; then
6090 # Check if gcc -print-prog-name=ld gives a path.
6091 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6092 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6095 # gcc leaves a trailing carriage return which upsets mingw
6096 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6098 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6101 # Accept absolute paths.
6102 [\\/]* | [A-Za-z]:[\\/]*)
6103 re_direlt='/[^/][^/]*/\.\./'
6104 # Canonicalize the path of ld
6105 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6106 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6107 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6109 test -z "$LD" && LD="$ac_prog"
6112 # If it fails, then pretend we aren't using GCC.
6116 # If it is relative, then search for the first ld in PATH.
6120 elif test "$with_gnu_ld" = yes; then
6121 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6122 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6124 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6125 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6127 if test "${acl_cv_path_LD+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 if test -z "$LD"; then
6131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6132 for ac_dir in $PATH; do
6133 test -z "$ac_dir" && ac_dir=.
6134 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6135 acl_cv_path_LD="$ac_dir/$ac_prog"
6136 # Check to see if the program is GNU ld. I'd rather use --version,
6137 # but apparently some GNU ld's only accept -v.
6138 # Break only if it was the GNU/non-GNU ld that we prefer.
6139 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6140 *GNU* | *'with BFD'*)
6141 test "$with_gnu_ld" != no && break ;;
6143 test "$with_gnu_ld" != yes && break ;;
6149 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6153 LD="$acl_cv_path_LD"
6154 if test -n "$LD"; then
6155 { echo "$as_me:$LINENO: result: $LD" >&5
6156 echo "${ECHO_T}$LD" >&6; }
6158 { echo "$as_me:$LINENO: result: no" >&5
6159 echo "${ECHO_T}no" >&6; }
6161 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6162 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6163 { (exit 1); exit 1; }; }
6164 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6165 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6166 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6170 case `$LD -v 2>&1 </dev/null` in
6171 *GNU* | *'with BFD'*)
6172 acl_cv_prog_gnu_ld=yes ;;
6174 acl_cv_prog_gnu_ld=no ;;
6177 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6178 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6179 with_gnu_ld=$acl_cv_prog_gnu_ld
6184 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6185 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6186 if test "${acl_cv_rpath+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6191 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6197 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6198 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6200 libext="$acl_cv_libext"
6201 shlibext="$acl_cv_shlibext"
6202 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6203 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6204 hardcode_direct="$acl_cv_hardcode_direct"
6205 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6206 # Check whether --enable-rpath was given.
6207 if test "${enable_rpath+set}" = set; then
6208 enableval=$enable_rpath; :
6222 acl_save_prefix="$prefix"
6223 prefix="$acl_final_prefix"
6224 acl_save_exec_prefix="$exec_prefix"
6225 exec_prefix="$acl_final_exec_prefix"
6227 eval additional_includedir=\"$includedir\"
6228 eval additional_libdir=\"$libdir\"
6230 exec_prefix="$acl_save_exec_prefix"
6231 prefix="$acl_save_prefix"
6234 # Check whether --with-libiconv-prefix was given.
6235 if test "${with_libiconv_prefix+set}" = set; then
6236 withval=$with_libiconv_prefix;
6237 if test "X$withval" = "Xno"; then
6240 if test "X$withval" = "X"; then
6242 acl_save_prefix="$prefix"
6243 prefix="$acl_final_prefix"
6244 acl_save_exec_prefix="$exec_prefix"
6245 exec_prefix="$acl_final_exec_prefix"
6247 eval additional_includedir=\"$includedir\"
6248 eval additional_libdir=\"$libdir\"
6250 exec_prefix="$acl_save_exec_prefix"
6251 prefix="$acl_save_prefix"
6254 additional_includedir="$withval/include"
6255 additional_libdir="$withval/lib"
6266 names_already_handled=
6267 names_next_round='iconv '
6268 while test -n "$names_next_round"; do
6269 names_this_round="$names_next_round"
6271 for name in $names_this_round; do
6273 for n in $names_already_handled; do
6274 if test "$n" = "$name"; then
6279 if test -z "$already_handled"; then
6280 names_already_handled="$names_already_handled $name"
6281 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6282 eval value=\"\$HAVE_LIB$uppername\"
6283 if test -n "$value"; then
6284 if test "$value" = yes; then
6285 eval value=\"\$LIB$uppername\"
6286 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6287 eval value=\"\$LTLIB$uppername\"
6288 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6297 if test $use_additional = yes; then
6298 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6299 found_dir="$additional_libdir"
6300 found_so="$additional_libdir/lib$name.$shlibext"
6301 if test -f "$additional_libdir/lib$name.la"; then
6302 found_la="$additional_libdir/lib$name.la"
6305 if test -f "$additional_libdir/lib$name.$libext"; then
6306 found_dir="$additional_libdir"
6307 found_a="$additional_libdir/lib$name.$libext"
6308 if test -f "$additional_libdir/lib$name.la"; then
6309 found_la="$additional_libdir/lib$name.la"
6314 if test "X$found_dir" = "X"; then
6315 for x in $LDFLAGS $LTLIBICONV; do
6317 acl_save_prefix="$prefix"
6318 prefix="$acl_final_prefix"
6319 acl_save_exec_prefix="$exec_prefix"
6320 exec_prefix="$acl_final_exec_prefix"
6322 exec_prefix="$acl_save_exec_prefix"
6323 prefix="$acl_save_prefix"
6327 dir=`echo "X$x" | sed -e 's/^X-L//'`
6328 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6330 found_so="$dir/lib$name.$shlibext"
6331 if test -f "$dir/lib$name.la"; then
6332 found_la="$dir/lib$name.la"
6335 if test -f "$dir/lib$name.$libext"; then
6337 found_a="$dir/lib$name.$libext"
6338 if test -f "$dir/lib$name.la"; then
6339 found_la="$dir/lib$name.la"
6345 if test "X$found_dir" != "X"; then
6350 if test "X$found_dir" != "X"; then
6351 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6352 if test "X$found_so" != "X"; then
6353 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6354 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6357 for x in $ltrpathdirs; do
6358 if test "X$x" = "X$found_dir"; then
6363 if test -z "$haveit"; then
6364 ltrpathdirs="$ltrpathdirs $found_dir"
6366 if test "$hardcode_direct" = yes; then
6367 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6369 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6370 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6372 for x in $rpathdirs; do
6373 if test "X$x" = "X$found_dir"; then
6378 if test -z "$haveit"; then
6379 rpathdirs="$rpathdirs $found_dir"
6383 for x in $LDFLAGS $LIBICONV; do
6385 acl_save_prefix="$prefix"
6386 prefix="$acl_final_prefix"
6387 acl_save_exec_prefix="$exec_prefix"
6388 exec_prefix="$acl_final_exec_prefix"
6390 exec_prefix="$acl_save_exec_prefix"
6391 prefix="$acl_save_prefix"
6393 if test "X$x" = "X-L$found_dir"; then
6398 if test -z "$haveit"; then
6399 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6401 if test "$hardcode_minus_L" != no; then
6402 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6404 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6410 if test "X$found_a" != "X"; then
6411 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6413 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6416 additional_includedir=
6417 case "$found_dir" in
6419 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6420 additional_includedir="$basedir/include"
6423 if test "X$additional_includedir" != "X"; then
6424 if test "X$additional_includedir" != "X/usr/include"; then
6426 if test "X$additional_includedir" = "X/usr/local/include"; then
6427 if test -n "$GCC"; then
6429 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6433 if test -z "$haveit"; then
6434 for x in $CPPFLAGS $INCICONV; do
6436 acl_save_prefix="$prefix"
6437 prefix="$acl_final_prefix"
6438 acl_save_exec_prefix="$exec_prefix"
6439 exec_prefix="$acl_final_exec_prefix"
6441 exec_prefix="$acl_save_exec_prefix"
6442 prefix="$acl_save_prefix"
6444 if test "X$x" = "X-I$additional_includedir"; then
6449 if test -z "$haveit"; then
6450 if test -d "$additional_includedir"; then
6451 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6457 if test -n "$found_la"; then
6458 save_libdir="$libdir"
6460 */* | *\\*) . "$found_la" ;;
6461 *) . "./$found_la" ;;
6463 libdir="$save_libdir"
6464 for dep in $dependency_libs; do
6467 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6468 if test "X$additional_libdir" != "X/usr/lib"; then
6470 if test "X$additional_libdir" = "X/usr/local/lib"; then
6471 if test -n "$GCC"; then
6473 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6477 if test -z "$haveit"; then
6479 for x in $LDFLAGS $LIBICONV; do
6481 acl_save_prefix="$prefix"
6482 prefix="$acl_final_prefix"
6483 acl_save_exec_prefix="$exec_prefix"
6484 exec_prefix="$acl_final_exec_prefix"
6486 exec_prefix="$acl_save_exec_prefix"
6487 prefix="$acl_save_prefix"
6489 if test "X$x" = "X-L$additional_libdir"; then
6494 if test -z "$haveit"; then
6495 if test -d "$additional_libdir"; then
6496 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6500 for x in $LDFLAGS $LTLIBICONV; do
6502 acl_save_prefix="$prefix"
6503 prefix="$acl_final_prefix"
6504 acl_save_exec_prefix="$exec_prefix"
6505 exec_prefix="$acl_final_exec_prefix"
6507 exec_prefix="$acl_save_exec_prefix"
6508 prefix="$acl_save_prefix"
6510 if test "X$x" = "X-L$additional_libdir"; then
6515 if test -z "$haveit"; then
6516 if test -d "$additional_libdir"; then
6517 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6524 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6525 if test "$enable_rpath" != no; then
6527 for x in $rpathdirs; do
6528 if test "X$x" = "X$dir"; then
6533 if test -z "$haveit"; then
6534 rpathdirs="$rpathdirs $dir"
6537 for x in $ltrpathdirs; do
6538 if test "X$x" = "X$dir"; then
6543 if test -z "$haveit"; then
6544 ltrpathdirs="$ltrpathdirs $dir"
6549 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6552 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6555 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6556 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6562 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6563 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6569 if test "X$rpathdirs" != "X"; then
6570 if test -n "$hardcode_libdir_separator"; then
6572 for found_dir in $rpathdirs; do
6573 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6575 acl_save_libdir="$libdir"
6577 eval flag=\"$hardcode_libdir_flag_spec\"
6578 libdir="$acl_save_libdir"
6579 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6581 for found_dir in $rpathdirs; do
6582 acl_save_libdir="$libdir"
6584 eval flag=\"$hardcode_libdir_flag_spec\"
6585 libdir="$acl_save_libdir"
6586 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6590 if test "X$ltrpathdirs" != "X"; then
6591 for found_dir in $ltrpathdirs; do
6592 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6613 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6614 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6615 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6616 echo $ECHO_N "(cached) $ECHO_C" >&6
6618 gt_save_CPPFLAGS="$CPPFLAGS"
6619 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6620 gt_save_LIBS="$LIBS"
6621 LIBS="$LIBS -framework CoreFoundation"
6622 cat >conftest.$ac_ext <<_ACEOF
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6628 #include <CFPreferences.h>
6632 CFPreferencesCopyAppValue(NULL, NULL)
6637 rm -f conftest.$ac_objext conftest$ac_exeext
6638 if { (ac_try="$ac_link"
6640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6641 *) ac_try_echo=$ac_try;;
6643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6644 (eval "$ac_link") 2>conftest.er1
6646 grep -v '^ *+' conftest.er1 >conftest.err
6648 cat conftest.err >&5
6649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } && {
6651 test -z "$ac_c_werror_flag" ||
6652 test ! -s conftest.err
6653 } && test -s conftest$ac_exeext &&
6654 $as_test_x conftest$ac_exeext; then
6655 gt_cv_func_CFPreferencesCopyAppValue=yes
6657 echo "$as_me: failed program was:" >&5
6658 sed 's/^/| /' conftest.$ac_ext >&5
6660 gt_cv_func_CFPreferencesCopyAppValue=no
6663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6664 conftest$ac_exeext conftest.$ac_ext
6665 CPPFLAGS="$gt_save_CPPFLAGS"
6666 LIBS="$gt_save_LIBS"
6668 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6669 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6670 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6672 cat >>confdefs.h <<\_ACEOF
6673 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6677 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6678 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6679 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 gt_save_CPPFLAGS="$CPPFLAGS"
6683 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6684 gt_save_LIBS="$LIBS"
6685 LIBS="$LIBS -framework CoreFoundation"
6686 cat >conftest.$ac_ext <<_ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 #include <CFLocale.h>
6696 CFLocaleCopyCurrent();
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (ac_try="$ac_link"
6704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6705 *) ac_try_echo=$ac_try;;
6707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6708 (eval "$ac_link") 2>conftest.er1
6710 grep -v '^ *+' conftest.er1 >conftest.err
6712 cat conftest.err >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } && {
6715 test -z "$ac_c_werror_flag" ||
6716 test ! -s conftest.err
6717 } && test -s conftest$ac_exeext &&
6718 $as_test_x conftest$ac_exeext; then
6719 gt_cv_func_CFLocaleCopyCurrent=yes
6721 echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.$ac_ext >&5
6724 gt_cv_func_CFLocaleCopyCurrent=no
6727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6728 conftest$ac_exeext conftest.$ac_ext
6729 CPPFLAGS="$gt_save_CPPFLAGS"
6730 LIBS="$gt_save_LIBS"
6732 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6733 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6734 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6736 cat >>confdefs.h <<\_ACEOF
6737 #define HAVE_CFLOCALECOPYCURRENT 1
6742 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6743 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6749 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6750 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6751 # Check whether --enable-nls was given.
6752 if test "${enable_nls+set}" = set; then
6753 enableval=$enable_nls; USE_NLS=$enableval
6758 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6759 echo "${ECHO_T}$USE_NLS" >&6; }
6768 if test "$USE_NLS" = "yes"; then
6769 gt_use_preinstalled_gnugettext=no
6776 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6777 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6778 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 cat >conftest.$ac_ext <<_ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6787 #include <libintl.h>
6788 extern int _nl_msg_cat_cntr;
6789 extern int *_nl_domain_bindings;
6793 bindtextdomain ("", "");
6794 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6799 rm -f conftest.$ac_objext conftest$ac_exeext
6800 if { (ac_try="$ac_link"
6802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6803 *) ac_try_echo=$ac_try;;
6805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6806 (eval "$ac_link") 2>conftest.er1
6808 grep -v '^ *+' conftest.er1 >conftest.err
6810 cat conftest.err >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } && {
6813 test -z "$ac_c_werror_flag" ||
6814 test ! -s conftest.err
6815 } && test -s conftest$ac_exeext &&
6816 $as_test_x conftest$ac_exeext; then
6817 gt_cv_func_gnugettext1_libc=yes
6819 echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6822 gt_cv_func_gnugettext1_libc=no
6825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6826 conftest$ac_exeext conftest.$ac_ext
6828 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6829 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6831 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6837 am_save_CPPFLAGS="$CPPFLAGS"
6839 for element in $INCICONV; do
6841 for x in $CPPFLAGS; do
6843 acl_save_prefix="$prefix"
6844 prefix="$acl_final_prefix"
6845 acl_save_exec_prefix="$exec_prefix"
6846 exec_prefix="$acl_final_exec_prefix"
6848 exec_prefix="$acl_save_exec_prefix"
6849 prefix="$acl_save_prefix"
6851 if test "X$x" = "X$element"; then
6856 if test -z "$haveit"; then
6857 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6862 { echo "$as_me:$LINENO: checking for iconv" >&5
6863 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6864 if test "${am_cv_func_iconv+set}" = set; then
6865 echo $ECHO_N "(cached) $ECHO_C" >&6
6868 am_cv_func_iconv="no, consider installing GNU libiconv"
6870 cat >conftest.$ac_ext <<_ACEOF
6873 cat confdefs.h >>conftest.$ac_ext
6874 cat >>conftest.$ac_ext <<_ACEOF
6875 /* end confdefs.h. */
6881 iconv_t cd = iconv_open("","");
6882 iconv(cd,NULL,NULL,NULL,NULL);
6888 rm -f conftest.$ac_objext conftest$ac_exeext
6889 if { (ac_try="$ac_link"
6891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6892 *) ac_try_echo=$ac_try;;
6894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6895 (eval "$ac_link") 2>conftest.er1
6897 grep -v '^ *+' conftest.er1 >conftest.err
6899 cat conftest.err >&5
6900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6901 (exit $ac_status); } && {
6902 test -z "$ac_c_werror_flag" ||
6903 test ! -s conftest.err
6904 } && test -s conftest$ac_exeext &&
6905 $as_test_x conftest$ac_exeext; then
6906 am_cv_func_iconv=yes
6908 echo "$as_me: failed program was:" >&5
6909 sed 's/^/| /' conftest.$ac_ext >&5
6914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6915 conftest$ac_exeext conftest.$ac_ext
6916 if test "$am_cv_func_iconv" != yes; then
6917 am_save_LIBS="$LIBS"
6918 LIBS="$LIBS $LIBICONV"
6919 cat >conftest.$ac_ext <<_ACEOF
6922 cat confdefs.h >>conftest.$ac_ext
6923 cat >>conftest.$ac_ext <<_ACEOF
6924 /* end confdefs.h. */
6930 iconv_t cd = iconv_open("","");
6931 iconv(cd,NULL,NULL,NULL,NULL);
6937 rm -f conftest.$ac_objext conftest$ac_exeext
6938 if { (ac_try="$ac_link"
6940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941 *) ac_try_echo=$ac_try;;
6943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944 (eval "$ac_link") 2>conftest.er1
6946 grep -v '^ *+' conftest.er1 >conftest.err
6948 cat conftest.err >&5
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); } && {
6951 test -z "$ac_c_werror_flag" ||
6952 test ! -s conftest.err
6953 } && test -s conftest$ac_exeext &&
6954 $as_test_x conftest$ac_exeext; then
6956 am_cv_func_iconv=yes
6958 echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.$ac_ext >&5
6964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6965 conftest$ac_exeext conftest.$ac_ext
6966 LIBS="$am_save_LIBS"
6970 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6971 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6972 if test "$am_cv_func_iconv" = yes; then
6974 cat >>confdefs.h <<\_ACEOF
6975 #define HAVE_ICONV 1
6979 if test "$am_cv_lib_iconv" = yes; then
6980 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6981 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6982 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
6983 echo "${ECHO_T}$LIBICONV" >&6; }
6985 CPPFLAGS="$am_save_CPPFLAGS"
6997 acl_save_prefix="$prefix"
6998 prefix="$acl_final_prefix"
6999 acl_save_exec_prefix="$exec_prefix"
7000 exec_prefix="$acl_final_exec_prefix"
7002 eval additional_includedir=\"$includedir\"
7003 eval additional_libdir=\"$libdir\"
7005 exec_prefix="$acl_save_exec_prefix"
7006 prefix="$acl_save_prefix"
7009 # Check whether --with-libintl-prefix was given.
7010 if test "${with_libintl_prefix+set}" = set; then
7011 withval=$with_libintl_prefix;
7012 if test "X$withval" = "Xno"; then
7015 if test "X$withval" = "X"; then
7017 acl_save_prefix="$prefix"
7018 prefix="$acl_final_prefix"
7019 acl_save_exec_prefix="$exec_prefix"
7020 exec_prefix="$acl_final_exec_prefix"
7022 eval additional_includedir=\"$includedir\"
7023 eval additional_libdir=\"$libdir\"
7025 exec_prefix="$acl_save_exec_prefix"
7026 prefix="$acl_save_prefix"
7029 additional_includedir="$withval/include"
7030 additional_libdir="$withval/lib"
7041 names_already_handled=
7042 names_next_round='intl '
7043 while test -n "$names_next_round"; do
7044 names_this_round="$names_next_round"
7046 for name in $names_this_round; do
7048 for n in $names_already_handled; do
7049 if test "$n" = "$name"; then
7054 if test -z "$already_handled"; then
7055 names_already_handled="$names_already_handled $name"
7056 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7057 eval value=\"\$HAVE_LIB$uppername\"
7058 if test -n "$value"; then
7059 if test "$value" = yes; then
7060 eval value=\"\$LIB$uppername\"
7061 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7062 eval value=\"\$LTLIB$uppername\"
7063 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7072 if test $use_additional = yes; then
7073 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7074 found_dir="$additional_libdir"
7075 found_so="$additional_libdir/lib$name.$shlibext"
7076 if test -f "$additional_libdir/lib$name.la"; then
7077 found_la="$additional_libdir/lib$name.la"
7080 if test -f "$additional_libdir/lib$name.$libext"; then
7081 found_dir="$additional_libdir"
7082 found_a="$additional_libdir/lib$name.$libext"
7083 if test -f "$additional_libdir/lib$name.la"; then
7084 found_la="$additional_libdir/lib$name.la"
7089 if test "X$found_dir" = "X"; then
7090 for x in $LDFLAGS $LTLIBINTL; do
7092 acl_save_prefix="$prefix"
7093 prefix="$acl_final_prefix"
7094 acl_save_exec_prefix="$exec_prefix"
7095 exec_prefix="$acl_final_exec_prefix"
7097 exec_prefix="$acl_save_exec_prefix"
7098 prefix="$acl_save_prefix"
7102 dir=`echo "X$x" | sed -e 's/^X-L//'`
7103 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7105 found_so="$dir/lib$name.$shlibext"
7106 if test -f "$dir/lib$name.la"; then
7107 found_la="$dir/lib$name.la"
7110 if test -f "$dir/lib$name.$libext"; then
7112 found_a="$dir/lib$name.$libext"
7113 if test -f "$dir/lib$name.la"; then
7114 found_la="$dir/lib$name.la"
7120 if test "X$found_dir" != "X"; then
7125 if test "X$found_dir" != "X"; then
7126 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7127 if test "X$found_so" != "X"; then
7128 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7129 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7132 for x in $ltrpathdirs; do
7133 if test "X$x" = "X$found_dir"; then
7138 if test -z "$haveit"; then
7139 ltrpathdirs="$ltrpathdirs $found_dir"
7141 if test "$hardcode_direct" = yes; then
7142 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7144 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7145 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7147 for x in $rpathdirs; do
7148 if test "X$x" = "X$found_dir"; then
7153 if test -z "$haveit"; then
7154 rpathdirs="$rpathdirs $found_dir"
7158 for x in $LDFLAGS $LIBINTL; do
7160 acl_save_prefix="$prefix"
7161 prefix="$acl_final_prefix"
7162 acl_save_exec_prefix="$exec_prefix"
7163 exec_prefix="$acl_final_exec_prefix"
7165 exec_prefix="$acl_save_exec_prefix"
7166 prefix="$acl_save_prefix"
7168 if test "X$x" = "X-L$found_dir"; then
7173 if test -z "$haveit"; then
7174 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7176 if test "$hardcode_minus_L" != no; then
7177 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7179 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7185 if test "X$found_a" != "X"; then
7186 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7188 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7191 additional_includedir=
7192 case "$found_dir" in
7194 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7195 additional_includedir="$basedir/include"
7198 if test "X$additional_includedir" != "X"; then
7199 if test "X$additional_includedir" != "X/usr/include"; then
7201 if test "X$additional_includedir" = "X/usr/local/include"; then
7202 if test -n "$GCC"; then
7204 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7208 if test -z "$haveit"; then
7209 for x in $CPPFLAGS $INCINTL; do
7211 acl_save_prefix="$prefix"
7212 prefix="$acl_final_prefix"
7213 acl_save_exec_prefix="$exec_prefix"
7214 exec_prefix="$acl_final_exec_prefix"
7216 exec_prefix="$acl_save_exec_prefix"
7217 prefix="$acl_save_prefix"
7219 if test "X$x" = "X-I$additional_includedir"; then
7224 if test -z "$haveit"; then
7225 if test -d "$additional_includedir"; then
7226 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7232 if test -n "$found_la"; then
7233 save_libdir="$libdir"
7235 */* | *\\*) . "$found_la" ;;
7236 *) . "./$found_la" ;;
7238 libdir="$save_libdir"
7239 for dep in $dependency_libs; do
7242 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7243 if test "X$additional_libdir" != "X/usr/lib"; then
7245 if test "X$additional_libdir" = "X/usr/local/lib"; then
7246 if test -n "$GCC"; then
7248 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7252 if test -z "$haveit"; then
7254 for x in $LDFLAGS $LIBINTL; do
7256 acl_save_prefix="$prefix"
7257 prefix="$acl_final_prefix"
7258 acl_save_exec_prefix="$exec_prefix"
7259 exec_prefix="$acl_final_exec_prefix"
7261 exec_prefix="$acl_save_exec_prefix"
7262 prefix="$acl_save_prefix"
7264 if test "X$x" = "X-L$additional_libdir"; then
7269 if test -z "$haveit"; then
7270 if test -d "$additional_libdir"; then
7271 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7275 for x in $LDFLAGS $LTLIBINTL; do
7277 acl_save_prefix="$prefix"
7278 prefix="$acl_final_prefix"
7279 acl_save_exec_prefix="$exec_prefix"
7280 exec_prefix="$acl_final_exec_prefix"
7282 exec_prefix="$acl_save_exec_prefix"
7283 prefix="$acl_save_prefix"
7285 if test "X$x" = "X-L$additional_libdir"; then
7290 if test -z "$haveit"; then
7291 if test -d "$additional_libdir"; then
7292 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7299 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7300 if test "$enable_rpath" != no; then
7302 for x in $rpathdirs; do
7303 if test "X$x" = "X$dir"; then
7308 if test -z "$haveit"; then
7309 rpathdirs="$rpathdirs $dir"
7312 for x in $ltrpathdirs; do
7313 if test "X$x" = "X$dir"; then
7318 if test -z "$haveit"; then
7319 ltrpathdirs="$ltrpathdirs $dir"
7324 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7327 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7330 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7331 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7337 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7338 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7344 if test "X$rpathdirs" != "X"; then
7345 if test -n "$hardcode_libdir_separator"; then
7347 for found_dir in $rpathdirs; do
7348 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7350 acl_save_libdir="$libdir"
7352 eval flag=\"$hardcode_libdir_flag_spec\"
7353 libdir="$acl_save_libdir"
7354 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7356 for found_dir in $rpathdirs; do
7357 acl_save_libdir="$libdir"
7359 eval flag=\"$hardcode_libdir_flag_spec\"
7360 libdir="$acl_save_libdir"
7361 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7365 if test "X$ltrpathdirs" != "X"; then
7366 for found_dir in $ltrpathdirs; do
7367 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7371 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7372 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7373 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7374 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 gt_save_CPPFLAGS="$CPPFLAGS"
7377 CPPFLAGS="$CPPFLAGS $INCINTL"
7378 gt_save_LIBS="$LIBS"
7379 LIBS="$LIBS $LIBINTL"
7380 cat >conftest.$ac_ext <<_ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 #include <libintl.h>
7387 extern int _nl_msg_cat_cntr;
7392 const char *_nl_expand_alias (const char *);
7396 bindtextdomain ("", "");
7397 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7402 rm -f conftest.$ac_objext conftest$ac_exeext
7403 if { (ac_try="$ac_link"
7405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7406 *) ac_try_echo=$ac_try;;
7408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7409 (eval "$ac_link") 2>conftest.er1
7411 grep -v '^ *+' conftest.er1 >conftest.err
7413 cat conftest.err >&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } && {
7416 test -z "$ac_c_werror_flag" ||
7417 test ! -s conftest.err
7418 } && test -s conftest$ac_exeext &&
7419 $as_test_x conftest$ac_exeext; then
7420 gt_cv_func_gnugettext1_libintl=yes
7422 echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7425 gt_cv_func_gnugettext1_libintl=no
7428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7429 conftest$ac_exeext conftest.$ac_ext
7430 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7431 LIBS="$LIBS $LIBICONV"
7432 cat >conftest.$ac_ext <<_ACEOF
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h. */
7438 #include <libintl.h>
7439 extern int _nl_msg_cat_cntr;
7444 const char *_nl_expand_alias (const char *);
7448 bindtextdomain ("", "");
7449 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7454 rm -f conftest.$ac_objext conftest$ac_exeext
7455 if { (ac_try="$ac_link"
7457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458 *) ac_try_echo=$ac_try;;
7460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7461 (eval "$ac_link") 2>conftest.er1
7463 grep -v '^ *+' conftest.er1 >conftest.err
7465 cat conftest.err >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } && {
7468 test -z "$ac_c_werror_flag" ||
7469 test ! -s conftest.err
7470 } && test -s conftest$ac_exeext &&
7471 $as_test_x conftest$ac_exeext; then
7472 LIBINTL="$LIBINTL $LIBICONV"
7473 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7474 gt_cv_func_gnugettext1_libintl=yes
7477 echo "$as_me: failed program was:" >&5
7478 sed 's/^/| /' conftest.$ac_ext >&5
7483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7484 conftest$ac_exeext conftest.$ac_ext
7486 CPPFLAGS="$gt_save_CPPFLAGS"
7487 LIBS="$gt_save_LIBS"
7489 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7490 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7493 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7494 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7495 && test "$PACKAGE" != gettext-runtime \
7496 && test "$PACKAGE" != gettext-tools; }; then
7497 gt_use_preinstalled_gnugettext=yes
7506 if test -n "$INTL_MACOSX_LIBS"; then
7507 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7508 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7509 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7510 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7514 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7515 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7517 cat >>confdefs.h <<\_ACEOF
7518 #define ENABLE_NLS 1
7526 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7527 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7528 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7529 echo "${ECHO_T}$USE_NLS" >&6; }
7530 if test "$USE_NLS" = "yes"; then
7531 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7532 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7533 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7534 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7535 gt_source="external libintl"
7540 gt_source="included intl directory"
7542 { echo "$as_me:$LINENO: result: $gt_source" >&5
7543 echo "${ECHO_T}$gt_source" >&6; }
7546 if test "$USE_NLS" = "yes"; then
7548 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7549 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7550 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7551 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7552 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7553 echo "${ECHO_T}$LIBINTL" >&6; }
7555 for element in $INCINTL; do
7557 for x in $CPPFLAGS; do
7559 acl_save_prefix="$prefix"
7560 prefix="$acl_final_prefix"
7561 acl_save_exec_prefix="$exec_prefix"
7562 exec_prefix="$acl_final_exec_prefix"
7564 exec_prefix="$acl_save_exec_prefix"
7565 prefix="$acl_save_prefix"
7567 if test "X$x" = "X$element"; then
7572 if test -z "$haveit"; then
7573 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7580 cat >>confdefs.h <<\_ACEOF
7581 #define HAVE_GETTEXT 1
7585 cat >>confdefs.h <<\_ACEOF
7586 #define HAVE_DCGETTEXT 1
7603 if test x${prefix} = xNONE ; then
7604 if test `eval echo ${datadir}` = NONE/share ; then
7609 # ------------------------------------------------------------------
7610 # If the user has not set --prefix, we set our default to nothing.
7611 # In this case, if the user has not set --sysconfdir, we set it
7612 # to the package default of /etc/bacula. If either --prefix or
7613 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
7614 # ------------------------------------------------------------------
7615 if test x${prefix} = xNONE ; then
7616 if test `eval echo ${sysconfdir}` = NONE/etc ; then
7617 sysconfdir=/etc/bacula
7621 sysconfdir=`eval echo ${sysconfdir}`
7622 datadir=`eval echo ${datadir}`
7623 localedir=`eval echo ${datadir}/locale`
7624 cat >>confdefs.h <<_ACEOF
7625 #define LOCALEDIR "$localedir"
7628 cat >>confdefs.h <<_ACEOF
7629 #define SYSCONFDIR "$sysconfdir"
7633 # -------------------------------------------------------------------------
7634 # If the user has not set --exec-prefix, we default to ${prefix}
7635 # -------------------------------------------------------------------------
7636 if test x${exec_prefix} = xNONE ; then
7637 exec_prefix=${prefix}
7640 # ------------------------------------------------------------------
7641 # If the user has not set --sbindir, we set our default as /sbin
7642 # ------------------------------------------------------------------
7643 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7644 sbindir=${exec_prefix}/sbin
7646 sbindir=`eval echo ${sbindir}`
7649 # -------------------------------------------------------------------------
7650 # If the user has not set --mandir, we default to /usr/share/man
7651 # -------------------------------------------------------------------------
7652 if test x$mandir = x'${prefix}/man' ; then
7653 mandir=/usr/share/man
7657 for ac_prog in msgfmt
7659 # Extract the first word of "$ac_prog", so it can be a program name with args.
7660 set dummy $ac_prog; ac_word=$2
7661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7663 if test "${ac_cv_path_MSGFMT+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7678 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 MSGFMT=$ac_cv_path_MSGFMT
7690 if test -n "$MSGFMT"; then
7691 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7692 echo "${ECHO_T}$MSGFMT" >&6; }
7694 { echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6; }
7699 test -n "$MSGFMT" && break
7701 test -n "$MSGFMT" || MSGFMT="no"
7703 if test "$MSGFMT" = "no"
7705 echo 'msgfmt program not found, disabling NLS !'
7707 USE_INCLUDED_LIBINTL=no
7710 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7711 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7712 if test "${ac_cv_gnu_library_2+set}" = set; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 cat >conftest.$ac_ext <<_ACEOF
7718 cat confdefs.h >>conftest.$ac_ext
7719 cat >>conftest.$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7722 #include <features.h>
7723 #ifdef __GNU_LIBRARY__
7724 #if (__GLIBC__ >= 2)
7730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7731 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7732 ac_cv_gnu_library_2=yes
7734 ac_cv_gnu_library_2=no
7741 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7742 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7744 GLIBC2="$ac_cv_gnu_library_2"
7748 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7749 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7750 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7753 ac_check_lib_save_LIBS=$LIBS
7754 LIBS="-lcposix $LIBS"
7755 cat >conftest.$ac_ext <<_ACEOF
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7762 /* Override any GCC internal prototype to avoid an error.
7763 Use char because int might match the return type of a GCC
7764 builtin and then its argument prototype would still apply. */
7777 rm -f conftest.$ac_objext conftest$ac_exeext
7778 if { (ac_try="$ac_link"
7780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7781 *) ac_try_echo=$ac_try;;
7783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7784 (eval "$ac_link") 2>conftest.er1
7786 grep -v '^ *+' conftest.er1 >conftest.err
7788 cat conftest.err >&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); } && {
7791 test -z "$ac_c_werror_flag" ||
7792 test ! -s conftest.err
7793 } && test -s conftest$ac_exeext &&
7794 $as_test_x conftest$ac_exeext; then
7795 ac_cv_lib_cposix_strerror=yes
7797 echo "$as_me: failed program was:" >&5
7798 sed 's/^/| /' conftest.$ac_ext >&5
7800 ac_cv_lib_cposix_strerror=no
7803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7804 conftest$ac_exeext conftest.$ac_ext
7805 LIBS=$ac_check_lib_save_LIBS
7807 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7808 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7809 if test $ac_cv_lib_cposix_strerror = yes; then
7810 LIBS="$LIBS -lcposix"
7815 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7816 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7817 if test "${ac_cv_header_stdc+set}" = set; then
7818 echo $ECHO_N "(cached) $ECHO_C" >&6
7820 cat >conftest.$ac_ext <<_ACEOF
7823 cat confdefs.h >>conftest.$ac_ext
7824 cat >>conftest.$ac_ext <<_ACEOF
7825 /* end confdefs.h. */
7839 rm -f conftest.$ac_objext
7840 if { (ac_try="$ac_compile"
7842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7843 *) ac_try_echo=$ac_try;;
7845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7846 (eval "$ac_compile") 2>conftest.er1
7848 grep -v '^ *+' conftest.er1 >conftest.err
7850 cat conftest.err >&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); } && {
7853 test -z "$ac_c_werror_flag" ||
7854 test ! -s conftest.err
7855 } && test -s conftest.$ac_objext; then
7856 ac_cv_header_stdc=yes
7858 echo "$as_me: failed program was:" >&5
7859 sed 's/^/| /' conftest.$ac_ext >&5
7861 ac_cv_header_stdc=no
7864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7866 if test $ac_cv_header_stdc = yes; then
7867 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7868 cat >conftest.$ac_ext <<_ACEOF
7871 cat confdefs.h >>conftest.$ac_ext
7872 cat >>conftest.$ac_ext <<_ACEOF
7873 /* end confdefs.h. */
7877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7878 $EGREP "memchr" >/dev/null 2>&1; then
7881 ac_cv_header_stdc=no
7887 if test $ac_cv_header_stdc = yes; then
7888 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7889 cat >conftest.$ac_ext <<_ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7898 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7899 $EGREP "free" >/dev/null 2>&1; then
7902 ac_cv_header_stdc=no
7908 if test $ac_cv_header_stdc = yes; then
7909 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7910 if test "$cross_compiling" = yes; then
7913 cat >conftest.$ac_ext <<_ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7921 #if ((' ' & 0x0FF) == 0x020)
7922 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7923 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7925 # define ISLOWER(c) \
7926 (('a' <= (c) && (c) <= 'i') \
7927 || ('j' <= (c) && (c) <= 'r') \
7928 || ('s' <= (c) && (c) <= 'z'))
7929 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7932 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7937 for (i = 0; i < 256; i++)
7938 if (XOR (islower (i), ISLOWER (i))
7939 || toupper (i) != TOUPPER (i))
7944 rm -f conftest$ac_exeext
7945 if { (ac_try="$ac_link"
7947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7948 *) ac_try_echo=$ac_try;;
7950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7951 (eval "$ac_link") 2>&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7955 { (case "(($ac_try" in
7956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7957 *) ac_try_echo=$ac_try;;
7959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7960 (eval "$ac_try") 2>&5
7962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7963 (exit $ac_status); }; }; then
7966 echo "$as_me: program exited with status $ac_status" >&5
7967 echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7971 ac_cv_header_stdc=no
7973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7979 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7980 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7981 if test $ac_cv_header_stdc = yes; then
7983 cat >>confdefs.h <<\_ACEOF
7984 #define STDC_HEADERS 1
7989 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7990 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7991 if test "${ac_cv_c_const+set}" = set; then
7992 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 cat >conftest.$ac_ext <<_ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8004 /* FIXME: Include the comments suggested by Paul. */
8006 /* Ultrix mips cc rejects this. */
8007 typedef int charset[2];
8009 /* SunOS 4.1.1 cc rejects this. */
8010 char const *const *pcpcc;
8012 /* NEC SVR4.0.2 mips cc rejects this. */
8013 struct point {int x, y;};
8014 static struct point const zero = {0,0};
8015 /* AIX XL C 1.02.0.0 rejects this.
8016 It does not let you subtract one const X* pointer from another in
8017 an arm of an if-expression whose if-part is not a constant
8019 const char *g = "string";
8020 pcpcc = &g + (g ? g-g : 0);
8021 /* HPUX 7.0 cc rejects these. */
8023 ppc = (char**) pcpcc;
8024 pcpcc = (char const *const *) ppc;
8025 { /* SCO 3.2v4 cc rejects this. */
8027 char const *s = 0 ? (char *) 0 : (char const *) 0;
8032 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8034 const int *foo = &x[0];
8037 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8038 typedef const int *iptr;
8042 { /* AIX XL C 1.02.0.0 rejects this saying
8043 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8044 struct s { int j; const int *ap[3]; };
8045 struct s *b; b->j = 5;
8047 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8051 return !cs[0] && !zero.x;
8058 rm -f conftest.$ac_objext
8059 if { (ac_try="$ac_compile"
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065 (eval "$ac_compile") 2>conftest.er1
8067 grep -v '^ *+' conftest.er1 >conftest.err
8069 cat conftest.err >&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } && {
8072 test -z "$ac_c_werror_flag" ||
8073 test ! -s conftest.err
8074 } && test -s conftest.$ac_objext; then
8077 echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8085 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8086 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8087 if test $ac_cv_c_const = no; then
8089 cat >>confdefs.h <<\_ACEOF
8096 { echo "$as_me:$LINENO: checking for signed" >&5
8097 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8098 if test "${bh_cv_c_signed+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8101 cat >conftest.$ac_ext <<_ACEOF
8104 cat confdefs.h >>conftest.$ac_ext
8105 cat >>conftest.$ac_ext <<_ACEOF
8106 /* end confdefs.h. */
8116 rm -f conftest.$ac_objext
8117 if { (ac_try="$ac_compile"
8119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120 *) ac_try_echo=$ac_try;;
8122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123 (eval "$ac_compile") 2>conftest.er1
8125 grep -v '^ *+' conftest.er1 >conftest.err
8127 cat conftest.err >&5
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); } && {
8130 test -z "$ac_c_werror_flag" ||
8131 test ! -s conftest.err
8132 } && test -s conftest.$ac_objext; then
8135 echo "$as_me: failed program was:" >&5
8136 sed 's/^/| /' conftest.$ac_ext >&5
8141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8144 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8145 if test $bh_cv_c_signed = no; then
8147 cat >>confdefs.h <<\_ACEOF
8153 { echo "$as_me:$LINENO: checking for inline" >&5
8154 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8155 if test "${ac_cv_c_inline+set}" = set; then
8156 echo $ECHO_N "(cached) $ECHO_C" >&6
8159 for ac_kw in inline __inline__ __inline; do
8160 cat >conftest.$ac_ext <<_ACEOF
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8168 static $ac_kw foo_t static_foo () {return 0; }
8169 $ac_kw foo_t foo () {return 0; }
8173 rm -f conftest.$ac_objext
8174 if { (ac_try="$ac_compile"
8176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8177 *) ac_try_echo=$ac_try;;
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180 (eval "$ac_compile") 2>conftest.er1
8182 grep -v '^ *+' conftest.er1 >conftest.err
8184 cat conftest.err >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } && {
8187 test -z "$ac_c_werror_flag" ||
8188 test ! -s conftest.err
8189 } && test -s conftest.$ac_objext; then
8190 ac_cv_c_inline=$ac_kw
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.$ac_ext >&5
8198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8199 test "$ac_cv_c_inline" != no && break
8203 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8204 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8207 case $ac_cv_c_inline in
8210 case $ac_cv_c_inline in
8212 *) ac_val=$ac_cv_c_inline;;
8214 cat >>confdefs.h <<_ACEOF
8216 #define inline $ac_val
8222 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8232 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8233 inttypes.h stdint.h unistd.h
8235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8241 cat >conftest.$ac_ext <<_ACEOF
8244 cat confdefs.h >>conftest.$ac_ext
8245 cat >>conftest.$ac_ext <<_ACEOF
8246 /* end confdefs.h. */
8247 $ac_includes_default
8249 #include <$ac_header>
8251 rm -f conftest.$ac_objext
8252 if { (ac_try="$ac_compile"
8254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258 (eval "$ac_compile") 2>conftest.er1
8260 grep -v '^ *+' conftest.er1 >conftest.err
8262 cat conftest.err >&5
8263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8264 (exit $ac_status); } && {
8265 test -z "$ac_c_werror_flag" ||
8266 test ! -s conftest.err
8267 } && test -s conftest.$ac_objext; then
8268 eval "$as_ac_Header=yes"
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8273 eval "$as_ac_Header=no"
8276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8278 ac_res=`eval echo '${'$as_ac_Header'}'`
8279 { echo "$as_me:$LINENO: result: $ac_res" >&5
8280 echo "${ECHO_T}$ac_res" >&6; }
8281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8282 cat >>confdefs.h <<_ACEOF
8283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8291 { echo "$as_me:$LINENO: checking for off_t" >&5
8292 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8293 if test "${ac_cv_type_off_t+set}" = set; then
8294 echo $ECHO_N "(cached) $ECHO_C" >&6
8296 cat >conftest.$ac_ext <<_ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8302 $ac_includes_default
8303 typedef off_t ac__type_new_;
8307 if ((ac__type_new_ *) 0)
8309 if (sizeof (ac__type_new_))
8315 rm -f conftest.$ac_objext
8316 if { (ac_try="$ac_compile"
8318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8322 (eval "$ac_compile") 2>conftest.er1
8324 grep -v '^ *+' conftest.er1 >conftest.err
8326 cat conftest.err >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } && {
8329 test -z "$ac_c_werror_flag" ||
8330 test ! -s conftest.err
8331 } && test -s conftest.$ac_objext; then
8332 ac_cv_type_off_t=yes
8334 echo "$as_me: failed program was:" >&5
8335 sed 's/^/| /' conftest.$ac_ext >&5
8340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8342 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8343 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8344 if test $ac_cv_type_off_t = yes; then
8348 cat >>confdefs.h <<_ACEOF
8349 #define off_t long int
8354 { echo "$as_me:$LINENO: checking for size_t" >&5
8355 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8356 if test "${ac_cv_type_size_t+set}" = set; then
8357 echo $ECHO_N "(cached) $ECHO_C" >&6
8359 cat >conftest.$ac_ext <<_ACEOF
8362 cat confdefs.h >>conftest.$ac_ext
8363 cat >>conftest.$ac_ext <<_ACEOF
8364 /* end confdefs.h. */
8365 $ac_includes_default
8366 typedef size_t ac__type_new_;
8370 if ((ac__type_new_ *) 0)
8372 if (sizeof (ac__type_new_))
8378 rm -f conftest.$ac_objext
8379 if { (ac_try="$ac_compile"
8381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8382 *) ac_try_echo=$ac_try;;
8384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8385 (eval "$ac_compile") 2>conftest.er1
8387 grep -v '^ *+' conftest.er1 >conftest.err
8389 cat conftest.err >&5
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); } && {
8392 test -z "$ac_c_werror_flag" ||
8393 test ! -s conftest.err
8394 } && test -s conftest.$ac_objext; then
8395 ac_cv_type_size_t=yes
8397 echo "$as_me: failed program was:" >&5
8398 sed 's/^/| /' conftest.$ac_ext >&5
8400 ac_cv_type_size_t=no
8403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8405 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8406 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8407 if test $ac_cv_type_size_t = yes; then
8411 cat >>confdefs.h <<_ACEOF
8412 #define size_t unsigned int
8418 { echo "$as_me:$LINENO: checking for long long" >&5
8419 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8420 if test "${ac_cv_type_long_long+set}" = set; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8423 cat >conftest.$ac_ext <<_ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8429 long long ll = 1LL; int i = 63;
8433 long long llmax = (long long) -1;
8434 return ll << i | ll >> i | llmax / ll | llmax % ll;
8439 rm -f conftest.$ac_objext conftest$ac_exeext
8440 if { (ac_try="$ac_link"
8442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8443 *) ac_try_echo=$ac_try;;
8445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446 (eval "$ac_link") 2>conftest.er1
8448 grep -v '^ *+' conftest.er1 >conftest.err
8450 cat conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } && {
8453 test -z "$ac_c_werror_flag" ||
8454 test ! -s conftest.err
8455 } && test -s conftest$ac_exeext &&
8456 $as_test_x conftest$ac_exeext; then
8457 ac_cv_type_long_long=yes
8459 echo "$as_me: failed program was:" >&5
8460 sed 's/^/| /' conftest.$ac_ext >&5
8462 ac_cv_type_long_long=no
8465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8466 conftest$ac_exeext conftest.$ac_ext
8468 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8469 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8470 if test $ac_cv_type_long_long = yes; then
8472 cat >>confdefs.h <<\_ACEOF
8473 #define HAVE_LONG_LONG 1
8479 { echo "$as_me:$LINENO: checking for long double" >&5
8480 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8481 if test "${gt_cv_c_long_double+set}" = set; then
8482 echo $ECHO_N "(cached) $ECHO_C" >&6
8484 if test "$GCC" = yes; then
8485 gt_cv_c_long_double=yes
8487 cat >conftest.$ac_ext <<_ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h. */
8494 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8495 long double foo = 0.0;
8496 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8497 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8507 rm -f conftest.$ac_objext
8508 if { (ac_try="$ac_compile"
8510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8511 *) ac_try_echo=$ac_try;;
8513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8514 (eval "$ac_compile") 2>conftest.er1
8516 grep -v '^ *+' conftest.er1 >conftest.err
8518 cat conftest.err >&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } && {
8521 test -z "$ac_c_werror_flag" ||
8522 test ! -s conftest.err
8523 } && test -s conftest.$ac_objext; then
8524 gt_cv_c_long_double=yes
8526 echo "$as_me: failed program was:" >&5
8527 sed 's/^/| /' conftest.$ac_ext >&5
8529 gt_cv_c_long_double=no
8532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8535 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8536 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8537 if test $gt_cv_c_long_double = yes; then
8539 cat >>confdefs.h <<\_ACEOF
8540 #define HAVE_LONG_DOUBLE 1
8546 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8547 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8548 if test "${gt_cv_c_wchar_t+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8551 cat >conftest.$ac_ext <<_ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8558 wchar_t foo = (wchar_t)'\0';
8567 rm -f conftest.$ac_objext
8568 if { (ac_try="$ac_compile"
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8574 (eval "$ac_compile") 2>conftest.er1
8576 grep -v '^ *+' conftest.er1 >conftest.err
8578 cat conftest.err >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); } && {
8581 test -z "$ac_c_werror_flag" ||
8582 test ! -s conftest.err
8583 } && test -s conftest.$ac_objext; then
8586 echo "$as_me: failed program was:" >&5
8587 sed 's/^/| /' conftest.$ac_ext >&5
8592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8595 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8596 if test $gt_cv_c_wchar_t = yes; then
8598 cat >>confdefs.h <<\_ACEOF
8599 #define HAVE_WCHAR_T 1
8605 { echo "$as_me:$LINENO: checking for wint_t" >&5
8606 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8607 if test "${gt_cv_c_wint_t+set}" = set; then
8608 echo $ECHO_N "(cached) $ECHO_C" >&6
8610 cat >conftest.$ac_ext <<_ACEOF
8613 cat confdefs.h >>conftest.$ac_ext
8614 cat >>conftest.$ac_ext <<_ACEOF
8615 /* end confdefs.h. */
8617 wint_t foo = (wchar_t)'\0';
8626 rm -f conftest.$ac_objext
8627 if { (ac_try="$ac_compile"
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_compile") 2>conftest.er1
8635 grep -v '^ *+' conftest.er1 >conftest.err
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } && {
8640 test -z "$ac_c_werror_flag" ||
8641 test ! -s conftest.err
8642 } && test -s conftest.$ac_objext; then
8645 echo "$as_me: failed program was:" >&5
8646 sed 's/^/| /' conftest.$ac_ext >&5
8651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8654 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8655 if test $gt_cv_c_wint_t = yes; then
8657 cat >>confdefs.h <<\_ACEOF
8658 #define HAVE_WINT_T 1
8664 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8665 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8666 if test "${gl_cv_header_inttypes_h+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8669 cat >conftest.$ac_ext <<_ACEOF
8672 cat confdefs.h >>conftest.$ac_ext
8673 cat >>conftest.$ac_ext <<_ACEOF
8674 /* end confdefs.h. */
8675 #include <sys/types.h>
8676 #include <inttypes.h>
8680 uintmax_t i = (uintmax_t) -1;
8685 rm -f conftest.$ac_objext
8686 if { (ac_try="$ac_compile"
8688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8689 *) ac_try_echo=$ac_try;;
8691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8692 (eval "$ac_compile") 2>conftest.er1
8694 grep -v '^ *+' conftest.er1 >conftest.err
8696 cat conftest.err >&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } && {
8699 test -z "$ac_c_werror_flag" ||
8700 test ! -s conftest.err
8701 } && test -s conftest.$ac_objext; then
8702 gl_cv_header_inttypes_h=yes
8704 echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8707 gl_cv_header_inttypes_h=no
8710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8712 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8713 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8714 if test $gl_cv_header_inttypes_h = yes; then
8716 cat >>confdefs.h <<_ACEOF
8717 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8723 { echo "$as_me:$LINENO: checking for stdint.h" >&5
8724 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8725 if test "${gl_cv_header_stdint_h+set}" = set; then
8726 echo $ECHO_N "(cached) $ECHO_C" >&6
8728 cat >conftest.$ac_ext <<_ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h. */
8734 #include <sys/types.h>
8739 uintmax_t i = (uintmax_t) -1;
8744 rm -f conftest.$ac_objext
8745 if { (ac_try="$ac_compile"
8747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748 *) ac_try_echo=$ac_try;;
8750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8751 (eval "$ac_compile") 2>conftest.er1
8753 grep -v '^ *+' conftest.er1 >conftest.err
8755 cat conftest.err >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); } && {
8758 test -z "$ac_c_werror_flag" ||
8759 test ! -s conftest.err
8760 } && test -s conftest.$ac_objext; then
8761 gl_cv_header_stdint_h=yes
8763 echo "$as_me: failed program was:" >&5
8764 sed 's/^/| /' conftest.$ac_ext >&5
8766 gl_cv_header_stdint_h=no
8769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8771 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8772 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8773 if test $gl_cv_header_stdint_h = yes; then
8775 cat >>confdefs.h <<_ACEOF
8776 #define HAVE_STDINT_H_WITH_UINTMAX 1
8784 { echo "$as_me:$LINENO: checking for intmax_t" >&5
8785 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8786 if test "${gt_cv_c_intmax_t+set}" = set; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8789 cat >conftest.$ac_ext <<_ACEOF
8792 cat confdefs.h >>conftest.$ac_ext
8793 cat >>conftest.$ac_ext <<_ACEOF
8794 /* end confdefs.h. */
8798 #if HAVE_STDINT_H_WITH_UINTMAX
8801 #if HAVE_INTTYPES_H_WITH_UINTMAX
8802 #include <inttypes.h>
8813 rm -f conftest.$ac_objext
8814 if { (ac_try="$ac_compile"
8816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8817 *) ac_try_echo=$ac_try;;
8819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8820 (eval "$ac_compile") 2>conftest.er1
8822 grep -v '^ *+' conftest.er1 >conftest.err
8824 cat conftest.err >&5
8825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8826 (exit $ac_status); } && {
8827 test -z "$ac_c_werror_flag" ||
8828 test ! -s conftest.err
8829 } && test -s conftest.$ac_objext; then
8830 gt_cv_c_intmax_t=yes
8832 echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8840 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8841 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8842 if test $gt_cv_c_intmax_t = yes; then
8844 cat >>confdefs.h <<\_ACEOF
8845 #define HAVE_INTMAX_T 1
8852 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8853 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8854 if test "${gt_cv_func_printf_posix+set}" = set; then
8855 echo $ECHO_N "(cached) $ECHO_C" >&6
8858 if test "$cross_compiling" = yes; then
8860 cat >conftest.$ac_ext <<_ACEOF
8863 cat confdefs.h >>conftest.$ac_ext
8864 cat >>conftest.$ac_ext <<_ACEOF
8865 /* end confdefs.h. */
8867 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8873 $EGREP "notposix" >/dev/null 2>&1; then
8874 gt_cv_func_printf_posix="guessing no"
8876 gt_cv_func_printf_posix="guessing yes"
8882 cat >conftest.$ac_ext <<_ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h. */
8891 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8892 dollar expansion (possibly an autoconf bug). */
8893 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8894 static char buf[100];
8897 sprintf (buf, format, 33, 55);
8898 return (strcmp (buf, "55 33") != 0);
8901 rm -f conftest$ac_exeext
8902 if { (ac_try="$ac_link"
8904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8905 *) ac_try_echo=$ac_try;;
8907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8908 (eval "$ac_link") 2>&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8912 { (case "(($ac_try" in
8913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8914 *) ac_try_echo=$ac_try;;
8916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8917 (eval "$ac_try") 2>&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); }; }; then
8921 gt_cv_func_printf_posix=yes
8923 echo "$as_me: program exited with status $ac_status" >&5
8924 echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.$ac_ext >&5
8928 gt_cv_func_printf_posix=no
8930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8936 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8937 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8938 case $gt_cv_func_printf_posix in
8941 cat >>confdefs.h <<\_ACEOF
8942 #define HAVE_POSIX_PRINTF 1
8948 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8949 # for constant arguments. Useless!
8950 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8951 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8952 if test "${ac_cv_working_alloca_h+set}" = set; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 cat >conftest.$ac_ext <<_ACEOF
8958 cat confdefs.h >>conftest.$ac_ext
8959 cat >>conftest.$ac_ext <<_ACEOF
8960 /* end confdefs.h. */
8965 char *p = (char *) alloca (2 * sizeof (int));
8971 rm -f conftest.$ac_objext conftest$ac_exeext
8972 if { (ac_try="$ac_link"
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_link") 2>conftest.er1
8980 grep -v '^ *+' conftest.er1 >conftest.err
8982 cat conftest.err >&5
8983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984 (exit $ac_status); } && {
8985 test -z "$ac_c_werror_flag" ||
8986 test ! -s conftest.err
8987 } && test -s conftest$ac_exeext &&
8988 $as_test_x conftest$ac_exeext; then
8989 ac_cv_working_alloca_h=yes
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8994 ac_cv_working_alloca_h=no
8997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8998 conftest$ac_exeext conftest.$ac_ext
9000 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9001 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
9002 if test $ac_cv_working_alloca_h = yes; then
9004 cat >>confdefs.h <<\_ACEOF
9005 #define HAVE_ALLOCA_H 1
9010 { echo "$as_me:$LINENO: checking for alloca" >&5
9011 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
9012 if test "${ac_cv_func_alloca_works+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 cat >conftest.$ac_ext <<_ACEOF
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h. */
9022 # define alloca __builtin_alloca
9025 # include <malloc.h>
9026 # define alloca _alloca
9028 # ifdef HAVE_ALLOCA_H
9029 # include <alloca.h>
9034 # ifndef alloca /* predefined by HP cc +Olibcalls */
9045 char *p = (char *) alloca (1);
9051 rm -f conftest.$ac_objext conftest$ac_exeext
9052 if { (ac_try="$ac_link"
9054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9055 *) ac_try_echo=$ac_try;;
9057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9058 (eval "$ac_link") 2>conftest.er1
9060 grep -v '^ *+' conftest.er1 >conftest.err
9062 cat conftest.err >&5
9063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9064 (exit $ac_status); } && {
9065 test -z "$ac_c_werror_flag" ||
9066 test ! -s conftest.err
9067 } && test -s conftest$ac_exeext &&
9068 $as_test_x conftest$ac_exeext; then
9069 ac_cv_func_alloca_works=yes
9071 echo "$as_me: failed program was:" >&5
9072 sed 's/^/| /' conftest.$ac_ext >&5
9074 ac_cv_func_alloca_works=no
9077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9078 conftest$ac_exeext conftest.$ac_ext
9080 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9081 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9083 if test $ac_cv_func_alloca_works = yes; then
9085 cat >>confdefs.h <<\_ACEOF
9086 #define HAVE_ALLOCA 1
9090 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9091 # that cause trouble. Some versions do not even contain alloca or
9092 # contain a buggy version. If you still want to use their alloca,
9093 # use ar to extract alloca.o from them instead of compiling alloca.c.
9095 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9097 cat >>confdefs.h <<\_ACEOF
9102 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9103 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9104 if test "${ac_cv_os_cray+set}" = set; then
9105 echo $ECHO_N "(cached) $ECHO_C" >&6
9107 cat >conftest.$ac_ext <<_ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9113 #if defined CRAY && ! defined CRAY2
9120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9121 $EGREP "webecray" >/dev/null 2>&1; then
9129 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9130 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9131 if test $ac_cv_os_cray = yes; then
9132 for ac_func in _getb67 GETB67 getb67; do
9133 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9134 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9136 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9137 echo $ECHO_N "(cached) $ECHO_C" >&6
9139 cat >conftest.$ac_ext <<_ACEOF
9142 cat confdefs.h >>conftest.$ac_ext
9143 cat >>conftest.$ac_ext <<_ACEOF
9144 /* end confdefs.h. */
9145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9147 #define $ac_func innocuous_$ac_func
9149 /* System header to define __stub macros and hopefully few prototypes,
9150 which can conflict with char $ac_func (); below.
9151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9152 <limits.h> exists even on freestanding compilers. */
9155 # include <limits.h>
9157 # include <assert.h>
9162 /* Override any GCC internal prototype to avoid an error.
9163 Use char because int might match the return type of a GCC
9164 builtin and then its argument prototype would still apply. */
9169 /* The GNU C library defines this for functions which it implements
9170 to always fail with ENOSYS. Some functions are actually named
9171 something starting with __ and the normal name is an alias. */
9172 #if defined __stub_$ac_func || defined __stub___$ac_func
9184 rm -f conftest.$ac_objext conftest$ac_exeext
9185 if { (ac_try="$ac_link"
9187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9188 *) ac_try_echo=$ac_try;;
9190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9191 (eval "$ac_link") 2>conftest.er1
9193 grep -v '^ *+' conftest.er1 >conftest.err
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } && {
9198 test -z "$ac_c_werror_flag" ||
9199 test ! -s conftest.err
9200 } && test -s conftest$ac_exeext &&
9201 $as_test_x conftest$ac_exeext; then
9202 eval "$as_ac_var=yes"
9204 echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9207 eval "$as_ac_var=no"
9210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9211 conftest$ac_exeext conftest.$ac_ext
9213 ac_res=`eval echo '${'$as_ac_var'}'`
9214 { echo "$as_me:$LINENO: result: $ac_res" >&5
9215 echo "${ECHO_T}$ac_res" >&6; }
9216 if test `eval echo '${'$as_ac_var'}'` = yes; then
9218 cat >>confdefs.h <<_ACEOF
9219 #define CRAY_STACKSEG_END $ac_func
9228 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9229 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9230 if test "${ac_cv_c_stack_direction+set}" = set; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
9233 if test "$cross_compiling" = yes; then
9234 ac_cv_c_stack_direction=0
9236 cat >conftest.$ac_ext <<_ACEOF
9239 cat confdefs.h >>conftest.$ac_ext
9240 cat >>conftest.$ac_ext <<_ACEOF
9241 /* end confdefs.h. */
9242 $ac_includes_default
9244 find_stack_direction ()
9246 static char *addr = 0;
9251 return find_stack_direction ();
9254 return (&dummy > addr) ? 1 : -1;
9260 return find_stack_direction () < 0;
9263 rm -f conftest$ac_exeext
9264 if { (ac_try="$ac_link"
9266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267 *) ac_try_echo=$ac_try;;
9269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270 (eval "$ac_link") 2>&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9274 { (case "(($ac_try" in
9275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9276 *) ac_try_echo=$ac_try;;
9278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9279 (eval "$ac_try") 2>&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); }; }; then
9283 ac_cv_c_stack_direction=1
9285 echo "$as_me: program exited with status $ac_status" >&5
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9290 ac_cv_c_stack_direction=-1
9292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9297 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9298 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9300 cat >>confdefs.h <<_ACEOF
9301 #define STACK_DIRECTION $ac_cv_c_stack_direction
9309 for ac_header in stdlib.h unistd.h
9311 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9313 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9314 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 ac_res=`eval echo '${'$as_ac_Header'}'`
9319 { echo "$as_me:$LINENO: result: $ac_res" >&5
9320 echo "${ECHO_T}$ac_res" >&6; }
9322 # Is the header compilable?
9323 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9324 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9325 cat >conftest.$ac_ext <<_ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9331 $ac_includes_default
9332 #include <$ac_header>
9334 rm -f conftest.$ac_objext
9335 if { (ac_try="$ac_compile"
9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338 *) ac_try_echo=$ac_try;;
9340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341 (eval "$ac_compile") 2>conftest.er1
9343 grep -v '^ *+' conftest.er1 >conftest.err
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } && {
9348 test -z "$ac_c_werror_flag" ||
9349 test ! -s conftest.err
9350 } && test -s conftest.$ac_objext; then
9351 ac_header_compiler=yes
9353 echo "$as_me: failed program was:" >&5
9354 sed 's/^/| /' conftest.$ac_ext >&5
9356 ac_header_compiler=no
9359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9360 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9361 echo "${ECHO_T}$ac_header_compiler" >&6; }
9363 # Is the header present?
9364 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9365 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9366 cat >conftest.$ac_ext <<_ACEOF
9369 cat confdefs.h >>conftest.$ac_ext
9370 cat >>conftest.$ac_ext <<_ACEOF
9371 /* end confdefs.h. */
9372 #include <$ac_header>
9374 if { (ac_try="$ac_cpp conftest.$ac_ext"
9376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377 *) ac_try_echo=$ac_try;;
9379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9382 grep -v '^ *+' conftest.er1 >conftest.err
9384 cat conftest.err >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } >/dev/null && {
9387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9388 test ! -s conftest.err
9390 ac_header_preproc=yes
9392 echo "$as_me: failed program was:" >&5
9393 sed 's/^/| /' conftest.$ac_ext >&5
9395 ac_header_preproc=no
9398 rm -f conftest.err conftest.$ac_ext
9399 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9400 echo "${ECHO_T}$ac_header_preproc" >&6; }
9402 # So? What about this header?
9403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9405 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9406 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9408 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9409 ac_header_preproc=yes
9412 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9413 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9414 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9415 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9416 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9417 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9418 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9419 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9420 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9421 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9422 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9423 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 eval "$as_ac_Header=\$ac_header_preproc"
9434 ac_res=`eval echo '${'$as_ac_Header'}'`
9435 { echo "$as_me:$LINENO: result: $ac_res" >&5
9436 echo "${ECHO_T}$ac_res" >&6; }
9439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9440 cat >>confdefs.h <<_ACEOF
9441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9449 for ac_func in getpagesize
9451 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9452 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9453 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9454 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9455 echo $ECHO_N "(cached) $ECHO_C" >&6
9457 cat >conftest.$ac_ext <<_ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h. */
9463 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9465 #define $ac_func innocuous_$ac_func
9467 /* System header to define __stub macros and hopefully few prototypes,
9468 which can conflict with char $ac_func (); below.
9469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9470 <limits.h> exists even on freestanding compilers. */
9473 # include <limits.h>
9475 # include <assert.h>
9480 /* Override any GCC internal prototype to avoid an error.
9481 Use char because int might match the return type of a GCC
9482 builtin and then its argument prototype would still apply. */
9487 /* The GNU C library defines this for functions which it implements
9488 to always fail with ENOSYS. Some functions are actually named
9489 something starting with __ and the normal name is an alias. */
9490 #if defined __stub_$ac_func || defined __stub___$ac_func
9502 rm -f conftest.$ac_objext conftest$ac_exeext
9503 if { (ac_try="$ac_link"
9505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9506 *) ac_try_echo=$ac_try;;
9508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9509 (eval "$ac_link") 2>conftest.er1
9511 grep -v '^ *+' conftest.er1 >conftest.err
9513 cat conftest.err >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } && {
9516 test -z "$ac_c_werror_flag" ||
9517 test ! -s conftest.err
9518 } && test -s conftest$ac_exeext &&
9519 $as_test_x conftest$ac_exeext; then
9520 eval "$as_ac_var=yes"
9522 echo "$as_me: failed program was:" >&5
9523 sed 's/^/| /' conftest.$ac_ext >&5
9525 eval "$as_ac_var=no"
9528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9529 conftest$ac_exeext conftest.$ac_ext
9531 ac_res=`eval echo '${'$as_ac_var'}'`
9532 { echo "$as_me:$LINENO: result: $ac_res" >&5
9533 echo "${ECHO_T}$ac_res" >&6; }
9534 if test `eval echo '${'$as_ac_var'}'` = yes; then
9535 cat >>confdefs.h <<_ACEOF
9536 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9542 { echo "$as_me:$LINENO: checking for working mmap" >&5
9543 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9544 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 if test "$cross_compiling" = yes; then
9548 ac_cv_func_mmap_fixed_mapped=no
9550 cat >conftest.$ac_ext <<_ACEOF
9553 cat confdefs.h >>conftest.$ac_ext
9554 cat >>conftest.$ac_ext <<_ACEOF
9555 /* end confdefs.h. */
9556 $ac_includes_default
9557 /* malloc might have been renamed as rpl_malloc. */
9560 /* Thanks to Mike Haertel and Jim Avera for this test.
9561 Here is a matrix of mmap possibilities:
9562 mmap private not fixed
9563 mmap private fixed at somewhere currently unmapped
9564 mmap private fixed at somewhere already mapped
9565 mmap shared not fixed
9566 mmap shared fixed at somewhere currently unmapped
9567 mmap shared fixed at somewhere already mapped
9568 For private mappings, we should verify that changes cannot be read()
9569 back from the file, nor mmap's back from the file at a different
9570 address. (There have been systems where private was not correctly
9571 implemented like the infamous i386 svr4.0, and systems where the
9572 VM page cache was not coherent with the file system buffer cache
9573 like early versions of FreeBSD and possibly contemporary NetBSD.)
9574 For shared mappings, we should conversely verify that changes get
9575 propagated back to all the places they're supposed to be.
9577 Grep wants private fixed already mapped.
9578 The main things grep needs to know about mmap are:
9579 * does it exist and is it safe to write into the mmap'd area
9580 * how to use it (BSD variants) */
9583 #include <sys/mman.h>
9585 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9589 /* This mess was copied from the GNU getpagesize.h. */
9590 #ifndef HAVE_GETPAGESIZE
9591 /* Assume that all systems that can run configure have sys/param.h. */
9592 # ifndef HAVE_SYS_PARAM_H
9593 # define HAVE_SYS_PARAM_H 1
9596 # ifdef _SC_PAGESIZE
9597 # define getpagesize() sysconf(_SC_PAGESIZE)
9598 # else /* no _SC_PAGESIZE */
9599 # ifdef HAVE_SYS_PARAM_H
9600 # include <sys/param.h>
9601 # ifdef EXEC_PAGESIZE
9602 # define getpagesize() EXEC_PAGESIZE
9603 # else /* no EXEC_PAGESIZE */
9605 # define getpagesize() NBPG * CLSIZE
9608 # endif /* no CLSIZE */
9609 # else /* no NBPG */
9611 # define getpagesize() NBPC
9612 # else /* no NBPC */
9614 # define getpagesize() PAGESIZE
9615 # endif /* PAGESIZE */
9616 # endif /* no NBPC */
9617 # endif /* no NBPG */
9618 # endif /* no EXEC_PAGESIZE */
9619 # else /* no HAVE_SYS_PARAM_H */
9620 # define getpagesize() 8192 /* punt totally */
9621 # endif /* no HAVE_SYS_PARAM_H */
9622 # endif /* no _SC_PAGESIZE */
9624 #endif /* no HAVE_GETPAGESIZE */
9629 char *data, *data2, *data3;
9633 pagesize = getpagesize ();
9635 /* First, make a file with some known garbage in it. */
9636 data = (char *) malloc (pagesize);
9639 for (i = 0; i < pagesize; ++i)
9640 *(data + i) = rand ();
9642 fd = creat ("conftest.mmap", 0600);
9645 if (write (fd, data, pagesize) != pagesize)
9649 /* Next, try to mmap the file at a fixed address which already has
9650 something else allocated at it. If we can, also make sure that
9651 we see the same garbage. */
9652 fd = open ("conftest.mmap", O_RDWR);
9655 data2 = (char *) malloc (2 * pagesize);
9658 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9659 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9660 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9662 for (i = 0; i < pagesize; ++i)
9663 if (*(data + i) != *(data2 + i))
9666 /* Finally, make sure that changes to the mapped area do not
9667 percolate back to the file as seen by read(). (This is a bug on
9668 some variants of i386 svr4.0.) */
9669 for (i = 0; i < pagesize; ++i)
9670 *(data2 + i) = *(data2 + i) + 1;
9671 data3 = (char *) malloc (pagesize);
9674 if (read (fd, data3, pagesize) != pagesize)
9676 for (i = 0; i < pagesize; ++i)
9677 if (*(data + i) != *(data3 + i))
9683 rm -f conftest$ac_exeext
9684 if { (ac_try="$ac_link"
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_link") 2>&5
9692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9694 { (case "(($ac_try" in
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699 (eval "$ac_try") 2>&5
9701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702 (exit $ac_status); }; }; then
9703 ac_cv_func_mmap_fixed_mapped=yes
9705 echo "$as_me: program exited with status $ac_status" >&5
9706 echo "$as_me: failed program was:" >&5
9707 sed 's/^/| /' conftest.$ac_ext >&5
9710 ac_cv_func_mmap_fixed_mapped=no
9712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9717 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9718 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9719 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9721 cat >>confdefs.h <<\_ACEOF
9729 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9730 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9731 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9732 echo $ECHO_N "(cached) $ECHO_C" >&6
9734 cat >conftest.$ac_ext <<_ACEOF
9737 cat confdefs.h >>conftest.$ac_ext
9738 cat >>conftest.$ac_ext <<_ACEOF
9739 /* end confdefs.h. */
9741 #include <features.h>
9742 #ifdef __GNU_LIBRARY__
9743 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9750 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9751 ac_cv_gnu_library_2_1=yes
9753 ac_cv_gnu_library_2_1=no
9760 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9761 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9763 GLIBC21="$ac_cv_gnu_library_2_1"
9768 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9769 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9770 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9774 if test "$cross_compiling" = yes; then
9776 # Guess based on the CPU.
9778 alpha* | i3456786 | m68k | s390*)
9779 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9781 gt_cv_int_divbyzero_sigfpe="guessing no";;
9785 cat >conftest.$ac_ext <<_ACEOF
9788 cat confdefs.h >>conftest.$ac_ext
9789 cat >>conftest.$ac_ext <<_ACEOF
9790 /* end confdefs.h. */
9797 sigfpe_handler (int sig)
9799 sigfpe_handler (sig) int sig;
9802 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9803 exit (sig != SIGFPE);
9813 signal (SIGFPE, sigfpe_handler);
9814 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9815 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9816 signal (SIGTRAP, sigfpe_handler);
9818 /* Linux/SPARC yields signal SIGILL. */
9819 #if defined (__sparc__) && defined (__linux__)
9820 signal (SIGILL, sigfpe_handler);
9829 rm -f conftest$ac_exeext
9830 if { (ac_try="$ac_link"
9832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9833 *) ac_try_echo=$ac_try;;
9835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9836 (eval "$ac_link") 2>&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9840 { (case "(($ac_try" in
9841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9842 *) ac_try_echo=$ac_try;;
9844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9845 (eval "$ac_try") 2>&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); }; }; then
9849 gt_cv_int_divbyzero_sigfpe=yes
9851 echo "$as_me: program exited with status $ac_status" >&5
9852 echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9856 gt_cv_int_divbyzero_sigfpe=no
9858 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9864 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9865 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9866 case "$gt_cv_int_divbyzero_sigfpe" in
9871 cat >>confdefs.h <<_ACEOF
9872 #define INTDIV0_RAISES_SIGFPE $value
9877 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9878 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9879 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9882 cat >conftest.$ac_ext <<_ACEOF
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h. */
9888 unsigned long long ull = 1ULL; int i = 63;
9892 unsigned long long ullmax = (unsigned long long) -1;
9893 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9898 rm -f conftest.$ac_objext conftest$ac_exeext
9899 if { (ac_try="$ac_link"
9901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9902 *) ac_try_echo=$ac_try;;
9904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9905 (eval "$ac_link") 2>conftest.er1
9907 grep -v '^ *+' conftest.er1 >conftest.err
9909 cat conftest.err >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } && {
9912 test -z "$ac_c_werror_flag" ||
9913 test ! -s conftest.err
9914 } && test -s conftest$ac_exeext &&
9915 $as_test_x conftest$ac_exeext; then
9916 ac_cv_type_unsigned_long_long=yes
9918 echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9921 ac_cv_type_unsigned_long_long=no
9924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9925 conftest$ac_exeext conftest.$ac_ext
9927 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9928 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9929 if test $ac_cv_type_unsigned_long_long = yes; then
9931 cat >>confdefs.h <<\_ACEOF
9932 #define HAVE_UNSIGNED_LONG_LONG 1
9940 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9942 test $ac_cv_type_unsigned_long_long = yes \
9943 && ac_type='unsigned long long' \
9944 || ac_type='unsigned long'
9946 cat >>confdefs.h <<_ACEOF
9947 #define uintmax_t $ac_type
9952 cat >>confdefs.h <<\_ACEOF
9953 #define HAVE_UINTMAX_T 1
9959 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9960 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9961 if test "${gt_cv_header_inttypes_h+set}" = set; then
9962 echo $ECHO_N "(cached) $ECHO_C" >&6
9965 cat >conftest.$ac_ext <<_ACEOF
9968 cat confdefs.h >>conftest.$ac_ext
9969 cat >>conftest.$ac_ext <<_ACEOF
9970 /* end confdefs.h. */
9971 #include <sys/types.h>
9972 #include <inttypes.h>
9981 rm -f conftest.$ac_objext
9982 if { (ac_try="$ac_compile"
9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988 (eval "$ac_compile") 2>conftest.er1
9990 grep -v '^ *+' conftest.er1 >conftest.err
9992 cat conftest.err >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } && {
9995 test -z "$ac_c_werror_flag" ||
9996 test ! -s conftest.err
9997 } && test -s conftest.$ac_objext; then
9998 gt_cv_header_inttypes_h=yes
10000 echo "$as_me: failed program was:" >&5
10001 sed 's/^/| /' conftest.$ac_ext >&5
10003 gt_cv_header_inttypes_h=no
10006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10009 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
10010 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
10011 if test $gt_cv_header_inttypes_h = yes; then
10013 cat >>confdefs.h <<_ACEOF
10014 #define HAVE_INTTYPES_H 1
10021 if test $gt_cv_header_inttypes_h = yes; then
10022 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10023 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10024 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10025 echo $ECHO_N "(cached) $ECHO_C" >&6
10028 cat >conftest.$ac_ext <<_ACEOF
10031 cat confdefs.h >>conftest.$ac_ext
10032 cat >>conftest.$ac_ext <<_ACEOF
10033 /* end confdefs.h. */
10034 #include <inttypes.h>
10047 rm -f conftest.$ac_objext
10048 if { (ac_try="$ac_compile"
10049 case "(($ac_try" in
10050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10051 *) ac_try_echo=$ac_try;;
10053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10054 (eval "$ac_compile") 2>conftest.er1
10056 grep -v '^ *+' conftest.er1 >conftest.err
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } && {
10061 test -z "$ac_c_werror_flag" ||
10062 test ! -s conftest.err
10063 } && test -s conftest.$ac_objext; then
10064 gt_cv_inttypes_pri_broken=no
10066 echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10069 gt_cv_inttypes_pri_broken=yes
10072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10075 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10076 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10078 if test "$gt_cv_inttypes_pri_broken" = yes; then
10080 cat >>confdefs.h <<_ACEOF
10081 #define PRI_MACROS_BROKEN 1
10088 for ac_header in stdint.h
10090 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 ac_res=`eval echo '${'$as_ac_Header'}'`
10098 { echo "$as_me:$LINENO: result: $ac_res" >&5
10099 echo "${ECHO_T}$ac_res" >&6; }
10101 # Is the header compilable?
10102 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10103 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10104 cat >conftest.$ac_ext <<_ACEOF
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10110 $ac_includes_default
10111 #include <$ac_header>
10113 rm -f conftest.$ac_objext
10114 if { (ac_try="$ac_compile"
10115 case "(($ac_try" in
10116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_compile") 2>conftest.er1
10122 grep -v '^ *+' conftest.er1 >conftest.err
10124 cat conftest.err >&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } && {
10127 test -z "$ac_c_werror_flag" ||
10128 test ! -s conftest.err
10129 } && test -s conftest.$ac_objext; then
10130 ac_header_compiler=yes
10132 echo "$as_me: failed program was:" >&5
10133 sed 's/^/| /' conftest.$ac_ext >&5
10135 ac_header_compiler=no
10138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10139 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10140 echo "${ECHO_T}$ac_header_compiler" >&6; }
10142 # Is the header present?
10143 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10145 cat >conftest.$ac_ext <<_ACEOF
10148 cat confdefs.h >>conftest.$ac_ext
10149 cat >>conftest.$ac_ext <<_ACEOF
10150 /* end confdefs.h. */
10151 #include <$ac_header>
10153 if { (ac_try="$ac_cpp conftest.$ac_ext"
10154 case "(($ac_try" in
10155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156 *) ac_try_echo=$ac_try;;
10158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10161 grep -v '^ *+' conftest.er1 >conftest.err
10163 cat conftest.err >&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); } >/dev/null && {
10166 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10167 test ! -s conftest.err
10169 ac_header_preproc=yes
10171 echo "$as_me: failed program was:" >&5
10172 sed 's/^/| /' conftest.$ac_ext >&5
10174 ac_header_preproc=no
10177 rm -f conftest.err conftest.$ac_ext
10178 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10179 echo "${ECHO_T}$ac_header_preproc" >&6; }
10181 # So? What about this header?
10182 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10184 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10185 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10187 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10188 ac_header_preproc=yes
10191 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10192 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10193 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10194 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10195 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10196 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10197 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10198 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10200 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10201 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10202 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10209 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 eval "$as_ac_Header=\$ac_header_preproc"
10213 ac_res=`eval echo '${'$as_ac_Header'}'`
10214 { echo "$as_me:$LINENO: result: $ac_res" >&5
10215 echo "${ECHO_T}$ac_res" >&6; }
10218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10219 cat >>confdefs.h <<_ACEOF
10220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10227 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10228 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10230 cat >conftest.$ac_ext <<_ACEOF
10233 cat confdefs.h >>conftest.$ac_ext
10234 cat >>conftest.$ac_ext <<_ACEOF
10235 /* end confdefs.h. */
10237 #include <limits.h>
10239 #include <stdint.h>
10246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10247 $EGREP "Found it" >/dev/null 2>&1; then
10252 if test -z "$result"; then
10253 if test "$cross_compiling" = yes; then
10254 # Depending upon the size, compute the lo and hi bounds.
10255 cat >conftest.$ac_ext <<_ACEOF
10258 cat confdefs.h >>conftest.$ac_ext
10259 cat >>conftest.$ac_ext <<_ACEOF
10260 /* end confdefs.h. */
10261 #include <stddef.h>
10265 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10272 rm -f conftest.$ac_objext
10273 if { (ac_try="$ac_compile"
10274 case "(($ac_try" in
10275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10276 *) ac_try_echo=$ac_try;;
10278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10279 (eval "$ac_compile") 2>conftest.er1
10281 grep -v '^ *+' conftest.er1 >conftest.err
10283 cat conftest.err >&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } && {
10286 test -z "$ac_c_werror_flag" ||
10287 test ! -s conftest.err
10288 } && test -s conftest.$ac_objext; then
10291 cat >conftest.$ac_ext <<_ACEOF
10294 cat confdefs.h >>conftest.$ac_ext
10295 cat >>conftest.$ac_ext <<_ACEOF
10296 /* end confdefs.h. */
10297 #include <stddef.h>
10301 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10308 rm -f conftest.$ac_objext
10309 if { (ac_try="$ac_compile"
10310 case "(($ac_try" in
10311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10312 *) ac_try_echo=$ac_try;;
10314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10315 (eval "$ac_compile") 2>conftest.er1
10317 grep -v '^ *+' conftest.er1 >conftest.err
10319 cat conftest.err >&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); } && {
10322 test -z "$ac_c_werror_flag" ||
10323 test ! -s conftest.err
10324 } && test -s conftest.$ac_objext; then
10325 ac_hi=$ac_mid; break
10327 echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.$ac_ext >&5
10330 ac_lo=`expr $ac_mid + 1`
10331 if test $ac_lo -le $ac_mid; then
10335 ac_mid=`expr 2 '*' $ac_mid + 1`
10338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10341 echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.$ac_ext >&5
10344 cat >conftest.$ac_ext <<_ACEOF
10347 cat confdefs.h >>conftest.$ac_ext
10348 cat >>conftest.$ac_ext <<_ACEOF
10349 /* end confdefs.h. */
10350 #include <stddef.h>
10354 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10361 rm -f conftest.$ac_objext
10362 if { (ac_try="$ac_compile"
10363 case "(($ac_try" in
10364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10365 *) ac_try_echo=$ac_try;;
10367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10368 (eval "$ac_compile") 2>conftest.er1
10370 grep -v '^ *+' conftest.er1 >conftest.err
10372 cat conftest.err >&5
10373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374 (exit $ac_status); } && {
10375 test -z "$ac_c_werror_flag" ||
10376 test ! -s conftest.err
10377 } && test -s conftest.$ac_objext; then
10380 cat >conftest.$ac_ext <<_ACEOF
10383 cat confdefs.h >>conftest.$ac_ext
10384 cat >>conftest.$ac_ext <<_ACEOF
10385 /* end confdefs.h. */
10386 #include <stddef.h>
10390 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10397 rm -f conftest.$ac_objext
10398 if { (ac_try="$ac_compile"
10399 case "(($ac_try" in
10400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401 *) ac_try_echo=$ac_try;;
10403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10404 (eval "$ac_compile") 2>conftest.er1
10406 grep -v '^ *+' conftest.er1 >conftest.err
10408 cat conftest.err >&5
10409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10410 (exit $ac_status); } && {
10411 test -z "$ac_c_werror_flag" ||
10412 test ! -s conftest.err
10413 } && test -s conftest.$ac_objext; then
10414 ac_lo=$ac_mid; break
10416 echo "$as_me: failed program was:" >&5
10417 sed 's/^/| /' conftest.$ac_ext >&5
10419 ac_hi=`expr '(' $ac_mid ')' - 1`
10420 if test $ac_mid -le $ac_hi; then
10424 ac_mid=`expr 2 '*' $ac_mid`
10427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10430 echo "$as_me: failed program was:" >&5
10431 sed 's/^/| /' conftest.$ac_ext >&5
10436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10440 # Binary search between lo and hi bounds.
10441 while test "x$ac_lo" != "x$ac_hi"; do
10442 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10443 cat >conftest.$ac_ext <<_ACEOF
10446 cat confdefs.h >>conftest.$ac_ext
10447 cat >>conftest.$ac_ext <<_ACEOF
10448 /* end confdefs.h. */
10449 #include <stddef.h>
10453 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10460 rm -f conftest.$ac_objext
10461 if { (ac_try="$ac_compile"
10462 case "(($ac_try" in
10463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464 *) ac_try_echo=$ac_try;;
10466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10467 (eval "$ac_compile") 2>conftest.er1
10469 grep -v '^ *+' conftest.er1 >conftest.err
10471 cat conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } && {
10474 test -z "$ac_c_werror_flag" ||
10475 test ! -s conftest.err
10476 } && test -s conftest.$ac_objext; then
10479 echo "$as_me: failed program was:" >&5
10480 sed 's/^/| /' conftest.$ac_ext >&5
10482 ac_lo=`expr '(' $ac_mid ')' + 1`
10485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10488 ?*) res_hi=$ac_lo;;
10492 cat >conftest.$ac_ext <<_ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h. */
10498 #include <stddef.h>
10499 static long int longval () { return ~(size_t)0 / 10; }
10500 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10502 #include <stdlib.h>
10507 FILE *f = fopen ("conftest.val", "w");
10510 if ((~(size_t)0 / 10) < 0)
10512 long int i = longval ();
10513 if (i != (~(size_t)0 / 10))
10515 fprintf (f, "%ld\n", i);
10519 unsigned long int i = ulongval ();
10520 if (i != (~(size_t)0 / 10))
10522 fprintf (f, "%lu\n", i);
10524 return ferror (f) || fclose (f) != 0;
10530 rm -f conftest$ac_exeext
10531 if { (ac_try="$ac_link"
10532 case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_link") 2>&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10541 { (case "(($ac_try" in
10542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10543 *) ac_try_echo=$ac_try;;
10545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10546 (eval "$ac_try") 2>&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); }; }; then
10550 res_hi=`cat conftest.val`
10552 echo "$as_me: program exited with status $ac_status" >&5
10553 echo "$as_me: failed program was:" >&5
10554 sed 's/^/| /' conftest.$ac_ext >&5
10556 ( exit $ac_status )
10559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10563 if test "$cross_compiling" = yes; then
10564 # Depending upon the size, compute the lo and hi bounds.
10565 cat >conftest.$ac_ext <<_ACEOF
10568 cat confdefs.h >>conftest.$ac_ext
10569 cat >>conftest.$ac_ext <<_ACEOF
10570 /* end confdefs.h. */
10571 #include <stddef.h>
10575 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10582 rm -f conftest.$ac_objext
10583 if { (ac_try="$ac_compile"
10584 case "(($ac_try" in
10585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586 *) ac_try_echo=$ac_try;;
10588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10589 (eval "$ac_compile") 2>conftest.er1
10591 grep -v '^ *+' conftest.er1 >conftest.err
10593 cat conftest.err >&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } && {
10596 test -z "$ac_c_werror_flag" ||
10597 test ! -s conftest.err
10598 } && test -s conftest.$ac_objext; then
10601 cat >conftest.$ac_ext <<_ACEOF
10604 cat confdefs.h >>conftest.$ac_ext
10605 cat >>conftest.$ac_ext <<_ACEOF
10606 /* end confdefs.h. */
10607 #include <stddef.h>
10611 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10618 rm -f conftest.$ac_objext
10619 if { (ac_try="$ac_compile"
10620 case "(($ac_try" in
10621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10622 *) ac_try_echo=$ac_try;;
10624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10625 (eval "$ac_compile") 2>conftest.er1
10627 grep -v '^ *+' conftest.er1 >conftest.err
10629 cat conftest.err >&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); } && {
10632 test -z "$ac_c_werror_flag" ||
10633 test ! -s conftest.err
10634 } && test -s conftest.$ac_objext; then
10635 ac_hi=$ac_mid; break
10637 echo "$as_me: failed program was:" >&5
10638 sed 's/^/| /' conftest.$ac_ext >&5
10640 ac_lo=`expr $ac_mid + 1`
10641 if test $ac_lo -le $ac_mid; then
10645 ac_mid=`expr 2 '*' $ac_mid + 1`
10648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10654 cat >conftest.$ac_ext <<_ACEOF
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h. */
10660 #include <stddef.h>
10664 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10671 rm -f conftest.$ac_objext
10672 if { (ac_try="$ac_compile"
10673 case "(($ac_try" in
10674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10675 *) ac_try_echo=$ac_try;;
10677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10678 (eval "$ac_compile") 2>conftest.er1
10680 grep -v '^ *+' conftest.er1 >conftest.err
10682 cat conftest.err >&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } && {
10685 test -z "$ac_c_werror_flag" ||
10686 test ! -s conftest.err
10687 } && test -s conftest.$ac_objext; then
10690 cat >conftest.$ac_ext <<_ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10696 #include <stddef.h>
10700 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10707 rm -f conftest.$ac_objext
10708 if { (ac_try="$ac_compile"
10709 case "(($ac_try" in
10710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10711 *) ac_try_echo=$ac_try;;
10713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10714 (eval "$ac_compile") 2>conftest.er1
10716 grep -v '^ *+' conftest.er1 >conftest.err
10718 cat conftest.err >&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); } && {
10721 test -z "$ac_c_werror_flag" ||
10722 test ! -s conftest.err
10723 } && test -s conftest.$ac_objext; then
10724 ac_lo=$ac_mid; break
10726 echo "$as_me: failed program was:" >&5
10727 sed 's/^/| /' conftest.$ac_ext >&5
10729 ac_hi=`expr '(' $ac_mid ')' - 1`
10730 if test $ac_mid -le $ac_hi; then
10734 ac_mid=`expr 2 '*' $ac_mid`
10737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10740 echo "$as_me: failed program was:" >&5
10741 sed 's/^/| /' conftest.$ac_ext >&5
10746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10750 # Binary search between lo and hi bounds.
10751 while test "x$ac_lo" != "x$ac_hi"; do
10752 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10753 cat >conftest.$ac_ext <<_ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h. */
10759 #include <stddef.h>
10763 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10770 rm -f conftest.$ac_objext
10771 if { (ac_try="$ac_compile"
10772 case "(($ac_try" in
10773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10774 *) ac_try_echo=$ac_try;;
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777 (eval "$ac_compile") 2>conftest.er1
10779 grep -v '^ *+' conftest.er1 >conftest.err
10781 cat conftest.err >&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } && {
10784 test -z "$ac_c_werror_flag" ||
10785 test ! -s conftest.err
10786 } && test -s conftest.$ac_objext; then
10789 echo "$as_me: failed program was:" >&5
10790 sed 's/^/| /' conftest.$ac_ext >&5
10792 ac_lo=`expr '(' $ac_mid ')' + 1`
10795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10798 ?*) res_lo=$ac_lo;;
10802 cat >conftest.$ac_ext <<_ACEOF
10805 cat confdefs.h >>conftest.$ac_ext
10806 cat >>conftest.$ac_ext <<_ACEOF
10807 /* end confdefs.h. */
10808 #include <stddef.h>
10809 static long int longval () { return ~(size_t)0 % 10; }
10810 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10812 #include <stdlib.h>
10817 FILE *f = fopen ("conftest.val", "w");
10820 if ((~(size_t)0 % 10) < 0)
10822 long int i = longval ();
10823 if (i != (~(size_t)0 % 10))
10825 fprintf (f, "%ld\n", i);
10829 unsigned long int i = ulongval ();
10830 if (i != (~(size_t)0 % 10))
10832 fprintf (f, "%lu\n", i);
10834 return ferror (f) || fclose (f) != 0;
10840 rm -f conftest$ac_exeext
10841 if { (ac_try="$ac_link"
10842 case "(($ac_try" in
10843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10844 *) ac_try_echo=$ac_try;;
10846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10847 (eval "$ac_link") 2>&5
10849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10850 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10851 { (case "(($ac_try" in
10852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10853 *) ac_try_echo=$ac_try;;
10855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10856 (eval "$ac_try") 2>&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); }; }; then
10860 res_lo=`cat conftest.val`
10862 echo "$as_me: program exited with status $ac_status" >&5
10863 echo "$as_me: failed program was:" >&5
10864 sed 's/^/| /' conftest.$ac_ext >&5
10866 ( exit $ac_status )
10869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10873 if test "$cross_compiling" = yes; then
10874 # Depending upon the size, compute the lo and hi bounds.
10875 cat >conftest.$ac_ext <<_ACEOF
10878 cat confdefs.h >>conftest.$ac_ext
10879 cat >>conftest.$ac_ext <<_ACEOF
10880 /* end confdefs.h. */
10881 #include <stddef.h>
10885 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10892 rm -f conftest.$ac_objext
10893 if { (ac_try="$ac_compile"
10894 case "(($ac_try" in
10895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10896 *) ac_try_echo=$ac_try;;
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_compile") 2>conftest.er1
10901 grep -v '^ *+' conftest.er1 >conftest.err
10903 cat conftest.err >&5
10904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10905 (exit $ac_status); } && {
10906 test -z "$ac_c_werror_flag" ||
10907 test ! -s conftest.err
10908 } && test -s conftest.$ac_objext; then
10911 cat >conftest.$ac_ext <<_ACEOF
10914 cat confdefs.h >>conftest.$ac_ext
10915 cat >>conftest.$ac_ext <<_ACEOF
10916 /* end confdefs.h. */
10917 #include <stddef.h>
10921 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10928 rm -f conftest.$ac_objext
10929 if { (ac_try="$ac_compile"
10930 case "(($ac_try" in
10931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10932 *) ac_try_echo=$ac_try;;
10934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10935 (eval "$ac_compile") 2>conftest.er1
10937 grep -v '^ *+' conftest.er1 >conftest.err
10939 cat conftest.err >&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); } && {
10942 test -z "$ac_c_werror_flag" ||
10943 test ! -s conftest.err
10944 } && test -s conftest.$ac_objext; then
10945 ac_hi=$ac_mid; break
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10950 ac_lo=`expr $ac_mid + 1`
10951 if test $ac_lo -le $ac_mid; then
10955 ac_mid=`expr 2 '*' $ac_mid + 1`
10958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 cat >conftest.$ac_ext <<_ACEOF
10967 cat confdefs.h >>conftest.$ac_ext
10968 cat >>conftest.$ac_ext <<_ACEOF
10969 /* end confdefs.h. */
10970 #include <stddef.h>
10974 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10981 rm -f conftest.$ac_objext
10982 if { (ac_try="$ac_compile"
10983 case "(($ac_try" in
10984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10985 *) ac_try_echo=$ac_try;;
10987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10988 (eval "$ac_compile") 2>conftest.er1
10990 grep -v '^ *+' conftest.er1 >conftest.err
10992 cat conftest.err >&5
10993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } && {
10995 test -z "$ac_c_werror_flag" ||
10996 test ! -s conftest.err
10997 } && test -s conftest.$ac_objext; then
11000 cat >conftest.$ac_ext <<_ACEOF
11003 cat confdefs.h >>conftest.$ac_ext
11004 cat >>conftest.$ac_ext <<_ACEOF
11005 /* end confdefs.h. */
11006 #include <stddef.h>
11010 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11017 rm -f conftest.$ac_objext
11018 if { (ac_try="$ac_compile"
11019 case "(($ac_try" in
11020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11021 *) ac_try_echo=$ac_try;;
11023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11024 (eval "$ac_compile") 2>conftest.er1
11026 grep -v '^ *+' conftest.er1 >conftest.err
11028 cat conftest.err >&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } && {
11031 test -z "$ac_c_werror_flag" ||
11032 test ! -s conftest.err
11033 } && test -s conftest.$ac_objext; then
11034 ac_lo=$ac_mid; break
11036 echo "$as_me: failed program was:" >&5
11037 sed 's/^/| /' conftest.$ac_ext >&5
11039 ac_hi=`expr '(' $ac_mid ')' - 1`
11040 if test $ac_mid -le $ac_hi; then
11044 ac_mid=`expr 2 '*' $ac_mid`
11047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11050 echo "$as_me: failed program was:" >&5
11051 sed 's/^/| /' conftest.$ac_ext >&5
11056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11060 # Binary search between lo and hi bounds.
11061 while test "x$ac_lo" != "x$ac_hi"; do
11062 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11063 cat >conftest.$ac_ext <<_ACEOF
11066 cat confdefs.h >>conftest.$ac_ext
11067 cat >>conftest.$ac_ext <<_ACEOF
11068 /* end confdefs.h. */
11069 #include <stddef.h>
11073 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11080 rm -f conftest.$ac_objext
11081 if { (ac_try="$ac_compile"
11082 case "(($ac_try" in
11083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11084 *) ac_try_echo=$ac_try;;
11086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11087 (eval "$ac_compile") 2>conftest.er1
11089 grep -v '^ *+' conftest.er1 >conftest.err
11091 cat conftest.err >&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } && {
11094 test -z "$ac_c_werror_flag" ||
11095 test ! -s conftest.err
11096 } && test -s conftest.$ac_objext; then
11099 echo "$as_me: failed program was:" >&5
11100 sed 's/^/| /' conftest.$ac_ext >&5
11102 ac_lo=`expr '(' $ac_mid ')' + 1`
11105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11108 ?*) fits_in_uint=$ac_lo;;
11112 cat >conftest.$ac_ext <<_ACEOF
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11118 #include <stddef.h>
11119 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11120 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11122 #include <stdlib.h>
11127 FILE *f = fopen ("conftest.val", "w");
11130 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11132 long int i = longval ();
11133 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11135 fprintf (f, "%ld\n", i);
11139 unsigned long int i = ulongval ();
11140 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11142 fprintf (f, "%lu\n", i);
11144 return ferror (f) || fclose (f) != 0;
11150 rm -f conftest$ac_exeext
11151 if { (ac_try="$ac_link"
11152 case "(($ac_try" in
11153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11154 *) ac_try_echo=$ac_try;;
11156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11157 (eval "$ac_link") 2>&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11161 { (case "(($ac_try" in
11162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11163 *) ac_try_echo=$ac_try;;
11165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11166 (eval "$ac_try") 2>&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; }; then
11170 fits_in_uint=`cat conftest.val`
11172 echo "$as_me: program exited with status $ac_status" >&5
11173 echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11176 ( exit $ac_status )
11179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11183 if test "$fits_in_uint" = 1; then
11184 cat >conftest.$ac_ext <<_ACEOF
11187 cat confdefs.h >>conftest.$ac_ext
11188 cat >>conftest.$ac_ext <<_ACEOF
11189 /* end confdefs.h. */
11190 #include <stddef.h>
11192 extern unsigned long foo;
11202 rm -f conftest.$ac_objext
11203 if { (ac_try="$ac_compile"
11204 case "(($ac_try" in
11205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11206 *) ac_try_echo=$ac_try;;
11208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11209 (eval "$ac_compile") 2>conftest.er1
11211 grep -v '^ *+' conftest.er1 >conftest.err
11213 cat conftest.err >&5
11214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215 (exit $ac_status); } && {
11216 test -z "$ac_c_werror_flag" ||
11217 test ! -s conftest.err
11218 } && test -s conftest.$ac_objext; then
11221 echo "$as_me: failed program was:" >&5
11222 sed 's/^/| /' conftest.$ac_ext >&5
11227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11229 if test -z "$result"; then
11230 if test "$fits_in_uint" = 1; then
11231 result="$res_hi$res_lo"U
11233 result="$res_hi$res_lo"UL
11236 result='~(size_t)0'
11239 { echo "$as_me:$LINENO: result: $result" >&5
11240 echo "${ECHO_T}$result" >&6; }
11241 if test "$result" != yes; then
11243 cat >>confdefs.h <<_ACEOF
11244 #define SIZE_MAX $result
11253 for ac_header in stdint.h
11255 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11257 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11258 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11259 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11260 echo $ECHO_N "(cached) $ECHO_C" >&6
11262 ac_res=`eval echo '${'$as_ac_Header'}'`
11263 { echo "$as_me:$LINENO: result: $ac_res" >&5
11264 echo "${ECHO_T}$ac_res" >&6; }
11266 # Is the header compilable?
11267 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11268 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11269 cat >conftest.$ac_ext <<_ACEOF
11272 cat confdefs.h >>conftest.$ac_ext
11273 cat >>conftest.$ac_ext <<_ACEOF
11274 /* end confdefs.h. */
11275 $ac_includes_default
11276 #include <$ac_header>
11278 rm -f conftest.$ac_objext
11279 if { (ac_try="$ac_compile"
11280 case "(($ac_try" in
11281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_compile") 2>conftest.er1
11287 grep -v '^ *+' conftest.er1 >conftest.err
11289 cat conftest.err >&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); } && {
11292 test -z "$ac_c_werror_flag" ||
11293 test ! -s conftest.err
11294 } && test -s conftest.$ac_objext; then
11295 ac_header_compiler=yes
11297 echo "$as_me: failed program was:" >&5
11298 sed 's/^/| /' conftest.$ac_ext >&5
11300 ac_header_compiler=no
11303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11304 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11305 echo "${ECHO_T}$ac_header_compiler" >&6; }
11307 # Is the header present?
11308 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11309 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11310 cat >conftest.$ac_ext <<_ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
11315 /* end confdefs.h. */
11316 #include <$ac_header>
11318 if { (ac_try="$ac_cpp conftest.$ac_ext"
11319 case "(($ac_try" in
11320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11321 *) ac_try_echo=$ac_try;;
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11326 grep -v '^ *+' conftest.er1 >conftest.err
11328 cat conftest.err >&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } >/dev/null && {
11331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11332 test ! -s conftest.err
11334 ac_header_preproc=yes
11336 echo "$as_me: failed program was:" >&5
11337 sed 's/^/| /' conftest.$ac_ext >&5
11339 ac_header_preproc=no
11342 rm -f conftest.err conftest.$ac_ext
11343 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11344 echo "${ECHO_T}$ac_header_preproc" >&6; }
11346 # So? What about this header?
11347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11350 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11352 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11353 ac_header_preproc=yes
11356 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11357 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11359 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11361 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11363 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11365 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11366 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11367 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 eval "$as_ac_Header=\$ac_header_preproc"
11378 ac_res=`eval echo '${'$as_ac_Header'}'`
11379 { echo "$as_me:$LINENO: result: $ac_res" >&5
11380 echo "${ECHO_T}$ac_res" >&6; }
11383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11384 cat >>confdefs.h <<_ACEOF
11385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11399 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11400 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11401 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11404 cat >conftest.$ac_ext <<_ACEOF
11407 cat confdefs.h >>conftest.$ac_ext
11408 cat >>conftest.$ac_ext <<_ACEOF
11409 /* end confdefs.h. */
11410 $ac_includes_default
11411 typedef ptrdiff_t ac__type_new_;
11415 if ((ac__type_new_ *) 0)
11417 if (sizeof (ac__type_new_))
11423 rm -f conftest.$ac_objext
11424 if { (ac_try="$ac_compile"
11425 case "(($ac_try" in
11426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11427 *) ac_try_echo=$ac_try;;
11429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430 (eval "$ac_compile") 2>conftest.er1
11432 grep -v '^ *+' conftest.er1 >conftest.err
11434 cat conftest.err >&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } && {
11437 test -z "$ac_c_werror_flag" ||
11438 test ! -s conftest.err
11439 } && test -s conftest.$ac_objext; then
11440 ac_cv_type_ptrdiff_t=yes
11442 echo "$as_me: failed program was:" >&5
11443 sed 's/^/| /' conftest.$ac_ext >&5
11445 ac_cv_type_ptrdiff_t=no
11448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11450 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11451 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11452 if test $ac_cv_type_ptrdiff_t = yes; then
11456 cat >>confdefs.h <<\_ACEOF
11457 #define ptrdiff_t long
11473 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11474 stdlib.h string.h unistd.h sys/param.h
11476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 ac_res=`eval echo '${'$as_ac_Header'}'`
11484 { echo "$as_me:$LINENO: result: $ac_res" >&5
11485 echo "${ECHO_T}$ac_res" >&6; }
11487 # Is the header compilable?
11488 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11490 cat >conftest.$ac_ext <<_ACEOF
11493 cat confdefs.h >>conftest.$ac_ext
11494 cat >>conftest.$ac_ext <<_ACEOF
11495 /* end confdefs.h. */
11496 $ac_includes_default
11497 #include <$ac_header>
11499 rm -f conftest.$ac_objext
11500 if { (ac_try="$ac_compile"
11501 case "(($ac_try" in
11502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_compile") 2>conftest.er1
11508 grep -v '^ *+' conftest.er1 >conftest.err
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } && {
11513 test -z "$ac_c_werror_flag" ||
11514 test ! -s conftest.err
11515 } && test -s conftest.$ac_objext; then
11516 ac_header_compiler=yes
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521 ac_header_compiler=no
11524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11526 echo "${ECHO_T}$ac_header_compiler" >&6; }
11528 # Is the header present?
11529 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11531 cat >conftest.$ac_ext <<_ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11537 #include <$ac_header>
11539 if { (ac_try="$ac_cpp conftest.$ac_ext"
11540 case "(($ac_try" in
11541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11542 *) ac_try_echo=$ac_try;;
11544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11547 grep -v '^ *+' conftest.er1 >conftest.err
11549 cat conftest.err >&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } >/dev/null && {
11552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11553 test ! -s conftest.err
11555 ac_header_preproc=yes
11557 echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.$ac_ext >&5
11560 ac_header_preproc=no
11563 rm -f conftest.err conftest.$ac_ext
11564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11565 echo "${ECHO_T}$ac_header_preproc" >&6; }
11567 # So? What about this header?
11568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11574 ac_header_preproc=yes
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11597 eval "$as_ac_Header=\$ac_header_preproc"
11599 ac_res=`eval echo '${'$as_ac_Header'}'`
11600 { echo "$as_me:$LINENO: result: $ac_res" >&5
11601 echo "${ECHO_T}$ac_res" >&6; }
11604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11605 cat >>confdefs.h <<_ACEOF
11606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11636 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11637 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11638 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11645 echo $ECHO_N "(cached) $ECHO_C" >&6
11647 cat >conftest.$ac_ext <<_ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11655 #define $ac_func innocuous_$ac_func
11657 /* System header to define __stub macros and hopefully few prototypes,
11658 which can conflict with char $ac_func (); below.
11659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11660 <limits.h> exists even on freestanding compilers. */
11663 # include <limits.h>
11665 # include <assert.h>
11670 /* Override any GCC internal prototype to avoid an error.
11671 Use char because int might match the return type of a GCC
11672 builtin and then its argument prototype would still apply. */
11677 /* The GNU C library defines this for functions which it implements
11678 to always fail with ENOSYS. Some functions are actually named
11679 something starting with __ and the normal name is an alias. */
11680 #if defined __stub_$ac_func || defined __stub___$ac_func
11687 return $ac_func ();
11692 rm -f conftest.$ac_objext conftest$ac_exeext
11693 if { (ac_try="$ac_link"
11694 case "(($ac_try" in
11695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696 *) ac_try_echo=$ac_try;;
11698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699 (eval "$ac_link") 2>conftest.er1
11701 grep -v '^ *+' conftest.er1 >conftest.err
11703 cat conftest.err >&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); } && {
11706 test -z "$ac_c_werror_flag" ||
11707 test ! -s conftest.err
11708 } && test -s conftest$ac_exeext &&
11709 $as_test_x conftest$ac_exeext; then
11710 eval "$as_ac_var=yes"
11712 echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11715 eval "$as_ac_var=no"
11718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11719 conftest$ac_exeext conftest.$ac_ext
11721 ac_res=`eval echo '${'$as_ac_var'}'`
11722 { echo "$as_me:$LINENO: result: $ac_res" >&5
11723 echo "${ECHO_T}$ac_res" >&6; }
11724 if test `eval echo '${'$as_ac_var'}'` = yes; then
11725 cat >>confdefs.h <<_ACEOF
11726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11734 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11735 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11736 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11739 cat >conftest.$ac_ext <<_ACEOF
11742 cat confdefs.h >>conftest.$ac_ext
11743 cat >>conftest.$ac_ext <<_ACEOF
11744 /* end confdefs.h. */
11751 char *p = (char *) _snprintf;
11758 rm -f conftest.$ac_objext
11759 if { (ac_try="$ac_compile"
11760 case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11765 (eval "$ac_compile") 2>conftest.er1
11767 grep -v '^ *+' conftest.er1 >conftest.err
11769 cat conftest.err >&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } && {
11772 test -z "$ac_c_werror_flag" ||
11773 test ! -s conftest.err
11774 } && test -s conftest.$ac_objext; then
11775 ac_cv_have_decl__snprintf=yes
11777 echo "$as_me: failed program was:" >&5
11778 sed 's/^/| /' conftest.$ac_ext >&5
11780 ac_cv_have_decl__snprintf=no
11783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11785 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11786 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11787 if test $ac_cv_have_decl__snprintf = yes; then
11793 cat >>confdefs.h <<_ACEOF
11794 #define HAVE_DECL__SNPRINTF $gt_value
11799 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11800 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11801 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11802 echo $ECHO_N "(cached) $ECHO_C" >&6
11804 cat >conftest.$ac_ext <<_ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11816 char *p = (char *) _snwprintf;
11823 rm -f conftest.$ac_objext
11824 if { (ac_try="$ac_compile"
11825 case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_compile") 2>conftest.er1
11832 grep -v '^ *+' conftest.er1 >conftest.err
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } && {
11837 test -z "$ac_c_werror_flag" ||
11838 test ! -s conftest.err
11839 } && test -s conftest.$ac_objext; then
11840 ac_cv_have_decl__snwprintf=yes
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11845 ac_cv_have_decl__snwprintf=no
11848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11850 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11851 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11852 if test $ac_cv_have_decl__snwprintf = yes; then
11858 cat >>confdefs.h <<_ACEOF
11859 #define HAVE_DECL__SNWPRINTF $gt_value
11865 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11866 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11867 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11868 echo $ECHO_N "(cached) $ECHO_C" >&6
11870 cat >conftest.$ac_ext <<_ACEOF
11873 cat confdefs.h >>conftest.$ac_ext
11874 cat >>conftest.$ac_ext <<_ACEOF
11875 /* end confdefs.h. */
11881 #ifndef feof_unlocked
11882 char *p = (char *) feof_unlocked;
11889 rm -f conftest.$ac_objext
11890 if { (ac_try="$ac_compile"
11891 case "(($ac_try" in
11892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11893 *) ac_try_echo=$ac_try;;
11895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11896 (eval "$ac_compile") 2>conftest.er1
11898 grep -v '^ *+' conftest.er1 >conftest.err
11900 cat conftest.err >&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } && {
11903 test -z "$ac_c_werror_flag" ||
11904 test ! -s conftest.err
11905 } && test -s conftest.$ac_objext; then
11906 ac_cv_have_decl_feof_unlocked=yes
11908 echo "$as_me: failed program was:" >&5
11909 sed 's/^/| /' conftest.$ac_ext >&5
11911 ac_cv_have_decl_feof_unlocked=no
11914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11916 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11917 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11918 if test $ac_cv_have_decl_feof_unlocked = yes; then
11924 cat >>confdefs.h <<_ACEOF
11925 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11930 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11931 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11932 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11935 cat >conftest.$ac_ext <<_ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h. */
11946 #ifndef fgets_unlocked
11947 char *p = (char *) fgets_unlocked;
11954 rm -f conftest.$ac_objext
11955 if { (ac_try="$ac_compile"
11956 case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_compile") 2>conftest.er1
11963 grep -v '^ *+' conftest.er1 >conftest.err
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } && {
11968 test -z "$ac_c_werror_flag" ||
11969 test ! -s conftest.err
11970 } && test -s conftest.$ac_objext; then
11971 ac_cv_have_decl_fgets_unlocked=yes
11973 echo "$as_me: failed program was:" >&5
11974 sed 's/^/| /' conftest.$ac_ext >&5
11976 ac_cv_have_decl_fgets_unlocked=no
11979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11981 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11982 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11983 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11989 cat >>confdefs.h <<_ACEOF
11990 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11995 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11996 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
11997 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11998 echo $ECHO_N "(cached) $ECHO_C" >&6
12000 cat >conftest.$ac_ext <<_ACEOF
12003 cat confdefs.h >>conftest.$ac_ext
12004 cat >>conftest.$ac_ext <<_ACEOF
12005 /* end confdefs.h. */
12011 #ifndef getc_unlocked
12012 char *p = (char *) getc_unlocked;
12019 rm -f conftest.$ac_objext
12020 if { (ac_try="$ac_compile"
12021 case "(($ac_try" in
12022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12023 *) ac_try_echo=$ac_try;;
12025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12026 (eval "$ac_compile") 2>conftest.er1
12028 grep -v '^ *+' conftest.er1 >conftest.err
12030 cat conftest.err >&5
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); } && {
12033 test -z "$ac_c_werror_flag" ||
12034 test ! -s conftest.err
12035 } && test -s conftest.$ac_objext; then
12036 ac_cv_have_decl_getc_unlocked=yes
12038 echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12041 ac_cv_have_decl_getc_unlocked=no
12044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12046 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12047 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12048 if test $ac_cv_have_decl_getc_unlocked = yes; then
12054 cat >>confdefs.h <<_ACEOF
12055 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12060 case $gt_cv_func_printf_posix in
12061 *yes) HAVE_POSIX_PRINTF=1 ;;
12062 *) HAVE_POSIX_PRINTF=0 ;;
12065 if test "$ac_cv_func_asprintf" = yes; then
12071 if test "$ac_cv_func_snprintf" = yes; then
12077 if test "$ac_cv_func_wprintf" = yes; then
12089 am_save_CPPFLAGS="$CPPFLAGS"
12091 for element in $INCICONV; do
12093 for x in $CPPFLAGS; do
12095 acl_save_prefix="$prefix"
12096 prefix="$acl_final_prefix"
12097 acl_save_exec_prefix="$exec_prefix"
12098 exec_prefix="$acl_final_exec_prefix"
12100 exec_prefix="$acl_save_exec_prefix"
12101 prefix="$acl_save_prefix"
12103 if test "X$x" = "X$element"; then
12108 if test -z "$haveit"; then
12109 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12114 { echo "$as_me:$LINENO: checking for iconv" >&5
12115 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12116 if test "${am_cv_func_iconv+set}" = set; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12120 am_cv_func_iconv="no, consider installing GNU libiconv"
12122 cat >conftest.$ac_ext <<_ACEOF
12125 cat confdefs.h >>conftest.$ac_ext
12126 cat >>conftest.$ac_ext <<_ACEOF
12127 /* end confdefs.h. */
12128 #include <stdlib.h>
12133 iconv_t cd = iconv_open("","");
12134 iconv(cd,NULL,NULL,NULL,NULL);
12140 rm -f conftest.$ac_objext conftest$ac_exeext
12141 if { (ac_try="$ac_link"
12142 case "(($ac_try" in
12143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12144 *) ac_try_echo=$ac_try;;
12146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12147 (eval "$ac_link") 2>conftest.er1
12149 grep -v '^ *+' conftest.er1 >conftest.err
12151 cat conftest.err >&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } && {
12154 test -z "$ac_c_werror_flag" ||
12155 test ! -s conftest.err
12156 } && test -s conftest$ac_exeext &&
12157 $as_test_x conftest$ac_exeext; then
12158 am_cv_func_iconv=yes
12160 echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12167 conftest$ac_exeext conftest.$ac_ext
12168 if test "$am_cv_func_iconv" != yes; then
12169 am_save_LIBS="$LIBS"
12170 LIBS="$LIBS $LIBICONV"
12171 cat >conftest.$ac_ext <<_ACEOF
12174 cat confdefs.h >>conftest.$ac_ext
12175 cat >>conftest.$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12177 #include <stdlib.h>
12182 iconv_t cd = iconv_open("","");
12183 iconv(cd,NULL,NULL,NULL,NULL);
12189 rm -f conftest.$ac_objext conftest$ac_exeext
12190 if { (ac_try="$ac_link"
12191 case "(($ac_try" in
12192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12193 *) ac_try_echo=$ac_try;;
12195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12196 (eval "$ac_link") 2>conftest.er1
12198 grep -v '^ *+' conftest.er1 >conftest.err
12200 cat conftest.err >&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); } && {
12203 test -z "$ac_c_werror_flag" ||
12204 test ! -s conftest.err
12205 } && test -s conftest$ac_exeext &&
12206 $as_test_x conftest$ac_exeext; then
12207 am_cv_lib_iconv=yes
12208 am_cv_func_iconv=yes
12210 echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12217 conftest$ac_exeext conftest.$ac_ext
12218 LIBS="$am_save_LIBS"
12222 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12223 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12224 if test "$am_cv_func_iconv" = yes; then
12226 cat >>confdefs.h <<\_ACEOF
12227 #define HAVE_ICONV 1
12231 if test "$am_cv_lib_iconv" = yes; then
12232 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12233 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12234 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12235 echo "${ECHO_T}$LIBICONV" >&6; }
12237 CPPFLAGS="$am_save_CPPFLAGS"
12244 if test "$am_cv_func_iconv" = yes; then
12245 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12246 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12247 if test "${am_cv_proto_iconv+set}" = set; then
12248 echo $ECHO_N "(cached) $ECHO_C" >&6
12251 cat >conftest.$ac_ext <<_ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12258 #include <stdlib.h>
12264 #if defined(__STDC__) || defined(__cplusplus)
12265 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12278 rm -f conftest.$ac_objext
12279 if { (ac_try="$ac_compile"
12280 case "(($ac_try" in
12281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12282 *) ac_try_echo=$ac_try;;
12284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285 (eval "$ac_compile") 2>conftest.er1
12287 grep -v '^ *+' conftest.er1 >conftest.err
12289 cat conftest.err >&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); } && {
12292 test -z "$ac_c_werror_flag" ||
12293 test ! -s conftest.err
12294 } && test -s conftest.$ac_objext; then
12295 am_cv_proto_iconv_arg1=""
12297 echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12300 am_cv_proto_iconv_arg1="const"
12303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12304 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);"
12307 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12308 { echo "$as_me:$LINENO: result: ${ac_t:-
12309 }$am_cv_proto_iconv" >&5
12310 echo "${ECHO_T}${ac_t:-
12311 }$am_cv_proto_iconv" >&6; }
12313 cat >>confdefs.h <<_ACEOF
12314 #define ICONV_CONST $am_cv_proto_iconv_arg1
12320 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12321 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12322 if test "${am_cv_langinfo_codeset+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 cat >conftest.$ac_ext <<_ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h. */
12331 #include <langinfo.h>
12335 char* cs = nl_langinfo(CODESET);
12340 rm -f conftest.$ac_objext conftest$ac_exeext
12341 if { (ac_try="$ac_link"
12342 case "(($ac_try" in
12343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344 *) ac_try_echo=$ac_try;;
12346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12347 (eval "$ac_link") 2>conftest.er1
12349 grep -v '^ *+' conftest.er1 >conftest.err
12351 cat conftest.err >&5
12352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353 (exit $ac_status); } && {
12354 test -z "$ac_c_werror_flag" ||
12355 test ! -s conftest.err
12356 } && test -s conftest$ac_exeext &&
12357 $as_test_x conftest$ac_exeext; then
12358 am_cv_langinfo_codeset=yes
12360 echo "$as_me: failed program was:" >&5
12361 sed 's/^/| /' conftest.$ac_ext >&5
12363 am_cv_langinfo_codeset=no
12366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12367 conftest$ac_exeext conftest.$ac_ext
12370 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12371 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12372 if test $am_cv_langinfo_codeset = yes; then
12374 cat >>confdefs.h <<\_ACEOF
12375 #define HAVE_LANGINFO_CODESET 1
12380 if test $ac_cv_header_locale_h = yes; then
12382 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12383 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12384 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12385 echo $ECHO_N "(cached) $ECHO_C" >&6
12387 cat >conftest.$ac_ext <<_ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12393 #include <locale.h>
12402 rm -f conftest.$ac_objext conftest$ac_exeext
12403 if { (ac_try="$ac_link"
12404 case "(($ac_try" in
12405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406 *) ac_try_echo=$ac_try;;
12408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12409 (eval "$ac_link") 2>conftest.er1
12411 grep -v '^ *+' conftest.er1 >conftest.err
12413 cat conftest.err >&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } && {
12416 test -z "$ac_c_werror_flag" ||
12417 test ! -s conftest.err
12418 } && test -s conftest$ac_exeext &&
12419 $as_test_x conftest$ac_exeext; then
12420 gt_cv_val_LC_MESSAGES=yes
12422 echo "$as_me: failed program was:" >&5
12423 sed 's/^/| /' conftest.$ac_ext >&5
12425 gt_cv_val_LC_MESSAGES=no
12428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12429 conftest$ac_exeext conftest.$ac_ext
12431 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12432 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12433 if test $gt_cv_val_LC_MESSAGES = yes; then
12435 cat >>confdefs.h <<\_ACEOF
12436 #define HAVE_LC_MESSAGES 1
12443 if test -n "$INTL_MACOSX_LIBS"; then
12444 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12447 for ac_prog in bison
12449 # Extract the first word of "$ac_prog", so it can be a program name with args.
12450 set dummy $ac_prog; ac_word=$2
12451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12453 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12454 echo $ECHO_N "(cached) $ECHO_C" >&6
12456 if test -n "$INTLBISON"; then
12457 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12460 for as_dir in $PATH
12463 test -z "$as_dir" && as_dir=.
12464 for ac_exec_ext in '' $ac_executable_extensions; do
12465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12466 ac_cv_prog_INTLBISON="$ac_prog"
12467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12476 INTLBISON=$ac_cv_prog_INTLBISON
12477 if test -n "$INTLBISON"; then
12478 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12479 echo "${ECHO_T}$INTLBISON" >&6; }
12481 { echo "$as_me:$LINENO: result: no" >&5
12482 echo "${ECHO_T}no" >&6; }
12486 test -n "$INTLBISON" && break
12489 if test -z "$INTLBISON"; then
12492 { echo "$as_me:$LINENO: checking version of bison" >&5
12493 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12494 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12495 case $ac_prog_version in
12496 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12497 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12498 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12499 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12501 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12502 echo "${ECHO_T}$ac_prog_version" >&6; }
12504 if test $ac_verc_fail = yes; then
12523 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12524 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12525 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12526 echo $ECHO_N "(cached) $ECHO_C" >&6
12528 gt_save_CPPFLAGS="$CPPFLAGS"
12529 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12530 gt_save_LIBS="$LIBS"
12531 LIBS="$LIBS -framework CoreFoundation"
12532 cat >conftest.$ac_ext <<_ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12538 #include <CFPreferences.h>
12542 CFPreferencesCopyAppValue(NULL, NULL)
12547 rm -f conftest.$ac_objext conftest$ac_exeext
12548 if { (ac_try="$ac_link"
12549 case "(($ac_try" in
12550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12551 *) ac_try_echo=$ac_try;;
12553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12554 (eval "$ac_link") 2>conftest.er1
12556 grep -v '^ *+' conftest.er1 >conftest.err
12558 cat conftest.err >&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } && {
12561 test -z "$ac_c_werror_flag" ||
12562 test ! -s conftest.err
12563 } && test -s conftest$ac_exeext &&
12564 $as_test_x conftest$ac_exeext; then
12565 gt_cv_func_CFPreferencesCopyAppValue=yes
12567 echo "$as_me: failed program was:" >&5
12568 sed 's/^/| /' conftest.$ac_ext >&5
12570 gt_cv_func_CFPreferencesCopyAppValue=no
12573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12574 conftest$ac_exeext conftest.$ac_ext
12575 CPPFLAGS="$gt_save_CPPFLAGS"
12576 LIBS="$gt_save_LIBS"
12578 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12579 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12580 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12582 cat >>confdefs.h <<\_ACEOF
12583 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12587 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12588 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12589 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 gt_save_CPPFLAGS="$CPPFLAGS"
12593 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12594 gt_save_LIBS="$LIBS"
12595 LIBS="$LIBS -framework CoreFoundation"
12596 cat >conftest.$ac_ext <<_ACEOF
12599 cat confdefs.h >>conftest.$ac_ext
12600 cat >>conftest.$ac_ext <<_ACEOF
12601 /* end confdefs.h. */
12602 #include <CFLocale.h>
12606 CFLocaleCopyCurrent();
12611 rm -f conftest.$ac_objext conftest$ac_exeext
12612 if { (ac_try="$ac_link"
12613 case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618 (eval "$ac_link") 2>conftest.er1
12620 grep -v '^ *+' conftest.er1 >conftest.err
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } && {
12625 test -z "$ac_c_werror_flag" ||
12626 test ! -s conftest.err
12627 } && test -s conftest$ac_exeext &&
12628 $as_test_x conftest$ac_exeext; then
12629 gt_cv_func_CFLocaleCopyCurrent=yes
12631 echo "$as_me: failed program was:" >&5
12632 sed 's/^/| /' conftest.$ac_ext >&5
12634 gt_cv_func_CFLocaleCopyCurrent=no
12637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12638 conftest$ac_exeext conftest.$ac_ext
12639 CPPFLAGS="$gt_save_CPPFLAGS"
12640 LIBS="$gt_save_LIBS"
12642 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12643 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12644 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12646 cat >>confdefs.h <<\_ACEOF
12647 #define HAVE_CFLOCALECOPYCURRENT 1
12652 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12653 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12659 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12660 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12661 # Check whether --enable-nls was given.
12662 if test "${enable_nls+set}" = set; then
12663 enableval=$enable_nls; USE_NLS=$enableval
12668 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12669 echo "${ECHO_T}$USE_NLS" >&6; }
12674 BUILD_INCLUDED_LIBINTL=no
12675 USE_INCLUDED_LIBINTL=no
12681 if test "$USE_NLS" = "yes"; then
12682 gt_use_preinstalled_gnugettext=no
12684 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12685 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12687 # Check whether --with-included-gettext was given.
12688 if test "${with_included_gettext+set}" = set; then
12689 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12691 nls_cv_force_use_gnu_gettext=no
12694 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12695 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12697 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12698 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12705 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12706 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12707 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12708 echo $ECHO_N "(cached) $ECHO_C" >&6
12710 cat >conftest.$ac_ext <<_ACEOF
12713 cat confdefs.h >>conftest.$ac_ext
12714 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h. */
12716 #include <libintl.h>
12717 extern int _nl_msg_cat_cntr;
12718 extern int *_nl_domain_bindings;
12722 bindtextdomain ("", "");
12723 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12728 rm -f conftest.$ac_objext conftest$ac_exeext
12729 if { (ac_try="$ac_link"
12730 case "(($ac_try" in
12731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12732 *) ac_try_echo=$ac_try;;
12734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12735 (eval "$ac_link") 2>conftest.er1
12737 grep -v '^ *+' conftest.er1 >conftest.err
12739 cat conftest.err >&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } && {
12742 test -z "$ac_c_werror_flag" ||
12743 test ! -s conftest.err
12744 } && test -s conftest$ac_exeext &&
12745 $as_test_x conftest$ac_exeext; then
12746 gt_cv_func_gnugettext1_libc=yes
12748 echo "$as_me: failed program was:" >&5
12749 sed 's/^/| /' conftest.$ac_ext >&5
12751 gt_cv_func_gnugettext1_libc=no
12754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12755 conftest$ac_exeext conftest.$ac_ext
12757 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12758 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12760 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12766 acl_save_prefix="$prefix"
12767 prefix="$acl_final_prefix"
12768 acl_save_exec_prefix="$exec_prefix"
12769 exec_prefix="$acl_final_exec_prefix"
12771 eval additional_includedir=\"$includedir\"
12772 eval additional_libdir=\"$libdir\"
12774 exec_prefix="$acl_save_exec_prefix"
12775 prefix="$acl_save_prefix"
12778 # Check whether --with-libintl-prefix was given.
12779 if test "${with_libintl_prefix+set}" = set; then
12780 withval=$with_libintl_prefix;
12781 if test "X$withval" = "Xno"; then
12784 if test "X$withval" = "X"; then
12786 acl_save_prefix="$prefix"
12787 prefix="$acl_final_prefix"
12788 acl_save_exec_prefix="$exec_prefix"
12789 exec_prefix="$acl_final_exec_prefix"
12791 eval additional_includedir=\"$includedir\"
12792 eval additional_libdir=\"$libdir\"
12794 exec_prefix="$acl_save_exec_prefix"
12795 prefix="$acl_save_prefix"
12798 additional_includedir="$withval/include"
12799 additional_libdir="$withval/lib"
12810 names_already_handled=
12811 names_next_round='intl '
12812 while test -n "$names_next_round"; do
12813 names_this_round="$names_next_round"
12815 for name in $names_this_round; do
12817 for n in $names_already_handled; do
12818 if test "$n" = "$name"; then
12819 already_handled=yes
12823 if test -z "$already_handled"; then
12824 names_already_handled="$names_already_handled $name"
12825 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12826 eval value=\"\$HAVE_LIB$uppername\"
12827 if test -n "$value"; then
12828 if test "$value" = yes; then
12829 eval value=\"\$LIB$uppername\"
12830 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12831 eval value=\"\$LTLIB$uppername\"
12832 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12841 if test $use_additional = yes; then
12842 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12843 found_dir="$additional_libdir"
12844 found_so="$additional_libdir/lib$name.$shlibext"
12845 if test -f "$additional_libdir/lib$name.la"; then
12846 found_la="$additional_libdir/lib$name.la"
12849 if test -f "$additional_libdir/lib$name.$libext"; then
12850 found_dir="$additional_libdir"
12851 found_a="$additional_libdir/lib$name.$libext"
12852 if test -f "$additional_libdir/lib$name.la"; then
12853 found_la="$additional_libdir/lib$name.la"
12858 if test "X$found_dir" = "X"; then
12859 for x in $LDFLAGS $LTLIBINTL; do
12861 acl_save_prefix="$prefix"
12862 prefix="$acl_final_prefix"
12863 acl_save_exec_prefix="$exec_prefix"
12864 exec_prefix="$acl_final_exec_prefix"
12866 exec_prefix="$acl_save_exec_prefix"
12867 prefix="$acl_save_prefix"
12871 dir=`echo "X$x" | sed -e 's/^X-L//'`
12872 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12874 found_so="$dir/lib$name.$shlibext"
12875 if test -f "$dir/lib$name.la"; then
12876 found_la="$dir/lib$name.la"
12879 if test -f "$dir/lib$name.$libext"; then
12881 found_a="$dir/lib$name.$libext"
12882 if test -f "$dir/lib$name.la"; then
12883 found_la="$dir/lib$name.la"
12889 if test "X$found_dir" != "X"; then
12894 if test "X$found_dir" != "X"; then
12895 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12896 if test "X$found_so" != "X"; then
12897 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12898 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12901 for x in $ltrpathdirs; do
12902 if test "X$x" = "X$found_dir"; then
12907 if test -z "$haveit"; then
12908 ltrpathdirs="$ltrpathdirs $found_dir"
12910 if test "$hardcode_direct" = yes; then
12911 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12913 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12914 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12916 for x in $rpathdirs; do
12917 if test "X$x" = "X$found_dir"; then
12922 if test -z "$haveit"; then
12923 rpathdirs="$rpathdirs $found_dir"
12927 for x in $LDFLAGS $LIBINTL; do
12929 acl_save_prefix="$prefix"
12930 prefix="$acl_final_prefix"
12931 acl_save_exec_prefix="$exec_prefix"
12932 exec_prefix="$acl_final_exec_prefix"
12934 exec_prefix="$acl_save_exec_prefix"
12935 prefix="$acl_save_prefix"
12937 if test "X$x" = "X-L$found_dir"; then
12942 if test -z "$haveit"; then
12943 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12945 if test "$hardcode_minus_L" != no; then
12946 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12948 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12954 if test "X$found_a" != "X"; then
12955 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12957 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12960 additional_includedir=
12961 case "$found_dir" in
12963 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12964 additional_includedir="$basedir/include"
12967 if test "X$additional_includedir" != "X"; then
12968 if test "X$additional_includedir" != "X/usr/include"; then
12970 if test "X$additional_includedir" = "X/usr/local/include"; then
12971 if test -n "$GCC"; then
12973 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12977 if test -z "$haveit"; then
12978 for x in $CPPFLAGS $INCINTL; do
12980 acl_save_prefix="$prefix"
12981 prefix="$acl_final_prefix"
12982 acl_save_exec_prefix="$exec_prefix"
12983 exec_prefix="$acl_final_exec_prefix"
12985 exec_prefix="$acl_save_exec_prefix"
12986 prefix="$acl_save_prefix"
12988 if test "X$x" = "X-I$additional_includedir"; then
12993 if test -z "$haveit"; then
12994 if test -d "$additional_includedir"; then
12995 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13001 if test -n "$found_la"; then
13002 save_libdir="$libdir"
13003 case "$found_la" in
13004 */* | *\\*) . "$found_la" ;;
13005 *) . "./$found_la" ;;
13007 libdir="$save_libdir"
13008 for dep in $dependency_libs; do
13011 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13012 if test "X$additional_libdir" != "X/usr/lib"; then
13014 if test "X$additional_libdir" = "X/usr/local/lib"; then
13015 if test -n "$GCC"; then
13017 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13021 if test -z "$haveit"; then
13023 for x in $LDFLAGS $LIBINTL; do
13025 acl_save_prefix="$prefix"
13026 prefix="$acl_final_prefix"
13027 acl_save_exec_prefix="$exec_prefix"
13028 exec_prefix="$acl_final_exec_prefix"
13030 exec_prefix="$acl_save_exec_prefix"
13031 prefix="$acl_save_prefix"
13033 if test "X$x" = "X-L$additional_libdir"; then
13038 if test -z "$haveit"; then
13039 if test -d "$additional_libdir"; then
13040 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13044 for x in $LDFLAGS $LTLIBINTL; do
13046 acl_save_prefix="$prefix"
13047 prefix="$acl_final_prefix"
13048 acl_save_exec_prefix="$exec_prefix"
13049 exec_prefix="$acl_final_exec_prefix"
13051 exec_prefix="$acl_save_exec_prefix"
13052 prefix="$acl_save_prefix"
13054 if test "X$x" = "X-L$additional_libdir"; then
13059 if test -z "$haveit"; then
13060 if test -d "$additional_libdir"; then
13061 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13068 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13069 if test "$enable_rpath" != no; then
13071 for x in $rpathdirs; do
13072 if test "X$x" = "X$dir"; then
13077 if test -z "$haveit"; then
13078 rpathdirs="$rpathdirs $dir"
13081 for x in $ltrpathdirs; do
13082 if test "X$x" = "X$dir"; then
13087 if test -z "$haveit"; then
13088 ltrpathdirs="$ltrpathdirs $dir"
13093 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13096 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13099 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13100 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13106 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13107 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13113 if test "X$rpathdirs" != "X"; then
13114 if test -n "$hardcode_libdir_separator"; then
13116 for found_dir in $rpathdirs; do
13117 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13119 acl_save_libdir="$libdir"
13121 eval flag=\"$hardcode_libdir_flag_spec\"
13122 libdir="$acl_save_libdir"
13123 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13125 for found_dir in $rpathdirs; do
13126 acl_save_libdir="$libdir"
13127 libdir="$found_dir"
13128 eval flag=\"$hardcode_libdir_flag_spec\"
13129 libdir="$acl_save_libdir"
13130 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13134 if test "X$ltrpathdirs" != "X"; then
13135 for found_dir in $ltrpathdirs; do
13136 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13140 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13141 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13142 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13143 echo $ECHO_N "(cached) $ECHO_C" >&6
13145 gt_save_CPPFLAGS="$CPPFLAGS"
13146 CPPFLAGS="$CPPFLAGS $INCINTL"
13147 gt_save_LIBS="$LIBS"
13148 LIBS="$LIBS $LIBINTL"
13149 cat >conftest.$ac_ext <<_ACEOF
13152 cat confdefs.h >>conftest.$ac_ext
13153 cat >>conftest.$ac_ext <<_ACEOF
13154 /* end confdefs.h. */
13155 #include <libintl.h>
13156 extern int _nl_msg_cat_cntr;
13161 const char *_nl_expand_alias (const char *);
13165 bindtextdomain ("", "");
13166 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13171 rm -f conftest.$ac_objext conftest$ac_exeext
13172 if { (ac_try="$ac_link"
13173 case "(($ac_try" in
13174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13175 *) ac_try_echo=$ac_try;;
13177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13178 (eval "$ac_link") 2>conftest.er1
13180 grep -v '^ *+' conftest.er1 >conftest.err
13182 cat conftest.err >&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } && {
13185 test -z "$ac_c_werror_flag" ||
13186 test ! -s conftest.err
13187 } && test -s conftest$ac_exeext &&
13188 $as_test_x conftest$ac_exeext; then
13189 gt_cv_func_gnugettext1_libintl=yes
13191 echo "$as_me: failed program was:" >&5
13192 sed 's/^/| /' conftest.$ac_ext >&5
13194 gt_cv_func_gnugettext1_libintl=no
13197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13198 conftest$ac_exeext conftest.$ac_ext
13199 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13200 LIBS="$LIBS $LIBICONV"
13201 cat >conftest.$ac_ext <<_ACEOF
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h. */
13207 #include <libintl.h>
13208 extern int _nl_msg_cat_cntr;
13213 const char *_nl_expand_alias (const char *);
13217 bindtextdomain ("", "");
13218 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13223 rm -f conftest.$ac_objext conftest$ac_exeext
13224 if { (ac_try="$ac_link"
13225 case "(($ac_try" in
13226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13227 *) ac_try_echo=$ac_try;;
13229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13230 (eval "$ac_link") 2>conftest.er1
13232 grep -v '^ *+' conftest.er1 >conftest.err
13234 cat conftest.err >&5
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); } && {
13237 test -z "$ac_c_werror_flag" ||
13238 test ! -s conftest.err
13239 } && test -s conftest$ac_exeext &&
13240 $as_test_x conftest$ac_exeext; then
13241 LIBINTL="$LIBINTL $LIBICONV"
13242 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13243 gt_cv_func_gnugettext1_libintl=yes
13246 echo "$as_me: failed program was:" >&5
13247 sed 's/^/| /' conftest.$ac_ext >&5
13252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13253 conftest$ac_exeext conftest.$ac_ext
13255 CPPFLAGS="$gt_save_CPPFLAGS"
13256 LIBS="$gt_save_LIBS"
13258 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13259 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13262 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13263 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13264 && test "$PACKAGE" != gettext-runtime \
13265 && test "$PACKAGE" != gettext-tools; }; then
13266 gt_use_preinstalled_gnugettext=yes
13274 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13275 nls_cv_use_gnu_gettext=yes
13279 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13280 BUILD_INCLUDED_LIBINTL=yes
13281 USE_INCLUDED_LIBINTL=yes
13282 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13283 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13284 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13288 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13289 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13294 if test -n "$INTL_MACOSX_LIBS"; then
13295 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13296 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13297 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13298 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13302 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13303 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13305 cat >>confdefs.h <<\_ACEOF
13306 #define ENABLE_NLS 1
13314 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13315 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13316 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13317 echo "${ECHO_T}$USE_NLS" >&6; }
13318 if test "$USE_NLS" = "yes"; then
13319 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13320 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13321 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13322 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13323 gt_source="external libintl"
13328 gt_source="included intl directory"
13330 { echo "$as_me:$LINENO: result: $gt_source" >&5
13331 echo "${ECHO_T}$gt_source" >&6; }
13334 if test "$USE_NLS" = "yes"; then
13336 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13337 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13338 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13339 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13340 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13341 echo "${ECHO_T}$LIBINTL" >&6; }
13343 for element in $INCINTL; do
13345 for x in $CPPFLAGS; do
13347 acl_save_prefix="$prefix"
13348 prefix="$acl_final_prefix"
13349 acl_save_exec_prefix="$exec_prefix"
13350 exec_prefix="$acl_final_exec_prefix"
13352 exec_prefix="$acl_save_exec_prefix"
13353 prefix="$acl_save_prefix"
13355 if test "X$x" = "X$element"; then
13360 if test -z "$haveit"; then
13361 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13368 cat >>confdefs.h <<\_ACEOF
13369 #define HAVE_GETTEXT 1
13373 cat >>confdefs.h <<\_ACEOF
13374 #define HAVE_DCGETTEXT 1
13383 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13384 BUILD_INCLUDED_LIBINTL=yes
13391 nls_cv_header_intl=
13392 nls_cv_header_libgt=
13404 if test "$USE_INCLUDED_LIBINTL" = yes; then
13405 INTLOBJS="\$(GETTOBJS)"
13409 INTL_LIBTOOL_SUFFIX_PREFIX=
13413 INTLLIBS="$LIBINTL"
13426 support_postgresql=no
13427 support_smartalloc=yes
13428 support_readline=yes
13432 support_wx_console=no
13437 support_static_tools=no
13438 support_static_fd=no
13439 support_static_sd=no
13440 support_static_dir=no
13441 support_static_cons=no
13443 build_client_only=no
13451 # -------------------------------------------
13452 # gnome (default off)
13453 # -------------------------------------------
13454 # Check whether --enable-gnome was given.
13455 if test "${enable_gnome+set}" = set; then
13456 enableval=$enable_gnome; if test x$enableval = xyes; then
13463 if test x$support_gnome = xyes; then
13464 abc=`$PKGCONFIG --exists libgnomeui-2.0`
13466 if test $pkg = 0; then
13467 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13468 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13469 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13470 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13475 GNOME_DIR=src/gnome2-console
13476 gnome_version="Version 2.x"
13478 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13479 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13480 { (exit 1); exit 1; }; }
13485 # -------------------------------------------
13486 # bat (default off)
13487 # -------------------------------------------
13488 # Check whether --enable-bat was given.
13489 if test "${enable_bat+set}" = set; then
13490 enableval=$enable_bat; if test x$enableval = xyes; then
13492 cat >>confdefs.h <<\_ACEOF
13502 if test x$support_bat = xyes; then
13503 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13505 if test $pkg = 0; then
13506 BAT_DIR=src/qt-console
13508 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13509 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13510 { (exit 1); exit 1; }; }
13515 # If bat is enabled, we need the qwt library
13522 if test x$support_bat = xyes; then
13523 { echo "$as_me:$LINENO: checking for qwt support" >&5
13524 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13526 # Check whether --with-qwt was given.
13527 if test "${with_qwt+set}" = set; then
13529 case "$with_qwt" in
13534 if test -f ${with_qwt}/include/qwt.h; then
13535 QWT_INC="${with_qwt}/include"
13536 QWT_LDFLAGS="-L${with_qwt}/lib"
13547 # Search in standard places, or --with-qwt not specified
13549 if test $no_qwt = no; then
13550 if test x$QWT_INC = x; then
13551 for root in /usr /usr/local; do
13552 for ver in qwt qwt5 qwt-qt4; do
13553 if test -f ${root}/include/${ver}/qwt.h; then
13554 QWT_INC="${root}/include/${ver}"
13555 if test -d ${root}/lib64/; then
13556 QWT_LDFLAGS="-L${root}/lib64"
13558 QWT_LDFLAGS="-L${root}/lib"
13569 if test x$QWT_INC = x; then
13570 { echo "$as_me:$LINENO: result: no" >&5
13571 echo "${ECHO_T}no" >&6; }
13574 cat >>confdefs.h <<\_ACEOF
13578 { echo "$as_me:$LINENO: result: yes" >&5
13579 echo "${ECHO_T}yes" >&6; }
13590 # -------------------------------------------
13591 # bwx-console (default off)
13592 # -------------------------------------------
13593 # Check whether --enable-bwx-console was given.
13594 if test "${enable_bwx_console+set}" = set; then
13595 enableval=$enable_bwx_console; if test x$enableval = xyes; then
13596 support_wx_console=yes
13602 if test x$support_wx_console = xyes; then
13603 abc=`$WXCONFIG $WXFLAGS --cppflags`
13605 if test $pkg = 0; then
13606 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13607 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13608 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13612 WX_DIR=src/wx-console
13615 echo "wx-config program not found. bwx-console disabled."
13617 support_wx_console=no
13623 # -------------------------------------------
13624 # tray-monitor (default off)
13625 # -------------------------------------------
13626 # Check whether --enable-tray-monitor was given.
13627 if test "${enable_tray_monitor+set}" = set; then
13628 enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13629 support_tray_monitor=yes
13635 if test x$support_tray_monitor = xyes; then
13636 abc=`$PKGCONFIG --exists gtk+-2.0`
13638 if test $pkg = 0; then
13639 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13640 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13643 TRAY_MONITOR_DIR=src/tray-monitor
13644 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13646 if test $pkg = 0; then
13648 cat >>confdefs.h <<\_ACEOF
13649 #define HAVE_GTK_2_4 1
13657 # -------------------------------------------
13658 # smartalloc (default off)
13659 # -------------------------------------------
13660 # Check whether --enable-smartalloc was given.
13661 if test "${enable_smartalloc+set}" = set; then
13662 enableval=$enable_smartalloc; if test x$enableval = xno; then
13663 support_smartalloc=no
13668 if test x$support_smartalloc = xyes; then
13670 cat >>confdefs.h <<\_ACEOF
13671 #define SMARTALLOC 1
13676 # -------------------------------------------
13677 # static-tools (default off)
13678 # -------------------------------------------
13679 # Check whether --enable-static-tools was given.
13680 if test "${enable_static_tools+set}" = set; then
13681 enableval=$enable_static_tools; if test x$enableval = xyes; then
13682 support_static_tools=yes
13688 if test x$support_static_tools = xyes; then
13689 TTOOL_LDFLAGS="-static"
13693 # -------------------------------------------
13694 # static-fd (default off)
13695 # -------------------------------------------
13696 # Check whether --enable-static-fd was given.
13697 if test "${enable_static_fd+set}" = set; then
13698 enableval=$enable_static_fd; if test x$enableval = xyes; then
13699 support_static_fd=yes
13705 if test x$support_static_fd = xyes; then
13706 STATIC_FD="static-bacula-fd"
13710 # -------------------------------------------
13711 # static-sd (default off)
13712 # -------------------------------------------
13713 # Check whether --enable-static-sd was given.
13714 if test "${enable_static_sd+set}" = set; then
13715 enableval=$enable_static_sd; if test x$enableval = xyes; then
13716 support_static_sd=yes
13722 if test x$support_static_sd = xyes; then
13723 STATIC_SD="static-bacula-sd"
13727 # -------------------------------------------
13728 # static-dir (default off)
13729 # -------------------------------------------
13730 # Check whether --enable-static-dir was given.
13731 if test "${enable_static_dir+set}" = set; then
13732 enableval=$enable_static_dir; if test x$enableval = xyes; then
13733 support_static_dir=yes
13739 if test x$support_static_dir = xyes; then
13740 STATIC_DIR="static-bacula-dir"
13744 # -------------------------------------------
13745 # static-cons (default off)
13746 # -------------------------------------------
13747 # Check whether --enable-static-cons was given.
13748 if test "${enable_static_cons+set}" = set; then
13749 enableval=$enable_static_cons; if test x$enableval = xyes; then
13750 support_static_cons=yes
13758 if test x$support_static_cons = xyes; then
13759 STATIC_CONS="static-bconsole"
13760 STATIC_GNOME_CONS="static-bgnome-console"
13761 STATIC_WX_CONS="static-bwx-console"
13767 # -------------------------------------------
13768 # client_only (default off)
13769 # -------------------------------------------
13770 # Check whether --enable-client-only was given.
13771 if test "${enable_client_only+set}" = set; then
13772 enableval=$enable_client_only; if test x$enableval = xyes; then
13773 build_client_only=yes
13779 if test x$build_client_only = xno; then
13786 # -------------------------------------------
13787 # director (default on)
13788 # -------------------------------------------
13789 # Check whether --enable-build-dird was given.
13790 if test "${enable_build_dird+set}" = set; then
13791 enableval=$enable_build_dird; if test x$enableval = xno; then
13796 if test x$build_dird = xyes; then
13797 DIRD_DIR="src/dird"
13798 DIR_TOOLS="DIRTOOLS"
13801 DIR_TOOLS="NODIRTOOLS"
13806 # -------------------------------------------
13807 # stored (default on)
13808 # -------------------------------------------
13809 # Check whether --enable-build-stored was given.
13810 if test "${enable_build_stored+set}" = set; then
13811 enableval=$enable_build_stored; if test x$enableval = xno; then
13816 if test x$build_stored = xyes; then
13817 STORED_DIR="src/stored"
13823 # ---------------------------------------------------
13824 # Check for conio (Bacula readline substitute)(
13825 # ---------------------------------------------------
13826 # this allows you to turn it completely off
13827 # Check whether --enable-conio was given.
13828 if test "${enable_conio+set}" = set; then
13829 enableval=$enable_conio; if test x$enableval = xno; then
13837 # ---------------------------------------------------
13838 # Check for IPv6 support
13839 # ---------------------------------------------------
13840 # this allows you to turn it completely off
13842 # Check whether --enable-ipv6 was given.
13843 if test "${enable_ipv6+set}" = set; then
13844 enableval=$enable_ipv6; if test x$enableval = xno; then
13851 if test x$support_ipv6 = xyes; then
13852 cat >conftest.$ac_ext <<_ACEOF
13855 cat confdefs.h >>conftest.$ac_ext
13856 cat >>conftest.$ac_ext <<_ACEOF
13857 /* end confdefs.h. */
13858 #include <sys/types.h>
13859 #include <sys/socket.h>
13860 #include <netinet/in.h>
13864 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13869 rm -f conftest.$ac_objext conftest$ac_exeext
13870 if { (ac_try="$ac_link"
13871 case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876 (eval "$ac_link") 2>conftest.er1
13878 grep -v '^ *+' conftest.er1 >conftest.err
13880 cat conftest.err >&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); } && {
13883 test -z "$ac_c_werror_flag" ||
13884 test ! -s conftest.err
13885 } && test -s conftest$ac_exeext &&
13886 $as_test_x conftest$ac_exeext; then
13889 echo "$as_me: failed program was:" >&5
13890 sed 's/^/| /' conftest.$ac_ext >&5
13895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13896 conftest$ac_exeext conftest.$ac_ext
13899 if test x$support_ipv6 = xyes; then
13901 cat >>confdefs.h <<\_ACEOF
13902 #define HAVE_IPV6 1
13910 if test x$support_conio = xyes; then
13911 if test "${ac_cv_header_termcap_h+set}" = set; then
13912 { echo "$as_me:$LINENO: checking for termcap.h" >&5
13913 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13914 if test "${ac_cv_header_termcap_h+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13917 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13918 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13920 # Is the header compilable?
13921 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13922 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13923 cat >conftest.$ac_ext <<_ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 $ac_includes_default
13930 #include <termcap.h>
13932 rm -f conftest.$ac_objext
13933 if { (ac_try="$ac_compile"
13934 case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939 (eval "$ac_compile") 2>conftest.er1
13941 grep -v '^ *+' conftest.er1 >conftest.err
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } && {
13946 test -z "$ac_c_werror_flag" ||
13947 test ! -s conftest.err
13948 } && test -s conftest.$ac_objext; then
13949 ac_header_compiler=yes
13951 echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13954 ac_header_compiler=no
13957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13959 echo "${ECHO_T}$ac_header_compiler" >&6; }
13961 # Is the header present?
13962 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13963 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13964 cat >conftest.$ac_ext <<_ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13970 #include <termcap.h>
13972 if { (ac_try="$ac_cpp conftest.$ac_ext"
13973 case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13980 grep -v '^ *+' conftest.er1 >conftest.err
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } >/dev/null && {
13985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13986 test ! -s conftest.err
13988 ac_header_preproc=yes
13990 echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.$ac_ext >&5
13993 ac_header_preproc=no
13996 rm -f conftest.err conftest.$ac_ext
13997 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13998 echo "${ECHO_T}$ac_header_preproc" >&6; }
14000 # So? What about this header?
14001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14003 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
14004 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14005 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
14006 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
14007 ac_header_preproc=yes
14010 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
14011 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
14012 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
14013 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
14014 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
14015 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14016 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
14017 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
14018 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14019 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14020 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14021 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14025 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14026 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14027 if test "${ac_cv_header_termcap_h+set}" = set; then
14028 echo $ECHO_N "(cached) $ECHO_C" >&6
14030 ac_cv_header_termcap_h=$ac_header_preproc
14032 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14033 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14036 if test $ac_cv_header_termcap_h = yes; then
14037 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14038 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14039 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14040 echo $ECHO_N "(cached) $ECHO_C" >&6
14042 ac_check_lib_save_LIBS=$LIBS
14043 LIBS="-ltermcap $LIBS"
14044 cat >conftest.$ac_ext <<_ACEOF
14047 cat confdefs.h >>conftest.$ac_ext
14048 cat >>conftest.$ac_ext <<_ACEOF
14049 /* end confdefs.h. */
14051 /* Override any GCC internal prototype to avoid an error.
14052 Use char because int might match the return type of a GCC
14053 builtin and then its argument prototype would still apply. */
14066 rm -f conftest.$ac_objext conftest$ac_exeext
14067 if { (ac_try="$ac_link"
14068 case "(($ac_try" in
14069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14070 *) ac_try_echo=$ac_try;;
14072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073 (eval "$ac_link") 2>conftest.er1
14075 grep -v '^ *+' conftest.er1 >conftest.err
14077 cat conftest.err >&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } && {
14080 test -z "$ac_c_werror_flag" ||
14081 test ! -s conftest.err
14082 } && test -s conftest$ac_exeext &&
14083 $as_test_x conftest$ac_exeext; then
14084 ac_cv_lib_termcap_tgetent=yes
14086 echo "$as_me: failed program was:" >&5
14087 sed 's/^/| /' conftest.$ac_ext >&5
14089 ac_cv_lib_termcap_tgetent=no
14092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14093 conftest$ac_exeext conftest.$ac_ext
14094 LIBS=$ac_check_lib_save_LIBS
14096 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14097 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14098 if test $ac_cv_lib_termcap_tgetent = yes; then
14099 CONS_LIBS="-ltermcap"
14103 support_readline=no
14105 cat >>confdefs.h <<\_ACEOF
14106 #define HAVE_CONIO 1
14111 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14112 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14113 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 ac_check_lib_save_LIBS=$LIBS
14117 LIBS="-lncurses $LIBS"
14118 cat >conftest.$ac_ext <<_ACEOF
14121 cat confdefs.h >>conftest.$ac_ext
14122 cat >>conftest.$ac_ext <<_ACEOF
14123 /* end confdefs.h. */
14125 /* Override any GCC internal prototype to avoid an error.
14126 Use char because int might match the return type of a GCC
14127 builtin and then its argument prototype would still apply. */
14140 rm -f conftest.$ac_objext conftest$ac_exeext
14141 if { (ac_try="$ac_link"
14142 case "(($ac_try" in
14143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144 *) ac_try_echo=$ac_try;;
14146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147 (eval "$ac_link") 2>conftest.er1
14149 grep -v '^ *+' conftest.er1 >conftest.err
14151 cat conftest.err >&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } && {
14154 test -z "$ac_c_werror_flag" ||
14155 test ! -s conftest.err
14156 } && test -s conftest$ac_exeext &&
14157 $as_test_x conftest$ac_exeext; then
14158 ac_cv_lib_ncurses_tgetent=yes
14160 echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14163 ac_cv_lib_ncurses_tgetent=no
14166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14167 conftest$ac_exeext conftest.$ac_ext
14168 LIBS=$ac_check_lib_save_LIBS
14170 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14171 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14172 if test $ac_cv_lib_ncurses_tgetent = yes; then
14173 CONS_LIBS="-lncurses"
14177 support_readline=no
14179 cat >>confdefs.h <<\_ACEOF
14180 #define HAVE_CONIO 1
14193 for ac_header in curses.h
14195 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 ac_res=`eval echo '${'$as_ac_Header'}'`
14203 { echo "$as_me:$LINENO: result: $ac_res" >&5
14204 echo "${ECHO_T}$ac_res" >&6; }
14206 # Is the header compilable?
14207 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14208 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14209 cat >conftest.$ac_ext <<_ACEOF
14212 cat confdefs.h >>conftest.$ac_ext
14213 cat >>conftest.$ac_ext <<_ACEOF
14214 /* end confdefs.h. */
14215 $ac_includes_default
14216 #include <$ac_header>
14218 rm -f conftest.$ac_objext
14219 if { (ac_try="$ac_compile"
14220 case "(($ac_try" in
14221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14222 *) ac_try_echo=$ac_try;;
14224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14225 (eval "$ac_compile") 2>conftest.er1
14227 grep -v '^ *+' conftest.er1 >conftest.err
14229 cat conftest.err >&5
14230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14231 (exit $ac_status); } && {
14232 test -z "$ac_c_werror_flag" ||
14233 test ! -s conftest.err
14234 } && test -s conftest.$ac_objext; then
14235 ac_header_compiler=yes
14237 echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.$ac_ext >&5
14240 ac_header_compiler=no
14243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14244 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14245 echo "${ECHO_T}$ac_header_compiler" >&6; }
14247 # Is the header present?
14248 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14250 cat >conftest.$ac_ext <<_ACEOF
14253 cat confdefs.h >>conftest.$ac_ext
14254 cat >>conftest.$ac_ext <<_ACEOF
14255 /* end confdefs.h. */
14256 #include <$ac_header>
14258 if { (ac_try="$ac_cpp conftest.$ac_ext"
14259 case "(($ac_try" in
14260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14261 *) ac_try_echo=$ac_try;;
14263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14266 grep -v '^ *+' conftest.er1 >conftest.err
14268 cat conftest.err >&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } >/dev/null && {
14271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14272 test ! -s conftest.err
14274 ac_header_preproc=yes
14276 echo "$as_me: failed program was:" >&5
14277 sed 's/^/| /' conftest.$ac_ext >&5
14279 ac_header_preproc=no
14282 rm -f conftest.err conftest.$ac_ext
14283 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14284 echo "${ECHO_T}$ac_header_preproc" >&6; }
14286 # So? What about this header?
14287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14289 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14290 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14292 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14293 ac_header_preproc=yes
14296 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14297 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14298 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14299 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14300 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14301 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14302 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14303 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14304 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14305 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14306 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14307 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14314 echo $ECHO_N "(cached) $ECHO_C" >&6
14316 eval "$as_ac_Header=\$ac_header_preproc"
14318 ac_res=`eval echo '${'$as_ac_Header'}'`
14319 { echo "$as_me:$LINENO: result: $ac_res" >&5
14320 echo "${ECHO_T}$ac_res" >&6; }
14323 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14324 cat >>confdefs.h <<_ACEOF
14325 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14332 { echo "$as_me:$LINENO: checking for term.h" >&5
14333 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14334 if test "${ac_cv_header_term_h+set}" = set; then
14335 echo $ECHO_N "(cached) $ECHO_C" >&6
14337 cat >conftest.$ac_ext <<_ACEOF
14340 cat confdefs.h >>conftest.$ac_ext
14341 cat >>conftest.$ac_ext <<_ACEOF
14342 /* end confdefs.h. */
14344 #include <curses.h>
14350 rm -f conftest.$ac_objext
14351 if { (ac_try="$ac_compile"
14352 case "(($ac_try" in
14353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354 *) ac_try_echo=$ac_try;;
14356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357 (eval "$ac_compile") 2>conftest.er1
14359 grep -v '^ *+' conftest.er1 >conftest.err
14361 cat conftest.err >&5
14362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14363 (exit $ac_status); } && {
14364 test -z "$ac_c_werror_flag" ||
14365 test ! -s conftest.err
14366 } && test -s conftest.$ac_objext; then
14367 ac_cv_header_term_h=yes
14369 echo "$as_me: failed program was:" >&5
14370 sed 's/^/| /' conftest.$ac_ext >&5
14372 ac_cv_header_term_h=no
14375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14377 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14378 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14379 if test $ac_cv_header_term_h = yes; then
14380 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14381 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14382 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
14385 ac_check_lib_save_LIBS=$LIBS
14386 LIBS="-lcurses $LIBS"
14387 cat >conftest.$ac_ext <<_ACEOF
14390 cat confdefs.h >>conftest.$ac_ext
14391 cat >>conftest.$ac_ext <<_ACEOF
14392 /* end confdefs.h. */
14394 /* Override any GCC internal prototype to avoid an error.
14395 Use char because int might match the return type of a GCC
14396 builtin and then its argument prototype would still apply. */
14409 rm -f conftest.$ac_objext conftest$ac_exeext
14410 if { (ac_try="$ac_link"
14411 case "(($ac_try" in
14412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14413 *) ac_try_echo=$ac_try;;
14415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14416 (eval "$ac_link") 2>conftest.er1
14418 grep -v '^ *+' conftest.er1 >conftest.err
14420 cat conftest.err >&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 (exit $ac_status); } && {
14423 test -z "$ac_c_werror_flag" ||
14424 test ! -s conftest.err
14425 } && test -s conftest$ac_exeext &&
14426 $as_test_x conftest$ac_exeext; then
14427 ac_cv_lib_curses_tgetent=yes
14429 echo "$as_me: failed program was:" >&5
14430 sed 's/^/| /' conftest.$ac_ext >&5
14432 ac_cv_lib_curses_tgetent=no
14435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14436 conftest$ac_exeext conftest.$ac_ext
14437 LIBS=$ac_check_lib_save_LIBS
14439 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14440 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14441 if test $ac_cv_lib_curses_tgetent = yes; then
14442 CONS_LIBS="-lcurses"
14446 support_readline=no
14448 cat >>confdefs.h <<\_ACEOF
14449 #define HAVE_CONIO 1
14457 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14468 # ---------------------------------------------------
14469 # Check for readline support/directory (default off)
14470 # ---------------------------------------------------
14471 # this allows you to turn it completely off
14472 # Check whether --enable-readline was given.
14473 if test "${enable_readline+set}" = set; then
14474 enableval=$enable_readline; if test x$enableval = xno; then
14475 support_readline=no
14482 if test x$support_readline = xyes; then
14484 # Check whether --with-readline was given.
14485 if test "${with_readline+set}" = set; then
14486 withval=$with_readline;
14487 case "$with_readline" in
14490 if test -f ${with_readline}/readline.h; then
14491 CONS_INC="-I${with_readline}"
14492 CONS_LDFLAGS="-L$with_readline"
14493 elif test -f ${with_readline}/include/readline/readline.h; then
14494 CONS_INC="-I${with_readline}/include/readline"
14495 CONS_LDFLAGS="-L${with_readline}/lib"
14496 with_readline="${with_readline}/include/readline"
14498 with_readline="/usr/include/readline"
14500 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14502 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14503 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14505 echo $ECHO_N "(cached) $ECHO_C" >&6
14507 ac_res=`eval echo '${'$as_ac_Header'}'`
14508 { echo "$as_me:$LINENO: result: $ac_res" >&5
14509 echo "${ECHO_T}$ac_res" >&6; }
14511 # Is the header compilable?
14512 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14513 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14514 cat >conftest.$ac_ext <<_ACEOF
14517 cat confdefs.h >>conftest.$ac_ext
14518 cat >>conftest.$ac_ext <<_ACEOF
14519 /* end confdefs.h. */
14520 $ac_includes_default
14521 #include <${with_readline}/readline.h>
14523 rm -f conftest.$ac_objext
14524 if { (ac_try="$ac_compile"
14525 case "(($ac_try" in
14526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527 *) ac_try_echo=$ac_try;;
14529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530 (eval "$ac_compile") 2>conftest.er1
14532 grep -v '^ *+' conftest.er1 >conftest.err
14534 cat conftest.err >&5
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); } && {
14537 test -z "$ac_c_werror_flag" ||
14538 test ! -s conftest.err
14539 } && test -s conftest.$ac_objext; then
14540 ac_header_compiler=yes
14542 echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14545 ac_header_compiler=no
14548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14550 echo "${ECHO_T}$ac_header_compiler" >&6; }
14552 # Is the header present?
14553 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14554 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14555 cat >conftest.$ac_ext <<_ACEOF
14558 cat confdefs.h >>conftest.$ac_ext
14559 cat >>conftest.$ac_ext <<_ACEOF
14560 /* end confdefs.h. */
14561 #include <${with_readline}/readline.h>
14563 if { (ac_try="$ac_cpp conftest.$ac_ext"
14564 case "(($ac_try" in
14565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14571 grep -v '^ *+' conftest.er1 >conftest.err
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } >/dev/null && {
14576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14577 test ! -s conftest.err
14579 ac_header_preproc=yes
14581 echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14584 ac_header_preproc=no
14587 rm -f conftest.err conftest.$ac_ext
14588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14589 echo "${ECHO_T}$ac_header_preproc" >&6; }
14591 # So? What about this header?
14592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14594 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14595 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14596 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14597 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14598 ac_header_preproc=yes
14601 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14602 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14603 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
14604 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
14605 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14606 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14607 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14608 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14609 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14610 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14611 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14612 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14616 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14617 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14621 eval "$as_ac_Header=\$ac_header_preproc"
14623 ac_res=`eval echo '${'$as_ac_Header'}'`
14624 { echo "$as_me:$LINENO: result: $ac_res" >&5
14625 echo "${ECHO_T}$ac_res" >&6; }
14628 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14630 cat >>confdefs.h <<\_ACEOF
14631 #define HAVE_READLINE 1
14634 CONS_LIBS="-lreadline -lhistory -ltermcap"
14639 echo "readline.h not found. readline turned off ..."
14651 # check for standard readline library
14652 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14653 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14654 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14655 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14656 echo $ECHO_N "(cached) $ECHO_C" >&6
14658 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14659 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14661 # Is the header compilable?
14662 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14663 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14664 cat >conftest.$ac_ext <<_ACEOF
14667 cat confdefs.h >>conftest.$ac_ext
14668 cat >>conftest.$ac_ext <<_ACEOF
14669 /* end confdefs.h. */
14670 $ac_includes_default
14671 #include </usr/include/readline/readline.h>
14673 rm -f conftest.$ac_objext
14674 if { (ac_try="$ac_compile"
14675 case "(($ac_try" in
14676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14677 *) ac_try_echo=$ac_try;;
14679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14680 (eval "$ac_compile") 2>conftest.er1
14682 grep -v '^ *+' conftest.er1 >conftest.err
14684 cat conftest.err >&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); } && {
14687 test -z "$ac_c_werror_flag" ||
14688 test ! -s conftest.err
14689 } && test -s conftest.$ac_objext; then
14690 ac_header_compiler=yes
14692 echo "$as_me: failed program was:" >&5
14693 sed 's/^/| /' conftest.$ac_ext >&5
14695 ac_header_compiler=no
14698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14699 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14700 echo "${ECHO_T}$ac_header_compiler" >&6; }
14702 # Is the header present?
14703 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14704 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14705 cat >conftest.$ac_ext <<_ACEOF
14708 cat confdefs.h >>conftest.$ac_ext
14709 cat >>conftest.$ac_ext <<_ACEOF
14710 /* end confdefs.h. */
14711 #include </usr/include/readline/readline.h>
14713 if { (ac_try="$ac_cpp conftest.$ac_ext"
14714 case "(($ac_try" in
14715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716 *) ac_try_echo=$ac_try;;
14718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14721 grep -v '^ *+' conftest.er1 >conftest.err
14723 cat conftest.err >&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } >/dev/null && {
14726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14727 test ! -s conftest.err
14729 ac_header_preproc=yes
14731 echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.$ac_ext >&5
14734 ac_header_preproc=no
14737 rm -f conftest.err conftest.$ac_ext
14738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14739 echo "${ECHO_T}$ac_header_preproc" >&6; }
14741 # So? What about this header?
14742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14744 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14745 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14746 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14747 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14748 ac_header_preproc=yes
14751 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14752 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14753 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
14754 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
14755 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14756 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14757 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14758 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14759 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14760 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14761 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14762 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14766 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14767 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14768 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14771 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14773 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14774 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14777 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14779 cat >>confdefs.h <<\_ACEOF
14780 #define HAVE_READLINE 1
14784 CONS_INC="-I/usr/include/readline"
14785 CONS_LIBS="-lreadline -ltermcap"
14789 # Did not find standard library, so try Bacula's default
14790 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14792 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14793 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14795 echo $ECHO_N "(cached) $ECHO_C" >&6
14797 ac_res=`eval echo '${'$as_ac_Header'}'`
14798 { echo "$as_me:$LINENO: result: $ac_res" >&5
14799 echo "${ECHO_T}$ac_res" >&6; }
14801 # Is the header compilable?
14802 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14803 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14804 cat >conftest.$ac_ext <<_ACEOF
14807 cat confdefs.h >>conftest.$ac_ext
14808 cat >>conftest.$ac_ext <<_ACEOF
14809 /* end confdefs.h. */
14810 $ac_includes_default
14811 #include <${TOP_DIR}/depkgs/readline/readline.h>
14813 rm -f conftest.$ac_objext
14814 if { (ac_try="$ac_compile"
14815 case "(($ac_try" in
14816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14817 *) ac_try_echo=$ac_try;;
14819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14820 (eval "$ac_compile") 2>conftest.er1
14822 grep -v '^ *+' conftest.er1 >conftest.err
14824 cat conftest.err >&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); } && {
14827 test -z "$ac_c_werror_flag" ||
14828 test ! -s conftest.err
14829 } && test -s conftest.$ac_objext; then
14830 ac_header_compiler=yes
14832 echo "$as_me: failed program was:" >&5
14833 sed 's/^/| /' conftest.$ac_ext >&5
14835 ac_header_compiler=no
14838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14840 echo "${ECHO_T}$ac_header_compiler" >&6; }
14842 # Is the header present?
14843 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14844 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14845 cat >conftest.$ac_ext <<_ACEOF
14848 cat confdefs.h >>conftest.$ac_ext
14849 cat >>conftest.$ac_ext <<_ACEOF
14850 /* end confdefs.h. */
14851 #include <${TOP_DIR}/depkgs/readline/readline.h>
14853 if { (ac_try="$ac_cpp conftest.$ac_ext"
14854 case "(($ac_try" in
14855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14856 *) ac_try_echo=$ac_try;;
14858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14861 grep -v '^ *+' conftest.er1 >conftest.err
14863 cat conftest.err >&5
14864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14865 (exit $ac_status); } >/dev/null && {
14866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14867 test ! -s conftest.err
14869 ac_header_preproc=yes
14871 echo "$as_me: failed program was:" >&5
14872 sed 's/^/| /' conftest.$ac_ext >&5
14874 ac_header_preproc=no
14877 rm -f conftest.err conftest.$ac_ext
14878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14879 echo "${ECHO_T}$ac_header_preproc" >&6; }
14881 # So? What about this header?
14882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14884 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14885 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14886 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14887 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14888 ac_header_preproc=yes
14891 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14892 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14893 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14894 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14895 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14896 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14897 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14898 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14899 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14900 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14901 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14902 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14906 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14907 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14911 eval "$as_ac_Header=\$ac_header_preproc"
14913 ac_res=`eval echo '${'$as_ac_Header'}'`
14914 { echo "$as_me:$LINENO: result: $ac_res" >&5
14915 echo "${ECHO_T}$ac_res" >&6; }
14918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14920 cat >>confdefs.h <<\_ACEOF
14921 #define HAVE_READLINE 1
14925 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14926 CONS_LIBS="-lreadline -lhistory -ltermcap"
14927 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14928 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14932 echo "readline.h not found. readline turned off ..."
14959 # Minimal stuff for readline Makefile configuration
14962 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14963 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14964 if test "${ac_cv_header_stat_broken+set}" = set; then
14965 echo $ECHO_N "(cached) $ECHO_C" >&6
14967 cat >conftest.$ac_ext <<_ACEOF
14970 cat confdefs.h >>conftest.$ac_ext
14971 cat >>conftest.$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14973 #include <sys/types.h>
14974 #include <sys/stat.h>
14976 #if defined S_ISBLK && defined S_IFDIR
14977 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14980 #if defined S_ISBLK && defined S_IFCHR
14981 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14984 #if defined S_ISLNK && defined S_IFREG
14985 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14988 #if defined S_ISSOCK && defined S_IFREG
14989 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14993 rm -f conftest.$ac_objext
14994 if { (ac_try="$ac_compile"
14995 case "(($ac_try" in
14996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997 *) ac_try_echo=$ac_try;;
14999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15000 (eval "$ac_compile") 2>conftest.er1
15002 grep -v '^ *+' conftest.er1 >conftest.err
15004 cat conftest.err >&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } && {
15007 test -z "$ac_c_werror_flag" ||
15008 test ! -s conftest.err
15009 } && test -s conftest.$ac_objext; then
15010 ac_cv_header_stat_broken=no
15012 echo "$as_me: failed program was:" >&5
15013 sed 's/^/| /' conftest.$ac_ext >&5
15015 ac_cv_header_stat_broken=yes
15018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15020 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15021 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15022 if test $ac_cv_header_stat_broken = yes; then
15024 cat >>confdefs.h <<\_ACEOF
15025 #define STAT_MACROS_BROKEN 1
15035 ac_header_dirent=no
15036 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15037 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15038 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15039 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15043 cat >conftest.$ac_ext <<_ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h. */
15049 #include <sys/types.h>
15061 rm -f conftest.$ac_objext
15062 if { (ac_try="$ac_compile"
15063 case "(($ac_try" in
15064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068 (eval "$ac_compile") 2>conftest.er1
15070 grep -v '^ *+' conftest.er1 >conftest.err
15072 cat conftest.err >&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); } && {
15075 test -z "$ac_c_werror_flag" ||
15076 test ! -s conftest.err
15077 } && test -s conftest.$ac_objext; then
15078 eval "$as_ac_Header=yes"
15080 echo "$as_me: failed program was:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15083 eval "$as_ac_Header=no"
15086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15088 ac_res=`eval echo '${'$as_ac_Header'}'`
15089 { echo "$as_me:$LINENO: result: $ac_res" >&5
15090 echo "${ECHO_T}$ac_res" >&6; }
15091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15092 cat >>confdefs.h <<_ACEOF
15093 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15096 ac_header_dirent=$ac_hdr; break
15100 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15101 if test $ac_header_dirent = dirent.h; then
15102 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15103 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15104 if test "${ac_cv_search_opendir+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15107 ac_func_search_save_LIBS=$LIBS
15108 cat >conftest.$ac_ext <<_ACEOF
15111 cat confdefs.h >>conftest.$ac_ext
15112 cat >>conftest.$ac_ext <<_ACEOF
15113 /* end confdefs.h. */
15115 /* Override any GCC internal prototype to avoid an error.
15116 Use char because int might match the return type of a GCC
15117 builtin and then its argument prototype would still apply. */
15130 for ac_lib in '' dir; do
15131 if test -z "$ac_lib"; then
15132 ac_res="none required"
15135 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15137 rm -f conftest.$ac_objext conftest$ac_exeext
15138 if { (ac_try="$ac_link"
15139 case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_link") 2>conftest.er1
15146 grep -v '^ *+' conftest.er1 >conftest.err
15148 cat conftest.err >&5
15149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15150 (exit $ac_status); } && {
15151 test -z "$ac_c_werror_flag" ||
15152 test ! -s conftest.err
15153 } && test -s conftest$ac_exeext &&
15154 $as_test_x conftest$ac_exeext; then
15155 ac_cv_search_opendir=$ac_res
15157 echo "$as_me: failed program was:" >&5
15158 sed 's/^/| /' conftest.$ac_ext >&5
15163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15165 if test "${ac_cv_search_opendir+set}" = set; then
15169 if test "${ac_cv_search_opendir+set}" = set; then
15172 ac_cv_search_opendir=no
15174 rm conftest.$ac_ext
15175 LIBS=$ac_func_search_save_LIBS
15177 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15178 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15179 ac_res=$ac_cv_search_opendir
15180 if test "$ac_res" != no; then
15181 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15186 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15187 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15188 if test "${ac_cv_search_opendir+set}" = set; then
15189 echo $ECHO_N "(cached) $ECHO_C" >&6
15191 ac_func_search_save_LIBS=$LIBS
15192 cat >conftest.$ac_ext <<_ACEOF
15195 cat confdefs.h >>conftest.$ac_ext
15196 cat >>conftest.$ac_ext <<_ACEOF
15197 /* end confdefs.h. */
15199 /* Override any GCC internal prototype to avoid an error.
15200 Use char because int might match the return type of a GCC
15201 builtin and then its argument prototype would still apply. */
15214 for ac_lib in '' x; do
15215 if test -z "$ac_lib"; then
15216 ac_res="none required"
15219 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15221 rm -f conftest.$ac_objext conftest$ac_exeext
15222 if { (ac_try="$ac_link"
15223 case "(($ac_try" in
15224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15225 *) ac_try_echo=$ac_try;;
15227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15228 (eval "$ac_link") 2>conftest.er1
15230 grep -v '^ *+' conftest.er1 >conftest.err
15232 cat conftest.err >&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); } && {
15235 test -z "$ac_c_werror_flag" ||
15236 test ! -s conftest.err
15237 } && test -s conftest$ac_exeext &&
15238 $as_test_x conftest$ac_exeext; then
15239 ac_cv_search_opendir=$ac_res
15241 echo "$as_me: failed program was:" >&5
15242 sed 's/^/| /' conftest.$ac_ext >&5
15247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15249 if test "${ac_cv_search_opendir+set}" = set; then
15253 if test "${ac_cv_search_opendir+set}" = set; then
15256 ac_cv_search_opendir=no
15258 rm conftest.$ac_ext
15259 LIBS=$ac_func_search_save_LIBS
15261 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15262 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15263 ac_res=$ac_cv_search_opendir
15264 if test "$ac_res" != no; then
15265 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15278 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15281 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15283 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15284 echo $ECHO_N "(cached) $ECHO_C" >&6
15286 cat >conftest.$ac_ext <<_ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h. */
15292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15294 #define $ac_func innocuous_$ac_func
15296 /* System header to define __stub macros and hopefully few prototypes,
15297 which can conflict with char $ac_func (); below.
15298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15299 <limits.h> exists even on freestanding compilers. */
15302 # include <limits.h>
15304 # include <assert.h>
15309 /* Override any GCC internal prototype to avoid an error.
15310 Use char because int might match the return type of a GCC
15311 builtin and then its argument prototype would still apply. */
15316 /* The GNU C library defines this for functions which it implements
15317 to always fail with ENOSYS. Some functions are actually named
15318 something starting with __ and the normal name is an alias. */
15319 #if defined __stub_$ac_func || defined __stub___$ac_func
15326 return $ac_func ();
15331 rm -f conftest.$ac_objext conftest$ac_exeext
15332 if { (ac_try="$ac_link"
15333 case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_link") 2>conftest.er1
15340 grep -v '^ *+' conftest.er1 >conftest.err
15342 cat conftest.err >&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } && {
15345 test -z "$ac_c_werror_flag" ||
15346 test ! -s conftest.err
15347 } && test -s conftest$ac_exeext &&
15348 $as_test_x conftest$ac_exeext; then
15349 eval "$as_ac_var=yes"
15351 echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15354 eval "$as_ac_var=no"
15357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15358 conftest$ac_exeext conftest.$ac_ext
15360 ac_res=`eval echo '${'$as_ac_var'}'`
15361 { echo "$as_me:$LINENO: result: $ac_res" >&5
15362 echo "${ECHO_T}$ac_res" >&6; }
15363 if test `eval echo '${'$as_ac_var'}'` = yes; then
15364 cat >>confdefs.h <<_ACEOF
15365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15373 for ac_func in nanosleep nl_langinfo
15375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15381 cat >conftest.$ac_ext <<_ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h. */
15387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15389 #define $ac_func innocuous_$ac_func
15391 /* System header to define __stub macros and hopefully few prototypes,
15392 which can conflict with char $ac_func (); below.
15393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15394 <limits.h> exists even on freestanding compilers. */
15397 # include <limits.h>
15399 # include <assert.h>
15404 /* Override any GCC internal prototype to avoid an error.
15405 Use char because int might match the return type of a GCC
15406 builtin and then its argument prototype would still apply. */
15411 /* The GNU C library defines this for functions which it implements
15412 to always fail with ENOSYS. Some functions are actually named
15413 something starting with __ and the normal name is an alias. */
15414 #if defined __stub_$ac_func || defined __stub___$ac_func
15421 return $ac_func ();
15426 rm -f conftest.$ac_objext conftest$ac_exeext
15427 if { (ac_try="$ac_link"
15428 case "(($ac_try" in
15429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_link") 2>conftest.er1
15435 grep -v '^ *+' conftest.er1 >conftest.err
15437 cat conftest.err >&5
15438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15439 (exit $ac_status); } && {
15440 test -z "$ac_c_werror_flag" ||
15441 test ! -s conftest.err
15442 } && test -s conftest$ac_exeext &&
15443 $as_test_x conftest$ac_exeext; then
15444 eval "$as_ac_var=yes"
15446 echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15449 eval "$as_ac_var=no"
15452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15453 conftest$ac_exeext conftest.$ac_ext
15455 ac_res=`eval echo '${'$as_ac_var'}'`
15456 { echo "$as_me:$LINENO: result: $ac_res" >&5
15457 echo "${ECHO_T}$ac_res" >&6; }
15458 if test `eval echo '${'$as_ac_var'}'` = yes; then
15459 cat >>confdefs.h <<_ACEOF
15460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15467 for ac_header in varargs.h
15469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15476 ac_res=`eval echo '${'$as_ac_Header'}'`
15477 { echo "$as_me:$LINENO: result: $ac_res" >&5
15478 echo "${ECHO_T}$ac_res" >&6; }
15480 # Is the header compilable?
15481 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15483 cat >conftest.$ac_ext <<_ACEOF
15486 cat confdefs.h >>conftest.$ac_ext
15487 cat >>conftest.$ac_ext <<_ACEOF
15488 /* end confdefs.h. */
15489 $ac_includes_default
15490 #include <$ac_header>
15492 rm -f conftest.$ac_objext
15493 if { (ac_try="$ac_compile"
15494 case "(($ac_try" in
15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496 *) ac_try_echo=$ac_try;;
15498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499 (eval "$ac_compile") 2>conftest.er1
15501 grep -v '^ *+' conftest.er1 >conftest.err
15503 cat conftest.err >&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); } && {
15506 test -z "$ac_c_werror_flag" ||
15507 test ! -s conftest.err
15508 } && test -s conftest.$ac_objext; then
15509 ac_header_compiler=yes
15511 echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15514 ac_header_compiler=no
15517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15519 echo "${ECHO_T}$ac_header_compiler" >&6; }
15521 # Is the header present?
15522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15524 cat >conftest.$ac_ext <<_ACEOF
15527 cat confdefs.h >>conftest.$ac_ext
15528 cat >>conftest.$ac_ext <<_ACEOF
15529 /* end confdefs.h. */
15530 #include <$ac_header>
15532 if { (ac_try="$ac_cpp conftest.$ac_ext"
15533 case "(($ac_try" in
15534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535 *) ac_try_echo=$ac_try;;
15537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15540 grep -v '^ *+' conftest.er1 >conftest.err
15542 cat conftest.err >&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } >/dev/null && {
15545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15546 test ! -s conftest.err
15548 ac_header_preproc=yes
15550 echo "$as_me: failed program was:" >&5
15551 sed 's/^/| /' conftest.$ac_ext >&5
15553 ac_header_preproc=no
15556 rm -f conftest.err conftest.$ac_ext
15557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15558 echo "${ECHO_T}$ac_header_preproc" >&6; }
15560 # So? What about this header?
15561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15567 ac_header_preproc=yes
15570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15577 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15588 echo $ECHO_N "(cached) $ECHO_C" >&6
15590 eval "$as_ac_Header=\$ac_header_preproc"
15592 ac_res=`eval echo '${'$as_ac_Header'}'`
15593 { echo "$as_me:$LINENO: result: $ac_res" >&5
15594 echo "${ECHO_T}$ac_res" >&6; }
15597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15598 cat >>confdefs.h <<_ACEOF
15599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15607 # End of readline/conio stuff
15608 # -----------------------------------------------------------------------
15610 # -----------------------------------------------------------------------
15611 # Check for Python support
15613 { echo "$as_me:$LINENO: checking for Python support" >&5
15614 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15616 # Check whether --with-python was given.
15617 if test "${with_python+set}" = set; then
15618 withval=$with_python;
15621 if test "$withval" != "no"; then
15622 if test "$withval" = "yes"; then
15623 for python_root in /usr /usr/local /usr/sfw; do
15624 for ver in python2.2 python2.3 python2.4 python2.5; do
15625 if test -f $python_root/include/${ver}/Python.h; then
15626 PYTHON_INCDIR=-I$python_root/include/${ver}
15627 if test -d $python_root/lib64/${ver}/config; then
15628 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15630 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15636 if test x$PYTHON_INCDIR = x; then
15637 if test -f $prefix/include/Python.h; then
15638 PYTHON_INCDIR=-I$prefix/include
15639 if test -d $prefix/lib64/config; then
15640 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15642 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15645 { echo "$as_me:$LINENO: result: no" >&5
15646 echo "${ECHO_T}no" >&6; }
15647 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15648 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15649 { (exit 1); exit 1; }; }
15653 if test -f $withval/Python.h; then
15654 PYTHON_INCDIR=-I$withval
15655 PYTHON_LIBS="-L$withval/config -lpython"
15656 elif test -f $withval/include/Python.h; then
15657 PYTHON_INCDIR=-I$withval/include
15658 if test -d $withval/lib64/config; then
15659 PYTHON_LIBS="-L$withval/lib64/config -lpython"
15661 PYTHON_LIBS="-L$withval/lib/config -lpython"
15663 elif test -f $withval/include/python/Python.h; then
15664 PYTHON_INCDIR=-I$withval/include/python
15665 if test -d $withval/lib64/python/config; then
15666 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15668 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15671 { echo "$as_me:$LINENO: result: no" >&5
15672 echo "${ECHO_T}no" >&6; }
15673 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15674 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15675 { (exit 1); exit 1; }; }
15678 cat >>confdefs.h <<\_ACEOF
15679 #define HAVE_PYTHON 1
15682 { echo "$as_me:$LINENO: result: yes" >&5
15683 echo "${ECHO_T}yes" >&6; }
15685 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15686 echo "$as_me: checking for more Python libs" >&6;}
15687 saved_LIBS="$LIBS"; LIBS=
15688 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15689 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15690 if test "${ac_cv_search_shm_open+set}" = set; then
15691 echo $ECHO_N "(cached) $ECHO_C" >&6
15693 ac_func_search_save_LIBS=$LIBS
15694 cat >conftest.$ac_ext <<_ACEOF
15697 cat confdefs.h >>conftest.$ac_ext
15698 cat >>conftest.$ac_ext <<_ACEOF
15699 /* end confdefs.h. */
15701 /* Override any GCC internal prototype to avoid an error.
15702 Use char because int might match the return type of a GCC
15703 builtin and then its argument prototype would still apply. */
15711 return shm_open ();
15716 for ac_lib in '' rt; do
15717 if test -z "$ac_lib"; then
15718 ac_res="none required"
15721 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15723 rm -f conftest.$ac_objext conftest$ac_exeext
15724 if { (ac_try="$ac_link"
15725 case "(($ac_try" in
15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727 *) ac_try_echo=$ac_try;;
15729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730 (eval "$ac_link") 2>conftest.er1
15732 grep -v '^ *+' conftest.er1 >conftest.err
15734 cat conftest.err >&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } && {
15737 test -z "$ac_c_werror_flag" ||
15738 test ! -s conftest.err
15739 } && test -s conftest$ac_exeext &&
15740 $as_test_x conftest$ac_exeext; then
15741 ac_cv_search_shm_open=$ac_res
15743 echo "$as_me: failed program was:" >&5
15744 sed 's/^/| /' conftest.$ac_ext >&5
15749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15751 if test "${ac_cv_search_shm_open+set}" = set; then
15755 if test "${ac_cv_search_shm_open+set}" = set; then
15758 ac_cv_search_shm_open=no
15760 rm conftest.$ac_ext
15761 LIBS=$ac_func_search_save_LIBS
15763 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15764 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15765 ac_res=$ac_cv_search_shm_open
15766 if test "$ac_res" != no; then
15767 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15772 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15773 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15774 if test "${ac_cv_lib_util_openpty+set}" = set; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15777 ac_check_lib_save_LIBS=$LIBS
15778 LIBS="-lutil $LIBS"
15779 cat >conftest.$ac_ext <<_ACEOF
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h. */
15786 /* Override any GCC internal prototype to avoid an error.
15787 Use char because int might match the return type of a GCC
15788 builtin and then its argument prototype would still apply. */
15801 rm -f conftest.$ac_objext conftest$ac_exeext
15802 if { (ac_try="$ac_link"
15803 case "(($ac_try" in
15804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15805 *) ac_try_echo=$ac_try;;
15807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15808 (eval "$ac_link") 2>conftest.er1
15810 grep -v '^ *+' conftest.er1 >conftest.err
15812 cat conftest.err >&5
15813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15814 (exit $ac_status); } && {
15815 test -z "$ac_c_werror_flag" ||
15816 test ! -s conftest.err
15817 } && test -s conftest$ac_exeext &&
15818 $as_test_x conftest$ac_exeext; then
15819 ac_cv_lib_util_openpty=yes
15821 echo "$as_me: failed program was:" >&5
15822 sed 's/^/| /' conftest.$ac_ext >&5
15824 ac_cv_lib_util_openpty=no
15827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15828 conftest$ac_exeext conftest.$ac_ext
15829 LIBS=$ac_check_lib_save_LIBS
15831 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15832 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15833 if test $ac_cv_lib_util_openpty = yes; then
15834 cat >>confdefs.h <<_ACEOF
15835 #define HAVE_LIBUTIL 1
15838 LIBS="-lutil $LIBS"
15842 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15845 { echo "$as_me:$LINENO: result: no" >&5
15846 echo "${ECHO_T}no" >&6; }
15851 { echo "$as_me:$LINENO: result: no" >&5
15852 echo "${ECHO_T}no" >&6; }
15860 # Find where sockets are (especially for Solaris)
15861 # Do this before the TCP Wrappers test since tcp wrappers
15862 # uses the socket library and some linkers are stupid.
15864 { echo "$as_me:$LINENO: checking for socket" >&5
15865 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15866 if test "${ac_cv_func_socket+set}" = set; then
15867 echo $ECHO_N "(cached) $ECHO_C" >&6
15869 cat >conftest.$ac_ext <<_ACEOF
15872 cat confdefs.h >>conftest.$ac_ext
15873 cat >>conftest.$ac_ext <<_ACEOF
15874 /* end confdefs.h. */
15875 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15877 #define socket innocuous_socket
15879 /* System header to define __stub macros and hopefully few prototypes,
15880 which can conflict with char socket (); below.
15881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15882 <limits.h> exists even on freestanding compilers. */
15885 # include <limits.h>
15887 # include <assert.h>
15892 /* Override any GCC internal prototype to avoid an error.
15893 Use char because int might match the return type of a GCC
15894 builtin and then its argument prototype would still apply. */
15899 /* The GNU C library defines this for functions which it implements
15900 to always fail with ENOSYS. Some functions are actually named
15901 something starting with __ and the normal name is an alias. */
15902 #if defined __stub_socket || defined __stub___socket
15914 rm -f conftest.$ac_objext conftest$ac_exeext
15915 if { (ac_try="$ac_link"
15916 case "(($ac_try" in
15917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15918 *) ac_try_echo=$ac_try;;
15920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15921 (eval "$ac_link") 2>conftest.er1
15923 grep -v '^ *+' conftest.er1 >conftest.err
15925 cat conftest.err >&5
15926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15927 (exit $ac_status); } && {
15928 test -z "$ac_c_werror_flag" ||
15929 test ! -s conftest.err
15930 } && test -s conftest$ac_exeext &&
15931 $as_test_x conftest$ac_exeext; then
15932 ac_cv_func_socket=yes
15934 echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15937 ac_cv_func_socket=no
15940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15941 conftest$ac_exeext conftest.$ac_ext
15943 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15944 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15945 if test $ac_cv_func_socket = yes; then
15946 { echo "$as_me:$LINENO: result: using libc's socket" >&5
15947 echo "${ECHO_T}using libc's socket" >&6; }
15950 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15951 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15952 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15953 echo $ECHO_N "(cached) $ECHO_C" >&6
15955 ac_check_lib_save_LIBS=$LIBS
15956 LIBS="-lxnet $LIBS"
15957 cat >conftest.$ac_ext <<_ACEOF
15960 cat confdefs.h >>conftest.$ac_ext
15961 cat >>conftest.$ac_ext <<_ACEOF
15962 /* end confdefs.h. */
15964 /* Override any GCC internal prototype to avoid an error.
15965 Use char because int might match the return type of a GCC
15966 builtin and then its argument prototype would still apply. */
15979 rm -f conftest.$ac_objext conftest$ac_exeext
15980 if { (ac_try="$ac_link"
15981 case "(($ac_try" in
15982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983 *) ac_try_echo=$ac_try;;
15985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15986 (eval "$ac_link") 2>conftest.er1
15988 grep -v '^ *+' conftest.er1 >conftest.err
15990 cat conftest.err >&5
15991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15992 (exit $ac_status); } && {
15993 test -z "$ac_c_werror_flag" ||
15994 test ! -s conftest.err
15995 } && test -s conftest$ac_exeext &&
15996 $as_test_x conftest$ac_exeext; then
15997 ac_cv_lib_xnet_socket=yes
15999 echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16002 ac_cv_lib_xnet_socket=no
16005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16006 conftest$ac_exeext conftest.$ac_ext
16007 LIBS=$ac_check_lib_save_LIBS
16009 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16010 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
16011 if test $ac_cv_lib_xnet_socket = yes; then
16012 cat >>confdefs.h <<_ACEOF
16013 #define HAVE_LIBXNET 1
16016 LIBS="-lxnet $LIBS"
16021 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16022 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16023 if test "${ac_cv_lib_socket_socket+set}" = set; then
16024 echo $ECHO_N "(cached) $ECHO_C" >&6
16026 ac_check_lib_save_LIBS=$LIBS
16027 LIBS="-lsocket $LIBS"
16028 cat >conftest.$ac_ext <<_ACEOF
16031 cat confdefs.h >>conftest.$ac_ext
16032 cat >>conftest.$ac_ext <<_ACEOF
16033 /* end confdefs.h. */
16035 /* Override any GCC internal prototype to avoid an error.
16036 Use char because int might match the return type of a GCC
16037 builtin and then its argument prototype would still apply. */
16050 rm -f conftest.$ac_objext conftest$ac_exeext
16051 if { (ac_try="$ac_link"
16052 case "(($ac_try" in
16053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16054 *) ac_try_echo=$ac_try;;
16056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16057 (eval "$ac_link") 2>conftest.er1
16059 grep -v '^ *+' conftest.er1 >conftest.err
16061 cat conftest.err >&5
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } && {
16064 test -z "$ac_c_werror_flag" ||
16065 test ! -s conftest.err
16066 } && test -s conftest$ac_exeext &&
16067 $as_test_x conftest$ac_exeext; then
16068 ac_cv_lib_socket_socket=yes
16070 echo "$as_me: failed program was:" >&5
16071 sed 's/^/| /' conftest.$ac_ext >&5
16073 ac_cv_lib_socket_socket=no
16076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16077 conftest$ac_exeext conftest.$ac_ext
16078 LIBS=$ac_check_lib_save_LIBS
16080 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16081 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16082 if test $ac_cv_lib_socket_socket = yes; then
16083 cat >>confdefs.h <<_ACEOF
16084 #define HAVE_LIBSOCKET 1
16087 LIBS="-lsocket $LIBS"
16092 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16093 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16094 if test "${ac_cv_lib_inet_socket+set}" = set; then
16095 echo $ECHO_N "(cached) $ECHO_C" >&6
16097 ac_check_lib_save_LIBS=$LIBS
16098 LIBS="-linet $LIBS"
16099 cat >conftest.$ac_ext <<_ACEOF
16102 cat confdefs.h >>conftest.$ac_ext
16103 cat >>conftest.$ac_ext <<_ACEOF
16104 /* end confdefs.h. */
16106 /* Override any GCC internal prototype to avoid an error.
16107 Use char because int might match the return type of a GCC
16108 builtin and then its argument prototype would still apply. */
16121 rm -f conftest.$ac_objext conftest$ac_exeext
16122 if { (ac_try="$ac_link"
16123 case "(($ac_try" in
16124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16125 *) ac_try_echo=$ac_try;;
16127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16128 (eval "$ac_link") 2>conftest.er1
16130 grep -v '^ *+' conftest.er1 >conftest.err
16132 cat conftest.err >&5
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); } && {
16135 test -z "$ac_c_werror_flag" ||
16136 test ! -s conftest.err
16137 } && test -s conftest$ac_exeext &&
16138 $as_test_x conftest$ac_exeext; then
16139 ac_cv_lib_inet_socket=yes
16141 echo "$as_me: failed program was:" >&5
16142 sed 's/^/| /' conftest.$ac_ext >&5
16144 ac_cv_lib_inet_socket=no
16147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16148 conftest$ac_exeext conftest.$ac_ext
16149 LIBS=$ac_check_lib_save_LIBS
16151 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16152 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16153 if test $ac_cv_lib_inet_socket = yes; then
16154 cat >>confdefs.h <<_ACEOF
16155 #define HAVE_LIBINET 1
16158 LIBS="-linet $LIBS"
16166 # -----------------------------------------------------------
16167 # Check whether user wants TCP wrappers support (default off)
16168 # -----------------------------------------------------------
16172 # Check whether --with-tcp-wrappers was given.
16173 if test "${with_tcp_wrappers+set}" = set; then
16174 withval=$with_tcp_wrappers;
16175 if test "x$withval" != "xno" ; then
16177 LIBS="$saved_LIBS -lwrap"
16178 { echo "$as_me:$LINENO: checking for libwrap" >&5
16179 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16180 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16181 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16182 if test "${ac_cv_search_nanosleep+set}" = set; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16185 ac_func_search_save_LIBS=$LIBS
16186 cat >conftest.$ac_ext <<_ACEOF
16189 cat confdefs.h >>conftest.$ac_ext
16190 cat >>conftest.$ac_ext <<_ACEOF
16191 /* end confdefs.h. */
16193 /* Override any GCC internal prototype to avoid an error.
16194 Use char because int might match the return type of a GCC
16195 builtin and then its argument prototype would still apply. */
16203 return nanosleep ();
16208 for ac_lib in '' rt; do
16209 if test -z "$ac_lib"; then
16210 ac_res="none required"
16213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16215 rm -f conftest.$ac_objext conftest$ac_exeext
16216 if { (ac_try="$ac_link"
16217 case "(($ac_try" in
16218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16219 *) ac_try_echo=$ac_try;;
16221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16222 (eval "$ac_link") 2>conftest.er1
16224 grep -v '^ *+' conftest.er1 >conftest.err
16226 cat conftest.err >&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); } && {
16229 test -z "$ac_c_werror_flag" ||
16230 test ! -s conftest.err
16231 } && test -s conftest$ac_exeext &&
16232 $as_test_x conftest$ac_exeext; then
16233 ac_cv_search_nanosleep=$ac_res
16235 echo "$as_me: failed program was:" >&5
16236 sed 's/^/| /' conftest.$ac_ext >&5
16241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16243 if test "${ac_cv_search_nanosleep+set}" = set; then
16247 if test "${ac_cv_search_nanosleep+set}" = set; then
16250 ac_cv_search_nanosleep=no
16252 rm conftest.$ac_ext
16253 LIBS=$ac_func_search_save_LIBS
16255 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16256 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16257 ac_res=$ac_cv_search_nanosleep
16258 if test "$ac_res" != no; then
16259 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16263 cat >conftest.$ac_ext <<_ACEOF
16266 cat confdefs.h >>conftest.$ac_ext
16267 cat >>conftest.$ac_ext <<_ACEOF
16268 /* end confdefs.h. */
16269 #include <sys/types.h>
16271 int deny_severity = 0;
16272 int allow_severity = 0;
16273 struct request_info *req;
16282 rm -f conftest.$ac_objext conftest$ac_exeext
16283 if { (ac_try="$ac_link"
16284 case "(($ac_try" in
16285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16286 *) ac_try_echo=$ac_try;;
16288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16289 (eval "$ac_link") 2>conftest.er1
16291 grep -v '^ *+' conftest.er1 >conftest.err
16293 cat conftest.err >&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); } && {
16296 test -z "$ac_c_werror_flag" ||
16297 test ! -s conftest.err
16298 } && test -s conftest$ac_exeext &&
16299 $as_test_x conftest$ac_exeext; then
16301 { echo "$as_me:$LINENO: result: yes" >&5
16302 echo "${ECHO_T}yes" >&6; }
16304 cat >>confdefs.h <<\_ACEOF
16305 #define HAVE_LIBWRAP 1
16313 echo "$as_me: failed program was:" >&5
16314 sed 's/^/| /' conftest.$ac_ext >&5
16317 LIBS="$saved_LIBS -lwrap -lnsl"
16318 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16319 cat >conftest.$ac_ext <<_ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16325 #include <sys/types.h>
16327 int deny_severity = 0;
16328 int allow_severity = 0;
16329 struct request_info *req;
16338 rm -f conftest.$ac_objext conftest$ac_exeext
16339 if { (ac_try="$ac_link"
16340 case "(($ac_try" in
16341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16342 *) ac_try_echo=$ac_try;;
16344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16345 (eval "$ac_link") 2>conftest.er1
16347 grep -v '^ *+' conftest.er1 >conftest.err
16349 cat conftest.err >&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); } && {
16352 test -z "$ac_c_werror_flag" ||
16353 test ! -s conftest.err
16354 } && test -s conftest$ac_exeext &&
16355 $as_test_x conftest$ac_exeext; then
16357 { echo "$as_me:$LINENO: result: yes" >&5
16358 echo "${ECHO_T}yes" >&6; }
16360 cat >>confdefs.h <<\_ACEOF
16361 #define HAVE_LIBWRAP 1
16369 echo "$as_me: failed program was:" >&5
16370 sed 's/^/| /' conftest.$ac_ext >&5
16372 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16373 echo "$as_me: error: *** libwrap missing" >&2;}
16374 { (exit 1); exit 1; }; }
16378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16379 conftest$ac_exeext conftest.$ac_ext
16383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16384 conftest$ac_exeext conftest.$ac_ext
16391 # -----------------------------------------------------------
16392 # Check whether OpenSSL is available
16393 # -----------------------------------------------------------
16394 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16395 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16397 # Check whether --with-openssl was given.
16398 if test "${with_openssl+set}" = set; then
16399 withval=$with_openssl; with_openssl_directory=${withval}
16403 if test "x$with_openssl_directory" != "x"; then
16404 OPENSSL_LIBS="-lssl -lcrypto"
16407 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16408 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16409 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16412 saved_LIBS="${LIBS}"
16413 saved_CFLAGS="${CFLAGS}"
16414 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16415 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16417 cat >conftest.$ac_ext <<_ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h. */
16423 #include <openssl/ssl.h>
16427 CRYPTO_set_id_callback(NULL);
16432 rm -f conftest.$ac_objext conftest$ac_exeext
16433 if { (ac_try="$ac_link"
16434 case "(($ac_try" in
16435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436 *) ac_try_echo=$ac_try;;
16438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439 (eval "$ac_link") 2>conftest.er1
16441 grep -v '^ *+' conftest.er1 >conftest.err
16443 cat conftest.err >&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); } && {
16446 test -z "$ac_c_werror_flag" ||
16447 test ! -s conftest.err
16448 } && test -s conftest$ac_exeext &&
16449 $as_test_x conftest$ac_exeext; then
16452 support_crypto="yes"
16455 echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16463 conftest$ac_exeext conftest.$ac_ext
16465 cat >conftest.$ac_ext <<_ACEOF
16468 cat confdefs.h >>conftest.$ac_ext
16469 cat >>conftest.$ac_ext <<_ACEOF
16470 /* end confdefs.h. */
16471 #include <openssl/evp.h>
16480 rm -f conftest.$ac_objext conftest$ac_exeext
16481 if { (ac_try="$ac_link"
16482 case "(($ac_try" in
16483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484 *) ac_try_echo=$ac_try;;
16486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16487 (eval "$ac_link") 2>conftest.er1
16489 grep -v '^ *+' conftest.er1 >conftest.err
16491 cat conftest.err >&5
16492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16493 (exit $ac_status); } && {
16494 test -z "$ac_c_werror_flag" ||
16495 test ! -s conftest.err
16496 } && test -s conftest$ac_exeext &&
16497 $as_test_x conftest$ac_exeext; then
16498 ac_cv_openssl_sha2="yes"
16500 echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16503 ac_cv_openssl_sha2="no"
16507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16508 conftest$ac_exeext conftest.$ac_ext
16510 # Solaris disables greater than 128+ bit encryption in their OpenSSL
16511 # implementation, presumably for export reasons. If 192bit AES
16512 # is available, we assume that we're running with a 'non-export'
16514 cat >conftest.$ac_ext <<_ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h. */
16520 #include <openssl/evp.h>
16529 rm -f conftest.$ac_objext conftest$ac_exeext
16530 if { (ac_try="$ac_link"
16531 case "(($ac_try" in
16532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533 *) ac_try_echo=$ac_try;;
16535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16536 (eval "$ac_link") 2>conftest.er1
16538 grep -v '^ *+' conftest.er1 >conftest.err
16540 cat conftest.err >&5
16541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16542 (exit $ac_status); } && {
16543 test -z "$ac_c_werror_flag" ||
16544 test ! -s conftest.err
16545 } && test -s conftest$ac_exeext &&
16546 $as_test_x conftest$ac_exeext; then
16547 ac_cv_openssl_export="no"
16549 echo "$as_me: failed program was:" >&5
16550 sed 's/^/| /' conftest.$ac_ext >&5
16552 ac_cv_openssl_export="yes"
16556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16557 conftest$ac_exeext conftest.$ac_ext
16559 LIBS="${saved_LIBS}"
16560 CFLAGS="${saved_CFLAGS}"
16562 if test "$support_tls" = "yes"; then
16564 cat >>confdefs.h <<\_ACEOF
16565 #define HAVE_OPENSSL 1
16569 cat >>confdefs.h <<\_ACEOF
16574 cat >>confdefs.h <<\_ACEOF
16575 #define HAVE_CRYPTO 1
16580 if test "$ac_cv_openssl_sha2" = "yes"; then
16582 cat >>confdefs.h <<\_ACEOF
16583 #define HAVE_SHA2 1
16588 if test "$ac_cv_openssl_export" = "yes"; then
16590 cat >>confdefs.h <<\_ACEOF
16591 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16597 support_crypto="no"
16602 { echo "$as_me:$LINENO: result: $support_tls" >&5
16603 echo "${ECHO_T}$support_tls" >&6; }
16608 # -----------------------------------------------------------
16609 # Python and OpenSSL are using dlopen
16610 # -----------------------------------------------------------
16612 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
16613 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16614 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16615 if test "${ac_cv_search_dlopen+set}" = set; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16618 ac_func_search_save_LIBS=$LIBS
16619 cat >conftest.$ac_ext <<_ACEOF
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16626 /* Override any GCC internal prototype to avoid an error.
16627 Use char because int might match the return type of a GCC
16628 builtin and then its argument prototype would still apply. */
16641 for ac_lib in '' dl; do
16642 if test -z "$ac_lib"; then
16643 ac_res="none required"
16646 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16648 rm -f conftest.$ac_objext conftest$ac_exeext
16649 if { (ac_try="$ac_link"
16650 case "(($ac_try" in
16651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16652 *) ac_try_echo=$ac_try;;
16654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16655 (eval "$ac_link") 2>conftest.er1
16657 grep -v '^ *+' conftest.er1 >conftest.err
16659 cat conftest.err >&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); } && {
16662 test -z "$ac_c_werror_flag" ||
16663 test ! -s conftest.err
16664 } && test -s conftest$ac_exeext &&
16665 $as_test_x conftest$ac_exeext; then
16666 ac_cv_search_dlopen=$ac_res
16668 echo "$as_me: failed program was:" >&5
16669 sed 's/^/| /' conftest.$ac_ext >&5
16674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16676 if test "${ac_cv_search_dlopen+set}" = set; then
16680 if test "${ac_cv_search_dlopen+set}" = set; then
16683 ac_cv_search_dlopen=no
16685 rm conftest.$ac_ext
16686 LIBS=$ac_func_search_save_LIBS
16688 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16689 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16690 ac_res=$ac_cv_search_dlopen
16691 if test "$ac_res" != no; then
16692 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16698 # ------------------------------------------
16699 # Where to place working dir
16700 # ------------------------------------------
16701 working_dir=`eval echo ${prefix}/var/bacula/working`
16703 # Check whether --with-working-dir was given.
16704 if test "${with_working_dir+set}" = set; then
16705 withval=$with_working_dir;
16706 if test "x$withval" != "xno" ; then
16707 working_dir=$withval
16716 # ------------------------------------------------------------------
16717 # If the user has not set archivedir, we set our default as /tmp
16718 # ------------------------------------------------------------------
16721 # Check whether --with-archivedir was given.
16722 if test "${with_archivedir+set}" = set; then
16723 withval=$with_archivedir;
16724 if test "x$withval" != "xno" ; then
16725 archivedir=$withval
16736 # ------------------------------------------
16737 # Where to place scriptdir (script files)
16738 # ------------------------------------------
16739 scriptdir=`eval echo ${sysconfdir}`
16741 # Check whether --with-scriptdir was given.
16742 if test "${with_scriptdir+set}" = set; then
16743 withval=$with_scriptdir;
16744 if test "x$withval" != "xno" ; then
16755 # ------------------------------------------
16756 # Where to send dump email
16757 # ------------------------------------------
16758 dump_email=root@localhost
16760 # Check whether --with-dump-email was given.
16761 if test "${with_dump_email+set}" = set; then
16762 withval=$with_dump_email;
16763 if test "x$withval" != "xno" ; then
16764 dump_email=$withval
16773 # ------------------------------------------
16774 # Where to send job email
16775 # ------------------------------------------
16776 job_email=root@localhost
16778 # Check whether --with-job-email was given.
16779 if test "${with_job_email+set}" = set; then
16780 withval=$with_job_email;
16781 if test "x$withval" != "xno" ; then
16791 # ------------------------------------------
16792 # Where to find smtp host
16793 # ------------------------------------------
16794 smtp_host=localhost
16796 # Check whether --with-smtp_host was given.
16797 if test "${with_smtp_host+set}" = set; then
16798 withval=$with_smtp_host;
16799 if test "x$withval" != "xno" ; then
16810 # ------------------------------------
16811 # Where to place pid files
16812 # ------------------------------------
16815 # Check whether --with-pid-dir was given.
16816 if test "${with_pid_dir+set}" = set; then
16817 withval=$with_pid_dir;
16818 if test "x$withval" != "xno" ; then
16826 cat >>confdefs.h <<_ACEOF
16827 #define _PATH_BACULA_PIDDIR "$piddir"
16833 # ------------------------------------
16834 # Where to place subsys "lock file"
16835 # ------------------------------------
16836 subsysdir=/var/run/subsys
16837 if test -d /var/run/subsys; then
16838 subsysdir=/var/run/subsys
16839 elif test -d /var/lock/subsys; then
16840 subsysdir=/var/lock/subsys
16842 subsysdir=/var/run/subsys
16845 # Check whether --with-subsys-dir was given.
16846 if test "${with_subsys_dir+set}" = set; then
16847 withval=$with_subsys_dir;
16848 if test "x$withval" != "xno" ; then
16860 # ------------------------------------
16861 # Where to start assigning ports
16862 # ------------------------------------
16865 # Check whether --with-baseport was given.
16866 if test "${with_baseport+set}" = set; then
16867 withval=$with_baseport;
16868 if test "x$withval" != "xno" ; then
16877 dir_port=`expr $baseport`
16878 fd_port=`expr $baseport + 1`
16879 sd_port=`expr $fd_port + 1`
16886 # ------------------------------------------
16887 # Generate passwords
16888 # ------------------------------------------
16891 # Check whether --with-dir-password was given.
16892 if test "${with_dir_password+set}" = set; then
16893 withval=$with_dir_password;
16894 if test "x$withval" != "xno" ; then
16895 dir_password=$withval
16902 if test "x$dir_password" = "x" ; then
16903 if test "x$OPENSSL" = "xnone" ; then
16904 key=`autoconf/randpass 33`
16906 key=`openssl rand -base64 33`
16913 # Check whether --with-fd-password was given.
16914 if test "${with_fd_password+set}" = set; then
16915 withval=$with_fd_password;
16916 if test "x$withval" != "xno" ; then
16917 fd_password=$withval
16924 if test "x$fd_password" = "x" ; then
16925 if test "x$OPENSSL" = "xnone" ; then
16926 key=`autoconf/randpass 37`
16928 key=`openssl rand -base64 33`
16935 # Check whether --with-sd-password was given.
16936 if test "${with_sd_password+set}" = set; then
16937 withval=$with_sd_password;
16938 if test "x$withval" != "xno" ; then
16939 sd_password=$withval
16946 if test "x$sd_password" = "x" ; then
16947 if test "x$OPENSSL" = "xnone" ; then
16948 key=`autoconf/randpass 41`
16950 key=`openssl rand -base64 33`
16957 # Check whether --with-mon-dir-password was given.
16958 if test "${with_mon_dir_password+set}" = set; then
16959 withval=$with_mon_dir_password;
16960 if test "x$withval" != "xno" ; then
16961 mon_dir_password=$withval
16968 if test "x$mon_dir_password" = "x" ; then
16969 if test "x$OPENSSL" = "xnone" ; then
16970 key=`autoconf/randpass 33`
16972 key=`openssl rand -base64 33`
16974 mon_dir_password=$key
16979 # Check whether --with-mon-fd-password was given.
16980 if test "${with_mon_fd_password+set}" = set; then
16981 withval=$with_mon_fd_password;
16982 if test "x$withval" != "xno" ; then
16983 mon_fd_password=$withval
16990 if test "x$mon_fd_password" = "x" ; then
16991 if test "x$OPENSSL" = "xnone" ; then
16992 key=`autoconf/randpass 37`
16994 key=`openssl rand -base64 33`
16996 mon_fd_password=$key
17001 # Check whether --with-mon-sd-password was given.
17002 if test "${with_mon_sd_password+set}" = set; then
17003 withval=$with_mon_sd_password;
17004 if test "x$withval" != "xno" ; then
17005 mon_sd_password=$withval
17012 if test "x$mon_sd_password" = "x" ; then
17013 if test "x$OPENSSL" = "xnone" ; then
17014 key=`autoconf/randpass 41`
17016 key=`openssl rand -base64 33`
17018 mon_sd_password=$key
17029 # Pickup any database name
17033 # Check whether --with-db_name was given.
17034 if test "${with_db_name+set}" = set; then
17035 withval=$with_db_name;
17036 if test "x$withval" != "x" ; then
17047 # Check whether --with-db_user was given.
17048 if test "${with_db_user+set}" = set; then
17049 withval=$with_db_user;
17050 if test "x$withval" != "x" ; then
17061 # Check whether --with-db_password was given.
17062 if test "${with_db_password+set}" = set; then
17063 withval=$with_db_password;
17064 if test "x$withval" != "x" ; then
17065 db_password=$withval
17074 # Handle users and groups for each daemon
17078 # Check whether --with-dir_user was given.
17079 if test "${with_dir_user+set}" = set; then
17080 withval=$with_dir_user;
17081 if test "x$withval" != "x" ; then
17091 # Check whether --with-dir_group was given.
17092 if test "${with_dir_group+set}" = set; then
17093 withval=$with_dir_group;
17094 if test "x$withval" != "x" ; then
17104 # Check whether --with-sd_user was given.
17105 if test "${with_sd_user+set}" = set; then
17106 withval=$with_sd_user;
17107 if test "x$withval" != "x" ; then
17117 # Check whether --with-sd_group was given.
17118 if test "${with_sd_group+set}" = set; then
17119 withval=$with_sd_group;
17120 if test "x$withval" != "x" ; then
17130 # Check whether --with-fd_user was given.
17131 if test "${with_fd_user+set}" = set; then
17132 withval=$with_fd_user;
17133 if test "x$withval" != "x" ; then
17143 # Check whether --with-fd_group was given.
17144 if test "${with_fd_group+set}" = set; then
17145 withval=$with_fd_group;
17146 if test "x$withval" != "x" ; then
17162 # allow setting default executable permissions
17166 # Check whether --with-sbin-perm was given.
17167 if test "${with_sbin_perm+set}" = set; then
17168 withval=$with_sbin_perm;
17169 if test "x$withval" != "x" ; then
17179 # ------------------------------------------------
17180 # Bacula check for various SQL database engines
17181 # ------------------------------------------------
17185 { echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
17186 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6; }
17188 # Check whether --with-postgresql was given.
17189 if test "${with_postgresql+set}" = set; then
17190 withval=$with_postgresql;
17191 if test "$withval" != "no"; then
17192 if test "$db_found" = "yes"; then
17193 { echo "$as_me:$LINENO: result: error" >&5
17194 echo "${ECHO_T}error" >&6; }
17195 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
17196 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
17197 { (exit 1); exit 1; }; };
17199 if test "$withval" = "yes"; then
17200 PG_CONFIG=`which pg_config`
17201 if test -n "$PG_CONFIG";then
17202 POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
17203 POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
17204 POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
17205 elif test -f /usr/local/include/libpq-fe.h; then
17206 POSTGRESQL_INCDIR=/usr/local/include
17207 if test -d /usr/local/lib64; then
17208 POSTGRESQL_LIBDIR=/usr/local/lib64
17210 POSTGRESQL_LIBDIR=/usr/local/lib
17212 POSTGRESQL_BINDIR=/usr/local/bin
17213 elif test -f /usr/include/libpq-fe.h; then
17214 POSTGRESQL_INCDIR=/usr/include
17215 if test -d /usr/lib64; then
17216 POSTGRESQL_LIBDIR=/usr/lib64
17218 POSTGRESQL_LIBDIR=/usr/lib
17220 POSTGRESQL_BINDIR=/usr/bin
17221 elif test -f /usr/include/pgsql/libpq-fe.h; then
17222 POSTGRESQL_INCDIR=/usr/include/pgsql
17223 if test -d /usr/lib64/pgsql; then
17224 POSTGRESQL_LIBDIR=/usr/lib64/pgsql
17226 POSTGRESQL_LIBDIR=/usr/lib/pgsql
17228 POSTGRESQL_BINDIR=/usr/bin
17229 elif test -f /usr/include/postgresql/libpq-fe.h; then
17230 POSTGRESQL_INCDIR=/usr/include/postgresql
17231 if test -d /usr/lib64/postgresql; then
17232 POSTGRESQL_LIBDIR=/usr/lib64/postgresql
17234 POSTGRESQL_LIBDIR=/usr/lib/postgresql
17236 POSTGRESQL_BINDIR=/usr/bin
17238 { echo "$as_me:$LINENO: result: no" >&5
17239 echo "${ECHO_T}no" >&6; }
17240 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
17241 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
17242 { (exit 1); exit 1; }; }
17244 elif test -f $withval/include/libpq-fe.h; then
17245 POSTGRESQL_INCDIR=$withval/include
17246 POSTGRESQL_LIBDIR=$withval/lib
17247 POSTGRESQL_BINDIR=$withval/bin
17248 elif test -f $withval/include/postgresql/libpq-fe.h; then
17249 POSTGRESQL_INCDIR=$withval/include/postgresql
17250 if test -d $withval/lib64; then
17251 POSTGRESQL_LIBDIR=$withval/lib64
17253 POSTGRESQL_LIBDIR=$withval/lib
17255 POSTGRESQL_BINDIR=$withval/bin
17257 { echo "$as_me:$LINENO: result: no" >&5
17258 echo "${ECHO_T}no" >&6; }
17259 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
17260 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
17261 { (exit 1); exit 1; }; }
17263 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
17264 { echo "$as_me:$LINENO: checking for crypt" >&5
17265 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
17266 if test "${ac_cv_func_crypt+set}" = set; then
17267 echo $ECHO_N "(cached) $ECHO_C" >&6
17269 cat >conftest.$ac_ext <<_ACEOF
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17275 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
17276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17277 #define crypt innocuous_crypt
17279 /* System header to define __stub macros and hopefully few prototypes,
17280 which can conflict with char crypt (); below.
17281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17282 <limits.h> exists even on freestanding compilers. */
17285 # include <limits.h>
17287 # include <assert.h>
17292 /* Override any GCC internal prototype to avoid an error.
17293 Use char because int might match the return type of a GCC
17294 builtin and then its argument prototype would still apply. */
17299 /* The GNU C library defines this for functions which it implements
17300 to always fail with ENOSYS. Some functions are actually named
17301 something starting with __ and the normal name is an alias. */
17302 #if defined __stub_crypt || defined __stub___crypt
17314 rm -f conftest.$ac_objext conftest$ac_exeext
17315 if { (ac_try="$ac_link"
17316 case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321 (eval "$ac_link") 2>conftest.er1
17323 grep -v '^ *+' conftest.er1 >conftest.err
17325 cat conftest.err >&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); } && {
17328 test -z "$ac_c_werror_flag" ||
17329 test ! -s conftest.err
17330 } && test -s conftest$ac_exeext &&
17331 $as_test_x conftest$ac_exeext; then
17332 ac_cv_func_crypt=yes
17334 echo "$as_me: failed program was:" >&5
17335 sed 's/^/| /' conftest.$ac_ext >&5
17337 ac_cv_func_crypt=no
17340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17341 conftest$ac_exeext conftest.$ac_ext
17343 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
17344 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
17345 if test $ac_cv_func_crypt = yes; then
17348 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
17349 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
17350 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
17351 echo $ECHO_N "(cached) $ECHO_C" >&6
17353 ac_check_lib_save_LIBS=$LIBS
17354 LIBS="-lcrypt $LIBS"
17355 cat >conftest.$ac_ext <<_ACEOF
17358 cat confdefs.h >>conftest.$ac_ext
17359 cat >>conftest.$ac_ext <<_ACEOF
17360 /* end confdefs.h. */
17362 /* Override any GCC internal prototype to avoid an error.
17363 Use char because int might match the return type of a GCC
17364 builtin and then its argument prototype would still apply. */
17377 rm -f conftest.$ac_objext conftest$ac_exeext
17378 if { (ac_try="$ac_link"
17379 case "(($ac_try" in
17380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17381 *) ac_try_echo=$ac_try;;
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_link") 2>conftest.er1
17386 grep -v '^ *+' conftest.er1 >conftest.err
17388 cat conftest.err >&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } && {
17391 test -z "$ac_c_werror_flag" ||
17392 test ! -s conftest.err
17393 } && test -s conftest$ac_exeext &&
17394 $as_test_x conftest$ac_exeext; then
17395 ac_cv_lib_crypt_crypt=yes
17397 echo "$as_me: failed program was:" >&5
17398 sed 's/^/| /' conftest.$ac_ext >&5
17400 ac_cv_lib_crypt_crypt=no
17403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17404 conftest$ac_exeext conftest.$ac_ext
17405 LIBS=$ac_check_lib_save_LIBS
17407 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
17408 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
17409 if test $ac_cv_lib_crypt_crypt = yes; then
17410 POSTGRESQL_LFLAGS="$POSTGRESQL_LFLAGS -lcrypt"
17415 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
17416 SQL_LFLAGS=$POSTGRESQL_LFLAGS
17417 SQL_BINDIR=$POSTGRESQL_BINDIR
17418 SQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
17420 cat >>confdefs.h <<\_ACEOF
17421 #define HAVE_POSTGRESQL 1
17424 { echo "$as_me:$LINENO: result: yes" >&5
17425 echo "${ECHO_T}yes" >&6; }
17427 support_postgresql=yes
17431 { echo "$as_me:$LINENO: result: no" >&5
17432 echo "${ECHO_T}no" >&6; }
17437 { echo "$as_me:$LINENO: result: no" >&5
17438 echo "${ECHO_T}no" >&6; }
17450 { echo "$as_me:$LINENO: checking for MySQL support" >&5
17451 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6; }
17453 # Check whether --with-mysql was given.
17454 if test "${with_mysql+set}" = set; then
17455 withval=$with_mysql;
17456 if test "$withval" != "no"; then
17457 if test "$withval" = "yes"; then
17458 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17459 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17460 if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
17461 -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
17462 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17464 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17466 MYSQL_BINDIR=/usr/local/mysql/bin
17467 elif test -f /usr/include/mysql/mysql.h; then
17468 MYSQL_INCDIR=/usr/include/mysql
17469 if test -f /usr/lib64/mysql/libmysqlclient_r.a \
17470 -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
17471 MYSQL_LIBDIR=/usr/lib64/mysql
17472 elif test -f /usr/lib/mysql/libmysqlclient_r.a \
17473 -o -f /usr/lib/mysql/libmysqlclient_r.so; then
17474 MYSQL_LIBDIR=/usr/lib/mysql
17476 MYSQL_LIBDIR=/usr/lib
17478 MYSQL_BINDIR=/usr/bin
17479 elif test -f /usr/include/mysql.h; then
17480 MYSQL_INCDIR=/usr/include
17481 if test -f /usr/lib64/libmysqlclient_r.a \
17482 -o -f /usr/lib64/libmysqlclient_r.so; then
17483 MYSQL_LIBDIR=/usr/lib64
17485 MYSQL_LIBDIR=/usr/lib
17487 MYSQL_BINDIR=/usr/bin
17488 elif test -f /usr/local/include/mysql/mysql.h; then
17489 MYSQL_INCDIR=/usr/local/include/mysql
17490 if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
17491 -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
17492 MYSQL_LIBDIR=/usr/local/lib64/mysql
17494 MYSQL_LIBDIR=/usr/local/lib/mysql
17496 MYSQL_BINDIR=/usr/local/bin
17497 elif test -f /usr/local/include/mysql.h; then
17498 MYSQL_INCDIR=/usr/local/include
17499 if test -f /usr/local/lib64/libmysqlclient_r.a \
17500 -o -f /usr/local/lib64/libmysqlclient_r.so; then
17501 MYSQL_LIBDIR=/usr/local/lib64
17503 MYSQL_LIBDIR=/usr/local/lib
17505 MYSQL_BINDIR=/usr/local/bin
17507 { echo "$as_me:$LINENO: result: no" >&5
17508 echo "${ECHO_T}no" >&6; }
17509 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17510 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17511 { (exit 1); exit 1; }; }
17514 if test -f $withval/include/mysql/mysql.h; then
17515 MYSQL_INCDIR=$withval/include/mysql
17516 if test -f $withval/lib64/mysql/libmysqlclient_r.a \
17517 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
17518 MYSQL_LIBDIR=$withval/lib64/mysql
17520 MYSQL_LIBDIR=$withval/lib/mysql
17522 if test -f $withval/lib/libmysqlclient_r.so; then
17523 MYSQL_LIBDIR=$withval/lib
17526 MYSQL_BINDIR=$withval/bin
17527 elif test -f $withval/include/mysql.h; then
17528 MYSQL_INCDIR=$withval/include
17529 if test -f $withval/lib64/libmysqlclient_r.a \
17530 -o -f $withval/lib64/libmysqlclient_r.so; then
17531 MYSQL_LIBDIR=$withval/lib64
17533 MYSQL_LIBDIR=$withval/lib
17535 MYSQL_BINDIR=$withval/bin
17537 { echo "$as_me:$LINENO: result: no" >&5
17538 echo "${ECHO_T}no" >&6; }
17539 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17540 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17541 { (exit 1); exit 1; }; }
17544 SQL_INCLUDE=-I$MYSQL_INCDIR
17545 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
17546 -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
17547 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
17548 cat >>confdefs.h <<\_ACEOF
17549 #define HAVE_THREAD_SAFE_MYSQL 1
17553 SQL_BINDIR=$MYSQL_BINDIR
17554 SQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
17556 cat >>confdefs.h <<\_ACEOF
17557 #define HAVE_MYSQL 1
17560 { echo "$as_me:$LINENO: result: yes" >&5
17561 echo "${ECHO_T}yes" >&6; }
17568 { echo "$as_me:$LINENO: result: no" >&5
17569 echo "${ECHO_T}no" >&6; }
17577 # Check whether --with-embedded-mysql was given.
17578 if test "${with_embedded_mysql+set}" = set; then
17579 withval=$with_embedded_mysql;
17580 if test "$withval" != "no"; then
17581 if test "$withval" = "yes"; then
17582 if test -f /usr/local/mysql/include/mysql/mysql.h; then
17583 MYSQL_INCDIR=/usr/local/mysql/include/mysql
17584 if test -d /usr/local/mysql/lib64/mysql; then
17585 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
17587 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
17589 MYSQL_BINDIR=/usr/local/mysql/bin
17590 elif test -f /usr/include/mysql/mysql.h; then
17591 MYSQL_INCDIR=/usr/include/mysql
17592 if test -d /usr/lib64/mysql; then
17593 MYSQL_LIBDIR=/usr/lib64/mysql
17595 MYSQL_LIBDIR=/usr/lib/mysql
17597 MYSQL_BINDIR=/usr/bin
17598 elif test -f /usr/include/mysql.h; then
17599 MYSQL_INCDIR=/usr/include
17600 if test -d /usr/lib64; then
17601 MYSQL_LIBDIR=/usr/lib64
17603 MYSQL_LIBDIR=/usr/lib
17605 MYSQL_BINDIR=/usr/bin
17606 elif test -f /usr/local/include/mysql/mysql.h; then
17607 MYSQL_INCDIR=/usr/local/include/mysql
17608 if test -d /usr/local/lib64/mysql; then
17609 MYSQL_LIBDIR=/usr/local/lib64/mysql
17611 MYSQL_LIBDIR=/usr/local/lib/mysql
17613 MYSQL_BINDIR=/usr/local/bin
17614 elif test -f /usr/local/include/mysql.h; then
17615 MYSQL_INCDIR=/usr/local/include
17616 if test -d /usr/local/lib64; then
17617 MYSQL_LIBDIR=/usr/local/lib64
17619 MYSQL_LIBDIR=/usr/local/lib
17621 MYSQL_BINDIR=/usr/local/bin
17623 { echo "$as_me:$LINENO: result: no" >&5
17624 echo "${ECHO_T}no" >&6; }
17625 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
17626 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
17627 { (exit 1); exit 1; }; }
17630 if test -f $withval/include/mysql/mysql.h; then
17631 MYSQL_INCDIR=$withval/include/mysql
17632 if test -d $withval/lib64/mysql; then
17633 MYSQL_LIBDIR=$withval/lib64/mysql
17635 MYSQL_LIBDIR=$withval/lib/mysql
17637 MYSQL_BINDIR=$withval/bin
17638 elif test -f $withval/include/mysql.h; then
17639 MYSQL_INCDIR=$withval/include
17640 if test -d $withval/lib64; then
17641 MYSQL_LIBDIR=$withval/lib64
17643 MYSQL_LIBDIR=$withval/lib
17645 MYSQL_BINDIR=$withval/bin
17647 { echo "$as_me:$LINENO: result: no" >&5
17648 echo "${ECHO_T}no" >&6; }
17649 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
17650 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
17651 { (exit 1); exit 1; }; }
17654 SQL_INCLUDE=-I$MYSQL_INCDIR
17655 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
17656 SQL_BINDIR=$MYSQL_BINDIR
17657 SQL_LIB=$MYSQL_LIBDIR/libmysqld.a
17659 cat >>confdefs.h <<\_ACEOF
17660 #define HAVE_MYSQL 1
17663 cat >>confdefs.h <<\_ACEOF
17664 #define HAVE_EMBEDDED_MYSQL 1
17667 { echo "$as_me:$LINENO: result: yes" >&5
17668 echo "${ECHO_T}yes" >&6; }
17675 { echo "$as_me:$LINENO: result: no" >&5
17676 echo "${ECHO_T}no" >&6; }
17692 { echo "$as_me:$LINENO: checking for SQLite3 support" >&5
17693 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6; }
17695 # Check whether --with-sqlite3 was given.
17696 if test "${with_sqlite3+set}" = set; then
17697 withval=$with_sqlite3;
17698 if test "$withval" != "no"; then
17699 if test "$withval" = "yes"; then
17700 if test -f /usr/local/include/sqlite3.h; then
17701 SQLITE_INCDIR=/usr/local/include
17702 if test -d /usr/local/lib64; then
17703 SQLITE_LIBDIR=/usr/local/lib64
17705 SQLITE_LIBDIR=/usr/local/lib
17707 SQLITE_BINDIR=/usr/local/bin
17708 elif test -f /usr/include/sqlite3.h; then
17709 SQLITE_INCDIR=/usr/include
17710 if test -d /usr/lib64; then
17711 SQLITE_LIBDIR=/usr/lib64
17713 SQLITE_LIBDIR=/usr/lib
17715 SQLITE_BINDIR=/usr/bin
17716 elif test -f $prefix/include/sqlite3.h; then
17717 SQLITE_INCDIR=$prefix/include
17718 if test -d $prefix/lib64; then
17719 SQLITE_LIBDIR=$prefix/lib64
17721 SQLITE_LIBDIR=$prefix/lib
17723 SQLITE_BINDIR=$prefix/bin
17725 { echo "$as_me:$LINENO: result: no" >&5
17726 echo "${ECHO_T}no" >&6; }
17727 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
17728 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
17729 { (exit 1); exit 1; }; }
17732 if test -f $withval/sqlite3.h; then
17733 SQLITE_INCDIR=$withval
17734 SQLITE_LIBDIR=$withval
17735 SQLITE_BINDIR=$withval
17736 elif test -f $withval/include/sqlite3.h; then
17737 SQLITE_INCDIR=$withval/include
17738 if test -d $withval/lib64; then
17739 SQLITE_LIBDIR=$withval/lib64
17741 SQLITE_LIBDIR=$withval/lib
17743 SQLITE_BINDIR=$withval/bin
17745 { echo "$as_me:$LINENO: result: no" >&5
17746 echo "${ECHO_T}no" >&6; }
17747 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
17748 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
17749 { (exit 1); exit 1; }; }
17752 SQL_INCLUDE=-I$SQLITE_INCDIR
17753 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
17754 SQL_BINDIR=$SQLITE_BINDIR
17755 SQL_LIB=$SQLITE_LIBDIR/libsqlite3.a
17757 cat >>confdefs.h <<\_ACEOF
17758 #define HAVE_SQLITE3 1
17761 { echo "$as_me:$LINENO: result: yes" >&5
17762 echo "${ECHO_T}yes" >&6; }
17764 support_sqlite3=yes
17769 { echo "$as_me:$LINENO: result: no" >&5
17770 echo "${ECHO_T}no" >&6; }
17775 { echo "$as_me:$LINENO: result: no" >&5
17776 echo "${ECHO_T}no" >&6; }
17788 { echo "$as_me:$LINENO: checking for SQLite support" >&5
17789 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6; }
17791 # Check whether --with-sqlite was given.
17792 if test "${with_sqlite+set}" = set; then
17793 withval=$with_sqlite;
17794 if test "$withval" != "no"; then
17795 if test "$withval" = "yes"; then
17796 if test -f /usr/local/include/sqlite.h; then
17797 SQLITE_INCDIR=/usr/local/include
17798 if test -d /usr/local/lib64; then
17799 SQLITE_LIBDIR=/usr/local/lib64
17801 SQLITE_LIBDIR=/usr/local/lib
17803 SQLITE_BINDIR=/usr/local/bin
17804 elif test -f /usr/include/sqlite.h; then
17805 SQLITE_INCDIR=/usr/include
17806 if test -d /usr/lib64; then
17807 SQLITE_LIBDIR=/usr/lib64
17809 SQLITE_LIBDIR=/usr/lib
17811 SQLITE_BINDIR=/usr/bin
17812 elif test -f $prefix/include/sqlite.h; then
17813 SQLITE_INCDIR=$prefix/include
17814 if test -d $prefix/lib64; then
17815 SQLITE_LIBDIR=$prefix/lib64
17817 SQLITE_LIBDIR=$prefix/lib
17819 SQLITE_BINDIR=$prefix/bin
17821 { echo "$as_me:$LINENO: result: no" >&5
17822 echo "${ECHO_T}no" >&6; }
17823 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
17824 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
17825 { (exit 1); exit 1; }; }
17828 if test -f $withval/sqlite.h; then
17829 SQLITE_INCDIR=$withval
17830 SQLITE_LIBDIR=$withval
17831 SQLITE_BINDIR=$withval
17832 elif test -f $withval/include/sqlite.h; then
17833 SQLITE_INCDIR=$withval/include
17834 if test -d $withval/lib64; then
17835 SQLITE_LIBDIR=$withval/lib64
17837 SQLITE_LIBDIR=$withval/lib
17839 SQLITE_BINDIR=$withval/bin
17841 { echo "$as_me:$LINENO: result: no" >&5
17842 echo "${ECHO_T}no" >&6; }
17843 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
17844 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
17845 { (exit 1); exit 1; }; }
17848 SQL_INCLUDE=-I$SQLITE_INCDIR
17849 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
17850 SQL_BINDIR=$SQLITE_BINDIR
17851 SQL_LIB=$SQLITE_LIBDIR/libsqlite.a
17853 cat >>confdefs.h <<\_ACEOF
17854 #define HAVE_SQLITE 1
17857 { echo "$as_me:$LINENO: result: yes" >&5
17858 echo "${ECHO_T}yes" >&6; }
17865 { echo "$as_me:$LINENO: result: no" >&5
17866 echo "${ECHO_T}no" >&6; }
17871 { echo "$as_me:$LINENO: result: no" >&5
17872 echo "${ECHO_T}no" >&6; }
17885 # -------------------------------------------
17886 # enable batch attribute DB insert (default on)
17887 # -------------------------------------------
17888 support_batch_insert=no
17889 A=`nm $SQL_LIB | grep pthread_mutex_lock`
17891 if test $pkg = 0; then
17892 support_batch_insert=yes
17893 # Check whether --enable-batch-insert was given.
17894 if test "${enable_batch_insert+set}" = set; then
17895 enableval=$enable_batch_insert; if test x$enableval = xno; then
17896 support_batch_insert=no
17898 support_batch_insert=yes
17904 # Check if postgresql support batch mode
17905 if test x$DB_TYPE = xpostgresql; then
17906 A=`nm $SQL_LIB | grep PQputCopyData`
17908 if test $pkg != 0; then
17909 support_batch_insert=no
17913 if test $support_batch_insert = yes ; then
17915 cat >>confdefs.h <<\_ACEOF
17916 #define HAVE_BATCH_FILE_INSERT 1
17922 cat >>confdefs.h <<\_ACEOF
17923 #define PROTOTYPES 1
17927 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17928 if test -z "$CCOPTS"; then
17929 CCOPTS='-g -O2 -Wall'
17937 largefile_support="no"
17939 # Check whether --enable-largefile was given.
17940 if test "${enable_largefile+set}" = set; then
17941 enableval=$enable_largefile;
17944 if test "$enable_largefile" != no; then
17945 if test -n "$ac_tool_prefix"; then
17946 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17947 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17948 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17950 if test "${ac_cv_prog_GETCONF+set}" = set; then
17951 echo $ECHO_N "(cached) $ECHO_C" >&6
17953 if test -n "$GETCONF"; then
17954 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17957 for as_dir in $PATH
17960 test -z "$as_dir" && as_dir=.
17961 for ac_exec_ext in '' $ac_executable_extensions; do
17962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17963 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17973 GETCONF=$ac_cv_prog_GETCONF
17974 if test -n "$GETCONF"; then
17975 { echo "$as_me:$LINENO: result: $GETCONF" >&5
17976 echo "${ECHO_T}$GETCONF" >&6; }
17978 { echo "$as_me:$LINENO: result: no" >&5
17979 echo "${ECHO_T}no" >&6; }
17984 if test -z "$ac_cv_prog_GETCONF"; then
17985 ac_ct_GETCONF=$GETCONF
17986 # Extract the first word of "getconf", so it can be a program name with args.
17987 set dummy getconf; ac_word=$2
17988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17990 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17991 echo $ECHO_N "(cached) $ECHO_C" >&6
17993 if test -n "$ac_ct_GETCONF"; then
17994 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17997 for as_dir in $PATH
18000 test -z "$as_dir" && as_dir=.
18001 for ac_exec_ext in '' $ac_executable_extensions; do
18002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18003 ac_cv_prog_ac_ct_GETCONF="getconf"
18004 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18013 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
18014 if test -n "$ac_ct_GETCONF"; then
18015 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
18016 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
18018 { echo "$as_me:$LINENO: result: no" >&5
18019 echo "${ECHO_T}no" >&6; }
18022 if test "x$ac_ct_GETCONF" = x; then
18025 case $cross_compiling:$ac_tool_warned in
18027 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18028 whose name does not start with the host triplet. If you think this
18029 configuration is useful to you, please write to autoconf@gnu.org." >&5
18030 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18031 whose name does not start with the host triplet. If you think this
18032 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18033 ac_tool_warned=yes ;;
18035 GETCONF=$ac_ct_GETCONF
18038 GETCONF="$ac_cv_prog_GETCONF"
18041 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
18042 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
18043 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
18044 echo $ECHO_N "(cached) $ECHO_C" >&6
18046 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
18047 ac_cv_sys_largefile_CFLAGS=no
18049 # IRIX 6.2 and later require cc -n32.
18050 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
18051 if test "$GCC" != yes; then
18052 ac_cv_sys_largefile_CFLAGS=-n32
18055 CC="$CC $ac_cv_sys_largefile_CFLAGS"
18056 cat >conftest.$ac_ext <<_ACEOF
18059 cat confdefs.h >>conftest.$ac_ext
18060 cat >>conftest.$ac_ext <<_ACEOF
18061 /* end confdefs.h. */
18071 rm -f conftest.$ac_objext conftest$ac_exeext
18072 if { (ac_try="$ac_link"
18073 case "(($ac_try" in
18074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18075 *) ac_try_echo=$ac_try;;
18077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18078 (eval "$ac_link") 2>conftest.er1
18080 grep -v '^ *+' conftest.er1 >conftest.err
18082 cat conftest.err >&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } && {
18085 test -z "$ac_c_werror_flag" ||
18086 test ! -s conftest.err
18087 } && test -s conftest$ac_exeext &&
18088 $as_test_x conftest$ac_exeext; then
18091 echo "$as_me: failed program was:" >&5
18092 sed 's/^/| /' conftest.$ac_ext >&5
18094 ac_cv_sys_largefile_CFLAGS=no
18097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18098 conftest$ac_exeext conftest.$ac_ext
18103 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
18104 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
18105 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
18106 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
18107 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
18108 echo $ECHO_N "(cached) $ECHO_C" >&6
18110 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
18111 ac_cv_sys_largefile_LDFLAGS=no
18115 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
18116 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
18117 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
18118 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
18119 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
18120 echo $ECHO_N "(cached) $ECHO_C" >&6
18122 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
18123 ac_cv_sys_largefile_LIBS=no
18127 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
18128 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
18130 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18133 -D_FILE_OFFSET_BITS=*) ;;
18134 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
18135 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
18140 case "$CPPFLAGS" in
18141 '') CPPFLAGS="$ac_flag" ;;
18142 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
18150 '') CFLAGS="$ac_flag" ;;
18151 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
18156 case "$ac_cv_sys_largefile_LDFLAGS" in
18160 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
18161 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
18164 case "$ac_cv_sys_largefile_LIBS" in
18168 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
18169 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
18172 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
18173 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
18174 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18175 echo $ECHO_N "(cached) $ECHO_C" >&6
18177 ac_cv_sys_file_offset_bits=no
18178 ac_cv_sys_file_offset_bits=64
18179 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18181 -D_FILE_OFFSET_BITS)
18182 ac_cv_sys_file_offset_bits=1 ;;
18183 -D_FILE_OFFSET_BITS=*)
18184 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18189 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
18190 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
18191 if test "$ac_cv_sys_file_offset_bits" != no; then
18193 cat >>confdefs.h <<_ACEOF
18194 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
18198 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
18199 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
18200 if test "${ac_cv_sys_largefile_source+set}" = set; then
18201 echo $ECHO_N "(cached) $ECHO_C" >&6
18203 ac_cv_sys_largefile_source=no
18204 ac_cv_sys_largefile_source=1
18205 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18207 -D_LARGEFILE_SOURCE)
18208 ac_cv_sys_largefile_source=1 ;;
18209 -D_LARGEFILE_SOURCE=*)
18210 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18215 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18216 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18217 if test "$ac_cv_sys_largefile_source" != no; then
18219 cat >>confdefs.h <<_ACEOF
18220 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18224 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
18225 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
18226 if test "${ac_cv_sys_large_files+set}" = set; then
18227 echo $ECHO_N "(cached) $ECHO_C" >&6
18229 ac_cv_sys_large_files=no
18230 ac_cv_sys_large_files=1
18231 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
18234 ac_cv_sys_large_files=1 ;;
18236 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
18241 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
18242 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
18243 if test "$ac_cv_sys_large_files" != no; then
18245 cat >>confdefs.h <<_ACEOF
18246 #define _LARGE_FILES $ac_cv_sys_large_files
18254 { echo "$as_me:$LINENO: checking for X" >&5
18255 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
18258 # Check whether --with-x was given.
18259 if test "${with_x+set}" = set; then
18263 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18264 if test "x$with_x" = xno; then
18265 # The user explicitly disabled X.
18268 case $x_includes,$x_libraries in #(
18269 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
18270 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
18271 { (exit 1); exit 1; }; };; #(
18272 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
18273 echo $ECHO_N "(cached) $ECHO_C" >&6
18275 # One or both of the vars are not set, and there is no cached value.
18276 ac_x_includes=no ac_x_libraries=no
18277 rm -f -r conftest.dir
18278 if mkdir conftest.dir; then
18280 cat >Imakefile <<'_ACEOF'
18282 @echo incroot='${INCROOT}'
18284 @echo usrlibdir='${USRLIBDIR}'
18286 @echo libdir='${LIBDIR}'
18288 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18289 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18290 for ac_var in incroot usrlibdir libdir; do
18291 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18293 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18294 for ac_extension in a so sl; do
18295 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18296 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18297 ac_im_usrlibdir=$ac_im_libdir; break
18300 # Screen out bogus values from the imake configuration. They are
18301 # bogus both because they are the default anyway, and because
18302 # using them would break gcc on systems where it needs fixed includes.
18303 case $ac_im_incroot in
18304 /usr/include) ac_x_includes= ;;
18305 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18307 case $ac_im_usrlibdir in
18308 /usr/lib | /lib) ;;
18309 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18313 rm -f -r conftest.dir
18316 # Standard set of common directories for X headers.
18317 # Check X11 before X11Rn because it is often a symlink to the current release.
18329 /usr/local/X11/include
18330 /usr/local/X11R6/include
18331 /usr/local/X11R5/include
18332 /usr/local/X11R4/include
18334 /usr/local/include/X11
18335 /usr/local/include/X11R6
18336 /usr/local/include/X11R5
18337 /usr/local/include/X11R4
18341 /usr/XFree86/include/X11
18345 /usr/unsupported/include
18346 /usr/athena/include
18347 /usr/local/x11r5/include
18348 /usr/lpp/Xamples/include
18350 /usr/openwin/include
18351 /usr/openwin/share/include'
18353 if test "$ac_x_includes" = no; then
18354 # Guess where to find include files, by looking for Xlib.h.
18355 # First, try using that file with no special directory specified.
18356 cat >conftest.$ac_ext <<_ACEOF
18359 cat confdefs.h >>conftest.$ac_ext
18360 cat >>conftest.$ac_ext <<_ACEOF
18361 /* end confdefs.h. */
18362 #include <X11/Xlib.h>
18364 if { (ac_try="$ac_cpp conftest.$ac_ext"
18365 case "(($ac_try" in
18366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367 *) ac_try_echo=$ac_try;;
18369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18372 grep -v '^ *+' conftest.er1 >conftest.err
18374 cat conftest.err >&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); } >/dev/null && {
18377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18378 test ! -s conftest.err
18380 # We can compile using X headers with no special include directory.
18383 echo "$as_me: failed program was:" >&5
18384 sed 's/^/| /' conftest.$ac_ext >&5
18386 for ac_dir in $ac_x_header_dirs; do
18387 if test -r "$ac_dir/X11/Xlib.h"; then
18388 ac_x_includes=$ac_dir
18394 rm -f conftest.err conftest.$ac_ext
18395 fi # $ac_x_includes = no
18397 if test "$ac_x_libraries" = no; then
18398 # Check for the libraries.
18399 # See if we find them without any special options.
18400 # Don't add to $LIBS permanently.
18403 cat >conftest.$ac_ext <<_ACEOF
18406 cat confdefs.h >>conftest.$ac_ext
18407 cat >>conftest.$ac_ext <<_ACEOF
18408 /* end confdefs.h. */
18409 #include <X11/Xlib.h>
18418 rm -f conftest.$ac_objext conftest$ac_exeext
18419 if { (ac_try="$ac_link"
18420 case "(($ac_try" in
18421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422 *) ac_try_echo=$ac_try;;
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425 (eval "$ac_link") 2>conftest.er1
18427 grep -v '^ *+' conftest.er1 >conftest.err
18429 cat conftest.err >&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); } && {
18432 test -z "$ac_c_werror_flag" ||
18433 test ! -s conftest.err
18434 } && test -s conftest$ac_exeext &&
18435 $as_test_x conftest$ac_exeext; then
18437 # We can link X programs with no special library path.
18440 echo "$as_me: failed program was:" >&5
18441 sed 's/^/| /' conftest.$ac_ext >&5
18444 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18446 # Don't even attempt the hair of trying to link an X program!
18447 for ac_extension in a so sl; do
18448 if test -r "$ac_dir/libX11.$ac_extension"; then
18449 ac_x_libraries=$ac_dir
18456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18457 conftest$ac_exeext conftest.$ac_ext
18458 fi # $ac_x_libraries = no
18460 case $ac_x_includes,$ac_x_libraries in #(
18461 no,* | *,no | *\'*)
18462 # Didn't find X, or a directory has "'" in its name.
18463 ac_cv_have_x="have_x=no";; #(
18465 # Record where we found X for the cache.
18466 ac_cv_have_x="have_x=yes\
18467 ac_x_includes='$ac_x_includes'\
18468 ac_x_libraries='$ac_x_libraries'"
18474 eval "$ac_cv_have_x"
18477 if test "$have_x" != yes; then
18478 { echo "$as_me:$LINENO: result: $have_x" >&5
18479 echo "${ECHO_T}$have_x" >&6; }
18482 # If each of the values was on the command line, it overrides each guess.
18483 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18484 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18485 # Update the cache value to reflect the command line values.
18486 ac_cv_have_x="have_x=yes\
18487 ac_x_includes='$x_includes'\
18488 ac_x_libraries='$x_libraries'"
18489 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
18490 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
18493 if test "$no_x" = yes; then
18494 # Not all programs may use this symbol, but it does not hurt to define it.
18496 cat >>confdefs.h <<\_ACEOF
18497 #define X_DISPLAY_MISSING 1
18500 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18502 if test -n "$x_includes"; then
18503 X_CFLAGS="$X_CFLAGS -I$x_includes"
18506 # It would also be nice to do this for all -L options, not just this one.
18507 if test -n "$x_libraries"; then
18508 X_LIBS="$X_LIBS -L$x_libraries"
18509 # For Solaris; some versions of Sun CC require a space after -R and
18510 # others require no space. Words are not sufficient . . . .
18511 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
18512 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
18513 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18514 ac_xsave_c_werror_flag=$ac_c_werror_flag
18515 ac_c_werror_flag=yes
18516 cat >conftest.$ac_ext <<_ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18531 rm -f conftest.$ac_objext conftest$ac_exeext
18532 if { (ac_try="$ac_link"
18533 case "(($ac_try" in
18534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18535 *) ac_try_echo=$ac_try;;
18537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18538 (eval "$ac_link") 2>conftest.er1
18540 grep -v '^ *+' conftest.er1 >conftest.err
18542 cat conftest.err >&5
18543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18544 (exit $ac_status); } && {
18545 test -z "$ac_c_werror_flag" ||
18546 test ! -s conftest.err
18547 } && test -s conftest$ac_exeext &&
18548 $as_test_x conftest$ac_exeext; then
18549 { echo "$as_me:$LINENO: result: no" >&5
18550 echo "${ECHO_T}no" >&6; }
18551 X_LIBS="$X_LIBS -R$x_libraries"
18553 echo "$as_me: failed program was:" >&5
18554 sed 's/^/| /' conftest.$ac_ext >&5
18556 LIBS="$ac_xsave_LIBS -R $x_libraries"
18557 cat >conftest.$ac_ext <<_ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h. */
18572 rm -f conftest.$ac_objext conftest$ac_exeext
18573 if { (ac_try="$ac_link"
18574 case "(($ac_try" in
18575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18576 *) ac_try_echo=$ac_try;;
18578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18579 (eval "$ac_link") 2>conftest.er1
18581 grep -v '^ *+' conftest.er1 >conftest.err
18583 cat conftest.err >&5
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); } && {
18586 test -z "$ac_c_werror_flag" ||
18587 test ! -s conftest.err
18588 } && test -s conftest$ac_exeext &&
18589 $as_test_x conftest$ac_exeext; then
18590 { echo "$as_me:$LINENO: result: yes" >&5
18591 echo "${ECHO_T}yes" >&6; }
18592 X_LIBS="$X_LIBS -R $x_libraries"
18594 echo "$as_me: failed program was:" >&5
18595 sed 's/^/| /' conftest.$ac_ext >&5
18597 { echo "$as_me:$LINENO: result: neither works" >&5
18598 echo "${ECHO_T}neither works" >&6; }
18601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18602 conftest$ac_exeext conftest.$ac_ext
18605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18606 conftest$ac_exeext conftest.$ac_ext
18607 ac_c_werror_flag=$ac_xsave_c_werror_flag
18608 LIBS=$ac_xsave_LIBS
18611 # Check for system-dependent libraries X programs must link with.
18612 # Do this before checking for the system-independent R6 libraries
18613 # (-lICE), since we may need -lsocket or whatever for X linking.
18615 if test "$ISC" = yes; then
18616 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18618 # Martyn Johnson says this is needed for Ultrix, if the X
18619 # libraries were built with DECnet support. And Karl Berry says
18620 # the Alpha needs dnet_stub (dnet does not exist).
18621 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18622 cat >conftest.$ac_ext <<_ACEOF
18625 cat confdefs.h >>conftest.$ac_ext
18626 cat >>conftest.$ac_ext <<_ACEOF
18627 /* end confdefs.h. */
18629 /* Override any GCC internal prototype to avoid an error.
18630 Use char because int might match the return type of a GCC
18631 builtin and then its argument prototype would still apply. */
18635 char XOpenDisplay ();
18639 return XOpenDisplay ();
18644 rm -f conftest.$ac_objext conftest$ac_exeext
18645 if { (ac_try="$ac_link"
18646 case "(($ac_try" in
18647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18648 *) ac_try_echo=$ac_try;;
18650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18651 (eval "$ac_link") 2>conftest.er1
18653 grep -v '^ *+' conftest.er1 >conftest.err
18655 cat conftest.err >&5
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); } && {
18658 test -z "$ac_c_werror_flag" ||
18659 test ! -s conftest.err
18660 } && test -s conftest$ac_exeext &&
18661 $as_test_x conftest$ac_exeext; then
18664 echo "$as_me: failed program was:" >&5
18665 sed 's/^/| /' conftest.$ac_ext >&5
18667 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18668 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
18669 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18670 echo $ECHO_N "(cached) $ECHO_C" >&6
18672 ac_check_lib_save_LIBS=$LIBS
18673 LIBS="-ldnet $LIBS"
18674 cat >conftest.$ac_ext <<_ACEOF
18677 cat confdefs.h >>conftest.$ac_ext
18678 cat >>conftest.$ac_ext <<_ACEOF
18679 /* end confdefs.h. */
18681 /* Override any GCC internal prototype to avoid an error.
18682 Use char because int might match the return type of a GCC
18683 builtin and then its argument prototype would still apply. */
18691 return dnet_ntoa ();
18696 rm -f conftest.$ac_objext conftest$ac_exeext
18697 if { (ac_try="$ac_link"
18698 case "(($ac_try" in
18699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18700 *) ac_try_echo=$ac_try;;
18702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18703 (eval "$ac_link") 2>conftest.er1
18705 grep -v '^ *+' conftest.er1 >conftest.err
18707 cat conftest.err >&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); } && {
18710 test -z "$ac_c_werror_flag" ||
18711 test ! -s conftest.err
18712 } && test -s conftest$ac_exeext &&
18713 $as_test_x conftest$ac_exeext; then
18714 ac_cv_lib_dnet_dnet_ntoa=yes
18716 echo "$as_me: failed program was:" >&5
18717 sed 's/^/| /' conftest.$ac_ext >&5
18719 ac_cv_lib_dnet_dnet_ntoa=no
18722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18723 conftest$ac_exeext conftest.$ac_ext
18724 LIBS=$ac_check_lib_save_LIBS
18726 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18727 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18728 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18729 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18732 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18733 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18734 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
18735 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18736 echo $ECHO_N "(cached) $ECHO_C" >&6
18738 ac_check_lib_save_LIBS=$LIBS
18739 LIBS="-ldnet_stub $LIBS"
18740 cat >conftest.$ac_ext <<_ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h. */
18747 /* Override any GCC internal prototype to avoid an error.
18748 Use char because int might match the return type of a GCC
18749 builtin and then its argument prototype would still apply. */
18757 return dnet_ntoa ();
18762 rm -f conftest.$ac_objext conftest$ac_exeext
18763 if { (ac_try="$ac_link"
18764 case "(($ac_try" in
18765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769 (eval "$ac_link") 2>conftest.er1
18771 grep -v '^ *+' conftest.er1 >conftest.err
18773 cat conftest.err >&5
18774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18775 (exit $ac_status); } && {
18776 test -z "$ac_c_werror_flag" ||
18777 test ! -s conftest.err
18778 } && test -s conftest$ac_exeext &&
18779 $as_test_x conftest$ac_exeext; then
18780 ac_cv_lib_dnet_stub_dnet_ntoa=yes
18782 echo "$as_me: failed program was:" >&5
18783 sed 's/^/| /' conftest.$ac_ext >&5
18785 ac_cv_lib_dnet_stub_dnet_ntoa=no
18788 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18789 conftest$ac_exeext conftest.$ac_ext
18790 LIBS=$ac_check_lib_save_LIBS
18792 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18793 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18794 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18795 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18802 conftest$ac_exeext conftest.$ac_ext
18803 LIBS="$ac_xsave_LIBS"
18805 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18806 # to get the SysV transport functions.
18807 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18809 # The nsl library prevents programs from opening the X display
18810 # on Irix 5.2, according to T.E. Dickey.
18811 # The functions gethostbyname, getservbyname, and inet_addr are
18812 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18813 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
18814 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
18815 if test "${ac_cv_func_gethostbyname+set}" = set; then
18816 echo $ECHO_N "(cached) $ECHO_C" >&6
18818 cat >conftest.$ac_ext <<_ACEOF
18821 cat confdefs.h >>conftest.$ac_ext
18822 cat >>conftest.$ac_ext <<_ACEOF
18823 /* end confdefs.h. */
18824 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18826 #define gethostbyname innocuous_gethostbyname
18828 /* System header to define __stub macros and hopefully few prototypes,
18829 which can conflict with char gethostbyname (); below.
18830 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18831 <limits.h> exists even on freestanding compilers. */
18834 # include <limits.h>
18836 # include <assert.h>
18839 #undef gethostbyname
18841 /* Override any GCC internal prototype to avoid an error.
18842 Use char because int might match the return type of a GCC
18843 builtin and then its argument prototype would still apply. */
18847 char gethostbyname ();
18848 /* The GNU C library defines this for functions which it implements
18849 to always fail with ENOSYS. Some functions are actually named
18850 something starting with __ and the normal name is an alias. */
18851 #if defined __stub_gethostbyname || defined __stub___gethostbyname
18858 return gethostbyname ();
18863 rm -f conftest.$ac_objext conftest$ac_exeext
18864 if { (ac_try="$ac_link"
18865 case "(($ac_try" in
18866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867 *) ac_try_echo=$ac_try;;
18869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18870 (eval "$ac_link") 2>conftest.er1
18872 grep -v '^ *+' conftest.er1 >conftest.err
18874 cat conftest.err >&5
18875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18876 (exit $ac_status); } && {
18877 test -z "$ac_c_werror_flag" ||
18878 test ! -s conftest.err
18879 } && test -s conftest$ac_exeext &&
18880 $as_test_x conftest$ac_exeext; then
18881 ac_cv_func_gethostbyname=yes
18883 echo "$as_me: failed program was:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18886 ac_cv_func_gethostbyname=no
18889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18890 conftest$ac_exeext conftest.$ac_ext
18892 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18893 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
18895 if test $ac_cv_func_gethostbyname = no; then
18896 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18897 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
18898 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18899 echo $ECHO_N "(cached) $ECHO_C" >&6
18901 ac_check_lib_save_LIBS=$LIBS
18903 cat >conftest.$ac_ext <<_ACEOF
18906 cat confdefs.h >>conftest.$ac_ext
18907 cat >>conftest.$ac_ext <<_ACEOF
18908 /* end confdefs.h. */
18910 /* Override any GCC internal prototype to avoid an error.
18911 Use char because int might match the return type of a GCC
18912 builtin and then its argument prototype would still apply. */
18916 char gethostbyname ();
18920 return gethostbyname ();
18925 rm -f conftest.$ac_objext conftest$ac_exeext
18926 if { (ac_try="$ac_link"
18927 case "(($ac_try" in
18928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18929 *) ac_try_echo=$ac_try;;
18931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18932 (eval "$ac_link") 2>conftest.er1
18934 grep -v '^ *+' conftest.er1 >conftest.err
18936 cat conftest.err >&5
18937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18938 (exit $ac_status); } && {
18939 test -z "$ac_c_werror_flag" ||
18940 test ! -s conftest.err
18941 } && test -s conftest$ac_exeext &&
18942 $as_test_x conftest$ac_exeext; then
18943 ac_cv_lib_nsl_gethostbyname=yes
18945 echo "$as_me: failed program was:" >&5
18946 sed 's/^/| /' conftest.$ac_ext >&5
18948 ac_cv_lib_nsl_gethostbyname=no
18951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18952 conftest$ac_exeext conftest.$ac_ext
18953 LIBS=$ac_check_lib_save_LIBS
18955 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18956 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
18957 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18958 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18961 if test $ac_cv_lib_nsl_gethostbyname = no; then
18962 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18963 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
18964 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18965 echo $ECHO_N "(cached) $ECHO_C" >&6
18967 ac_check_lib_save_LIBS=$LIBS
18969 cat >conftest.$ac_ext <<_ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h. */
18976 /* Override any GCC internal prototype to avoid an error.
18977 Use char because int might match the return type of a GCC
18978 builtin and then its argument prototype would still apply. */
18982 char gethostbyname ();
18986 return gethostbyname ();
18991 rm -f conftest.$ac_objext conftest$ac_exeext
18992 if { (ac_try="$ac_link"
18993 case "(($ac_try" in
18994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995 *) ac_try_echo=$ac_try;;
18997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998 (eval "$ac_link") 2>conftest.er1
19000 grep -v '^ *+' conftest.er1 >conftest.err
19002 cat conftest.err >&5
19003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); } && {
19005 test -z "$ac_c_werror_flag" ||
19006 test ! -s conftest.err
19007 } && test -s conftest$ac_exeext &&
19008 $as_test_x conftest$ac_exeext; then
19009 ac_cv_lib_bsd_gethostbyname=yes
19011 echo "$as_me: failed program was:" >&5
19012 sed 's/^/| /' conftest.$ac_ext >&5
19014 ac_cv_lib_bsd_gethostbyname=no
19017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19018 conftest$ac_exeext conftest.$ac_ext
19019 LIBS=$ac_check_lib_save_LIBS
19021 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
19022 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
19023 if test $ac_cv_lib_bsd_gethostbyname = yes; then
19024 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19030 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19031 # socket/setsockopt and other routines are undefined under SCO ODT
19032 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19033 # on later versions), says Simon Leinen: it contains gethostby*
19034 # variants that don't use the name server (or something). -lsocket
19035 # must be given before -lnsl if both are needed. We assume that
19036 # if connect needs -lnsl, so does gethostbyname.
19037 { echo "$as_me:$LINENO: checking for connect" >&5
19038 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
19039 if test "${ac_cv_func_connect+set}" = set; then
19040 echo $ECHO_N "(cached) $ECHO_C" >&6
19042 cat >conftest.$ac_ext <<_ACEOF
19045 cat confdefs.h >>conftest.$ac_ext
19046 cat >>conftest.$ac_ext <<_ACEOF
19047 /* end confdefs.h. */
19048 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
19049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19050 #define connect innocuous_connect
19052 /* System header to define __stub macros and hopefully few prototypes,
19053 which can conflict with char connect (); below.
19054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19055 <limits.h> exists even on freestanding compilers. */
19058 # include <limits.h>
19060 # include <assert.h>
19065 /* Override any GCC internal prototype to avoid an error.
19066 Use char because int might match the return type of a GCC
19067 builtin and then its argument prototype would still apply. */
19072 /* The GNU C library defines this for functions which it implements
19073 to always fail with ENOSYS. Some functions are actually named
19074 something starting with __ and the normal name is an alias. */
19075 #if defined __stub_connect || defined __stub___connect
19087 rm -f conftest.$ac_objext conftest$ac_exeext
19088 if { (ac_try="$ac_link"
19089 case "(($ac_try" in
19090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19091 *) ac_try_echo=$ac_try;;
19093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19094 (eval "$ac_link") 2>conftest.er1
19096 grep -v '^ *+' conftest.er1 >conftest.err
19098 cat conftest.err >&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); } && {
19101 test -z "$ac_c_werror_flag" ||
19102 test ! -s conftest.err
19103 } && test -s conftest$ac_exeext &&
19104 $as_test_x conftest$ac_exeext; then
19105 ac_cv_func_connect=yes
19107 echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.$ac_ext >&5
19110 ac_cv_func_connect=no
19113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19114 conftest$ac_exeext conftest.$ac_ext
19116 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
19117 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
19119 if test $ac_cv_func_connect = no; then
19120 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
19121 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
19122 if test "${ac_cv_lib_socket_connect+set}" = set; then
19123 echo $ECHO_N "(cached) $ECHO_C" >&6
19125 ac_check_lib_save_LIBS=$LIBS
19126 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19127 cat >conftest.$ac_ext <<_ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h. */
19134 /* Override any GCC internal prototype to avoid an error.
19135 Use char because int might match the return type of a GCC
19136 builtin and then its argument prototype would still apply. */
19149 rm -f conftest.$ac_objext conftest$ac_exeext
19150 if { (ac_try="$ac_link"
19151 case "(($ac_try" in
19152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153 *) ac_try_echo=$ac_try;;
19155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156 (eval "$ac_link") 2>conftest.er1
19158 grep -v '^ *+' conftest.er1 >conftest.err
19160 cat conftest.err >&5
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); } && {
19163 test -z "$ac_c_werror_flag" ||
19164 test ! -s conftest.err
19165 } && test -s conftest$ac_exeext &&
19166 $as_test_x conftest$ac_exeext; then
19167 ac_cv_lib_socket_connect=yes
19169 echo "$as_me: failed program was:" >&5
19170 sed 's/^/| /' conftest.$ac_ext >&5
19172 ac_cv_lib_socket_connect=no
19175 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19176 conftest$ac_exeext conftest.$ac_ext
19177 LIBS=$ac_check_lib_save_LIBS
19179 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
19180 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
19181 if test $ac_cv_lib_socket_connect = yes; then
19182 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19187 # Guillermo Gomez says -lposix is necessary on A/UX.
19188 { echo "$as_me:$LINENO: checking for remove" >&5
19189 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
19190 if test "${ac_cv_func_remove+set}" = set; then
19191 echo $ECHO_N "(cached) $ECHO_C" >&6
19193 cat >conftest.$ac_ext <<_ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h. */
19199 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
19200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19201 #define remove innocuous_remove
19203 /* System header to define __stub macros and hopefully few prototypes,
19204 which can conflict with char remove (); below.
19205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19206 <limits.h> exists even on freestanding compilers. */
19209 # include <limits.h>
19211 # include <assert.h>
19216 /* Override any GCC internal prototype to avoid an error.
19217 Use char because int might match the return type of a GCC
19218 builtin and then its argument prototype would still apply. */
19223 /* The GNU C library defines this for functions which it implements
19224 to always fail with ENOSYS. Some functions are actually named
19225 something starting with __ and the normal name is an alias. */
19226 #if defined __stub_remove || defined __stub___remove
19238 rm -f conftest.$ac_objext conftest$ac_exeext
19239 if { (ac_try="$ac_link"
19240 case "(($ac_try" in
19241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242 *) ac_try_echo=$ac_try;;
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245 (eval "$ac_link") 2>conftest.er1
19247 grep -v '^ *+' conftest.er1 >conftest.err
19249 cat conftest.err >&5
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); } && {
19252 test -z "$ac_c_werror_flag" ||
19253 test ! -s conftest.err
19254 } && test -s conftest$ac_exeext &&
19255 $as_test_x conftest$ac_exeext; then
19256 ac_cv_func_remove=yes
19258 echo "$as_me: failed program was:" >&5
19259 sed 's/^/| /' conftest.$ac_ext >&5
19261 ac_cv_func_remove=no
19264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19265 conftest$ac_exeext conftest.$ac_ext
19267 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
19268 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
19270 if test $ac_cv_func_remove = no; then
19271 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
19272 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
19273 if test "${ac_cv_lib_posix_remove+set}" = set; then
19274 echo $ECHO_N "(cached) $ECHO_C" >&6
19276 ac_check_lib_save_LIBS=$LIBS
19277 LIBS="-lposix $LIBS"
19278 cat >conftest.$ac_ext <<_ACEOF
19281 cat confdefs.h >>conftest.$ac_ext
19282 cat >>conftest.$ac_ext <<_ACEOF
19283 /* end confdefs.h. */
19285 /* Override any GCC internal prototype to avoid an error.
19286 Use char because int might match the return type of a GCC
19287 builtin and then its argument prototype would still apply. */
19300 rm -f conftest.$ac_objext conftest$ac_exeext
19301 if { (ac_try="$ac_link"
19302 case "(($ac_try" in
19303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19304 *) ac_try_echo=$ac_try;;
19306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19307 (eval "$ac_link") 2>conftest.er1
19309 grep -v '^ *+' conftest.er1 >conftest.err
19311 cat conftest.err >&5
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); } && {
19314 test -z "$ac_c_werror_flag" ||
19315 test ! -s conftest.err
19316 } && test -s conftest$ac_exeext &&
19317 $as_test_x conftest$ac_exeext; then
19318 ac_cv_lib_posix_remove=yes
19320 echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.$ac_ext >&5
19323 ac_cv_lib_posix_remove=no
19326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19327 conftest$ac_exeext conftest.$ac_ext
19328 LIBS=$ac_check_lib_save_LIBS
19330 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
19331 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
19332 if test $ac_cv_lib_posix_remove = yes; then
19333 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19338 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19339 { echo "$as_me:$LINENO: checking for shmat" >&5
19340 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
19341 if test "${ac_cv_func_shmat+set}" = set; then
19342 echo $ECHO_N "(cached) $ECHO_C" >&6
19344 cat >conftest.$ac_ext <<_ACEOF
19347 cat confdefs.h >>conftest.$ac_ext
19348 cat >>conftest.$ac_ext <<_ACEOF
19349 /* end confdefs.h. */
19350 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
19351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19352 #define shmat innocuous_shmat
19354 /* System header to define __stub macros and hopefully few prototypes,
19355 which can conflict with char shmat (); below.
19356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19357 <limits.h> exists even on freestanding compilers. */
19360 # include <limits.h>
19362 # include <assert.h>
19367 /* Override any GCC internal prototype to avoid an error.
19368 Use char because int might match the return type of a GCC
19369 builtin and then its argument prototype would still apply. */
19374 /* The GNU C library defines this for functions which it implements
19375 to always fail with ENOSYS. Some functions are actually named
19376 something starting with __ and the normal name is an alias. */
19377 #if defined __stub_shmat || defined __stub___shmat
19389 rm -f conftest.$ac_objext conftest$ac_exeext
19390 if { (ac_try="$ac_link"
19391 case "(($ac_try" in
19392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19393 *) ac_try_echo=$ac_try;;
19395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19396 (eval "$ac_link") 2>conftest.er1
19398 grep -v '^ *+' conftest.er1 >conftest.err
19400 cat conftest.err >&5
19401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402 (exit $ac_status); } && {
19403 test -z "$ac_c_werror_flag" ||
19404 test ! -s conftest.err
19405 } && test -s conftest$ac_exeext &&
19406 $as_test_x conftest$ac_exeext; then
19407 ac_cv_func_shmat=yes
19409 echo "$as_me: failed program was:" >&5
19410 sed 's/^/| /' conftest.$ac_ext >&5
19412 ac_cv_func_shmat=no
19415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19416 conftest$ac_exeext conftest.$ac_ext
19418 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
19419 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
19421 if test $ac_cv_func_shmat = no; then
19422 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
19423 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
19424 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
19425 echo $ECHO_N "(cached) $ECHO_C" >&6
19427 ac_check_lib_save_LIBS=$LIBS
19429 cat >conftest.$ac_ext <<_ACEOF
19432 cat confdefs.h >>conftest.$ac_ext
19433 cat >>conftest.$ac_ext <<_ACEOF
19434 /* end confdefs.h. */
19436 /* Override any GCC internal prototype to avoid an error.
19437 Use char because int might match the return type of a GCC
19438 builtin and then its argument prototype would still apply. */
19451 rm -f conftest.$ac_objext conftest$ac_exeext
19452 if { (ac_try="$ac_link"
19453 case "(($ac_try" in
19454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19455 *) ac_try_echo=$ac_try;;
19457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19458 (eval "$ac_link") 2>conftest.er1
19460 grep -v '^ *+' conftest.er1 >conftest.err
19462 cat conftest.err >&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); } && {
19465 test -z "$ac_c_werror_flag" ||
19466 test ! -s conftest.err
19467 } && test -s conftest$ac_exeext &&
19468 $as_test_x conftest$ac_exeext; then
19469 ac_cv_lib_ipc_shmat=yes
19471 echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19474 ac_cv_lib_ipc_shmat=no
19477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19478 conftest$ac_exeext conftest.$ac_ext
19479 LIBS=$ac_check_lib_save_LIBS
19481 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
19482 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
19483 if test $ac_cv_lib_ipc_shmat = yes; then
19484 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19490 # Check for libraries that X11R6 Xt/Xaw programs need.
19491 ac_save_LDFLAGS=$LDFLAGS
19492 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19493 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19494 # check for ICE first), but we must link in the order -lSM -lICE or
19495 # we get undefined symbols. So assume we have SM if we have ICE.
19496 # These have to be linked with before -lX11, unlike the other
19497 # libraries we check for below, so use a different variable.
19498 # John Interrante, Karl Berry
19499 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
19500 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
19501 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
19502 echo $ECHO_N "(cached) $ECHO_C" >&6
19504 ac_check_lib_save_LIBS=$LIBS
19505 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19506 cat >conftest.$ac_ext <<_ACEOF
19509 cat confdefs.h >>conftest.$ac_ext
19510 cat >>conftest.$ac_ext <<_ACEOF
19511 /* end confdefs.h. */
19513 /* Override any GCC internal prototype to avoid an error.
19514 Use char because int might match the return type of a GCC
19515 builtin and then its argument prototype would still apply. */
19519 char IceConnectionNumber ();
19523 return IceConnectionNumber ();
19528 rm -f conftest.$ac_objext conftest$ac_exeext
19529 if { (ac_try="$ac_link"
19530 case "(($ac_try" in
19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532 *) ac_try_echo=$ac_try;;
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535 (eval "$ac_link") 2>conftest.er1
19537 grep -v '^ *+' conftest.er1 >conftest.err
19539 cat conftest.err >&5
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); } && {
19542 test -z "$ac_c_werror_flag" ||
19543 test ! -s conftest.err
19544 } && test -s conftest$ac_exeext &&
19545 $as_test_x conftest$ac_exeext; then
19546 ac_cv_lib_ICE_IceConnectionNumber=yes
19548 echo "$as_me: failed program was:" >&5
19549 sed 's/^/| /' conftest.$ac_ext >&5
19551 ac_cv_lib_ICE_IceConnectionNumber=no
19554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19555 conftest$ac_exeext conftest.$ac_ext
19556 LIBS=$ac_check_lib_save_LIBS
19558 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19559 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19560 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
19561 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19564 LDFLAGS=$ac_save_LDFLAGS
19632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19636 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19637 echo $ECHO_N "(cached) $ECHO_C" >&6
19639 ac_res=`eval echo '${'$as_ac_Header'}'`
19640 { echo "$as_me:$LINENO: result: $ac_res" >&5
19641 echo "${ECHO_T}$ac_res" >&6; }
19643 # Is the header compilable?
19644 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19645 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19646 cat >conftest.$ac_ext <<_ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19652 $ac_includes_default
19653 #include <$ac_header>
19655 rm -f conftest.$ac_objext
19656 if { (ac_try="$ac_compile"
19657 case "(($ac_try" in
19658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19659 *) ac_try_echo=$ac_try;;
19661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19662 (eval "$ac_compile") 2>conftest.er1
19664 grep -v '^ *+' conftest.er1 >conftest.err
19666 cat conftest.err >&5
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); } && {
19669 test -z "$ac_c_werror_flag" ||
19670 test ! -s conftest.err
19671 } && test -s conftest.$ac_objext; then
19672 ac_header_compiler=yes
19674 echo "$as_me: failed program was:" >&5
19675 sed 's/^/| /' conftest.$ac_ext >&5
19677 ac_header_compiler=no
19680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19681 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19682 echo "${ECHO_T}$ac_header_compiler" >&6; }
19684 # Is the header present?
19685 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19686 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19687 cat >conftest.$ac_ext <<_ACEOF
19690 cat confdefs.h >>conftest.$ac_ext
19691 cat >>conftest.$ac_ext <<_ACEOF
19692 /* end confdefs.h. */
19693 #include <$ac_header>
19695 if { (ac_try="$ac_cpp conftest.$ac_ext"
19696 case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19703 grep -v '^ *+' conftest.er1 >conftest.err
19705 cat conftest.err >&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } >/dev/null && {
19708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19709 test ! -s conftest.err
19711 ac_header_preproc=yes
19713 echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19716 ac_header_preproc=no
19719 rm -f conftest.err conftest.$ac_ext
19720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19721 echo "${ECHO_T}$ac_header_preproc" >&6; }
19723 # So? What about this header?
19724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19730 ac_header_preproc=yes
19733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19751 echo $ECHO_N "(cached) $ECHO_C" >&6
19753 eval "$as_ac_Header=\$ac_header_preproc"
19755 ac_res=`eval echo '${'$as_ac_Header'}'`
19756 { echo "$as_me:$LINENO: result: $ac_res" >&5
19757 echo "${ECHO_T}$ac_res" >&6; }
19760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19761 cat >>confdefs.h <<_ACEOF
19762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19769 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19770 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19771 if test "${ac_cv_header_stdc+set}" = set; then
19772 echo $ECHO_N "(cached) $ECHO_C" >&6
19774 cat >conftest.$ac_ext <<_ACEOF
19777 cat confdefs.h >>conftest.$ac_ext
19778 cat >>conftest.$ac_ext <<_ACEOF
19779 /* end confdefs.h. */
19780 #include <stdlib.h>
19781 #include <stdarg.h>
19782 #include <string.h>
19793 rm -f conftest.$ac_objext
19794 if { (ac_try="$ac_compile"
19795 case "(($ac_try" in
19796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797 *) ac_try_echo=$ac_try;;
19799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19800 (eval "$ac_compile") 2>conftest.er1
19802 grep -v '^ *+' conftest.er1 >conftest.err
19804 cat conftest.err >&5
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); } && {
19807 test -z "$ac_c_werror_flag" ||
19808 test ! -s conftest.err
19809 } && test -s conftest.$ac_objext; then
19810 ac_cv_header_stdc=yes
19812 echo "$as_me: failed program was:" >&5
19813 sed 's/^/| /' conftest.$ac_ext >&5
19815 ac_cv_header_stdc=no
19818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19820 if test $ac_cv_header_stdc = yes; then
19821 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19822 cat >conftest.$ac_ext <<_ACEOF
19825 cat confdefs.h >>conftest.$ac_ext
19826 cat >>conftest.$ac_ext <<_ACEOF
19827 /* end confdefs.h. */
19828 #include <string.h>
19831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19832 $EGREP "memchr" >/dev/null 2>&1; then
19835 ac_cv_header_stdc=no
19841 if test $ac_cv_header_stdc = yes; then
19842 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19843 cat >conftest.$ac_ext <<_ACEOF
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h. */
19849 #include <stdlib.h>
19852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19853 $EGREP "free" >/dev/null 2>&1; then
19856 ac_cv_header_stdc=no
19862 if test $ac_cv_header_stdc = yes; then
19863 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19864 if test "$cross_compiling" = yes; then
19867 cat >conftest.$ac_ext <<_ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19874 #include <stdlib.h>
19875 #if ((' ' & 0x0FF) == 0x020)
19876 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19877 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19879 # define ISLOWER(c) \
19880 (('a' <= (c) && (c) <= 'i') \
19881 || ('j' <= (c) && (c) <= 'r') \
19882 || ('s' <= (c) && (c) <= 'z'))
19883 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19886 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19891 for (i = 0; i < 256; i++)
19892 if (XOR (islower (i), ISLOWER (i))
19893 || toupper (i) != TOUPPER (i))
19898 rm -f conftest$ac_exeext
19899 if { (ac_try="$ac_link"
19900 case "(($ac_try" in
19901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905 (eval "$ac_link") 2>&5
19907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19909 { (case "(($ac_try" in
19910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19911 *) ac_try_echo=$ac_try;;
19913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914 (eval "$ac_try") 2>&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); }; }; then
19920 echo "$as_me: program exited with status $ac_status" >&5
19921 echo "$as_me: failed program was:" >&5
19922 sed 's/^/| /' conftest.$ac_ext >&5
19924 ( exit $ac_status )
19925 ac_cv_header_stdc=no
19927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19933 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19934 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19935 if test $ac_cv_header_stdc = yes; then
19937 cat >>confdefs.h <<\_ACEOF
19938 #define STDC_HEADERS 1
19943 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19944 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
19945 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19946 echo $ECHO_N "(cached) $ECHO_C" >&6
19948 cat >conftest.$ac_ext <<_ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h. */
19954 #include <sys/types.h>
19958 return makedev(0, 0);
19963 rm -f conftest.$ac_objext conftest$ac_exeext
19964 if { (ac_try="$ac_link"
19965 case "(($ac_try" in
19966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967 *) ac_try_echo=$ac_try;;
19969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_link") 2>conftest.er1
19972 grep -v '^ *+' conftest.er1 >conftest.err
19974 cat conftest.err >&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); } && {
19977 test -z "$ac_c_werror_flag" ||
19978 test ! -s conftest.err
19979 } && test -s conftest$ac_exeext &&
19980 $as_test_x conftest$ac_exeext; then
19981 ac_cv_header_sys_types_h_makedev=yes
19983 echo "$as_me: failed program was:" >&5
19984 sed 's/^/| /' conftest.$ac_ext >&5
19986 ac_cv_header_sys_types_h_makedev=no
19989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19990 conftest$ac_exeext conftest.$ac_ext
19993 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19994 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
19996 if test $ac_cv_header_sys_types_h_makedev = no; then
19997 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19998 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19999 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20000 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20001 echo $ECHO_N "(cached) $ECHO_C" >&6
20003 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20004 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20006 # Is the header compilable?
20007 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20008 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20009 cat >conftest.$ac_ext <<_ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h. */
20015 $ac_includes_default
20016 #include <sys/mkdev.h>
20018 rm -f conftest.$ac_objext
20019 if { (ac_try="$ac_compile"
20020 case "(($ac_try" in
20021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20022 *) ac_try_echo=$ac_try;;
20024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20025 (eval "$ac_compile") 2>conftest.er1
20027 grep -v '^ *+' conftest.er1 >conftest.err
20029 cat conftest.err >&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } && {
20032 test -z "$ac_c_werror_flag" ||
20033 test ! -s conftest.err
20034 } && test -s conftest.$ac_objext; then
20035 ac_header_compiler=yes
20037 echo "$as_me: failed program was:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20040 ac_header_compiler=no
20043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20045 echo "${ECHO_T}$ac_header_compiler" >&6; }
20047 # Is the header present?
20048 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20049 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20050 cat >conftest.$ac_ext <<_ACEOF
20053 cat confdefs.h >>conftest.$ac_ext
20054 cat >>conftest.$ac_ext <<_ACEOF
20055 /* end confdefs.h. */
20056 #include <sys/mkdev.h>
20058 if { (ac_try="$ac_cpp conftest.$ac_ext"
20059 case "(($ac_try" in
20060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061 *) ac_try_echo=$ac_try;;
20063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20066 grep -v '^ *+' conftest.er1 >conftest.err
20068 cat conftest.err >&5
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } >/dev/null && {
20071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20072 test ! -s conftest.err
20074 ac_header_preproc=yes
20076 echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20079 ac_header_preproc=no
20082 rm -f conftest.err conftest.$ac_ext
20083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20084 echo "${ECHO_T}$ac_header_preproc" >&6; }
20086 # So? What about this header?
20087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20089 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20090 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20091 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20092 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20093 ac_header_preproc=yes
20096 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20097 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20098 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
20099 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
20100 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20101 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20102 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
20103 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
20104 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20105 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20106 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20107 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20111 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20112 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20113 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20116 ac_cv_header_sys_mkdev_h=$ac_header_preproc
20118 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20119 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20122 if test $ac_cv_header_sys_mkdev_h = yes; then
20124 cat >>confdefs.h <<\_ACEOF
20125 #define MAJOR_IN_MKDEV 1
20132 if test $ac_cv_header_sys_mkdev_h = no; then
20133 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20134 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20135 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20136 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20137 echo $ECHO_N "(cached) $ECHO_C" >&6
20139 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20140 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20142 # Is the header compilable?
20143 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20144 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20145 cat >conftest.$ac_ext <<_ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h. */
20151 $ac_includes_default
20152 #include <sys/sysmacros.h>
20154 rm -f conftest.$ac_objext
20155 if { (ac_try="$ac_compile"
20156 case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161 (eval "$ac_compile") 2>conftest.er1
20163 grep -v '^ *+' conftest.er1 >conftest.err
20165 cat conftest.err >&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); } && {
20168 test -z "$ac_c_werror_flag" ||
20169 test ! -s conftest.err
20170 } && test -s conftest.$ac_objext; then
20171 ac_header_compiler=yes
20173 echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20176 ac_header_compiler=no
20179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20180 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20181 echo "${ECHO_T}$ac_header_compiler" >&6; }
20183 # Is the header present?
20184 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20185 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20186 cat >conftest.$ac_ext <<_ACEOF
20189 cat confdefs.h >>conftest.$ac_ext
20190 cat >>conftest.$ac_ext <<_ACEOF
20191 /* end confdefs.h. */
20192 #include <sys/sysmacros.h>
20194 if { (ac_try="$ac_cpp conftest.$ac_ext"
20195 case "(($ac_try" in
20196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197 *) ac_try_echo=$ac_try;;
20199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20202 grep -v '^ *+' conftest.er1 >conftest.err
20204 cat conftest.err >&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); } >/dev/null && {
20207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20208 test ! -s conftest.err
20210 ac_header_preproc=yes
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20215 ac_header_preproc=no
20218 rm -f conftest.err conftest.$ac_ext
20219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20220 echo "${ECHO_T}$ac_header_preproc" >&6; }
20222 # So? What about this header?
20223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20225 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20226 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20227 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20228 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20229 ac_header_preproc=yes
20232 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20233 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20234 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
20235 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
20236 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20237 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20238 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
20239 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
20240 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20241 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20242 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20243 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20247 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20248 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20249 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20250 echo $ECHO_N "(cached) $ECHO_C" >&6
20252 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20254 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20255 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20258 if test $ac_cv_header_sys_sysmacros_h = yes; then
20260 cat >>confdefs.h <<\_ACEOF
20261 #define MAJOR_IN_SYSMACROS 1
20275 ac_header_dirent=no
20276 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20277 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20278 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20279 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
20280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20281 echo $ECHO_N "(cached) $ECHO_C" >&6
20283 cat >conftest.$ac_ext <<_ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20289 #include <sys/types.h>
20301 rm -f conftest.$ac_objext
20302 if { (ac_try="$ac_compile"
20303 case "(($ac_try" in
20304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20305 *) ac_try_echo=$ac_try;;
20307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20308 (eval "$ac_compile") 2>conftest.er1
20310 grep -v '^ *+' conftest.er1 >conftest.err
20312 cat conftest.err >&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); } && {
20315 test -z "$ac_c_werror_flag" ||
20316 test ! -s conftest.err
20317 } && test -s conftest.$ac_objext; then
20318 eval "$as_ac_Header=yes"
20320 echo "$as_me: failed program was:" >&5
20321 sed 's/^/| /' conftest.$ac_ext >&5
20323 eval "$as_ac_Header=no"
20326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20328 ac_res=`eval echo '${'$as_ac_Header'}'`
20329 { echo "$as_me:$LINENO: result: $ac_res" >&5
20330 echo "${ECHO_T}$ac_res" >&6; }
20331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20332 cat >>confdefs.h <<_ACEOF
20333 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20336 ac_header_dirent=$ac_hdr; break
20340 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20341 if test $ac_header_dirent = dirent.h; then
20342 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20343 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20344 if test "${ac_cv_search_opendir+set}" = set; then
20345 echo $ECHO_N "(cached) $ECHO_C" >&6
20347 ac_func_search_save_LIBS=$LIBS
20348 cat >conftest.$ac_ext <<_ACEOF
20351 cat confdefs.h >>conftest.$ac_ext
20352 cat >>conftest.$ac_ext <<_ACEOF
20353 /* end confdefs.h. */
20355 /* Override any GCC internal prototype to avoid an error.
20356 Use char because int might match the return type of a GCC
20357 builtin and then its argument prototype would still apply. */
20370 for ac_lib in '' dir; do
20371 if test -z "$ac_lib"; then
20372 ac_res="none required"
20375 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20377 rm -f conftest.$ac_objext conftest$ac_exeext
20378 if { (ac_try="$ac_link"
20379 case "(($ac_try" in
20380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20381 *) ac_try_echo=$ac_try;;
20383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20384 (eval "$ac_link") 2>conftest.er1
20386 grep -v '^ *+' conftest.er1 >conftest.err
20388 cat conftest.err >&5
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); } && {
20391 test -z "$ac_c_werror_flag" ||
20392 test ! -s conftest.err
20393 } && test -s conftest$ac_exeext &&
20394 $as_test_x conftest$ac_exeext; then
20395 ac_cv_search_opendir=$ac_res
20397 echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.$ac_ext >&5
20403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20405 if test "${ac_cv_search_opendir+set}" = set; then
20409 if test "${ac_cv_search_opendir+set}" = set; then
20412 ac_cv_search_opendir=no
20414 rm conftest.$ac_ext
20415 LIBS=$ac_func_search_save_LIBS
20417 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20418 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20419 ac_res=$ac_cv_search_opendir
20420 if test "$ac_res" != no; then
20421 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20426 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
20427 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
20428 if test "${ac_cv_search_opendir+set}" = set; then
20429 echo $ECHO_N "(cached) $ECHO_C" >&6
20431 ac_func_search_save_LIBS=$LIBS
20432 cat >conftest.$ac_ext <<_ACEOF
20435 cat confdefs.h >>conftest.$ac_ext
20436 cat >>conftest.$ac_ext <<_ACEOF
20437 /* end confdefs.h. */
20439 /* Override any GCC internal prototype to avoid an error.
20440 Use char because int might match the return type of a GCC
20441 builtin and then its argument prototype would still apply. */
20454 for ac_lib in '' x; do
20455 if test -z "$ac_lib"; then
20456 ac_res="none required"
20459 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20461 rm -f conftest.$ac_objext conftest$ac_exeext
20462 if { (ac_try="$ac_link"
20463 case "(($ac_try" in
20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465 *) ac_try_echo=$ac_try;;
20467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20468 (eval "$ac_link") 2>conftest.er1
20470 grep -v '^ *+' conftest.er1 >conftest.err
20472 cat conftest.err >&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); } && {
20475 test -z "$ac_c_werror_flag" ||
20476 test ! -s conftest.err
20477 } && test -s conftest$ac_exeext &&
20478 $as_test_x conftest$ac_exeext; then
20479 ac_cv_search_opendir=$ac_res
20481 echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20489 if test "${ac_cv_search_opendir+set}" = set; then
20493 if test "${ac_cv_search_opendir+set}" = set; then
20496 ac_cv_search_opendir=no
20498 rm conftest.$ac_ext
20499 LIBS=$ac_func_search_save_LIBS
20501 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20502 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
20503 ac_res=$ac_cv_search_opendir
20504 if test "$ac_res" != no; then
20505 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20511 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
20512 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
20513 if test "${ac_cv_header_stat_broken+set}" = set; then
20514 echo $ECHO_N "(cached) $ECHO_C" >&6
20516 cat >conftest.$ac_ext <<_ACEOF
20519 cat confdefs.h >>conftest.$ac_ext
20520 cat >>conftest.$ac_ext <<_ACEOF
20521 /* end confdefs.h. */
20522 #include <sys/types.h>
20523 #include <sys/stat.h>
20525 #if defined S_ISBLK && defined S_IFDIR
20526 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20529 #if defined S_ISBLK && defined S_IFCHR
20530 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20533 #if defined S_ISLNK && defined S_IFREG
20534 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20537 #if defined S_ISSOCK && defined S_IFREG
20538 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20542 rm -f conftest.$ac_objext
20543 if { (ac_try="$ac_compile"
20544 case "(($ac_try" in
20545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546 *) ac_try_echo=$ac_try;;
20548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20549 (eval "$ac_compile") 2>conftest.er1
20551 grep -v '^ *+' conftest.er1 >conftest.err
20553 cat conftest.err >&5
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); } && {
20556 test -z "$ac_c_werror_flag" ||
20557 test ! -s conftest.err
20558 } && test -s conftest.$ac_objext; then
20559 ac_cv_header_stat_broken=no
20561 echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20564 ac_cv_header_stat_broken=yes
20567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20569 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
20570 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
20571 if test $ac_cv_header_stat_broken = yes; then
20573 cat >>confdefs.h <<\_ACEOF
20574 #define STAT_MACROS_BROKEN 1
20579 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20580 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20581 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20582 echo $ECHO_N "(cached) $ECHO_C" >&6
20584 cat >conftest.$ac_ext <<_ACEOF
20587 cat confdefs.h >>conftest.$ac_ext
20588 cat >>conftest.$ac_ext <<_ACEOF
20589 /* end confdefs.h. */
20590 #include <sys/types.h>
20591 #include <sys/wait.h>
20592 #ifndef WEXITSTATUS
20593 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20596 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20604 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20609 rm -f conftest.$ac_objext
20610 if { (ac_try="$ac_compile"
20611 case "(($ac_try" in
20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613 *) ac_try_echo=$ac_try;;
20615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20616 (eval "$ac_compile") 2>conftest.er1
20618 grep -v '^ *+' conftest.er1 >conftest.err
20620 cat conftest.err >&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } && {
20623 test -z "$ac_c_werror_flag" ||
20624 test ! -s conftest.err
20625 } && test -s conftest.$ac_objext; then
20626 ac_cv_header_sys_wait_h=yes
20628 echo "$as_me: failed program was:" >&5
20629 sed 's/^/| /' conftest.$ac_ext >&5
20631 ac_cv_header_sys_wait_h=no
20634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20636 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20637 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20638 if test $ac_cv_header_sys_wait_h = yes; then
20640 cat >>confdefs.h <<\_ACEOF
20641 #define HAVE_SYS_WAIT_H 1
20646 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20647 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20648 if test "${ac_cv_header_time+set}" = set; then
20649 echo $ECHO_N "(cached) $ECHO_C" >&6
20651 cat >conftest.$ac_ext <<_ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h. */
20657 #include <sys/types.h>
20658 #include <sys/time.h>
20664 if ((struct tm *) 0)
20670 rm -f conftest.$ac_objext
20671 if { (ac_try="$ac_compile"
20672 case "(($ac_try" in
20673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20674 *) ac_try_echo=$ac_try;;
20676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20677 (eval "$ac_compile") 2>conftest.er1
20679 grep -v '^ *+' conftest.er1 >conftest.err
20681 cat conftest.err >&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); } && {
20684 test -z "$ac_c_werror_flag" ||
20685 test ! -s conftest.err
20686 } && test -s conftest.$ac_objext; then
20687 ac_cv_header_time=yes
20689 echo "$as_me: failed program was:" >&5
20690 sed 's/^/| /' conftest.$ac_ext >&5
20692 ac_cv_header_time=no
20695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20697 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20698 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20699 if test $ac_cv_header_time = yes; then
20701 cat >>confdefs.h <<\_ACEOF
20702 #define TIME_WITH_SYS_TIME 1
20707 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20708 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20709 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20710 echo $ECHO_N "(cached) $ECHO_C" >&6
20712 cat >conftest.$ac_ext <<_ACEOF
20715 cat confdefs.h >>conftest.$ac_ext
20716 cat >>conftest.$ac_ext <<_ACEOF
20717 /* end confdefs.h. */
20718 $ac_includes_default
20722 static struct stat ac_aggr;
20723 if (ac_aggr.st_blksize)
20729 rm -f conftest.$ac_objext
20730 if { (ac_try="$ac_compile"
20731 case "(($ac_try" in
20732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733 *) ac_try_echo=$ac_try;;
20735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20736 (eval "$ac_compile") 2>conftest.er1
20738 grep -v '^ *+' conftest.er1 >conftest.err
20740 cat conftest.err >&5
20741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20742 (exit $ac_status); } && {
20743 test -z "$ac_c_werror_flag" ||
20744 test ! -s conftest.err
20745 } && test -s conftest.$ac_objext; then
20746 ac_cv_member_struct_stat_st_blksize=yes
20748 echo "$as_me: failed program was:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20751 cat >conftest.$ac_ext <<_ACEOF
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h. */
20757 $ac_includes_default
20761 static struct stat ac_aggr;
20762 if (sizeof ac_aggr.st_blksize)
20768 rm -f conftest.$ac_objext
20769 if { (ac_try="$ac_compile"
20770 case "(($ac_try" in
20771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20772 *) ac_try_echo=$ac_try;;
20774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20775 (eval "$ac_compile") 2>conftest.er1
20777 grep -v '^ *+' conftest.er1 >conftest.err
20779 cat conftest.err >&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); } && {
20782 test -z "$ac_c_werror_flag" ||
20783 test ! -s conftest.err
20784 } && test -s conftest.$ac_objext; then
20785 ac_cv_member_struct_stat_st_blksize=yes
20787 echo "$as_me: failed program was:" >&5
20788 sed 's/^/| /' conftest.$ac_ext >&5
20790 ac_cv_member_struct_stat_st_blksize=no
20793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20798 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20799 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20800 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20802 cat >>confdefs.h <<_ACEOF
20803 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20807 cat >>confdefs.h <<\_ACEOF
20808 #define HAVE_ST_BLKSIZE 1
20814 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20815 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20816 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20819 cat >conftest.$ac_ext <<_ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h. */
20825 $ac_includes_default
20829 static struct stat ac_aggr;
20830 if (ac_aggr.st_blocks)
20836 rm -f conftest.$ac_objext
20837 if { (ac_try="$ac_compile"
20838 case "(($ac_try" in
20839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840 *) ac_try_echo=$ac_try;;
20842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20843 (eval "$ac_compile") 2>conftest.er1
20845 grep -v '^ *+' conftest.er1 >conftest.err
20847 cat conftest.err >&5
20848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20849 (exit $ac_status); } && {
20850 test -z "$ac_c_werror_flag" ||
20851 test ! -s conftest.err
20852 } && test -s conftest.$ac_objext; then
20853 ac_cv_member_struct_stat_st_blocks=yes
20855 echo "$as_me: failed program was:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20858 cat >conftest.$ac_ext <<_ACEOF
20861 cat confdefs.h >>conftest.$ac_ext
20862 cat >>conftest.$ac_ext <<_ACEOF
20863 /* end confdefs.h. */
20864 $ac_includes_default
20868 static struct stat ac_aggr;
20869 if (sizeof ac_aggr.st_blocks)
20875 rm -f conftest.$ac_objext
20876 if { (ac_try="$ac_compile"
20877 case "(($ac_try" in
20878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20879 *) ac_try_echo=$ac_try;;
20881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20882 (eval "$ac_compile") 2>conftest.er1
20884 grep -v '^ *+' conftest.er1 >conftest.err
20886 cat conftest.err >&5
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); } && {
20889 test -z "$ac_c_werror_flag" ||
20890 test ! -s conftest.err
20891 } && test -s conftest.$ac_objext; then
20892 ac_cv_member_struct_stat_st_blocks=yes
20894 echo "$as_me: failed program was:" >&5
20895 sed 's/^/| /' conftest.$ac_ext >&5
20897 ac_cv_member_struct_stat_st_blocks=no
20900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20905 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20906 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20907 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20909 cat >>confdefs.h <<_ACEOF
20910 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20914 cat >>confdefs.h <<\_ACEOF
20915 #define HAVE_ST_BLOCKS 1
20919 case " $LIBOBJS " in
20920 *" fileblocks.$ac_objext "* ) ;;
20921 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20928 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20929 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20930 if test "${ac_cv_struct_tm+set}" = set; then
20931 echo $ECHO_N "(cached) $ECHO_C" >&6
20933 cat >conftest.$ac_ext <<_ACEOF
20936 cat confdefs.h >>conftest.$ac_ext
20937 cat >>conftest.$ac_ext <<_ACEOF
20938 /* end confdefs.h. */
20939 #include <sys/types.h>
20946 int *p = &tm.tm_sec;
20952 rm -f conftest.$ac_objext
20953 if { (ac_try="$ac_compile"
20954 case "(($ac_try" in
20955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20956 *) ac_try_echo=$ac_try;;
20958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20959 (eval "$ac_compile") 2>conftest.er1
20961 grep -v '^ *+' conftest.er1 >conftest.err
20963 cat conftest.err >&5
20964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20965 (exit $ac_status); } && {
20966 test -z "$ac_c_werror_flag" ||
20967 test ! -s conftest.err
20968 } && test -s conftest.$ac_objext; then
20969 ac_cv_struct_tm=time.h
20971 echo "$as_me: failed program was:" >&5
20972 sed 's/^/| /' conftest.$ac_ext >&5
20974 ac_cv_struct_tm=sys/time.h
20977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20979 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20980 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20981 if test $ac_cv_struct_tm = sys/time.h; then
20983 cat >>confdefs.h <<\_ACEOF
20984 #define TM_IN_SYS_TIME 1
20989 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20990 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
20991 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20992 echo $ECHO_N "(cached) $ECHO_C" >&6
20994 cat >conftest.$ac_ext <<_ACEOF
20997 cat confdefs.h >>conftest.$ac_ext
20998 cat >>conftest.$ac_ext <<_ACEOF
20999 /* end confdefs.h. */
21000 #include <sys/types.h>
21001 #include <$ac_cv_struct_tm>
21007 static struct tm ac_aggr;
21008 if (ac_aggr.tm_zone)
21014 rm -f conftest.$ac_objext
21015 if { (ac_try="$ac_compile"
21016 case "(($ac_try" in
21017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018 *) ac_try_echo=$ac_try;;
21020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021 (eval "$ac_compile") 2>conftest.er1
21023 grep -v '^ *+' conftest.er1 >conftest.err
21025 cat conftest.err >&5
21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21027 (exit $ac_status); } && {
21028 test -z "$ac_c_werror_flag" ||
21029 test ! -s conftest.err
21030 } && test -s conftest.$ac_objext; then
21031 ac_cv_member_struct_tm_tm_zone=yes
21033 echo "$as_me: failed program was:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21036 cat >conftest.$ac_ext <<_ACEOF
21039 cat confdefs.h >>conftest.$ac_ext
21040 cat >>conftest.$ac_ext <<_ACEOF
21041 /* end confdefs.h. */
21042 #include <sys/types.h>
21043 #include <$ac_cv_struct_tm>
21049 static struct tm ac_aggr;
21050 if (sizeof ac_aggr.tm_zone)
21056 rm -f conftest.$ac_objext
21057 if { (ac_try="$ac_compile"
21058 case "(($ac_try" in
21059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21060 *) ac_try_echo=$ac_try;;
21062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21063 (eval "$ac_compile") 2>conftest.er1
21065 grep -v '^ *+' conftest.er1 >conftest.err
21067 cat conftest.err >&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); } && {
21070 test -z "$ac_c_werror_flag" ||
21071 test ! -s conftest.err
21072 } && test -s conftest.$ac_objext; then
21073 ac_cv_member_struct_tm_tm_zone=yes
21075 echo "$as_me: failed program was:" >&5
21076 sed 's/^/| /' conftest.$ac_ext >&5
21078 ac_cv_member_struct_tm_tm_zone=no
21081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21086 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
21087 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
21088 if test $ac_cv_member_struct_tm_tm_zone = yes; then
21090 cat >>confdefs.h <<_ACEOF
21091 #define HAVE_STRUCT_TM_TM_ZONE 1
21097 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21099 cat >>confdefs.h <<\_ACEOF
21100 #define HAVE_TM_ZONE 1
21104 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
21105 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
21106 if test "${ac_cv_have_decl_tzname+set}" = set; then
21107 echo $ECHO_N "(cached) $ECHO_C" >&6
21109 cat >conftest.$ac_ext <<_ACEOF
21112 cat confdefs.h >>conftest.$ac_ext
21113 cat >>conftest.$ac_ext <<_ACEOF
21114 /* end confdefs.h. */
21128 rm -f conftest.$ac_objext
21129 if { (ac_try="$ac_compile"
21130 case "(($ac_try" in
21131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132 *) ac_try_echo=$ac_try;;
21134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21135 (eval "$ac_compile") 2>conftest.er1
21137 grep -v '^ *+' conftest.er1 >conftest.err
21139 cat conftest.err >&5
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); } && {
21142 test -z "$ac_c_werror_flag" ||
21143 test ! -s conftest.err
21144 } && test -s conftest.$ac_objext; then
21145 ac_cv_have_decl_tzname=yes
21147 echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.$ac_ext >&5
21150 ac_cv_have_decl_tzname=no
21153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21155 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21156 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21157 if test $ac_cv_have_decl_tzname = yes; then
21159 cat >>confdefs.h <<_ACEOF
21160 #define HAVE_DECL_TZNAME 1
21165 cat >>confdefs.h <<_ACEOF
21166 #define HAVE_DECL_TZNAME 0
21173 { echo "$as_me:$LINENO: checking for tzname" >&5
21174 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21175 if test "${ac_cv_var_tzname+set}" = set; then
21176 echo $ECHO_N "(cached) $ECHO_C" >&6
21178 cat >conftest.$ac_ext <<_ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21185 #if !HAVE_DECL_TZNAME
21186 extern char *tzname[];
21192 return tzname[0][0];
21197 rm -f conftest.$ac_objext conftest$ac_exeext
21198 if { (ac_try="$ac_link"
21199 case "(($ac_try" in
21200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21201 *) ac_try_echo=$ac_try;;
21203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21204 (eval "$ac_link") 2>conftest.er1
21206 grep -v '^ *+' conftest.er1 >conftest.err
21208 cat conftest.err >&5
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); } && {
21211 test -z "$ac_c_werror_flag" ||
21212 test ! -s conftest.err
21213 } && test -s conftest$ac_exeext &&
21214 $as_test_x conftest$ac_exeext; then
21215 ac_cv_var_tzname=yes
21217 echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21220 ac_cv_var_tzname=no
21223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21224 conftest$ac_exeext conftest.$ac_ext
21226 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21227 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21228 if test $ac_cv_var_tzname = yes; then
21230 cat >>confdefs.h <<\_ACEOF
21231 #define HAVE_TZNAME 1
21238 { echo "$as_me:$LINENO: checking for utime.h" >&5
21239 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
21240 if test "${ba_cv_header_utime_h+set}" = set; then
21241 echo $ECHO_N "(cached) $ECHO_C" >&6
21243 cat >conftest.$ac_ext <<_ACEOF
21246 cat confdefs.h >>conftest.$ac_ext
21247 cat >>conftest.$ac_ext <<_ACEOF
21248 /* end confdefs.h. */
21250 #include <sys/types.h>
21260 rm -f conftest.$ac_objext
21261 if { (ac_try="$ac_compile"
21262 case "(($ac_try" in
21263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264 *) ac_try_echo=$ac_try;;
21266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21267 (eval "$ac_compile") 2>conftest.er1
21269 grep -v '^ *+' conftest.er1 >conftest.err
21271 cat conftest.err >&5
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); } && {
21274 test -z "$ac_c_werror_flag" ||
21275 test ! -s conftest.err
21276 } && test -s conftest.$ac_objext; then
21277 ba_cv_header_utime_h=yes
21279 echo "$as_me: failed program was:" >&5
21280 sed 's/^/| /' conftest.$ac_ext >&5
21282 ba_cv_header_utime_h=no
21285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21287 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
21288 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
21289 test $ba_cv_header_utime_h = yes &&
21290 cat >>confdefs.h <<\_ACEOF
21291 #define HAVE_UTIME_H 1
21295 { echo "$as_me:$LINENO: checking for socklen_t" >&5
21296 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
21297 if test "${ba_cv_header_socklen_t+set}" = set; then
21298 echo $ECHO_N "(cached) $ECHO_C" >&6
21300 cat >conftest.$ac_ext <<_ACEOF
21303 cat confdefs.h >>conftest.$ac_ext
21304 cat >>conftest.$ac_ext <<_ACEOF
21305 /* end confdefs.h. */
21307 #include <sys/types.h>
21308 #include <sys/socket.h>
21317 rm -f conftest.$ac_objext
21318 if { (ac_try="$ac_compile"
21319 case "(($ac_try" in
21320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21321 *) ac_try_echo=$ac_try;;
21323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21324 (eval "$ac_compile") 2>conftest.er1
21326 grep -v '^ *+' conftest.er1 >conftest.err
21328 cat conftest.err >&5
21329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21330 (exit $ac_status); } && {
21331 test -z "$ac_c_werror_flag" ||
21332 test ! -s conftest.err
21333 } && test -s conftest.$ac_objext; then
21334 ba_cv_header_socklen_t=yes
21336 echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21339 ba_cv_header_socklen_t=no
21342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21344 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
21345 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
21346 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
21347 #define HAVE_SOCKLEN_T 1
21351 { echo "$as_me:$LINENO: checking for bigendian" >&5
21352 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
21353 if test "${ba_cv_bigendian+set}" = set; then
21354 echo $ECHO_N "(cached) $ECHO_C" >&6
21356 if test "$cross_compiling" = yes; then
21359 cat >conftest.$ac_ext <<_ACEOF
21362 cat confdefs.h >>conftest.$ac_ext
21363 cat >>conftest.$ac_ext <<_ACEOF
21364 /* end confdefs.h. */
21365 main(){long a=1L; char *p=(char *)&a; exit(*p);}
21367 rm -f conftest$ac_exeext
21368 if { (ac_try="$ac_link"
21369 case "(($ac_try" in
21370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371 *) ac_try_echo=$ac_try;;
21373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374 (eval "$ac_link") 2>&5
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21378 { (case "(($ac_try" in
21379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380 *) ac_try_echo=$ac_try;;
21382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21383 (eval "$ac_try") 2>&5
21385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21386 (exit $ac_status); }; }; then
21387 ba_cv_bigendian=yes
21389 echo "$as_me: program exited with status $ac_status" >&5
21390 echo "$as_me: failed program was:" >&5
21391 sed 's/^/| /' conftest.$ac_ext >&5
21393 ( exit $ac_status )
21396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21401 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
21402 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
21403 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
21404 #define HAVE_BIGENDIAN 1
21409 ac_cpp='$CXXCPP $CPPFLAGS'
21410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21415 { echo "$as_me:$LINENO: checking for typeof" >&5
21416 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
21417 if test "${ba_cv_have_typeof+set}" = set; then
21418 echo $ECHO_N "(cached) $ECHO_C" >&6
21420 if test "$cross_compiling" = yes; then
21421 ba_cv_have_typeof=no
21423 cat >conftest.$ac_ext <<_ACEOF
21426 cat confdefs.h >>conftest.$ac_ext
21427 cat >>conftest.$ac_ext <<_ACEOF
21428 /* end confdefs.h. */
21429 main(){char *a = 0; a = (typeof a)a;}
21431 rm -f conftest$ac_exeext
21432 if { (ac_try="$ac_link"
21433 case "(($ac_try" in
21434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21435 *) ac_try_echo=$ac_try;;
21437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21438 (eval "$ac_link") 2>&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21442 { (case "(($ac_try" in
21443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21444 *) ac_try_echo=$ac_try;;
21446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21447 (eval "$ac_try") 2>&5
21449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21450 (exit $ac_status); }; }; then
21451 ba_cv_have_typeof=yes
21453 echo "$as_me: program exited with status $ac_status" >&5
21454 echo "$as_me: failed program was:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21457 ( exit $ac_status )
21458 ba_cv_have_typeof=no
21460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21465 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
21466 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
21467 test $ba_cv_have_typeof = yes &&
21468 cat >>confdefs.h <<\_ACEOF
21469 #define HAVE_TYPEOF 1
21473 ac_cpp='$CPP $CPPFLAGS'
21474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21479 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21480 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21481 if test "${ac_cv_c_const+set}" = set; then
21482 echo $ECHO_N "(cached) $ECHO_C" >&6
21484 cat >conftest.$ac_ext <<_ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h. */
21494 /* FIXME: Include the comments suggested by Paul. */
21495 #ifndef __cplusplus
21496 /* Ultrix mips cc rejects this. */
21497 typedef int charset[2];
21499 /* SunOS 4.1.1 cc rejects this. */
21500 char const *const *pcpcc;
21502 /* NEC SVR4.0.2 mips cc rejects this. */
21503 struct point {int x, y;};
21504 static struct point const zero = {0,0};
21505 /* AIX XL C 1.02.0.0 rejects this.
21506 It does not let you subtract one const X* pointer from another in
21507 an arm of an if-expression whose if-part is not a constant
21509 const char *g = "string";
21510 pcpcc = &g + (g ? g-g : 0);
21511 /* HPUX 7.0 cc rejects these. */
21513 ppc = (char**) pcpcc;
21514 pcpcc = (char const *const *) ppc;
21515 { /* SCO 3.2v4 cc rejects this. */
21517 char const *s = 0 ? (char *) 0 : (char const *) 0;
21522 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21523 int x[] = {25, 17};
21524 const int *foo = &x[0];
21527 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21528 typedef const int *iptr;
21532 { /* AIX XL C 1.02.0.0 rejects this saying
21533 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21534 struct s { int j; const int *ap[3]; };
21535 struct s *b; b->j = 5;
21537 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21538 const int foo = 10;
21539 if (!foo) return 0;
21541 return !cs[0] && !zero.x;
21548 rm -f conftest.$ac_objext
21549 if { (ac_try="$ac_compile"
21550 case "(($ac_try" in
21551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21552 *) ac_try_echo=$ac_try;;
21554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21555 (eval "$ac_compile") 2>conftest.er1
21557 grep -v '^ *+' conftest.er1 >conftest.err
21559 cat conftest.err >&5
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); } && {
21562 test -z "$ac_c_werror_flag" ||
21563 test ! -s conftest.err
21564 } && test -s conftest.$ac_objext; then
21567 echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21575 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21576 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21577 if test $ac_cv_c_const = no; then
21579 cat >>confdefs.h <<\_ACEOF
21587 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
21588 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
21590 # The order of these tests is important.
21591 cat >conftest.$ac_ext <<_ACEOF
21594 cat confdefs.h >>conftest.$ac_ext
21595 cat >>conftest.$ac_ext <<_ACEOF
21596 /* end confdefs.h. */
21597 #include <sys/statvfs.h>
21598 #include <sys/fstyp.h>
21600 if { (ac_try="$ac_cpp conftest.$ac_ext"
21601 case "(($ac_try" in
21602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21603 *) ac_try_echo=$ac_try;;
21605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21608 grep -v '^ *+' conftest.er1 >conftest.err
21610 cat conftest.err >&5
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); } >/dev/null && {
21613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21614 test ! -s conftest.err
21616 cat >>confdefs.h <<\_ACEOF
21617 #define FSTYPE_STATVFS 1
21621 echo "$as_me: failed program was:" >&5
21622 sed 's/^/| /' conftest.$ac_ext >&5
21627 rm -f conftest.err conftest.$ac_ext
21628 if test $fstype = no; then
21629 cat >conftest.$ac_ext <<_ACEOF
21632 cat confdefs.h >>conftest.$ac_ext
21633 cat >>conftest.$ac_ext <<_ACEOF
21634 /* end confdefs.h. */
21635 #include <sys/statfs.h>
21636 #include <sys/fstyp.h>
21638 if { (ac_try="$ac_cpp conftest.$ac_ext"
21639 case "(($ac_try" in
21640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21641 *) ac_try_echo=$ac_try;;
21643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21646 grep -v '^ *+' conftest.er1 >conftest.err
21648 cat conftest.err >&5
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); } >/dev/null && {
21651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21652 test ! -s conftest.err
21654 cat >>confdefs.h <<\_ACEOF
21655 #define FSTYPE_USG_STATFS 1
21659 echo "$as_me: failed program was:" >&5
21660 sed 's/^/| /' conftest.$ac_ext >&5
21665 rm -f conftest.err conftest.$ac_ext
21667 if test $fstype = no; then
21668 cat >conftest.$ac_ext <<_ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h. */
21674 #include <sys/statfs.h>
21675 #include <sys/vmount.h>
21677 if { (ac_try="$ac_cpp conftest.$ac_ext"
21678 case "(($ac_try" in
21679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21680 *) ac_try_echo=$ac_try;;
21682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21685 grep -v '^ *+' conftest.er1 >conftest.err
21687 cat conftest.err >&5
21688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); } >/dev/null && {
21690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21691 test ! -s conftest.err
21693 cat >>confdefs.h <<\_ACEOF
21694 #define FSTYPE_AIX_STATFS 1
21698 echo "$as_me: failed program was:" >&5
21699 sed 's/^/| /' conftest.$ac_ext >&5
21704 rm -f conftest.err conftest.$ac_ext
21706 if test $fstype = no; then
21707 cat >conftest.$ac_ext <<_ACEOF
21710 cat confdefs.h >>conftest.$ac_ext
21711 cat >>conftest.$ac_ext <<_ACEOF
21712 /* end confdefs.h. */
21713 #include <mntent.h>
21715 if { (ac_try="$ac_cpp conftest.$ac_ext"
21716 case "(($ac_try" in
21717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21718 *) ac_try_echo=$ac_try;;
21720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21723 grep -v '^ *+' conftest.er1 >conftest.err
21725 cat conftest.err >&5
21726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); } >/dev/null && {
21728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21729 test ! -s conftest.err
21731 cat >>confdefs.h <<\_ACEOF
21732 #define FSTYPE_MNTENT 1
21736 echo "$as_me: failed program was:" >&5
21737 sed 's/^/| /' conftest.$ac_ext >&5
21742 rm -f conftest.err conftest.$ac_ext
21744 if test $fstype = no; then
21745 cat >conftest.$ac_ext <<_ACEOF
21748 cat confdefs.h >>conftest.$ac_ext
21749 cat >>conftest.$ac_ext <<_ACEOF
21750 /* end confdefs.h. */
21751 #include <sys/mount.h>
21754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21755 $EGREP "f_type;" >/dev/null 2>&1; then
21756 cat >>confdefs.h <<\_ACEOF
21757 #define FSTYPE_STATFS 1
21764 if test $fstype = no; then
21765 cat >conftest.$ac_ext <<_ACEOF
21768 cat confdefs.h >>conftest.$ac_ext
21769 cat >>conftest.$ac_ext <<_ACEOF
21770 /* end confdefs.h. */
21771 #include <sys/mount.h>
21772 #include <sys/fs_types.h>
21774 if { (ac_try="$ac_cpp conftest.$ac_ext"
21775 case "(($ac_try" in
21776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21777 *) ac_try_echo=$ac_try;;
21779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21782 grep -v '^ *+' conftest.er1 >conftest.err
21784 cat conftest.err >&5
21785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21786 (exit $ac_status); } >/dev/null && {
21787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21788 test ! -s conftest.err
21790 cat >>confdefs.h <<\_ACEOF
21791 #define FSTYPE_GETMNT 1
21795 echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21801 rm -f conftest.err conftest.$ac_ext
21803 { echo "$as_me:$LINENO: result: $fstype" >&5
21804 echo "${ECHO_T}$fstype" >&6; }
21806 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21807 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21808 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
21809 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21810 echo $ECHO_N "(cached) $ECHO_C" >&6
21812 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21813 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
21815 # Is the header compilable?
21816 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21817 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
21818 cat >conftest.$ac_ext <<_ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h. */
21824 $ac_includes_default
21825 #include <sys/statvfs.h>
21827 rm -f conftest.$ac_objext
21828 if { (ac_try="$ac_compile"
21829 case "(($ac_try" in
21830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21831 *) ac_try_echo=$ac_try;;
21833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21834 (eval "$ac_compile") 2>conftest.er1
21836 grep -v '^ *+' conftest.er1 >conftest.err
21838 cat conftest.err >&5
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); } && {
21841 test -z "$ac_c_werror_flag" ||
21842 test ! -s conftest.err
21843 } && test -s conftest.$ac_objext; then
21844 ac_header_compiler=yes
21846 echo "$as_me: failed program was:" >&5
21847 sed 's/^/| /' conftest.$ac_ext >&5
21849 ac_header_compiler=no
21852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21854 echo "${ECHO_T}$ac_header_compiler" >&6; }
21856 # Is the header present?
21857 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21858 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
21859 cat >conftest.$ac_ext <<_ACEOF
21862 cat confdefs.h >>conftest.$ac_ext
21863 cat >>conftest.$ac_ext <<_ACEOF
21864 /* end confdefs.h. */
21865 #include <sys/statvfs.h>
21867 if { (ac_try="$ac_cpp conftest.$ac_ext"
21868 case "(($ac_try" in
21869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21870 *) ac_try_echo=$ac_try;;
21872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21875 grep -v '^ *+' conftest.er1 >conftest.err
21877 cat conftest.err >&5
21878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21879 (exit $ac_status); } >/dev/null && {
21880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21881 test ! -s conftest.err
21883 ac_header_preproc=yes
21885 echo "$as_me: failed program was:" >&5
21886 sed 's/^/| /' conftest.$ac_ext >&5
21888 ac_header_preproc=no
21891 rm -f conftest.err conftest.$ac_ext
21892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21893 echo "${ECHO_T}$ac_header_preproc" >&6; }
21895 # So? What about this header?
21896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21898 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21899 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21900 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21901 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21902 ac_header_preproc=yes
21905 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21906 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21907 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
21908 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
21909 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21910 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21911 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
21912 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21913 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21914 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21915 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21916 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21920 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21921 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
21922 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21923 echo $ECHO_N "(cached) $ECHO_C" >&6
21925 ac_cv_header_sys_statvfs_h=$ac_header_preproc
21927 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21928 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
21931 if test $ac_cv_header_sys_statvfs_h = yes; then
21933 cat >>confdefs.h <<\_ACEOF
21934 #define HAVE_SYS_STATVFS_H 1
21941 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21942 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
21943 if test "${ac_cv_type_signal+set}" = set; then
21944 echo $ECHO_N "(cached) $ECHO_C" >&6
21946 cat >conftest.$ac_ext <<_ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h. */
21952 #include <sys/types.h>
21953 #include <signal.h>
21958 return *(signal (0, 0)) (0) == 1;
21963 rm -f conftest.$ac_objext
21964 if { (ac_try="$ac_compile"
21965 case "(($ac_try" in
21966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21967 *) ac_try_echo=$ac_try;;
21969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21970 (eval "$ac_compile") 2>conftest.er1
21972 grep -v '^ *+' conftest.er1 >conftest.err
21974 cat conftest.err >&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); } && {
21977 test -z "$ac_c_werror_flag" ||
21978 test ! -s conftest.err
21979 } && test -s conftest.$ac_objext; then
21980 ac_cv_type_signal=int
21982 echo "$as_me: failed program was:" >&5
21983 sed 's/^/| /' conftest.$ac_ext >&5
21985 ac_cv_type_signal=void
21988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21990 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21991 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
21993 cat >>confdefs.h <<_ACEOF
21994 #define RETSIGTYPE $ac_cv_type_signal
21999 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
22000 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
22001 if test "${bash_cv_signal_vintage+set}" = set; then
22002 echo $ECHO_N "(cached) $ECHO_C" >&6
22005 cat >conftest.$ac_ext <<_ACEOF
22008 cat confdefs.h >>conftest.$ac_ext
22009 cat >>conftest.$ac_ext <<_ACEOF
22010 /* end confdefs.h. */
22011 #include <signal.h>
22017 struct sigaction sa;
22018 sigemptyset(&ss); sigsuspend(&ss);
22019 sigaction(SIGINT, &sa, (struct sigaction *) 0);
22020 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
22026 rm -f conftest.$ac_objext conftest$ac_exeext
22027 if { (ac_try="$ac_link"
22028 case "(($ac_try" in
22029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22030 *) ac_try_echo=$ac_try;;
22032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22033 (eval "$ac_link") 2>conftest.er1
22035 grep -v '^ *+' conftest.er1 >conftest.err
22037 cat conftest.err >&5
22038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22039 (exit $ac_status); } && {
22040 test -z "$ac_c_werror_flag" ||
22041 test ! -s conftest.err
22042 } && test -s conftest$ac_exeext &&
22043 $as_test_x conftest$ac_exeext; then
22044 bash_cv_signal_vintage="posix"
22046 echo "$as_me: failed program was:" >&5
22047 sed 's/^/| /' conftest.$ac_ext >&5
22050 cat >conftest.$ac_ext <<_ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h. */
22056 #include <signal.h>
22061 int mask = sigmask(SIGINT);
22062 sigsetmask(mask); sigblock(mask); sigpause(mask);
22068 rm -f conftest.$ac_objext conftest$ac_exeext
22069 if { (ac_try="$ac_link"
22070 case "(($ac_try" in
22071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22072 *) ac_try_echo=$ac_try;;
22074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22075 (eval "$ac_link") 2>conftest.er1
22077 grep -v '^ *+' conftest.er1 >conftest.err
22079 cat conftest.err >&5
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); } && {
22082 test -z "$ac_c_werror_flag" ||
22083 test ! -s conftest.err
22084 } && test -s conftest$ac_exeext &&
22085 $as_test_x conftest$ac_exeext; then
22086 bash_cv_signal_vintage="4.2bsd"
22088 echo "$as_me: failed program was:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22092 cat >conftest.$ac_ext <<_ACEOF
22095 cat confdefs.h >>conftest.$ac_ext
22096 cat >>conftest.$ac_ext <<_ACEOF
22097 /* end confdefs.h. */
22099 #include <signal.h>
22100 RETSIGTYPE foo() { }
22105 int mask = sigmask(SIGINT);
22106 sigset(SIGINT, foo); sigrelse(SIGINT);
22107 sighold(SIGINT); sigpause(SIGINT);
22113 rm -f conftest.$ac_objext conftest$ac_exeext
22114 if { (ac_try="$ac_link"
22115 case "(($ac_try" in
22116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117 *) ac_try_echo=$ac_try;;
22119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22120 (eval "$ac_link") 2>conftest.er1
22122 grep -v '^ *+' conftest.er1 >conftest.err
22124 cat conftest.err >&5
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); } && {
22127 test -z "$ac_c_werror_flag" ||
22128 test ! -s conftest.err
22129 } && test -s conftest$ac_exeext &&
22130 $as_test_x conftest$ac_exeext; then
22131 bash_cv_signal_vintage="svr3"
22133 echo "$as_me: failed program was:" >&5
22134 sed 's/^/| /' conftest.$ac_ext >&5
22136 bash_cv_signal_vintage="v7"
22140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22141 conftest$ac_exeext conftest.$ac_ext
22145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22146 conftest$ac_exeext conftest.$ac_ext
22150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22151 conftest$ac_exeext conftest.$ac_ext
22155 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
22156 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
22157 if test "$bash_cv_signal_vintage" = "posix"; then
22158 cat >>confdefs.h <<\_ACEOF
22159 #define HAVE_POSIX_SIGNALS 1
22162 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
22163 cat >>confdefs.h <<\_ACEOF
22164 #define HAVE_BSD_SIGNALS 1
22167 elif test "$bash_cv_signal_vintage" = "svr3"; then
22168 cat >>confdefs.h <<\_ACEOF
22169 #define HAVE_USG_SIGHOLD 1
22174 { echo "$as_me:$LINENO: checking for mode_t" >&5
22175 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
22176 if test "${ac_cv_type_mode_t+set}" = set; then
22177 echo $ECHO_N "(cached) $ECHO_C" >&6
22179 cat >conftest.$ac_ext <<_ACEOF
22182 cat confdefs.h >>conftest.$ac_ext
22183 cat >>conftest.$ac_ext <<_ACEOF
22184 /* end confdefs.h. */
22185 $ac_includes_default
22186 typedef mode_t ac__type_new_;
22190 if ((ac__type_new_ *) 0)
22192 if (sizeof (ac__type_new_))
22198 rm -f conftest.$ac_objext
22199 if { (ac_try="$ac_compile"
22200 case "(($ac_try" in
22201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22202 *) ac_try_echo=$ac_try;;
22204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22205 (eval "$ac_compile") 2>conftest.er1
22207 grep -v '^ *+' conftest.er1 >conftest.err
22209 cat conftest.err >&5
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); } && {
22212 test -z "$ac_c_werror_flag" ||
22213 test ! -s conftest.err
22214 } && test -s conftest.$ac_objext; then
22215 ac_cv_type_mode_t=yes
22217 echo "$as_me: failed program was:" >&5
22218 sed 's/^/| /' conftest.$ac_ext >&5
22220 ac_cv_type_mode_t=no
22223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22225 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
22226 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
22227 if test $ac_cv_type_mode_t = yes; then
22231 cat >>confdefs.h <<_ACEOF
22237 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22238 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
22239 if test "${ac_cv_type_uid_t+set}" = set; then
22240 echo $ECHO_N "(cached) $ECHO_C" >&6
22242 cat >conftest.$ac_ext <<_ACEOF
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h. */
22248 #include <sys/types.h>
22251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22252 $EGREP "uid_t" >/dev/null 2>&1; then
22253 ac_cv_type_uid_t=yes
22255 ac_cv_type_uid_t=no
22260 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22261 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
22262 if test $ac_cv_type_uid_t = no; then
22264 cat >>confdefs.h <<\_ACEOF
22269 cat >>confdefs.h <<\_ACEOF
22275 { echo "$as_me:$LINENO: checking for size_t" >&5
22276 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22277 if test "${ac_cv_type_size_t+set}" = set; then
22278 echo $ECHO_N "(cached) $ECHO_C" >&6
22280 cat >conftest.$ac_ext <<_ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h. */
22286 $ac_includes_default
22287 typedef size_t ac__type_new_;
22291 if ((ac__type_new_ *) 0)
22293 if (sizeof (ac__type_new_))
22299 rm -f conftest.$ac_objext
22300 if { (ac_try="$ac_compile"
22301 case "(($ac_try" in
22302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22303 *) ac_try_echo=$ac_try;;
22305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22306 (eval "$ac_compile") 2>conftest.er1
22308 grep -v '^ *+' conftest.er1 >conftest.err
22310 cat conftest.err >&5
22311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22312 (exit $ac_status); } && {
22313 test -z "$ac_c_werror_flag" ||
22314 test ! -s conftest.err
22315 } && test -s conftest.$ac_objext; then
22316 ac_cv_type_size_t=yes
22318 echo "$as_me: failed program was:" >&5
22319 sed 's/^/| /' conftest.$ac_ext >&5
22321 ac_cv_type_size_t=no
22324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22326 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22327 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22328 if test $ac_cv_type_size_t = yes; then
22332 cat >>confdefs.h <<_ACEOF
22333 #define size_t unsigned int
22338 { echo "$as_me:$LINENO: checking for pid_t" >&5
22339 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22340 if test "${ac_cv_type_pid_t+set}" = set; then
22341 echo $ECHO_N "(cached) $ECHO_C" >&6
22343 cat >conftest.$ac_ext <<_ACEOF
22346 cat confdefs.h >>conftest.$ac_ext
22347 cat >>conftest.$ac_ext <<_ACEOF
22348 /* end confdefs.h. */
22349 $ac_includes_default
22350 typedef pid_t ac__type_new_;
22354 if ((ac__type_new_ *) 0)
22356 if (sizeof (ac__type_new_))
22362 rm -f conftest.$ac_objext
22363 if { (ac_try="$ac_compile"
22364 case "(($ac_try" in
22365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22366 *) ac_try_echo=$ac_try;;
22368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22369 (eval "$ac_compile") 2>conftest.er1
22371 grep -v '^ *+' conftest.er1 >conftest.err
22373 cat conftest.err >&5
22374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22375 (exit $ac_status); } && {
22376 test -z "$ac_c_werror_flag" ||
22377 test ! -s conftest.err
22378 } && test -s conftest.$ac_objext; then
22379 ac_cv_type_pid_t=yes
22381 echo "$as_me: failed program was:" >&5
22382 sed 's/^/| /' conftest.$ac_ext >&5
22384 ac_cv_type_pid_t=no
22387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22389 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22390 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22391 if test $ac_cv_type_pid_t = yes; then
22395 cat >>confdefs.h <<_ACEOF
22401 { echo "$as_me:$LINENO: checking for off_t" >&5
22402 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22403 if test "${ac_cv_type_off_t+set}" = set; then
22404 echo $ECHO_N "(cached) $ECHO_C" >&6
22406 cat >conftest.$ac_ext <<_ACEOF
22409 cat confdefs.h >>conftest.$ac_ext
22410 cat >>conftest.$ac_ext <<_ACEOF
22411 /* end confdefs.h. */
22412 $ac_includes_default
22413 typedef off_t ac__type_new_;
22417 if ((ac__type_new_ *) 0)
22419 if (sizeof (ac__type_new_))
22425 rm -f conftest.$ac_objext
22426 if { (ac_try="$ac_compile"
22427 case "(($ac_try" in
22428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22429 *) ac_try_echo=$ac_try;;
22431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22432 (eval "$ac_compile") 2>conftest.er1
22434 grep -v '^ *+' conftest.er1 >conftest.err
22436 cat conftest.err >&5
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); } && {
22439 test -z "$ac_c_werror_flag" ||
22440 test ! -s conftest.err
22441 } && test -s conftest.$ac_objext; then
22442 ac_cv_type_off_t=yes
22444 echo "$as_me: failed program was:" >&5
22445 sed 's/^/| /' conftest.$ac_ext >&5
22447 ac_cv_type_off_t=no
22450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22452 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22453 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22454 if test $ac_cv_type_off_t = yes; then
22458 cat >>confdefs.h <<_ACEOF
22459 #define off_t long int
22464 { echo "$as_me:$LINENO: checking for ino_t" >&5
22465 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
22466 if test "${ac_cv_type_ino_t+set}" = set; then
22467 echo $ECHO_N "(cached) $ECHO_C" >&6
22469 cat >conftest.$ac_ext <<_ACEOF
22472 cat confdefs.h >>conftest.$ac_ext
22473 cat >>conftest.$ac_ext <<_ACEOF
22474 /* end confdefs.h. */
22475 $ac_includes_default
22476 typedef ino_t ac__type_new_;
22480 if ((ac__type_new_ *) 0)
22482 if (sizeof (ac__type_new_))
22488 rm -f conftest.$ac_objext
22489 if { (ac_try="$ac_compile"
22490 case "(($ac_try" in
22491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22492 *) ac_try_echo=$ac_try;;
22494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22495 (eval "$ac_compile") 2>conftest.er1
22497 grep -v '^ *+' conftest.er1 >conftest.err
22499 cat conftest.err >&5
22500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22501 (exit $ac_status); } && {
22502 test -z "$ac_c_werror_flag" ||
22503 test ! -s conftest.err
22504 } && test -s conftest.$ac_objext; then
22505 ac_cv_type_ino_t=yes
22507 echo "$as_me: failed program was:" >&5
22508 sed 's/^/| /' conftest.$ac_ext >&5
22510 ac_cv_type_ino_t=no
22513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22515 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
22516 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
22517 if test $ac_cv_type_ino_t = yes; then
22521 cat >>confdefs.h <<_ACEOF
22522 #define ino_t unsigned long
22527 { echo "$as_me:$LINENO: checking for dev_t" >&5
22528 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
22529 if test "${ac_cv_type_dev_t+set}" = set; then
22530 echo $ECHO_N "(cached) $ECHO_C" >&6
22532 cat >conftest.$ac_ext <<_ACEOF
22535 cat confdefs.h >>conftest.$ac_ext
22536 cat >>conftest.$ac_ext <<_ACEOF
22537 /* end confdefs.h. */
22538 $ac_includes_default
22539 typedef dev_t ac__type_new_;
22543 if ((ac__type_new_ *) 0)
22545 if (sizeof (ac__type_new_))
22551 rm -f conftest.$ac_objext
22552 if { (ac_try="$ac_compile"
22553 case "(($ac_try" in
22554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22555 *) ac_try_echo=$ac_try;;
22557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22558 (eval "$ac_compile") 2>conftest.er1
22560 grep -v '^ *+' conftest.er1 >conftest.err
22562 cat conftest.err >&5
22563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22564 (exit $ac_status); } && {
22565 test -z "$ac_c_werror_flag" ||
22566 test ! -s conftest.err
22567 } && test -s conftest.$ac_objext; then
22568 ac_cv_type_dev_t=yes
22570 echo "$as_me: failed program was:" >&5
22571 sed 's/^/| /' conftest.$ac_ext >&5
22573 ac_cv_type_dev_t=no
22576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22578 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
22579 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
22580 if test $ac_cv_type_dev_t = yes; then
22584 cat >>confdefs.h <<_ACEOF
22585 #define dev_t unsigned long
22590 { echo "$as_me:$LINENO: checking for daddr_t" >&5
22591 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
22592 if test "${ac_cv_type_daddr_t+set}" = set; then
22593 echo $ECHO_N "(cached) $ECHO_C" >&6
22595 cat >conftest.$ac_ext <<_ACEOF
22598 cat confdefs.h >>conftest.$ac_ext
22599 cat >>conftest.$ac_ext <<_ACEOF
22600 /* end confdefs.h. */
22601 $ac_includes_default
22602 typedef daddr_t ac__type_new_;
22606 if ((ac__type_new_ *) 0)
22608 if (sizeof (ac__type_new_))
22614 rm -f conftest.$ac_objext
22615 if { (ac_try="$ac_compile"
22616 case "(($ac_try" in
22617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22618 *) ac_try_echo=$ac_try;;
22620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22621 (eval "$ac_compile") 2>conftest.er1
22623 grep -v '^ *+' conftest.er1 >conftest.err
22625 cat conftest.err >&5
22626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22627 (exit $ac_status); } && {
22628 test -z "$ac_c_werror_flag" ||
22629 test ! -s conftest.err
22630 } && test -s conftest.$ac_objext; then
22631 ac_cv_type_daddr_t=yes
22633 echo "$as_me: failed program was:" >&5
22634 sed 's/^/| /' conftest.$ac_ext >&5
22636 ac_cv_type_daddr_t=no
22639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22641 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22642 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22643 if test $ac_cv_type_daddr_t = yes; then
22647 cat >>confdefs.h <<_ACEOF
22648 #define daddr_t long
22653 { echo "$as_me:$LINENO: checking for major_t" >&5
22654 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22655 if test "${ac_cv_type_major_t+set}" = set; then
22656 echo $ECHO_N "(cached) $ECHO_C" >&6
22658 cat >conftest.$ac_ext <<_ACEOF
22661 cat confdefs.h >>conftest.$ac_ext
22662 cat >>conftest.$ac_ext <<_ACEOF
22663 /* end confdefs.h. */
22664 $ac_includes_default
22665 typedef major_t ac__type_new_;
22669 if ((ac__type_new_ *) 0)
22671 if (sizeof (ac__type_new_))
22677 rm -f conftest.$ac_objext
22678 if { (ac_try="$ac_compile"
22679 case "(($ac_try" in
22680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22681 *) ac_try_echo=$ac_try;;
22683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22684 (eval "$ac_compile") 2>conftest.er1
22686 grep -v '^ *+' conftest.er1 >conftest.err
22688 cat conftest.err >&5
22689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22690 (exit $ac_status); } && {
22691 test -z "$ac_c_werror_flag" ||
22692 test ! -s conftest.err
22693 } && test -s conftest.$ac_objext; then
22694 ac_cv_type_major_t=yes
22696 echo "$as_me: failed program was:" >&5
22697 sed 's/^/| /' conftest.$ac_ext >&5
22699 ac_cv_type_major_t=no
22702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22704 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22705 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
22706 if test $ac_cv_type_major_t = yes; then
22710 cat >>confdefs.h <<_ACEOF
22711 #define major_t int
22716 { echo "$as_me:$LINENO: checking for minor_t" >&5
22717 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
22718 if test "${ac_cv_type_minor_t+set}" = set; then
22719 echo $ECHO_N "(cached) $ECHO_C" >&6
22721 cat >conftest.$ac_ext <<_ACEOF
22724 cat confdefs.h >>conftest.$ac_ext
22725 cat >>conftest.$ac_ext <<_ACEOF
22726 /* end confdefs.h. */
22727 $ac_includes_default
22728 typedef minor_t ac__type_new_;
22732 if ((ac__type_new_ *) 0)
22734 if (sizeof (ac__type_new_))
22740 rm -f conftest.$ac_objext
22741 if { (ac_try="$ac_compile"
22742 case "(($ac_try" in
22743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22744 *) ac_try_echo=$ac_try;;
22746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22747 (eval "$ac_compile") 2>conftest.er1
22749 grep -v '^ *+' conftest.er1 >conftest.err
22751 cat conftest.err >&5
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); } && {
22754 test -z "$ac_c_werror_flag" ||
22755 test ! -s conftest.err
22756 } && test -s conftest.$ac_objext; then
22757 ac_cv_type_minor_t=yes
22759 echo "$as_me: failed program was:" >&5
22760 sed 's/^/| /' conftest.$ac_ext >&5
22762 ac_cv_type_minor_t=no
22765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22767 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22768 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
22769 if test $ac_cv_type_minor_t = yes; then
22773 cat >>confdefs.h <<_ACEOF
22774 #define minor_t int
22779 { echo "$as_me:$LINENO: checking for ssize_t" >&5
22780 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
22781 if test "${ac_cv_type_ssize_t+set}" = set; then
22782 echo $ECHO_N "(cached) $ECHO_C" >&6
22784 cat >conftest.$ac_ext <<_ACEOF
22787 cat confdefs.h >>conftest.$ac_ext
22788 cat >>conftest.$ac_ext <<_ACEOF
22789 /* end confdefs.h. */
22790 $ac_includes_default
22791 typedef ssize_t ac__type_new_;
22795 if ((ac__type_new_ *) 0)
22797 if (sizeof (ac__type_new_))
22803 rm -f conftest.$ac_objext
22804 if { (ac_try="$ac_compile"
22805 case "(($ac_try" in
22806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22807 *) ac_try_echo=$ac_try;;
22809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22810 (eval "$ac_compile") 2>conftest.er1
22812 grep -v '^ *+' conftest.er1 >conftest.err
22814 cat conftest.err >&5
22815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816 (exit $ac_status); } && {
22817 test -z "$ac_c_werror_flag" ||
22818 test ! -s conftest.err
22819 } && test -s conftest.$ac_objext; then
22820 ac_cv_type_ssize_t=yes
22822 echo "$as_me: failed program was:" >&5
22823 sed 's/^/| /' conftest.$ac_ext >&5
22825 ac_cv_type_ssize_t=no
22828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22830 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22831 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
22832 if test $ac_cv_type_ssize_t = yes; then
22836 cat >>confdefs.h <<_ACEOF
22837 #define ssize_t int
22842 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22843 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22844 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22845 echo $ECHO_N "(cached) $ECHO_C" >&6
22847 cat >conftest.$ac_ext <<_ACEOF
22850 cat confdefs.h >>conftest.$ac_ext
22851 cat >>conftest.$ac_ext <<_ACEOF
22852 /* end confdefs.h. */
22853 $ac_includes_default
22857 static struct stat ac_aggr;
22858 if (ac_aggr.st_blocks)
22864 rm -f conftest.$ac_objext
22865 if { (ac_try="$ac_compile"
22866 case "(($ac_try" in
22867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22868 *) ac_try_echo=$ac_try;;
22870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22871 (eval "$ac_compile") 2>conftest.er1
22873 grep -v '^ *+' conftest.er1 >conftest.err
22875 cat conftest.err >&5
22876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877 (exit $ac_status); } && {
22878 test -z "$ac_c_werror_flag" ||
22879 test ! -s conftest.err
22880 } && test -s conftest.$ac_objext; then
22881 ac_cv_member_struct_stat_st_blocks=yes
22883 echo "$as_me: failed program was:" >&5
22884 sed 's/^/| /' conftest.$ac_ext >&5
22886 cat >conftest.$ac_ext <<_ACEOF
22889 cat confdefs.h >>conftest.$ac_ext
22890 cat >>conftest.$ac_ext <<_ACEOF
22891 /* end confdefs.h. */
22892 $ac_includes_default
22896 static struct stat ac_aggr;
22897 if (sizeof ac_aggr.st_blocks)
22903 rm -f conftest.$ac_objext
22904 if { (ac_try="$ac_compile"
22905 case "(($ac_try" in
22906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22907 *) ac_try_echo=$ac_try;;
22909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22910 (eval "$ac_compile") 2>conftest.er1
22912 grep -v '^ *+' conftest.er1 >conftest.err
22914 cat conftest.err >&5
22915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22916 (exit $ac_status); } && {
22917 test -z "$ac_c_werror_flag" ||
22918 test ! -s conftest.err
22919 } && test -s conftest.$ac_objext; then
22920 ac_cv_member_struct_stat_st_blocks=yes
22922 echo "$as_me: failed program was:" >&5
22923 sed 's/^/| /' conftest.$ac_ext >&5
22925 ac_cv_member_struct_stat_st_blocks=no
22928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22933 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22934 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22935 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22937 cat >>confdefs.h <<_ACEOF
22938 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22942 cat >>confdefs.h <<\_ACEOF
22943 #define HAVE_ST_BLOCKS 1
22947 case " $LIBOBJS " in
22948 *" fileblocks.$ac_objext "* ) ;;
22949 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22956 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22957 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
22958 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22959 echo $ECHO_N "(cached) $ECHO_C" >&6
22961 cat >conftest.$ac_ext <<_ACEOF
22964 cat confdefs.h >>conftest.$ac_ext
22965 cat >>conftest.$ac_ext <<_ACEOF
22966 /* end confdefs.h. */
22967 $ac_includes_default
22971 static struct stat ac_aggr;
22972 if (ac_aggr.st_rdev)
22978 rm -f conftest.$ac_objext
22979 if { (ac_try="$ac_compile"
22980 case "(($ac_try" in
22981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22982 *) ac_try_echo=$ac_try;;
22984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22985 (eval "$ac_compile") 2>conftest.er1
22987 grep -v '^ *+' conftest.er1 >conftest.err
22989 cat conftest.err >&5
22990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22991 (exit $ac_status); } && {
22992 test -z "$ac_c_werror_flag" ||
22993 test ! -s conftest.err
22994 } && test -s conftest.$ac_objext; then
22995 ac_cv_member_struct_stat_st_rdev=yes
22997 echo "$as_me: failed program was:" >&5
22998 sed 's/^/| /' conftest.$ac_ext >&5
23000 cat >conftest.$ac_ext <<_ACEOF
23003 cat confdefs.h >>conftest.$ac_ext
23004 cat >>conftest.$ac_ext <<_ACEOF
23005 /* end confdefs.h. */
23006 $ac_includes_default
23010 static struct stat ac_aggr;
23011 if (sizeof ac_aggr.st_rdev)
23017 rm -f conftest.$ac_objext
23018 if { (ac_try="$ac_compile"
23019 case "(($ac_try" in
23020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23021 *) ac_try_echo=$ac_try;;
23023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23024 (eval "$ac_compile") 2>conftest.er1
23026 grep -v '^ *+' conftest.er1 >conftest.err
23028 cat conftest.err >&5
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); } && {
23031 test -z "$ac_c_werror_flag" ||
23032 test ! -s conftest.err
23033 } && test -s conftest.$ac_objext; then
23034 ac_cv_member_struct_stat_st_rdev=yes
23036 echo "$as_me: failed program was:" >&5
23037 sed 's/^/| /' conftest.$ac_ext >&5
23039 ac_cv_member_struct_stat_st_rdev=no
23042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23047 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
23048 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
23049 if test $ac_cv_member_struct_stat_st_rdev = yes; then
23051 cat >>confdefs.h <<_ACEOF
23052 #define HAVE_STRUCT_STAT_ST_RDEV 1
23056 cat >>confdefs.h <<\_ACEOF
23057 #define HAVE_ST_RDEV 1
23063 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
23064 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
23065 if test "${ac_cv_struct_tm+set}" = set; then
23066 echo $ECHO_N "(cached) $ECHO_C" >&6
23068 cat >conftest.$ac_ext <<_ACEOF
23071 cat confdefs.h >>conftest.$ac_ext
23072 cat >>conftest.$ac_ext <<_ACEOF
23073 /* end confdefs.h. */
23074 #include <sys/types.h>
23081 int *p = &tm.tm_sec;
23087 rm -f conftest.$ac_objext
23088 if { (ac_try="$ac_compile"
23089 case "(($ac_try" in
23090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23091 *) ac_try_echo=$ac_try;;
23093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23094 (eval "$ac_compile") 2>conftest.er1
23096 grep -v '^ *+' conftest.er1 >conftest.err
23098 cat conftest.err >&5
23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100 (exit $ac_status); } && {
23101 test -z "$ac_c_werror_flag" ||
23102 test ! -s conftest.err
23103 } && test -s conftest.$ac_objext; then
23104 ac_cv_struct_tm=time.h
23106 echo "$as_me: failed program was:" >&5
23107 sed 's/^/| /' conftest.$ac_ext >&5
23109 ac_cv_struct_tm=sys/time.h
23112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23114 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
23115 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
23116 if test $ac_cv_struct_tm = sys/time.h; then
23118 cat >>confdefs.h <<\_ACEOF
23119 #define TM_IN_SYS_TIME 1
23124 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23125 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
23126 if test "${ac_cv_c_const+set}" = set; then
23127 echo $ECHO_N "(cached) $ECHO_C" >&6
23129 cat >conftest.$ac_ext <<_ACEOF
23132 cat confdefs.h >>conftest.$ac_ext
23133 cat >>conftest.$ac_ext <<_ACEOF
23134 /* end confdefs.h. */
23139 /* FIXME: Include the comments suggested by Paul. */
23140 #ifndef __cplusplus
23141 /* Ultrix mips cc rejects this. */
23142 typedef int charset[2];
23144 /* SunOS 4.1.1 cc rejects this. */
23145 char const *const *pcpcc;
23147 /* NEC SVR4.0.2 mips cc rejects this. */
23148 struct point {int x, y;};
23149 static struct point const zero = {0,0};
23150 /* AIX XL C 1.02.0.0 rejects this.
23151 It does not let you subtract one const X* pointer from another in
23152 an arm of an if-expression whose if-part is not a constant
23154 const char *g = "string";
23155 pcpcc = &g + (g ? g-g : 0);
23156 /* HPUX 7.0 cc rejects these. */
23158 ppc = (char**) pcpcc;
23159 pcpcc = (char const *const *) ppc;
23160 { /* SCO 3.2v4 cc rejects this. */
23162 char const *s = 0 ? (char *) 0 : (char const *) 0;
23167 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23168 int x[] = {25, 17};
23169 const int *foo = &x[0];
23172 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23173 typedef const int *iptr;
23177 { /* AIX XL C 1.02.0.0 rejects this saying
23178 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23179 struct s { int j; const int *ap[3]; };
23180 struct s *b; b->j = 5;
23182 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23183 const int foo = 10;
23184 if (!foo) return 0;
23186 return !cs[0] && !zero.x;
23193 rm -f conftest.$ac_objext
23194 if { (ac_try="$ac_compile"
23195 case "(($ac_try" in
23196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23197 *) ac_try_echo=$ac_try;;
23199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23200 (eval "$ac_compile") 2>conftest.er1
23202 grep -v '^ *+' conftest.er1 >conftest.err
23204 cat conftest.err >&5
23205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23206 (exit $ac_status); } && {
23207 test -z "$ac_c_werror_flag" ||
23208 test ! -s conftest.err
23209 } && test -s conftest.$ac_objext; then
23212 echo "$as_me: failed program was:" >&5
23213 sed 's/^/| /' conftest.$ac_ext >&5
23218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23220 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23221 echo "${ECHO_T}$ac_cv_c_const" >&6; }
23222 if test $ac_cv_c_const = no; then
23224 cat >>confdefs.h <<\_ACEOF
23232 { echo "$as_me:$LINENO: checking for char" >&5
23233 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
23234 if test "${ac_cv_type_char+set}" = set; then
23235 echo $ECHO_N "(cached) $ECHO_C" >&6
23237 cat >conftest.$ac_ext <<_ACEOF
23240 cat confdefs.h >>conftest.$ac_ext
23241 cat >>conftest.$ac_ext <<_ACEOF
23242 /* end confdefs.h. */
23243 $ac_includes_default
23244 typedef char ac__type_new_;
23248 if ((ac__type_new_ *) 0)
23250 if (sizeof (ac__type_new_))
23256 rm -f conftest.$ac_objext
23257 if { (ac_try="$ac_compile"
23258 case "(($ac_try" in
23259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23260 *) ac_try_echo=$ac_try;;
23262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23263 (eval "$ac_compile") 2>conftest.er1
23265 grep -v '^ *+' conftest.er1 >conftest.err
23267 cat conftest.err >&5
23268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23269 (exit $ac_status); } && {
23270 test -z "$ac_c_werror_flag" ||
23271 test ! -s conftest.err
23272 } && test -s conftest.$ac_objext; then
23273 ac_cv_type_char=yes
23275 echo "$as_me: failed program was:" >&5
23276 sed 's/^/| /' conftest.$ac_ext >&5
23281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23283 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
23284 echo "${ECHO_T}$ac_cv_type_char" >&6; }
23286 # The cast to long int works around a bug in the HP C Compiler
23287 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23288 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23289 # This bug is HP SR number 8606223364.
23290 { echo "$as_me:$LINENO: checking size of char" >&5
23291 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
23292 if test "${ac_cv_sizeof_char+set}" = set; then
23293 echo $ECHO_N "(cached) $ECHO_C" >&6
23295 if test "$cross_compiling" = yes; then
23296 # Depending upon the size, compute the lo and hi bounds.
23297 cat >conftest.$ac_ext <<_ACEOF
23300 cat confdefs.h >>conftest.$ac_ext
23301 cat >>conftest.$ac_ext <<_ACEOF
23302 /* end confdefs.h. */
23303 $ac_includes_default
23304 typedef char ac__type_sizeof_;
23308 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23315 rm -f conftest.$ac_objext
23316 if { (ac_try="$ac_compile"
23317 case "(($ac_try" in
23318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23319 *) ac_try_echo=$ac_try;;
23321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23322 (eval "$ac_compile") 2>conftest.er1
23324 grep -v '^ *+' conftest.er1 >conftest.err
23326 cat conftest.err >&5
23327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328 (exit $ac_status); } && {
23329 test -z "$ac_c_werror_flag" ||
23330 test ! -s conftest.err
23331 } && test -s conftest.$ac_objext; then
23334 cat >conftest.$ac_ext <<_ACEOF
23337 cat confdefs.h >>conftest.$ac_ext
23338 cat >>conftest.$ac_ext <<_ACEOF
23339 /* end confdefs.h. */
23340 $ac_includes_default
23341 typedef char ac__type_sizeof_;
23345 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23352 rm -f conftest.$ac_objext
23353 if { (ac_try="$ac_compile"
23354 case "(($ac_try" in
23355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23356 *) ac_try_echo=$ac_try;;
23358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23359 (eval "$ac_compile") 2>conftest.er1
23361 grep -v '^ *+' conftest.er1 >conftest.err
23363 cat conftest.err >&5
23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); } && {
23366 test -z "$ac_c_werror_flag" ||
23367 test ! -s conftest.err
23368 } && test -s conftest.$ac_objext; then
23369 ac_hi=$ac_mid; break
23371 echo "$as_me: failed program was:" >&5
23372 sed 's/^/| /' conftest.$ac_ext >&5
23374 ac_lo=`expr $ac_mid + 1`
23375 if test $ac_lo -le $ac_mid; then
23379 ac_mid=`expr 2 '*' $ac_mid + 1`
23382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23385 echo "$as_me: failed program was:" >&5
23386 sed 's/^/| /' conftest.$ac_ext >&5
23388 cat >conftest.$ac_ext <<_ACEOF
23391 cat confdefs.h >>conftest.$ac_ext
23392 cat >>conftest.$ac_ext <<_ACEOF
23393 /* end confdefs.h. */
23394 $ac_includes_default
23395 typedef char ac__type_sizeof_;
23399 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23406 rm -f conftest.$ac_objext
23407 if { (ac_try="$ac_compile"
23408 case "(($ac_try" in
23409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23410 *) ac_try_echo=$ac_try;;
23412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23413 (eval "$ac_compile") 2>conftest.er1
23415 grep -v '^ *+' conftest.er1 >conftest.err
23417 cat conftest.err >&5
23418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419 (exit $ac_status); } && {
23420 test -z "$ac_c_werror_flag" ||
23421 test ! -s conftest.err
23422 } && test -s conftest.$ac_objext; then
23425 cat >conftest.$ac_ext <<_ACEOF
23428 cat confdefs.h >>conftest.$ac_ext
23429 cat >>conftest.$ac_ext <<_ACEOF
23430 /* end confdefs.h. */
23431 $ac_includes_default
23432 typedef char ac__type_sizeof_;
23436 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23443 rm -f conftest.$ac_objext
23444 if { (ac_try="$ac_compile"
23445 case "(($ac_try" in
23446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23447 *) ac_try_echo=$ac_try;;
23449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23450 (eval "$ac_compile") 2>conftest.er1
23452 grep -v '^ *+' conftest.er1 >conftest.err
23454 cat conftest.err >&5
23455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23456 (exit $ac_status); } && {
23457 test -z "$ac_c_werror_flag" ||
23458 test ! -s conftest.err
23459 } && test -s conftest.$ac_objext; then
23460 ac_lo=$ac_mid; break
23462 echo "$as_me: failed program was:" >&5
23463 sed 's/^/| /' conftest.$ac_ext >&5
23465 ac_hi=`expr '(' $ac_mid ')' - 1`
23466 if test $ac_mid -le $ac_hi; then
23470 ac_mid=`expr 2 '*' $ac_mid`
23473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23476 echo "$as_me: failed program was:" >&5
23477 sed 's/^/| /' conftest.$ac_ext >&5
23482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23486 # Binary search between lo and hi bounds.
23487 while test "x$ac_lo" != "x$ac_hi"; do
23488 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23489 cat >conftest.$ac_ext <<_ACEOF
23492 cat confdefs.h >>conftest.$ac_ext
23493 cat >>conftest.$ac_ext <<_ACEOF
23494 /* end confdefs.h. */
23495 $ac_includes_default
23496 typedef char ac__type_sizeof_;
23500 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
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
23529 ac_lo=`expr '(' $ac_mid ')' + 1`
23532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23535 ?*) ac_cv_sizeof_char=$ac_lo;;
23536 '') if test "$ac_cv_type_char" = yes; then
23537 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23538 See \`config.log' for more details." >&5
23539 echo "$as_me: error: cannot compute sizeof (char)
23540 See \`config.log' for more details." >&2;}
23541 { (exit 77); exit 77; }; }
23543 ac_cv_sizeof_char=0
23547 cat >conftest.$ac_ext <<_ACEOF
23550 cat confdefs.h >>conftest.$ac_ext
23551 cat >>conftest.$ac_ext <<_ACEOF
23552 /* end confdefs.h. */
23553 $ac_includes_default
23554 typedef char ac__type_sizeof_;
23555 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23556 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23558 #include <stdlib.h>
23563 FILE *f = fopen ("conftest.val", "w");
23566 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23568 long int i = longval ();
23569 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23571 fprintf (f, "%ld\n", i);
23575 unsigned long int i = ulongval ();
23576 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23578 fprintf (f, "%lu\n", i);
23580 return ferror (f) || fclose (f) != 0;
23586 rm -f conftest$ac_exeext
23587 if { (ac_try="$ac_link"
23588 case "(($ac_try" in
23589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23590 *) ac_try_echo=$ac_try;;
23592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23593 (eval "$ac_link") 2>&5
23595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23596 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23597 { (case "(($ac_try" in
23598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23599 *) ac_try_echo=$ac_try;;
23601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23602 (eval "$ac_try") 2>&5
23604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23605 (exit $ac_status); }; }; then
23606 ac_cv_sizeof_char=`cat conftest.val`
23608 echo "$as_me: program exited with status $ac_status" >&5
23609 echo "$as_me: failed program was:" >&5
23610 sed 's/^/| /' conftest.$ac_ext >&5
23612 ( exit $ac_status )
23613 if test "$ac_cv_type_char" = yes; then
23614 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
23615 See \`config.log' for more details." >&5
23616 echo "$as_me: error: cannot compute sizeof (char)
23617 See \`config.log' for more details." >&2;}
23618 { (exit 77); exit 77; }; }
23620 ac_cv_sizeof_char=0
23623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23627 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
23628 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23632 cat >>confdefs.h <<_ACEOF
23633 #define SIZEOF_CHAR $ac_cv_sizeof_char
23637 { echo "$as_me:$LINENO: checking for short int" >&5
23638 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23639 if test "${ac_cv_type_short_int+set}" = set; then
23640 echo $ECHO_N "(cached) $ECHO_C" >&6
23642 cat >conftest.$ac_ext <<_ACEOF
23645 cat confdefs.h >>conftest.$ac_ext
23646 cat >>conftest.$ac_ext <<_ACEOF
23647 /* end confdefs.h. */
23648 $ac_includes_default
23649 typedef short int ac__type_new_;
23653 if ((ac__type_new_ *) 0)
23655 if (sizeof (ac__type_new_))
23661 rm -f conftest.$ac_objext
23662 if { (ac_try="$ac_compile"
23663 case "(($ac_try" in
23664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23665 *) ac_try_echo=$ac_try;;
23667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23668 (eval "$ac_compile") 2>conftest.er1
23670 grep -v '^ *+' conftest.er1 >conftest.err
23672 cat conftest.err >&5
23673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674 (exit $ac_status); } && {
23675 test -z "$ac_c_werror_flag" ||
23676 test ! -s conftest.err
23677 } && test -s conftest.$ac_objext; then
23678 ac_cv_type_short_int=yes
23680 echo "$as_me: failed program was:" >&5
23681 sed 's/^/| /' conftest.$ac_ext >&5
23683 ac_cv_type_short_int=no
23686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23688 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23689 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
23691 # The cast to long int works around a bug in the HP C Compiler
23692 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23693 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23694 # This bug is HP SR number 8606223364.
23695 { echo "$as_me:$LINENO: checking size of short int" >&5
23696 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
23697 if test "${ac_cv_sizeof_short_int+set}" = set; then
23698 echo $ECHO_N "(cached) $ECHO_C" >&6
23700 if test "$cross_compiling" = yes; then
23701 # Depending upon the size, compute the lo and hi bounds.
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 short int 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 short int 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_hi=$ac_mid; break
23776 echo "$as_me: failed program was:" >&5
23777 sed 's/^/| /' conftest.$ac_ext >&5
23779 ac_lo=`expr $ac_mid + 1`
23780 if test $ac_lo -le $ac_mid; then
23784 ac_mid=`expr 2 '*' $ac_mid + 1`
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
23793 cat >conftest.$ac_ext <<_ACEOF
23796 cat confdefs.h >>conftest.$ac_ext
23797 cat >>conftest.$ac_ext <<_ACEOF
23798 /* end confdefs.h. */
23799 $ac_includes_default
23800 typedef short int ac__type_sizeof_;
23804 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23811 rm -f conftest.$ac_objext
23812 if { (ac_try="$ac_compile"
23813 case "(($ac_try" in
23814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23815 *) ac_try_echo=$ac_try;;
23817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23818 (eval "$ac_compile") 2>conftest.er1
23820 grep -v '^ *+' conftest.er1 >conftest.err
23822 cat conftest.err >&5
23823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824 (exit $ac_status); } && {
23825 test -z "$ac_c_werror_flag" ||
23826 test ! -s conftest.err
23827 } && test -s conftest.$ac_objext; then
23830 cat >conftest.$ac_ext <<_ACEOF
23833 cat confdefs.h >>conftest.$ac_ext
23834 cat >>conftest.$ac_ext <<_ACEOF
23835 /* end confdefs.h. */
23836 $ac_includes_default
23837 typedef short int ac__type_sizeof_;
23841 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23848 rm -f conftest.$ac_objext
23849 if { (ac_try="$ac_compile"
23850 case "(($ac_try" in
23851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23852 *) ac_try_echo=$ac_try;;
23854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23855 (eval "$ac_compile") 2>conftest.er1
23857 grep -v '^ *+' conftest.er1 >conftest.err
23859 cat conftest.err >&5
23860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23861 (exit $ac_status); } && {
23862 test -z "$ac_c_werror_flag" ||
23863 test ! -s conftest.err
23864 } && test -s conftest.$ac_objext; then
23865 ac_lo=$ac_mid; break
23867 echo "$as_me: failed program was:" >&5
23868 sed 's/^/| /' conftest.$ac_ext >&5
23870 ac_hi=`expr '(' $ac_mid ')' - 1`
23871 if test $ac_mid -le $ac_hi; then
23875 ac_mid=`expr 2 '*' $ac_mid`
23878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23881 echo "$as_me: failed program was:" >&5
23882 sed 's/^/| /' conftest.$ac_ext >&5
23887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23891 # Binary search between lo and hi bounds.
23892 while test "x$ac_lo" != "x$ac_hi"; do
23893 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23894 cat >conftest.$ac_ext <<_ACEOF
23897 cat confdefs.h >>conftest.$ac_ext
23898 cat >>conftest.$ac_ext <<_ACEOF
23899 /* end confdefs.h. */
23900 $ac_includes_default
23901 typedef short int ac__type_sizeof_;
23905 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23912 rm -f conftest.$ac_objext
23913 if { (ac_try="$ac_compile"
23914 case "(($ac_try" in
23915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23916 *) ac_try_echo=$ac_try;;
23918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23919 (eval "$ac_compile") 2>conftest.er1
23921 grep -v '^ *+' conftest.er1 >conftest.err
23923 cat conftest.err >&5
23924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925 (exit $ac_status); } && {
23926 test -z "$ac_c_werror_flag" ||
23927 test ! -s conftest.err
23928 } && test -s conftest.$ac_objext; then
23931 echo "$as_me: failed program was:" >&5
23932 sed 's/^/| /' conftest.$ac_ext >&5
23934 ac_lo=`expr '(' $ac_mid ')' + 1`
23937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23940 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23941 '') if test "$ac_cv_type_short_int" = yes; then
23942 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
23943 See \`config.log' for more details." >&5
23944 echo "$as_me: error: cannot compute sizeof (short int)
23945 See \`config.log' for more details." >&2;}
23946 { (exit 77); exit 77; }; }
23948 ac_cv_sizeof_short_int=0
23952 cat >conftest.$ac_ext <<_ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h. */
23958 $ac_includes_default
23959 typedef short int ac__type_sizeof_;
23960 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23961 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23963 #include <stdlib.h>
23968 FILE *f = fopen ("conftest.val", "w");
23971 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23973 long int i = longval ();
23974 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23976 fprintf (f, "%ld\n", i);
23980 unsigned long int i = ulongval ();
23981 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23983 fprintf (f, "%lu\n", i);
23985 return ferror (f) || fclose (f) != 0;
23991 rm -f conftest$ac_exeext
23992 if { (ac_try="$ac_link"
23993 case "(($ac_try" in
23994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23995 *) ac_try_echo=$ac_try;;
23997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23998 (eval "$ac_link") 2>&5
24000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24002 { (case "(($ac_try" in
24003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24004 *) ac_try_echo=$ac_try;;
24006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24007 (eval "$ac_try") 2>&5
24009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24010 (exit $ac_status); }; }; then
24011 ac_cv_sizeof_short_int=`cat conftest.val`
24013 echo "$as_me: program exited with status $ac_status" >&5
24014 echo "$as_me: failed program was:" >&5
24015 sed 's/^/| /' conftest.$ac_ext >&5
24017 ( exit $ac_status )
24018 if test "$ac_cv_type_short_int" = yes; then
24019 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
24020 See \`config.log' for more details." >&5
24021 echo "$as_me: error: cannot compute sizeof (short int)
24022 See \`config.log' for more details." >&2;}
24023 { (exit 77); exit 77; }; }
24025 ac_cv_sizeof_short_int=0
24028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24032 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
24033 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
24037 cat >>confdefs.h <<_ACEOF
24038 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
24042 { echo "$as_me:$LINENO: checking for int" >&5
24043 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
24044 if test "${ac_cv_type_int+set}" = set; then
24045 echo $ECHO_N "(cached) $ECHO_C" >&6
24047 cat >conftest.$ac_ext <<_ACEOF
24050 cat confdefs.h >>conftest.$ac_ext
24051 cat >>conftest.$ac_ext <<_ACEOF
24052 /* end confdefs.h. */
24053 $ac_includes_default
24054 typedef int ac__type_new_;
24058 if ((ac__type_new_ *) 0)
24060 if (sizeof (ac__type_new_))
24066 rm -f conftest.$ac_objext
24067 if { (ac_try="$ac_compile"
24068 case "(($ac_try" in
24069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24070 *) ac_try_echo=$ac_try;;
24072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24073 (eval "$ac_compile") 2>conftest.er1
24075 grep -v '^ *+' conftest.er1 >conftest.err
24077 cat conftest.err >&5
24078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24079 (exit $ac_status); } && {
24080 test -z "$ac_c_werror_flag" ||
24081 test ! -s conftest.err
24082 } && test -s conftest.$ac_objext; then
24085 echo "$as_me: failed program was:" >&5
24086 sed 's/^/| /' conftest.$ac_ext >&5
24091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24093 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
24094 echo "${ECHO_T}$ac_cv_type_int" >&6; }
24096 # The cast to long int works around a bug in the HP C Compiler
24097 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24098 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24099 # This bug is HP SR number 8606223364.
24100 { echo "$as_me:$LINENO: checking size of int" >&5
24101 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
24102 if test "${ac_cv_sizeof_int+set}" = set; then
24103 echo $ECHO_N "(cached) $ECHO_C" >&6
24105 if test "$cross_compiling" = yes; then
24106 # Depending upon the size, compute the lo and hi bounds.
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 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 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_hi=$ac_mid; break
24181 echo "$as_me: failed program was:" >&5
24182 sed 's/^/| /' conftest.$ac_ext >&5
24184 ac_lo=`expr $ac_mid + 1`
24185 if test $ac_lo -le $ac_mid; then
24189 ac_mid=`expr 2 '*' $ac_mid + 1`
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
24198 cat >conftest.$ac_ext <<_ACEOF
24201 cat confdefs.h >>conftest.$ac_ext
24202 cat >>conftest.$ac_ext <<_ACEOF
24203 /* end confdefs.h. */
24204 $ac_includes_default
24205 typedef int ac__type_sizeof_;
24209 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24216 rm -f conftest.$ac_objext
24217 if { (ac_try="$ac_compile"
24218 case "(($ac_try" in
24219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24220 *) ac_try_echo=$ac_try;;
24222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24223 (eval "$ac_compile") 2>conftest.er1
24225 grep -v '^ *+' conftest.er1 >conftest.err
24227 cat conftest.err >&5
24228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229 (exit $ac_status); } && {
24230 test -z "$ac_c_werror_flag" ||
24231 test ! -s conftest.err
24232 } && test -s conftest.$ac_objext; then
24235 cat >conftest.$ac_ext <<_ACEOF
24238 cat confdefs.h >>conftest.$ac_ext
24239 cat >>conftest.$ac_ext <<_ACEOF
24240 /* end confdefs.h. */
24241 $ac_includes_default
24242 typedef int ac__type_sizeof_;
24246 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24253 rm -f conftest.$ac_objext
24254 if { (ac_try="$ac_compile"
24255 case "(($ac_try" in
24256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24257 *) ac_try_echo=$ac_try;;
24259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24260 (eval "$ac_compile") 2>conftest.er1
24262 grep -v '^ *+' conftest.er1 >conftest.err
24264 cat conftest.err >&5
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); } && {
24267 test -z "$ac_c_werror_flag" ||
24268 test ! -s conftest.err
24269 } && test -s conftest.$ac_objext; then
24270 ac_lo=$ac_mid; break
24272 echo "$as_me: failed program was:" >&5
24273 sed 's/^/| /' conftest.$ac_ext >&5
24275 ac_hi=`expr '(' $ac_mid ')' - 1`
24276 if test $ac_mid -le $ac_hi; then
24280 ac_mid=`expr 2 '*' $ac_mid`
24283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24286 echo "$as_me: failed program was:" >&5
24287 sed 's/^/| /' conftest.$ac_ext >&5
24292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24296 # Binary search between lo and hi bounds.
24297 while test "x$ac_lo" != "x$ac_hi"; do
24298 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24299 cat >conftest.$ac_ext <<_ACEOF
24302 cat confdefs.h >>conftest.$ac_ext
24303 cat >>conftest.$ac_ext <<_ACEOF
24304 /* end confdefs.h. */
24305 $ac_includes_default
24306 typedef int ac__type_sizeof_;
24310 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24317 rm -f conftest.$ac_objext
24318 if { (ac_try="$ac_compile"
24319 case "(($ac_try" in
24320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24321 *) ac_try_echo=$ac_try;;
24323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24324 (eval "$ac_compile") 2>conftest.er1
24326 grep -v '^ *+' conftest.er1 >conftest.err
24328 cat conftest.err >&5
24329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24330 (exit $ac_status); } && {
24331 test -z "$ac_c_werror_flag" ||
24332 test ! -s conftest.err
24333 } && test -s conftest.$ac_objext; then
24336 echo "$as_me: failed program was:" >&5
24337 sed 's/^/| /' conftest.$ac_ext >&5
24339 ac_lo=`expr '(' $ac_mid ')' + 1`
24342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24345 ?*) ac_cv_sizeof_int=$ac_lo;;
24346 '') if test "$ac_cv_type_int" = yes; then
24347 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24348 See \`config.log' for more details." >&5
24349 echo "$as_me: error: cannot compute sizeof (int)
24350 See \`config.log' for more details." >&2;}
24351 { (exit 77); exit 77; }; }
24357 cat >conftest.$ac_ext <<_ACEOF
24360 cat confdefs.h >>conftest.$ac_ext
24361 cat >>conftest.$ac_ext <<_ACEOF
24362 /* end confdefs.h. */
24363 $ac_includes_default
24364 typedef int ac__type_sizeof_;
24365 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24366 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24368 #include <stdlib.h>
24373 FILE *f = fopen ("conftest.val", "w");
24376 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24378 long int i = longval ();
24379 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24381 fprintf (f, "%ld\n", i);
24385 unsigned long int i = ulongval ();
24386 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24388 fprintf (f, "%lu\n", i);
24390 return ferror (f) || fclose (f) != 0;
24396 rm -f conftest$ac_exeext
24397 if { (ac_try="$ac_link"
24398 case "(($ac_try" in
24399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24400 *) ac_try_echo=$ac_try;;
24402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24403 (eval "$ac_link") 2>&5
24405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24407 { (case "(($ac_try" in
24408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24409 *) ac_try_echo=$ac_try;;
24411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24412 (eval "$ac_try") 2>&5
24414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24415 (exit $ac_status); }; }; then
24416 ac_cv_sizeof_int=`cat conftest.val`
24418 echo "$as_me: program exited with status $ac_status" >&5
24419 echo "$as_me: failed program was:" >&5
24420 sed 's/^/| /' conftest.$ac_ext >&5
24422 ( exit $ac_status )
24423 if test "$ac_cv_type_int" = yes; then
24424 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
24425 See \`config.log' for more details." >&5
24426 echo "$as_me: error: cannot compute sizeof (int)
24427 See \`config.log' for more details." >&2;}
24428 { (exit 77); exit 77; }; }
24433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24437 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
24438 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
24442 cat >>confdefs.h <<_ACEOF
24443 #define SIZEOF_INT $ac_cv_sizeof_int
24447 { echo "$as_me:$LINENO: checking for long int" >&5
24448 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
24449 if test "${ac_cv_type_long_int+set}" = set; then
24450 echo $ECHO_N "(cached) $ECHO_C" >&6
24452 cat >conftest.$ac_ext <<_ACEOF
24455 cat confdefs.h >>conftest.$ac_ext
24456 cat >>conftest.$ac_ext <<_ACEOF
24457 /* end confdefs.h. */
24458 $ac_includes_default
24459 typedef long int ac__type_new_;
24463 if ((ac__type_new_ *) 0)
24465 if (sizeof (ac__type_new_))
24471 rm -f conftest.$ac_objext
24472 if { (ac_try="$ac_compile"
24473 case "(($ac_try" in
24474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24475 *) ac_try_echo=$ac_try;;
24477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24478 (eval "$ac_compile") 2>conftest.er1
24480 grep -v '^ *+' conftest.er1 >conftest.err
24482 cat conftest.err >&5
24483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24484 (exit $ac_status); } && {
24485 test -z "$ac_c_werror_flag" ||
24486 test ! -s conftest.err
24487 } && test -s conftest.$ac_objext; then
24488 ac_cv_type_long_int=yes
24490 echo "$as_me: failed program was:" >&5
24491 sed 's/^/| /' conftest.$ac_ext >&5
24493 ac_cv_type_long_int=no
24496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24498 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
24499 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
24501 # The cast to long int works around a bug in the HP C Compiler
24502 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24503 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24504 # This bug is HP SR number 8606223364.
24505 { echo "$as_me:$LINENO: checking size of long int" >&5
24506 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
24507 if test "${ac_cv_sizeof_long_int+set}" = set; then
24508 echo $ECHO_N "(cached) $ECHO_C" >&6
24510 if test "$cross_compiling" = yes; then
24511 # Depending upon the size, compute the lo and hi bounds.
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 long 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 long 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_hi=$ac_mid; break
24586 echo "$as_me: failed program was:" >&5
24587 sed 's/^/| /' conftest.$ac_ext >&5
24589 ac_lo=`expr $ac_mid + 1`
24590 if test $ac_lo -le $ac_mid; then
24594 ac_mid=`expr 2 '*' $ac_mid + 1`
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
24603 cat >conftest.$ac_ext <<_ACEOF
24606 cat confdefs.h >>conftest.$ac_ext
24607 cat >>conftest.$ac_ext <<_ACEOF
24608 /* end confdefs.h. */
24609 $ac_includes_default
24610 typedef long int ac__type_sizeof_;
24614 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24621 rm -f conftest.$ac_objext
24622 if { (ac_try="$ac_compile"
24623 case "(($ac_try" in
24624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24625 *) ac_try_echo=$ac_try;;
24627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24628 (eval "$ac_compile") 2>conftest.er1
24630 grep -v '^ *+' conftest.er1 >conftest.err
24632 cat conftest.err >&5
24633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24634 (exit $ac_status); } && {
24635 test -z "$ac_c_werror_flag" ||
24636 test ! -s conftest.err
24637 } && test -s conftest.$ac_objext; then
24640 cat >conftest.$ac_ext <<_ACEOF
24643 cat confdefs.h >>conftest.$ac_ext
24644 cat >>conftest.$ac_ext <<_ACEOF
24645 /* end confdefs.h. */
24646 $ac_includes_default
24647 typedef long int ac__type_sizeof_;
24651 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24658 rm -f conftest.$ac_objext
24659 if { (ac_try="$ac_compile"
24660 case "(($ac_try" in
24661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24662 *) ac_try_echo=$ac_try;;
24664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24665 (eval "$ac_compile") 2>conftest.er1
24667 grep -v '^ *+' conftest.er1 >conftest.err
24669 cat conftest.err >&5
24670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24671 (exit $ac_status); } && {
24672 test -z "$ac_c_werror_flag" ||
24673 test ! -s conftest.err
24674 } && test -s conftest.$ac_objext; then
24675 ac_lo=$ac_mid; break
24677 echo "$as_me: failed program was:" >&5
24678 sed 's/^/| /' conftest.$ac_ext >&5
24680 ac_hi=`expr '(' $ac_mid ')' - 1`
24681 if test $ac_mid -le $ac_hi; then
24685 ac_mid=`expr 2 '*' $ac_mid`
24688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24691 echo "$as_me: failed program was:" >&5
24692 sed 's/^/| /' conftest.$ac_ext >&5
24697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24701 # Binary search between lo and hi bounds.
24702 while test "x$ac_lo" != "x$ac_hi"; do
24703 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24704 cat >conftest.$ac_ext <<_ACEOF
24707 cat confdefs.h >>conftest.$ac_ext
24708 cat >>conftest.$ac_ext <<_ACEOF
24709 /* end confdefs.h. */
24710 $ac_includes_default
24711 typedef long int ac__type_sizeof_;
24715 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24722 rm -f conftest.$ac_objext
24723 if { (ac_try="$ac_compile"
24724 case "(($ac_try" in
24725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24726 *) ac_try_echo=$ac_try;;
24728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24729 (eval "$ac_compile") 2>conftest.er1
24731 grep -v '^ *+' conftest.er1 >conftest.err
24733 cat conftest.err >&5
24734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24735 (exit $ac_status); } && {
24736 test -z "$ac_c_werror_flag" ||
24737 test ! -s conftest.err
24738 } && test -s conftest.$ac_objext; then
24741 echo "$as_me: failed program was:" >&5
24742 sed 's/^/| /' conftest.$ac_ext >&5
24744 ac_lo=`expr '(' $ac_mid ')' + 1`
24747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24750 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24751 '') if test "$ac_cv_type_long_int" = yes; then
24752 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24753 See \`config.log' for more details." >&5
24754 echo "$as_me: error: cannot compute sizeof (long int)
24755 See \`config.log' for more details." >&2;}
24756 { (exit 77); exit 77; }; }
24758 ac_cv_sizeof_long_int=0
24762 cat >conftest.$ac_ext <<_ACEOF
24765 cat confdefs.h >>conftest.$ac_ext
24766 cat >>conftest.$ac_ext <<_ACEOF
24767 /* end confdefs.h. */
24768 $ac_includes_default
24769 typedef long int ac__type_sizeof_;
24770 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24771 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24773 #include <stdlib.h>
24778 FILE *f = fopen ("conftest.val", "w");
24781 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24783 long int i = longval ();
24784 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24786 fprintf (f, "%ld\n", i);
24790 unsigned long int i = ulongval ();
24791 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24793 fprintf (f, "%lu\n", i);
24795 return ferror (f) || fclose (f) != 0;
24801 rm -f conftest$ac_exeext
24802 if { (ac_try="$ac_link"
24803 case "(($ac_try" in
24804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24805 *) ac_try_echo=$ac_try;;
24807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24808 (eval "$ac_link") 2>&5
24810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24812 { (case "(($ac_try" in
24813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24814 *) ac_try_echo=$ac_try;;
24816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24817 (eval "$ac_try") 2>&5
24819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24820 (exit $ac_status); }; }; then
24821 ac_cv_sizeof_long_int=`cat conftest.val`
24823 echo "$as_me: program exited with status $ac_status" >&5
24824 echo "$as_me: failed program was:" >&5
24825 sed 's/^/| /' conftest.$ac_ext >&5
24827 ( exit $ac_status )
24828 if test "$ac_cv_type_long_int" = yes; then
24829 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24830 See \`config.log' for more details." >&5
24831 echo "$as_me: error: cannot compute sizeof (long int)
24832 See \`config.log' for more details." >&2;}
24833 { (exit 77); exit 77; }; }
24835 ac_cv_sizeof_long_int=0
24838 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24842 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24843 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
24847 cat >>confdefs.h <<_ACEOF
24848 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24852 { echo "$as_me:$LINENO: checking for long long int" >&5
24853 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
24854 if test "${ac_cv_type_long_long_int+set}" = set; then
24855 echo $ECHO_N "(cached) $ECHO_C" >&6
24857 cat >conftest.$ac_ext <<_ACEOF
24860 cat confdefs.h >>conftest.$ac_ext
24861 cat >>conftest.$ac_ext <<_ACEOF
24862 /* end confdefs.h. */
24863 $ac_includes_default
24864 typedef long long int ac__type_new_;
24868 if ((ac__type_new_ *) 0)
24870 if (sizeof (ac__type_new_))
24876 rm -f conftest.$ac_objext
24877 if { (ac_try="$ac_compile"
24878 case "(($ac_try" in
24879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24880 *) ac_try_echo=$ac_try;;
24882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24883 (eval "$ac_compile") 2>conftest.er1
24885 grep -v '^ *+' conftest.er1 >conftest.err
24887 cat conftest.err >&5
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); } && {
24890 test -z "$ac_c_werror_flag" ||
24891 test ! -s conftest.err
24892 } && test -s conftest.$ac_objext; then
24893 ac_cv_type_long_long_int=yes
24895 echo "$as_me: failed program was:" >&5
24896 sed 's/^/| /' conftest.$ac_ext >&5
24898 ac_cv_type_long_long_int=no
24901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24903 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24904 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
24906 # The cast to long int works around a bug in the HP C Compiler
24907 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24908 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24909 # This bug is HP SR number 8606223364.
24910 { echo "$as_me:$LINENO: checking size of long long int" >&5
24911 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
24912 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24913 echo $ECHO_N "(cached) $ECHO_C" >&6
24915 if test "$cross_compiling" = yes; then
24916 # Depending upon the size, compute the lo and hi bounds.
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 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 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_hi=$ac_mid; break
24991 echo "$as_me: failed program was:" >&5
24992 sed 's/^/| /' conftest.$ac_ext >&5
24994 ac_lo=`expr $ac_mid + 1`
24995 if test $ac_lo -le $ac_mid; then
24999 ac_mid=`expr 2 '*' $ac_mid + 1`
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
25008 cat >conftest.$ac_ext <<_ACEOF
25011 cat confdefs.h >>conftest.$ac_ext
25012 cat >>conftest.$ac_ext <<_ACEOF
25013 /* end confdefs.h. */
25014 $ac_includes_default
25015 typedef long long int ac__type_sizeof_;
25019 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25026 rm -f conftest.$ac_objext
25027 if { (ac_try="$ac_compile"
25028 case "(($ac_try" in
25029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030 *) ac_try_echo=$ac_try;;
25032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25033 (eval "$ac_compile") 2>conftest.er1
25035 grep -v '^ *+' conftest.er1 >conftest.err
25037 cat conftest.err >&5
25038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25039 (exit $ac_status); } && {
25040 test -z "$ac_c_werror_flag" ||
25041 test ! -s conftest.err
25042 } && test -s conftest.$ac_objext; then
25045 cat >conftest.$ac_ext <<_ACEOF
25048 cat confdefs.h >>conftest.$ac_ext
25049 cat >>conftest.$ac_ext <<_ACEOF
25050 /* end confdefs.h. */
25051 $ac_includes_default
25052 typedef long long int ac__type_sizeof_;
25056 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25063 rm -f conftest.$ac_objext
25064 if { (ac_try="$ac_compile"
25065 case "(($ac_try" in
25066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25067 *) ac_try_echo=$ac_try;;
25069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25070 (eval "$ac_compile") 2>conftest.er1
25072 grep -v '^ *+' conftest.er1 >conftest.err
25074 cat conftest.err >&5
25075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25076 (exit $ac_status); } && {
25077 test -z "$ac_c_werror_flag" ||
25078 test ! -s conftest.err
25079 } && test -s conftest.$ac_objext; then
25080 ac_lo=$ac_mid; break
25082 echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25085 ac_hi=`expr '(' $ac_mid ')' - 1`
25086 if test $ac_mid -le $ac_hi; then
25090 ac_mid=`expr 2 '*' $ac_mid`
25093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25096 echo "$as_me: failed program was:" >&5
25097 sed 's/^/| /' conftest.$ac_ext >&5
25102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25106 # Binary search between lo and hi bounds.
25107 while test "x$ac_lo" != "x$ac_hi"; do
25108 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25109 cat >conftest.$ac_ext <<_ACEOF
25112 cat confdefs.h >>conftest.$ac_ext
25113 cat >>conftest.$ac_ext <<_ACEOF
25114 /* end confdefs.h. */
25115 $ac_includes_default
25116 typedef long long int ac__type_sizeof_;
25120 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25127 rm -f conftest.$ac_objext
25128 if { (ac_try="$ac_compile"
25129 case "(($ac_try" in
25130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25131 *) ac_try_echo=$ac_try;;
25133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25134 (eval "$ac_compile") 2>conftest.er1
25136 grep -v '^ *+' conftest.er1 >conftest.err
25138 cat conftest.err >&5
25139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25140 (exit $ac_status); } && {
25141 test -z "$ac_c_werror_flag" ||
25142 test ! -s conftest.err
25143 } && test -s conftest.$ac_objext; then
25146 echo "$as_me: failed program was:" >&5
25147 sed 's/^/| /' conftest.$ac_ext >&5
25149 ac_lo=`expr '(' $ac_mid ')' + 1`
25152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25155 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
25156 '') if test "$ac_cv_type_long_long_int" = yes; then
25157 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25158 See \`config.log' for more details." >&5
25159 echo "$as_me: error: cannot compute sizeof (long long int)
25160 See \`config.log' for more details." >&2;}
25161 { (exit 77); exit 77; }; }
25163 ac_cv_sizeof_long_long_int=0
25167 cat >conftest.$ac_ext <<_ACEOF
25170 cat confdefs.h >>conftest.$ac_ext
25171 cat >>conftest.$ac_ext <<_ACEOF
25172 /* end confdefs.h. */
25173 $ac_includes_default
25174 typedef long long int ac__type_sizeof_;
25175 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25176 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25178 #include <stdlib.h>
25183 FILE *f = fopen ("conftest.val", "w");
25186 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25188 long int i = longval ();
25189 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25191 fprintf (f, "%ld\n", i);
25195 unsigned long int i = ulongval ();
25196 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25198 fprintf (f, "%lu\n", i);
25200 return ferror (f) || fclose (f) != 0;
25206 rm -f conftest$ac_exeext
25207 if { (ac_try="$ac_link"
25208 case "(($ac_try" in
25209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25210 *) ac_try_echo=$ac_try;;
25212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25213 (eval "$ac_link") 2>&5
25215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25217 { (case "(($ac_try" in
25218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25219 *) ac_try_echo=$ac_try;;
25221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25222 (eval "$ac_try") 2>&5
25224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225 (exit $ac_status); }; }; then
25226 ac_cv_sizeof_long_long_int=`cat conftest.val`
25228 echo "$as_me: program exited with status $ac_status" >&5
25229 echo "$as_me: failed program was:" >&5
25230 sed 's/^/| /' conftest.$ac_ext >&5
25232 ( exit $ac_status )
25233 if test "$ac_cv_type_long_long_int" = yes; then
25234 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
25235 See \`config.log' for more details." >&5
25236 echo "$as_me: error: cannot compute sizeof (long long int)
25237 See \`config.log' for more details." >&2;}
25238 { (exit 77); exit 77; }; }
25240 ac_cv_sizeof_long_long_int=0
25243 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25247 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
25248 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
25252 cat >>confdefs.h <<_ACEOF
25253 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
25257 { echo "$as_me:$LINENO: checking for int *" >&5
25258 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
25259 if test "${ac_cv_type_int_p+set}" = set; then
25260 echo $ECHO_N "(cached) $ECHO_C" >&6
25262 cat >conftest.$ac_ext <<_ACEOF
25265 cat confdefs.h >>conftest.$ac_ext
25266 cat >>conftest.$ac_ext <<_ACEOF
25267 /* end confdefs.h. */
25268 $ac_includes_default
25269 typedef int * ac__type_new_;
25273 if ((ac__type_new_ *) 0)
25275 if (sizeof (ac__type_new_))
25281 rm -f conftest.$ac_objext
25282 if { (ac_try="$ac_compile"
25283 case "(($ac_try" in
25284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25285 *) ac_try_echo=$ac_try;;
25287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25288 (eval "$ac_compile") 2>conftest.er1
25290 grep -v '^ *+' conftest.er1 >conftest.err
25292 cat conftest.err >&5
25293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); } && {
25295 test -z "$ac_c_werror_flag" ||
25296 test ! -s conftest.err
25297 } && test -s conftest.$ac_objext; then
25298 ac_cv_type_int_p=yes
25300 echo "$as_me: failed program was:" >&5
25301 sed 's/^/| /' conftest.$ac_ext >&5
25303 ac_cv_type_int_p=no
25306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25308 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
25309 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
25311 # The cast to long int works around a bug in the HP C Compiler
25312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25314 # This bug is HP SR number 8606223364.
25315 { echo "$as_me:$LINENO: checking size of int *" >&5
25316 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
25317 if test "${ac_cv_sizeof_int_p+set}" = set; then
25318 echo $ECHO_N "(cached) $ECHO_C" >&6
25320 if test "$cross_compiling" = yes; then
25321 # Depending upon the size, compute the lo and hi bounds.
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 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 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_hi=$ac_mid; break
25396 echo "$as_me: failed program was:" >&5
25397 sed 's/^/| /' conftest.$ac_ext >&5
25399 ac_lo=`expr $ac_mid + 1`
25400 if test $ac_lo -le $ac_mid; then
25404 ac_mid=`expr 2 '*' $ac_mid + 1`
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
25413 cat >conftest.$ac_ext <<_ACEOF
25416 cat confdefs.h >>conftest.$ac_ext
25417 cat >>conftest.$ac_ext <<_ACEOF
25418 /* end confdefs.h. */
25419 $ac_includes_default
25420 typedef int * ac__type_sizeof_;
25424 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25431 rm -f conftest.$ac_objext
25432 if { (ac_try="$ac_compile"
25433 case "(($ac_try" in
25434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25435 *) ac_try_echo=$ac_try;;
25437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25438 (eval "$ac_compile") 2>conftest.er1
25440 grep -v '^ *+' conftest.er1 >conftest.err
25442 cat conftest.err >&5
25443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444 (exit $ac_status); } && {
25445 test -z "$ac_c_werror_flag" ||
25446 test ! -s conftest.err
25447 } && test -s conftest.$ac_objext; then
25450 cat >conftest.$ac_ext <<_ACEOF
25453 cat confdefs.h >>conftest.$ac_ext
25454 cat >>conftest.$ac_ext <<_ACEOF
25455 /* end confdefs.h. */
25456 $ac_includes_default
25457 typedef int * ac__type_sizeof_;
25461 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25468 rm -f conftest.$ac_objext
25469 if { (ac_try="$ac_compile"
25470 case "(($ac_try" in
25471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25472 *) ac_try_echo=$ac_try;;
25474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25475 (eval "$ac_compile") 2>conftest.er1
25477 grep -v '^ *+' conftest.er1 >conftest.err
25479 cat conftest.err >&5
25480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25481 (exit $ac_status); } && {
25482 test -z "$ac_c_werror_flag" ||
25483 test ! -s conftest.err
25484 } && test -s conftest.$ac_objext; then
25485 ac_lo=$ac_mid; break
25487 echo "$as_me: failed program was:" >&5
25488 sed 's/^/| /' conftest.$ac_ext >&5
25490 ac_hi=`expr '(' $ac_mid ')' - 1`
25491 if test $ac_mid -le $ac_hi; then
25495 ac_mid=`expr 2 '*' $ac_mid`
25498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25501 echo "$as_me: failed program was:" >&5
25502 sed 's/^/| /' conftest.$ac_ext >&5
25507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25511 # Binary search between lo and hi bounds.
25512 while test "x$ac_lo" != "x$ac_hi"; do
25513 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25514 cat >conftest.$ac_ext <<_ACEOF
25517 cat confdefs.h >>conftest.$ac_ext
25518 cat >>conftest.$ac_ext <<_ACEOF
25519 /* end confdefs.h. */
25520 $ac_includes_default
25521 typedef int * ac__type_sizeof_;
25525 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25532 rm -f conftest.$ac_objext
25533 if { (ac_try="$ac_compile"
25534 case "(($ac_try" in
25535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25536 *) ac_try_echo=$ac_try;;
25538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25539 (eval "$ac_compile") 2>conftest.er1
25541 grep -v '^ *+' conftest.er1 >conftest.err
25543 cat conftest.err >&5
25544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25545 (exit $ac_status); } && {
25546 test -z "$ac_c_werror_flag" ||
25547 test ! -s conftest.err
25548 } && test -s conftest.$ac_objext; then
25551 echo "$as_me: failed program was:" >&5
25552 sed 's/^/| /' conftest.$ac_ext >&5
25554 ac_lo=`expr '(' $ac_mid ')' + 1`
25557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25560 ?*) ac_cv_sizeof_int_p=$ac_lo;;
25561 '') if test "$ac_cv_type_int_p" = yes; then
25562 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25563 See \`config.log' for more details." >&5
25564 echo "$as_me: error: cannot compute sizeof (int *)
25565 See \`config.log' for more details." >&2;}
25566 { (exit 77); exit 77; }; }
25568 ac_cv_sizeof_int_p=0
25572 cat >conftest.$ac_ext <<_ACEOF
25575 cat confdefs.h >>conftest.$ac_ext
25576 cat >>conftest.$ac_ext <<_ACEOF
25577 /* end confdefs.h. */
25578 $ac_includes_default
25579 typedef int * ac__type_sizeof_;
25580 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25581 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25583 #include <stdlib.h>
25588 FILE *f = fopen ("conftest.val", "w");
25591 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25593 long int i = longval ();
25594 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25596 fprintf (f, "%ld\n", i);
25600 unsigned long int i = ulongval ();
25601 if (i != ((long int) (sizeof (ac__type_sizeof_))))
25603 fprintf (f, "%lu\n", i);
25605 return ferror (f) || fclose (f) != 0;
25611 rm -f conftest$ac_exeext
25612 if { (ac_try="$ac_link"
25613 case "(($ac_try" in
25614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25615 *) ac_try_echo=$ac_try;;
25617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25618 (eval "$ac_link") 2>&5
25620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25622 { (case "(($ac_try" in
25623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25624 *) ac_try_echo=$ac_try;;
25626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25627 (eval "$ac_try") 2>&5
25629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25630 (exit $ac_status); }; }; then
25631 ac_cv_sizeof_int_p=`cat conftest.val`
25633 echo "$as_me: program exited with status $ac_status" >&5
25634 echo "$as_me: failed program was:" >&5
25635 sed 's/^/| /' conftest.$ac_ext >&5
25637 ( exit $ac_status )
25638 if test "$ac_cv_type_int_p" = yes; then
25639 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25640 See \`config.log' for more details." >&5
25641 echo "$as_me: error: cannot compute sizeof (int *)
25642 See \`config.log' for more details." >&2;}
25643 { (exit 77); exit 77; }; }
25645 ac_cv_sizeof_int_p=0
25648 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25652 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25653 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25657 cat >>confdefs.h <<_ACEOF
25658 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25663 # Check for sys/types.h types
25664 { echo "$as_me:$LINENO: checking for u_int type" >&5
25665 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
25666 if test "${ac_cv_have_u_int+set}" = set; then
25667 echo $ECHO_N "(cached) $ECHO_C" >&6
25670 cat >conftest.$ac_ext <<_ACEOF
25673 cat confdefs.h >>conftest.$ac_ext
25674 cat >>conftest.$ac_ext <<_ACEOF
25675 /* end confdefs.h. */
25676 #include <sys/types.h>
25685 rm -f conftest.$ac_objext
25686 if { (ac_try="$ac_compile"
25687 case "(($ac_try" in
25688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25689 *) ac_try_echo=$ac_try;;
25691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25692 (eval "$ac_compile") 2>conftest.er1
25694 grep -v '^ *+' conftest.er1 >conftest.err
25696 cat conftest.err >&5
25697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25698 (exit $ac_status); } && {
25699 test -z "$ac_c_werror_flag" ||
25700 test ! -s conftest.err
25701 } && test -s conftest.$ac_objext; then
25702 ac_cv_have_u_int="yes"
25704 echo "$as_me: failed program was:" >&5
25705 sed 's/^/| /' conftest.$ac_ext >&5
25707 ac_cv_have_u_int="no"
25711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25714 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25715 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
25716 if test "x$ac_cv_have_u_int" = "xyes" ; then
25717 cat >>confdefs.h <<\_ACEOF
25718 #define HAVE_U_INT 1
25724 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
25725 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
25726 if test "${ac_cv_have_intmax_t+set}" = set; then
25727 echo $ECHO_N "(cached) $ECHO_C" >&6
25730 cat >conftest.$ac_ext <<_ACEOF
25733 cat confdefs.h >>conftest.$ac_ext
25734 cat >>conftest.$ac_ext <<_ACEOF
25735 /* end confdefs.h. */
25736 #include <sys/types.h>
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
25762 ac_cv_have_intmax_t="yes"
25764 echo "$as_me: failed program was:" >&5
25765 sed 's/^/| /' conftest.$ac_ext >&5
25768 cat >conftest.$ac_ext <<_ACEOF
25771 cat confdefs.h >>conftest.$ac_ext
25772 cat >>conftest.$ac_ext <<_ACEOF
25773 /* end confdefs.h. */
25774 #include <stdint.h>
25783 rm -f conftest.$ac_objext
25784 if { (ac_try="$ac_compile"
25785 case "(($ac_try" in
25786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25787 *) ac_try_echo=$ac_try;;
25789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25790 (eval "$ac_compile") 2>conftest.er1
25792 grep -v '^ *+' conftest.er1 >conftest.err
25794 cat conftest.err >&5
25795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25796 (exit $ac_status); } && {
25797 test -z "$ac_c_werror_flag" ||
25798 test ! -s conftest.err
25799 } && test -s conftest.$ac_objext; then
25800 ac_cv_have_intmax_t="yes"
25802 echo "$as_me: failed program was:" >&5
25803 sed 's/^/| /' conftest.$ac_ext >&5
25805 ac_cv_have_intmax_t="no"
25809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25818 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25819 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
25820 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25821 cat >>confdefs.h <<\_ACEOF
25822 #define HAVE_INTMAX_T 1
25829 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25830 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
25831 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25832 echo $ECHO_N "(cached) $ECHO_C" >&6
25835 cat >conftest.$ac_ext <<_ACEOF
25838 cat confdefs.h >>conftest.$ac_ext
25839 cat >>conftest.$ac_ext <<_ACEOF
25840 /* end confdefs.h. */
25841 #include <sys/types.h>
25845 u_intmax_t a; a = 1;
25850 rm -f conftest.$ac_objext
25851 if { (ac_try="$ac_compile"
25852 case "(($ac_try" in
25853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25854 *) ac_try_echo=$ac_try;;
25856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25857 (eval "$ac_compile") 2>conftest.er1
25859 grep -v '^ *+' conftest.er1 >conftest.err
25861 cat conftest.err >&5
25862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25863 (exit $ac_status); } && {
25864 test -z "$ac_c_werror_flag" ||
25865 test ! -s conftest.err
25866 } && test -s conftest.$ac_objext; then
25867 ac_cv_have_u_intmax_t="yes"
25869 echo "$as_me: failed program was:" >&5
25870 sed 's/^/| /' conftest.$ac_ext >&5
25873 cat >conftest.$ac_ext <<_ACEOF
25876 cat confdefs.h >>conftest.$ac_ext
25877 cat >>conftest.$ac_ext <<_ACEOF
25878 /* end confdefs.h. */
25879 #include <stdint.h>
25883 u_intmax_t a; a = 1;
25888 rm -f conftest.$ac_objext
25889 if { (ac_try="$ac_compile"
25890 case "(($ac_try" in
25891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25892 *) ac_try_echo=$ac_try;;
25894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25895 (eval "$ac_compile") 2>conftest.er1
25897 grep -v '^ *+' conftest.er1 >conftest.err
25899 cat conftest.err >&5
25900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25901 (exit $ac_status); } && {
25902 test -z "$ac_c_werror_flag" ||
25903 test ! -s conftest.err
25904 } && test -s conftest.$ac_objext; then
25905 ac_cv_have_u_intmax_t="yes"
25907 echo "$as_me: failed program was:" >&5
25908 sed 's/^/| /' conftest.$ac_ext >&5
25910 ac_cv_have_u_intmax_t="no"
25914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25922 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25923 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
25924 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25925 cat >>confdefs.h <<\_ACEOF
25926 #define HAVE_U_INTMAX_T 1
25933 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
25934 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
25935 if test "${ac_cv_have_intxx_t+set}" = set; then
25936 echo $ECHO_N "(cached) $ECHO_C" >&6
25939 cat >conftest.$ac_ext <<_ACEOF
25942 cat confdefs.h >>conftest.$ac_ext
25943 cat >>conftest.$ac_ext <<_ACEOF
25944 /* end confdefs.h. */
25945 #include <sys/types.h>
25949 int8_t a; int16_t b; int32_t c; a = b = c = 1;
25954 rm -f conftest.$ac_objext
25955 if { (ac_try="$ac_compile"
25956 case "(($ac_try" in
25957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25958 *) ac_try_echo=$ac_try;;
25960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25961 (eval "$ac_compile") 2>conftest.er1
25963 grep -v '^ *+' conftest.er1 >conftest.err
25965 cat conftest.err >&5
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); } && {
25968 test -z "$ac_c_werror_flag" ||
25969 test ! -s conftest.err
25970 } && test -s conftest.$ac_objext; then
25971 ac_cv_have_intxx_t="yes"
25973 echo "$as_me: failed program was:" >&5
25974 sed 's/^/| /' conftest.$ac_ext >&5
25976 ac_cv_have_intxx_t="no"
25980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25983 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25984 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
25985 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25986 cat >>confdefs.h <<\_ACEOF
25987 #define HAVE_INTXX_T 1
25993 { echo "$as_me:$LINENO: checking for int64_t type" >&5
25994 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
25995 if test "${ac_cv_have_int64_t+set}" = set; then
25996 echo $ECHO_N "(cached) $ECHO_C" >&6
25999 cat >conftest.$ac_ext <<_ACEOF
26002 cat confdefs.h >>conftest.$ac_ext
26003 cat >>conftest.$ac_ext <<_ACEOF
26004 /* end confdefs.h. */
26005 #include <sys/types.h>
26014 rm -f conftest.$ac_objext
26015 if { (ac_try="$ac_compile"
26016 case "(($ac_try" in
26017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26018 *) ac_try_echo=$ac_try;;
26020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26021 (eval "$ac_compile") 2>conftest.er1
26023 grep -v '^ *+' conftest.er1 >conftest.err
26025 cat conftest.err >&5
26026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26027 (exit $ac_status); } && {
26028 test -z "$ac_c_werror_flag" ||
26029 test ! -s conftest.err
26030 } && test -s conftest.$ac_objext; then
26031 ac_cv_have_int64_t="yes"
26033 echo "$as_me: failed program was:" >&5
26034 sed 's/^/| /' conftest.$ac_ext >&5
26036 ac_cv_have_int64_t="no"
26040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26043 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
26044 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
26045 if test "x$ac_cv_have_int64_t" = "xyes" ; then
26046 cat >>confdefs.h <<\_ACEOF
26047 #define HAVE_INT64_T 1
26053 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
26054 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
26055 if test "${ac_cv_have_u_intxx_t+set}" = set; then
26056 echo $ECHO_N "(cached) $ECHO_C" >&6
26059 cat >conftest.$ac_ext <<_ACEOF
26062 cat confdefs.h >>conftest.$ac_ext
26063 cat >>conftest.$ac_ext <<_ACEOF
26064 /* end confdefs.h. */
26065 #include <sys/types.h>
26069 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
26074 rm -f conftest.$ac_objext
26075 if { (ac_try="$ac_compile"
26076 case "(($ac_try" in
26077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26078 *) ac_try_echo=$ac_try;;
26080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26081 (eval "$ac_compile") 2>conftest.er1
26083 grep -v '^ *+' conftest.er1 >conftest.err
26085 cat conftest.err >&5
26086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26087 (exit $ac_status); } && {
26088 test -z "$ac_c_werror_flag" ||
26089 test ! -s conftest.err
26090 } && test -s conftest.$ac_objext; then
26091 ac_cv_have_u_intxx_t="yes"
26093 echo "$as_me: failed program was:" >&5
26094 sed 's/^/| /' conftest.$ac_ext >&5
26096 ac_cv_have_u_intxx_t="no"
26100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26103 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
26104 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
26105 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
26106 cat >>confdefs.h <<\_ACEOF
26107 #define HAVE_U_INTXX_T 1
26113 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
26114 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
26115 if test "${ac_cv_have_u_int64_t+set}" = set; then
26116 echo $ECHO_N "(cached) $ECHO_C" >&6
26119 cat >conftest.$ac_ext <<_ACEOF
26122 cat confdefs.h >>conftest.$ac_ext
26123 cat >>conftest.$ac_ext <<_ACEOF
26124 /* end confdefs.h. */
26125 #include <sys/types.h>
26129 u_int64_t a; a = 1;
26134 rm -f conftest.$ac_objext
26135 if { (ac_try="$ac_compile"
26136 case "(($ac_try" in
26137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26138 *) ac_try_echo=$ac_try;;
26140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26141 (eval "$ac_compile") 2>conftest.er1
26143 grep -v '^ *+' conftest.er1 >conftest.err
26145 cat conftest.err >&5
26146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26147 (exit $ac_status); } && {
26148 test -z "$ac_c_werror_flag" ||
26149 test ! -s conftest.err
26150 } && test -s conftest.$ac_objext; then
26151 ac_cv_have_u_int64_t="yes"
26153 echo "$as_me: failed program was:" >&5
26154 sed 's/^/| /' conftest.$ac_ext >&5
26156 ac_cv_have_u_int64_t="no"
26160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26163 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
26164 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
26165 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
26166 cat >>confdefs.h <<\_ACEOF
26167 #define HAVE_U_INT64_T 1
26173 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
26174 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26176 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
26177 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26178 cat >conftest.$ac_ext <<_ACEOF
26181 cat confdefs.h >>conftest.$ac_ext
26182 cat >>conftest.$ac_ext <<_ACEOF
26183 /* end confdefs.h. */
26184 #include <sys/bitypes.h>
26188 int8_t a; int16_t b; int32_t c;
26189 u_int8_t e; u_int16_t f; u_int32_t g;
26190 a = b = c = e = f = g = 1;
26195 rm -f conftest.$ac_objext
26196 if { (ac_try="$ac_compile"
26197 case "(($ac_try" in
26198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26199 *) ac_try_echo=$ac_try;;
26201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26202 (eval "$ac_compile") 2>conftest.er1
26204 grep -v '^ *+' conftest.er1 >conftest.err
26206 cat conftest.err >&5
26207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208 (exit $ac_status); } && {
26209 test -z "$ac_c_werror_flag" ||
26210 test ! -s conftest.err
26211 } && test -s conftest.$ac_objext; then
26212 cat >>confdefs.h <<\_ACEOF
26213 #define HAVE_U_INTXX_T 1
26216 cat >>confdefs.h <<\_ACEOF
26217 #define HAVE_INTXX_T 1
26220 cat >>confdefs.h <<\_ACEOF
26221 #define HAVE_SYS_BITYPES_H 1
26224 { echo "$as_me:$LINENO: result: yes" >&5
26225 echo "${ECHO_T}yes" >&6; }
26227 echo "$as_me: failed program was:" >&5
26228 sed 's/^/| /' conftest.$ac_ext >&5
26230 { echo "$as_me:$LINENO: result: no" >&5
26231 echo "${ECHO_T}no" >&6; }
26235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26238 if test -z "$have_u_intxx_t" ; then
26239 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
26240 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
26241 if test "${ac_cv_have_uintxx_t+set}" = set; then
26242 echo $ECHO_N "(cached) $ECHO_C" >&6
26245 cat >conftest.$ac_ext <<_ACEOF
26248 cat confdefs.h >>conftest.$ac_ext
26249 cat >>conftest.$ac_ext <<_ACEOF
26250 /* end confdefs.h. */
26251 #include <sys/types.h>
26255 uint8_t a; uint16_t b;
26256 uint32_t c; a = b = c = 1;
26261 rm -f conftest.$ac_objext
26262 if { (ac_try="$ac_compile"
26263 case "(($ac_try" in
26264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26265 *) ac_try_echo=$ac_try;;
26267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26268 (eval "$ac_compile") 2>conftest.er1
26270 grep -v '^ *+' conftest.er1 >conftest.err
26272 cat conftest.err >&5
26273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26274 (exit $ac_status); } && {
26275 test -z "$ac_c_werror_flag" ||
26276 test ! -s conftest.err
26277 } && test -s conftest.$ac_objext; then
26278 ac_cv_have_uintxx_t="yes"
26280 echo "$as_me: failed program was:" >&5
26281 sed 's/^/| /' conftest.$ac_ext >&5
26283 ac_cv_have_uintxx_t="no"
26287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26290 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
26291 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
26292 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
26293 cat >>confdefs.h <<\_ACEOF
26294 #define HAVE_UINTXX_T 1
26300 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
26301 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26303 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
26304 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
26305 cat >conftest.$ac_ext <<_ACEOF
26308 cat confdefs.h >>conftest.$ac_ext
26309 cat >>conftest.$ac_ext <<_ACEOF
26310 /* end confdefs.h. */
26311 #include <sys/bitypes.h>
26315 int64_t a; u_int64_t b;
26321 rm -f conftest.$ac_objext
26322 if { (ac_try="$ac_compile"
26323 case "(($ac_try" in
26324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26325 *) ac_try_echo=$ac_try;;
26327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26328 (eval "$ac_compile") 2>conftest.er1
26330 grep -v '^ *+' conftest.er1 >conftest.err
26332 cat conftest.err >&5
26333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); } && {
26335 test -z "$ac_c_werror_flag" ||
26336 test ! -s conftest.err
26337 } && test -s conftest.$ac_objext; then
26338 cat >>confdefs.h <<\_ACEOF
26339 #define HAVE_U_INT64_T 1
26342 cat >>confdefs.h <<\_ACEOF
26343 #define HAVE_INT64_T 1
26346 { echo "$as_me:$LINENO: result: yes" >&5
26347 echo "${ECHO_T}yes" >&6; }
26349 echo "$as_me: failed program was:" >&5
26350 sed 's/^/| /' conftest.$ac_ext >&5
26352 { echo "$as_me:$LINENO: result: no" >&5
26353 echo "${ECHO_T}no" >&6; }
26357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26360 if (test -z "$have_uintxx_t" && \
26361 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
26363 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
26364 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
26365 cat >conftest.$ac_ext <<_ACEOF
26368 cat confdefs.h >>conftest.$ac_ext
26369 cat >>conftest.$ac_ext <<_ACEOF
26370 /* end confdefs.h. */
26371 #include <sys/bitypes.h>
26375 uint8_t a; uint16_t b;
26376 uint32_t c; a = b = c = 1;
26381 rm -f conftest.$ac_objext
26382 if { (ac_try="$ac_compile"
26383 case "(($ac_try" in
26384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26385 *) ac_try_echo=$ac_try;;
26387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26388 (eval "$ac_compile") 2>conftest.er1
26390 grep -v '^ *+' conftest.er1 >conftest.err
26392 cat conftest.err >&5
26393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394 (exit $ac_status); } && {
26395 test -z "$ac_c_werror_flag" ||
26396 test ! -s conftest.err
26397 } && test -s conftest.$ac_objext; then
26398 cat >>confdefs.h <<\_ACEOF
26399 #define HAVE_UINTXX_T 1
26402 { echo "$as_me:$LINENO: result: yes" >&5
26403 echo "${ECHO_T}yes" >&6; }
26405 echo "$as_me: failed program was:" >&5
26406 sed 's/^/| /' conftest.$ac_ext >&5
26408 { echo "$as_me:$LINENO: result: no" >&5
26409 echo "${ECHO_T}no" >&6; }
26413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26450 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26452 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26453 echo $ECHO_N "(cached) $ECHO_C" >&6
26455 cat >conftest.$ac_ext <<_ACEOF
26458 cat confdefs.h >>conftest.$ac_ext
26459 cat >>conftest.$ac_ext <<_ACEOF
26460 /* end confdefs.h. */
26461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26463 #define $ac_func innocuous_$ac_func
26465 /* System header to define __stub macros and hopefully few prototypes,
26466 which can conflict with char $ac_func (); below.
26467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26468 <limits.h> exists even on freestanding compilers. */
26471 # include <limits.h>
26473 # include <assert.h>
26478 /* Override any GCC internal prototype to avoid an error.
26479 Use char because int might match the return type of a GCC
26480 builtin and then its argument prototype would still apply. */
26485 /* The GNU C library defines this for functions which it implements
26486 to always fail with ENOSYS. Some functions are actually named
26487 something starting with __ and the normal name is an alias. */
26488 #if defined __stub_$ac_func || defined __stub___$ac_func
26495 return $ac_func ();
26500 rm -f conftest.$ac_objext conftest$ac_exeext
26501 if { (ac_try="$ac_link"
26502 case "(($ac_try" in
26503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26504 *) ac_try_echo=$ac_try;;
26506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26507 (eval "$ac_link") 2>conftest.er1
26509 grep -v '^ *+' conftest.er1 >conftest.err
26511 cat conftest.err >&5
26512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513 (exit $ac_status); } && {
26514 test -z "$ac_c_werror_flag" ||
26515 test ! -s conftest.err
26516 } && test -s conftest$ac_exeext &&
26517 $as_test_x conftest$ac_exeext; then
26518 eval "$as_ac_var=yes"
26520 echo "$as_me: failed program was:" >&5
26521 sed 's/^/| /' conftest.$ac_ext >&5
26523 eval "$as_ac_var=no"
26526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26527 conftest$ac_exeext conftest.$ac_ext
26529 ac_res=`eval echo '${'$as_ac_var'}'`
26530 { echo "$as_me:$LINENO: result: $ac_res" >&5
26531 echo "${ECHO_T}$ac_res" >&6; }
26532 if test `eval echo '${'$as_ac_var'}'` = yes; then
26533 cat >>confdefs.h <<_ACEOF
26534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26538 echo 'configure: cannot find needed function.'; exit 1
26545 for ac_func in fchdir
26547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26548 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26550 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26551 echo $ECHO_N "(cached) $ECHO_C" >&6
26553 cat >conftest.$ac_ext <<_ACEOF
26556 cat confdefs.h >>conftest.$ac_ext
26557 cat >>conftest.$ac_ext <<_ACEOF
26558 /* end confdefs.h. */
26559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26561 #define $ac_func innocuous_$ac_func
26563 /* System header to define __stub macros and hopefully few prototypes,
26564 which can conflict with char $ac_func (); below.
26565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26566 <limits.h> exists even on freestanding compilers. */
26569 # include <limits.h>
26571 # include <assert.h>
26576 /* Override any GCC internal prototype to avoid an error.
26577 Use char because int might match the return type of a GCC
26578 builtin and then its argument prototype would still apply. */
26583 /* The GNU C library defines this for functions which it implements
26584 to always fail with ENOSYS. Some functions are actually named
26585 something starting with __ and the normal name is an alias. */
26586 #if defined __stub_$ac_func || defined __stub___$ac_func
26593 return $ac_func ();
26598 rm -f conftest.$ac_objext conftest$ac_exeext
26599 if { (ac_try="$ac_link"
26600 case "(($ac_try" in
26601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26602 *) ac_try_echo=$ac_try;;
26604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26605 (eval "$ac_link") 2>conftest.er1
26607 grep -v '^ *+' conftest.er1 >conftest.err
26609 cat conftest.err >&5
26610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611 (exit $ac_status); } && {
26612 test -z "$ac_c_werror_flag" ||
26613 test ! -s conftest.err
26614 } && test -s conftest$ac_exeext &&
26615 $as_test_x conftest$ac_exeext; then
26616 eval "$as_ac_var=yes"
26618 echo "$as_me: failed program was:" >&5
26619 sed 's/^/| /' conftest.$ac_ext >&5
26621 eval "$as_ac_var=no"
26624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26625 conftest$ac_exeext conftest.$ac_ext
26627 ac_res=`eval echo '${'$as_ac_var'}'`
26628 { echo "$as_me:$LINENO: result: $ac_res" >&5
26629 echo "${ECHO_T}$ac_res" >&6; }
26630 if test `eval echo '${'$as_ac_var'}'` = yes; then
26631 cat >>confdefs.h <<_ACEOF
26632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26634 cat >>confdefs.h <<\_ACEOF
26635 #define HAVE_FCHDIR 1
26642 for ac_func in strtoll
26644 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26645 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26646 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26647 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26648 echo $ECHO_N "(cached) $ECHO_C" >&6
26650 cat >conftest.$ac_ext <<_ACEOF
26653 cat confdefs.h >>conftest.$ac_ext
26654 cat >>conftest.$ac_ext <<_ACEOF
26655 /* end confdefs.h. */
26656 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26658 #define $ac_func innocuous_$ac_func
26660 /* System header to define __stub macros and hopefully few prototypes,
26661 which can conflict with char $ac_func (); below.
26662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26663 <limits.h> exists even on freestanding compilers. */
26666 # include <limits.h>
26668 # include <assert.h>
26673 /* Override any GCC internal prototype to avoid an error.
26674 Use char because int might match the return type of a GCC
26675 builtin and then its argument prototype would still apply. */
26680 /* The GNU C library defines this for functions which it implements
26681 to always fail with ENOSYS. Some functions are actually named
26682 something starting with __ and the normal name is an alias. */
26683 #if defined __stub_$ac_func || defined __stub___$ac_func
26690 return $ac_func ();
26695 rm -f conftest.$ac_objext conftest$ac_exeext
26696 if { (ac_try="$ac_link"
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_link") 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_exeext &&
26712 $as_test_x conftest$ac_exeext; then
26713 eval "$as_ac_var=yes"
26715 echo "$as_me: failed program was:" >&5
26716 sed 's/^/| /' conftest.$ac_ext >&5
26718 eval "$as_ac_var=no"
26721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26722 conftest$ac_exeext conftest.$ac_ext
26724 ac_res=`eval echo '${'$as_ac_var'}'`
26725 { echo "$as_me:$LINENO: result: $ac_res" >&5
26726 echo "${ECHO_T}$ac_res" >&6; }
26727 if test `eval echo '${'$as_ac_var'}'` = yes; then
26728 cat >>confdefs.h <<_ACEOF
26729 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26731 cat >>confdefs.h <<\_ACEOF
26732 #define HAVE_STRTOLL 1
26739 for ac_func in posix_fadvise
26741 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26742 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26743 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26744 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26745 echo $ECHO_N "(cached) $ECHO_C" >&6
26747 cat >conftest.$ac_ext <<_ACEOF
26750 cat confdefs.h >>conftest.$ac_ext
26751 cat >>conftest.$ac_ext <<_ACEOF
26752 /* end confdefs.h. */
26753 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26754 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26755 #define $ac_func innocuous_$ac_func
26757 /* System header to define __stub macros and hopefully few prototypes,
26758 which can conflict with char $ac_func (); below.
26759 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26760 <limits.h> exists even on freestanding compilers. */
26763 # include <limits.h>
26765 # include <assert.h>
26770 /* Override any GCC internal prototype to avoid an error.
26771 Use char because int might match the return type of a GCC
26772 builtin and then its argument prototype would still apply. */
26777 /* The GNU C library defines this for functions which it implements
26778 to always fail with ENOSYS. Some functions are actually named
26779 something starting with __ and the normal name is an alias. */
26780 #if defined __stub_$ac_func || defined __stub___$ac_func
26787 return $ac_func ();
26792 rm -f conftest.$ac_objext conftest$ac_exeext
26793 if { (ac_try="$ac_link"
26794 case "(($ac_try" in
26795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26796 *) ac_try_echo=$ac_try;;
26798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26799 (eval "$ac_link") 2>conftest.er1
26801 grep -v '^ *+' conftest.er1 >conftest.err
26803 cat conftest.err >&5
26804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805 (exit $ac_status); } && {
26806 test -z "$ac_c_werror_flag" ||
26807 test ! -s conftest.err
26808 } && test -s conftest$ac_exeext &&
26809 $as_test_x conftest$ac_exeext; then
26810 eval "$as_ac_var=yes"
26812 echo "$as_me: failed program was:" >&5
26813 sed 's/^/| /' conftest.$ac_ext >&5
26815 eval "$as_ac_var=no"
26818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26819 conftest$ac_exeext conftest.$ac_ext
26821 ac_res=`eval echo '${'$as_ac_var'}'`
26822 { echo "$as_me:$LINENO: result: $ac_res" >&5
26823 echo "${ECHO_T}$ac_res" >&6; }
26824 if test `eval echo '${'$as_ac_var'}'` = yes; then
26825 cat >>confdefs.h <<_ACEOF
26826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26833 for ac_func in fdatasync
26835 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26836 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26837 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26838 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26839 echo $ECHO_N "(cached) $ECHO_C" >&6
26841 cat >conftest.$ac_ext <<_ACEOF
26844 cat confdefs.h >>conftest.$ac_ext
26845 cat >>conftest.$ac_ext <<_ACEOF
26846 /* end confdefs.h. */
26847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26849 #define $ac_func innocuous_$ac_func
26851 /* System header to define __stub macros and hopefully few prototypes,
26852 which can conflict with char $ac_func (); below.
26853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26854 <limits.h> exists even on freestanding compilers. */
26857 # include <limits.h>
26859 # include <assert.h>
26864 /* Override any GCC internal prototype to avoid an error.
26865 Use char because int might match the return type of a GCC
26866 builtin and then its argument prototype would still apply. */
26871 /* The GNU C library defines this for functions which it implements
26872 to always fail with ENOSYS. Some functions are actually named
26873 something starting with __ and the normal name is an alias. */
26874 #if defined __stub_$ac_func || defined __stub___$ac_func
26881 return $ac_func ();
26886 rm -f conftest.$ac_objext conftest$ac_exeext
26887 if { (ac_try="$ac_link"
26888 case "(($ac_try" in
26889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26890 *) ac_try_echo=$ac_try;;
26892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26893 (eval "$ac_link") 2>conftest.er1
26895 grep -v '^ *+' conftest.er1 >conftest.err
26897 cat conftest.err >&5
26898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26899 (exit $ac_status); } && {
26900 test -z "$ac_c_werror_flag" ||
26901 test ! -s conftest.err
26902 } && test -s conftest$ac_exeext &&
26903 $as_test_x conftest$ac_exeext; then
26904 eval "$as_ac_var=yes"
26906 echo "$as_me: failed program was:" >&5
26907 sed 's/^/| /' conftest.$ac_ext >&5
26909 eval "$as_ac_var=no"
26912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26913 conftest$ac_exeext conftest.$ac_ext
26915 ac_res=`eval echo '${'$as_ac_var'}'`
26916 { echo "$as_me:$LINENO: result: $ac_res" >&5
26917 echo "${ECHO_T}$ac_res" >&6; }
26918 if test `eval echo '${'$as_ac_var'}'` = yes; then
26919 cat >>confdefs.h <<_ACEOF
26920 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26928 for ac_func in chflags
26930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26931 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26933 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26934 echo $ECHO_N "(cached) $ECHO_C" >&6
26936 cat >conftest.$ac_ext <<_ACEOF
26939 cat confdefs.h >>conftest.$ac_ext
26940 cat >>conftest.$ac_ext <<_ACEOF
26941 /* end confdefs.h. */
26942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26944 #define $ac_func innocuous_$ac_func
26946 /* System header to define __stub macros and hopefully few prototypes,
26947 which can conflict with char $ac_func (); below.
26948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26949 <limits.h> exists even on freestanding compilers. */
26952 # include <limits.h>
26954 # include <assert.h>
26959 /* Override any GCC internal prototype to avoid an error.
26960 Use char because int might match the return type of a GCC
26961 builtin and then its argument prototype would still apply. */
26966 /* The GNU C library defines this for functions which it implements
26967 to always fail with ENOSYS. Some functions are actually named
26968 something starting with __ and the normal name is an alias. */
26969 #if defined __stub_$ac_func || defined __stub___$ac_func
26976 return $ac_func ();
26981 rm -f conftest.$ac_objext conftest$ac_exeext
26982 if { (ac_try="$ac_link"
26983 case "(($ac_try" in
26984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26985 *) ac_try_echo=$ac_try;;
26987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26988 (eval "$ac_link") 2>conftest.er1
26990 grep -v '^ *+' conftest.er1 >conftest.err
26992 cat conftest.err >&5
26993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26994 (exit $ac_status); } && {
26995 test -z "$ac_c_werror_flag" ||
26996 test ! -s conftest.err
26997 } && test -s conftest$ac_exeext &&
26998 $as_test_x conftest$ac_exeext; then
26999 eval "$as_ac_var=yes"
27001 echo "$as_me: failed program was:" >&5
27002 sed 's/^/| /' conftest.$ac_ext >&5
27004 eval "$as_ac_var=no"
27007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27008 conftest$ac_exeext conftest.$ac_ext
27010 ac_res=`eval echo '${'$as_ac_var'}'`
27011 { echo "$as_me:$LINENO: result: $ac_res" >&5
27012 echo "${ECHO_T}$ac_res" >&6; }
27013 if test `eval echo '${'$as_ac_var'}'` = yes; then
27014 cat >>confdefs.h <<_ACEOF
27015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27026 for ac_func in snprintf vsnprintf gethostid fseeko
27028 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27029 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27030 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27031 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27032 echo $ECHO_N "(cached) $ECHO_C" >&6
27034 cat >conftest.$ac_ext <<_ACEOF
27037 cat confdefs.h >>conftest.$ac_ext
27038 cat >>conftest.$ac_ext <<_ACEOF
27039 /* end confdefs.h. */
27040 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27042 #define $ac_func innocuous_$ac_func
27044 /* System header to define __stub macros and hopefully few prototypes,
27045 which can conflict with char $ac_func (); below.
27046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27047 <limits.h> exists even on freestanding compilers. */
27050 # include <limits.h>
27052 # include <assert.h>
27057 /* Override any GCC internal prototype to avoid an error.
27058 Use char because int might match the return type of a GCC
27059 builtin and then its argument prototype would still apply. */
27064 /* The GNU C library defines this for functions which it implements
27065 to always fail with ENOSYS. Some functions are actually named
27066 something starting with __ and the normal name is an alias. */
27067 #if defined __stub_$ac_func || defined __stub___$ac_func
27074 return $ac_func ();
27079 rm -f conftest.$ac_objext conftest$ac_exeext
27080 if { (ac_try="$ac_link"
27081 case "(($ac_try" in
27082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27083 *) ac_try_echo=$ac_try;;
27085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27086 (eval "$ac_link") 2>conftest.er1
27088 grep -v '^ *+' conftest.er1 >conftest.err
27090 cat conftest.err >&5
27091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092 (exit $ac_status); } && {
27093 test -z "$ac_c_werror_flag" ||
27094 test ! -s conftest.err
27095 } && test -s conftest$ac_exeext &&
27096 $as_test_x conftest$ac_exeext; then
27097 eval "$as_ac_var=yes"
27099 echo "$as_me: failed program was:" >&5
27100 sed 's/^/| /' conftest.$ac_ext >&5
27102 eval "$as_ac_var=no"
27105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27106 conftest$ac_exeext conftest.$ac_ext
27108 ac_res=`eval echo '${'$as_ac_var'}'`
27109 { echo "$as_me:$LINENO: result: $ac_res" >&5
27110 echo "${ECHO_T}$ac_res" >&6; }
27111 if test `eval echo '${'$as_ac_var'}'` = yes; then
27112 cat >>confdefs.h <<_ACEOF
27113 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27120 { echo "$as_me:$LINENO: checking for va_copy" >&5
27121 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
27122 if test "${ba_cv_va_copy+set}" = set; then
27123 echo $ECHO_N "(cached) $ECHO_C" >&6
27125 cat >conftest.$ac_ext <<_ACEOF
27128 cat confdefs.h >>conftest.$ac_ext
27129 cat >>conftest.$ac_ext <<_ACEOF
27130 /* end confdefs.h. */
27132 #include <stdarg.h>
27133 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27134 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27139 call_use_va_copy(1,2,3)
27144 rm -f conftest.$ac_objext conftest$ac_exeext
27145 if { (ac_try="$ac_link"
27146 case "(($ac_try" in
27147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27148 *) ac_try_echo=$ac_try;;
27150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27151 (eval "$ac_link") 2>conftest.er1
27153 grep -v '^ *+' conftest.er1 >conftest.err
27155 cat conftest.err >&5
27156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27157 (exit $ac_status); } && {
27158 test -z "$ac_c_werror_flag" ||
27159 test ! -s conftest.err
27160 } && test -s conftest$ac_exeext &&
27161 $as_test_x conftest$ac_exeext; then
27164 echo "$as_me: failed program was:" >&5
27165 sed 's/^/| /' conftest.$ac_ext >&5
27170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27171 conftest$ac_exeext conftest.$ac_ext
27173 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
27174 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
27175 test $ba_cv_va_copy = yes &&
27176 cat >>confdefs.h <<\_ACEOF
27177 #define HAVE_VA_COPY 1
27186 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27188 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27192 echo $ECHO_N "(cached) $ECHO_C" >&6
27194 cat >conftest.$ac_ext <<_ACEOF
27197 cat confdefs.h >>conftest.$ac_ext
27198 cat >>conftest.$ac_ext <<_ACEOF
27199 /* end confdefs.h. */
27200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27202 #define $ac_func innocuous_$ac_func
27204 /* System header to define __stub macros and hopefully few prototypes,
27205 which can conflict with char $ac_func (); below.
27206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27207 <limits.h> exists even on freestanding compilers. */
27210 # include <limits.h>
27212 # include <assert.h>
27217 /* Override any GCC internal prototype to avoid an error.
27218 Use char because int might match the return type of a GCC
27219 builtin and then its argument prototype would still apply. */
27224 /* The GNU C library defines this for functions which it implements
27225 to always fail with ENOSYS. Some functions are actually named
27226 something starting with __ and the normal name is an alias. */
27227 #if defined __stub_$ac_func || defined __stub___$ac_func
27234 return $ac_func ();
27239 rm -f conftest.$ac_objext conftest$ac_exeext
27240 if { (ac_try="$ac_link"
27241 case "(($ac_try" in
27242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27243 *) ac_try_echo=$ac_try;;
27245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27246 (eval "$ac_link") 2>conftest.er1
27248 grep -v '^ *+' conftest.er1 >conftest.err
27250 cat conftest.err >&5
27251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); } && {
27253 test -z "$ac_c_werror_flag" ||
27254 test ! -s conftest.err
27255 } && test -s conftest$ac_exeext &&
27256 $as_test_x conftest$ac_exeext; then
27257 eval "$as_ac_var=yes"
27259 echo "$as_me: failed program was:" >&5
27260 sed 's/^/| /' conftest.$ac_ext >&5
27262 eval "$as_ac_var=no"
27265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27266 conftest$ac_exeext conftest.$ac_ext
27268 ac_res=`eval echo '${'$as_ac_var'}'`
27269 { echo "$as_me:$LINENO: result: $ac_res" >&5
27270 echo "${ECHO_T}$ac_res" >&6; }
27271 if test `eval echo '${'$as_ac_var'}'` = yes; then
27272 cat >>confdefs.h <<_ACEOF
27273 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27280 # If resolver functions are not in libc check for -lnsl or -lresolv.
27281 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
27282 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
27283 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
27284 echo $ECHO_N "(cached) $ECHO_C" >&6
27286 cat >conftest.$ac_ext <<_ACEOF
27289 cat confdefs.h >>conftest.$ac_ext
27290 cat >>conftest.$ac_ext <<_ACEOF
27291 /* end confdefs.h. */
27292 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
27293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27294 #define gethostbyname_r innocuous_gethostbyname_r
27296 /* System header to define __stub macros and hopefully few prototypes,
27297 which can conflict with char gethostbyname_r (); below.
27298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27299 <limits.h> exists even on freestanding compilers. */
27302 # include <limits.h>
27304 # include <assert.h>
27307 #undef gethostbyname_r
27309 /* Override any GCC internal prototype to avoid an error.
27310 Use char because int might match the return type of a GCC
27311 builtin and then its argument prototype would still apply. */
27315 char gethostbyname_r ();
27316 /* The GNU C library defines this for functions which it implements
27317 to always fail with ENOSYS. Some functions are actually named
27318 something starting with __ and the normal name is an alias. */
27319 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
27326 return gethostbyname_r ();
27331 rm -f conftest.$ac_objext conftest$ac_exeext
27332 if { (ac_try="$ac_link"
27333 case "(($ac_try" in
27334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27335 *) ac_try_echo=$ac_try;;
27337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27338 (eval "$ac_link") 2>conftest.er1
27340 grep -v '^ *+' conftest.er1 >conftest.err
27342 cat conftest.err >&5
27343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27344 (exit $ac_status); } && {
27345 test -z "$ac_c_werror_flag" ||
27346 test ! -s conftest.err
27347 } && test -s conftest$ac_exeext &&
27348 $as_test_x conftest$ac_exeext; then
27349 ac_cv_func_gethostbyname_r=yes
27351 echo "$as_me: failed program was:" >&5
27352 sed 's/^/| /' conftest.$ac_ext >&5
27354 ac_cv_func_gethostbyname_r=no
27357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27358 conftest$ac_exeext conftest.$ac_ext
27360 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
27361 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
27362 if test $ac_cv_func_gethostbyname_r = yes; then
27363 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
27364 echo "${ECHO_T}using libc's resolver" >&6; }
27367 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
27368 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
27369 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
27370 echo $ECHO_N "(cached) $ECHO_C" >&6
27372 ac_check_lib_save_LIBS=$LIBS
27374 cat >conftest.$ac_ext <<_ACEOF
27377 cat confdefs.h >>conftest.$ac_ext
27378 cat >>conftest.$ac_ext <<_ACEOF
27379 /* end confdefs.h. */
27381 /* Override any GCC internal prototype to avoid an error.
27382 Use char because int might match the return type of a GCC
27383 builtin and then its argument prototype would still apply. */
27387 char gethostbyname_r ();
27391 return gethostbyname_r ();
27396 rm -f conftest.$ac_objext conftest$ac_exeext
27397 if { (ac_try="$ac_link"
27398 case "(($ac_try" in
27399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27400 *) ac_try_echo=$ac_try;;
27402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27403 (eval "$ac_link") 2>conftest.er1
27405 grep -v '^ *+' conftest.er1 >conftest.err
27407 cat conftest.err >&5
27408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409 (exit $ac_status); } && {
27410 test -z "$ac_c_werror_flag" ||
27411 test ! -s conftest.err
27412 } && test -s conftest$ac_exeext &&
27413 $as_test_x conftest$ac_exeext; then
27414 ac_cv_lib_nsl_gethostbyname_r=yes
27416 echo "$as_me: failed program was:" >&5
27417 sed 's/^/| /' conftest.$ac_ext >&5
27419 ac_cv_lib_nsl_gethostbyname_r=no
27422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27423 conftest$ac_exeext conftest.$ac_ext
27424 LIBS=$ac_check_lib_save_LIBS
27426 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27427 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27428 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
27429 cat >>confdefs.h <<_ACEOF
27430 #define HAVE_LIBNSL 1
27438 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
27439 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
27440 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
27441 echo $ECHO_N "(cached) $ECHO_C" >&6
27443 ac_check_lib_save_LIBS=$LIBS
27444 LIBS="-lresolv $LIBS"
27445 cat >conftest.$ac_ext <<_ACEOF
27448 cat confdefs.h >>conftest.$ac_ext
27449 cat >>conftest.$ac_ext <<_ACEOF
27450 /* end confdefs.h. */
27452 /* Override any GCC internal prototype to avoid an error.
27453 Use char because int might match the return type of a GCC
27454 builtin and then its argument prototype would still apply. */
27458 char gethostbyname_r ();
27462 return gethostbyname_r ();
27467 rm -f conftest.$ac_objext conftest$ac_exeext
27468 if { (ac_try="$ac_link"
27469 case "(($ac_try" in
27470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27471 *) ac_try_echo=$ac_try;;
27473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27474 (eval "$ac_link") 2>conftest.er1
27476 grep -v '^ *+' conftest.er1 >conftest.err
27478 cat conftest.err >&5
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); } && {
27481 test -z "$ac_c_werror_flag" ||
27482 test ! -s conftest.err
27483 } && test -s conftest$ac_exeext &&
27484 $as_test_x conftest$ac_exeext; then
27485 ac_cv_lib_resolv_gethostbyname_r=yes
27487 echo "$as_me: failed program was:" >&5
27488 sed 's/^/| /' conftest.$ac_ext >&5
27490 ac_cv_lib_resolv_gethostbyname_r=no
27493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27494 conftest$ac_exeext conftest.$ac_ext
27495 LIBS=$ac_check_lib_save_LIBS
27497 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27498 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27499 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
27500 cat >>confdefs.h <<_ACEOF
27501 #define HAVE_LIBRESOLV 1
27504 LIBS="-lresolv $LIBS"
27514 for ac_func in inet_pton
27516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27517 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27520 echo $ECHO_N "(cached) $ECHO_C" >&6
27522 cat >conftest.$ac_ext <<_ACEOF
27525 cat confdefs.h >>conftest.$ac_ext
27526 cat >>conftest.$ac_ext <<_ACEOF
27527 /* end confdefs.h. */
27528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27530 #define $ac_func innocuous_$ac_func
27532 /* System header to define __stub macros and hopefully few prototypes,
27533 which can conflict with char $ac_func (); below.
27534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27535 <limits.h> exists even on freestanding compilers. */
27538 # include <limits.h>
27540 # include <assert.h>
27545 /* Override any GCC internal prototype to avoid an error.
27546 Use char because int might match the return type of a GCC
27547 builtin and then its argument prototype would still apply. */
27552 /* The GNU C library defines this for functions which it implements
27553 to always fail with ENOSYS. Some functions are actually named
27554 something starting with __ and the normal name is an alias. */
27555 #if defined __stub_$ac_func || defined __stub___$ac_func
27562 return $ac_func ();
27567 rm -f conftest.$ac_objext conftest$ac_exeext
27568 if { (ac_try="$ac_link"
27569 case "(($ac_try" in
27570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27571 *) ac_try_echo=$ac_try;;
27573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27574 (eval "$ac_link") 2>conftest.er1
27576 grep -v '^ *+' conftest.er1 >conftest.err
27578 cat conftest.err >&5
27579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27580 (exit $ac_status); } && {
27581 test -z "$ac_c_werror_flag" ||
27582 test ! -s conftest.err
27583 } && test -s conftest$ac_exeext &&
27584 $as_test_x conftest$ac_exeext; then
27585 eval "$as_ac_var=yes"
27587 echo "$as_me: failed program was:" >&5
27588 sed 's/^/| /' conftest.$ac_ext >&5
27590 eval "$as_ac_var=no"
27593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27594 conftest$ac_exeext conftest.$ac_ext
27596 ac_res=`eval echo '${'$as_ac_var'}'`
27597 { echo "$as_me:$LINENO: result: $ac_res" >&5
27598 echo "${ECHO_T}$ac_res" >&6; }
27599 if test `eval echo '${'$as_ac_var'}'` = yes; then
27600 cat >>confdefs.h <<_ACEOF
27601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27603 cat >>confdefs.h <<\_ACEOF
27604 #define HAVE_INET_PTON 1
27611 for ac_func in inet_ntop
27613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27614 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27616 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27617 echo $ECHO_N "(cached) $ECHO_C" >&6
27619 cat >conftest.$ac_ext <<_ACEOF
27622 cat confdefs.h >>conftest.$ac_ext
27623 cat >>conftest.$ac_ext <<_ACEOF
27624 /* end confdefs.h. */
27625 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27626 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27627 #define $ac_func innocuous_$ac_func
27629 /* System header to define __stub macros and hopefully few prototypes,
27630 which can conflict with char $ac_func (); below.
27631 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27632 <limits.h> exists even on freestanding compilers. */
27635 # include <limits.h>
27637 # include <assert.h>
27642 /* Override any GCC internal prototype to avoid an error.
27643 Use char because int might match the return type of a GCC
27644 builtin and then its argument prototype would still apply. */
27649 /* The GNU C library defines this for functions which it implements
27650 to always fail with ENOSYS. Some functions are actually named
27651 something starting with __ and the normal name is an alias. */
27652 #if defined __stub_$ac_func || defined __stub___$ac_func
27659 return $ac_func ();
27664 rm -f conftest.$ac_objext conftest$ac_exeext
27665 if { (ac_try="$ac_link"
27666 case "(($ac_try" in
27667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27668 *) ac_try_echo=$ac_try;;
27670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27671 (eval "$ac_link") 2>conftest.er1
27673 grep -v '^ *+' conftest.er1 >conftest.err
27675 cat conftest.err >&5
27676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27677 (exit $ac_status); } && {
27678 test -z "$ac_c_werror_flag" ||
27679 test ! -s conftest.err
27680 } && test -s conftest$ac_exeext &&
27681 $as_test_x conftest$ac_exeext; then
27682 eval "$as_ac_var=yes"
27684 echo "$as_me: failed program was:" >&5
27685 sed 's/^/| /' conftest.$ac_ext >&5
27687 eval "$as_ac_var=no"
27690 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27691 conftest$ac_exeext conftest.$ac_ext
27693 ac_res=`eval echo '${'$as_ac_var'}'`
27694 { echo "$as_me:$LINENO: result: $ac_res" >&5
27695 echo "${ECHO_T}$ac_res" >&6; }
27696 if test `eval echo '${'$as_ac_var'}'` = yes; then
27697 cat >>confdefs.h <<_ACEOF
27698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27700 cat >>confdefs.h <<\_ACEOF
27701 #define HAVE_INET_NTOP 1
27708 for ac_func in gethostbyname2
27710 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27711 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27712 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27713 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27714 echo $ECHO_N "(cached) $ECHO_C" >&6
27716 cat >conftest.$ac_ext <<_ACEOF
27719 cat confdefs.h >>conftest.$ac_ext
27720 cat >>conftest.$ac_ext <<_ACEOF
27721 /* end confdefs.h. */
27722 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27723 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27724 #define $ac_func innocuous_$ac_func
27726 /* System header to define __stub macros and hopefully few prototypes,
27727 which can conflict with char $ac_func (); below.
27728 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27729 <limits.h> exists even on freestanding compilers. */
27732 # include <limits.h>
27734 # include <assert.h>
27739 /* Override any GCC internal prototype to avoid an error.
27740 Use char because int might match the return type of a GCC
27741 builtin and then its argument prototype would still apply. */
27746 /* The GNU C library defines this for functions which it implements
27747 to always fail with ENOSYS. Some functions are actually named
27748 something starting with __ and the normal name is an alias. */
27749 #if defined __stub_$ac_func || defined __stub___$ac_func
27756 return $ac_func ();
27761 rm -f conftest.$ac_objext conftest$ac_exeext
27762 if { (ac_try="$ac_link"
27763 case "(($ac_try" in
27764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27765 *) ac_try_echo=$ac_try;;
27767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27768 (eval "$ac_link") 2>conftest.er1
27770 grep -v '^ *+' conftest.er1 >conftest.err
27772 cat conftest.err >&5
27773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27774 (exit $ac_status); } && {
27775 test -z "$ac_c_werror_flag" ||
27776 test ! -s conftest.err
27777 } && test -s conftest$ac_exeext &&
27778 $as_test_x conftest$ac_exeext; then
27779 eval "$as_ac_var=yes"
27781 echo "$as_me: failed program was:" >&5
27782 sed 's/^/| /' conftest.$ac_ext >&5
27784 eval "$as_ac_var=no"
27787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27788 conftest$ac_exeext conftest.$ac_ext
27790 ac_res=`eval echo '${'$as_ac_var'}'`
27791 { echo "$as_me:$LINENO: result: $ac_res" >&5
27792 echo "${ECHO_T}$ac_res" >&6; }
27793 if test `eval echo '${'$as_ac_var'}'` = yes; then
27794 cat >>confdefs.h <<_ACEOF
27795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27797 cat >>confdefs.h <<\_ACEOF
27798 #define HAVE_GETHOSTBYNAME2 1
27805 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27806 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
27807 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27808 echo $ECHO_N "(cached) $ECHO_C" >&6
27810 cat >conftest.$ac_ext <<_ACEOF
27813 cat confdefs.h >>conftest.$ac_ext
27814 cat >>conftest.$ac_ext <<_ACEOF
27815 /* end confdefs.h. */
27816 #include <sys/socket.h>
27820 struct sockaddr s; s.sa_len;
27825 rm -f conftest.$ac_objext
27826 if { (ac_try="$ac_compile"
27827 case "(($ac_try" in
27828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27829 *) ac_try_echo=$ac_try;;
27831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27832 (eval "$ac_compile") 2>conftest.er1
27834 grep -v '^ *+' conftest.er1 >conftest.err
27836 cat conftest.err >&5
27837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27838 (exit $ac_status); } && {
27839 test -z "$ac_c_werror_flag" ||
27840 test ! -s conftest.err
27841 } && test -s conftest.$ac_objext; then
27842 ac_cv_struct_sockaddr_sa_len=yes
27844 echo "$as_me: failed program was:" >&5
27845 sed 's/^/| /' conftest.$ac_ext >&5
27847 ac_cv_struct_sockaddr_sa_len=no
27850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27852 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27853 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
27855 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27857 cat >>confdefs.h <<\_ACEOF
27858 #define HAVE_SA_LEN 1
27867 for ac_func in strftime
27869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27870 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27872 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27873 echo $ECHO_N "(cached) $ECHO_C" >&6
27875 cat >conftest.$ac_ext <<_ACEOF
27878 cat confdefs.h >>conftest.$ac_ext
27879 cat >>conftest.$ac_ext <<_ACEOF
27880 /* end confdefs.h. */
27881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27883 #define $ac_func innocuous_$ac_func
27885 /* System header to define __stub macros and hopefully few prototypes,
27886 which can conflict with char $ac_func (); below.
27887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27888 <limits.h> exists even on freestanding compilers. */
27891 # include <limits.h>
27893 # include <assert.h>
27898 /* Override any GCC internal prototype to avoid an error.
27899 Use char because int might match the return type of a GCC
27900 builtin and then its argument prototype would still apply. */
27905 /* The GNU C library defines this for functions which it implements
27906 to always fail with ENOSYS. Some functions are actually named
27907 something starting with __ and the normal name is an alias. */
27908 #if defined __stub_$ac_func || defined __stub___$ac_func
27915 return $ac_func ();
27920 rm -f conftest.$ac_objext conftest$ac_exeext
27921 if { (ac_try="$ac_link"
27922 case "(($ac_try" in
27923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27924 *) ac_try_echo=$ac_try;;
27926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27927 (eval "$ac_link") 2>conftest.er1
27929 grep -v '^ *+' conftest.er1 >conftest.err
27931 cat conftest.err >&5
27932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27933 (exit $ac_status); } && {
27934 test -z "$ac_c_werror_flag" ||
27935 test ! -s conftest.err
27936 } && test -s conftest$ac_exeext &&
27937 $as_test_x conftest$ac_exeext; then
27938 eval "$as_ac_var=yes"
27940 echo "$as_me: failed program was:" >&5
27941 sed 's/^/| /' conftest.$ac_ext >&5
27943 eval "$as_ac_var=no"
27946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27947 conftest$ac_exeext conftest.$ac_ext
27949 ac_res=`eval echo '${'$as_ac_var'}'`
27950 { echo "$as_me:$LINENO: result: $ac_res" >&5
27951 echo "${ECHO_T}$ac_res" >&6; }
27952 if test `eval echo '${'$as_ac_var'}'` = yes; then
27953 cat >>confdefs.h <<_ACEOF
27954 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27958 # strftime is in -lintl on SCO UNIX.
27959 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27960 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
27961 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27962 echo $ECHO_N "(cached) $ECHO_C" >&6
27964 ac_check_lib_save_LIBS=$LIBS
27965 LIBS="-lintl $LIBS"
27966 cat >conftest.$ac_ext <<_ACEOF
27969 cat confdefs.h >>conftest.$ac_ext
27970 cat >>conftest.$ac_ext <<_ACEOF
27971 /* end confdefs.h. */
27973 /* Override any GCC internal prototype to avoid an error.
27974 Use char because int might match the return type of a GCC
27975 builtin and then its argument prototype would still apply. */
27983 return strftime ();
27988 rm -f conftest.$ac_objext conftest$ac_exeext
27989 if { (ac_try="$ac_link"
27990 case "(($ac_try" in
27991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27992 *) ac_try_echo=$ac_try;;
27994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27995 (eval "$ac_link") 2>conftest.er1
27997 grep -v '^ *+' conftest.er1 >conftest.err
27999 cat conftest.err >&5
28000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28001 (exit $ac_status); } && {
28002 test -z "$ac_c_werror_flag" ||
28003 test ! -s conftest.err
28004 } && test -s conftest$ac_exeext &&
28005 $as_test_x conftest$ac_exeext; then
28006 ac_cv_lib_intl_strftime=yes
28008 echo "$as_me: failed program was:" >&5
28009 sed 's/^/| /' conftest.$ac_ext >&5
28011 ac_cv_lib_intl_strftime=no
28014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28015 conftest$ac_exeext conftest.$ac_ext
28016 LIBS=$ac_check_lib_save_LIBS
28018 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
28019 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
28020 if test $ac_cv_lib_intl_strftime = yes; then
28021 cat >>confdefs.h <<\_ACEOF
28022 #define HAVE_STRFTIME 1
28025 LIBS="-lintl $LIBS"
28032 for ac_func in vprintf
28034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28038 echo $ECHO_N "(cached) $ECHO_C" >&6
28040 cat >conftest.$ac_ext <<_ACEOF
28043 cat confdefs.h >>conftest.$ac_ext
28044 cat >>conftest.$ac_ext <<_ACEOF
28045 /* end confdefs.h. */
28046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28048 #define $ac_func innocuous_$ac_func
28050 /* System header to define __stub macros and hopefully few prototypes,
28051 which can conflict with char $ac_func (); below.
28052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28053 <limits.h> exists even on freestanding compilers. */
28056 # include <limits.h>
28058 # include <assert.h>
28063 /* Override any GCC internal prototype to avoid an error.
28064 Use char because int might match the return type of a GCC
28065 builtin and then its argument prototype would still apply. */
28070 /* The GNU C library defines this for functions which it implements
28071 to always fail with ENOSYS. Some functions are actually named
28072 something starting with __ and the normal name is an alias. */
28073 #if defined __stub_$ac_func || defined __stub___$ac_func
28080 return $ac_func ();
28085 rm -f conftest.$ac_objext conftest$ac_exeext
28086 if { (ac_try="$ac_link"
28087 case "(($ac_try" in
28088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28089 *) ac_try_echo=$ac_try;;
28091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28092 (eval "$ac_link") 2>conftest.er1
28094 grep -v '^ *+' conftest.er1 >conftest.err
28096 cat conftest.err >&5
28097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28098 (exit $ac_status); } && {
28099 test -z "$ac_c_werror_flag" ||
28100 test ! -s conftest.err
28101 } && test -s conftest$ac_exeext &&
28102 $as_test_x conftest$ac_exeext; then
28103 eval "$as_ac_var=yes"
28105 echo "$as_me: failed program was:" >&5
28106 sed 's/^/| /' conftest.$ac_ext >&5
28108 eval "$as_ac_var=no"
28111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28112 conftest$ac_exeext conftest.$ac_ext
28114 ac_res=`eval echo '${'$as_ac_var'}'`
28115 { echo "$as_me:$LINENO: result: $ac_res" >&5
28116 echo "${ECHO_T}$ac_res" >&6; }
28117 if test `eval echo '${'$as_ac_var'}'` = yes; then
28118 cat >>confdefs.h <<_ACEOF
28119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28122 { echo "$as_me:$LINENO: checking for _doprnt" >&5
28123 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
28124 if test "${ac_cv_func__doprnt+set}" = set; then
28125 echo $ECHO_N "(cached) $ECHO_C" >&6
28127 cat >conftest.$ac_ext <<_ACEOF
28130 cat confdefs.h >>conftest.$ac_ext
28131 cat >>conftest.$ac_ext <<_ACEOF
28132 /* end confdefs.h. */
28133 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
28134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28135 #define _doprnt innocuous__doprnt
28137 /* System header to define __stub macros and hopefully few prototypes,
28138 which can conflict with char _doprnt (); below.
28139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28140 <limits.h> exists even on freestanding compilers. */
28143 # include <limits.h>
28145 # include <assert.h>
28150 /* Override any GCC internal prototype to avoid an error.
28151 Use char because int might match the return type of a GCC
28152 builtin and then its argument prototype would still apply. */
28157 /* The GNU C library defines this for functions which it implements
28158 to always fail with ENOSYS. Some functions are actually named
28159 something starting with __ and the normal name is an alias. */
28160 #if defined __stub__doprnt || defined __stub____doprnt
28172 rm -f conftest.$ac_objext conftest$ac_exeext
28173 if { (ac_try="$ac_link"
28174 case "(($ac_try" in
28175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28176 *) ac_try_echo=$ac_try;;
28178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28179 (eval "$ac_link") 2>conftest.er1
28181 grep -v '^ *+' conftest.er1 >conftest.err
28183 cat conftest.err >&5
28184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28185 (exit $ac_status); } && {
28186 test -z "$ac_c_werror_flag" ||
28187 test ! -s conftest.err
28188 } && test -s conftest$ac_exeext &&
28189 $as_test_x conftest$ac_exeext; then
28190 ac_cv_func__doprnt=yes
28192 echo "$as_me: failed program was:" >&5
28193 sed 's/^/| /' conftest.$ac_ext >&5
28195 ac_cv_func__doprnt=no
28198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28199 conftest$ac_exeext conftest.$ac_ext
28201 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
28202 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
28203 if test $ac_cv_func__doprnt = yes; then
28205 cat >>confdefs.h <<\_ACEOF
28206 #define HAVE_DOPRNT 1
28215 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28216 # for constant arguments. Useless!
28217 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
28218 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
28219 if test "${ac_cv_working_alloca_h+set}" = set; then
28220 echo $ECHO_N "(cached) $ECHO_C" >&6
28222 cat >conftest.$ac_ext <<_ACEOF
28225 cat confdefs.h >>conftest.$ac_ext
28226 cat >>conftest.$ac_ext <<_ACEOF
28227 /* end confdefs.h. */
28228 #include <alloca.h>
28232 char *p = (char *) alloca (2 * sizeof (int));
28238 rm -f conftest.$ac_objext conftest$ac_exeext
28239 if { (ac_try="$ac_link"
28240 case "(($ac_try" in
28241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28242 *) ac_try_echo=$ac_try;;
28244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28245 (eval "$ac_link") 2>conftest.er1
28247 grep -v '^ *+' conftest.er1 >conftest.err
28249 cat conftest.err >&5
28250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28251 (exit $ac_status); } && {
28252 test -z "$ac_c_werror_flag" ||
28253 test ! -s conftest.err
28254 } && test -s conftest$ac_exeext &&
28255 $as_test_x conftest$ac_exeext; then
28256 ac_cv_working_alloca_h=yes
28258 echo "$as_me: failed program was:" >&5
28259 sed 's/^/| /' conftest.$ac_ext >&5
28261 ac_cv_working_alloca_h=no
28264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28265 conftest$ac_exeext conftest.$ac_ext
28267 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
28268 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
28269 if test $ac_cv_working_alloca_h = yes; then
28271 cat >>confdefs.h <<\_ACEOF
28272 #define HAVE_ALLOCA_H 1
28277 { echo "$as_me:$LINENO: checking for alloca" >&5
28278 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
28279 if test "${ac_cv_func_alloca_works+set}" = set; then
28280 echo $ECHO_N "(cached) $ECHO_C" >&6
28282 cat >conftest.$ac_ext <<_ACEOF
28285 cat confdefs.h >>conftest.$ac_ext
28286 cat >>conftest.$ac_ext <<_ACEOF
28287 /* end confdefs.h. */
28289 # define alloca __builtin_alloca
28292 # include <malloc.h>
28293 # define alloca _alloca
28295 # ifdef HAVE_ALLOCA_H
28296 # include <alloca.h>
28301 # ifndef alloca /* predefined by HP cc +Olibcalls */
28312 char *p = (char *) alloca (1);
28318 rm -f conftest.$ac_objext conftest$ac_exeext
28319 if { (ac_try="$ac_link"
28320 case "(($ac_try" in
28321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28322 *) ac_try_echo=$ac_try;;
28324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28325 (eval "$ac_link") 2>conftest.er1
28327 grep -v '^ *+' conftest.er1 >conftest.err
28329 cat conftest.err >&5
28330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28331 (exit $ac_status); } && {
28332 test -z "$ac_c_werror_flag" ||
28333 test ! -s conftest.err
28334 } && test -s conftest$ac_exeext &&
28335 $as_test_x conftest$ac_exeext; then
28336 ac_cv_func_alloca_works=yes
28338 echo "$as_me: failed program was:" >&5
28339 sed 's/^/| /' conftest.$ac_ext >&5
28341 ac_cv_func_alloca_works=no
28344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28345 conftest$ac_exeext conftest.$ac_ext
28347 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
28348 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
28350 if test $ac_cv_func_alloca_works = yes; then
28352 cat >>confdefs.h <<\_ACEOF
28353 #define HAVE_ALLOCA 1
28357 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28358 # that cause trouble. Some versions do not even contain alloca or
28359 # contain a buggy version. If you still want to use their alloca,
28360 # use ar to extract alloca.o from them instead of compiling alloca.c.
28362 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28364 cat >>confdefs.h <<\_ACEOF
28369 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
28370 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
28371 if test "${ac_cv_os_cray+set}" = set; then
28372 echo $ECHO_N "(cached) $ECHO_C" >&6
28374 cat >conftest.$ac_ext <<_ACEOF
28377 cat confdefs.h >>conftest.$ac_ext
28378 cat >>conftest.$ac_ext <<_ACEOF
28379 /* end confdefs.h. */
28380 #if defined CRAY && ! defined CRAY2
28387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28388 $EGREP "webecray" >/dev/null 2>&1; then
28396 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
28397 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
28398 if test $ac_cv_os_cray = yes; then
28399 for ac_func in _getb67 GETB67 getb67; do
28400 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28401 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28402 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28403 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28404 echo $ECHO_N "(cached) $ECHO_C" >&6
28406 cat >conftest.$ac_ext <<_ACEOF
28409 cat confdefs.h >>conftest.$ac_ext
28410 cat >>conftest.$ac_ext <<_ACEOF
28411 /* end confdefs.h. */
28412 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28414 #define $ac_func innocuous_$ac_func
28416 /* System header to define __stub macros and hopefully few prototypes,
28417 which can conflict with char $ac_func (); below.
28418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28419 <limits.h> exists even on freestanding compilers. */
28422 # include <limits.h>
28424 # include <assert.h>
28429 /* Override any GCC internal prototype to avoid an error.
28430 Use char because int might match the return type of a GCC
28431 builtin and then its argument prototype would still apply. */
28436 /* The GNU C library defines this for functions which it implements
28437 to always fail with ENOSYS. Some functions are actually named
28438 something starting with __ and the normal name is an alias. */
28439 #if defined __stub_$ac_func || defined __stub___$ac_func
28446 return $ac_func ();
28451 rm -f conftest.$ac_objext conftest$ac_exeext
28452 if { (ac_try="$ac_link"
28453 case "(($ac_try" in
28454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28455 *) ac_try_echo=$ac_try;;
28457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28458 (eval "$ac_link") 2>conftest.er1
28460 grep -v '^ *+' conftest.er1 >conftest.err
28462 cat conftest.err >&5
28463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28464 (exit $ac_status); } && {
28465 test -z "$ac_c_werror_flag" ||
28466 test ! -s conftest.err
28467 } && test -s conftest$ac_exeext &&
28468 $as_test_x conftest$ac_exeext; then
28469 eval "$as_ac_var=yes"
28471 echo "$as_me: failed program was:" >&5
28472 sed 's/^/| /' conftest.$ac_ext >&5
28474 eval "$as_ac_var=no"
28477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28478 conftest$ac_exeext conftest.$ac_ext
28480 ac_res=`eval echo '${'$as_ac_var'}'`
28481 { echo "$as_me:$LINENO: result: $ac_res" >&5
28482 echo "${ECHO_T}$ac_res" >&6; }
28483 if test `eval echo '${'$as_ac_var'}'` = yes; then
28485 cat >>confdefs.h <<_ACEOF
28486 #define CRAY_STACKSEG_END $ac_func
28495 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
28496 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
28497 if test "${ac_cv_c_stack_direction+set}" = set; then
28498 echo $ECHO_N "(cached) $ECHO_C" >&6
28500 if test "$cross_compiling" = yes; then
28501 ac_cv_c_stack_direction=0
28503 cat >conftest.$ac_ext <<_ACEOF
28506 cat confdefs.h >>conftest.$ac_ext
28507 cat >>conftest.$ac_ext <<_ACEOF
28508 /* end confdefs.h. */
28509 $ac_includes_default
28511 find_stack_direction ()
28513 static char *addr = 0;
28518 return find_stack_direction ();
28521 return (&dummy > addr) ? 1 : -1;
28527 return find_stack_direction () < 0;
28530 rm -f conftest$ac_exeext
28531 if { (ac_try="$ac_link"
28532 case "(($ac_try" in
28533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28534 *) ac_try_echo=$ac_try;;
28536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28537 (eval "$ac_link") 2>&5
28539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28541 { (case "(($ac_try" in
28542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28543 *) ac_try_echo=$ac_try;;
28545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28546 (eval "$ac_try") 2>&5
28548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28549 (exit $ac_status); }; }; then
28550 ac_cv_c_stack_direction=1
28552 echo "$as_me: program exited with status $ac_status" >&5
28553 echo "$as_me: failed program was:" >&5
28554 sed 's/^/| /' conftest.$ac_ext >&5
28556 ( exit $ac_status )
28557 ac_cv_c_stack_direction=-1
28559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28564 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
28565 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
28567 cat >>confdefs.h <<_ACEOF
28568 #define STACK_DIRECTION $ac_cv_c_stack_direction
28574 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28575 # -lseq on Dynix/PTX, -lgen on Unixware.
28576 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
28577 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
28578 if test "${ac_cv_search_getmntent+set}" = set; then
28579 echo $ECHO_N "(cached) $ECHO_C" >&6
28581 ac_func_search_save_LIBS=$LIBS
28582 cat >conftest.$ac_ext <<_ACEOF
28585 cat confdefs.h >>conftest.$ac_ext
28586 cat >>conftest.$ac_ext <<_ACEOF
28587 /* end confdefs.h. */
28589 /* Override any GCC internal prototype to avoid an error.
28590 Use char because int might match the return type of a GCC
28591 builtin and then its argument prototype would still apply. */
28599 return getmntent ();
28604 for ac_lib in '' sun seq gen; do
28605 if test -z "$ac_lib"; then
28606 ac_res="none required"
28609 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28611 rm -f conftest.$ac_objext conftest$ac_exeext
28612 if { (ac_try="$ac_link"
28613 case "(($ac_try" in
28614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28615 *) ac_try_echo=$ac_try;;
28617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28618 (eval "$ac_link") 2>conftest.er1
28620 grep -v '^ *+' conftest.er1 >conftest.err
28622 cat conftest.err >&5
28623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28624 (exit $ac_status); } && {
28625 test -z "$ac_c_werror_flag" ||
28626 test ! -s conftest.err
28627 } && test -s conftest$ac_exeext &&
28628 $as_test_x conftest$ac_exeext; then
28629 ac_cv_search_getmntent=$ac_res
28631 echo "$as_me: failed program was:" >&5
28632 sed 's/^/| /' conftest.$ac_ext >&5
28637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28639 if test "${ac_cv_search_getmntent+set}" = set; then
28643 if test "${ac_cv_search_getmntent+set}" = set; then
28646 ac_cv_search_getmntent=no
28648 rm conftest.$ac_ext
28649 LIBS=$ac_func_search_save_LIBS
28651 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28652 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28653 ac_res=$ac_cv_search_getmntent
28654 if test "$ac_res" != no; then
28655 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28656 ac_cv_func_getmntent=yes
28658 cat >>confdefs.h <<\_ACEOF
28659 #define HAVE_GETMNTENT 1
28663 ac_cv_func_getmntent=no
28667 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28668 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
28669 if test "${ac_cv_func_closedir_void+set}" = set; then
28670 echo $ECHO_N "(cached) $ECHO_C" >&6
28672 if test "$cross_compiling" = yes; then
28673 ac_cv_func_closedir_void=yes
28675 cat >conftest.$ac_ext <<_ACEOF
28678 cat confdefs.h >>conftest.$ac_ext
28679 cat >>conftest.$ac_ext <<_ACEOF
28680 /* end confdefs.h. */
28681 $ac_includes_default
28682 #include <$ac_header_dirent>
28683 #ifndef __cplusplus
28690 return closedir (opendir (".")) != 0;
28695 rm -f conftest$ac_exeext
28696 if { (ac_try="$ac_link"
28697 case "(($ac_try" in
28698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28699 *) ac_try_echo=$ac_try;;
28701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28702 (eval "$ac_link") 2>&5
28704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28706 { (case "(($ac_try" in
28707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28708 *) ac_try_echo=$ac_try;;
28710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28711 (eval "$ac_try") 2>&5
28713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714 (exit $ac_status); }; }; then
28715 ac_cv_func_closedir_void=no
28717 echo "$as_me: program exited with status $ac_status" >&5
28718 echo "$as_me: failed program was:" >&5
28719 sed 's/^/| /' conftest.$ac_ext >&5
28721 ( exit $ac_status )
28722 ac_cv_func_closedir_void=yes
28724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28729 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28730 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
28731 if test $ac_cv_func_closedir_void = yes; then
28733 cat >>confdefs.h <<\_ACEOF
28734 #define CLOSEDIR_VOID 1
28739 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28740 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
28741 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28742 echo $ECHO_N "(cached) $ECHO_C" >&6
28744 if test "$cross_compiling" = yes; then
28745 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28746 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28747 { (exit 1); exit 1; }; }
28749 cat >conftest.$ac_ext <<_ACEOF
28752 cat confdefs.h >>conftest.$ac_ext
28753 cat >>conftest.$ac_ext <<_ACEOF
28754 /* end confdefs.h. */
28755 $ac_includes_default
28759 /* If this system has a BSD-style setpgrp which takes arguments,
28760 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28761 exit successfully. */
28762 return setpgrp (1,1) != -1;
28767 rm -f conftest$ac_exeext
28768 if { (ac_try="$ac_link"
28769 case "(($ac_try" in
28770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28771 *) ac_try_echo=$ac_try;;
28773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28774 (eval "$ac_link") 2>&5
28776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28778 { (case "(($ac_try" in
28779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28780 *) ac_try_echo=$ac_try;;
28782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28783 (eval "$ac_try") 2>&5
28785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786 (exit $ac_status); }; }; then
28787 ac_cv_func_setpgrp_void=no
28789 echo "$as_me: program exited with status $ac_status" >&5
28790 echo "$as_me: failed program was:" >&5
28791 sed 's/^/| /' conftest.$ac_ext >&5
28793 ( exit $ac_status )
28794 ac_cv_func_setpgrp_void=yes
28796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28801 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28802 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
28803 if test $ac_cv_func_setpgrp_void = yes; then
28805 cat >>confdefs.h <<\_ACEOF
28806 #define SETPGRP_VOID 1
28810 # AC_FUNC_FNMATCH dnl use local version
28813 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28814 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
28815 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28816 echo $ECHO_N "(cached) $ECHO_C" >&6
28818 ac_check_lib_save_LIBS=$LIBS
28819 LIBS="-lintl $LIBS"
28820 cat >conftest.$ac_ext <<_ACEOF
28823 cat confdefs.h >>conftest.$ac_ext
28824 cat >>conftest.$ac_ext <<_ACEOF
28825 /* end confdefs.h. */
28827 /* Override any GCC internal prototype to avoid an error.
28828 Use char because int might match the return type of a GCC
28829 builtin and then its argument prototype would still apply. */
28842 rm -f conftest.$ac_objext conftest$ac_exeext
28843 if { (ac_try="$ac_link"
28844 case "(($ac_try" in
28845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28846 *) ac_try_echo=$ac_try;;
28848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28849 (eval "$ac_link") 2>conftest.er1
28851 grep -v '^ *+' conftest.er1 >conftest.err
28853 cat conftest.err >&5
28854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28855 (exit $ac_status); } && {
28856 test -z "$ac_c_werror_flag" ||
28857 test ! -s conftest.err
28858 } && test -s conftest$ac_exeext &&
28859 $as_test_x conftest$ac_exeext; then
28860 ac_cv_lib_intl_gettext=yes
28862 echo "$as_me: failed program was:" >&5
28863 sed 's/^/| /' conftest.$ac_ext >&5
28865 ac_cv_lib_intl_gettext=no
28868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28869 conftest$ac_exeext conftest.$ac_ext
28870 LIBS=$ac_check_lib_save_LIBS
28872 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28873 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
28874 if test $ac_cv_lib_intl_gettext = yes; then
28875 LIBS="$LIBS -lintl"
28881 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28882 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
28883 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28884 echo $ECHO_N "(cached) $ECHO_C" >&6
28886 ac_check_lib_save_LIBS=$LIBS
28888 cat >conftest.$ac_ext <<_ACEOF
28891 cat confdefs.h >>conftest.$ac_ext
28892 cat >>conftest.$ac_ext <<_ACEOF
28893 /* end confdefs.h. */
28895 /* Override any GCC internal prototype to avoid an error.
28896 Use char because int might match the return type of a GCC
28897 builtin and then its argument prototype would still apply. */
28905 return getpwnam ();
28910 rm -f conftest.$ac_objext conftest$ac_exeext
28911 if { (ac_try="$ac_link"
28912 case "(($ac_try" in
28913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28914 *) ac_try_echo=$ac_try;;
28916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28917 (eval "$ac_link") 2>conftest.er1
28919 grep -v '^ *+' conftest.er1 >conftest.err
28921 cat conftest.err >&5
28922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28923 (exit $ac_status); } && {
28924 test -z "$ac_c_werror_flag" ||
28925 test ! -s conftest.err
28926 } && test -s conftest$ac_exeext &&
28927 $as_test_x conftest$ac_exeext; then
28928 ac_cv_lib_sun_getpwnam=yes
28930 echo "$as_me: failed program was:" >&5
28931 sed 's/^/| /' conftest.$ac_ext >&5
28933 ac_cv_lib_sun_getpwnam=no
28936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28937 conftest$ac_exeext conftest.$ac_ext
28938 LIBS=$ac_check_lib_save_LIBS
28940 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
28941 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
28942 if test $ac_cv_lib_sun_getpwnam = yes; then
28943 cat >>confdefs.h <<_ACEOF
28944 #define HAVE_LIBSUN 1
28953 for ac_header in zlib.h
28955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28960 echo $ECHO_N "(cached) $ECHO_C" >&6
28962 ac_res=`eval echo '${'$as_ac_Header'}'`
28963 { echo "$as_me:$LINENO: result: $ac_res" >&5
28964 echo "${ECHO_T}$ac_res" >&6; }
28966 # Is the header compilable?
28967 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28969 cat >conftest.$ac_ext <<_ACEOF
28972 cat confdefs.h >>conftest.$ac_ext
28973 cat >>conftest.$ac_ext <<_ACEOF
28974 /* end confdefs.h. */
28975 $ac_includes_default
28976 #include <$ac_header>
28978 rm -f conftest.$ac_objext
28979 if { (ac_try="$ac_compile"
28980 case "(($ac_try" in
28981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28982 *) ac_try_echo=$ac_try;;
28984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28985 (eval "$ac_compile") 2>conftest.er1
28987 grep -v '^ *+' conftest.er1 >conftest.err
28989 cat conftest.err >&5
28990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28991 (exit $ac_status); } && {
28992 test -z "$ac_c_werror_flag" ||
28993 test ! -s conftest.err
28994 } && test -s conftest.$ac_objext; then
28995 ac_header_compiler=yes
28997 echo "$as_me: failed program was:" >&5
28998 sed 's/^/| /' conftest.$ac_ext >&5
29000 ac_header_compiler=no
29003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29005 echo "${ECHO_T}$ac_header_compiler" >&6; }
29007 # Is the header present?
29008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29010 cat >conftest.$ac_ext <<_ACEOF
29013 cat confdefs.h >>conftest.$ac_ext
29014 cat >>conftest.$ac_ext <<_ACEOF
29015 /* end confdefs.h. */
29016 #include <$ac_header>
29018 if { (ac_try="$ac_cpp conftest.$ac_ext"
29019 case "(($ac_try" in
29020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29021 *) ac_try_echo=$ac_try;;
29023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29024 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29026 grep -v '^ *+' conftest.er1 >conftest.err
29028 cat conftest.err >&5
29029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030 (exit $ac_status); } >/dev/null && {
29031 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29032 test ! -s conftest.err
29034 ac_header_preproc=yes
29036 echo "$as_me: failed program was:" >&5
29037 sed 's/^/| /' conftest.$ac_ext >&5
29039 ac_header_preproc=no
29042 rm -f conftest.err conftest.$ac_ext
29043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29044 echo "${ECHO_T}$ac_header_preproc" >&6; }
29046 # So? What about this header?
29047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29053 ac_header_preproc=yes
29056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29059 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29063 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29071 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29074 echo $ECHO_N "(cached) $ECHO_C" >&6
29076 eval "$as_ac_Header=\$ac_header_preproc"
29078 ac_res=`eval echo '${'$as_ac_Header'}'`
29079 { echo "$as_me:$LINENO: result: $ac_res" >&5
29080 echo "${ECHO_T}$ac_res" >&6; }
29083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29084 cat >>confdefs.h <<_ACEOF
29085 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29092 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
29093 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
29094 if test "${ac_cv_lib_z_deflate+set}" = set; then
29095 echo $ECHO_N "(cached) $ECHO_C" >&6
29097 ac_check_lib_save_LIBS=$LIBS
29099 cat >conftest.$ac_ext <<_ACEOF
29102 cat confdefs.h >>conftest.$ac_ext
29103 cat >>conftest.$ac_ext <<_ACEOF
29104 /* end confdefs.h. */
29106 /* Override any GCC internal prototype to avoid an error.
29107 Use char because int might match the return type of a GCC
29108 builtin and then its argument prototype would still apply. */
29121 rm -f conftest.$ac_objext conftest$ac_exeext
29122 if { (ac_try="$ac_link"
29123 case "(($ac_try" in
29124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29125 *) ac_try_echo=$ac_try;;
29127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29128 (eval "$ac_link") 2>conftest.er1
29130 grep -v '^ *+' conftest.er1 >conftest.err
29132 cat conftest.err >&5
29133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29134 (exit $ac_status); } && {
29135 test -z "$ac_c_werror_flag" ||
29136 test ! -s conftest.err
29137 } && test -s conftest$ac_exeext &&
29138 $as_test_x conftest$ac_exeext; then
29139 ac_cv_lib_z_deflate=yes
29141 echo "$as_me: failed program was:" >&5
29142 sed 's/^/| /' conftest.$ac_ext >&5
29144 ac_cv_lib_z_deflate=no
29147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29148 conftest$ac_exeext conftest.$ac_ext
29149 LIBS=$ac_check_lib_save_LIBS
29151 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29152 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29153 if test $ac_cv_lib_z_deflate = yes; then
29158 if test x$FDLIBS = x-lz; then
29159 cat >>confdefs.h <<\_ACEOF
29160 #define HAVE_LIBZ 1
29167 # Check for ACL libraries
29170 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29171 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29172 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29173 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29174 echo $ECHO_N "(cached) $ECHO_C" >&6
29176 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29177 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29179 # Is the header compilable?
29180 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
29181 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
29182 cat >conftest.$ac_ext <<_ACEOF
29185 cat confdefs.h >>conftest.$ac_ext
29186 cat >>conftest.$ac_ext <<_ACEOF
29187 /* end confdefs.h. */
29188 $ac_includes_default
29189 #include <sys/acl.h>
29191 rm -f conftest.$ac_objext
29192 if { (ac_try="$ac_compile"
29193 case "(($ac_try" in
29194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29195 *) ac_try_echo=$ac_try;;
29197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29198 (eval "$ac_compile") 2>conftest.er1
29200 grep -v '^ *+' conftest.er1 >conftest.err
29202 cat conftest.err >&5
29203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29204 (exit $ac_status); } && {
29205 test -z "$ac_c_werror_flag" ||
29206 test ! -s conftest.err
29207 } && test -s conftest.$ac_objext; then
29208 ac_header_compiler=yes
29210 echo "$as_me: failed program was:" >&5
29211 sed 's/^/| /' conftest.$ac_ext >&5
29213 ac_header_compiler=no
29216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29217 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29218 echo "${ECHO_T}$ac_header_compiler" >&6; }
29220 # Is the header present?
29221 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
29222 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
29223 cat >conftest.$ac_ext <<_ACEOF
29226 cat confdefs.h >>conftest.$ac_ext
29227 cat >>conftest.$ac_ext <<_ACEOF
29228 /* end confdefs.h. */
29229 #include <sys/acl.h>
29231 if { (ac_try="$ac_cpp conftest.$ac_ext"
29232 case "(($ac_try" in
29233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29234 *) ac_try_echo=$ac_try;;
29236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29237 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29239 grep -v '^ *+' conftest.er1 >conftest.err
29241 cat conftest.err >&5
29242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29243 (exit $ac_status); } >/dev/null && {
29244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29245 test ! -s conftest.err
29247 ac_header_preproc=yes
29249 echo "$as_me: failed program was:" >&5
29250 sed 's/^/| /' conftest.$ac_ext >&5
29252 ac_header_preproc=no
29255 rm -f conftest.err conftest.$ac_ext
29256 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29257 echo "${ECHO_T}$ac_header_preproc" >&6; }
29259 # So? What about this header?
29260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29262 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
29263 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29264 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
29265 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
29266 ac_header_preproc=yes
29269 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
29270 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
29271 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
29272 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
29273 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
29274 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
29275 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
29276 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
29277 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
29278 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
29279 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
29280 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
29284 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
29285 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
29286 if test "${ac_cv_header_sys_acl_h+set}" = set; then
29287 echo $ECHO_N "(cached) $ECHO_C" >&6
29289 ac_cv_header_sys_acl_h=$ac_header_preproc
29291 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
29292 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
29297 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
29298 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
29299 if test "${ac_cv_func_acl_get_file+set}" = set; then
29300 echo $ECHO_N "(cached) $ECHO_C" >&6
29302 cat >conftest.$ac_ext <<_ACEOF
29305 cat confdefs.h >>conftest.$ac_ext
29306 cat >>conftest.$ac_ext <<_ACEOF
29307 /* end confdefs.h. */
29308 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
29309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29310 #define acl_get_file innocuous_acl_get_file
29312 /* System header to define __stub macros and hopefully few prototypes,
29313 which can conflict with char acl_get_file (); below.
29314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29315 <limits.h> exists even on freestanding compilers. */
29318 # include <limits.h>
29320 # include <assert.h>
29323 #undef acl_get_file
29325 /* Override any GCC internal prototype to avoid an error.
29326 Use char because int might match the return type of a GCC
29327 builtin and then its argument prototype would still apply. */
29331 char acl_get_file ();
29332 /* The GNU C library defines this for functions which it implements
29333 to always fail with ENOSYS. Some functions are actually named
29334 something starting with __ and the normal name is an alias. */
29335 #if defined __stub_acl_get_file || defined __stub___acl_get_file
29342 return acl_get_file ();
29347 rm -f conftest.$ac_objext conftest$ac_exeext
29348 if { (ac_try="$ac_link"
29349 case "(($ac_try" in
29350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29351 *) ac_try_echo=$ac_try;;
29353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29354 (eval "$ac_link") 2>conftest.er1
29356 grep -v '^ *+' conftest.er1 >conftest.err
29358 cat conftest.err >&5
29359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29360 (exit $ac_status); } && {
29361 test -z "$ac_c_werror_flag" ||
29362 test ! -s conftest.err
29363 } && test -s conftest$ac_exeext &&
29364 $as_test_x conftest$ac_exeext; then
29365 ac_cv_func_acl_get_file=yes
29367 echo "$as_me: failed program was:" >&5
29368 sed 's/^/| /' conftest.$ac_ext >&5
29370 ac_cv_func_acl_get_file=no
29373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29374 conftest$ac_exeext conftest.$ac_ext
29376 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
29377 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
29378 if test $ac_cv_func_acl_get_file = yes; then
29381 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
29382 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
29383 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
29384 echo $ECHO_N "(cached) $ECHO_C" >&6
29386 ac_check_lib_save_LIBS=$LIBS
29388 cat >conftest.$ac_ext <<_ACEOF
29391 cat confdefs.h >>conftest.$ac_ext
29392 cat >>conftest.$ac_ext <<_ACEOF
29393 /* end confdefs.h. */
29395 /* Override any GCC internal prototype to avoid an error.
29396 Use char because int might match the return type of a GCC
29397 builtin and then its argument prototype would still apply. */
29401 char acl_get_file ();
29405 return acl_get_file ();
29410 rm -f conftest.$ac_objext conftest$ac_exeext
29411 if { (ac_try="$ac_link"
29412 case "(($ac_try" in
29413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29414 *) ac_try_echo=$ac_try;;
29416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29417 (eval "$ac_link") 2>conftest.er1
29419 grep -v '^ *+' conftest.er1 >conftest.err
29421 cat conftest.err >&5
29422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29423 (exit $ac_status); } && {
29424 test -z "$ac_c_werror_flag" ||
29425 test ! -s conftest.err
29426 } && test -s conftest$ac_exeext &&
29427 $as_test_x conftest$ac_exeext; then
29428 ac_cv_lib_acl_acl_get_file=yes
29430 echo "$as_me: failed program was:" >&5
29431 sed 's/^/| /' conftest.$ac_ext >&5
29433 ac_cv_lib_acl_acl_get_file=no
29436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29437 conftest$ac_exeext conftest.$ac_ext
29438 LIBS=$ac_check_lib_save_LIBS
29440 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
29441 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
29442 if test $ac_cv_lib_acl_acl_get_file = yes; then
29443 have_acl=yes; FDLIBS="-lacl $FDLIBS"
29445 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
29446 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
29447 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
29448 echo $ECHO_N "(cached) $ECHO_C" >&6
29450 ac_check_lib_save_LIBS=$LIBS
29452 cat >conftest.$ac_ext <<_ACEOF
29455 cat confdefs.h >>conftest.$ac_ext
29456 cat >>conftest.$ac_ext <<_ACEOF
29457 /* end confdefs.h. */
29459 /* Override any GCC internal prototype to avoid an error.
29460 Use char because int might match the return type of a GCC
29461 builtin and then its argument prototype would still apply. */
29469 return acltotext ();
29474 rm -f conftest.$ac_objext conftest$ac_exeext
29475 if { (ac_try="$ac_link"
29476 case "(($ac_try" in
29477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29478 *) ac_try_echo=$ac_try;;
29480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29481 (eval "$ac_link") 2>conftest.er1
29483 grep -v '^ *+' conftest.er1 >conftest.err
29485 cat conftest.err >&5
29486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487 (exit $ac_status); } && {
29488 test -z "$ac_c_werror_flag" ||
29489 test ! -s conftest.err
29490 } && test -s conftest$ac_exeext &&
29491 $as_test_x conftest$ac_exeext; then
29492 ac_cv_lib_sec_acltotext=yes
29494 echo "$as_me: failed program was:" >&5
29495 sed 's/^/| /' conftest.$ac_ext >&5
29497 ac_cv_lib_sec_acltotext=no
29500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29501 conftest$ac_exeext conftest.$ac_ext
29502 LIBS=$ac_check_lib_save_LIBS
29504 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
29505 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
29506 if test $ac_cv_lib_sec_acltotext = yes; then
29507 have_acl=yes; FDLIBS="-lsec $FDLIBS"
29516 if test $have_acl = yes; then
29517 cat >>confdefs.h <<\_ACEOF
29524 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29525 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29526 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29527 echo $ECHO_N "(cached) $ECHO_C" >&6
29529 ac_check_lib_save_LIBS=$LIBS
29530 LIBS="-lpthread $LIBS"
29531 cat >conftest.$ac_ext <<_ACEOF
29534 cat confdefs.h >>conftest.$ac_ext
29535 cat >>conftest.$ac_ext <<_ACEOF
29536 /* end confdefs.h. */
29538 /* Override any GCC internal prototype to avoid an error.
29539 Use char because int might match the return type of a GCC
29540 builtin and then its argument prototype would still apply. */
29544 char pthread_create ();
29548 return pthread_create ();
29553 rm -f conftest.$ac_objext conftest$ac_exeext
29554 if { (ac_try="$ac_link"
29555 case "(($ac_try" in
29556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29557 *) ac_try_echo=$ac_try;;
29559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29560 (eval "$ac_link") 2>conftest.er1
29562 grep -v '^ *+' conftest.er1 >conftest.err
29564 cat conftest.err >&5
29565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29566 (exit $ac_status); } && {
29567 test -z "$ac_c_werror_flag" ||
29568 test ! -s conftest.err
29569 } && test -s conftest$ac_exeext &&
29570 $as_test_x conftest$ac_exeext; then
29571 ac_cv_lib_pthread_pthread_create=yes
29573 echo "$as_me: failed program was:" >&5
29574 sed 's/^/| /' conftest.$ac_ext >&5
29576 ac_cv_lib_pthread_pthread_create=no
29579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29580 conftest$ac_exeext conftest.$ac_ext
29581 LIBS=$ac_check_lib_save_LIBS
29583 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29584 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29585 if test $ac_cv_lib_pthread_pthread_create = yes; then
29586 PTHREAD_LIB="-lpthread"
29588 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
29589 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
29590 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
29591 echo $ECHO_N "(cached) $ECHO_C" >&6
29593 ac_check_lib_save_LIBS=$LIBS
29594 LIBS="-lpthreads $LIBS"
29595 cat >conftest.$ac_ext <<_ACEOF
29598 cat confdefs.h >>conftest.$ac_ext
29599 cat >>conftest.$ac_ext <<_ACEOF
29600 /* end confdefs.h. */
29602 /* Override any GCC internal prototype to avoid an error.
29603 Use char because int might match the return type of a GCC
29604 builtin and then its argument prototype would still apply. */
29608 char pthread_create ();
29612 return pthread_create ();
29617 rm -f conftest.$ac_objext conftest$ac_exeext
29618 if { (ac_try="$ac_link"
29619 case "(($ac_try" in
29620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29621 *) ac_try_echo=$ac_try;;
29623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29624 (eval "$ac_link") 2>conftest.er1
29626 grep -v '^ *+' conftest.er1 >conftest.err
29628 cat conftest.err >&5
29629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630 (exit $ac_status); } && {
29631 test -z "$ac_c_werror_flag" ||
29632 test ! -s conftest.err
29633 } && test -s conftest$ac_exeext &&
29634 $as_test_x conftest$ac_exeext; then
29635 ac_cv_lib_pthreads_pthread_create=yes
29637 echo "$as_me: failed program was:" >&5
29638 sed 's/^/| /' conftest.$ac_ext >&5
29640 ac_cv_lib_pthreads_pthread_create=no
29643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29644 conftest$ac_exeext conftest.$ac_ext
29645 LIBS=$ac_check_lib_save_LIBS
29647 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29648 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29649 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29650 PTHREAD_LIB="-lpthreads"
29652 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29653 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29654 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29655 echo $ECHO_N "(cached) $ECHO_C" >&6
29657 ac_check_lib_save_LIBS=$LIBS
29659 cat >conftest.$ac_ext <<_ACEOF
29662 cat confdefs.h >>conftest.$ac_ext
29663 cat >>conftest.$ac_ext <<_ACEOF
29664 /* end confdefs.h. */
29666 /* Override any GCC internal prototype to avoid an error.
29667 Use char because int might match the return type of a GCC
29668 builtin and then its argument prototype would still apply. */
29672 char pthread_create ();
29676 return pthread_create ();
29681 rm -f conftest.$ac_objext conftest$ac_exeext
29682 if { (ac_try="$ac_link"
29683 case "(($ac_try" in
29684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29685 *) ac_try_echo=$ac_try;;
29687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29688 (eval "$ac_link") 2>conftest.er1
29690 grep -v '^ *+' conftest.er1 >conftest.err
29692 cat conftest.err >&5
29693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29694 (exit $ac_status); } && {
29695 test -z "$ac_c_werror_flag" ||
29696 test ! -s conftest.err
29697 } && test -s conftest$ac_exeext &&
29698 $as_test_x conftest$ac_exeext; then
29699 ac_cv_lib_c_r_pthread_create=yes
29701 echo "$as_me: failed program was:" >&5
29702 sed 's/^/| /' conftest.$ac_ext >&5
29704 ac_cv_lib_c_r_pthread_create=no
29707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29708 conftest$ac_exeext conftest.$ac_ext
29709 LIBS=$ac_check_lib_save_LIBS
29711 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29712 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
29713 if test $ac_cv_lib_c_r_pthread_create = yes; then
29714 PTHREAD_LIB="-lc_r"
29716 { echo "$as_me:$LINENO: checking for pthread_create" >&5
29717 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
29718 if test "${ac_cv_func_pthread_create+set}" = set; then
29719 echo $ECHO_N "(cached) $ECHO_C" >&6
29721 cat >conftest.$ac_ext <<_ACEOF
29724 cat confdefs.h >>conftest.$ac_ext
29725 cat >>conftest.$ac_ext <<_ACEOF
29726 /* end confdefs.h. */
29727 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29728 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29729 #define pthread_create innocuous_pthread_create
29731 /* System header to define __stub macros and hopefully few prototypes,
29732 which can conflict with char pthread_create (); below.
29733 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29734 <limits.h> exists even on freestanding compilers. */
29737 # include <limits.h>
29739 # include <assert.h>
29742 #undef pthread_create
29744 /* Override any GCC internal prototype to avoid an error.
29745 Use char because int might match the return type of a GCC
29746 builtin and then its argument prototype would still apply. */
29750 char pthread_create ();
29751 /* The GNU C library defines this for functions which it implements
29752 to always fail with ENOSYS. Some functions are actually named
29753 something starting with __ and the normal name is an alias. */
29754 #if defined __stub_pthread_create || defined __stub___pthread_create
29761 return pthread_create ();
29766 rm -f conftest.$ac_objext conftest$ac_exeext
29767 if { (ac_try="$ac_link"
29768 case "(($ac_try" in
29769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29770 *) ac_try_echo=$ac_try;;
29772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29773 (eval "$ac_link") 2>conftest.er1
29775 grep -v '^ *+' conftest.er1 >conftest.err
29777 cat conftest.err >&5
29778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29779 (exit $ac_status); } && {
29780 test -z "$ac_c_werror_flag" ||
29781 test ! -s conftest.err
29782 } && test -s conftest$ac_exeext &&
29783 $as_test_x conftest$ac_exeext; then
29784 ac_cv_func_pthread_create=yes
29786 echo "$as_me: failed program was:" >&5
29787 sed 's/^/| /' conftest.$ac_ext >&5
29789 ac_cv_func_pthread_create=no
29792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29793 conftest$ac_exeext conftest.$ac_ext
29795 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29796 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
29809 cat >>confdefs.h <<\_ACEOF
29815 CFLAGS=${CFLAGS--O}
29817 if test x$have_gcc = xyes ; then
29818 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29819 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29821 LDFLAGS=${LDFLAGS--O}
29822 DB_LIBS="${SQL_LFLAGS}"
29823 CPPFLAGS="$CPPFLAGS"
29851 # Finally we set appropriate distribution specific
29852 # variables and defaults
29854 # PFILES are platform specific files
29855 PFILES="platforms/Makefile"
29859 hostname=`uname -n | cut -d '.' -f 1`
29860 if test x${hostname} = x ; then
29861 hostname="localhost"
29863 case "$DISTNAME" in
29866 PSCMD="ps -e -o pid,comm"
29867 PFILES="${PFILES} \
29868 platforms/aix/Makefile"
29869 TAPEDRIVE="/dev/rmt0.1"
29873 PTHREAD_LIB="-lpthread -lexc"
29874 if test "${CC}" = "gcc" ; then
29881 TAPEDRIVE="/dev/nrmt0"
29884 DISTVER=`uname -a |awk '{print $3}'`
29885 TAPEDRIVE="/dev/nrmt0"
29886 PTHREAD_LIB="-pthread"
29887 CFLAGS="${CFLAGS} -pthread"
29888 PSCMD="ps -ax -o pid,command"
29891 PFILES="${PFILES} \
29892 platforms/bsdi/Makefile \
29893 platforms/bsdi/bacula-fd \
29894 platforms/bsdi/bacula-sd \
29895 platforms/bsdi/bacula-dir"
29896 largefile_support="yes"
29899 DISTVER=`uname -a |awk '{print $3}'`
29900 TAPEDRIVE="/dev/nrst0"
29902 WCFLAGS="-mwindows"
29903 WLDFLAGS="-mwindows"
29907 TAPEDRIVE="/dev/nst0"
29908 PSCMD="ps -e -o pid,command"
29910 PFILES="${PFILES} \
29911 platforms/darwin/Makefile"
29914 DISTVER=`cat /etc/debian_version`
29915 TAPEDRIVE="/dev/nrst0"
29916 PSCMD="ps -e -o pid,command"
29917 PFILES="${PFILES} \
29918 platforms/debian/Makefile \
29919 platforms/debian/bacula-fd \
29920 platforms/debian/bacula-sd \
29921 platforms/debian/bacula-dir"
29924 DISTVER=`uname -a |awk '{print $3}'`
29925 VER=`echo $DISTVER | cut -c 1`
29926 if test x$VER = x4 ; then
29927 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29928 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29932 TAPEDRIVE="/dev/nrsa0"
29933 PSCMD="ps -ax -o pid,command"
29934 PFILES="${PFILES} \
29935 platforms/freebsd/Makefile \
29936 platforms/freebsd/bacula-fd \
29937 platforms/freebsd/bacula-sd \
29938 platforms/freebsd/bacula-dir"
29939 largefile_support="yes"
29942 PSCMD="UNIX95=1; ps -e -o pid,comm"
29943 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29945 TAPEDRIVE="/dev/rmt/0hnb"
29946 PTHREAD_LIB="-lpthread"
29947 cat >>confdefs.h <<\_ACEOF
29948 #define _INCLUDE_LONGLONG 1
29954 TAPEDRIVE="/dev/rmt/0cbn"
29955 PSCMD="ps -e -o pid,comm"
29956 PFILES="${PFILES} \
29957 platforms/irix/Makefile \
29958 platforms/irix/bacula-fd \
29959 platforms/irix/bacula-sd \
29960 platforms/irix/bacula-dir"
29963 DISTVER=`uname -a |awk '{print $3}'`
29966 TAPEDRIVE="/dev/nrst0"
29967 PSCMD="ps -ax -o pid,command"
29968 PTHREAD_LIB="-pthread"
29969 CFLAGS="${CFLAGS} -pthread"
29972 DISTVER=`uname -a |awk '{print $3}'`
29975 TAPEDRIVE="/dev/nrst0"
29976 PSCMD="ps -ax -o pid,command"
29977 PTHREAD_LIB="-pthread"
29978 CFLAGS="${CFLAGS} -pthread"
29979 PFILES="${PFILES} \
29980 platforms/openbsd/Makefile \
29981 platforms/openbsd/bacula-fd \
29982 platforms/openbsd/bacula-sd \
29983 platforms/openbsd/bacula-dir"
29986 if test -f /etc/whitebox-release ; then
29987 f=/etc/whitebox-release
29989 f=/etc/redhat-release
29991 if test `cat $f | grep release |\
29992 cut -f 3 -d ' '`x = "Enterprise"x ; then
29993 DISTVER="Enterprise "`cat $f | grep release |\
29996 DISTVER=`cat /etc/redhat-release | grep release |\
29999 TAPEDRIVE="/dev/nst0"
30000 PSCMD="ps -e -o pid,command"
30001 PFILES="${PFILES} \
30002 platforms/redhat/Makefile \
30003 platforms/redhat/bacula-fd \
30004 platforms/redhat/bacula-sd \
30005 platforms/redhat/bacula-dir \
30006 platforms/redhat/bacula.spec \
30010 DISTVER=`cat /etc/mandrake-release | grep release |\
30012 TAPEDRIVE="/dev/nst0"
30013 PSCMD="ps -e -o pid,command"
30014 PFILES="${PFILES} \
30015 platforms/mandrake/Makefile \
30016 platforms/mandrake/bacula-fd \
30017 platforms/mandrake/bacula-sd \
30018 platforms/mandrake/bacula-dir \
30019 platforms/mandrake/bacula.spec \
30023 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30024 TAPEDRIVE="/dev/nst0"
30025 PSCMD="ps -e -o pid,command"
30026 PFILES="${PFILES} \
30027 platforms/gentoo/Makefile \
30028 platforms/gentoo/bacula-init \
30029 platforms/gentoo/bacula-fd \
30030 platforms/gentoo/bacula-sd \
30031 platforms/gentoo/bacula-dir"
30034 DISTVER=`cat /etc/slackware-version`
30035 TAPEDRIVE="/dev/nst0"
30036 PSCMD="ps -e -o pid,command"
30037 PFILES="${PFILES} \
30038 platforms/slackware/Makefile \
30039 platforms/slackware/rc.bacula-fd \
30040 platforms/slackware/rc.bacula-sd \
30041 platforms/slackware/rc.bacula-dir\
30042 platforms/slackware/functions.bacula"
30046 TAPEDRIVE="/dev/rmt/0cbn"
30047 PSCMD="ps -e -o pid,comm"
30048 PFILES="${PFILES} \
30049 platforms/solaris/Makefile \
30050 platforms/solaris/bacula-fd \
30051 platforms/solaris/bacula-sd \
30052 platforms/solaris/bacula-dir"
30053 if test x$DISTVER = x5.6 ; then
30054 cat >>confdefs.h <<\_ACEOF
30055 #define HAVE_OLD_SOCKOPT 1
30059 LIBS="$LIBS -lresolv"
30062 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30064 TAPEDRIVE="/dev/nst0"
30065 PSCMD="ps -e -o pid,command"
30066 PFILES="${PFILES} \
30067 platforms/suse/Makefile \
30068 platforms/suse/bacula-fd \
30069 platforms/suse/bacula-sd \
30070 platforms/suse/bacula-dir \
30071 platforms/suse/bacula \
30072 platforms/suse/bacula.spec"
30077 TAPEDRIVE="/dev/nst0"
30078 PSCMD="ps -e -o pid,command"
30079 PFILES="${PFILES} \
30080 platforms/suse/Makefile \
30081 platforms/suse/bacula-fd \
30082 platforms/suse/bacula-sd \
30083 platforms/suse/bacula-dir"
30087 TAPEDRIVE="/dev/nst0"
30090 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30096 LIBS="$PTHREAD_LIB $LIBS"
30098 cat >>confdefs.h <<_ACEOF
30102 cat >>confdefs.h <<_ACEOF
30113 MCOMMON=./autoconf/Make.common
30116 if test "x${subsysdir}" = "x${sbindir}" ; then
30119 echo "You have set both --sbindir and --with-subsys-dir"
30120 echo " equal to: ${subsysdir} "
30121 echo "This is not permitted. Please reconfigure."
30123 echo "Aborting configuration ..."
30129 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/bgnome-console.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile po/Makefile.in $PFILES"
30131 ac_config_commands="$ac_config_commands default"
30133 cat >confcache <<\_ACEOF
30134 # This file is a shell script that caches the results of configure
30135 # tests run on this system so they can be shared between configure
30136 # scripts and configure runs, see configure's option --config-cache.
30137 # It is not useful on other systems. If it contains results you don't
30138 # want to keep, you may remove or edit it.
30140 # config.status only pays attention to the cache file if you give it
30141 # the --recheck option to rerun configure.
30143 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30144 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30145 # following values.
30149 # The following way of writing the cache mishandles newlines in values,
30150 # but we know of no workaround that is simple, portable, and efficient.
30151 # So, we kill variables containing newlines.
30152 # Ultrix sh set writes to stderr and can't be redirected directly,
30153 # and sets the high bit in the cache file unless we assign to the vars.
30155 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30156 eval ac_val=\$$ac_var
30160 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
30161 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
30164 _ | IFS | as_nl) ;; #(
30165 *) $as_unset $ac_var ;;
30171 case $as_nl`(ac_space=' '; set) 2>&1` in #(
30172 *${as_nl}ac_space=\ *)
30173 # `set' does not quote correctly, so add quotes (double-quote
30174 # substitution turns \\\\ into \\, and sed turns \\ into \).
30177 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30180 # `set' quotes correctly as required by POSIX, so do not add quotes.
30181 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30190 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30192 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30194 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30195 if test -w "$cache_file"; then
30196 test "x$cache_file" != "x/dev/null" &&
30197 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
30198 echo "$as_me: updating cache $cache_file" >&6;}
30199 cat confcache >$cache_file
30201 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
30202 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30207 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30208 # Let make expand exec_prefix.
30209 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30211 DEFS=-DHAVE_CONFIG_H
30215 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30216 # 1. Remove the extension, and $U if already installed.
30217 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30218 ac_i=`echo "$ac_i" | sed "$ac_script"`
30219 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
30220 # will be set to the directory where LIBOBJS objects are built.
30221 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30222 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
30224 LIBOBJS=$ac_libobjs
30226 LTLIBOBJS=$ac_ltlibobjs
30230 : ${CONFIG_STATUS=./config.status}
30231 ac_clean_files_save=$ac_clean_files
30232 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30233 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30234 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30235 cat >$CONFIG_STATUS <<_ACEOF
30237 # Generated by $as_me.
30238 # Run this file to recreate the current configuration.
30239 # Compiler output produced by configure, useful for debugging
30240 # configure, is in config.log if it exists.
30243 ac_cs_recheck=false
30245 SHELL=\${CONFIG_SHELL-$SHELL}
30248 cat >>$CONFIG_STATUS <<\_ACEOF
30249 ## --------------------- ##
30250 ## M4sh Initialization. ##
30251 ## --------------------- ##
30253 # Be more Bourne compatible
30254 DUALCASE=1; export DUALCASE # for MKS sh
30255 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30258 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30259 # is contrary to our usage. Disable this feature.
30260 alias -g '${1+"$@"}'='"$@"'
30261 setopt NO_GLOB_SUBST
30263 case `(set -o) 2>/dev/null` in
30264 *posix*) set -o posix ;;
30273 # Avoid depending upon Character Ranges.
30274 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30275 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30276 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30277 as_cr_digits='0123456789'
30278 as_cr_alnum=$as_cr_Letters$as_cr_digits
30280 # The user is always right.
30281 if test "${PATH_SEPARATOR+set}" != set; then
30282 echo "#! /bin/sh" >conf$$.sh
30283 echo "exit 0" >>conf$$.sh
30285 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30293 # Support unset when possible.
30294 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30302 # We need space, tab and new line, in precisely that order. Quoting is
30303 # there to prevent editors from complaining about space-tab.
30304 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30305 # splitting by setting IFS to empty value.)
30310 # Find who we are. Look in the path if we contain no directory separator.
30312 *[\\/]* ) as_myself=$0 ;;
30313 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30314 for as_dir in $PATH
30317 test -z "$as_dir" && as_dir=.
30318 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30324 # We did not find ourselves, most probably we were run as `sh COMMAND'
30325 # in which case we are not to be found in the path.
30326 if test "x$as_myself" = x; then
30329 if test ! -f "$as_myself"; then
30330 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30331 { (exit 1); exit 1; }
30334 # Work around bugs in pre-3.0 UWIN ksh.
30335 for as_var in ENV MAIL MAILPATH
30336 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30344 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30345 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30346 LC_TELEPHONE LC_TIME
30348 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30349 eval $as_var=C; export $as_var
30351 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
30355 # Required to use basename.
30356 if expr a : '\(a\)' >/dev/null 2>&1 &&
30357 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30363 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30364 as_basename=basename
30370 # Name of the executable.
30371 as_me=`$as_basename -- "$0" ||
30372 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30373 X"$0" : 'X\(//\)$' \| \
30374 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30376 sed '/^.*\/\([^/][^/]*\)\/*$/{
30395 as_lineno_1=$LINENO
30396 as_lineno_2=$LINENO
30397 test "x$as_lineno_1" != "x$as_lineno_2" &&
30398 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
30400 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30401 # uniformly replaced by the line number. The first 'sed' inserts a
30402 # line-number line after each line using $LINENO; the second 'sed'
30403 # does the real work. The second script uses 'N' to pair each
30404 # line-number line with the line containing $LINENO, and appends
30405 # trailing '-' during substitution so that $LINENO is not a special
30406 # case at line end.
30407 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30408 # scripts with optimization help from Paolo Bonzini. Blame Lee
30409 # E. McMahon (1931-1989) for sed's syntax. :-)
30421 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
30424 ' >$as_me.lineno &&
30425 chmod +x "$as_me.lineno" ||
30426 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
30427 { (exit 1); exit 1; }; }
30429 # Don't try to exec as it changes $[0], causing all sort of problems
30430 # (the dirname of $[0] is not the place where we might find the
30431 # original and so on. Autoconf is especially sensitive to this).
30432 . "./$as_me.lineno"
30433 # Exit status is that of the last command.
30438 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30444 ECHO_C= ECHO_N= ECHO_T=
30445 case `echo -n x` in
30447 case `echo 'x\c'` in
30448 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
30455 if expr a : '\(a\)' >/dev/null 2>&1 &&
30456 test "X`expr 00001 : '.*\(...\)'`" = X001; then
30462 rm -f conf$$ conf$$.exe conf$$.file
30463 if test -d conf$$.dir; then
30464 rm -f conf$$.dir/conf$$.file
30470 if ln -s conf$$.file conf$$ 2>/dev/null; then
30472 # ... but there are two gotchas:
30473 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30474 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30475 # In both cases, we have to default to `cp -p'.
30476 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30478 elif ln conf$$.file conf$$ 2>/dev/null; then
30483 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30484 rmdir conf$$.dir 2>/dev/null
30486 if mkdir -p . 2>/dev/null; then
30489 test -d ./-p && rmdir ./-p
30493 if test -x / >/dev/null 2>&1; then
30494 as_test_x='test -x'
30496 if ls -dL / >/dev/null 2>&1; then
30503 if test -d "$1"; then
30509 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
30510 ???[sx]*):;;*)false;;esac;fi
30514 as_executable_p=$as_test_x
30516 # Sed expression to map a string onto a valid CPP name.
30517 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30519 # Sed expression to map a string onto a valid variable name.
30520 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30525 # Save the log message, to keep $[0] and so on meaningful, and to
30526 # report actual input values of CONFIG_FILES etc. instead of their
30527 # values after options handling.
30529 This file was extended by $as_me, which was
30530 generated by GNU Autoconf 2.61. Invocation command line was
30532 CONFIG_FILES = $CONFIG_FILES
30533 CONFIG_HEADERS = $CONFIG_HEADERS
30534 CONFIG_LINKS = $CONFIG_LINKS
30535 CONFIG_COMMANDS = $CONFIG_COMMANDS
30538 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30543 cat >>$CONFIG_STATUS <<_ACEOF
30544 # Files that config.status was made for.
30545 config_files="$ac_config_files"
30546 config_headers="$ac_config_headers"
30547 config_commands="$ac_config_commands"
30551 cat >>$CONFIG_STATUS <<\_ACEOF
30553 \`$as_me' instantiates files from templates according to the
30554 current configuration.
30556 Usage: $0 [OPTIONS] [FILE]...
30558 -h, --help print this help, then exit
30559 -V, --version print version number and configuration settings, then exit
30560 -q, --quiet do not print progress messages
30561 -d, --debug don't remove temporary files
30562 --recheck update $as_me by reconfiguring in the same conditions
30563 --file=FILE[:TEMPLATE]
30564 instantiate the configuration file FILE
30565 --header=FILE[:TEMPLATE]
30566 instantiate the configuration header FILE
30568 Configuration files:
30571 Configuration headers:
30574 Configuration commands:
30577 Report bugs to <bug-autoconf@gnu.org>."
30580 cat >>$CONFIG_STATUS <<_ACEOF
30583 configured by $0, generated by GNU Autoconf 2.61,
30584 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30586 Copyright (C) 2006 Free Software Foundation, Inc.
30587 This config.status script is free software; the Free Software Foundation
30588 gives unlimited permission to copy, distribute and modify it."
30595 cat >>$CONFIG_STATUS <<\_ACEOF
30596 # If no file are specified by the user, then we need to provide default
30597 # value. By we need to know if files were specified by the user.
30603 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30604 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30615 # Handling of the options.
30616 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30618 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30619 echo "$ac_cs_version"; exit ;;
30620 --debug | --debu | --deb | --de | --d | -d )
30622 --file | --fil | --fi | --f )
30624 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30625 ac_need_defaults=false;;
30626 --header | --heade | --head | --hea )
30628 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30629 ac_need_defaults=false;;
30631 # Conflict between --help and --header
30632 { echo "$as_me: error: ambiguous option: $1
30633 Try \`$0 --help' for more information." >&2
30634 { (exit 1); exit 1; }; };;
30635 --help | --hel | -h )
30636 echo "$ac_cs_usage"; exit ;;
30637 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30638 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30641 # This is an error.
30642 -*) { echo "$as_me: error: unrecognized option: $1
30643 Try \`$0 --help' for more information." >&2
30644 { (exit 1); exit 1; }; } ;;
30646 *) ac_config_targets="$ac_config_targets $1"
30647 ac_need_defaults=false ;;
30653 ac_configure_extra_args=
30655 if $ac_cs_silent; then
30657 ac_configure_extra_args="$ac_configure_extra_args --silent"
30661 cat >>$CONFIG_STATUS <<_ACEOF
30662 if \$ac_cs_recheck; then
30663 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30664 CONFIG_SHELL=$SHELL
30665 export CONFIG_SHELL
30666 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30670 cat >>$CONFIG_STATUS <<\_ACEOF
30674 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30675 ## Running $as_me. ##
30681 cat >>$CONFIG_STATUS <<_ACEOF
30685 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30686 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30688 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30689 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30690 LINGUAS="${LINGUAS-%UNSET%}"
30695 cat >>$CONFIG_STATUS <<\_ACEOF
30697 # Handling of arguments.
30698 for ac_config_target in $ac_config_targets
30700 case $ac_config_target in
30701 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30702 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30703 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30704 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30705 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30706 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30707 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30708 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30709 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30710 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30711 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30712 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30713 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30714 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30715 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30716 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30717 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30718 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30719 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30720 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30721 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30722 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30723 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30724 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30725 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30726 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30727 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30728 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30729 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30730 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30731 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30732 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30733 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30734 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30735 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30736 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30737 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30738 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30739 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30740 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30741 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30742 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30743 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30744 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30745 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30746 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
30747 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30748 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30749 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30750 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30751 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30752 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30753 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30754 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30755 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30756 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30757 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30758 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30759 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30760 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30761 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30762 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30763 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30764 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30765 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30766 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30767 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30768 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30769 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30770 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30771 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30772 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30773 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30774 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30775 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30776 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30777 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30778 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30779 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30780 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30781 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30782 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30783 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30784 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30785 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30786 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30787 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30788 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30789 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30790 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30791 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30792 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30793 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30794 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30795 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30796 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30797 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30798 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30799 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30800 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30801 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30802 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30803 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30804 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30805 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30806 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30808 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30809 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30810 { (exit 1); exit 1; }; };;
30815 # If the user did not use the arguments to specify the items to instantiate,
30816 # then the envvar interface is used. Set only those that are not.
30817 # We use the long form for the default assignment because of an extremely
30818 # bizarre bug on SunOS 4.1.3.
30819 if $ac_need_defaults; then
30820 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30821 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30822 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30825 # Have a temporary directory for convenience. Make it in the build tree
30826 # simply because there is no reason against having it here, and in addition,
30827 # creating and moving files from /tmp can sometimes cause problems.
30828 # Hook for its removal unless debugging.
30829 # Note that there is a small window in which the directory will not be cleaned:
30830 # after its creation but before its name has been assigned to `$tmp'.
30834 trap 'exit_status=$?
30835 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30837 trap '{ (exit 1); exit 1; }' 1 2 13 15
30839 # Create a (secure) tmp directory for tmp files.
30842 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30843 test -n "$tmp" && test -d "$tmp"
30846 tmp=./conf$$-$RANDOM
30847 (umask 077 && mkdir "$tmp")
30850 echo "$me: cannot create a temporary directory in ." >&2
30851 { (exit 1); exit 1; }
30855 # Set up the sed scripts for CONFIG_FILES section.
30858 # No need to generate the scripts if there are no CONFIG_FILES.
30859 # This happens for instance when ./config.status config.h
30860 if test -n "$CONFIG_FILES"; then
30864 # Create sed commands to just substitute file output variables.
30866 # Remaining file output variables are in a fragment that also has non-file
30872 for ac_last_try in false false false false false :; do
30873 cat >conf$$subs.sed <<_ACEOF
30874 SHELL!$SHELL$ac_delim
30875 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30876 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30877 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30878 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30879 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30880 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30881 exec_prefix!$exec_prefix$ac_delim
30882 prefix!$prefix$ac_delim
30883 program_transform_name!$program_transform_name$ac_delim
30884 bindir!$bindir$ac_delim
30885 sbindir!$sbindir$ac_delim
30886 libexecdir!$libexecdir$ac_delim
30887 datarootdir!$datarootdir$ac_delim
30888 datadir!$datadir$ac_delim
30889 sysconfdir!$sysconfdir$ac_delim
30890 sharedstatedir!$sharedstatedir$ac_delim
30891 localstatedir!$localstatedir$ac_delim
30892 includedir!$includedir$ac_delim
30893 oldincludedir!$oldincludedir$ac_delim
30894 docdir!$docdir$ac_delim
30895 infodir!$infodir$ac_delim
30896 htmldir!$htmldir$ac_delim
30897 dvidir!$dvidir$ac_delim
30898 pdfdir!$pdfdir$ac_delim
30899 psdir!$psdir$ac_delim
30900 libdir!$libdir$ac_delim
30901 localedir!$localedir$ac_delim
30902 mandir!$mandir$ac_delim
30903 DEFS!$DEFS$ac_delim
30904 ECHO_C!$ECHO_C$ac_delim
30905 ECHO_N!$ECHO_N$ac_delim
30906 ECHO_T!$ECHO_T$ac_delim
30907 LIBS!$LIBS$ac_delim
30908 build_alias!$build_alias$ac_delim
30909 host_alias!$host_alias$ac_delim
30910 target_alias!$target_alias$ac_delim
30911 BUILD_DIR!$BUILD_DIR$ac_delim
30912 TOP_DIR!$TOP_DIR$ac_delim
30913 TRUEPRG!$TRUEPRG$ac_delim
30914 FALSEPRG!$FALSEPRG$ac_delim
30915 VERSION!$VERSION$ac_delim
30916 DATE!$DATE$ac_delim
30917 LSMDATE!$LSMDATE$ac_delim
30919 CFLAGS!$CFLAGS$ac_delim
30920 LDFLAGS!$LDFLAGS$ac_delim
30921 CPPFLAGS!$CPPFLAGS$ac_delim
30922 ac_ct_CC!$ac_ct_CC$ac_delim
30923 EXEEXT!$EXEEXT$ac_delim
30924 OBJEXT!$OBJEXT$ac_delim
30926 CXXFLAGS!$CXXFLAGS$ac_delim
30927 ac_ct_CXX!$ac_ct_CXX$ac_delim
30929 GREP!$GREP$ac_delim
30930 EGREP!$EGREP$ac_delim
30931 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30932 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30933 INSTALL_DATA!$INSTALL_DATA$ac_delim
30934 RANLIB!$RANLIB$ac_delim
30939 ECHO!$ECHO$ac_delim
30943 OPENSSL!$OPENSSL$ac_delim
30946 MKISOFS!$MKISOFS$ac_delim
30947 PYTHON!$PYTHON$ac_delim
30948 GROWISOFS!$GROWISOFS$ac_delim
30949 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
30950 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
30951 PKGCONFIG!$PKGCONFIG$ac_delim
30952 QMAKE!$QMAKE$ac_delim
30953 QMAKEQT4!$QMAKEQT4$ac_delim
30954 WXCONFIG!$WXCONFIG$ac_delim
30955 WXFLAGS!$WXFLAGS$ac_delim
30956 CDRECORD!$CDRECORD$ac_delim
30957 PIDOF!$PIDOF$ac_delim
30959 ARFLAGS!$ARFLAGS$ac_delim
30960 MAKE_SHELL!$MAKE_SHELL$ac_delim
30961 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
30962 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
30963 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
30964 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
30965 build!$build$ac_delim
30966 build_cpu!$build_cpu$ac_delim
30967 build_vendor!$build_vendor$ac_delim
30970 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
30972 elif $ac_last_try; then
30973 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30974 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30975 { (exit 1); exit 1; }; }
30977 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30981 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30982 if test -n "$ac_eof"; then
30983 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30984 ac_eof=`expr $ac_eof + 1`
30987 cat >>$CONFIG_STATUS <<_ACEOF
30988 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30989 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30990 /^[ ]*@MCOMMON@[ ]*$/{
30996 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30997 s/^/s,@/; s/!/@,|#_!!_#|/
31000 s/'"$ac_delim"'$/,g/; t
31002 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31003 ' >>$CONFIG_STATUS <conf$$subs.sed
31004 rm -f conf$$subs.sed
31005 cat >>$CONFIG_STATUS <<_ACEOF
31011 for ac_last_try in false false false false false :; do
31012 cat >conf$$subs.sed <<_ACEOF
31013 build_os!$build_os$ac_delim
31014 host!$host$ac_delim
31015 host_cpu!$host_cpu$ac_delim
31016 host_vendor!$host_vendor$ac_delim
31017 host_os!$host_os$ac_delim
31018 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
31019 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
31020 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
31021 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
31022 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
31023 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
31024 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
31025 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
31026 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
31027 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
31028 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
31029 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
31030 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
31031 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
31032 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
31033 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
31034 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
31035 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
31036 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
31037 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
31038 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
31039 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
31040 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
31041 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
31042 SET_MAKE!$SET_MAKE$ac_delim
31043 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
31044 USE_NLS!$USE_NLS$ac_delim
31045 MSGFMT!$MSGFMT$ac_delim
31046 GMSGFMT!$GMSGFMT$ac_delim
31047 XGETTEXT!$XGETTEXT$ac_delim
31048 MSGMERGE!$MSGMERGE$ac_delim
31049 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
31050 LIBICONV!$LIBICONV$ac_delim
31051 LTLIBICONV!$LTLIBICONV$ac_delim
31052 INTLLIBS!$INTLLIBS$ac_delim
31053 LIBINTL!$LIBINTL$ac_delim
31054 LTLIBINTL!$LTLIBINTL$ac_delim
31055 POSUB!$POSUB$ac_delim
31056 GLIBC2!$GLIBC2$ac_delim
31057 ALLOCA!$ALLOCA$ac_delim
31058 GLIBC21!$GLIBC21$ac_delim
31059 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
31060 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
31061 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
31062 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
31063 INTLBISON!$INTLBISON$ac_delim
31064 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
31065 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
31066 CATOBJEXT!$CATOBJEXT$ac_delim
31067 DATADIRNAME!$DATADIRNAME$ac_delim
31068 INSTOBJEXT!$INSTOBJEXT$ac_delim
31069 GENCAT!$GENCAT$ac_delim
31070 INTLOBJS!$INTLOBJS$ac_delim
31071 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
31072 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
31073 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
31074 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
31075 GNOME_LIBS!$GNOME_LIBS$ac_delim
31076 GNOME_DIR!$GNOME_DIR$ac_delim
31077 BAT_DIR!$BAT_DIR$ac_delim
31078 QWT_INC!$QWT_INC$ac_delim
31079 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
31080 QWT_LIB!$QWT_LIB$ac_delim
31082 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
31083 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
31084 WX_DIR!$WX_DIR$ac_delim
31085 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
31086 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
31087 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
31088 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
31089 STATIC_FD!$STATIC_FD$ac_delim
31090 STATIC_SD!$STATIC_SD$ac_delim
31091 STATIC_DIR!$STATIC_DIR$ac_delim
31092 STATIC_CONS!$STATIC_CONS$ac_delim
31093 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
31094 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
31095 ALL_DIRS!$ALL_DIRS$ac_delim
31096 DIRD_DIR!$DIRD_DIR$ac_delim
31097 DIR_TOOLS!$DIR_TOOLS$ac_delim
31098 STORED_DIR!$STORED_DIR$ac_delim
31099 CONS_INC!$CONS_INC$ac_delim
31100 CONS_OBJ!$CONS_OBJ$ac_delim
31101 CONS_SRC!$CONS_SRC$ac_delim
31102 CONS_LIBS!$CONS_LIBS$ac_delim
31103 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
31104 READLINE_SRC!$READLINE_SRC$ac_delim
31105 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
31106 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
31107 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
31108 OPENSSL_INC!$OPENSSL_INC$ac_delim
31109 working_dir!$working_dir$ac_delim
31112 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
31114 elif $ac_last_try; then
31115 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31116 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31117 { (exit 1); exit 1; }; }
31119 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31123 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31124 if test -n "$ac_eof"; then
31125 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31126 ac_eof=`expr $ac_eof + 1`
31129 cat >>$CONFIG_STATUS <<_ACEOF
31130 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
31131 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31134 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31135 s/^/s,@/; s/!/@,|#_!!_#|/
31138 s/'"$ac_delim"'$/,g/; t
31140 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31141 ' >>$CONFIG_STATUS <conf$$subs.sed
31142 rm -f conf$$subs.sed
31143 cat >>$CONFIG_STATUS <<_ACEOF
31149 for ac_last_try in false false false false false :; do
31150 cat >conf$$subs.sed <<_ACEOF
31151 archivedir!$archivedir$ac_delim
31152 scriptdir!$scriptdir$ac_delim
31153 dump_email!$dump_email$ac_delim
31154 job_email!$job_email$ac_delim
31155 smtp_host!$smtp_host$ac_delim
31156 piddir!$piddir$ac_delim
31157 subsysdir!$subsysdir$ac_delim
31158 baseport!$baseport$ac_delim
31159 dir_port!$dir_port$ac_delim
31160 fd_port!$fd_port$ac_delim
31161 sd_port!$sd_port$ac_delim
31162 dir_password!$dir_password$ac_delim
31163 fd_password!$fd_password$ac_delim
31164 sd_password!$sd_password$ac_delim
31165 mon_dir_password!$mon_dir_password$ac_delim
31166 mon_fd_password!$mon_fd_password$ac_delim
31167 mon_sd_password!$mon_sd_password$ac_delim
31168 db_name!$db_name$ac_delim
31169 db_user!$db_user$ac_delim
31170 db_password!$db_password$ac_delim
31171 dir_user!$dir_user$ac_delim
31172 dir_group!$dir_group$ac_delim
31173 sd_user!$sd_user$ac_delim
31174 sd_group!$sd_group$ac_delim
31175 fd_user!$fd_user$ac_delim
31176 fd_group!$fd_group$ac_delim
31177 SBINPERM!$SBINPERM$ac_delim
31178 SQL_LFLAGS!$SQL_LFLAGS$ac_delim
31179 SQL_INCLUDE!$SQL_INCLUDE$ac_delim
31180 SQL_BINDIR!$SQL_BINDIR$ac_delim
31181 cats!$cats$ac_delim
31182 DB_TYPE!$DB_TYPE$ac_delim
31183 GETCONF!$GETCONF$ac_delim
31184 XMKMF!$XMKMF$ac_delim
31185 X_CFLAGS!$X_CFLAGS$ac_delim
31186 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
31187 X_LIBS!$X_LIBS$ac_delim
31188 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
31189 LIBOBJS!$LIBOBJS$ac_delim
31190 FDLIBS!$FDLIBS$ac_delim
31191 DEBUG!$DEBUG$ac_delim
31192 DINCLUDE!$DINCLUDE$ac_delim
31193 DLIB!$DLIB$ac_delim
31194 DB_LIBS!$DB_LIBS$ac_delim
31195 WCFLAGS!$WCFLAGS$ac_delim
31196 WLDFLAGS!$WLDFLAGS$ac_delim
31197 WRAPLIBS!$WRAPLIBS$ac_delim
31198 OBJLIST!$OBJLIST$ac_delim
31199 hostname!$hostname$ac_delim
31200 TAPEDRIVE!$TAPEDRIVE$ac_delim
31201 PSCMD!$PSCMD$ac_delim
31202 WIN32!$WIN32$ac_delim
31203 MACOSX!$MACOSX$ac_delim
31204 DISTNAME!$DISTNAME$ac_delim
31205 DISTVER!$DISTVER$ac_delim
31206 LTLIBOBJS!$LTLIBOBJS$ac_delim
31209 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 56; then
31211 elif $ac_last_try; then
31212 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
31213 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
31214 { (exit 1); exit 1; }; }
31216 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31220 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
31221 if test -n "$ac_eof"; then
31222 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
31223 ac_eof=`expr $ac_eof + 1`
31226 cat >>$CONFIG_STATUS <<_ACEOF
31227 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
31228 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
31231 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
31232 s/^/s,@/; s/!/@,|#_!!_#|/
31235 s/'"$ac_delim"'$/,g/; t
31237 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
31238 ' >>$CONFIG_STATUS <conf$$subs.sed
31239 rm -f conf$$subs.sed
31240 cat >>$CONFIG_STATUS <<_ACEOF
31247 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31248 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31249 # trailing colons and then remove the whole line if VPATH becomes empty
31250 # (actually we leave an empty line to preserve line numbers).
31251 if test "x$srcdir" = x.; then
31252 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31253 s/:*\$(srcdir):*/:/
31254 s/:*\${srcdir}:*/:/
31256 s/^\([^=]*=[ ]*\):*/\1/
31262 cat >>$CONFIG_STATUS <<\_ACEOF
31263 fi # test -n "$CONFIG_FILES"
31266 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
31269 :[FHLC]) ac_mode=$ac_tag; continue;;
31271 case $ac_mode$ac_tag in
31273 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
31274 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
31275 { (exit 1); exit 1; }; };;
31276 :[FH]-) ac_tag=-:-;;
31277 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31294 -) ac_f="$tmp/stdin";;
31295 *) # Look for the file first in the build tree, then in the source tree
31296 # (if the path is not absolute). The absolute path cannot be DOS-style,
31297 # because $ac_f cannot contain `:'.
31301 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31303 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
31304 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
31305 { (exit 1); exit 1; }; };;
31307 ac_file_inputs="$ac_file_inputs $ac_f"
31310 # Let's still pretend it is `configure' which instantiates (i.e., don't
31311 # use $as_me), people would be surprised to read:
31312 # /* config.h. Generated by config.status. */
31313 configure_input="Generated from "`IFS=:
31314 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
31315 if test x"$ac_file" != x-; then
31316 configure_input="$ac_file. $configure_input"
31317 { echo "$as_me:$LINENO: creating $ac_file" >&5
31318 echo "$as_me: creating $ac_file" >&6;}
31322 *:-:* | *:-) cat >"$tmp/stdin";;
31327 ac_dir=`$as_dirname -- "$ac_file" ||
31328 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31329 X"$ac_file" : 'X\(//\)[^/]' \| \
31330 X"$ac_file" : 'X\(//\)$' \| \
31331 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31337 /^X\(\/\/\)[^/].*/{
31352 -*) as_dir=./$as_dir;;
31354 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
31358 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
31359 *) as_qdir=$as_dir;;
31361 as_dirs="'$as_qdir' $as_dirs"
31362 as_dir=`$as_dirname -- "$as_dir" ||
31363 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31364 X"$as_dir" : 'X\(//\)[^/]' \| \
31365 X"$as_dir" : 'X\(//\)$' \| \
31366 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31372 /^X\(\/\/\)[^/].*/{
31385 test -d "$as_dir" && break
31387 test -z "$as_dirs" || eval "mkdir $as_dirs"
31388 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
31389 echo "$as_me: error: cannot create directory $as_dir" >&2;}
31390 { (exit 1); exit 1; }; }; }
31394 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31396 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31397 # A ".." for each directory in $ac_dir_suffix.
31398 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
31399 case $ac_top_builddir_sub in
31400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31404 ac_abs_top_builddir=$ac_pwd
31405 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31406 # for backward compatibility:
31407 ac_top_builddir=$ac_top_build_prefix
31410 .) # We are building in place.
31412 ac_top_srcdir=$ac_top_builddir_sub
31413 ac_abs_top_srcdir=$ac_pwd ;;
31414 [\\/]* | ?:[\\/]* ) # Absolute name.
31415 ac_srcdir=$srcdir$ac_dir_suffix;
31416 ac_top_srcdir=$srcdir
31417 ac_abs_top_srcdir=$srcdir ;;
31418 *) # Relative name.
31419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31420 ac_top_srcdir=$ac_top_build_prefix$srcdir
31421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31423 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31433 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31434 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31438 cat >>$CONFIG_STATUS <<\_ACEOF
31439 # If the template does not know about datarootdir, expand it.
31440 # FIXME: This hack should be removed a few years after 2.60.
31441 ac_datarootdir_hack=; ac_datarootdir_seen=
31443 case `sed -n '/datarootdir/ {
31452 ' $ac_file_inputs` in
31453 *datarootdir*) ac_datarootdir_seen=yes;;
31454 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31455 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31456 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31458 cat >>$CONFIG_STATUS <<_ACEOF
31459 ac_datarootdir_hack='
31460 s&@datadir@&$datadir&g
31461 s&@docdir@&$docdir&g
31462 s&@infodir@&$infodir&g
31463 s&@localedir@&$localedir&g
31464 s&@mandir@&$mandir&g
31465 s&\\\${datarootdir}&$datarootdir&g' ;;
31469 # Neutralize VPATH when `$srcdir' = `.'.
31470 # Shell code in configure.ac might set extrasub.
31471 # FIXME: do we really want to maintain this feature?
31472 cat >>$CONFIG_STATUS <<_ACEOF
31476 cat >>$CONFIG_STATUS <<\_ACEOF
31478 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31479 s&@configure_input@&$configure_input&;t t
31480 s&@top_builddir@&$ac_top_builddir_sub&;t t
31481 s&@srcdir@&$ac_srcdir&;t t
31482 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31483 s&@top_srcdir@&$ac_top_srcdir&;t t
31484 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31485 s&@builddir@&$ac_builddir&;t t
31486 s&@abs_builddir@&$ac_abs_builddir&;t t
31487 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31488 s&@INSTALL@&$ac_INSTALL&;t t
31489 $ac_datarootdir_hack
31490 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
31492 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31493 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
31494 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
31495 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31496 which seems to be undefined. Please make sure it is defined." >&5
31497 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31498 which seems to be undefined. Please make sure it is defined." >&2;}
31502 -) cat "$tmp/out"; rm -f "$tmp/out";;
31503 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
31512 # Transform confdefs.h into a sed script `conftest.defines', that
31513 # substitutes the proper values into config.h.in to produce config.h.
31514 rm -f conftest.defines conftest.tail
31515 # First, append a space to every undef/define line, to ease matching.
31516 echo 's/$/ /' >conftest.defines
31517 # Then, protect against being on the right side of a sed subst, or in
31518 # an unquoted here document, in config.status. If some macros were
31519 # called several times there might be several #defines for the same
31520 # symbol, which is useless. But do not sort them, since the last
31521 # AC_DEFINE must be honored.
31522 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31523 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
31524 # NAME is the cpp macro being defined, VALUE is the value it is being given.
31525 # PARAMS is the parameter list in the macro definition--in most cases, it's
31526 # just an empty string.
31527 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31528 ac_dB='\\)[ (].*,\\1define\\2'
31536 s/^[ ]*#[ ]*define[ ][ ]*//
31541 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31542 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31543 ' >>conftest.defines
31545 # Remove the space that was appended to ease matching.
31546 # Then replace #undef with comments. This is necessary, for
31547 # example, in the case of _POSIX_SOURCE, which is predefined and required
31548 # on some systems where configure will not decide to define it.
31549 # (The regexp can be short, since the line contains either #define or #undef.)
31551 s,^[ #]*u.*,/* & */,' >>conftest.defines
31553 # Break up conftest.defines:
31554 ac_max_sed_lines=50
31556 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31557 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31558 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31560 ac_in='$ac_file_inputs'
31561 ac_out='"$tmp/out1"'
31562 ac_nxt='"$tmp/out2"'
31566 # Write a here document:
31567 cat >>$CONFIG_STATUS <<_ACEOF
31568 # First, check the format of the line:
31569 cat >"\$tmp/defines.sed" <<\\CEOF
31570 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31571 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31575 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31577 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31578 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31579 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31580 grep . conftest.tail >/dev/null || break
31581 rm -f conftest.defines
31582 mv conftest.tail conftest.defines
31584 rm -f conftest.defines conftest.tail
31586 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31587 cat >>$CONFIG_STATUS <<\_ACEOF
31588 if test x"$ac_file" != x-; then
31589 echo "/* $configure_input */" >"$tmp/config.h"
31590 cat "$ac_result" >>"$tmp/config.h"
31591 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31592 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31593 echo "$as_me: $ac_file is unchanged" >&6;}
31596 mv "$tmp/config.h" $ac_file
31599 echo "/* $configure_input */"
31605 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31606 echo "$as_me: executing $ac_file commands" >&6;}
31611 case $ac_file$ac_mode in
31613 for ac_file in $CONFIG_FILES; do
31614 # Support "outfile[:infile[:infile...]]"
31616 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31618 # PO directories have a Makefile.in generated from Makefile.in.in.
31619 case "$ac_file" in */Makefile.in)
31620 # Adjust a relative srcdir.
31621 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31622 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31623 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31624 # In autoconf-2.13 it is called $ac_given_srcdir.
31625 # In autoconf-2.50 it is called $srcdir.
31626 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31627 case "$ac_given_srcdir" in
31628 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31629 /*) top_srcdir="$ac_given_srcdir" ;;
31630 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31632 # Treat a directory as a PO directory if and only if it has a
31633 # POTFILES.in file. This allows packages to have multiple PO
31634 # directories under different names or in different locations.
31635 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31636 rm -f "$ac_dir/POTFILES"
31637 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31638 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31639 POMAKEFILEDEPS="POTFILES.in"
31640 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31641 # on $ac_dir but don't depend on user-specified configuration
31643 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31644 # The LINGUAS file contains the set of available languages.
31645 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31646 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31648 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31649 # Hide the ALL_LINGUAS assigment from automake.
31650 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31651 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31653 # The set of available languages was given in configure.in.
31654 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31657 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31658 # Compute UPDATEPOFILES
31659 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31660 # Compute DUMMYPOFILES
31661 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31663 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31664 case "$ac_given_srcdir" in
31666 *) srcdirpre='$(srcdir)/' ;;
31672 for lang in $ALL_LINGUAS; do
31673 POFILES="$POFILES $srcdirpre$lang.po"
31674 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31675 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31676 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31678 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31679 # environment variable.
31681 if test -n "$ALL_LINGUAS"; then
31682 for presentlang in $ALL_LINGUAS; do
31684 if test "%UNSET%" != "$LINGUAS"; then
31685 desiredlanguages="$LINGUAS"
31687 desiredlanguages="$ALL_LINGUAS"
31689 for desiredlang in $desiredlanguages; do
31690 # Use the presentlang catalog if desiredlang is
31691 # a. equal to presentlang, or
31692 # b. a variant of presentlang (because in this case,
31693 # presentlang can be used as a fallback for messages
31694 # which are not translated in the desiredlang catalog).
31695 case "$desiredlang" in
31696 "$presentlang"*) useit=yes;;
31699 if test $useit = yes; then
31700 INST_LINGUAS="$INST_LINGUAS $presentlang"
31705 if test -n "$INST_LINGUAS"; then
31706 for lang in $INST_LINGUAS; do
31707 CATALOGS="$CATALOGS $lang.gmo"
31710 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31711 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"
31712 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31713 if test -f "$f"; then
31715 *.orig | *.bak | *~) ;;
31716 *) cat "$f" >> "$ac_dir/Makefile" ;;
31731 { (exit 0); exit 0; }
31733 chmod +x $CONFIG_STATUS
31734 ac_clean_files=$ac_clean_files_save
31737 # configure is writing to config.log, and then calls config.status.
31738 # config.status does its own redirection, appending to config.log.
31739 # Unfortunately, on DOS this fails, as config.log is still kept open
31740 # by configure, so config.status won't be able to write to it; its
31741 # output is simply discarded. So we exec the FD to /dev/null,
31742 # effectively closing config.log, so it can be properly (re)opened and
31743 # appended to by config.status. When coming back to configure, we
31744 # need to make the FD available again.
31745 if test "$no_create" != yes; then
31747 ac_config_status_args=
31748 test "$silent" = yes &&
31749 ac_config_status_args="$ac_config_status_args --quiet"
31751 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31753 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31754 # would make configure fail if this is the last instruction.
31755 $ac_cs_success || { (exit 1); exit 1; }
31759 if test "${support_bat}" = "yes" ; then
31760 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
31761 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
31767 if test "x$QMAKEQT4" != "xnone"; then
31774 chmod 755 install_conf_file build-depkgs-qt-console
31775 echo "Creating bat Makefile"
31780 echo "Doing make of dependencies"
31781 ${MAKE:-make} depend
31784 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31785 chmod 755 dvd-handler dvd-simulator
31786 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31791 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
31792 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
31794 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
31795 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
31797 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
31798 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
31800 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
31801 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
31803 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
31804 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
31806 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
31807 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
31809 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31810 chmod 755 $c/sqlite
31813 chmod 755 src/win32/build-depkgs-mingw32
31817 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31818 largefile_support="yes"
31822 # A whole lot of hand springs to get the compiler version.
31823 # This is because gcc changed the output in version 3.0
31825 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31826 if test "x${CCVERSION}" = "x" ; then
31827 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31829 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31830 if test x"${CXXVERSION}" = x ; then
31831 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31834 if test "x${subsysdir}" = "x${sbindir}" ; then
31837 echo "You have set --sbindir and --with-subsys-dir"
31838 echo " both equal to: ${subsysdir} "
31839 echo " This is not permitted. Please reconfigure."
31841 echo "Aborting configuration ..."
31847 if test "x${db_type}" = "xInternal" ; then
31850 echo "You have not specified either --enable-client-only or one of the"
31851 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
31852 echo " This is not permitted. Please reconfigure."
31854 echo "Aborting the configuration ..."
31861 Configuration on `date`:
31863 Host: $host -- ${DISTNAME} ${DISTVER}
31864 Bacula version: ${VERSION} (${DATE})
31865 Source code location: ${srcdir}
31866 Install binaries: ${sbindir}
31867 Install config files: ${sysconfdir}
31868 Scripts directory: ${scriptdir}
31869 Archive directory: ${archivedir}
31870 Working directory: ${working_dir}
31871 PID directory: ${piddir}
31872 Subsys directory: ${subsysdir}
31873 Man directory: ${mandir}
31874 Data directory: ${datadir}
31875 C Compiler: ${CC} ${CCVERSION}
31876 C++ Compiler: ${CXX} ${CXXVERSION}
31877 Compiler flags: ${WCFLAGS} ${CFLAGS}
31878 Linker flags: ${WLDFLAGS} ${LDFLAGS}
31880 Statically Linked Tools: ${support_static_tools}
31881 Statically Linked FD: ${support_static_fd}
31882 Statically Linked SD: ${support_static_sd}
31883 Statically Linked DIR: ${support_static_dir}
31884 Statically Linked CONS: ${support_static_cons}
31885 Database type: ${db_type}
31886 Database lib: ${DB_LIBS}
31887 Database name: ${db_name}
31888 Database user: ${db_user}
31890 Job Output Email: ${job_email}
31891 Traceback Email: ${dump_email}
31892 SMTP Host Address: ${smtp_host}
31894 Director Port: ${dir_port}
31895 File daemon Port: ${fd_port}
31896 Storage daemon Port: ${sd_port}
31898 Director User: ${dir_user}
31899 Director Group: ${dir_group}
31900 Storage Daemon User: ${sd_user}
31901 Storage DaemonGroup: ${sd_group}
31902 File Daemon User: ${fd_user}
31903 File Daemon Group: ${fd_group}
31905 SQL binaries Directory ${SQL_BINDIR}
31907 Large file support: $largefile_support
31908 Bacula conio support: ${got_conio} ${CONS_LIBS}
31909 readline support: ${got_readline} ${PRTREADLINE_SRC}
31910 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
31911 TLS support: ${support_tls}
31912 Encryption support: ${support_crypto}
31913 ZLIB support: ${have_zlib}
31914 enable-smartalloc: ${support_smartalloc}
31915 bat support: ${support_bat} ${QWT_LDFLAGS}
31916 enable-gnome: ${support_gnome} ${gnome_version}
31917 enable-bwx-console: ${support_wx_console} ${wx_version}
31918 enable-tray-monitor: ${support_tray_monitor}
31919 client-only: ${build_client_only}
31920 build-dird: ${build_dird}
31921 build-stored: ${build_stored}
31922 ACL support: ${have_acl}
31923 Python support: ${support_python} ${PYTHON_LIBS}
31924 Batch insert enabled: ${support_batch_insert}