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 --enable-batch-insert enable the DB batch insert code disabled
1478 --disable-largefile omit support for large files
1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1483 --with-gnu-ld assume the C compiler uses GNU ld default=no
1484 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1485 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1486 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1487 --without-libintl-prefix don't search for libintl in includedir and libdir
1488 --with-included-gettext use the GNU gettext library included here
1489 --with-qwt[=DIR] specify qwt library directory
1490 --with-readline[=DIR] specify readline library directory
1492 --with-python[=DIR] Include Python support. DIR is the Python base
1493 install directory, default is to search through
1494 a number of common places for the Python files.
1495 --with-tcp-wrappers[=DIR] enable tcpwrappers support
1496 --with-openssl[=DIR] Include OpenSSL support. DIR is the OpenSSL base
1497 --with-working-dir=PATH specify path of Bacula working directory
1498 --with-archivedir=PATH specify path of SD archive directory
1499 --with-scriptdir=PATH specify path of Bacula scripts directory
1500 --with-plugindir=PATH specify path of Bacula plugins directory
1501 --with-dump-email=EMAIL dump email address
1502 --with-job-email=EMAIL job output email address
1503 --with-smtp-host=HOST SMTP mail host address
1504 --with-pid-dir=PATH specify location of Bacula pid files
1505 --with-subsys-dir=PATH specify location of Bacula subsys file
1506 --with-baseport=PORT specify base port address for daemons
1507 --with-dir-password=PASSWORD specify Director's password
1508 --with-fd-password=PASSWORD specify Client's password
1509 --with-sd-password=PASSWORD specify Storage daemon's password
1510 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
1511 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
1512 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
1513 --with-db-name=DBNAME specify database name (default bacula)
1514 --with-db-user=UNAME specify database user (default bacula)
1515 --with-db-password=UNAME specify database password (default *none*)
1516 --with-db-port=DBPORT specify a database port (default null)
1517 --with-dir-user=USER specify user for Director daemon
1518 --with-dir-group=GROUP specify group for Director daemon
1519 --with-sd-user=USER specify user for Storage daemon
1520 --with-sd-group=GROUP specify group for Storage daemon
1521 --with-fd-user=USER specify user for File daemon
1522 --with-fd-group=GROUP specify group for File daemon
1523 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
1524 --with-x use the X Window System
1526 Some influential environment variables:
1527 CC C compiler command
1528 CFLAGS C compiler flags
1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1530 nonstandard directory <lib dir>
1531 LIBS libraries to pass to the linker, e.g. -l<library>
1532 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1533 you have headers in a nonstandard directory <include dir>
1534 CXX C++ compiler command
1535 CXXFLAGS C++ compiler flags
1537 WXCONFIG wx-config command. On some systems, you must set it to
1538 wx-config-2.6 to use wxWidgets 2.6.
1539 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
1540 XMKMF Path to xmkmf, Makefile generator for X Window System
1542 Use these variables to override the choices made by `configure' or to help
1543 it to find libraries and programs with nonstandard names/locations.
1549 if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552 test -d "$ac_dir" || continue
1556 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1559 # A ".." for each directory in $ac_dir_suffix.
1560 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1561 case $ac_top_builddir_sub in
1562 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1563 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566 ac_abs_top_builddir=$ac_pwd
1567 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1568 # for backward compatibility:
1569 ac_top_builddir=$ac_top_build_prefix
1572 .) # We are building in place.
1574 ac_top_srcdir=$ac_top_builddir_sub
1575 ac_abs_top_srcdir=$ac_pwd ;;
1576 [\\/]* | ?:[\\/]* ) # Absolute name.
1577 ac_srcdir=$srcdir$ac_dir_suffix;
1578 ac_top_srcdir=$srcdir
1579 ac_abs_top_srcdir=$srcdir ;;
1581 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1582 ac_top_srcdir=$ac_top_build_prefix$srcdir
1583 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1585 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1587 cd "$ac_dir" || { ac_status=$?; continue; }
1588 # Check for guested configure.
1589 if test -f "$ac_srcdir/configure.gnu"; then
1591 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1592 elif test -f "$ac_srcdir/configure"; then
1594 $SHELL "$ac_srcdir/configure" --help=recursive
1596 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598 cd "$ac_pwd" || { ac_status=$?; break; }
1602 test -n "$ac_init_help" && exit $ac_status
1603 if $ac_init_version; then
1606 generated by GNU Autoconf 2.61
1608 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1609 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1610 This configure script is free software; the Free Software Foundation
1611 gives unlimited permission to copy, distribute and modify it.
1615 cat >config.log <<_ACEOF
1616 This file contains any messages produced by compilers while
1617 running configure, to aid debugging if configure makes a mistake.
1619 It was created by $as_me, which was
1620 generated by GNU Autoconf 2.61. Invocation command line was
1632 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1633 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1634 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1635 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1636 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1638 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1639 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1641 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1642 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1643 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1644 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1645 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1646 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1647 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1655 test -z "$as_dir" && as_dir=.
1656 echo "PATH: $as_dir"
1672 # Keep a trace of the command line.
1673 # Strip out --no-create and --no-recursion so they do not pile up.
1674 # Strip out --silent because we don't want to record it for future runs.
1675 # Also quote any args containing shell meta-characters.
1676 # Make two passes to allow for proper duplicate-argument suppression.
1680 ac_must_keep_next=false
1686 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1687 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1688 | -silent | --silent | --silen | --sile | --sil)
1691 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1694 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1696 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1697 if test $ac_must_keep_next = true; then
1698 ac_must_keep_next=false # Got value, back to normal.
1701 *=* | --config-cache | -C | -disable-* | --disable-* \
1702 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1703 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1704 | -with-* | --with-* | -without-* | --without-* | --x)
1705 case "$ac_configure_args0 " in
1706 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1709 -* ) ac_must_keep_next=true ;;
1712 ac_configure_args="$ac_configure_args '$ac_arg'"
1717 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1718 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1720 # When interrupted or exit'd, cleanup temporary files, and complete
1721 # config.log. We remove comments because anyway the quotes in there
1722 # would cause problems or look ugly.
1723 # WARNING: Use '\'' to represent an apostrophe within the trap.
1724 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1725 trap 'exit_status=$?
1726 # Save into config.log some information that might help in debugging.
1731 ## ---------------- ##
1732 ## Cache variables. ##
1733 ## ---------------- ##
1736 # The following way of writing the cache mishandles newlines in values,
1738 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1739 eval ac_val=\$$ac_var
1743 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1744 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1747 _ | IFS | as_nl) ;; #(
1748 *) $as_unset $ac_var ;;
1753 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1754 *${as_nl}ac_space=\ *)
1756 "s/'\''/'\''\\\\'\'''\''/g;
1757 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1760 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1768 ## ----------------- ##
1769 ## Output variables. ##
1770 ## ----------------- ##
1773 for ac_var in $ac_subst_vars
1775 eval ac_val=\$$ac_var
1777 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1779 echo "$ac_var='\''$ac_val'\''"
1783 if test -n "$ac_subst_files"; then
1785 ## ------------------- ##
1786 ## File substitutions. ##
1787 ## ------------------- ##
1790 for ac_var in $ac_subst_files
1792 eval ac_val=\$$ac_var
1794 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1796 echo "$ac_var='\''$ac_val'\''"
1801 if test -s confdefs.h; then
1811 test "$ac_signal" != 0 &&
1812 echo "$as_me: caught signal $ac_signal"
1813 echo "$as_me: exit $exit_status"
1815 rm -f core *.core core.conftest.* &&
1816 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1819 for ac_signal in 1 2 13 15; do
1820 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1824 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1825 rm -f -r conftest* confdefs.h
1827 # Predefined preprocessor variables.
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_NAME "$PACKAGE_NAME"
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_STRING "$PACKAGE_STRING"
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1854 # Let the site file select an alternate cache file if it wants to.
1855 # Prefer explicitly selected file to automatically selected ones.
1856 if test -n "$CONFIG_SITE"; then
1857 set x "$CONFIG_SITE"
1858 elif test "x$prefix" != xNONE; then
1859 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1861 set x "$ac_default_prefix/share/config.site" \
1862 "$ac_default_prefix/etc/config.site"
1867 if test -r "$ac_site_file"; then
1868 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1869 echo "$as_me: loading site script $ac_site_file" >&6;}
1870 sed 's/^/| /' "$ac_site_file" >&5
1875 if test -r "$cache_file"; then
1876 # Some versions of bash will fail to source /dev/null (special
1877 # files actually), so we avoid doing that.
1878 if test -f "$cache_file"; then
1879 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1880 echo "$as_me: loading cache $cache_file" >&6;}
1882 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1883 *) . "./$cache_file";;
1887 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1888 echo "$as_me: creating cache $cache_file" >&6;}
1892 # Check that the precious variables saved in the cache have kept the same
1894 ac_cache_corrupted=false
1895 for ac_var in $ac_precious_vars; do
1896 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1897 eval ac_new_set=\$ac_env_${ac_var}_set
1898 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1899 eval ac_new_val=\$ac_env_${ac_var}_value
1900 case $ac_old_set,$ac_new_set in
1902 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1903 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1904 ac_cache_corrupted=: ;;
1906 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1907 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1908 ac_cache_corrupted=: ;;
1911 if test "x$ac_old_val" != "x$ac_new_val"; then
1912 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1913 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1914 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1915 echo "$as_me: former value: $ac_old_val" >&2;}
1916 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1917 echo "$as_me: current value: $ac_new_val" >&2;}
1918 ac_cache_corrupted=:
1921 # Pass precious variables to config.status.
1922 if test "$ac_new_set" = set; then
1924 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1925 *) ac_arg=$ac_var=$ac_new_val ;;
1927 case " $ac_configure_args " in
1928 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1929 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1933 if $ac_cache_corrupted; then
1934 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1935 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1936 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1937 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1938 { (exit 1); exit 1; }; }
1958 ac_cpp='$CPP $CPPFLAGS'
1959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1971 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
1972 if test -f "$ac_dir/install-sh"; then
1974 ac_install_sh="$ac_aux_dir/install-sh -c"
1976 elif test -f "$ac_dir/install.sh"; then
1978 ac_install_sh="$ac_aux_dir/install.sh -c"
1980 elif test -f "$ac_dir/shtool"; then
1982 ac_install_sh="$ac_aux_dir/shtool install -c"
1986 if test -z "$ac_aux_dir"; then
1987 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&5
1988 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" >&2;}
1989 { (exit 1); exit 1; }; }
1992 # These three variables are undocumented and unsupported,
1993 # and are intended to be withdrawn in a future Autoconf release.
1994 # They can cause serious problems if a builder's source tree is in a directory
1995 # whose full name contains unusual characters.
1996 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1997 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1998 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2001 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
2009 # Extract the first word of "$ac_prog", so it can be a program name with args.
2010 set dummy $ac_prog; ac_word=$2
2011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2013 if test "${ac_cv_path_TRUEPRG+set}" = set; then
2014 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2025 test -z "$as_dir" && as_dir=.
2026 for ac_exec_ext in '' $ac_executable_extensions; do
2027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2028 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
2029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2039 TRUEPRG=$ac_cv_path_TRUEPRG
2040 if test -n "$TRUEPRG"; then
2041 { echo "$as_me:$LINENO: result: $TRUEPRG" >&5
2042 echo "${ECHO_T}$TRUEPRG" >&6; }
2044 { echo "$as_me:$LINENO: result: no" >&5
2045 echo "${ECHO_T}no" >&6; }
2049 test -n "$TRUEPRG" && break
2051 test -n "$TRUEPRG" || TRUEPRG=":"
2053 for ac_prog in false
2055 # Extract the first word of "$ac_prog", so it can be a program name with args.
2056 set dummy $ac_prog; ac_word=$2
2057 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2059 if test "${ac_cv_path_FALSEPRG+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
2067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2071 test -z "$as_dir" && as_dir=.
2072 for ac_exec_ext in '' $ac_executable_extensions; do
2073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2074 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
2075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085 FALSEPRG=$ac_cv_path_FALSEPRG
2086 if test -n "$FALSEPRG"; then
2087 { echo "$as_me:$LINENO: result: $FALSEPRG" >&5
2088 echo "${ECHO_T}$FALSEPRG" >&6; }
2090 { echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6; }
2095 test -n "$FALSEPRG" && break
2097 test -n "$FALSEPRG" || FALSEPRG=":"
2101 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2102 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2103 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2104 echo "configuring for bacula $VERSION ($DATE)"
2109 ac_cpp='$CPP $CPPFLAGS'
2110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2113 if test -n "$ac_tool_prefix"; then
2114 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2115 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2118 if test "${ac_cv_prog_CC+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 if test -n "$CC"; then
2122 ac_cv_prog_CC="$CC" # Let the user override the test.
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 test -z "$as_dir" && as_dir=.
2129 for ac_exec_ext in '' $ac_executable_extensions; do
2130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2131 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142 if test -n "$CC"; then
2143 { echo "$as_me:$LINENO: result: $CC" >&5
2144 echo "${ECHO_T}$CC" >&6; }
2146 { echo "$as_me:$LINENO: result: no" >&5
2147 echo "${ECHO_T}no" >&6; }
2152 if test -z "$ac_cv_prog_CC"; then
2154 # Extract the first word of "gcc", so it can be a program name with args.
2155 set dummy gcc; ac_word=$2
2156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2158 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2161 if test -n "$ac_ct_CC"; then
2162 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2168 test -z "$as_dir" && as_dir=.
2169 for ac_exec_ext in '' $ac_executable_extensions; do
2170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2171 ac_cv_prog_ac_ct_CC="gcc"
2172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2182 if test -n "$ac_ct_CC"; then
2183 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2184 echo "${ECHO_T}$ac_ct_CC" >&6; }
2186 { echo "$as_me:$LINENO: result: no" >&5
2187 echo "${ECHO_T}no" >&6; }
2190 if test "x$ac_ct_CC" = x; then
2193 case $cross_compiling:$ac_tool_warned in
2195 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2196 whose name does not start with the host triplet. If you think this
2197 configuration is useful to you, please write to autoconf@gnu.org." >&5
2198 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2199 whose name does not start with the host triplet. If you think this
2200 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2201 ac_tool_warned=yes ;;
2209 if test -z "$CC"; then
2210 if test -n "$ac_tool_prefix"; then
2211 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2212 set dummy ${ac_tool_prefix}cc; ac_word=$2
2213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2215 if test "${ac_cv_prog_CC+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2218 if test -n "$CC"; then
2219 ac_cv_prog_CC="$CC" # Let the user override the test.
2221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225 test -z "$as_dir" && as_dir=.
2226 for ac_exec_ext in '' $ac_executable_extensions; do
2227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2228 ac_cv_prog_CC="${ac_tool_prefix}cc"
2229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239 if test -n "$CC"; then
2240 { echo "$as_me:$LINENO: result: $CC" >&5
2241 echo "${ECHO_T}$CC" >&6; }
2243 { echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6; }
2250 if test -z "$CC"; then
2251 # Extract the first word of "cc", so it can be a program name with args.
2252 set dummy cc; ac_word=$2
2253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2255 if test "${ac_cv_prog_CC+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 if test -n "$CC"; then
2259 ac_cv_prog_CC="$CC" # Let the user override the test.
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 test -z "$as_dir" && as_dir=.
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2269 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2270 ac_prog_rejected=yes
2274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 if test $ac_prog_rejected = yes; then
2282 # We found a bogon in the path, so make sure we never use it.
2283 set dummy $ac_cv_prog_CC
2285 if test $# != 0; then
2286 # We chose a different compiler from the bogus one.
2287 # However, it has the same basename, so the bogon will be chosen
2288 # first if we set CC to just the basename; use the full file name.
2290 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2296 if test -n "$CC"; then
2297 { echo "$as_me:$LINENO: result: $CC" >&5
2298 echo "${ECHO_T}$CC" >&6; }
2300 { echo "$as_me:$LINENO: result: no" >&5
2301 echo "${ECHO_T}no" >&6; }
2306 if test -z "$CC"; then
2307 if test -n "$ac_tool_prefix"; then
2308 for ac_prog in cl.exe
2310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2314 if test "${ac_cv_prog_CC+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 if test -n "$CC"; then
2318 ac_cv_prog_CC="$CC" # Let the user override the test.
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2327 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2338 if test -n "$CC"; then
2339 { echo "$as_me:$LINENO: result: $CC" >&5
2340 echo "${ECHO_T}$CC" >&6; }
2342 { echo "$as_me:$LINENO: result: no" >&5
2343 echo "${ECHO_T}no" >&6; }
2347 test -n "$CC" && break
2350 if test -z "$CC"; then
2352 for ac_prog in cl.exe
2354 # Extract the first word of "$ac_prog", so it can be a program name with args.
2355 set dummy $ac_prog; ac_word=$2
2356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2358 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2359 echo $ECHO_N "(cached) $ECHO_C" >&6
2361 if test -n "$ac_ct_CC"; then
2362 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368 test -z "$as_dir" && as_dir=.
2369 for ac_exec_ext in '' $ac_executable_extensions; do
2370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2371 ac_cv_prog_ac_ct_CC="$ac_prog"
2372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2382 if test -n "$ac_ct_CC"; then
2383 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2384 echo "${ECHO_T}$ac_ct_CC" >&6; }
2386 { echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6; }
2391 test -n "$ac_ct_CC" && break
2394 if test "x$ac_ct_CC" = x; then
2397 case $cross_compiling:$ac_tool_warned in
2399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2400 whose name does not start with the host triplet. If you think this
2401 configuration is useful to you, please write to autoconf@gnu.org." >&5
2402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2403 whose name does not start with the host triplet. If you think this
2404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2405 ac_tool_warned=yes ;;
2414 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2415 See \`config.log' for more details." >&5
2416 echo "$as_me: error: no acceptable C compiler found in \$PATH
2417 See \`config.log' for more details." >&2;}
2418 { (exit 1); exit 1; }; }
2420 # Provide some information about the compiler.
2421 echo "$as_me:$LINENO: checking for C compiler version" >&5
2422 ac_compiler=`set X $ac_compile; echo $2`
2423 { (ac_try="$ac_compiler --version >&5"
2425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426 *) ac_try_echo=$ac_try;;
2428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2429 (eval "$ac_compiler --version >&5") 2>&5
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }
2433 { (ac_try="$ac_compiler -v >&5"
2435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2436 *) ac_try_echo=$ac_try;;
2438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2439 (eval "$ac_compiler -v >&5") 2>&5
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }
2443 { (ac_try="$ac_compiler -V >&5"
2445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2446 *) ac_try_echo=$ac_try;;
2448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2449 (eval "$ac_compiler -V >&5") 2>&5
2451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2452 (exit $ac_status); }
2454 cat >conftest.$ac_ext <<_ACEOF
2457 cat confdefs.h >>conftest.$ac_ext
2458 cat >>conftest.$ac_ext <<_ACEOF
2459 /* end confdefs.h. */
2469 ac_clean_files_save=$ac_clean_files
2470 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2471 # Try to create an executable without -o first, disregard a.out.
2472 # It will help us diagnose broken compilers, and finding out an intuition
2474 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2475 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2476 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2478 # List of possible output files, starting from the most likely.
2479 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2480 # only as a last resort. b.out is created by i960 compilers.
2481 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2483 # The IRIX 6 linker writes into existing files which may not be
2484 # executable, retaining their permissions. Remove them first so a
2485 # subsequent execution test works.
2487 for ac_file in $ac_files
2490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2491 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2496 if { (ac_try="$ac_link_default"
2498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2499 *) ac_try_echo=$ac_try;;
2501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2502 (eval "$ac_link_default") 2>&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); }; then
2506 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2507 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2508 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2509 # so that the user can short-circuit this test for compilers unknown to
2511 for ac_file in $ac_files ''
2513 test -f "$ac_file" || continue
2515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2518 # We found the default executable, but exeext='' is most
2522 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2524 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2526 # We set ac_cv_exeext here because the later test for it is not
2527 # safe: cross compilers may not add the suffix if given an `-o'
2528 # argument, so we may need to know it at that point already.
2529 # Even if this section looks crufty: it has the advantage of
2536 test "$ac_cv_exeext" = no && ac_cv_exeext=
2542 { echo "$as_me:$LINENO: result: $ac_file" >&5
2543 echo "${ECHO_T}$ac_file" >&6; }
2544 if test -z "$ac_file"; then
2545 echo "$as_me: failed program was:" >&5
2546 sed 's/^/| /' conftest.$ac_ext >&5
2548 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2549 See \`config.log' for more details." >&5
2550 echo "$as_me: error: C compiler cannot create executables
2551 See \`config.log' for more details." >&2;}
2552 { (exit 77); exit 77; }; }
2555 ac_exeext=$ac_cv_exeext
2557 # Check that the compiler produces executables we can run. If not, either
2558 # the compiler is broken, or we cross compile.
2559 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2560 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2561 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2562 # If not cross compiling, check that we can run a simple program.
2563 if test "$cross_compiling" != yes; then
2564 if { ac_try='./$ac_file'
2565 { (case "(($ac_try" in
2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567 *) ac_try_echo=$ac_try;;
2569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2570 (eval "$ac_try") 2>&5
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2576 if test "$cross_compiling" = maybe; then
2579 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2580 If you meant to cross compile, use \`--host'.
2581 See \`config.log' for more details." >&5
2582 echo "$as_me: error: cannot run C compiled programs.
2583 If you meant to cross compile, use \`--host'.
2584 See \`config.log' for more details." >&2;}
2585 { (exit 1); exit 1; }; }
2589 { echo "$as_me:$LINENO: result: yes" >&5
2590 echo "${ECHO_T}yes" >&6; }
2592 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2593 ac_clean_files=$ac_clean_files_save
2594 # Check that the compiler produces executables we can run. If not, either
2595 # the compiler is broken, or we cross compile.
2596 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2597 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2598 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2599 echo "${ECHO_T}$cross_compiling" >&6; }
2601 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2602 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2603 if { (ac_try="$ac_link"
2605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606 *) ac_try_echo=$ac_try;;
2608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609 (eval "$ac_link") 2>&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; then
2613 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2614 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2615 # work properly (i.e., refer to `conftest.exe'), while it won't with
2617 for ac_file in conftest.exe conftest conftest.*; do
2618 test -f "$ac_file" || continue
2620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2621 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2627 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2628 See \`config.log' for more details." >&5
2629 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2630 See \`config.log' for more details." >&2;}
2631 { (exit 1); exit 1; }; }
2634 rm -f conftest$ac_cv_exeext
2635 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2636 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2638 rm -f conftest.$ac_ext
2639 EXEEXT=$ac_cv_exeext
2641 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2642 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2643 if test "${ac_cv_objext+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 cat >conftest.$ac_ext <<_ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h. */
2661 rm -f conftest.o conftest.obj
2662 if { (ac_try="$ac_compile"
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668 (eval "$ac_compile") 2>&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; then
2672 for ac_file in conftest.o conftest.obj conftest.*; do
2673 test -f "$ac_file" || continue;
2675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2676 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2681 echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2684 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2685 See \`config.log' for more details." >&5
2686 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2687 See \`config.log' for more details." >&2;}
2688 { (exit 1); exit 1; }; }
2691 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2693 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2694 echo "${ECHO_T}$ac_cv_objext" >&6; }
2695 OBJEXT=$ac_cv_objext
2697 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2698 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2699 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2700 echo $ECHO_N "(cached) $ECHO_C" >&6
2702 cat >conftest.$ac_ext <<_ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2720 rm -f conftest.$ac_objext
2721 if { (ac_try="$ac_compile"
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_compile") 2>conftest.er1
2729 grep -v '^ *+' conftest.er1 >conftest.err
2731 cat conftest.err >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } && {
2734 test -z "$ac_c_werror_flag" ||
2735 test ! -s conftest.err
2736 } && test -s conftest.$ac_objext; then
2739 echo "$as_me: failed program was:" >&5
2740 sed 's/^/| /' conftest.$ac_ext >&5
2745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2746 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2749 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2750 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2751 GCC=`test $ac_compiler_gnu = yes && echo yes`
2752 ac_test_CFLAGS=${CFLAGS+set}
2753 ac_save_CFLAGS=$CFLAGS
2754 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2755 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2756 if test "${ac_cv_prog_cc_g+set}" = set; then
2757 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 ac_save_c_werror_flag=$ac_c_werror_flag
2760 ac_c_werror_flag=yes
2763 cat >conftest.$ac_ext <<_ACEOF
2766 cat confdefs.h >>conftest.$ac_ext
2767 cat >>conftest.$ac_ext <<_ACEOF
2768 /* end confdefs.h. */
2778 rm -f conftest.$ac_objext
2779 if { (ac_try="$ac_compile"
2781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2782 *) ac_try_echo=$ac_try;;
2784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2785 (eval "$ac_compile") 2>conftest.er1
2787 grep -v '^ *+' conftest.er1 >conftest.err
2789 cat conftest.err >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } && {
2792 test -z "$ac_c_werror_flag" ||
2793 test ! -s conftest.err
2794 } && test -s conftest.$ac_objext; then
2797 echo "$as_me: failed program was:" >&5
2798 sed 's/^/| /' conftest.$ac_ext >&5
2801 cat >conftest.$ac_ext <<_ACEOF
2804 cat confdefs.h >>conftest.$ac_ext
2805 cat >>conftest.$ac_ext <<_ACEOF
2806 /* end confdefs.h. */
2816 rm -f conftest.$ac_objext
2817 if { (ac_try="$ac_compile"
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2823 (eval "$ac_compile") 2>conftest.er1
2825 grep -v '^ *+' conftest.er1 >conftest.err
2827 cat conftest.err >&5
2828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2829 (exit $ac_status); } && {
2830 test -z "$ac_c_werror_flag" ||
2831 test ! -s conftest.err
2832 } && test -s conftest.$ac_objext; then
2835 echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2838 ac_c_werror_flag=$ac_save_c_werror_flag
2840 cat >conftest.$ac_ext <<_ACEOF
2843 cat confdefs.h >>conftest.$ac_ext
2844 cat >>conftest.$ac_ext <<_ACEOF
2845 /* end confdefs.h. */
2855 rm -f conftest.$ac_objext
2856 if { (ac_try="$ac_compile"
2858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2859 *) ac_try_echo=$ac_try;;
2861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2862 (eval "$ac_compile") 2>conftest.er1
2864 grep -v '^ *+' conftest.er1 >conftest.err
2866 cat conftest.err >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); } && {
2869 test -z "$ac_c_werror_flag" ||
2870 test ! -s conftest.err
2871 } && test -s conftest.$ac_objext; then
2874 echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.$ac_ext >&5
2880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2887 ac_c_werror_flag=$ac_save_c_werror_flag
2889 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2890 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2891 if test "$ac_test_CFLAGS" = set; then
2892 CFLAGS=$ac_save_CFLAGS
2893 elif test $ac_cv_prog_cc_g = yes; then
2894 if test "$GCC" = yes; then
2900 if test "$GCC" = yes; then
2906 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2907 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2908 if test "${ac_cv_prog_cc_c89+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 ac_cv_prog_cc_c89=no
2913 cat >conftest.$ac_ext <<_ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h. */
2921 #include <sys/types.h>
2922 #include <sys/stat.h>
2923 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2924 struct buf { int x; };
2925 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2926 static char *e (p, i)
2932 static char *f (char * (*g) (char **, int), char **p, ...)
2937 s = g (p, va_arg (v,int));
2942 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2943 function prototypes and stuff, but not '\xHH' hex character constants.
2944 These don't provoke an error unfortunately, instead are silently treated
2945 as 'x'. The following induces an error, until -std is added to get
2946 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2947 array size at least. It's necessary to write '\x00'==0 to get something
2948 that's true only with -std. */
2949 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2951 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2952 inside strings and character constants. */
2954 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2956 int test (int i, double x);
2957 struct s1 {int (*f) (int a);};
2958 struct s2 {int (*f) (double a);};
2959 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2965 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2970 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2971 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2973 CC="$ac_save_CC $ac_arg"
2974 rm -f conftest.$ac_objext
2975 if { (ac_try="$ac_compile"
2977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978 *) ac_try_echo=$ac_try;;
2980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981 (eval "$ac_compile") 2>conftest.er1
2983 grep -v '^ *+' conftest.er1 >conftest.err
2985 cat conftest.err >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); } && {
2988 test -z "$ac_c_werror_flag" ||
2989 test ! -s conftest.err
2990 } && test -s conftest.$ac_objext; then
2991 ac_cv_prog_cc_c89=$ac_arg
2993 echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2999 rm -f core conftest.err conftest.$ac_objext
3000 test "x$ac_cv_prog_cc_c89" != "xno" && break
3002 rm -f conftest.$ac_ext
3007 case "x$ac_cv_prog_cc_c89" in
3009 { echo "$as_me:$LINENO: result: none needed" >&5
3010 echo "${ECHO_T}none needed" >&6; } ;;
3012 { echo "$as_me:$LINENO: result: unsupported" >&5
3013 echo "${ECHO_T}unsupported" >&6; } ;;
3015 CC="$CC $ac_cv_prog_cc_c89"
3016 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3017 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3022 ac_cpp='$CPP $CPPFLAGS'
3023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3028 ac_cpp='$CXXCPP $CPPFLAGS'
3029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3032 if test -z "$CXX"; then
3033 if test -n "$CCC"; then
3036 if test -n "$ac_tool_prefix"; then
3037 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3039 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3040 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3043 if test "${ac_cv_prog_CXX+set}" = set; then
3044 echo $ECHO_N "(cached) $ECHO_C" >&6
3046 if test -n "$CXX"; then
3047 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 test -z "$as_dir" && as_dir=.
3054 for ac_exec_ext in '' $ac_executable_extensions; do
3055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3056 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 if test -n "$CXX"; then
3068 { echo "$as_me:$LINENO: result: $CXX" >&5
3069 echo "${ECHO_T}$CXX" >&6; }
3071 { echo "$as_me:$LINENO: result: no" >&5
3072 echo "${ECHO_T}no" >&6; }
3076 test -n "$CXX" && break
3079 if test -z "$CXX"; then
3081 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3083 # Extract the first word of "$ac_prog", so it can be a program name with args.
3084 set dummy $ac_prog; ac_word=$2
3085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3087 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3088 echo $ECHO_N "(cached) $ECHO_C" >&6
3090 if test -n "$ac_ct_CXX"; then
3091 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 test -z "$as_dir" && as_dir=.
3098 for ac_exec_ext in '' $ac_executable_extensions; do
3099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3100 ac_cv_prog_ac_ct_CXX="$ac_prog"
3101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3110 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3111 if test -n "$ac_ct_CXX"; then
3112 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3113 echo "${ECHO_T}$ac_ct_CXX" >&6; }
3115 { echo "$as_me:$LINENO: result: no" >&5
3116 echo "${ECHO_T}no" >&6; }
3120 test -n "$ac_ct_CXX" && break
3123 if test "x$ac_ct_CXX" = x; then
3126 case $cross_compiling:$ac_tool_warned in
3128 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3129 whose name does not start with the host triplet. If you think this
3130 configuration is useful to you, please write to autoconf@gnu.org." >&5
3131 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3132 whose name does not start with the host triplet. If you think this
3133 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3134 ac_tool_warned=yes ;;
3142 # Provide some information about the compiler.
3143 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3144 ac_compiler=`set X $ac_compile; echo $2`
3145 { (ac_try="$ac_compiler --version >&5"
3147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148 *) ac_try_echo=$ac_try;;
3150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3151 (eval "$ac_compiler --version >&5") 2>&5
3153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3154 (exit $ac_status); }
3155 { (ac_try="$ac_compiler -v >&5"
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3161 (eval "$ac_compiler -v >&5") 2>&5
3163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3164 (exit $ac_status); }
3165 { (ac_try="$ac_compiler -V >&5"
3167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3168 *) ac_try_echo=$ac_try;;
3170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3171 (eval "$ac_compiler -V >&5") 2>&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); }
3176 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3177 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
3178 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3179 echo $ECHO_N "(cached) $ECHO_C" >&6
3181 cat >conftest.$ac_ext <<_ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h. */
3199 rm -f conftest.$ac_objext
3200 if { (ac_try="$ac_compile"
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_compile") 2>conftest.er1
3208 grep -v '^ *+' conftest.er1 >conftest.err
3210 cat conftest.err >&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); } && {
3213 test -z "$ac_cxx_werror_flag" ||
3214 test ! -s conftest.err
3215 } && test -s conftest.$ac_objext; then
3218 echo "$as_me: failed program was:" >&5
3219 sed 's/^/| /' conftest.$ac_ext >&5
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3228 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3229 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3230 GXX=`test $ac_compiler_gnu = yes && echo yes`
3231 ac_test_CXXFLAGS=${CXXFLAGS+set}
3232 ac_save_CXXFLAGS=$CXXFLAGS
3233 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3234 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3235 if test "${ac_cv_prog_cxx_g+set}" = set; then
3236 echo $ECHO_N "(cached) $ECHO_C" >&6
3238 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3239 ac_cxx_werror_flag=yes
3242 cat >conftest.$ac_ext <<_ACEOF
3245 cat confdefs.h >>conftest.$ac_ext
3246 cat >>conftest.$ac_ext <<_ACEOF
3247 /* end confdefs.h. */
3257 rm -f conftest.$ac_objext
3258 if { (ac_try="$ac_compile"
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3264 (eval "$ac_compile") 2>conftest.er1
3266 grep -v '^ *+' conftest.er1 >conftest.err
3268 cat conftest.err >&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); } && {
3271 test -z "$ac_cxx_werror_flag" ||
3272 test ! -s conftest.err
3273 } && test -s conftest.$ac_objext; then
3274 ac_cv_prog_cxx_g=yes
3276 echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3280 cat >conftest.$ac_ext <<_ACEOF
3283 cat confdefs.h >>conftest.$ac_ext
3284 cat >>conftest.$ac_ext <<_ACEOF
3285 /* end confdefs.h. */
3295 rm -f conftest.$ac_objext
3296 if { (ac_try="$ac_compile"
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3302 (eval "$ac_compile") 2>conftest.er1
3304 grep -v '^ *+' conftest.er1 >conftest.err
3306 cat conftest.err >&5
3307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } && {
3309 test -z "$ac_cxx_werror_flag" ||
3310 test ! -s conftest.err
3311 } && test -s conftest.$ac_objext; then
3314 echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3317 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3319 cat >conftest.$ac_ext <<_ACEOF
3322 cat confdefs.h >>conftest.$ac_ext
3323 cat >>conftest.$ac_ext <<_ACEOF
3324 /* end confdefs.h. */
3334 rm -f conftest.$ac_objext
3335 if { (ac_try="$ac_compile"
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3341 (eval "$ac_compile") 2>conftest.er1
3343 grep -v '^ *+' conftest.er1 >conftest.err
3345 cat conftest.err >&5
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); } && {
3348 test -z "$ac_cxx_werror_flag" ||
3349 test ! -s conftest.err
3350 } && test -s conftest.$ac_objext; then
3351 ac_cv_prog_cxx_g=yes
3353 echo "$as_me: failed program was:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3366 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3368 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3369 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3370 if test "$ac_test_CXXFLAGS" = set; then
3371 CXXFLAGS=$ac_save_CXXFLAGS
3372 elif test $ac_cv_prog_cxx_g = yes; then
3373 if test "$GXX" = yes; then
3379 if test "$GXX" = yes; then
3386 ac_cpp='$CPP $CPPFLAGS'
3387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391 if test "x$CC" != xcc; then
3392 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3393 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3395 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3396 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3398 set dummy $CC; ac_cc=`echo $2 |
3399 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3400 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 cat >conftest.$ac_ext <<_ACEOF
3406 cat confdefs.h >>conftest.$ac_ext
3407 cat >>conftest.$ac_ext <<_ACEOF
3408 /* end confdefs.h. */
3418 # Make sure it works both with $CC and with simple cc.
3419 # We do the test twice because some compilers refuse to overwrite an
3420 # existing .o file with -o, though they will create one.
3421 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3423 if { (case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3428 (eval "$ac_try") 2>&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } &&
3432 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_try") 2>&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); };
3442 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3443 if test "x$CC" != xcc; then
3444 # Test first that cc exists at all.
3445 if { ac_try='cc -c conftest.$ac_ext >&5'
3446 { (case "(($ac_try" in
3447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451 (eval "$ac_try") 2>&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); }; }; then
3455 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3457 if { (case "(($ac_try" in
3458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3459 *) ac_try_echo=$ac_try;;
3461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3462 (eval "$ac_try") 2>&5
3464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); } &&
3466 test -f conftest2.$ac_objext && { (case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471 (eval "$ac_try") 2>&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); };
3479 # cc exists but doesn't like -o.
3480 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3485 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3487 rm -f core conftest*
3490 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3491 { echo "$as_me:$LINENO: result: yes" >&5
3492 echo "${ECHO_T}yes" >&6; }
3494 { echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6; }
3497 cat >>confdefs.h <<\_ACEOF
3498 #define NO_MINUS_C_MINUS_O 1
3504 ac_cpp='$CPP $CPPFLAGS'
3505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3509 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3510 # On Suns, sometimes $CPP names a directory.
3511 if test -n "$CPP" && test -d "$CPP"; then
3514 if test -z "$CPP"; then
3515 if test "${ac_cv_prog_CPP+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3518 # Double quotes because CPP needs to be expanded
3519 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3522 for ac_c_preproc_warn_flag in '' yes
3524 # Use a header file that comes with gcc, so configuring glibc
3525 # with a fresh cross-compiler works.
3526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3527 # <limits.h> exists even on freestanding compilers.
3528 # On the NeXT, cc -E runs the code through the compiler's parser,
3529 # not just through cpp. "Syntax error" is here to catch this case.
3530 cat >conftest.$ac_ext <<_ACEOF
3533 cat confdefs.h >>conftest.$ac_ext
3534 cat >>conftest.$ac_ext <<_ACEOF
3535 /* end confdefs.h. */
3537 # include <limits.h>
3539 # include <assert.h>
3543 if { (ac_try="$ac_cpp conftest.$ac_ext"
3545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3546 *) ac_try_echo=$ac_try;;
3548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3551 grep -v '^ *+' conftest.er1 >conftest.err
3553 cat conftest.err >&5
3554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3555 (exit $ac_status); } >/dev/null && {
3556 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3557 test ! -s conftest.err
3561 echo "$as_me: failed program was:" >&5
3562 sed 's/^/| /' conftest.$ac_ext >&5
3564 # Broken: fails on valid input.
3568 rm -f conftest.err conftest.$ac_ext
3570 # OK, works on sane cases. Now check whether nonexistent headers
3571 # can be detected and how.
3572 cat >conftest.$ac_ext <<_ACEOF
3575 cat confdefs.h >>conftest.$ac_ext
3576 cat >>conftest.$ac_ext <<_ACEOF
3577 /* end confdefs.h. */
3578 #include <ac_nonexistent.h>
3580 if { (ac_try="$ac_cpp conftest.$ac_ext"
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3588 grep -v '^ *+' conftest.er1 >conftest.err
3590 cat conftest.err >&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); } >/dev/null && {
3593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3594 test ! -s conftest.err
3596 # Broken: success on invalid input.
3599 echo "$as_me: failed program was:" >&5
3600 sed 's/^/| /' conftest.$ac_ext >&5
3602 # Passes both tests.
3607 rm -f conftest.err conftest.$ac_ext
3610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3611 rm -f conftest.err conftest.$ac_ext
3612 if $ac_preproc_ok; then
3624 { echo "$as_me:$LINENO: result: $CPP" >&5
3625 echo "${ECHO_T}$CPP" >&6; }
3627 for ac_c_preproc_warn_flag in '' yes
3629 # Use a header file that comes with gcc, so configuring glibc
3630 # with a fresh cross-compiler works.
3631 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3632 # <limits.h> exists even on freestanding compilers.
3633 # On the NeXT, cc -E runs the code through the compiler's parser,
3634 # not just through cpp. "Syntax error" is here to catch this case.
3635 cat >conftest.$ac_ext <<_ACEOF
3638 cat confdefs.h >>conftest.$ac_ext
3639 cat >>conftest.$ac_ext <<_ACEOF
3640 /* end confdefs.h. */
3642 # include <limits.h>
3644 # include <assert.h>
3648 if { (ac_try="$ac_cpp conftest.$ac_ext"
3650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3651 *) ac_try_echo=$ac_try;;
3653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3656 grep -v '^ *+' conftest.er1 >conftest.err
3658 cat conftest.err >&5
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); } >/dev/null && {
3661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3662 test ! -s conftest.err
3666 echo "$as_me: failed program was:" >&5
3667 sed 's/^/| /' conftest.$ac_ext >&5
3669 # Broken: fails on valid input.
3673 rm -f conftest.err conftest.$ac_ext
3675 # OK, works on sane cases. Now check whether nonexistent headers
3676 # can be detected and how.
3677 cat >conftest.$ac_ext <<_ACEOF
3680 cat confdefs.h >>conftest.$ac_ext
3681 cat >>conftest.$ac_ext <<_ACEOF
3682 /* end confdefs.h. */
3683 #include <ac_nonexistent.h>
3685 if { (ac_try="$ac_cpp conftest.$ac_ext"
3687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3693 grep -v '^ *+' conftest.er1 >conftest.err
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } >/dev/null && {
3698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3699 test ! -s conftest.err
3701 # Broken: success on invalid input.
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.$ac_ext >&5
3707 # Passes both tests.
3712 rm -f conftest.err conftest.$ac_ext
3715 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3716 rm -f conftest.err conftest.$ac_ext
3717 if $ac_preproc_ok; then
3720 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3721 See \`config.log' for more details." >&5
3722 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3723 See \`config.log' for more details." >&2;}
3724 { (exit 1); exit 1; }; }
3728 ac_cpp='$CPP $CPPFLAGS'
3729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3735 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3736 if test "${ac_cv_path_GREP+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 # Extract the first word of "grep ggrep" to use in msg output
3740 if test -z "$GREP"; then
3741 set dummy grep ggrep; ac_prog_name=$2
3742 if test "${ac_cv_path_GREP+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 ac_path_GREP_found=false
3746 # Loop through the user's path and test for each of PROGNAME-LIST
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3751 test -z "$as_dir" && as_dir=.
3752 for ac_prog in grep ggrep; do
3753 for ac_exec_ext in '' $ac_executable_extensions; do
3754 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3755 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3756 # Check for GNU ac_path_GREP and select it if it is found.
3757 # Check for GNU $ac_path_GREP
3758 case `"$ac_path_GREP" --version 2>&1` in
3760 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3763 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3766 cat "conftest.in" "conftest.in" >"conftest.tmp"
3767 mv "conftest.tmp" "conftest.in"
3768 cp "conftest.in" "conftest.nl"
3769 echo 'GREP' >> "conftest.nl"
3770 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3771 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3772 ac_count=`expr $ac_count + 1`
3773 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3774 # Best one so far, save it but keep looking for a better one
3775 ac_cv_path_GREP="$ac_path_GREP"
3776 ac_path_GREP_max=$ac_count
3778 # 10*(2^10) chars as input seems more than enough
3779 test $ac_count -gt 10 && break
3781 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3785 $ac_path_GREP_found && break 3
3795 GREP="$ac_cv_path_GREP"
3796 if test -z "$GREP"; then
3797 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3798 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3799 { (exit 1); exit 1; }; }
3803 ac_cv_path_GREP=$GREP
3808 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3809 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3810 GREP="$ac_cv_path_GREP"
3813 { echo "$as_me:$LINENO: checking for egrep" >&5
3814 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3815 if test "${ac_cv_path_EGREP+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3819 then ac_cv_path_EGREP="$GREP -E"
3821 # Extract the first word of "egrep" to use in msg output
3822 if test -z "$EGREP"; then
3823 set dummy egrep; ac_prog_name=$2
3824 if test "${ac_cv_path_EGREP+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3827 ac_path_EGREP_found=false
3828 # Loop through the user's path and test for each of PROGNAME-LIST
3829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3833 test -z "$as_dir" && as_dir=.
3834 for ac_prog in egrep; do
3835 for ac_exec_ext in '' $ac_executable_extensions; do
3836 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3837 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3838 # Check for GNU ac_path_EGREP and select it if it is found.
3839 # Check for GNU $ac_path_EGREP
3840 case `"$ac_path_EGREP" --version 2>&1` in
3842 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3845 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3848 cat "conftest.in" "conftest.in" >"conftest.tmp"
3849 mv "conftest.tmp" "conftest.in"
3850 cp "conftest.in" "conftest.nl"
3851 echo 'EGREP' >> "conftest.nl"
3852 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3853 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3854 ac_count=`expr $ac_count + 1`
3855 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3856 # Best one so far, save it but keep looking for a better one
3857 ac_cv_path_EGREP="$ac_path_EGREP"
3858 ac_path_EGREP_max=$ac_count
3860 # 10*(2^10) chars as input seems more than enough
3861 test $ac_count -gt 10 && break
3863 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3867 $ac_path_EGREP_found && break 3
3877 EGREP="$ac_cv_path_EGREP"
3878 if test -z "$EGREP"; then
3879 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3880 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3881 { (exit 1); exit 1; }; }
3885 ac_cv_path_EGREP=$EGREP
3891 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3892 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3893 EGREP="$ac_cv_path_EGREP"
3896 if test $ac_cv_c_compiler_gnu = yes; then
3897 { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3898 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
3899 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3900 echo $ECHO_N "(cached) $ECHO_C" >&6
3902 ac_pattern="Autoconf.*'x'"
3903 cat >conftest.$ac_ext <<_ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3913 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3914 ac_cv_prog_gcc_traditional=yes
3916 ac_cv_prog_gcc_traditional=no
3921 if test $ac_cv_prog_gcc_traditional = no; then
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3932 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3933 ac_cv_prog_gcc_traditional=yes
3939 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3940 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
3941 if test $ac_cv_prog_gcc_traditional = yes; then
3942 CC="$CC -traditional"
3946 BASECC=`basename $CC`
3948 if test "x$BASECC" = xgcc; then
3949 cat >>confdefs.h <<\_ACEOF
3955 # Extract the first word of "$CXX", so it can be a program name with args.
3956 set dummy $CXX; ac_word=$2
3957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3959 if test "${ac_cv_path_CXX+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3964 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3971 test -z "$as_dir" && as_dir=.
3972 for ac_exec_ext in '' $ac_executable_extensions; do
3973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3974 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3982 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3987 if test -n "$CXX"; then
3988 { echo "$as_me:$LINENO: result: $CXX" >&5
3989 echo "${ECHO_T}$CXX" >&6; }
3991 { echo "$as_me:$LINENO: result: no" >&5
3992 echo "${ECHO_T}no" >&6; }
3996 if test ! -e $CXX; then
3997 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3998 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3999 { (exit 1); exit 1; }; }
4002 # Find a good install program. We prefer a C program (faster),
4003 # so one script is as good as another. But avoid the broken or
4004 # incompatible versions:
4005 # SysV /etc/install, /usr/sbin/install
4006 # SunOS /usr/etc/install
4007 # IRIX /sbin/install
4009 # AmigaOS /C/install, which installs bootblocks on floppy discs
4010 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4011 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4012 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4013 # OS/2's system install, which has a completely different semantic
4014 # ./install, which can be erroneously created by make from ./install.sh.
4015 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4016 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4017 if test -z "$INSTALL"; then
4018 if test "${ac_cv_path_install+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 test -z "$as_dir" && as_dir=.
4026 # Account for people who put trailing slashes in PATH elements.
4028 ./ | .// | /cC/* | \
4029 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4030 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4033 # OSF1 and SCO ODT 3.0 have their own names for install.
4034 # Don't use installbsd from OSF since it installs stuff as root
4036 for ac_prog in ginstall scoinst install; do
4037 for ac_exec_ext in '' $ac_executable_extensions; do
4038 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4039 if test $ac_prog = install &&
4040 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4041 # AIX install. It has an incompatible calling convention.
4043 elif test $ac_prog = install &&
4044 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4045 # program-specific install script used by HP pwplus--don't use.
4048 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4061 if test "${ac_cv_path_install+set}" = set; then
4062 INSTALL=$ac_cv_path_install
4064 # As a last resort, use the slow shell script. Don't cache a
4065 # value for INSTALL within a source directory, because that will
4066 # break other packages using the cache if that directory is
4067 # removed, or if the value is a relative name.
4068 INSTALL=$ac_install_sh
4071 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4072 echo "${ECHO_T}$INSTALL" >&6; }
4074 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4075 # It thinks the first close brace ends the variable substitution.
4076 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4078 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4080 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4082 if test -n "$ac_tool_prefix"; then
4083 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4084 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4085 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4087 if test "${ac_cv_prog_RANLIB+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 if test -n "$RANLIB"; then
4091 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4100 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4110 RANLIB=$ac_cv_prog_RANLIB
4111 if test -n "$RANLIB"; then
4112 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4113 echo "${ECHO_T}$RANLIB" >&6; }
4115 { echo "$as_me:$LINENO: result: no" >&5
4116 echo "${ECHO_T}no" >&6; }
4121 if test -z "$ac_cv_prog_RANLIB"; then
4122 ac_ct_RANLIB=$RANLIB
4123 # Extract the first word of "ranlib", so it can be a program name with args.
4124 set dummy ranlib; ac_word=$2
4125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4127 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 if test -n "$ac_ct_RANLIB"; then
4131 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 test -z "$as_dir" && as_dir=.
4138 for ac_exec_ext in '' $ac_executable_extensions; do
4139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4140 ac_cv_prog_ac_ct_RANLIB="ranlib"
4141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4150 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4151 if test -n "$ac_ct_RANLIB"; then
4152 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4153 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4155 { echo "$as_me:$LINENO: result: no" >&5
4156 echo "${ECHO_T}no" >&6; }
4159 if test "x$ac_ct_RANLIB" = x; then
4162 case $cross_compiling:$ac_tool_warned in
4164 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4165 whose name does not start with the host triplet. If you think this
4166 configuration is useful to you, please write to autoconf@gnu.org." >&5
4167 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4168 whose name does not start with the host triplet. If you think this
4169 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4170 ac_tool_warned=yes ;;
4172 RANLIB=$ac_ct_RANLIB
4175 RANLIB="$ac_cv_prog_RANLIB"
4178 # Extract the first word of "mv", so it can be a program name with args.
4179 set dummy mv; ac_word=$2
4180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4182 if test "${ac_cv_path_MV+set}" = set; then
4183 echo $ECHO_N "(cached) $ECHO_C" >&6
4187 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4197 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4210 if test -n "$MV"; then
4211 { echo "$as_me:$LINENO: result: $MV" >&5
4212 echo "${ECHO_T}$MV" >&6; }
4214 { echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6; }
4219 # Extract the first word of "rm", so it can be a program name with args.
4220 set dummy rm; ac_word=$2
4221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4223 if test "${ac_cv_path_RM+set}" = set; then
4224 echo $ECHO_N "(cached) $ECHO_C" >&6
4228 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4246 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4251 if test -n "$RM"; then
4252 { echo "$as_me:$LINENO: result: $RM" >&5
4253 echo "${ECHO_T}$RM" >&6; }
4255 { echo "$as_me:$LINENO: result: no" >&5
4256 echo "${ECHO_T}no" >&6; }
4260 # Extract the first word of "cp", so it can be a program name with args.
4261 set dummy cp; ac_word=$2
4262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4264 if test "${ac_cv_path_CP+set}" = set; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4292 if test -n "$CP"; then
4293 { echo "$as_me:$LINENO: result: $CP" >&5
4294 echo "${ECHO_T}$CP" >&6; }
4296 { echo "$as_me:$LINENO: result: no" >&5
4297 echo "${ECHO_T}no" >&6; }
4301 # Extract the first word of "sed", so it can be a program name with args.
4302 set dummy sed; ac_word=$2
4303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4305 if test "${ac_cv_path_SED+set}" = set; then
4306 echo $ECHO_N "(cached) $ECHO_C" >&6
4310 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 test -z "$as_dir" && as_dir=.
4318 for ac_exec_ext in '' $ac_executable_extensions; do
4319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4320 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4333 if test -n "$SED"; then
4334 { echo "$as_me:$LINENO: result: $SED" >&5
4335 echo "${ECHO_T}$SED" >&6; }
4337 { echo "$as_me:$LINENO: result: no" >&5
4338 echo "${ECHO_T}no" >&6; }
4342 # Extract the first word of "echo", so it can be a program name with args.
4343 set dummy echo; ac_word=$2
4344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4346 if test "${ac_cv_path_ECHO+set}" = set; then
4347 echo $ECHO_N "(cached) $ECHO_C" >&6
4351 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4358 test -z "$as_dir" && as_dir=.
4359 for ac_exec_ext in '' $ac_executable_extensions; do
4360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4361 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
4373 ECHO=$ac_cv_path_ECHO
4374 if test -n "$ECHO"; then
4375 { echo "$as_me:$LINENO: result: $ECHO" >&5
4376 echo "${ECHO_T}$ECHO" >&6; }
4378 { echo "$as_me:$LINENO: result: no" >&5
4379 echo "${ECHO_T}no" >&6; }
4383 # Extract the first word of "cmp", so it can be a program name with args.
4384 set dummy cmp; ac_word=$2
4385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4387 if test "${ac_cv_path_CMP+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
4415 if test -n "$CMP"; then
4416 { echo "$as_me:$LINENO: result: $CMP" >&5
4417 echo "${ECHO_T}$CMP" >&6; }
4419 { echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6; }
4424 # Extract the first word of "tbl", so it can be a program name with args.
4425 set dummy tbl; ac_word=$2
4426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4428 if test "${ac_cv_path_TBL+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4443 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
4444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
4456 if test -n "$TBL"; then
4457 { echo "$as_me:$LINENO: result: $TBL" >&5
4458 echo "${ECHO_T}$TBL" >&6; }
4460 { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4465 # Extract the first word of "ar", so it can be a program name with args.
4466 set dummy ar; ac_word=$2
4467 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4469 if test "${ac_cv_path_AR+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4481 test -z "$as_dir" && as_dir=.
4482 for ac_exec_ext in '' $ac_executable_extensions; do
4483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4484 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
4485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
4497 if test -n "$AR"; then
4498 { echo "$as_me:$LINENO: result: $AR" >&5
4499 echo "${ECHO_T}$AR" >&6; }
4501 { echo "$as_me:$LINENO: result: no" >&5
4502 echo "${ECHO_T}no" >&6; }
4506 # Extract the first word of "openssl", so it can be a program name with args.
4507 set dummy openssl; ac_word=$2
4508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4510 if test "${ac_cv_path_OPENSSL+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4525 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
4537 OPENSSL=$ac_cv_path_OPENSSL
4538 if test -n "$OPENSSL"; then
4539 { echo "$as_me:$LINENO: result: $OPENSSL" >&5
4540 echo "${ECHO_T}$OPENSSL" >&6; }
4542 { echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6; }
4547 # Extract the first word of "mtx", so it can be a program name with args.
4548 set dummy mtx; ac_word=$2
4549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4551 if test "${ac_cv_path_MTX+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 test -z "$as_dir" && as_dir=.
4564 for ac_exec_ext in '' $ac_executable_extensions; do
4565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
4567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
4579 if test -n "$MTX"; then
4580 { echo "$as_me:$LINENO: result: $MTX" >&5
4581 echo "${ECHO_T}$MTX" >&6; }
4583 { echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6; }
4588 # Extract the first word of "dd", so it can be a program name with args.
4589 set dummy dd; ac_word=$2
4590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592 if test "${ac_cv_path_DD+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 ac_cv_path_DD="$DD" # Let the user override the test with a path.
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
4620 if test -n "$DD"; then
4621 { echo "$as_me:$LINENO: result: $DD" >&5
4622 echo "${ECHO_T}$DD" >&6; }
4624 { echo "$as_me:$LINENO: result: no" >&5
4625 echo "${ECHO_T}no" >&6; }
4629 # Extract the first word of "mkisofs", so it can be a program name with args.
4630 set dummy mkisofs; ac_word=$2
4631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4633 if test "${ac_cv_path_MKISOFS+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4638 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4648 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
4649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
4660 MKISOFS=$ac_cv_path_MKISOFS
4661 if test -n "$MKISOFS"; then
4662 { echo "$as_me:$LINENO: result: $MKISOFS" >&5
4663 echo "${ECHO_T}$MKISOFS" >&6; }
4665 { echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6; }
4670 # Extract the first word of "python", so it can be a program name with args.
4671 set dummy python; ac_word=$2
4672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4674 if test "${ac_cv_path_PYTHON+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4697 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
4701 PYTHON=$ac_cv_path_PYTHON
4702 if test -n "$PYTHON"; then
4703 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4704 echo "${ECHO_T}$PYTHON" >&6; }
4706 { echo "$as_me:$LINENO: result: no" >&5
4707 echo "${ECHO_T}no" >&6; }
4711 # Extract the first word of "growisofs", so it can be a program name with args.
4712 set dummy growisofs; ac_word=$2
4713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4715 if test "${ac_cv_path_GROWISOFS+set}" = set; then
4716 echo $ECHO_N "(cached) $ECHO_C" >&6
4720 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
4731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4738 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
4742 GROWISOFS=$ac_cv_path_GROWISOFS
4743 if test -n "$GROWISOFS"; then
4744 { echo "$as_me:$LINENO: result: $GROWISOFS" >&5
4745 echo "${ECHO_T}$GROWISOFS" >&6; }
4747 { echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6; }
4752 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
4753 set dummy dvd+rw-mediainfo; ac_word=$2
4754 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4755 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4756 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
4757 echo $ECHO_N "(cached) $ECHO_C" >&6
4759 case $DVDRWMEDIAINFO in
4761 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 test -z "$as_dir" && as_dir=.
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4771 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
4772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4779 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
4783 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4784 if test -n "$DVDRWMEDIAINFO"; then
4785 { echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4786 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6; }
4788 { echo "$as_me:$LINENO: result: no" >&5
4789 echo "${ECHO_T}no" >&6; }
4793 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
4794 set dummy dvd+rw-format; ac_word=$2
4795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4797 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then
4798 echo $ECHO_N "(cached) $ECHO_C" >&6
4800 case $DVDRWFORMAT in
4802 ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4809 test -z "$as_dir" && as_dir=.
4810 for ac_exec_ext in '' $ac_executable_extensions; do
4811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4812 ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
4813 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4820 test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
4824 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
4825 if test -n "$DVDRWFORMAT"; then
4826 { echo "$as_me:$LINENO: result: $DVDRWFORMAT" >&5
4827 echo "${ECHO_T}$DVDRWFORMAT" >&6; }
4829 { echo "$as_me:$LINENO: result: no" >&5
4830 echo "${ECHO_T}no" >&6; }
4834 # Extract the first word of "pkg-config", so it can be a program name with args.
4835 set dummy pkg-config; ac_word=$2
4836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4838 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4839 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 test -z "$as_dir" && as_dir=.
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4853 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4861 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4865 PKGCONFIG=$ac_cv_path_PKGCONFIG
4866 if test -n "$PKGCONFIG"; then
4867 { echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4868 echo "${ECHO_T}$PKGCONFIG" >&6; }
4870 { echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6; }
4875 # Extract the first word of "qmake", so it can be a program name with args.
4876 set dummy qmake; ac_word=$2
4877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4879 if test "${ac_cv_path_QMAKE+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4894 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
4895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4902 test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
4906 QMAKE=$ac_cv_path_QMAKE
4907 if test -n "$QMAKE"; then
4908 { echo "$as_me:$LINENO: result: $QMAKE" >&5
4909 echo "${ECHO_T}$QMAKE" >&6; }
4911 { echo "$as_me:$LINENO: result: no" >&5
4912 echo "${ECHO_T}no" >&6; }
4916 # Extract the first word of "qmake-qt4", so it can be a program name with args.
4917 set dummy qmake-qt4; ac_word=$2
4918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4920 if test "${ac_cv_path_QMAKEQT4+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 ac_cv_path_QMAKEQT4="$QMAKEQT4" # Let the user override the test with a path.
4928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4935 ac_cv_path_QMAKEQT4="$as_dir/$ac_word$ac_exec_ext"
4936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 test -z "$ac_cv_path_QMAKEQT4" && ac_cv_path_QMAKEQT4="none"
4947 QMAKEQT4=$ac_cv_path_QMAKEQT4
4948 if test -n "$QMAKEQT4"; then
4949 { echo "$as_me:$LINENO: result: $QMAKEQT4" >&5
4950 echo "${ECHO_T}$QMAKEQT4" >&6; }
4952 { echo "$as_me:$LINENO: result: no" >&5
4953 echo "${ECHO_T}no" >&6; }
4958 if test "x$WXCONFIG" = x; then
4961 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4962 set dummy ${WXCONFIG}; ac_word=$2
4963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4965 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4988 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4992 WXCONFIG=$ac_cv_path_WXCONFIG
4993 if test -n "$WXCONFIG"; then
4994 { echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4995 echo "${ECHO_T}$WXCONFIG" >&6; }
4997 { echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6; }
5003 # Extract the first word of "cdrecord", so it can be a program name with args.
5004 set dummy cdrecord; ac_word=$2
5005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5007 if test "${ac_cv_path_CDRECORD+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5034 CDRECORD=$ac_cv_path_CDRECORD
5035 if test -n "$CDRECORD"; then
5036 { echo "$as_me:$LINENO: result: $CDRECORD" >&5
5037 echo "${ECHO_T}$CDRECORD" >&6; }
5039 { echo "$as_me:$LINENO: result: no" >&5
5040 echo "${ECHO_T}no" >&6; }
5044 # Extract the first word of "pidof", so it can be a program name with args.
5045 set dummy pidof; ac_word=$2
5046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5048 if test "${ac_cv_path_PIDOF+set}" = set; then
5049 echo $ECHO_N "(cached) $ECHO_C" >&6
5053 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5071 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5075 PIDOF=$ac_cv_path_PIDOF
5076 if test -n "$PIDOF"; then
5077 { echo "$as_me:$LINENO: result: $PIDOF" >&5
5078 echo "${ECHO_T}$PIDOF" >&6; }
5080 { echo "$as_me:$LINENO: result: no" >&5
5081 echo "${ECHO_T}no" >&6; }
5085 for ac_prog in gawk mawk nawk awk
5087 # Extract the first word of "$ac_prog", so it can be a program name with args.
5088 set dummy $ac_prog; ac_word=$2
5089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5091 if test "${ac_cv_prog_AWK+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5094 if test -n "$AWK"; then
5095 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104 ac_cv_prog_AWK="$ac_prog"
5105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 if test -n "$AWK"; then
5116 { echo "$as_me:$LINENO: result: $AWK" >&5
5117 echo "${ECHO_T}$AWK" >&6; }
5119 { echo "$as_me:$LINENO: result: no" >&5
5120 echo "${ECHO_T}no" >&6; }
5124 test -n "$AWK" && break
5127 # Some AWK programs fail, so test it and warn the user
5128 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5129 { if ((prog == $2) || (("(" prog ")") == $2) ||
5130 (("" prog "") == $2) ||
5131 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5133 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5134 The regex engine of $AWK is too broken to be used you
5135 might want to install GNU AWK.
5136 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
5137 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
5138 The regex engine of $AWK is too broken to be used you
5139 might want to install GNU AWK.
5140 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
5141 { (exit 1); exit 1; }; }
5144 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5145 set dummy $THE_AWK; ac_word=$2
5146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5148 if test "${ac_cv_path_AWK+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5153 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5160 test -z "$as_dir" && as_dir=.
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5164 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5176 if test -n "$AWK"; then
5177 { echo "$as_me:$LINENO: result: $AWK" >&5
5178 echo "${ECHO_T}$AWK" >&6; }
5180 { echo "$as_me:$LINENO: result: no" >&5
5181 echo "${ECHO_T}no" >&6; }
5187 test -n "$ARFLAG" || ARFLAGS="cr"
5198 # Make sure we can run config.sub.
5199 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5200 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5201 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5202 { (exit 1); exit 1; }; }
5204 { echo "$as_me:$LINENO: checking build system type" >&5
5205 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5206 if test "${ac_cv_build+set}" = set; then
5207 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 ac_build_alias=$build_alias
5210 test "x$ac_build_alias" = x &&
5211 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5212 test "x$ac_build_alias" = x &&
5213 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5214 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5215 { (exit 1); exit 1; }; }
5216 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5217 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5218 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5219 { (exit 1); exit 1; }; }
5222 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5223 echo "${ECHO_T}$ac_cv_build" >&6; }
5224 case $ac_cv_build in
5226 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5227 echo "$as_me: error: invalid value of canonical build" >&2;}
5228 { (exit 1); exit 1; }; };;
5231 ac_save_IFS=$IFS; IFS='-'
5237 # Remember, the first character of IFS is used to create $*,
5238 # except with old shells:
5241 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5245 { echo "$as_me:$LINENO: checking host system type" >&5
5246 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5247 if test "${ac_cv_host+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5250 if test "x$host_alias" = x; then
5251 ac_cv_host=$ac_cv_build
5253 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5254 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5255 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5256 { (exit 1); exit 1; }; }
5260 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5261 echo "${ECHO_T}$ac_cv_host" >&6; }
5264 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5265 echo "$as_me: error: invalid value of canonical host" >&2;}
5266 { (exit 1); exit 1; }; };;
5269 ac_save_IFS=$IFS; IFS='-'
5275 # Remember, the first character of IFS is used to create $*,
5276 # except with old shells:
5279 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5283 *cygwin* ) CYGWIN=yes;;
5287 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5293 HAVE_SUN_OS_FALSE='#'
5295 HAVE_SUN_OS_TRUE='#'
5298 cat >>confdefs.h <<\_ACEOF
5299 #define HAVE_SUN_OS 1
5307 HAVE_SUN_OS_FALSE='#'
5309 HAVE_SUN_OS_TRUE='#'
5314 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5320 HAVE_OSF1_OS_FALSE='#'
5322 HAVE_OSF1_OS_TRUE='#'
5325 cat >>confdefs.h <<\_ACEOF
5326 #define HAVE_OSF1_OS 1
5334 HAVE_OSF1_OS_FALSE='#'
5336 HAVE_OSF1_OS_TRUE='#'
5341 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5347 HAVE_AIX_OS_FALSE='#'
5349 HAVE_AIX_OS_TRUE='#'
5352 cat >>confdefs.h <<\_ACEOF
5353 #define HAVE_AIX_OS 1
5361 HAVE_AIX_OS_FALSE='#'
5363 HAVE_AIX_OS_TRUE='#'
5368 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5374 HAVE_HPUX_OS_FALSE='#'
5376 HAVE_HPUX_OS_TRUE='#'
5379 cat >>confdefs.h <<\_ACEOF
5380 #define HAVE_HPUX_OS 1
5388 HAVE_HPUX_OS_FALSE='#'
5390 HAVE_HPUX_OS_TRUE='#'
5395 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
5401 HAVE_LINUX_OS_FALSE='#'
5403 HAVE_LINUX_OS_TRUE='#'
5404 HAVE_LINUX_OS_FALSE=
5406 cat >>confdefs.h <<\_ACEOF
5407 #define HAVE_LINUX_OS 1
5415 HAVE_LINUX_OS_FALSE='#'
5417 HAVE_LINUX_OS_TRUE='#'
5418 HAVE_LINUX_OS_FALSE=
5422 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5427 HAVE_FREEBSD_OS_TRUE=
5428 HAVE_FREEBSD_OS_FALSE='#'
5430 HAVE_FREEBSD_OS_TRUE='#'
5431 HAVE_FREEBSD_OS_FALSE=
5433 cat >>confdefs.h <<\_ACEOF
5434 #define HAVE_FREEBSD_OS 1
5441 HAVE_FREEBSD_OS_TRUE=
5442 HAVE_FREEBSD_OS_FALSE='#'
5444 HAVE_FREEBSD_OS_TRUE='#'
5445 HAVE_FREEBSD_OS_FALSE=
5449 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5454 HAVE_NETBSD_OS_TRUE=
5455 HAVE_NETBSD_OS_FALSE='#'
5457 HAVE_NETBSD_OS_TRUE='#'
5458 HAVE_NETBSD_OS_FALSE=
5460 cat >>confdefs.h <<\_ACEOF
5461 #define HAVE_NETBSD_OS 1
5468 HAVE_NETBSD_OS_TRUE=
5469 HAVE_NETBSD_OS_FALSE='#'
5471 HAVE_NETBSD_OS_TRUE='#'
5472 HAVE_NETBSD_OS_FALSE=
5476 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5481 HAVE_OPENBSD_OS_TRUE=
5482 HAVE_OPENBSD_OS_FALSE='#'
5484 HAVE_OPENBSD_OS_TRUE='#'
5485 HAVE_OPENBSD_OS_FALSE=
5487 cat >>confdefs.h <<\_ACEOF
5488 #define HAVE_OPENBSD_OS 1
5495 HAVE_OPENBSD_OS_TRUE=
5496 HAVE_OPENBSD_OS_FALSE='#'
5498 HAVE_OPENBSD_OS_TRUE='#'
5499 HAVE_OPENBSD_OS_FALSE=
5503 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5509 HAVE_BSDI_OS_FALSE='#'
5511 HAVE_BSDI_OS_TRUE='#'
5514 cat >>confdefs.h <<\_ACEOF
5515 #define HAVE_BSDI_OS 1
5523 HAVE_BSDI_OS_FALSE='#'
5525 HAVE_BSDI_OS_TRUE='#'
5530 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
5536 HAVE_SGI_OS_FALSE='#'
5538 HAVE_SGI_OS_TRUE='#'
5541 cat >>confdefs.h <<\_ACEOF
5542 #define HAVE_SGI_OS 1
5550 HAVE_SGI_OS_FALSE='#'
5552 HAVE_SGI_OS_TRUE='#'
5557 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
5563 HAVE_IRIX_OS_FALSE='#'
5565 HAVE_IRIX_OS_TRUE='#'
5568 cat >>confdefs.h <<\_ACEOF
5569 #define HAVE_IRIX_OS 1
5577 HAVE_IRIX_OS_FALSE='#'
5579 HAVE_IRIX_OS_TRUE='#'
5584 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5589 HAVE_DARWIN_OS_TRUE=
5590 HAVE_DARWIN_OS_FALSE='#'
5592 HAVE_DARWIN_OS_TRUE='#'
5593 HAVE_DARWIN_OS_FALSE=
5596 cat >>confdefs.h <<\_ACEOF
5597 #define HAVE_DARWIN_OS 1
5604 HAVE_DARWIN_OS_TRUE=
5605 HAVE_DARWIN_OS_FALSE='#'
5607 HAVE_DARWIN_OS_TRUE='#'
5608 HAVE_DARWIN_OS_FALSE=
5614 # -----------------------------------------------------------
5615 # ----------------------------------------------------------
5616 { echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
5617 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6; }
5618 if test "x$DISTNAME" != "x"
5620 echo "distname set to $DISTNAME"
5621 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
5624 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
5627 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
5630 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
5633 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
5636 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
5639 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
5642 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
5645 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
5648 elif test -f /etc/SuSE-release
5651 elif test -d /etc/SuSEconfig
5654 elif test -f /etc/mandrake-release
5657 elif test -f /etc/whitebox-release
5660 elif test -f /etc/redhat-release
5663 elif test -f /etc/gentoo-release
5666 elif test -f /etc/debian_version
5669 elif test -f /etc/slackware-version
5672 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
5675 elif test -f /etc/engarde-version
5678 elif test "$CYGWIN" = yes
5681 cat >>confdefs.h <<\_ACEOF
5682 #define HAVE_CYGWIN 1
5688 { echo "$as_me:$LINENO: result: done" >&5
5689 echo "${ECHO_T}done" >&6; }
5692 # --------------------------------------------------
5693 # Suppport for gettext (translations)
5694 # By default, $datadir is ${prefix}/share
5695 # --------------------------------------------------
5696 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5697 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
5698 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5699 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5700 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 cat >conftest.make <<\_ACEOF
5705 @echo '@@@%%%=$(MAKE)=@@@%%%'
5707 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5708 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5710 eval ac_cv_prog_make_${ac_make}_set=yes;;
5712 eval ac_cv_prog_make_${ac_make}_set=no;;
5716 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5717 { echo "$as_me:$LINENO: result: yes" >&5
5718 echo "${ECHO_T}yes" >&6; }
5721 { echo "$as_me:$LINENO: result: no" >&5
5722 echo "${ECHO_T}no" >&6; }
5723 SET_MAKE="MAKE=${MAKE-make}"
5729 if test -n "$ac_aux_dir"; then
5730 case "$ac_aux_dir" in
5731 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5732 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5735 if test -z "$MKINSTALLDIRS"; then
5736 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5741 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5742 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5743 # Check whether --enable-nls was given.
5744 if test "${enable_nls+set}" = set; then
5745 enableval=$enable_nls; USE_NLS=$enableval
5750 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5751 echo "${ECHO_T}$USE_NLS" >&6; }
5758 # Prepare PATH_SEPARATOR.
5759 # The user is always right.
5760 if test "${PATH_SEPARATOR+set}" != set; then
5761 echo "#! /bin/sh" >conf$$.sh
5762 echo "exit 0" >>conf$$.sh
5764 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5772 # Find out how to test for executable files. Don't use a zero-byte file,
5773 # as systems may use methods other than mode bits to determine executability.
5774 cat >conf$$.file <<_ASEOF
5778 chmod +x conf$$.file
5779 if test -x conf$$.file >/dev/null 2>&1; then
5780 ac_executable_p="test -x"
5782 ac_executable_p="test -f"
5786 # Extract the first word of "msgfmt", so it can be a program name with args.
5787 set dummy msgfmt; ac_word=$2
5788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5790 if test "${ac_cv_path_MSGFMT+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5798 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5799 for ac_dir in $PATH; do
5801 test -z "$ac_dir" && ac_dir=.
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5804 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5805 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5806 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5807 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5814 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5818 MSGFMT="$ac_cv_path_MSGFMT"
5819 if test "$MSGFMT" != ":"; then
5820 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5821 echo "${ECHO_T}$MSGFMT" >&6; }
5823 { echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6; }
5827 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5828 set dummy gmsgfmt; ac_word=$2
5829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5831 if test "${ac_cv_path_GMSGFMT+set}" = set; then
5832 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5846 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5858 GMSGFMT=$ac_cv_path_GMSGFMT
5859 if test -n "$GMSGFMT"; then
5860 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5861 echo "${ECHO_T}$GMSGFMT" >&6; }
5863 { echo "$as_me:$LINENO: result: no" >&5
5864 echo "${ECHO_T}no" >&6; }
5870 # Prepare PATH_SEPARATOR.
5871 # The user is always right.
5872 if test "${PATH_SEPARATOR+set}" != set; then
5873 echo "#! /bin/sh" >conf$$.sh
5874 echo "exit 0" >>conf$$.sh
5876 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5884 # Find out how to test for executable files. Don't use a zero-byte file,
5885 # as systems may use methods other than mode bits to determine executability.
5886 cat >conf$$.file <<_ASEOF
5890 chmod +x conf$$.file
5891 if test -x conf$$.file >/dev/null 2>&1; then
5892 ac_executable_p="test -x"
5894 ac_executable_p="test -f"
5898 # Extract the first word of "xgettext", so it can be a program name with args.
5899 set dummy xgettext; ac_word=$2
5900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5902 if test "${ac_cv_path_XGETTEXT+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5907 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5910 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5911 for ac_dir in $PATH; do
5913 test -z "$ac_dir" && ac_dir=.
5914 for ac_exec_ext in '' $ac_executable_extensions; do
5915 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5916 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5917 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5918 (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
5919 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5926 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5930 XGETTEXT="$ac_cv_path_XGETTEXT"
5931 if test "$XGETTEXT" != ":"; then
5932 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5933 echo "${ECHO_T}$XGETTEXT" >&6; }
5935 { echo "$as_me:$LINENO: result: no" >&5
5936 echo "${ECHO_T}no" >&6; }
5942 # Prepare PATH_SEPARATOR.
5943 # The user is always right.
5944 if test "${PATH_SEPARATOR+set}" != set; then
5945 echo "#! /bin/sh" >conf$$.sh
5946 echo "exit 0" >>conf$$.sh
5948 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5956 # Find out how to test for executable files. Don't use a zero-byte file,
5957 # as systems may use methods other than mode bits to determine executability.
5958 cat >conf$$.file <<_ASEOF
5962 chmod +x conf$$.file
5963 if test -x conf$$.file >/dev/null 2>&1; then
5964 ac_executable_p="test -x"
5966 ac_executable_p="test -f"
5970 # Extract the first word of "msgmerge", so it can be a program name with args.
5971 set dummy msgmerge; ac_word=$2
5972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5974 if test "${ac_cv_path_MSGMERGE+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5982 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5983 for ac_dir in $PATH; do
5985 test -z "$ac_dir" && ac_dir=.
5986 for ac_exec_ext in '' $ac_executable_extensions; do
5987 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5988 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5989 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5990 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5997 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6001 MSGMERGE="$ac_cv_path_MSGMERGE"
6002 if test "$MSGMERGE" != ":"; then
6003 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
6004 echo "${ECHO_T}$MSGMERGE" >&6; }
6006 { echo "$as_me:$LINENO: result: no" >&5
6007 echo "${ECHO_T}no" >&6; }
6011 if test "$GMSGFMT" != ":"; then
6012 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
6013 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6016 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
6017 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
6018 echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
6023 if test "$XGETTEXT" != ":"; then
6024 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
6025 (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
6028 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
6029 echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
6035 ac_config_commands="$ac_config_commands default-1"
6039 if test "X$prefix" = "XNONE"; then
6040 acl_final_prefix="$ac_default_prefix"
6042 acl_final_prefix="$prefix"
6044 if test "X$exec_prefix" = "XNONE"; then
6045 acl_final_exec_prefix='${prefix}'
6047 acl_final_exec_prefix="$exec_prefix"
6049 acl_save_prefix="$prefix"
6050 prefix="$acl_final_prefix"
6051 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6052 prefix="$acl_save_prefix"
6055 # Check whether --with-gnu-ld was given.
6056 if test "${with_gnu_ld+set}" = set; then
6057 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6062 # Prepare PATH_SEPARATOR.
6063 # The user is always right.
6064 if test "${PATH_SEPARATOR+set}" != set; then
6065 echo "#! /bin/sh" >conf$$.sh
6066 echo "exit 0" >>conf$$.sh
6068 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6076 if test "$GCC" = yes; then
6077 # Check if gcc -print-prog-name=ld gives a path.
6078 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
6079 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
6082 # gcc leaves a trailing carriage return which upsets mingw
6083 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6085 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6088 # Accept absolute paths.
6089 [\\/]* | [A-Za-z]:[\\/]*)
6090 re_direlt='/[^/][^/]*/\.\./'
6091 # Canonicalize the path of ld
6092 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6093 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6094 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6096 test -z "$LD" && LD="$ac_prog"
6099 # If it fails, then pretend we aren't using GCC.
6103 # If it is relative, then search for the first ld in PATH.
6107 elif test "$with_gnu_ld" = yes; then
6108 { echo "$as_me:$LINENO: checking for GNU ld" >&5
6109 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6111 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6112 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6114 if test "${acl_cv_path_LD+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 if test -z "$LD"; then
6118 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6119 for ac_dir in $PATH; do
6120 test -z "$ac_dir" && ac_dir=.
6121 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6122 acl_cv_path_LD="$ac_dir/$ac_prog"
6123 # Check to see if the program is GNU ld. I'd rather use --version,
6124 # but apparently some GNU ld's only accept -v.
6125 # Break only if it was the GNU/non-GNU ld that we prefer.
6126 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6127 *GNU* | *'with BFD'*)
6128 test "$with_gnu_ld" != no && break ;;
6130 test "$with_gnu_ld" != yes && break ;;
6136 acl_cv_path_LD="$LD" # Let the user override the test with a path.
6140 LD="$acl_cv_path_LD"
6141 if test -n "$LD"; then
6142 { echo "$as_me:$LINENO: result: $LD" >&5
6143 echo "${ECHO_T}$LD" >&6; }
6145 { echo "$as_me:$LINENO: result: no" >&5
6146 echo "${ECHO_T}no" >&6; }
6148 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6149 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6150 { (exit 1); exit 1; }; }
6151 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6152 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6153 if test "${acl_cv_prog_gnu_ld+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6157 case `$LD -v 2>&1 </dev/null` in
6158 *GNU* | *'with BFD'*)
6159 acl_cv_prog_gnu_ld=yes ;;
6161 acl_cv_prog_gnu_ld=no ;;
6164 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
6165 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
6166 with_gnu_ld=$acl_cv_prog_gnu_ld
6171 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
6172 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
6173 if test "${acl_cv_rpath+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6178 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6184 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
6185 echo "${ECHO_T}$acl_cv_rpath" >&6; }
6187 libext="$acl_cv_libext"
6188 shlibext="$acl_cv_shlibext"
6189 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6190 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6191 hardcode_direct="$acl_cv_hardcode_direct"
6192 hardcode_minus_L="$acl_cv_hardcode_minus_L"
6193 # Check whether --enable-rpath was given.
6194 if test "${enable_rpath+set}" = set; then
6195 enableval=$enable_rpath; :
6209 acl_save_prefix="$prefix"
6210 prefix="$acl_final_prefix"
6211 acl_save_exec_prefix="$exec_prefix"
6212 exec_prefix="$acl_final_exec_prefix"
6214 eval additional_includedir=\"$includedir\"
6215 eval additional_libdir=\"$libdir\"
6217 exec_prefix="$acl_save_exec_prefix"
6218 prefix="$acl_save_prefix"
6221 # Check whether --with-libiconv-prefix was given.
6222 if test "${with_libiconv_prefix+set}" = set; then
6223 withval=$with_libiconv_prefix;
6224 if test "X$withval" = "Xno"; then
6227 if test "X$withval" = "X"; then
6229 acl_save_prefix="$prefix"
6230 prefix="$acl_final_prefix"
6231 acl_save_exec_prefix="$exec_prefix"
6232 exec_prefix="$acl_final_exec_prefix"
6234 eval additional_includedir=\"$includedir\"
6235 eval additional_libdir=\"$libdir\"
6237 exec_prefix="$acl_save_exec_prefix"
6238 prefix="$acl_save_prefix"
6241 additional_includedir="$withval/include"
6242 additional_libdir="$withval/lib"
6253 names_already_handled=
6254 names_next_round='iconv '
6255 while test -n "$names_next_round"; do
6256 names_this_round="$names_next_round"
6258 for name in $names_this_round; do
6260 for n in $names_already_handled; do
6261 if test "$n" = "$name"; then
6266 if test -z "$already_handled"; then
6267 names_already_handled="$names_already_handled $name"
6268 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6269 eval value=\"\$HAVE_LIB$uppername\"
6270 if test -n "$value"; then
6271 if test "$value" = yes; then
6272 eval value=\"\$LIB$uppername\"
6273 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6274 eval value=\"\$LTLIB$uppername\"
6275 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6284 if test $use_additional = yes; then
6285 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6286 found_dir="$additional_libdir"
6287 found_so="$additional_libdir/lib$name.$shlibext"
6288 if test -f "$additional_libdir/lib$name.la"; then
6289 found_la="$additional_libdir/lib$name.la"
6292 if test -f "$additional_libdir/lib$name.$libext"; then
6293 found_dir="$additional_libdir"
6294 found_a="$additional_libdir/lib$name.$libext"
6295 if test -f "$additional_libdir/lib$name.la"; then
6296 found_la="$additional_libdir/lib$name.la"
6301 if test "X$found_dir" = "X"; then
6302 for x in $LDFLAGS $LTLIBICONV; do
6304 acl_save_prefix="$prefix"
6305 prefix="$acl_final_prefix"
6306 acl_save_exec_prefix="$exec_prefix"
6307 exec_prefix="$acl_final_exec_prefix"
6309 exec_prefix="$acl_save_exec_prefix"
6310 prefix="$acl_save_prefix"
6314 dir=`echo "X$x" | sed -e 's/^X-L//'`
6315 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6317 found_so="$dir/lib$name.$shlibext"
6318 if test -f "$dir/lib$name.la"; then
6319 found_la="$dir/lib$name.la"
6322 if test -f "$dir/lib$name.$libext"; then
6324 found_a="$dir/lib$name.$libext"
6325 if test -f "$dir/lib$name.la"; then
6326 found_la="$dir/lib$name.la"
6332 if test "X$found_dir" != "X"; then
6337 if test "X$found_dir" != "X"; then
6338 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6339 if test "X$found_so" != "X"; then
6340 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6341 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6344 for x in $ltrpathdirs; do
6345 if test "X$x" = "X$found_dir"; then
6350 if test -z "$haveit"; then
6351 ltrpathdirs="$ltrpathdirs $found_dir"
6353 if test "$hardcode_direct" = yes; then
6354 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6356 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6357 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6359 for x in $rpathdirs; do
6360 if test "X$x" = "X$found_dir"; then
6365 if test -z "$haveit"; then
6366 rpathdirs="$rpathdirs $found_dir"
6370 for x in $LDFLAGS $LIBICONV; do
6372 acl_save_prefix="$prefix"
6373 prefix="$acl_final_prefix"
6374 acl_save_exec_prefix="$exec_prefix"
6375 exec_prefix="$acl_final_exec_prefix"
6377 exec_prefix="$acl_save_exec_prefix"
6378 prefix="$acl_save_prefix"
6380 if test "X$x" = "X-L$found_dir"; then
6385 if test -z "$haveit"; then
6386 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6388 if test "$hardcode_minus_L" != no; then
6389 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6391 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6397 if test "X$found_a" != "X"; then
6398 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6400 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6403 additional_includedir=
6404 case "$found_dir" in
6406 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6407 additional_includedir="$basedir/include"
6410 if test "X$additional_includedir" != "X"; then
6411 if test "X$additional_includedir" != "X/usr/include"; then
6413 if test "X$additional_includedir" = "X/usr/local/include"; then
6414 if test -n "$GCC"; then
6416 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6420 if test -z "$haveit"; then
6421 for x in $CPPFLAGS $INCICONV; do
6423 acl_save_prefix="$prefix"
6424 prefix="$acl_final_prefix"
6425 acl_save_exec_prefix="$exec_prefix"
6426 exec_prefix="$acl_final_exec_prefix"
6428 exec_prefix="$acl_save_exec_prefix"
6429 prefix="$acl_save_prefix"
6431 if test "X$x" = "X-I$additional_includedir"; then
6436 if test -z "$haveit"; then
6437 if test -d "$additional_includedir"; then
6438 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
6444 if test -n "$found_la"; then
6445 save_libdir="$libdir"
6447 */* | *\\*) . "$found_la" ;;
6448 *) . "./$found_la" ;;
6450 libdir="$save_libdir"
6451 for dep in $dependency_libs; do
6454 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6455 if test "X$additional_libdir" != "X/usr/lib"; then
6457 if test "X$additional_libdir" = "X/usr/local/lib"; then
6458 if test -n "$GCC"; then
6460 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6464 if test -z "$haveit"; then
6466 for x in $LDFLAGS $LIBICONV; do
6468 acl_save_prefix="$prefix"
6469 prefix="$acl_final_prefix"
6470 acl_save_exec_prefix="$exec_prefix"
6471 exec_prefix="$acl_final_exec_prefix"
6473 exec_prefix="$acl_save_exec_prefix"
6474 prefix="$acl_save_prefix"
6476 if test "X$x" = "X-L$additional_libdir"; then
6481 if test -z "$haveit"; then
6482 if test -d "$additional_libdir"; then
6483 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6487 for x in $LDFLAGS $LTLIBICONV; do
6489 acl_save_prefix="$prefix"
6490 prefix="$acl_final_prefix"
6491 acl_save_exec_prefix="$exec_prefix"
6492 exec_prefix="$acl_final_exec_prefix"
6494 exec_prefix="$acl_save_exec_prefix"
6495 prefix="$acl_save_prefix"
6497 if test "X$x" = "X-L$additional_libdir"; then
6502 if test -z "$haveit"; then
6503 if test -d "$additional_libdir"; then
6504 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6511 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6512 if test "$enable_rpath" != no; then
6514 for x in $rpathdirs; do
6515 if test "X$x" = "X$dir"; then
6520 if test -z "$haveit"; then
6521 rpathdirs="$rpathdirs $dir"
6524 for x in $ltrpathdirs; do
6525 if test "X$x" = "X$dir"; then
6530 if test -z "$haveit"; then
6531 ltrpathdirs="$ltrpathdirs $dir"
6536 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6539 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6542 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6543 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6549 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6550 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6556 if test "X$rpathdirs" != "X"; then
6557 if test -n "$hardcode_libdir_separator"; then
6559 for found_dir in $rpathdirs; do
6560 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6562 acl_save_libdir="$libdir"
6564 eval flag=\"$hardcode_libdir_flag_spec\"
6565 libdir="$acl_save_libdir"
6566 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6568 for found_dir in $rpathdirs; do
6569 acl_save_libdir="$libdir"
6571 eval flag=\"$hardcode_libdir_flag_spec\"
6572 libdir="$acl_save_libdir"
6573 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6577 if test "X$ltrpathdirs" != "X"; then
6578 for found_dir in $ltrpathdirs; do
6579 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6600 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
6601 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
6602 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
6603 echo $ECHO_N "(cached) $ECHO_C" >&6
6605 gt_save_CPPFLAGS="$CPPFLAGS"
6606 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6607 gt_save_LIBS="$LIBS"
6608 LIBS="$LIBS -framework CoreFoundation"
6609 cat >conftest.$ac_ext <<_ACEOF
6612 cat confdefs.h >>conftest.$ac_ext
6613 cat >>conftest.$ac_ext <<_ACEOF
6614 /* end confdefs.h. */
6615 #include <CFPreferences.h>
6619 CFPreferencesCopyAppValue(NULL, NULL)
6624 rm -f conftest.$ac_objext conftest$ac_exeext
6625 if { (ac_try="$ac_link"
6627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6628 *) ac_try_echo=$ac_try;;
6630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6631 (eval "$ac_link") 2>conftest.er1
6633 grep -v '^ *+' conftest.er1 >conftest.err
6635 cat conftest.err >&5
6636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637 (exit $ac_status); } && {
6638 test -z "$ac_c_werror_flag" ||
6639 test ! -s conftest.err
6640 } && test -s conftest$ac_exeext &&
6641 $as_test_x conftest$ac_exeext; then
6642 gt_cv_func_CFPreferencesCopyAppValue=yes
6644 echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.$ac_ext >&5
6647 gt_cv_func_CFPreferencesCopyAppValue=no
6650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6651 conftest$ac_exeext conftest.$ac_ext
6652 CPPFLAGS="$gt_save_CPPFLAGS"
6653 LIBS="$gt_save_LIBS"
6655 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6656 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6657 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6659 cat >>confdefs.h <<\_ACEOF
6660 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
6664 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
6665 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
6666 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 gt_save_CPPFLAGS="$CPPFLAGS"
6670 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
6671 gt_save_LIBS="$LIBS"
6672 LIBS="$LIBS -framework CoreFoundation"
6673 cat >conftest.$ac_ext <<_ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6679 #include <CFLocale.h>
6683 CFLocaleCopyCurrent();
6688 rm -f conftest.$ac_objext conftest$ac_exeext
6689 if { (ac_try="$ac_link"
6691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692 *) ac_try_echo=$ac_try;;
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695 (eval "$ac_link") 2>conftest.er1
6697 grep -v '^ *+' conftest.er1 >conftest.err
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } && {
6702 test -z "$ac_c_werror_flag" ||
6703 test ! -s conftest.err
6704 } && test -s conftest$ac_exeext &&
6705 $as_test_x conftest$ac_exeext; then
6706 gt_cv_func_CFLocaleCopyCurrent=yes
6708 echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6711 gt_cv_func_CFLocaleCopyCurrent=no
6714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6715 conftest$ac_exeext conftest.$ac_ext
6716 CPPFLAGS="$gt_save_CPPFLAGS"
6717 LIBS="$gt_save_LIBS"
6719 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6720 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6721 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6723 cat >>confdefs.h <<\_ACEOF
6724 #define HAVE_CFLOCALECOPYCURRENT 1
6729 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6730 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6736 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6737 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
6738 # Check whether --enable-nls was given.
6739 if test "${enable_nls+set}" = set; then
6740 enableval=$enable_nls; USE_NLS=$enableval
6745 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
6746 echo "${ECHO_T}$USE_NLS" >&6; }
6755 if test "$USE_NLS" = "yes"; then
6756 gt_use_preinstalled_gnugettext=no
6763 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6764 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
6765 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 cat >conftest.$ac_ext <<_ACEOF
6771 cat confdefs.h >>conftest.$ac_ext
6772 cat >>conftest.$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6774 #include <libintl.h>
6775 extern int _nl_msg_cat_cntr;
6776 extern int *_nl_domain_bindings;
6780 bindtextdomain ("", "");
6781 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6786 rm -f conftest.$ac_objext conftest$ac_exeext
6787 if { (ac_try="$ac_link"
6789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6790 *) ac_try_echo=$ac_try;;
6792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6793 (eval "$ac_link") 2>conftest.er1
6795 grep -v '^ *+' conftest.er1 >conftest.err
6797 cat conftest.err >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } && {
6800 test -z "$ac_c_werror_flag" ||
6801 test ! -s conftest.err
6802 } && test -s conftest$ac_exeext &&
6803 $as_test_x conftest$ac_exeext; then
6804 gt_cv_func_gnugettext1_libc=yes
6806 echo "$as_me: failed program was:" >&5
6807 sed 's/^/| /' conftest.$ac_ext >&5
6809 gt_cv_func_gnugettext1_libc=no
6812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6813 conftest$ac_exeext conftest.$ac_ext
6815 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6816 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
6818 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6824 am_save_CPPFLAGS="$CPPFLAGS"
6826 for element in $INCICONV; do
6828 for x in $CPPFLAGS; do
6830 acl_save_prefix="$prefix"
6831 prefix="$acl_final_prefix"
6832 acl_save_exec_prefix="$exec_prefix"
6833 exec_prefix="$acl_final_exec_prefix"
6835 exec_prefix="$acl_save_exec_prefix"
6836 prefix="$acl_save_prefix"
6838 if test "X$x" = "X$element"; then
6843 if test -z "$haveit"; then
6844 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6849 { echo "$as_me:$LINENO: checking for iconv" >&5
6850 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
6851 if test "${am_cv_func_iconv+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6855 am_cv_func_iconv="no, consider installing GNU libiconv"
6857 cat >conftest.$ac_ext <<_ACEOF
6860 cat confdefs.h >>conftest.$ac_ext
6861 cat >>conftest.$ac_ext <<_ACEOF
6862 /* end confdefs.h. */
6868 iconv_t cd = iconv_open("","");
6869 iconv(cd,NULL,NULL,NULL,NULL);
6875 rm -f conftest.$ac_objext conftest$ac_exeext
6876 if { (ac_try="$ac_link"
6878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6879 *) ac_try_echo=$ac_try;;
6881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6882 (eval "$ac_link") 2>conftest.er1
6884 grep -v '^ *+' conftest.er1 >conftest.err
6886 cat conftest.err >&5
6887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6888 (exit $ac_status); } && {
6889 test -z "$ac_c_werror_flag" ||
6890 test ! -s conftest.err
6891 } && test -s conftest$ac_exeext &&
6892 $as_test_x conftest$ac_exeext; then
6893 am_cv_func_iconv=yes
6895 echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6902 conftest$ac_exeext conftest.$ac_ext
6903 if test "$am_cv_func_iconv" != yes; then
6904 am_save_LIBS="$LIBS"
6905 LIBS="$LIBS $LIBICONV"
6906 cat >conftest.$ac_ext <<_ACEOF
6909 cat confdefs.h >>conftest.$ac_ext
6910 cat >>conftest.$ac_ext <<_ACEOF
6911 /* end confdefs.h. */
6917 iconv_t cd = iconv_open("","");
6918 iconv(cd,NULL,NULL,NULL,NULL);
6924 rm -f conftest.$ac_objext conftest$ac_exeext
6925 if { (ac_try="$ac_link"
6927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6928 *) ac_try_echo=$ac_try;;
6930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6931 (eval "$ac_link") 2>conftest.er1
6933 grep -v '^ *+' conftest.er1 >conftest.err
6935 cat conftest.err >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } && {
6938 test -z "$ac_c_werror_flag" ||
6939 test ! -s conftest.err
6940 } && test -s conftest$ac_exeext &&
6941 $as_test_x conftest$ac_exeext; then
6943 am_cv_func_iconv=yes
6945 echo "$as_me: failed program was:" >&5
6946 sed 's/^/| /' conftest.$ac_ext >&5
6951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6952 conftest$ac_exeext conftest.$ac_ext
6953 LIBS="$am_save_LIBS"
6957 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6958 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
6959 if test "$am_cv_func_iconv" = yes; then
6961 cat >>confdefs.h <<\_ACEOF
6962 #define HAVE_ICONV 1
6966 if test "$am_cv_lib_iconv" = yes; then
6967 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6968 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
6969 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
6970 echo "${ECHO_T}$LIBICONV" >&6; }
6972 CPPFLAGS="$am_save_CPPFLAGS"
6984 acl_save_prefix="$prefix"
6985 prefix="$acl_final_prefix"
6986 acl_save_exec_prefix="$exec_prefix"
6987 exec_prefix="$acl_final_exec_prefix"
6989 eval additional_includedir=\"$includedir\"
6990 eval additional_libdir=\"$libdir\"
6992 exec_prefix="$acl_save_exec_prefix"
6993 prefix="$acl_save_prefix"
6996 # Check whether --with-libintl-prefix was given.
6997 if test "${with_libintl_prefix+set}" = set; then
6998 withval=$with_libintl_prefix;
6999 if test "X$withval" = "Xno"; then
7002 if test "X$withval" = "X"; then
7004 acl_save_prefix="$prefix"
7005 prefix="$acl_final_prefix"
7006 acl_save_exec_prefix="$exec_prefix"
7007 exec_prefix="$acl_final_exec_prefix"
7009 eval additional_includedir=\"$includedir\"
7010 eval additional_libdir=\"$libdir\"
7012 exec_prefix="$acl_save_exec_prefix"
7013 prefix="$acl_save_prefix"
7016 additional_includedir="$withval/include"
7017 additional_libdir="$withval/lib"
7028 names_already_handled=
7029 names_next_round='intl '
7030 while test -n "$names_next_round"; do
7031 names_this_round="$names_next_round"
7033 for name in $names_this_round; do
7035 for n in $names_already_handled; do
7036 if test "$n" = "$name"; then
7041 if test -z "$already_handled"; then
7042 names_already_handled="$names_already_handled $name"
7043 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7044 eval value=\"\$HAVE_LIB$uppername\"
7045 if test -n "$value"; then
7046 if test "$value" = yes; then
7047 eval value=\"\$LIB$uppername\"
7048 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7049 eval value=\"\$LTLIB$uppername\"
7050 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7059 if test $use_additional = yes; then
7060 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
7061 found_dir="$additional_libdir"
7062 found_so="$additional_libdir/lib$name.$shlibext"
7063 if test -f "$additional_libdir/lib$name.la"; then
7064 found_la="$additional_libdir/lib$name.la"
7067 if test -f "$additional_libdir/lib$name.$libext"; then
7068 found_dir="$additional_libdir"
7069 found_a="$additional_libdir/lib$name.$libext"
7070 if test -f "$additional_libdir/lib$name.la"; then
7071 found_la="$additional_libdir/lib$name.la"
7076 if test "X$found_dir" = "X"; then
7077 for x in $LDFLAGS $LTLIBINTL; do
7079 acl_save_prefix="$prefix"
7080 prefix="$acl_final_prefix"
7081 acl_save_exec_prefix="$exec_prefix"
7082 exec_prefix="$acl_final_exec_prefix"
7084 exec_prefix="$acl_save_exec_prefix"
7085 prefix="$acl_save_prefix"
7089 dir=`echo "X$x" | sed -e 's/^X-L//'`
7090 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
7092 found_so="$dir/lib$name.$shlibext"
7093 if test -f "$dir/lib$name.la"; then
7094 found_la="$dir/lib$name.la"
7097 if test -f "$dir/lib$name.$libext"; then
7099 found_a="$dir/lib$name.$libext"
7100 if test -f "$dir/lib$name.la"; then
7101 found_la="$dir/lib$name.la"
7107 if test "X$found_dir" != "X"; then
7112 if test "X$found_dir" != "X"; then
7113 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7114 if test "X$found_so" != "X"; then
7115 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
7116 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7119 for x in $ltrpathdirs; do
7120 if test "X$x" = "X$found_dir"; then
7125 if test -z "$haveit"; then
7126 ltrpathdirs="$ltrpathdirs $found_dir"
7128 if test "$hardcode_direct" = yes; then
7129 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7131 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
7132 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7134 for x in $rpathdirs; do
7135 if test "X$x" = "X$found_dir"; then
7140 if test -z "$haveit"; then
7141 rpathdirs="$rpathdirs $found_dir"
7145 for x in $LDFLAGS $LIBINTL; do
7147 acl_save_prefix="$prefix"
7148 prefix="$acl_final_prefix"
7149 acl_save_exec_prefix="$exec_prefix"
7150 exec_prefix="$acl_final_exec_prefix"
7152 exec_prefix="$acl_save_exec_prefix"
7153 prefix="$acl_save_prefix"
7155 if test "X$x" = "X-L$found_dir"; then
7160 if test -z "$haveit"; then
7161 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7163 if test "$hardcode_minus_L" != no; then
7164 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7166 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7172 if test "X$found_a" != "X"; then
7173 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7175 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7178 additional_includedir=
7179 case "$found_dir" in
7181 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
7182 additional_includedir="$basedir/include"
7185 if test "X$additional_includedir" != "X"; then
7186 if test "X$additional_includedir" != "X/usr/include"; then
7188 if test "X$additional_includedir" = "X/usr/local/include"; then
7189 if test -n "$GCC"; then
7191 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7195 if test -z "$haveit"; then
7196 for x in $CPPFLAGS $INCINTL; do
7198 acl_save_prefix="$prefix"
7199 prefix="$acl_final_prefix"
7200 acl_save_exec_prefix="$exec_prefix"
7201 exec_prefix="$acl_final_exec_prefix"
7203 exec_prefix="$acl_save_exec_prefix"
7204 prefix="$acl_save_prefix"
7206 if test "X$x" = "X-I$additional_includedir"; then
7211 if test -z "$haveit"; then
7212 if test -d "$additional_includedir"; then
7213 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7219 if test -n "$found_la"; then
7220 save_libdir="$libdir"
7222 */* | *\\*) . "$found_la" ;;
7223 *) . "./$found_la" ;;
7225 libdir="$save_libdir"
7226 for dep in $dependency_libs; do
7229 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7230 if test "X$additional_libdir" != "X/usr/lib"; then
7232 if test "X$additional_libdir" = "X/usr/local/lib"; then
7233 if test -n "$GCC"; then
7235 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7239 if test -z "$haveit"; then
7241 for x in $LDFLAGS $LIBINTL; do
7243 acl_save_prefix="$prefix"
7244 prefix="$acl_final_prefix"
7245 acl_save_exec_prefix="$exec_prefix"
7246 exec_prefix="$acl_final_exec_prefix"
7248 exec_prefix="$acl_save_exec_prefix"
7249 prefix="$acl_save_prefix"
7251 if test "X$x" = "X-L$additional_libdir"; then
7256 if test -z "$haveit"; then
7257 if test -d "$additional_libdir"; then
7258 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7262 for x in $LDFLAGS $LTLIBINTL; do
7264 acl_save_prefix="$prefix"
7265 prefix="$acl_final_prefix"
7266 acl_save_exec_prefix="$exec_prefix"
7267 exec_prefix="$acl_final_exec_prefix"
7269 exec_prefix="$acl_save_exec_prefix"
7270 prefix="$acl_save_prefix"
7272 if test "X$x" = "X-L$additional_libdir"; then
7277 if test -z "$haveit"; then
7278 if test -d "$additional_libdir"; then
7279 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7286 dir=`echo "X$dep" | sed -e 's/^X-R//'`
7287 if test "$enable_rpath" != no; then
7289 for x in $rpathdirs; do
7290 if test "X$x" = "X$dir"; then
7295 if test -z "$haveit"; then
7296 rpathdirs="$rpathdirs $dir"
7299 for x in $ltrpathdirs; do
7300 if test "X$x" = "X$dir"; then
7305 if test -z "$haveit"; then
7306 ltrpathdirs="$ltrpathdirs $dir"
7311 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7314 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7317 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7318 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7324 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7325 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7331 if test "X$rpathdirs" != "X"; then
7332 if test -n "$hardcode_libdir_separator"; then
7334 for found_dir in $rpathdirs; do
7335 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
7337 acl_save_libdir="$libdir"
7339 eval flag=\"$hardcode_libdir_flag_spec\"
7340 libdir="$acl_save_libdir"
7341 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7343 for found_dir in $rpathdirs; do
7344 acl_save_libdir="$libdir"
7346 eval flag=\"$hardcode_libdir_flag_spec\"
7347 libdir="$acl_save_libdir"
7348 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7352 if test "X$ltrpathdirs" != "X"; then
7353 for found_dir in $ltrpathdirs; do
7354 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7358 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7359 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
7360 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7361 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 gt_save_CPPFLAGS="$CPPFLAGS"
7364 CPPFLAGS="$CPPFLAGS $INCINTL"
7365 gt_save_LIBS="$LIBS"
7366 LIBS="$LIBS $LIBINTL"
7367 cat >conftest.$ac_ext <<_ACEOF
7370 cat confdefs.h >>conftest.$ac_ext
7371 cat >>conftest.$ac_ext <<_ACEOF
7372 /* end confdefs.h. */
7373 #include <libintl.h>
7374 extern int _nl_msg_cat_cntr;
7379 const char *_nl_expand_alias (const char *);
7383 bindtextdomain ("", "");
7384 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7389 rm -f conftest.$ac_objext conftest$ac_exeext
7390 if { (ac_try="$ac_link"
7392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7393 *) ac_try_echo=$ac_try;;
7395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7396 (eval "$ac_link") 2>conftest.er1
7398 grep -v '^ *+' conftest.er1 >conftest.err
7400 cat conftest.err >&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } && {
7403 test -z "$ac_c_werror_flag" ||
7404 test ! -s conftest.err
7405 } && test -s conftest$ac_exeext &&
7406 $as_test_x conftest$ac_exeext; then
7407 gt_cv_func_gnugettext1_libintl=yes
7409 echo "$as_me: failed program was:" >&5
7410 sed 's/^/| /' conftest.$ac_ext >&5
7412 gt_cv_func_gnugettext1_libintl=no
7415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7416 conftest$ac_exeext conftest.$ac_ext
7417 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7418 LIBS="$LIBS $LIBICONV"
7419 cat >conftest.$ac_ext <<_ACEOF
7422 cat confdefs.h >>conftest.$ac_ext
7423 cat >>conftest.$ac_ext <<_ACEOF
7424 /* end confdefs.h. */
7425 #include <libintl.h>
7426 extern int _nl_msg_cat_cntr;
7431 const char *_nl_expand_alias (const char *);
7435 bindtextdomain ("", "");
7436 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7441 rm -f conftest.$ac_objext conftest$ac_exeext
7442 if { (ac_try="$ac_link"
7444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7445 *) ac_try_echo=$ac_try;;
7447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7448 (eval "$ac_link") 2>conftest.er1
7450 grep -v '^ *+' conftest.er1 >conftest.err
7452 cat conftest.err >&5
7453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); } && {
7455 test -z "$ac_c_werror_flag" ||
7456 test ! -s conftest.err
7457 } && test -s conftest$ac_exeext &&
7458 $as_test_x conftest$ac_exeext; then
7459 LIBINTL="$LIBINTL $LIBICONV"
7460 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7461 gt_cv_func_gnugettext1_libintl=yes
7464 echo "$as_me: failed program was:" >&5
7465 sed 's/^/| /' conftest.$ac_ext >&5
7470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7471 conftest$ac_exeext conftest.$ac_ext
7473 CPPFLAGS="$gt_save_CPPFLAGS"
7474 LIBS="$gt_save_LIBS"
7476 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7477 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
7480 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7481 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7482 && test "$PACKAGE" != gettext-runtime \
7483 && test "$PACKAGE" != gettext-tools; }; then
7484 gt_use_preinstalled_gnugettext=yes
7493 if test -n "$INTL_MACOSX_LIBS"; then
7494 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7495 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7496 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7497 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7501 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7502 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7504 cat >>confdefs.h <<\_ACEOF
7505 #define ENABLE_NLS 1
7513 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
7514 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
7515 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
7516 echo "${ECHO_T}$USE_NLS" >&6; }
7517 if test "$USE_NLS" = "yes"; then
7518 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
7519 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
7520 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7521 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7522 gt_source="external libintl"
7527 gt_source="included intl directory"
7529 { echo "$as_me:$LINENO: result: $gt_source" >&5
7530 echo "${ECHO_T}$gt_source" >&6; }
7533 if test "$USE_NLS" = "yes"; then
7535 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7536 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7537 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
7538 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
7539 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
7540 echo "${ECHO_T}$LIBINTL" >&6; }
7542 for element in $INCINTL; do
7544 for x in $CPPFLAGS; do
7546 acl_save_prefix="$prefix"
7547 prefix="$acl_final_prefix"
7548 acl_save_exec_prefix="$exec_prefix"
7549 exec_prefix="$acl_final_exec_prefix"
7551 exec_prefix="$acl_save_exec_prefix"
7552 prefix="$acl_save_prefix"
7554 if test "X$x" = "X$element"; then
7559 if test -z "$haveit"; then
7560 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7567 cat >>confdefs.h <<\_ACEOF
7568 #define HAVE_GETTEXT 1
7572 cat >>confdefs.h <<\_ACEOF
7573 #define HAVE_DCGETTEXT 1
7590 if test x${prefix} = xNONE ; then
7591 if test `eval echo ${datadir}` = NONE/share ; then
7596 # ------------------------------------------------------------------
7597 # If the user has not set --prefix, we set our default to nothing.
7598 # In this case, if the user has not set --sysconfdir, we set it
7599 # to the package default of /etc/bacula. If either --prefix or
7600 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
7601 # ------------------------------------------------------------------
7602 if test x${prefix} = xNONE ; then
7603 if test `eval echo ${sysconfdir}` = NONE/etc ; then
7604 sysconfdir=/etc/bacula
7608 sysconfdir=`eval echo ${sysconfdir}`
7609 datadir=`eval echo ${datadir}`
7610 localedir=`eval echo ${datadir}/locale`
7611 cat >>confdefs.h <<_ACEOF
7612 #define LOCALEDIR "$localedir"
7615 cat >>confdefs.h <<_ACEOF
7616 #define SYSCONFDIR "$sysconfdir"
7620 # -------------------------------------------------------------------------
7621 # If the user has not set --exec-prefix, we default to ${prefix}
7622 # -------------------------------------------------------------------------
7623 if test x${exec_prefix} = xNONE ; then
7624 exec_prefix=${prefix}
7627 # ------------------------------------------------------------------
7628 # If the user has not set --sbindir, we set our default as /sbin
7629 # ------------------------------------------------------------------
7630 if test x$sbindir = x'${exec_prefix}/sbin' ; then
7631 sbindir=${exec_prefix}/sbin
7633 sbindir=`eval echo ${sbindir}`
7636 # -------------------------------------------------------------------------
7637 # If the user has not set --mandir, we default to /usr/share/man
7638 # -------------------------------------------------------------------------
7639 if test x$mandir = x'${prefix}/man' ; then
7640 mandir=/usr/share/man
7644 for ac_prog in msgfmt
7646 # Extract the first word of "$ac_prog", so it can be a program name with args.
7647 set dummy $ac_prog; ac_word=$2
7648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7650 if test "${ac_cv_path_MSGFMT+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7662 test -z "$as_dir" && as_dir=.
7663 for ac_exec_ext in '' $ac_executable_extensions; do
7664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7665 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
7666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 MSGFMT=$ac_cv_path_MSGFMT
7677 if test -n "$MSGFMT"; then
7678 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
7679 echo "${ECHO_T}$MSGFMT" >&6; }
7681 { echo "$as_me:$LINENO: result: no" >&5
7682 echo "${ECHO_T}no" >&6; }
7686 test -n "$MSGFMT" && break
7688 test -n "$MSGFMT" || MSGFMT="no"
7690 if test "$MSGFMT" = "no"
7692 echo 'msgfmt program not found, disabling NLS !'
7694 USE_INCLUDED_LIBINTL=no
7697 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2 or newer" >&5
7698 echo $ECHO_N "checking whether we are using the GNU C Library 2 or newer... $ECHO_C" >&6; }
7699 if test "${ac_cv_gnu_library_2+set}" = set; then
7700 echo $ECHO_N "(cached) $ECHO_C" >&6
7702 cat >conftest.$ac_ext <<_ACEOF
7705 cat confdefs.h >>conftest.$ac_ext
7706 cat >>conftest.$ac_ext <<_ACEOF
7707 /* end confdefs.h. */
7709 #include <features.h>
7710 #ifdef __GNU_LIBRARY__
7711 #if (__GLIBC__ >= 2)
7717 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7718 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7719 ac_cv_gnu_library_2=yes
7721 ac_cv_gnu_library_2=no
7728 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2" >&5
7729 echo "${ECHO_T}$ac_cv_gnu_library_2" >&6; }
7731 GLIBC2="$ac_cv_gnu_library_2"
7735 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
7736 echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
7737 if test "${ac_cv_lib_cposix_strerror+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 ac_check_lib_save_LIBS=$LIBS
7741 LIBS="-lcposix $LIBS"
7742 cat >conftest.$ac_ext <<_ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7749 /* Override any GCC internal prototype to avoid an error.
7750 Use char because int might match the return type of a GCC
7751 builtin and then its argument prototype would still apply. */
7764 rm -f conftest.$ac_objext conftest$ac_exeext
7765 if { (ac_try="$ac_link"
7767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7768 *) ac_try_echo=$ac_try;;
7770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7771 (eval "$ac_link") 2>conftest.er1
7773 grep -v '^ *+' conftest.er1 >conftest.err
7775 cat conftest.err >&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } && {
7778 test -z "$ac_c_werror_flag" ||
7779 test ! -s conftest.err
7780 } && test -s conftest$ac_exeext &&
7781 $as_test_x conftest$ac_exeext; then
7782 ac_cv_lib_cposix_strerror=yes
7784 echo "$as_me: failed program was:" >&5
7785 sed 's/^/| /' conftest.$ac_ext >&5
7787 ac_cv_lib_cposix_strerror=no
7790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7791 conftest$ac_exeext conftest.$ac_ext
7792 LIBS=$ac_check_lib_save_LIBS
7794 { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
7795 echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
7796 if test $ac_cv_lib_cposix_strerror = yes; then
7797 LIBS="$LIBS -lcposix"
7802 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7803 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7804 if test "${ac_cv_header_stdc+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 cat >conftest.$ac_ext <<_ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h. */
7826 rm -f conftest.$ac_objext
7827 if { (ac_try="$ac_compile"
7829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830 *) ac_try_echo=$ac_try;;
7832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7833 (eval "$ac_compile") 2>conftest.er1
7835 grep -v '^ *+' conftest.er1 >conftest.err
7837 cat conftest.err >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } && {
7840 test -z "$ac_c_werror_flag" ||
7841 test ! -s conftest.err
7842 } && test -s conftest.$ac_objext; then
7843 ac_cv_header_stdc=yes
7845 echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7848 ac_cv_header_stdc=no
7851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7853 if test $ac_cv_header_stdc = yes; then
7854 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7855 cat >conftest.$ac_ext <<_ACEOF
7858 cat confdefs.h >>conftest.$ac_ext
7859 cat >>conftest.$ac_ext <<_ACEOF
7860 /* end confdefs.h. */
7864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7865 $EGREP "memchr" >/dev/null 2>&1; then
7868 ac_cv_header_stdc=no
7874 if test $ac_cv_header_stdc = yes; then
7875 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7876 cat >conftest.$ac_ext <<_ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h. */
7885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7886 $EGREP "free" >/dev/null 2>&1; then
7889 ac_cv_header_stdc=no
7895 if test $ac_cv_header_stdc = yes; then
7896 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7897 if test "$cross_compiling" = yes; then
7900 cat >conftest.$ac_ext <<_ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7908 #if ((' ' & 0x0FF) == 0x020)
7909 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7910 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7912 # define ISLOWER(c) \
7913 (('a' <= (c) && (c) <= 'i') \
7914 || ('j' <= (c) && (c) <= 'r') \
7915 || ('s' <= (c) && (c) <= 'z'))
7916 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7919 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7924 for (i = 0; i < 256; i++)
7925 if (XOR (islower (i), ISLOWER (i))
7926 || toupper (i) != TOUPPER (i))
7931 rm -f conftest$ac_exeext
7932 if { (ac_try="$ac_link"
7934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7935 *) ac_try_echo=$ac_try;;
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_link") 2>&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7942 { (case "(($ac_try" in
7943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947 (eval "$ac_try") 2>&5
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; }; then
7953 echo "$as_me: program exited with status $ac_status" >&5
7954 echo "$as_me: failed program was:" >&5
7955 sed 's/^/| /' conftest.$ac_ext >&5
7958 ac_cv_header_stdc=no
7960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7966 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7967 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7968 if test $ac_cv_header_stdc = yes; then
7970 cat >>confdefs.h <<\_ACEOF
7971 #define STDC_HEADERS 1
7976 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7977 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7978 if test "${ac_cv_c_const+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 cat >conftest.$ac_ext <<_ACEOF
7984 cat confdefs.h >>conftest.$ac_ext
7985 cat >>conftest.$ac_ext <<_ACEOF
7986 /* end confdefs.h. */
7991 /* FIXME: Include the comments suggested by Paul. */
7993 /* Ultrix mips cc rejects this. */
7994 typedef int charset[2];
7996 /* SunOS 4.1.1 cc rejects this. */
7997 char const *const *pcpcc;
7999 /* NEC SVR4.0.2 mips cc rejects this. */
8000 struct point {int x, y;};
8001 static struct point const zero = {0,0};
8002 /* AIX XL C 1.02.0.0 rejects this.
8003 It does not let you subtract one const X* pointer from another in
8004 an arm of an if-expression whose if-part is not a constant
8006 const char *g = "string";
8007 pcpcc = &g + (g ? g-g : 0);
8008 /* HPUX 7.0 cc rejects these. */
8010 ppc = (char**) pcpcc;
8011 pcpcc = (char const *const *) ppc;
8012 { /* SCO 3.2v4 cc rejects this. */
8014 char const *s = 0 ? (char *) 0 : (char const *) 0;
8019 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8021 const int *foo = &x[0];
8024 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8025 typedef const int *iptr;
8029 { /* AIX XL C 1.02.0.0 rejects this saying
8030 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8031 struct s { int j; const int *ap[3]; };
8032 struct s *b; b->j = 5;
8034 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8038 return !cs[0] && !zero.x;
8045 rm -f conftest.$ac_objext
8046 if { (ac_try="$ac_compile"
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_compile") 2>conftest.er1
8054 grep -v '^ *+' conftest.er1 >conftest.err
8056 cat conftest.err >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } && {
8059 test -z "$ac_c_werror_flag" ||
8060 test ! -s conftest.err
8061 } && test -s conftest.$ac_objext; then
8064 echo "$as_me: failed program was:" >&5
8065 sed 's/^/| /' conftest.$ac_ext >&5
8070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8073 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8074 if test $ac_cv_c_const = no; then
8076 cat >>confdefs.h <<\_ACEOF
8083 { echo "$as_me:$LINENO: checking for signed" >&5
8084 echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
8085 if test "${bh_cv_c_signed+set}" = set; then
8086 echo $ECHO_N "(cached) $ECHO_C" >&6
8088 cat >conftest.$ac_ext <<_ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8103 rm -f conftest.$ac_objext
8104 if { (ac_try="$ac_compile"
8106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8107 *) ac_try_echo=$ac_try;;
8109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8110 (eval "$ac_compile") 2>conftest.er1
8112 grep -v '^ *+' conftest.er1 >conftest.err
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } && {
8117 test -z "$ac_c_werror_flag" ||
8118 test ! -s conftest.err
8119 } && test -s conftest.$ac_objext; then
8122 echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8130 { echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
8131 echo "${ECHO_T}$bh_cv_c_signed" >&6; }
8132 if test $bh_cv_c_signed = no; then
8134 cat >>confdefs.h <<\_ACEOF
8140 { echo "$as_me:$LINENO: checking for inline" >&5
8141 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8142 if test "${ac_cv_c_inline+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 for ac_kw in inline __inline__ __inline; do
8147 cat >conftest.$ac_ext <<_ACEOF
8150 cat confdefs.h >>conftest.$ac_ext
8151 cat >>conftest.$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8155 static $ac_kw foo_t static_foo () {return 0; }
8156 $ac_kw foo_t foo () {return 0; }
8160 rm -f conftest.$ac_objext
8161 if { (ac_try="$ac_compile"
8163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8164 *) ac_try_echo=$ac_try;;
8166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8167 (eval "$ac_compile") 2>conftest.er1
8169 grep -v '^ *+' conftest.er1 >conftest.err
8171 cat conftest.err >&5
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); } && {
8174 test -z "$ac_c_werror_flag" ||
8175 test ! -s conftest.err
8176 } && test -s conftest.$ac_objext; then
8177 ac_cv_c_inline=$ac_kw
8179 echo "$as_me: failed program was:" >&5
8180 sed 's/^/| /' conftest.$ac_ext >&5
8185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8186 test "$ac_cv_c_inline" != no && break
8190 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8191 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8194 case $ac_cv_c_inline in
8197 case $ac_cv_c_inline in
8199 *) ac_val=$ac_cv_c_inline;;
8201 cat >>confdefs.h <<_ACEOF
8203 #define inline $ac_val
8209 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8219 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8220 inttypes.h stdint.h unistd.h
8222 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 cat >conftest.$ac_ext <<_ACEOF
8231 cat confdefs.h >>conftest.$ac_ext
8232 cat >>conftest.$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8234 $ac_includes_default
8236 #include <$ac_header>
8238 rm -f conftest.$ac_objext
8239 if { (ac_try="$ac_compile"
8241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8242 *) ac_try_echo=$ac_try;;
8244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8245 (eval "$ac_compile") 2>conftest.er1
8247 grep -v '^ *+' conftest.er1 >conftest.err
8249 cat conftest.err >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } && {
8252 test -z "$ac_c_werror_flag" ||
8253 test ! -s conftest.err
8254 } && test -s conftest.$ac_objext; then
8255 eval "$as_ac_Header=yes"
8257 echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.$ac_ext >&5
8260 eval "$as_ac_Header=no"
8263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8265 ac_res=`eval echo '${'$as_ac_Header'}'`
8266 { echo "$as_me:$LINENO: result: $ac_res" >&5
8267 echo "${ECHO_T}$ac_res" >&6; }
8268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8269 cat >>confdefs.h <<_ACEOF
8270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8278 { echo "$as_me:$LINENO: checking for off_t" >&5
8279 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
8280 if test "${ac_cv_type_off_t+set}" = set; then
8281 echo $ECHO_N "(cached) $ECHO_C" >&6
8283 cat >conftest.$ac_ext <<_ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8289 $ac_includes_default
8290 typedef off_t ac__type_new_;
8294 if ((ac__type_new_ *) 0)
8296 if (sizeof (ac__type_new_))
8302 rm -f conftest.$ac_objext
8303 if { (ac_try="$ac_compile"
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_compile") 2>conftest.er1
8311 grep -v '^ *+' conftest.er1 >conftest.err
8313 cat conftest.err >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } && {
8316 test -z "$ac_c_werror_flag" ||
8317 test ! -s conftest.err
8318 } && test -s conftest.$ac_objext; then
8319 ac_cv_type_off_t=yes
8321 echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8329 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8330 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
8331 if test $ac_cv_type_off_t = yes; then
8335 cat >>confdefs.h <<_ACEOF
8336 #define off_t long int
8341 { echo "$as_me:$LINENO: checking for size_t" >&5
8342 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
8343 if test "${ac_cv_type_size_t+set}" = set; then
8344 echo $ECHO_N "(cached) $ECHO_C" >&6
8346 cat >conftest.$ac_ext <<_ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8352 $ac_includes_default
8353 typedef size_t ac__type_new_;
8357 if ((ac__type_new_ *) 0)
8359 if (sizeof (ac__type_new_))
8365 rm -f conftest.$ac_objext
8366 if { (ac_try="$ac_compile"
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372 (eval "$ac_compile") 2>conftest.er1
8374 grep -v '^ *+' conftest.er1 >conftest.err
8376 cat conftest.err >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); } && {
8379 test -z "$ac_c_werror_flag" ||
8380 test ! -s conftest.err
8381 } && test -s conftest.$ac_objext; then
8382 ac_cv_type_size_t=yes
8384 echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8387 ac_cv_type_size_t=no
8390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8393 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
8394 if test $ac_cv_type_size_t = yes; then
8398 cat >>confdefs.h <<_ACEOF
8399 #define size_t unsigned int
8405 { echo "$as_me:$LINENO: checking for long long" >&5
8406 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8407 if test "${ac_cv_type_long_long+set}" = set; then
8408 echo $ECHO_N "(cached) $ECHO_C" >&6
8410 cat >conftest.$ac_ext <<_ACEOF
8413 cat confdefs.h >>conftest.$ac_ext
8414 cat >>conftest.$ac_ext <<_ACEOF
8415 /* end confdefs.h. */
8416 long long ll = 1LL; int i = 63;
8420 long long llmax = (long long) -1;
8421 return ll << i | ll >> i | llmax / ll | llmax % ll;
8426 rm -f conftest.$ac_objext conftest$ac_exeext
8427 if { (ac_try="$ac_link"
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8433 (eval "$ac_link") 2>conftest.er1
8435 grep -v '^ *+' conftest.er1 >conftest.err
8437 cat conftest.err >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 (exit $ac_status); } && {
8440 test -z "$ac_c_werror_flag" ||
8441 test ! -s conftest.err
8442 } && test -s conftest$ac_exeext &&
8443 $as_test_x conftest$ac_exeext; then
8444 ac_cv_type_long_long=yes
8446 echo "$as_me: failed program was:" >&5
8447 sed 's/^/| /' conftest.$ac_ext >&5
8449 ac_cv_type_long_long=no
8452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8453 conftest$ac_exeext conftest.$ac_ext
8455 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8456 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8457 if test $ac_cv_type_long_long = yes; then
8459 cat >>confdefs.h <<\_ACEOF
8460 #define HAVE_LONG_LONG 1
8466 { echo "$as_me:$LINENO: checking for long double" >&5
8467 echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
8468 if test "${gt_cv_c_long_double+set}" = set; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8471 if test "$GCC" = yes; then
8472 gt_cv_c_long_double=yes
8474 cat >conftest.$ac_ext <<_ACEOF
8477 cat confdefs.h >>conftest.$ac_ext
8478 cat >>conftest.$ac_ext <<_ACEOF
8479 /* end confdefs.h. */
8481 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
8482 long double foo = 0.0;
8483 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
8484 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
8494 rm -f conftest.$ac_objext
8495 if { (ac_try="$ac_compile"
8497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8498 *) ac_try_echo=$ac_try;;
8500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501 (eval "$ac_compile") 2>conftest.er1
8503 grep -v '^ *+' conftest.er1 >conftest.err
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } && {
8508 test -z "$ac_c_werror_flag" ||
8509 test ! -s conftest.err
8510 } && test -s conftest.$ac_objext; then
8511 gt_cv_c_long_double=yes
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8516 gt_cv_c_long_double=no
8519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8522 { echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
8523 echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
8524 if test $gt_cv_c_long_double = yes; then
8526 cat >>confdefs.h <<\_ACEOF
8527 #define HAVE_LONG_DOUBLE 1
8533 { echo "$as_me:$LINENO: checking for wchar_t" >&5
8534 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
8535 if test "${gt_cv_c_wchar_t+set}" = set; then
8536 echo $ECHO_N "(cached) $ECHO_C" >&6
8538 cat >conftest.$ac_ext <<_ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h. */
8545 wchar_t foo = (wchar_t)'\0';
8554 rm -f conftest.$ac_objext
8555 if { (ac_try="$ac_compile"
8557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8561 (eval "$ac_compile") 2>conftest.er1
8563 grep -v '^ *+' conftest.er1 >conftest.err
8565 cat conftest.err >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } && {
8568 test -z "$ac_c_werror_flag" ||
8569 test ! -s conftest.err
8570 } && test -s conftest.$ac_objext; then
8573 echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8581 { echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
8582 echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
8583 if test $gt_cv_c_wchar_t = yes; then
8585 cat >>confdefs.h <<\_ACEOF
8586 #define HAVE_WCHAR_T 1
8592 { echo "$as_me:$LINENO: checking for wint_t" >&5
8593 echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
8594 if test "${gt_cv_c_wint_t+set}" = set; then
8595 echo $ECHO_N "(cached) $ECHO_C" >&6
8597 cat >conftest.$ac_ext <<_ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h. */
8604 wint_t foo = (wchar_t)'\0';
8613 rm -f conftest.$ac_objext
8614 if { (ac_try="$ac_compile"
8616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8617 *) ac_try_echo=$ac_try;;
8619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8620 (eval "$ac_compile") 2>conftest.er1
8622 grep -v '^ *+' conftest.er1 >conftest.err
8624 cat conftest.err >&5
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); } && {
8627 test -z "$ac_c_werror_flag" ||
8628 test ! -s conftest.err
8629 } && test -s conftest.$ac_objext; then
8632 echo "$as_me: failed program was:" >&5
8633 sed 's/^/| /' conftest.$ac_ext >&5
8638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8640 { echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
8641 echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
8642 if test $gt_cv_c_wint_t = yes; then
8644 cat >>confdefs.h <<\_ACEOF
8645 #define HAVE_WINT_T 1
8651 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8652 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
8653 if test "${gl_cv_header_inttypes_h+set}" = set; then
8654 echo $ECHO_N "(cached) $ECHO_C" >&6
8656 cat >conftest.$ac_ext <<_ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8662 #include <sys/types.h>
8663 #include <inttypes.h>
8667 uintmax_t i = (uintmax_t) -1;
8672 rm -f conftest.$ac_objext
8673 if { (ac_try="$ac_compile"
8675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676 *) ac_try_echo=$ac_try;;
8678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8679 (eval "$ac_compile") 2>conftest.er1
8681 grep -v '^ *+' conftest.er1 >conftest.err
8683 cat conftest.err >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } && {
8686 test -z "$ac_c_werror_flag" ||
8687 test ! -s conftest.err
8688 } && test -s conftest.$ac_objext; then
8689 gl_cv_header_inttypes_h=yes
8691 echo "$as_me: failed program was:" >&5
8692 sed 's/^/| /' conftest.$ac_ext >&5
8694 gl_cv_header_inttypes_h=no
8697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8699 { echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
8700 echo "${ECHO_T}$gl_cv_header_inttypes_h" >&6; }
8701 if test $gl_cv_header_inttypes_h = yes; then
8703 cat >>confdefs.h <<_ACEOF
8704 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
8710 { echo "$as_me:$LINENO: checking for stdint.h" >&5
8711 echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
8712 if test "${gl_cv_header_stdint_h+set}" = set; then
8713 echo $ECHO_N "(cached) $ECHO_C" >&6
8715 cat >conftest.$ac_ext <<_ACEOF
8718 cat confdefs.h >>conftest.$ac_ext
8719 cat >>conftest.$ac_ext <<_ACEOF
8720 /* end confdefs.h. */
8721 #include <sys/types.h>
8726 uintmax_t i = (uintmax_t) -1;
8731 rm -f conftest.$ac_objext
8732 if { (ac_try="$ac_compile"
8734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735 *) ac_try_echo=$ac_try;;
8737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8738 (eval "$ac_compile") 2>conftest.er1
8740 grep -v '^ *+' conftest.er1 >conftest.err
8742 cat conftest.err >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } && {
8745 test -z "$ac_c_werror_flag" ||
8746 test ! -s conftest.err
8747 } && test -s conftest.$ac_objext; then
8748 gl_cv_header_stdint_h=yes
8750 echo "$as_me: failed program was:" >&5
8751 sed 's/^/| /' conftest.$ac_ext >&5
8753 gl_cv_header_stdint_h=no
8756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8758 { echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
8759 echo "${ECHO_T}$gl_cv_header_stdint_h" >&6; }
8760 if test $gl_cv_header_stdint_h = yes; then
8762 cat >>confdefs.h <<_ACEOF
8763 #define HAVE_STDINT_H_WITH_UINTMAX 1
8771 { echo "$as_me:$LINENO: checking for intmax_t" >&5
8772 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
8773 if test "${gt_cv_c_intmax_t+set}" = set; then
8774 echo $ECHO_N "(cached) $ECHO_C" >&6
8776 cat >conftest.$ac_ext <<_ACEOF
8779 cat confdefs.h >>conftest.$ac_ext
8780 cat >>conftest.$ac_ext <<_ACEOF
8781 /* end confdefs.h. */
8785 #if HAVE_STDINT_H_WITH_UINTMAX
8788 #if HAVE_INTTYPES_H_WITH_UINTMAX
8789 #include <inttypes.h>
8800 rm -f conftest.$ac_objext
8801 if { (ac_try="$ac_compile"
8803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8804 *) ac_try_echo=$ac_try;;
8806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8807 (eval "$ac_compile") 2>conftest.er1
8809 grep -v '^ *+' conftest.er1 >conftest.err
8811 cat conftest.err >&5
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); } && {
8814 test -z "$ac_c_werror_flag" ||
8815 test ! -s conftest.err
8816 } && test -s conftest.$ac_objext; then
8817 gt_cv_c_intmax_t=yes
8819 echo "$as_me: failed program was:" >&5
8820 sed 's/^/| /' conftest.$ac_ext >&5
8825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8827 { echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
8828 echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
8829 if test $gt_cv_c_intmax_t = yes; then
8831 cat >>confdefs.h <<\_ACEOF
8832 #define HAVE_INTMAX_T 1
8839 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
8840 echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
8841 if test "${gt_cv_func_printf_posix+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8845 if test "$cross_compiling" = yes; then
8847 cat >conftest.$ac_ext <<_ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h. */
8854 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
8859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8860 $EGREP "notposix" >/dev/null 2>&1; then
8861 gt_cv_func_printf_posix="guessing no"
8863 gt_cv_func_printf_posix="guessing yes"
8869 cat >conftest.$ac_ext <<_ACEOF
8872 cat confdefs.h >>conftest.$ac_ext
8873 cat >>conftest.$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8878 /* The string "%2$d %1$d", with dollar characters protected from the shell's
8879 dollar expansion (possibly an autoconf bug). */
8880 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
8881 static char buf[100];
8884 sprintf (buf, format, 33, 55);
8885 return (strcmp (buf, "55 33") != 0);
8888 rm -f conftest$ac_exeext
8889 if { (ac_try="$ac_link"
8891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8892 *) ac_try_echo=$ac_try;;
8894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895 (eval "$ac_link") 2>&5
8897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8899 { (case "(($ac_try" in
8900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8901 *) ac_try_echo=$ac_try;;
8903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8904 (eval "$ac_try") 2>&5
8906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8907 (exit $ac_status); }; }; then
8908 gt_cv_func_printf_posix=yes
8910 echo "$as_me: program exited with status $ac_status" >&5
8911 echo "$as_me: failed program was:" >&5
8912 sed 's/^/| /' conftest.$ac_ext >&5
8915 gt_cv_func_printf_posix=no
8917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8923 { echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
8924 echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
8925 case $gt_cv_func_printf_posix in
8928 cat >>confdefs.h <<\_ACEOF
8929 #define HAVE_POSIX_PRINTF 1
8935 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8936 # for constant arguments. Useless!
8937 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
8938 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
8939 if test "${ac_cv_working_alloca_h+set}" = set; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
8942 cat >conftest.$ac_ext <<_ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8952 char *p = (char *) alloca (2 * sizeof (int));
8958 rm -f conftest.$ac_objext conftest$ac_exeext
8959 if { (ac_try="$ac_link"
8961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962 *) ac_try_echo=$ac_try;;
8964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965 (eval "$ac_link") 2>conftest.er1
8967 grep -v '^ *+' conftest.er1 >conftest.err
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } && {
8972 test -z "$ac_c_werror_flag" ||
8973 test ! -s conftest.err
8974 } && test -s conftest$ac_exeext &&
8975 $as_test_x conftest$ac_exeext; then
8976 ac_cv_working_alloca_h=yes
8978 echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8981 ac_cv_working_alloca_h=no
8984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8985 conftest$ac_exeext conftest.$ac_ext
8987 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8988 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
8989 if test $ac_cv_working_alloca_h = yes; then
8991 cat >>confdefs.h <<\_ACEOF
8992 #define HAVE_ALLOCA_H 1
8997 { echo "$as_me:$LINENO: checking for alloca" >&5
8998 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
8999 if test "${ac_cv_func_alloca_works+set}" = set; then
9000 echo $ECHO_N "(cached) $ECHO_C" >&6
9002 cat >conftest.$ac_ext <<_ACEOF
9005 cat confdefs.h >>conftest.$ac_ext
9006 cat >>conftest.$ac_ext <<_ACEOF
9007 /* end confdefs.h. */
9009 # define alloca __builtin_alloca
9012 # include <malloc.h>
9013 # define alloca _alloca
9015 # ifdef HAVE_ALLOCA_H
9016 # include <alloca.h>
9021 # ifndef alloca /* predefined by HP cc +Olibcalls */
9032 char *p = (char *) alloca (1);
9038 rm -f conftest.$ac_objext conftest$ac_exeext
9039 if { (ac_try="$ac_link"
9041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045 (eval "$ac_link") 2>conftest.er1
9047 grep -v '^ *+' conftest.er1 >conftest.err
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } && {
9052 test -z "$ac_c_werror_flag" ||
9053 test ! -s conftest.err
9054 } && test -s conftest$ac_exeext &&
9055 $as_test_x conftest$ac_exeext; then
9056 ac_cv_func_alloca_works=yes
9058 echo "$as_me: failed program was:" >&5
9059 sed 's/^/| /' conftest.$ac_ext >&5
9061 ac_cv_func_alloca_works=no
9064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9065 conftest$ac_exeext conftest.$ac_ext
9067 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9068 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
9070 if test $ac_cv_func_alloca_works = yes; then
9072 cat >>confdefs.h <<\_ACEOF
9073 #define HAVE_ALLOCA 1
9077 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9078 # that cause trouble. Some versions do not even contain alloca or
9079 # contain a buggy version. If you still want to use their alloca,
9080 # use ar to extract alloca.o from them instead of compiling alloca.c.
9082 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9084 cat >>confdefs.h <<\_ACEOF
9089 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9090 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
9091 if test "${ac_cv_os_cray+set}" = set; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9094 cat >conftest.$ac_ext <<_ACEOF
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h. */
9100 #if defined CRAY && ! defined CRAY2
9107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9108 $EGREP "webecray" >/dev/null 2>&1; then
9116 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9117 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
9118 if test $ac_cv_os_cray = yes; then
9119 for ac_func in _getb67 GETB67 getb67; do
9120 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9121 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9122 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9123 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9124 echo $ECHO_N "(cached) $ECHO_C" >&6
9126 cat >conftest.$ac_ext <<_ACEOF
9129 cat confdefs.h >>conftest.$ac_ext
9130 cat >>conftest.$ac_ext <<_ACEOF
9131 /* end confdefs.h. */
9132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9134 #define $ac_func innocuous_$ac_func
9136 /* System header to define __stub macros and hopefully few prototypes,
9137 which can conflict with char $ac_func (); below.
9138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9139 <limits.h> exists even on freestanding compilers. */
9142 # include <limits.h>
9144 # include <assert.h>
9149 /* Override any GCC internal prototype to avoid an error.
9150 Use char because int might match the return type of a GCC
9151 builtin and then its argument prototype would still apply. */
9156 /* The GNU C library defines this for functions which it implements
9157 to always fail with ENOSYS. Some functions are actually named
9158 something starting with __ and the normal name is an alias. */
9159 #if defined __stub_$ac_func || defined __stub___$ac_func
9171 rm -f conftest.$ac_objext conftest$ac_exeext
9172 if { (ac_try="$ac_link"
9174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9175 *) ac_try_echo=$ac_try;;
9177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9178 (eval "$ac_link") 2>conftest.er1
9180 grep -v '^ *+' conftest.er1 >conftest.err
9182 cat conftest.err >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } && {
9185 test -z "$ac_c_werror_flag" ||
9186 test ! -s conftest.err
9187 } && test -s conftest$ac_exeext &&
9188 $as_test_x conftest$ac_exeext; then
9189 eval "$as_ac_var=yes"
9191 echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9194 eval "$as_ac_var=no"
9197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9198 conftest$ac_exeext conftest.$ac_ext
9200 ac_res=`eval echo '${'$as_ac_var'}'`
9201 { echo "$as_me:$LINENO: result: $ac_res" >&5
9202 echo "${ECHO_T}$ac_res" >&6; }
9203 if test `eval echo '${'$as_ac_var'}'` = yes; then
9205 cat >>confdefs.h <<_ACEOF
9206 #define CRAY_STACKSEG_END $ac_func
9215 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9216 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
9217 if test "${ac_cv_c_stack_direction+set}" = set; then
9218 echo $ECHO_N "(cached) $ECHO_C" >&6
9220 if test "$cross_compiling" = yes; then
9221 ac_cv_c_stack_direction=0
9223 cat >conftest.$ac_ext <<_ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h. */
9229 $ac_includes_default
9231 find_stack_direction ()
9233 static char *addr = 0;
9238 return find_stack_direction ();
9241 return (&dummy > addr) ? 1 : -1;
9247 return find_stack_direction () < 0;
9250 rm -f conftest$ac_exeext
9251 if { (ac_try="$ac_link"
9253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9254 *) ac_try_echo=$ac_try;;
9256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9257 (eval "$ac_link") 2>&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9261 { (case "(($ac_try" in
9262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9263 *) ac_try_echo=$ac_try;;
9265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9266 (eval "$ac_try") 2>&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); }; }; then
9270 ac_cv_c_stack_direction=1
9272 echo "$as_me: program exited with status $ac_status" >&5
9273 echo "$as_me: failed program was:" >&5
9274 sed 's/^/| /' conftest.$ac_ext >&5
9277 ac_cv_c_stack_direction=-1
9279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9284 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9285 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
9287 cat >>confdefs.h <<_ACEOF
9288 #define STACK_DIRECTION $ac_cv_c_stack_direction
9296 for ac_header in stdlib.h unistd.h
9298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9303 echo $ECHO_N "(cached) $ECHO_C" >&6
9305 ac_res=`eval echo '${'$as_ac_Header'}'`
9306 { echo "$as_me:$LINENO: result: $ac_res" >&5
9307 echo "${ECHO_T}$ac_res" >&6; }
9309 # Is the header compilable?
9310 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9312 cat >conftest.$ac_ext <<_ACEOF
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h. */
9318 $ac_includes_default
9319 #include <$ac_header>
9321 rm -f conftest.$ac_objext
9322 if { (ac_try="$ac_compile"
9324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9325 *) ac_try_echo=$ac_try;;
9327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9328 (eval "$ac_compile") 2>conftest.er1
9330 grep -v '^ *+' conftest.er1 >conftest.err
9332 cat conftest.err >&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } && {
9335 test -z "$ac_c_werror_flag" ||
9336 test ! -s conftest.err
9337 } && test -s conftest.$ac_objext; then
9338 ac_header_compiler=yes
9340 echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.$ac_ext >&5
9343 ac_header_compiler=no
9346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9348 echo "${ECHO_T}$ac_header_compiler" >&6; }
9350 # Is the header present?
9351 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9353 cat >conftest.$ac_ext <<_ACEOF
9356 cat confdefs.h >>conftest.$ac_ext
9357 cat >>conftest.$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9359 #include <$ac_header>
9361 if { (ac_try="$ac_cpp conftest.$ac_ext"
9363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9364 *) ac_try_echo=$ac_try;;
9366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9369 grep -v '^ *+' conftest.er1 >conftest.err
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } >/dev/null && {
9374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9375 test ! -s conftest.err
9377 ac_header_preproc=yes
9379 echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9382 ac_header_preproc=no
9385 rm -f conftest.err conftest.$ac_ext
9386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9387 echo "${ECHO_T}$ac_header_preproc" >&6; }
9389 # So? What about this header?
9390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9396 ac_header_preproc=yes
9399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9414 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 eval "$as_ac_Header=\$ac_header_preproc"
9421 ac_res=`eval echo '${'$as_ac_Header'}'`
9422 { echo "$as_me:$LINENO: result: $ac_res" >&5
9423 echo "${ECHO_T}$ac_res" >&6; }
9426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9427 cat >>confdefs.h <<_ACEOF
9428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9436 for ac_func in getpagesize
9438 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9439 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9440 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9441 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9444 cat >conftest.$ac_ext <<_ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9450 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9452 #define $ac_func innocuous_$ac_func
9454 /* System header to define __stub macros and hopefully few prototypes,
9455 which can conflict with char $ac_func (); below.
9456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9457 <limits.h> exists even on freestanding compilers. */
9460 # include <limits.h>
9462 # include <assert.h>
9467 /* Override any GCC internal prototype to avoid an error.
9468 Use char because int might match the return type of a GCC
9469 builtin and then its argument prototype would still apply. */
9474 /* The GNU C library defines this for functions which it implements
9475 to always fail with ENOSYS. Some functions are actually named
9476 something starting with __ and the normal name is an alias. */
9477 #if defined __stub_$ac_func || defined __stub___$ac_func
9489 rm -f conftest.$ac_objext conftest$ac_exeext
9490 if { (ac_try="$ac_link"
9492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9493 *) ac_try_echo=$ac_try;;
9495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9496 (eval "$ac_link") 2>conftest.er1
9498 grep -v '^ *+' conftest.er1 >conftest.err
9500 cat conftest.err >&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); } && {
9503 test -z "$ac_c_werror_flag" ||
9504 test ! -s conftest.err
9505 } && test -s conftest$ac_exeext &&
9506 $as_test_x conftest$ac_exeext; then
9507 eval "$as_ac_var=yes"
9509 echo "$as_me: failed program was:" >&5
9510 sed 's/^/| /' conftest.$ac_ext >&5
9512 eval "$as_ac_var=no"
9515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9516 conftest$ac_exeext conftest.$ac_ext
9518 ac_res=`eval echo '${'$as_ac_var'}'`
9519 { echo "$as_me:$LINENO: result: $ac_res" >&5
9520 echo "${ECHO_T}$ac_res" >&6; }
9521 if test `eval echo '${'$as_ac_var'}'` = yes; then
9522 cat >>confdefs.h <<_ACEOF
9523 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9529 { echo "$as_me:$LINENO: checking for working mmap" >&5
9530 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9531 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 if test "$cross_compiling" = yes; then
9535 ac_cv_func_mmap_fixed_mapped=no
9537 cat >conftest.$ac_ext <<_ACEOF
9540 cat confdefs.h >>conftest.$ac_ext
9541 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h. */
9543 $ac_includes_default
9544 /* malloc might have been renamed as rpl_malloc. */
9547 /* Thanks to Mike Haertel and Jim Avera for this test.
9548 Here is a matrix of mmap possibilities:
9549 mmap private not fixed
9550 mmap private fixed at somewhere currently unmapped
9551 mmap private fixed at somewhere already mapped
9552 mmap shared not fixed
9553 mmap shared fixed at somewhere currently unmapped
9554 mmap shared fixed at somewhere already mapped
9555 For private mappings, we should verify that changes cannot be read()
9556 back from the file, nor mmap's back from the file at a different
9557 address. (There have been systems where private was not correctly
9558 implemented like the infamous i386 svr4.0, and systems where the
9559 VM page cache was not coherent with the file system buffer cache
9560 like early versions of FreeBSD and possibly contemporary NetBSD.)
9561 For shared mappings, we should conversely verify that changes get
9562 propagated back to all the places they're supposed to be.
9564 Grep wants private fixed already mapped.
9565 The main things grep needs to know about mmap are:
9566 * does it exist and is it safe to write into the mmap'd area
9567 * how to use it (BSD variants) */
9570 #include <sys/mman.h>
9572 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9576 /* This mess was copied from the GNU getpagesize.h. */
9577 #ifndef HAVE_GETPAGESIZE
9578 /* Assume that all systems that can run configure have sys/param.h. */
9579 # ifndef HAVE_SYS_PARAM_H
9580 # define HAVE_SYS_PARAM_H 1
9583 # ifdef _SC_PAGESIZE
9584 # define getpagesize() sysconf(_SC_PAGESIZE)
9585 # else /* no _SC_PAGESIZE */
9586 # ifdef HAVE_SYS_PARAM_H
9587 # include <sys/param.h>
9588 # ifdef EXEC_PAGESIZE
9589 # define getpagesize() EXEC_PAGESIZE
9590 # else /* no EXEC_PAGESIZE */
9592 # define getpagesize() NBPG * CLSIZE
9595 # endif /* no CLSIZE */
9596 # else /* no NBPG */
9598 # define getpagesize() NBPC
9599 # else /* no NBPC */
9601 # define getpagesize() PAGESIZE
9602 # endif /* PAGESIZE */
9603 # endif /* no NBPC */
9604 # endif /* no NBPG */
9605 # endif /* no EXEC_PAGESIZE */
9606 # else /* no HAVE_SYS_PARAM_H */
9607 # define getpagesize() 8192 /* punt totally */
9608 # endif /* no HAVE_SYS_PARAM_H */
9609 # endif /* no _SC_PAGESIZE */
9611 #endif /* no HAVE_GETPAGESIZE */
9616 char *data, *data2, *data3;
9620 pagesize = getpagesize ();
9622 /* First, make a file with some known garbage in it. */
9623 data = (char *) malloc (pagesize);
9626 for (i = 0; i < pagesize; ++i)
9627 *(data + i) = rand ();
9629 fd = creat ("conftest.mmap", 0600);
9632 if (write (fd, data, pagesize) != pagesize)
9636 /* Next, try to mmap the file at a fixed address which already has
9637 something else allocated at it. If we can, also make sure that
9638 we see the same garbage. */
9639 fd = open ("conftest.mmap", O_RDWR);
9642 data2 = (char *) malloc (2 * pagesize);
9645 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9646 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9647 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9649 for (i = 0; i < pagesize; ++i)
9650 if (*(data + i) != *(data2 + i))
9653 /* Finally, make sure that changes to the mapped area do not
9654 percolate back to the file as seen by read(). (This is a bug on
9655 some variants of i386 svr4.0.) */
9656 for (i = 0; i < pagesize; ++i)
9657 *(data2 + i) = *(data2 + i) + 1;
9658 data3 = (char *) malloc (pagesize);
9661 if (read (fd, data3, pagesize) != pagesize)
9663 for (i = 0; i < pagesize; ++i)
9664 if (*(data + i) != *(data3 + i))
9670 rm -f conftest$ac_exeext
9671 if { (ac_try="$ac_link"
9673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9674 *) ac_try_echo=$ac_try;;
9676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9677 (eval "$ac_link") 2>&5
9679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9680 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9681 { (case "(($ac_try" in
9682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9683 *) ac_try_echo=$ac_try;;
9685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9686 (eval "$ac_try") 2>&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); }; }; then
9690 ac_cv_func_mmap_fixed_mapped=yes
9692 echo "$as_me: program exited with status $ac_status" >&5
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9697 ac_cv_func_mmap_fixed_mapped=no
9699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9704 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9705 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9706 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9708 cat >>confdefs.h <<\_ACEOF
9716 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
9717 echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
9718 if test "${ac_cv_gnu_library_2_1+set}" = set; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 cat >conftest.$ac_ext <<_ACEOF
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9728 #include <features.h>
9729 #ifdef __GNU_LIBRARY__
9730 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9737 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
9738 ac_cv_gnu_library_2_1=yes
9740 ac_cv_gnu_library_2_1=no
9747 { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
9748 echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
9750 GLIBC21="$ac_cv_gnu_library_2_1"
9755 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
9756 echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
9757 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
9758 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 if test "$cross_compiling" = yes; then
9763 # Guess based on the CPU.
9765 alpha* | i3456786 | m68k | s390*)
9766 gt_cv_int_divbyzero_sigfpe="guessing yes";;
9768 gt_cv_int_divbyzero_sigfpe="guessing no";;
9772 cat >conftest.$ac_ext <<_ACEOF
9775 cat confdefs.h >>conftest.$ac_ext
9776 cat >>conftest.$ac_ext <<_ACEOF
9777 /* end confdefs.h. */
9784 sigfpe_handler (int sig)
9786 sigfpe_handler (sig) int sig;
9789 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
9790 exit (sig != SIGFPE);
9800 signal (SIGFPE, sigfpe_handler);
9801 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
9802 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
9803 signal (SIGTRAP, sigfpe_handler);
9805 /* Linux/SPARC yields signal SIGILL. */
9806 #if defined (__sparc__) && defined (__linux__)
9807 signal (SIGILL, sigfpe_handler);
9816 rm -f conftest$ac_exeext
9817 if { (ac_try="$ac_link"
9819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9820 *) ac_try_echo=$ac_try;;
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_link") 2>&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9827 { (case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_try") 2>&5
9834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835 (exit $ac_status); }; }; then
9836 gt_cv_int_divbyzero_sigfpe=yes
9838 echo "$as_me: program exited with status $ac_status" >&5
9839 echo "$as_me: failed program was:" >&5
9840 sed 's/^/| /' conftest.$ac_ext >&5
9843 gt_cv_int_divbyzero_sigfpe=no
9845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9851 { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
9852 echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
9853 case "$gt_cv_int_divbyzero_sigfpe" in
9858 cat >>confdefs.h <<_ACEOF
9859 #define INTDIV0_RAISES_SIGFPE $value
9864 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
9865 echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
9866 if test "${ac_cv_type_unsigned_long_long+set}" = set; then
9867 echo $ECHO_N "(cached) $ECHO_C" >&6
9869 cat >conftest.$ac_ext <<_ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9875 unsigned long long ull = 1ULL; int i = 63;
9879 unsigned long long ullmax = (unsigned long long) -1;
9880 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
9885 rm -f conftest.$ac_objext conftest$ac_exeext
9886 if { (ac_try="$ac_link"
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_link") 2>conftest.er1
9894 grep -v '^ *+' conftest.er1 >conftest.err
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } && {
9899 test -z "$ac_c_werror_flag" ||
9900 test ! -s conftest.err
9901 } && test -s conftest$ac_exeext &&
9902 $as_test_x conftest$ac_exeext; then
9903 ac_cv_type_unsigned_long_long=yes
9905 echo "$as_me: failed program was:" >&5
9906 sed 's/^/| /' conftest.$ac_ext >&5
9908 ac_cv_type_unsigned_long_long=no
9911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9912 conftest$ac_exeext conftest.$ac_ext
9914 { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
9915 echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
9916 if test $ac_cv_type_unsigned_long_long = yes; then
9918 cat >>confdefs.h <<\_ACEOF
9919 #define HAVE_UNSIGNED_LONG_LONG 1
9927 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
9929 test $ac_cv_type_unsigned_long_long = yes \
9930 && ac_type='unsigned long long' \
9931 || ac_type='unsigned long'
9933 cat >>confdefs.h <<_ACEOF
9934 #define uintmax_t $ac_type
9939 cat >>confdefs.h <<\_ACEOF
9940 #define HAVE_UINTMAX_T 1
9946 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
9947 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
9948 if test "${gt_cv_header_inttypes_h+set}" = set; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9952 cat >conftest.$ac_ext <<_ACEOF
9955 cat confdefs.h >>conftest.$ac_ext
9956 cat >>conftest.$ac_ext <<_ACEOF
9957 /* end confdefs.h. */
9958 #include <sys/types.h>
9959 #include <inttypes.h>
9968 rm -f conftest.$ac_objext
9969 if { (ac_try="$ac_compile"
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_compile") 2>conftest.er1
9977 grep -v '^ *+' conftest.er1 >conftest.err
9979 cat conftest.err >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); } && {
9982 test -z "$ac_c_werror_flag" ||
9983 test ! -s conftest.err
9984 } && test -s conftest.$ac_objext; then
9985 gt_cv_header_inttypes_h=yes
9987 echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9990 gt_cv_header_inttypes_h=no
9993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9996 { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
9997 echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
9998 if test $gt_cv_header_inttypes_h = yes; then
10000 cat >>confdefs.h <<_ACEOF
10001 #define HAVE_INTTYPES_H 1
10008 if test $gt_cv_header_inttypes_h = yes; then
10009 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
10010 echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
10011 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
10012 echo $ECHO_N "(cached) $ECHO_C" >&6
10015 cat >conftest.$ac_ext <<_ACEOF
10018 cat confdefs.h >>conftest.$ac_ext
10019 cat >>conftest.$ac_ext <<_ACEOF
10020 /* end confdefs.h. */
10021 #include <inttypes.h>
10034 rm -f conftest.$ac_objext
10035 if { (ac_try="$ac_compile"
10036 case "(($ac_try" in
10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038 *) ac_try_echo=$ac_try;;
10040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10041 (eval "$ac_compile") 2>conftest.er1
10043 grep -v '^ *+' conftest.er1 >conftest.err
10045 cat conftest.err >&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } && {
10048 test -z "$ac_c_werror_flag" ||
10049 test ! -s conftest.err
10050 } && test -s conftest.$ac_objext; then
10051 gt_cv_inttypes_pri_broken=no
10053 echo "$as_me: failed program was:" >&5
10054 sed 's/^/| /' conftest.$ac_ext >&5
10056 gt_cv_inttypes_pri_broken=yes
10059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10062 { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
10063 echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
10065 if test "$gt_cv_inttypes_pri_broken" = yes; then
10067 cat >>confdefs.h <<_ACEOF
10068 #define PRI_MACROS_BROKEN 1
10075 for ac_header in stdint.h
10077 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10079 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 ac_res=`eval echo '${'$as_ac_Header'}'`
10085 { echo "$as_me:$LINENO: result: $ac_res" >&5
10086 echo "${ECHO_T}$ac_res" >&6; }
10088 # Is the header compilable?
10089 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10091 cat >conftest.$ac_ext <<_ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10097 $ac_includes_default
10098 #include <$ac_header>
10100 rm -f conftest.$ac_objext
10101 if { (ac_try="$ac_compile"
10102 case "(($ac_try" in
10103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10104 *) ac_try_echo=$ac_try;;
10106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10107 (eval "$ac_compile") 2>conftest.er1
10109 grep -v '^ *+' conftest.er1 >conftest.err
10111 cat conftest.err >&5
10112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10113 (exit $ac_status); } && {
10114 test -z "$ac_c_werror_flag" ||
10115 test ! -s conftest.err
10116 } && test -s conftest.$ac_objext; then
10117 ac_header_compiler=yes
10119 echo "$as_me: failed program was:" >&5
10120 sed 's/^/| /' conftest.$ac_ext >&5
10122 ac_header_compiler=no
10125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10126 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10127 echo "${ECHO_T}$ac_header_compiler" >&6; }
10129 # Is the header present?
10130 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10131 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10132 cat >conftest.$ac_ext <<_ACEOF
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h. */
10138 #include <$ac_header>
10140 if { (ac_try="$ac_cpp conftest.$ac_ext"
10141 case "(($ac_try" in
10142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10143 *) ac_try_echo=$ac_try;;
10145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10148 grep -v '^ *+' conftest.er1 >conftest.err
10150 cat conftest.err >&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); } >/dev/null && {
10153 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10154 test ! -s conftest.err
10156 ac_header_preproc=yes
10158 echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10161 ac_header_preproc=no
10164 rm -f conftest.err conftest.$ac_ext
10165 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10166 echo "${ECHO_T}$ac_header_preproc" >&6; }
10168 # So? What about this header?
10169 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10171 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10172 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10173 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10174 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10175 ac_header_preproc=yes
10178 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10179 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10180 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10181 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10182 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10183 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10184 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10185 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10186 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10187 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10188 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10189 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10196 echo $ECHO_N "(cached) $ECHO_C" >&6
10198 eval "$as_ac_Header=\$ac_header_preproc"
10200 ac_res=`eval echo '${'$as_ac_Header'}'`
10201 { echo "$as_me:$LINENO: result: $ac_res" >&5
10202 echo "${ECHO_T}$ac_res" >&6; }
10205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10206 cat >>confdefs.h <<_ACEOF
10207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10214 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
10215 echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
10217 cat >conftest.$ac_ext <<_ACEOF
10220 cat confdefs.h >>conftest.$ac_ext
10221 cat >>conftest.$ac_ext <<_ACEOF
10222 /* end confdefs.h. */
10224 #include <limits.h>
10226 #include <stdint.h>
10233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10234 $EGREP "Found it" >/dev/null 2>&1; then
10239 if test -z "$result"; then
10240 if test "$cross_compiling" = yes; then
10241 # Depending upon the size, compute the lo and hi bounds.
10242 cat >conftest.$ac_ext <<_ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10248 #include <stddef.h>
10252 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
10259 rm -f conftest.$ac_objext
10260 if { (ac_try="$ac_compile"
10261 case "(($ac_try" in
10262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263 *) ac_try_echo=$ac_try;;
10265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266 (eval "$ac_compile") 2>conftest.er1
10268 grep -v '^ *+' conftest.er1 >conftest.err
10270 cat conftest.err >&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } && {
10273 test -z "$ac_c_werror_flag" ||
10274 test ! -s conftest.err
10275 } && test -s conftest.$ac_objext; then
10278 cat >conftest.$ac_ext <<_ACEOF
10281 cat confdefs.h >>conftest.$ac_ext
10282 cat >>conftest.$ac_ext <<_ACEOF
10283 /* end confdefs.h. */
10284 #include <stddef.h>
10288 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10295 rm -f conftest.$ac_objext
10296 if { (ac_try="$ac_compile"
10297 case "(($ac_try" in
10298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10299 *) ac_try_echo=$ac_try;;
10301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10302 (eval "$ac_compile") 2>conftest.er1
10304 grep -v '^ *+' conftest.er1 >conftest.err
10306 cat conftest.err >&5
10307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10308 (exit $ac_status); } && {
10309 test -z "$ac_c_werror_flag" ||
10310 test ! -s conftest.err
10311 } && test -s conftest.$ac_objext; then
10312 ac_hi=$ac_mid; break
10314 echo "$as_me: failed program was:" >&5
10315 sed 's/^/| /' conftest.$ac_ext >&5
10317 ac_lo=`expr $ac_mid + 1`
10318 if test $ac_lo -le $ac_mid; then
10322 ac_mid=`expr 2 '*' $ac_mid + 1`
10325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10328 echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10331 cat >conftest.$ac_ext <<_ACEOF
10334 cat confdefs.h >>conftest.$ac_ext
10335 cat >>conftest.$ac_ext <<_ACEOF
10336 /* end confdefs.h. */
10337 #include <stddef.h>
10341 static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
10348 rm -f conftest.$ac_objext
10349 if { (ac_try="$ac_compile"
10350 case "(($ac_try" in
10351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355 (eval "$ac_compile") 2>conftest.er1
10357 grep -v '^ *+' conftest.er1 >conftest.err
10359 cat conftest.err >&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } && {
10362 test -z "$ac_c_werror_flag" ||
10363 test ! -s conftest.err
10364 } && test -s conftest.$ac_objext; then
10367 cat >conftest.$ac_ext <<_ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10373 #include <stddef.h>
10377 static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
10384 rm -f conftest.$ac_objext
10385 if { (ac_try="$ac_compile"
10386 case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_compile") 2>conftest.er1
10393 grep -v '^ *+' conftest.er1 >conftest.err
10395 cat conftest.err >&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } && {
10398 test -z "$ac_c_werror_flag" ||
10399 test ! -s conftest.err
10400 } && test -s conftest.$ac_objext; then
10401 ac_lo=$ac_mid; break
10403 echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.$ac_ext >&5
10406 ac_hi=`expr '(' $ac_mid ')' - 1`
10407 if test $ac_mid -le $ac_hi; then
10411 ac_mid=`expr 2 '*' $ac_mid`
10414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10417 echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10427 # Binary search between lo and hi bounds.
10428 while test "x$ac_lo" != "x$ac_hi"; do
10429 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10430 cat >conftest.$ac_ext <<_ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10436 #include <stddef.h>
10440 static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
10447 rm -f conftest.$ac_objext
10448 if { (ac_try="$ac_compile"
10449 case "(($ac_try" in
10450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10451 *) ac_try_echo=$ac_try;;
10453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10454 (eval "$ac_compile") 2>conftest.er1
10456 grep -v '^ *+' conftest.er1 >conftest.err
10458 cat conftest.err >&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } && {
10461 test -z "$ac_c_werror_flag" ||
10462 test ! -s conftest.err
10463 } && test -s conftest.$ac_objext; then
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10469 ac_lo=`expr '(' $ac_mid ')' + 1`
10472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10475 ?*) res_hi=$ac_lo;;
10479 cat >conftest.$ac_ext <<_ACEOF
10482 cat confdefs.h >>conftest.$ac_ext
10483 cat >>conftest.$ac_ext <<_ACEOF
10484 /* end confdefs.h. */
10485 #include <stddef.h>
10486 static long int longval () { return ~(size_t)0 / 10; }
10487 static unsigned long int ulongval () { return ~(size_t)0 / 10; }
10489 #include <stdlib.h>
10494 FILE *f = fopen ("conftest.val", "w");
10497 if ((~(size_t)0 / 10) < 0)
10499 long int i = longval ();
10500 if (i != (~(size_t)0 / 10))
10502 fprintf (f, "%ld\n", i);
10506 unsigned long int i = ulongval ();
10507 if (i != (~(size_t)0 / 10))
10509 fprintf (f, "%lu\n", i);
10511 return ferror (f) || fclose (f) != 0;
10517 rm -f conftest$ac_exeext
10518 if { (ac_try="$ac_link"
10519 case "(($ac_try" in
10520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10521 *) ac_try_echo=$ac_try;;
10523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10524 (eval "$ac_link") 2>&5
10526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10528 { (case "(($ac_try" in
10529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10530 *) ac_try_echo=$ac_try;;
10532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10533 (eval "$ac_try") 2>&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); }; }; then
10537 res_hi=`cat conftest.val`
10539 echo "$as_me: program exited with status $ac_status" >&5
10540 echo "$as_me: failed program was:" >&5
10541 sed 's/^/| /' conftest.$ac_ext >&5
10543 ( exit $ac_status )
10546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10550 if test "$cross_compiling" = yes; then
10551 # Depending upon the size, compute the lo and hi bounds.
10552 cat >conftest.$ac_ext <<_ACEOF
10555 cat confdefs.h >>conftest.$ac_ext
10556 cat >>conftest.$ac_ext <<_ACEOF
10557 /* end confdefs.h. */
10558 #include <stddef.h>
10562 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
10569 rm -f conftest.$ac_objext
10570 if { (ac_try="$ac_compile"
10571 case "(($ac_try" in
10572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573 *) ac_try_echo=$ac_try;;
10575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10576 (eval "$ac_compile") 2>conftest.er1
10578 grep -v '^ *+' conftest.er1 >conftest.err
10580 cat conftest.err >&5
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); } && {
10583 test -z "$ac_c_werror_flag" ||
10584 test ! -s conftest.err
10585 } && test -s conftest.$ac_objext; then
10588 cat >conftest.$ac_ext <<_ACEOF
10591 cat confdefs.h >>conftest.$ac_ext
10592 cat >>conftest.$ac_ext <<_ACEOF
10593 /* end confdefs.h. */
10594 #include <stddef.h>
10598 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10605 rm -f conftest.$ac_objext
10606 if { (ac_try="$ac_compile"
10607 case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612 (eval "$ac_compile") 2>conftest.er1
10614 grep -v '^ *+' conftest.er1 >conftest.err
10616 cat conftest.err >&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } && {
10619 test -z "$ac_c_werror_flag" ||
10620 test ! -s conftest.err
10621 } && test -s conftest.$ac_objext; then
10622 ac_hi=$ac_mid; break
10624 echo "$as_me: failed program was:" >&5
10625 sed 's/^/| /' conftest.$ac_ext >&5
10627 ac_lo=`expr $ac_mid + 1`
10628 if test $ac_lo -le $ac_mid; then
10632 ac_mid=`expr 2 '*' $ac_mid + 1`
10635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10638 echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.$ac_ext >&5
10641 cat >conftest.$ac_ext <<_ACEOF
10644 cat confdefs.h >>conftest.$ac_ext
10645 cat >>conftest.$ac_ext <<_ACEOF
10646 /* end confdefs.h. */
10647 #include <stddef.h>
10651 static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
10658 rm -f conftest.$ac_objext
10659 if { (ac_try="$ac_compile"
10660 case "(($ac_try" in
10661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662 *) ac_try_echo=$ac_try;;
10664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10665 (eval "$ac_compile") 2>conftest.er1
10667 grep -v '^ *+' conftest.er1 >conftest.err
10669 cat conftest.err >&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); } && {
10672 test -z "$ac_c_werror_flag" ||
10673 test ! -s conftest.err
10674 } && test -s conftest.$ac_objext; then
10677 cat >conftest.$ac_ext <<_ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10683 #include <stddef.h>
10687 static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
10694 rm -f conftest.$ac_objext
10695 if { (ac_try="$ac_compile"
10696 case "(($ac_try" in
10697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10698 *) ac_try_echo=$ac_try;;
10700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10701 (eval "$ac_compile") 2>conftest.er1
10703 grep -v '^ *+' conftest.er1 >conftest.err
10705 cat conftest.err >&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } && {
10708 test -z "$ac_c_werror_flag" ||
10709 test ! -s conftest.err
10710 } && test -s conftest.$ac_objext; then
10711 ac_lo=$ac_mid; break
10713 echo "$as_me: failed program was:" >&5
10714 sed 's/^/| /' conftest.$ac_ext >&5
10716 ac_hi=`expr '(' $ac_mid ')' - 1`
10717 if test $ac_mid -le $ac_hi; then
10721 ac_mid=`expr 2 '*' $ac_mid`
10724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10727 echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10737 # Binary search between lo and hi bounds.
10738 while test "x$ac_lo" != "x$ac_hi"; do
10739 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
10740 cat >conftest.$ac_ext <<_ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10746 #include <stddef.h>
10750 static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
10757 rm -f conftest.$ac_objext
10758 if { (ac_try="$ac_compile"
10759 case "(($ac_try" in
10760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761 *) ac_try_echo=$ac_try;;
10763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764 (eval "$ac_compile") 2>conftest.er1
10766 grep -v '^ *+' conftest.er1 >conftest.err
10768 cat conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); } && {
10771 test -z "$ac_c_werror_flag" ||
10772 test ! -s conftest.err
10773 } && test -s conftest.$ac_objext; then
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10779 ac_lo=`expr '(' $ac_mid ')' + 1`
10782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10785 ?*) res_lo=$ac_lo;;
10789 cat >conftest.$ac_ext <<_ACEOF
10792 cat confdefs.h >>conftest.$ac_ext
10793 cat >>conftest.$ac_ext <<_ACEOF
10794 /* end confdefs.h. */
10795 #include <stddef.h>
10796 static long int longval () { return ~(size_t)0 % 10; }
10797 static unsigned long int ulongval () { return ~(size_t)0 % 10; }
10799 #include <stdlib.h>
10804 FILE *f = fopen ("conftest.val", "w");
10807 if ((~(size_t)0 % 10) < 0)
10809 long int i = longval ();
10810 if (i != (~(size_t)0 % 10))
10812 fprintf (f, "%ld\n", i);
10816 unsigned long int i = ulongval ();
10817 if (i != (~(size_t)0 % 10))
10819 fprintf (f, "%lu\n", i);
10821 return ferror (f) || fclose (f) != 0;
10827 rm -f conftest$ac_exeext
10828 if { (ac_try="$ac_link"
10829 case "(($ac_try" in
10830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10831 *) ac_try_echo=$ac_try;;
10833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10834 (eval "$ac_link") 2>&5
10836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10838 { (case "(($ac_try" in
10839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10840 *) ac_try_echo=$ac_try;;
10842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10843 (eval "$ac_try") 2>&5
10845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10846 (exit $ac_status); }; }; then
10847 res_lo=`cat conftest.val`
10849 echo "$as_me: program exited with status $ac_status" >&5
10850 echo "$as_me: failed program was:" >&5
10851 sed 's/^/| /' conftest.$ac_ext >&5
10853 ( exit $ac_status )
10856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10860 if test "$cross_compiling" = yes; then
10861 # Depending upon the size, compute the lo and hi bounds.
10862 cat >conftest.$ac_ext <<_ACEOF
10865 cat confdefs.h >>conftest.$ac_ext
10866 cat >>conftest.$ac_ext <<_ACEOF
10867 /* end confdefs.h. */
10868 #include <stddef.h>
10872 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
10879 rm -f conftest.$ac_objext
10880 if { (ac_try="$ac_compile"
10881 case "(($ac_try" in
10882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_compile") 2>conftest.er1
10888 grep -v '^ *+' conftest.er1 >conftest.err
10890 cat conftest.err >&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } && {
10893 test -z "$ac_c_werror_flag" ||
10894 test ! -s conftest.err
10895 } && test -s conftest.$ac_objext; then
10898 cat >conftest.$ac_ext <<_ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h. */
10904 #include <stddef.h>
10908 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
10915 rm -f conftest.$ac_objext
10916 if { (ac_try="$ac_compile"
10917 case "(($ac_try" in
10918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919 *) ac_try_echo=$ac_try;;
10921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922 (eval "$ac_compile") 2>conftest.er1
10924 grep -v '^ *+' conftest.er1 >conftest.err
10926 cat conftest.err >&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); } && {
10929 test -z "$ac_c_werror_flag" ||
10930 test ! -s conftest.err
10931 } && test -s conftest.$ac_objext; then
10932 ac_hi=$ac_mid; break
10934 echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.$ac_ext >&5
10937 ac_lo=`expr $ac_mid + 1`
10938 if test $ac_lo -le $ac_mid; then
10942 ac_mid=`expr 2 '*' $ac_mid + 1`
10945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10948 echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10951 cat >conftest.$ac_ext <<_ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h. */
10957 #include <stddef.h>
10961 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
10968 rm -f conftest.$ac_objext
10969 if { (ac_try="$ac_compile"
10970 case "(($ac_try" in
10971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972 *) ac_try_echo=$ac_try;;
10974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10975 (eval "$ac_compile") 2>conftest.er1
10977 grep -v '^ *+' conftest.er1 >conftest.err
10979 cat conftest.err >&5
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); } && {
10982 test -z "$ac_c_werror_flag" ||
10983 test ! -s conftest.err
10984 } && test -s conftest.$ac_objext; then
10987 cat >conftest.$ac_ext <<_ACEOF
10990 cat confdefs.h >>conftest.$ac_ext
10991 cat >>conftest.$ac_ext <<_ACEOF
10992 /* end confdefs.h. */
10993 #include <stddef.h>
10997 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
11004 rm -f conftest.$ac_objext
11005 if { (ac_try="$ac_compile"
11006 case "(($ac_try" in
11007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11008 *) ac_try_echo=$ac_try;;
11010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11011 (eval "$ac_compile") 2>conftest.er1
11013 grep -v '^ *+' conftest.er1 >conftest.err
11015 cat conftest.err >&5
11016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017 (exit $ac_status); } && {
11018 test -z "$ac_c_werror_flag" ||
11019 test ! -s conftest.err
11020 } && test -s conftest.$ac_objext; then
11021 ac_lo=$ac_mid; break
11023 echo "$as_me: failed program was:" >&5
11024 sed 's/^/| /' conftest.$ac_ext >&5
11026 ac_hi=`expr '(' $ac_mid ')' - 1`
11027 if test $ac_mid -le $ac_hi; then
11031 ac_mid=`expr 2 '*' $ac_mid`
11034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11037 echo "$as_me: failed program was:" >&5
11038 sed 's/^/| /' conftest.$ac_ext >&5
11043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11047 # Binary search between lo and hi bounds.
11048 while test "x$ac_lo" != "x$ac_hi"; do
11049 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11050 cat >conftest.$ac_ext <<_ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h. */
11056 #include <stddef.h>
11060 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
11067 rm -f conftest.$ac_objext
11068 if { (ac_try="$ac_compile"
11069 case "(($ac_try" in
11070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11071 *) ac_try_echo=$ac_try;;
11073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074 (eval "$ac_compile") 2>conftest.er1
11076 grep -v '^ *+' conftest.er1 >conftest.err
11078 cat conftest.err >&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } && {
11081 test -z "$ac_c_werror_flag" ||
11082 test ! -s conftest.err
11083 } && test -s conftest.$ac_objext; then
11086 echo "$as_me: failed program was:" >&5
11087 sed 's/^/| /' conftest.$ac_ext >&5
11089 ac_lo=`expr '(' $ac_mid ')' + 1`
11092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11095 ?*) fits_in_uint=$ac_lo;;
11099 cat >conftest.$ac_ext <<_ACEOF
11102 cat confdefs.h >>conftest.$ac_ext
11103 cat >>conftest.$ac_ext <<_ACEOF
11104 /* end confdefs.h. */
11105 #include <stddef.h>
11106 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
11107 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
11109 #include <stdlib.h>
11114 FILE *f = fopen ("conftest.val", "w");
11117 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
11119 long int i = longval ();
11120 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11122 fprintf (f, "%ld\n", i);
11126 unsigned long int i = ulongval ();
11127 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
11129 fprintf (f, "%lu\n", i);
11131 return ferror (f) || fclose (f) != 0;
11137 rm -f conftest$ac_exeext
11138 if { (ac_try="$ac_link"
11139 case "(($ac_try" in
11140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11141 *) ac_try_echo=$ac_try;;
11143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11144 (eval "$ac_link") 2>&5
11146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11148 { (case "(($ac_try" in
11149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11150 *) ac_try_echo=$ac_try;;
11152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11153 (eval "$ac_try") 2>&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); }; }; then
11157 fits_in_uint=`cat conftest.val`
11159 echo "$as_me: program exited with status $ac_status" >&5
11160 echo "$as_me: failed program was:" >&5
11161 sed 's/^/| /' conftest.$ac_ext >&5
11163 ( exit $ac_status )
11166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11170 if test "$fits_in_uint" = 1; then
11171 cat >conftest.$ac_ext <<_ACEOF
11174 cat confdefs.h >>conftest.$ac_ext
11175 cat >>conftest.$ac_ext <<_ACEOF
11176 /* end confdefs.h. */
11177 #include <stddef.h>
11179 extern unsigned long foo;
11189 rm -f conftest.$ac_objext
11190 if { (ac_try="$ac_compile"
11191 case "(($ac_try" in
11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193 *) ac_try_echo=$ac_try;;
11195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196 (eval "$ac_compile") 2>conftest.er1
11198 grep -v '^ *+' conftest.er1 >conftest.err
11200 cat conftest.err >&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } && {
11203 test -z "$ac_c_werror_flag" ||
11204 test ! -s conftest.err
11205 } && test -s conftest.$ac_objext; then
11208 echo "$as_me: failed program was:" >&5
11209 sed 's/^/| /' conftest.$ac_ext >&5
11214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11216 if test -z "$result"; then
11217 if test "$fits_in_uint" = 1; then
11218 result="$res_hi$res_lo"U
11220 result="$res_hi$res_lo"UL
11223 result='~(size_t)0'
11226 { echo "$as_me:$LINENO: result: $result" >&5
11227 echo "${ECHO_T}$result" >&6; }
11228 if test "$result" != yes; then
11230 cat >>confdefs.h <<_ACEOF
11231 #define SIZE_MAX $result
11240 for ac_header in stdint.h
11242 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11249 ac_res=`eval echo '${'$as_ac_Header'}'`
11250 { echo "$as_me:$LINENO: result: $ac_res" >&5
11251 echo "${ECHO_T}$ac_res" >&6; }
11253 # Is the header compilable?
11254 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11256 cat >conftest.$ac_ext <<_ACEOF
11259 cat confdefs.h >>conftest.$ac_ext
11260 cat >>conftest.$ac_ext <<_ACEOF
11261 /* end confdefs.h. */
11262 $ac_includes_default
11263 #include <$ac_header>
11265 rm -f conftest.$ac_objext
11266 if { (ac_try="$ac_compile"
11267 case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_compile") 2>conftest.er1
11274 grep -v '^ *+' conftest.er1 >conftest.err
11276 cat conftest.err >&5
11277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11278 (exit $ac_status); } && {
11279 test -z "$ac_c_werror_flag" ||
11280 test ! -s conftest.err
11281 } && test -s conftest.$ac_objext; then
11282 ac_header_compiler=yes
11284 echo "$as_me: failed program was:" >&5
11285 sed 's/^/| /' conftest.$ac_ext >&5
11287 ac_header_compiler=no
11290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11292 echo "${ECHO_T}$ac_header_compiler" >&6; }
11294 # Is the header present?
11295 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11297 cat >conftest.$ac_ext <<_ACEOF
11300 cat confdefs.h >>conftest.$ac_ext
11301 cat >>conftest.$ac_ext <<_ACEOF
11302 /* end confdefs.h. */
11303 #include <$ac_header>
11305 if { (ac_try="$ac_cpp conftest.$ac_ext"
11306 case "(($ac_try" in
11307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11308 *) ac_try_echo=$ac_try;;
11310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11313 grep -v '^ *+' conftest.er1 >conftest.err
11315 cat conftest.err >&5
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); } >/dev/null && {
11318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11319 test ! -s conftest.err
11321 ac_header_preproc=yes
11323 echo "$as_me: failed program was:" >&5
11324 sed 's/^/| /' conftest.$ac_ext >&5
11326 ac_header_preproc=no
11329 rm -f conftest.err conftest.$ac_ext
11330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11331 echo "${ECHO_T}$ac_header_preproc" >&6; }
11333 # So? What about this header?
11334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11340 ac_header_preproc=yes
11343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11361 echo $ECHO_N "(cached) $ECHO_C" >&6
11363 eval "$as_ac_Header=\$ac_header_preproc"
11365 ac_res=`eval echo '${'$as_ac_Header'}'`
11366 { echo "$as_me:$LINENO: result: $ac_res" >&5
11367 echo "${ECHO_T}$ac_res" >&6; }
11370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11371 cat >>confdefs.h <<_ACEOF
11372 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11386 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
11387 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
11388 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
11389 echo $ECHO_N "(cached) $ECHO_C" >&6
11391 cat >conftest.$ac_ext <<_ACEOF
11394 cat confdefs.h >>conftest.$ac_ext
11395 cat >>conftest.$ac_ext <<_ACEOF
11396 /* end confdefs.h. */
11397 $ac_includes_default
11398 typedef ptrdiff_t ac__type_new_;
11402 if ((ac__type_new_ *) 0)
11404 if (sizeof (ac__type_new_))
11410 rm -f conftest.$ac_objext
11411 if { (ac_try="$ac_compile"
11412 case "(($ac_try" in
11413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11414 *) ac_try_echo=$ac_try;;
11416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11417 (eval "$ac_compile") 2>conftest.er1
11419 grep -v '^ *+' conftest.er1 >conftest.err
11421 cat conftest.err >&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } && {
11424 test -z "$ac_c_werror_flag" ||
11425 test ! -s conftest.err
11426 } && test -s conftest.$ac_objext; then
11427 ac_cv_type_ptrdiff_t=yes
11429 echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11432 ac_cv_type_ptrdiff_t=no
11435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11437 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
11438 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
11439 if test $ac_cv_type_ptrdiff_t = yes; then
11443 cat >>confdefs.h <<\_ACEOF
11444 #define ptrdiff_t long
11460 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
11461 stdlib.h string.h unistd.h sys/param.h
11463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11470 ac_res=`eval echo '${'$as_ac_Header'}'`
11471 { echo "$as_me:$LINENO: result: $ac_res" >&5
11472 echo "${ECHO_T}$ac_res" >&6; }
11474 # Is the header compilable?
11475 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11476 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11477 cat >conftest.$ac_ext <<_ACEOF
11480 cat confdefs.h >>conftest.$ac_ext
11481 cat >>conftest.$ac_ext <<_ACEOF
11482 /* end confdefs.h. */
11483 $ac_includes_default
11484 #include <$ac_header>
11486 rm -f conftest.$ac_objext
11487 if { (ac_try="$ac_compile"
11488 case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_compile") 2>conftest.er1
11495 grep -v '^ *+' conftest.er1 >conftest.err
11497 cat conftest.err >&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } && {
11500 test -z "$ac_c_werror_flag" ||
11501 test ! -s conftest.err
11502 } && test -s conftest.$ac_objext; then
11503 ac_header_compiler=yes
11505 echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.$ac_ext >&5
11508 ac_header_compiler=no
11511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11513 echo "${ECHO_T}$ac_header_compiler" >&6; }
11515 # Is the header present?
11516 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11518 cat >conftest.$ac_ext <<_ACEOF
11521 cat confdefs.h >>conftest.$ac_ext
11522 cat >>conftest.$ac_ext <<_ACEOF
11523 /* end confdefs.h. */
11524 #include <$ac_header>
11526 if { (ac_try="$ac_cpp conftest.$ac_ext"
11527 case "(($ac_try" in
11528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11529 *) ac_try_echo=$ac_try;;
11531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11534 grep -v '^ *+' conftest.er1 >conftest.err
11536 cat conftest.err >&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } >/dev/null && {
11539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11540 test ! -s conftest.err
11542 ac_header_preproc=yes
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11547 ac_header_preproc=no
11550 rm -f conftest.err conftest.$ac_ext
11551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11552 echo "${ECHO_T}$ac_header_preproc" >&6; }
11554 # So? What about this header?
11555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11561 ac_header_preproc=yes
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11579 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11580 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11581 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11582 echo $ECHO_N "(cached) $ECHO_C" >&6
11584 eval "$as_ac_Header=\$ac_header_preproc"
11586 ac_res=`eval echo '${'$as_ac_Header'}'`
11587 { echo "$as_me:$LINENO: result: $ac_res" >&5
11588 echo "${ECHO_T}$ac_res" >&6; }
11591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11592 cat >>confdefs.h <<_ACEOF
11593 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11623 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
11624 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
11625 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
11628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11629 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 cat >conftest.$ac_ext <<_ACEOF
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h. */
11640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11642 #define $ac_func innocuous_$ac_func
11644 /* System header to define __stub macros and hopefully few prototypes,
11645 which can conflict with char $ac_func (); below.
11646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11647 <limits.h> exists even on freestanding compilers. */
11650 # include <limits.h>
11652 # include <assert.h>
11657 /* Override any GCC internal prototype to avoid an error.
11658 Use char because int might match the return type of a GCC
11659 builtin and then its argument prototype would still apply. */
11664 /* The GNU C library defines this for functions which it implements
11665 to always fail with ENOSYS. Some functions are actually named
11666 something starting with __ and the normal name is an alias. */
11667 #if defined __stub_$ac_func || defined __stub___$ac_func
11674 return $ac_func ();
11679 rm -f conftest.$ac_objext conftest$ac_exeext
11680 if { (ac_try="$ac_link"
11681 case "(($ac_try" in
11682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11683 *) ac_try_echo=$ac_try;;
11685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11686 (eval "$ac_link") 2>conftest.er1
11688 grep -v '^ *+' conftest.er1 >conftest.err
11690 cat conftest.err >&5
11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692 (exit $ac_status); } && {
11693 test -z "$ac_c_werror_flag" ||
11694 test ! -s conftest.err
11695 } && test -s conftest$ac_exeext &&
11696 $as_test_x conftest$ac_exeext; then
11697 eval "$as_ac_var=yes"
11699 echo "$as_me: failed program was:" >&5
11700 sed 's/^/| /' conftest.$ac_ext >&5
11702 eval "$as_ac_var=no"
11705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11706 conftest$ac_exeext conftest.$ac_ext
11708 ac_res=`eval echo '${'$as_ac_var'}'`
11709 { echo "$as_me:$LINENO: result: $ac_res" >&5
11710 echo "${ECHO_T}$ac_res" >&6; }
11711 if test `eval echo '${'$as_ac_var'}'` = yes; then
11712 cat >>confdefs.h <<_ACEOF
11713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11721 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
11722 echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
11723 if test "${ac_cv_have_decl__snprintf+set}" = set; then
11724 echo $ECHO_N "(cached) $ECHO_C" >&6
11726 cat >conftest.$ac_ext <<_ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h. */
11738 char *p = (char *) _snprintf;
11745 rm -f conftest.$ac_objext
11746 if { (ac_try="$ac_compile"
11747 case "(($ac_try" in
11748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752 (eval "$ac_compile") 2>conftest.er1
11754 grep -v '^ *+' conftest.er1 >conftest.err
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } && {
11759 test -z "$ac_c_werror_flag" ||
11760 test ! -s conftest.err
11761 } && test -s conftest.$ac_objext; then
11762 ac_cv_have_decl__snprintf=yes
11764 echo "$as_me: failed program was:" >&5
11765 sed 's/^/| /' conftest.$ac_ext >&5
11767 ac_cv_have_decl__snprintf=no
11770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11772 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
11773 echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
11774 if test $ac_cv_have_decl__snprintf = yes; then
11780 cat >>confdefs.h <<_ACEOF
11781 #define HAVE_DECL__SNPRINTF $gt_value
11786 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
11787 echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
11788 if test "${ac_cv_have_decl__snwprintf+set}" = set; then
11789 echo $ECHO_N "(cached) $ECHO_C" >&6
11791 cat >conftest.$ac_ext <<_ACEOF
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11803 char *p = (char *) _snwprintf;
11810 rm -f conftest.$ac_objext
11811 if { (ac_try="$ac_compile"
11812 case "(($ac_try" in
11813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814 *) ac_try_echo=$ac_try;;
11816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817 (eval "$ac_compile") 2>conftest.er1
11819 grep -v '^ *+' conftest.er1 >conftest.err
11821 cat conftest.err >&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } && {
11824 test -z "$ac_c_werror_flag" ||
11825 test ! -s conftest.err
11826 } && test -s conftest.$ac_objext; then
11827 ac_cv_have_decl__snwprintf=yes
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11832 ac_cv_have_decl__snwprintf=no
11835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11837 { echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
11838 echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
11839 if test $ac_cv_have_decl__snwprintf = yes; then
11845 cat >>confdefs.h <<_ACEOF
11846 #define HAVE_DECL__SNWPRINTF $gt_value
11852 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
11853 echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
11854 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11857 cat >conftest.$ac_ext <<_ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11868 #ifndef feof_unlocked
11869 char *p = (char *) feof_unlocked;
11876 rm -f conftest.$ac_objext
11877 if { (ac_try="$ac_compile"
11878 case "(($ac_try" in
11879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11880 *) ac_try_echo=$ac_try;;
11882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11883 (eval "$ac_compile") 2>conftest.er1
11885 grep -v '^ *+' conftest.er1 >conftest.err
11887 cat conftest.err >&5
11888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11889 (exit $ac_status); } && {
11890 test -z "$ac_c_werror_flag" ||
11891 test ! -s conftest.err
11892 } && test -s conftest.$ac_objext; then
11893 ac_cv_have_decl_feof_unlocked=yes
11895 echo "$as_me: failed program was:" >&5
11896 sed 's/^/| /' conftest.$ac_ext >&5
11898 ac_cv_have_decl_feof_unlocked=no
11901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11903 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
11904 echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
11905 if test $ac_cv_have_decl_feof_unlocked = yes; then
11911 cat >>confdefs.h <<_ACEOF
11912 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
11917 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
11918 echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
11919 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
11920 echo $ECHO_N "(cached) $ECHO_C" >&6
11922 cat >conftest.$ac_ext <<_ACEOF
11925 cat confdefs.h >>conftest.$ac_ext
11926 cat >>conftest.$ac_ext <<_ACEOF
11927 /* end confdefs.h. */
11933 #ifndef fgets_unlocked
11934 char *p = (char *) fgets_unlocked;
11941 rm -f conftest.$ac_objext
11942 if { (ac_try="$ac_compile"
11943 case "(($ac_try" in
11944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11945 *) ac_try_echo=$ac_try;;
11947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11948 (eval "$ac_compile") 2>conftest.er1
11950 grep -v '^ *+' conftest.er1 >conftest.err
11952 cat conftest.err >&5
11953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11954 (exit $ac_status); } && {
11955 test -z "$ac_c_werror_flag" ||
11956 test ! -s conftest.err
11957 } && test -s conftest.$ac_objext; then
11958 ac_cv_have_decl_fgets_unlocked=yes
11960 echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.$ac_ext >&5
11963 ac_cv_have_decl_fgets_unlocked=no
11966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11968 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
11969 echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
11970 if test $ac_cv_have_decl_fgets_unlocked = yes; then
11976 cat >>confdefs.h <<_ACEOF
11977 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
11982 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
11983 echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
11984 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
11985 echo $ECHO_N "(cached) $ECHO_C" >&6
11987 cat >conftest.$ac_ext <<_ACEOF
11990 cat confdefs.h >>conftest.$ac_ext
11991 cat >>conftest.$ac_ext <<_ACEOF
11992 /* end confdefs.h. */
11998 #ifndef getc_unlocked
11999 char *p = (char *) getc_unlocked;
12006 rm -f conftest.$ac_objext
12007 if { (ac_try="$ac_compile"
12008 case "(($ac_try" in
12009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12010 *) ac_try_echo=$ac_try;;
12012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12013 (eval "$ac_compile") 2>conftest.er1
12015 grep -v '^ *+' conftest.er1 >conftest.err
12017 cat conftest.err >&5
12018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12019 (exit $ac_status); } && {
12020 test -z "$ac_c_werror_flag" ||
12021 test ! -s conftest.err
12022 } && test -s conftest.$ac_objext; then
12023 ac_cv_have_decl_getc_unlocked=yes
12025 echo "$as_me: failed program was:" >&5
12026 sed 's/^/| /' conftest.$ac_ext >&5
12028 ac_cv_have_decl_getc_unlocked=no
12031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12033 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
12034 echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
12035 if test $ac_cv_have_decl_getc_unlocked = yes; then
12041 cat >>confdefs.h <<_ACEOF
12042 #define HAVE_DECL_GETC_UNLOCKED $gt_value
12047 case $gt_cv_func_printf_posix in
12048 *yes) HAVE_POSIX_PRINTF=1 ;;
12049 *) HAVE_POSIX_PRINTF=0 ;;
12052 if test "$ac_cv_func_asprintf" = yes; then
12058 if test "$ac_cv_func_snprintf" = yes; then
12064 if test "$ac_cv_func_wprintf" = yes; then
12076 am_save_CPPFLAGS="$CPPFLAGS"
12078 for element in $INCICONV; do
12080 for x in $CPPFLAGS; do
12082 acl_save_prefix="$prefix"
12083 prefix="$acl_final_prefix"
12084 acl_save_exec_prefix="$exec_prefix"
12085 exec_prefix="$acl_final_exec_prefix"
12087 exec_prefix="$acl_save_exec_prefix"
12088 prefix="$acl_save_prefix"
12090 if test "X$x" = "X$element"; then
12095 if test -z "$haveit"; then
12096 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12101 { echo "$as_me:$LINENO: checking for iconv" >&5
12102 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
12103 if test "${am_cv_func_iconv+set}" = set; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 am_cv_func_iconv="no, consider installing GNU libiconv"
12109 cat >conftest.$ac_ext <<_ACEOF
12112 cat confdefs.h >>conftest.$ac_ext
12113 cat >>conftest.$ac_ext <<_ACEOF
12114 /* end confdefs.h. */
12115 #include <stdlib.h>
12120 iconv_t cd = iconv_open("","");
12121 iconv(cd,NULL,NULL,NULL,NULL);
12127 rm -f conftest.$ac_objext conftest$ac_exeext
12128 if { (ac_try="$ac_link"
12129 case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_link") 2>conftest.er1
12136 grep -v '^ *+' conftest.er1 >conftest.err
12138 cat conftest.err >&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); } && {
12141 test -z "$ac_c_werror_flag" ||
12142 test ! -s conftest.err
12143 } && test -s conftest$ac_exeext &&
12144 $as_test_x conftest$ac_exeext; then
12145 am_cv_func_iconv=yes
12147 echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12154 conftest$ac_exeext conftest.$ac_ext
12155 if test "$am_cv_func_iconv" != yes; then
12156 am_save_LIBS="$LIBS"
12157 LIBS="$LIBS $LIBICONV"
12158 cat >conftest.$ac_ext <<_ACEOF
12161 cat confdefs.h >>conftest.$ac_ext
12162 cat >>conftest.$ac_ext <<_ACEOF
12163 /* end confdefs.h. */
12164 #include <stdlib.h>
12169 iconv_t cd = iconv_open("","");
12170 iconv(cd,NULL,NULL,NULL,NULL);
12176 rm -f conftest.$ac_objext conftest$ac_exeext
12177 if { (ac_try="$ac_link"
12178 case "(($ac_try" in
12179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12180 *) ac_try_echo=$ac_try;;
12182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12183 (eval "$ac_link") 2>conftest.er1
12185 grep -v '^ *+' conftest.er1 >conftest.err
12187 cat conftest.err >&5
12188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12189 (exit $ac_status); } && {
12190 test -z "$ac_c_werror_flag" ||
12191 test ! -s conftest.err
12192 } && test -s conftest$ac_exeext &&
12193 $as_test_x conftest$ac_exeext; then
12194 am_cv_lib_iconv=yes
12195 am_cv_func_iconv=yes
12197 echo "$as_me: failed program was:" >&5
12198 sed 's/^/| /' conftest.$ac_ext >&5
12203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12204 conftest$ac_exeext conftest.$ac_ext
12205 LIBS="$am_save_LIBS"
12209 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
12210 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
12211 if test "$am_cv_func_iconv" = yes; then
12213 cat >>confdefs.h <<\_ACEOF
12214 #define HAVE_ICONV 1
12218 if test "$am_cv_lib_iconv" = yes; then
12219 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
12220 echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
12221 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
12222 echo "${ECHO_T}$LIBICONV" >&6; }
12224 CPPFLAGS="$am_save_CPPFLAGS"
12231 if test "$am_cv_func_iconv" = yes; then
12232 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
12233 echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
12234 if test "${am_cv_proto_iconv+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12238 cat >conftest.$ac_ext <<_ACEOF
12241 cat confdefs.h >>conftest.$ac_ext
12242 cat >>conftest.$ac_ext <<_ACEOF
12243 /* end confdefs.h. */
12245 #include <stdlib.h>
12251 #if defined(__STDC__) || defined(__cplusplus)
12252 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
12265 rm -f conftest.$ac_objext
12266 if { (ac_try="$ac_compile"
12267 case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_compile") 2>conftest.er1
12274 grep -v '^ *+' conftest.er1 >conftest.err
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } && {
12279 test -z "$ac_c_werror_flag" ||
12280 test ! -s conftest.err
12281 } && test -s conftest.$ac_objext; then
12282 am_cv_proto_iconv_arg1=""
12284 echo "$as_me: failed program was:" >&5
12285 sed 's/^/| /' conftest.$ac_ext >&5
12287 am_cv_proto_iconv_arg1="const"
12290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12291 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);"
12294 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
12295 { echo "$as_me:$LINENO: result: ${ac_t:-
12296 }$am_cv_proto_iconv" >&5
12297 echo "${ECHO_T}${ac_t:-
12298 }$am_cv_proto_iconv" >&6; }
12300 cat >>confdefs.h <<_ACEOF
12301 #define ICONV_CONST $am_cv_proto_iconv_arg1
12307 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12308 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
12309 if test "${am_cv_langinfo_codeset+set}" = set; then
12310 echo $ECHO_N "(cached) $ECHO_C" >&6
12312 cat >conftest.$ac_ext <<_ACEOF
12315 cat confdefs.h >>conftest.$ac_ext
12316 cat >>conftest.$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12318 #include <langinfo.h>
12322 char* cs = nl_langinfo(CODESET);
12327 rm -f conftest.$ac_objext conftest$ac_exeext
12328 if { (ac_try="$ac_link"
12329 case "(($ac_try" in
12330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331 *) ac_try_echo=$ac_try;;
12333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334 (eval "$ac_link") 2>conftest.er1
12336 grep -v '^ *+' conftest.er1 >conftest.err
12338 cat conftest.err >&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } && {
12341 test -z "$ac_c_werror_flag" ||
12342 test ! -s conftest.err
12343 } && test -s conftest$ac_exeext &&
12344 $as_test_x conftest$ac_exeext; then
12345 am_cv_langinfo_codeset=yes
12347 echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.$ac_ext >&5
12350 am_cv_langinfo_codeset=no
12353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12354 conftest$ac_exeext conftest.$ac_ext
12357 { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
12358 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
12359 if test $am_cv_langinfo_codeset = yes; then
12361 cat >>confdefs.h <<\_ACEOF
12362 #define HAVE_LANGINFO_CODESET 1
12367 if test $ac_cv_header_locale_h = yes; then
12369 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
12370 echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
12371 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 cat >conftest.$ac_ext <<_ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h. */
12380 #include <locale.h>
12389 rm -f conftest.$ac_objext conftest$ac_exeext
12390 if { (ac_try="$ac_link"
12391 case "(($ac_try" in
12392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12393 *) ac_try_echo=$ac_try;;
12395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12396 (eval "$ac_link") 2>conftest.er1
12398 grep -v '^ *+' conftest.er1 >conftest.err
12400 cat conftest.err >&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); } && {
12403 test -z "$ac_c_werror_flag" ||
12404 test ! -s conftest.err
12405 } && test -s conftest$ac_exeext &&
12406 $as_test_x conftest$ac_exeext; then
12407 gt_cv_val_LC_MESSAGES=yes
12409 echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12412 gt_cv_val_LC_MESSAGES=no
12415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12416 conftest$ac_exeext conftest.$ac_ext
12418 { echo "$as_me:$LINENO: result: $gt_cv_val_LC_MESSAGES" >&5
12419 echo "${ECHO_T}$gt_cv_val_LC_MESSAGES" >&6; }
12420 if test $gt_cv_val_LC_MESSAGES = yes; then
12422 cat >>confdefs.h <<\_ACEOF
12423 #define HAVE_LC_MESSAGES 1
12430 if test -n "$INTL_MACOSX_LIBS"; then
12431 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12434 for ac_prog in bison
12436 # Extract the first word of "$ac_prog", so it can be a program name with args.
12437 set dummy $ac_prog; ac_word=$2
12438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12440 if test "${ac_cv_prog_INTLBISON+set}" = set; then
12441 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 if test -n "$INTLBISON"; then
12444 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
12446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12447 for as_dir in $PATH
12450 test -z "$as_dir" && as_dir=.
12451 for ac_exec_ext in '' $ac_executable_extensions; do
12452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12453 ac_cv_prog_INTLBISON="$ac_prog"
12454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12463 INTLBISON=$ac_cv_prog_INTLBISON
12464 if test -n "$INTLBISON"; then
12465 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
12466 echo "${ECHO_T}$INTLBISON" >&6; }
12468 { echo "$as_me:$LINENO: result: no" >&5
12469 echo "${ECHO_T}no" >&6; }
12473 test -n "$INTLBISON" && break
12476 if test -z "$INTLBISON"; then
12479 { echo "$as_me:$LINENO: checking version of bison" >&5
12480 echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
12481 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
12482 case $ac_prog_version in
12483 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
12484 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
12485 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
12486 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
12488 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
12489 echo "${ECHO_T}$ac_prog_version" >&6; }
12491 if test $ac_verc_fail = yes; then
12510 { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
12511 echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; }
12512 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
12513 echo $ECHO_N "(cached) $ECHO_C" >&6
12515 gt_save_CPPFLAGS="$CPPFLAGS"
12516 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12517 gt_save_LIBS="$LIBS"
12518 LIBS="$LIBS -framework CoreFoundation"
12519 cat >conftest.$ac_ext <<_ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h. */
12525 #include <CFPreferences.h>
12529 CFPreferencesCopyAppValue(NULL, NULL)
12534 rm -f conftest.$ac_objext conftest$ac_exeext
12535 if { (ac_try="$ac_link"
12536 case "(($ac_try" in
12537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538 *) ac_try_echo=$ac_try;;
12540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541 (eval "$ac_link") 2>conftest.er1
12543 grep -v '^ *+' conftest.er1 >conftest.err
12545 cat conftest.err >&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } && {
12548 test -z "$ac_c_werror_flag" ||
12549 test ! -s conftest.err
12550 } && test -s conftest$ac_exeext &&
12551 $as_test_x conftest$ac_exeext; then
12552 gt_cv_func_CFPreferencesCopyAppValue=yes
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12557 gt_cv_func_CFPreferencesCopyAppValue=no
12560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12561 conftest$ac_exeext conftest.$ac_ext
12562 CPPFLAGS="$gt_save_CPPFLAGS"
12563 LIBS="$gt_save_LIBS"
12565 { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
12566 echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
12567 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
12569 cat >>confdefs.h <<\_ACEOF
12570 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
12574 { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
12575 echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; }
12576 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
12577 echo $ECHO_N "(cached) $ECHO_C" >&6
12579 gt_save_CPPFLAGS="$CPPFLAGS"
12580 CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
12581 gt_save_LIBS="$LIBS"
12582 LIBS="$LIBS -framework CoreFoundation"
12583 cat >conftest.$ac_ext <<_ACEOF
12586 cat confdefs.h >>conftest.$ac_ext
12587 cat >>conftest.$ac_ext <<_ACEOF
12588 /* end confdefs.h. */
12589 #include <CFLocale.h>
12593 CFLocaleCopyCurrent();
12598 rm -f conftest.$ac_objext conftest$ac_exeext
12599 if { (ac_try="$ac_link"
12600 case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_link") 2>conftest.er1
12607 grep -v '^ *+' conftest.er1 >conftest.err
12609 cat conftest.err >&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } && {
12612 test -z "$ac_c_werror_flag" ||
12613 test ! -s conftest.err
12614 } && test -s conftest$ac_exeext &&
12615 $as_test_x conftest$ac_exeext; then
12616 gt_cv_func_CFLocaleCopyCurrent=yes
12618 echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12621 gt_cv_func_CFLocaleCopyCurrent=no
12624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12625 conftest$ac_exeext conftest.$ac_ext
12626 CPPFLAGS="$gt_save_CPPFLAGS"
12627 LIBS="$gt_save_LIBS"
12629 { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
12630 echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; }
12631 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12633 cat >>confdefs.h <<\_ACEOF
12634 #define HAVE_CFLOCALECOPYCURRENT 1
12639 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
12640 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
12646 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
12647 echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
12648 # Check whether --enable-nls was given.
12649 if test "${enable_nls+set}" = set; then
12650 enableval=$enable_nls; USE_NLS=$enableval
12655 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
12656 echo "${ECHO_T}$USE_NLS" >&6; }
12661 BUILD_INCLUDED_LIBINTL=no
12662 USE_INCLUDED_LIBINTL=no
12668 if test "$USE_NLS" = "yes"; then
12669 gt_use_preinstalled_gnugettext=no
12671 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
12672 echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
12674 # Check whether --with-included-gettext was given.
12675 if test "${with_included_gettext+set}" = set; then
12676 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
12678 nls_cv_force_use_gnu_gettext=no
12681 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
12682 echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
12684 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
12685 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
12692 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
12693 echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
12694 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
12697 cat >conftest.$ac_ext <<_ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h. */
12703 #include <libintl.h>
12704 extern int _nl_msg_cat_cntr;
12705 extern int *_nl_domain_bindings;
12709 bindtextdomain ("", "");
12710 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
12715 rm -f conftest.$ac_objext conftest$ac_exeext
12716 if { (ac_try="$ac_link"
12717 case "(($ac_try" in
12718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12719 *) ac_try_echo=$ac_try;;
12721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12722 (eval "$ac_link") 2>conftest.er1
12724 grep -v '^ *+' conftest.er1 >conftest.err
12726 cat conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 (exit $ac_status); } && {
12729 test -z "$ac_c_werror_flag" ||
12730 test ! -s conftest.err
12731 } && test -s conftest$ac_exeext &&
12732 $as_test_x conftest$ac_exeext; then
12733 gt_cv_func_gnugettext1_libc=yes
12735 echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12738 gt_cv_func_gnugettext1_libc=no
12741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12742 conftest$ac_exeext conftest.$ac_ext
12744 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
12745 echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
12747 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
12753 acl_save_prefix="$prefix"
12754 prefix="$acl_final_prefix"
12755 acl_save_exec_prefix="$exec_prefix"
12756 exec_prefix="$acl_final_exec_prefix"
12758 eval additional_includedir=\"$includedir\"
12759 eval additional_libdir=\"$libdir\"
12761 exec_prefix="$acl_save_exec_prefix"
12762 prefix="$acl_save_prefix"
12765 # Check whether --with-libintl-prefix was given.
12766 if test "${with_libintl_prefix+set}" = set; then
12767 withval=$with_libintl_prefix;
12768 if test "X$withval" = "Xno"; then
12771 if test "X$withval" = "X"; then
12773 acl_save_prefix="$prefix"
12774 prefix="$acl_final_prefix"
12775 acl_save_exec_prefix="$exec_prefix"
12776 exec_prefix="$acl_final_exec_prefix"
12778 eval additional_includedir=\"$includedir\"
12779 eval additional_libdir=\"$libdir\"
12781 exec_prefix="$acl_save_exec_prefix"
12782 prefix="$acl_save_prefix"
12785 additional_includedir="$withval/include"
12786 additional_libdir="$withval/lib"
12797 names_already_handled=
12798 names_next_round='intl '
12799 while test -n "$names_next_round"; do
12800 names_this_round="$names_next_round"
12802 for name in $names_this_round; do
12804 for n in $names_already_handled; do
12805 if test "$n" = "$name"; then
12806 already_handled=yes
12810 if test -z "$already_handled"; then
12811 names_already_handled="$names_already_handled $name"
12812 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12813 eval value=\"\$HAVE_LIB$uppername\"
12814 if test -n "$value"; then
12815 if test "$value" = yes; then
12816 eval value=\"\$LIB$uppername\"
12817 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
12818 eval value=\"\$LTLIB$uppername\"
12819 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
12828 if test $use_additional = yes; then
12829 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
12830 found_dir="$additional_libdir"
12831 found_so="$additional_libdir/lib$name.$shlibext"
12832 if test -f "$additional_libdir/lib$name.la"; then
12833 found_la="$additional_libdir/lib$name.la"
12836 if test -f "$additional_libdir/lib$name.$libext"; then
12837 found_dir="$additional_libdir"
12838 found_a="$additional_libdir/lib$name.$libext"
12839 if test -f "$additional_libdir/lib$name.la"; then
12840 found_la="$additional_libdir/lib$name.la"
12845 if test "X$found_dir" = "X"; then
12846 for x in $LDFLAGS $LTLIBINTL; do
12848 acl_save_prefix="$prefix"
12849 prefix="$acl_final_prefix"
12850 acl_save_exec_prefix="$exec_prefix"
12851 exec_prefix="$acl_final_exec_prefix"
12853 exec_prefix="$acl_save_exec_prefix"
12854 prefix="$acl_save_prefix"
12858 dir=`echo "X$x" | sed -e 's/^X-L//'`
12859 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
12861 found_so="$dir/lib$name.$shlibext"
12862 if test -f "$dir/lib$name.la"; then
12863 found_la="$dir/lib$name.la"
12866 if test -f "$dir/lib$name.$libext"; then
12868 found_a="$dir/lib$name.$libext"
12869 if test -f "$dir/lib$name.la"; then
12870 found_la="$dir/lib$name.la"
12876 if test "X$found_dir" != "X"; then
12881 if test "X$found_dir" != "X"; then
12882 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
12883 if test "X$found_so" != "X"; then
12884 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
12885 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12888 for x in $ltrpathdirs; do
12889 if test "X$x" = "X$found_dir"; then
12894 if test -z "$haveit"; then
12895 ltrpathdirs="$ltrpathdirs $found_dir"
12897 if test "$hardcode_direct" = yes; then
12898 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12900 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
12901 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12903 for x in $rpathdirs; do
12904 if test "X$x" = "X$found_dir"; then
12909 if test -z "$haveit"; then
12910 rpathdirs="$rpathdirs $found_dir"
12914 for x in $LDFLAGS $LIBINTL; do
12916 acl_save_prefix="$prefix"
12917 prefix="$acl_final_prefix"
12918 acl_save_exec_prefix="$exec_prefix"
12919 exec_prefix="$acl_final_exec_prefix"
12921 exec_prefix="$acl_save_exec_prefix"
12922 prefix="$acl_save_prefix"
12924 if test "X$x" = "X-L$found_dir"; then
12929 if test -z "$haveit"; then
12930 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12932 if test "$hardcode_minus_L" != no; then
12933 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12935 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12941 if test "X$found_a" != "X"; then
12942 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12944 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12947 additional_includedir=
12948 case "$found_dir" in
12950 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
12951 additional_includedir="$basedir/include"
12954 if test "X$additional_includedir" != "X"; then
12955 if test "X$additional_includedir" != "X/usr/include"; then
12957 if test "X$additional_includedir" = "X/usr/local/include"; then
12958 if test -n "$GCC"; then
12960 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12964 if test -z "$haveit"; then
12965 for x in $CPPFLAGS $INCINTL; do
12967 acl_save_prefix="$prefix"
12968 prefix="$acl_final_prefix"
12969 acl_save_exec_prefix="$exec_prefix"
12970 exec_prefix="$acl_final_exec_prefix"
12972 exec_prefix="$acl_save_exec_prefix"
12973 prefix="$acl_save_prefix"
12975 if test "X$x" = "X-I$additional_includedir"; then
12980 if test -z "$haveit"; then
12981 if test -d "$additional_includedir"; then
12982 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12988 if test -n "$found_la"; then
12989 save_libdir="$libdir"
12990 case "$found_la" in
12991 */* | *\\*) . "$found_la" ;;
12992 *) . "./$found_la" ;;
12994 libdir="$save_libdir"
12995 for dep in $dependency_libs; do
12998 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12999 if test "X$additional_libdir" != "X/usr/lib"; then
13001 if test "X$additional_libdir" = "X/usr/local/lib"; then
13002 if test -n "$GCC"; then
13004 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13008 if test -z "$haveit"; then
13010 for x in $LDFLAGS $LIBINTL; do
13012 acl_save_prefix="$prefix"
13013 prefix="$acl_final_prefix"
13014 acl_save_exec_prefix="$exec_prefix"
13015 exec_prefix="$acl_final_exec_prefix"
13017 exec_prefix="$acl_save_exec_prefix"
13018 prefix="$acl_save_prefix"
13020 if test "X$x" = "X-L$additional_libdir"; then
13025 if test -z "$haveit"; then
13026 if test -d "$additional_libdir"; then
13027 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13031 for x in $LDFLAGS $LTLIBINTL; do
13033 acl_save_prefix="$prefix"
13034 prefix="$acl_final_prefix"
13035 acl_save_exec_prefix="$exec_prefix"
13036 exec_prefix="$acl_final_exec_prefix"
13038 exec_prefix="$acl_save_exec_prefix"
13039 prefix="$acl_save_prefix"
13041 if test "X$x" = "X-L$additional_libdir"; then
13046 if test -z "$haveit"; then
13047 if test -d "$additional_libdir"; then
13048 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13055 dir=`echo "X$dep" | sed -e 's/^X-R//'`
13056 if test "$enable_rpath" != no; then
13058 for x in $rpathdirs; do
13059 if test "X$x" = "X$dir"; then
13064 if test -z "$haveit"; then
13065 rpathdirs="$rpathdirs $dir"
13068 for x in $ltrpathdirs; do
13069 if test "X$x" = "X$dir"; then
13074 if test -z "$haveit"; then
13075 ltrpathdirs="$ltrpathdirs $dir"
13080 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13083 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13086 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
13087 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
13093 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13094 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
13100 if test "X$rpathdirs" != "X"; then
13101 if test -n "$hardcode_libdir_separator"; then
13103 for found_dir in $rpathdirs; do
13104 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
13106 acl_save_libdir="$libdir"
13108 eval flag=\"$hardcode_libdir_flag_spec\"
13109 libdir="$acl_save_libdir"
13110 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13112 for found_dir in $rpathdirs; do
13113 acl_save_libdir="$libdir"
13114 libdir="$found_dir"
13115 eval flag=\"$hardcode_libdir_flag_spec\"
13116 libdir="$acl_save_libdir"
13117 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
13121 if test "X$ltrpathdirs" != "X"; then
13122 for found_dir in $ltrpathdirs; do
13123 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
13127 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
13128 echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
13129 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
13132 gt_save_CPPFLAGS="$CPPFLAGS"
13133 CPPFLAGS="$CPPFLAGS $INCINTL"
13134 gt_save_LIBS="$LIBS"
13135 LIBS="$LIBS $LIBINTL"
13136 cat >conftest.$ac_ext <<_ACEOF
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h. */
13142 #include <libintl.h>
13143 extern int _nl_msg_cat_cntr;
13148 const char *_nl_expand_alias (const char *);
13152 bindtextdomain ("", "");
13153 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13158 rm -f conftest.$ac_objext conftest$ac_exeext
13159 if { (ac_try="$ac_link"
13160 case "(($ac_try" in
13161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13162 *) ac_try_echo=$ac_try;;
13164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13165 (eval "$ac_link") 2>conftest.er1
13167 grep -v '^ *+' conftest.er1 >conftest.err
13169 cat conftest.err >&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); } && {
13172 test -z "$ac_c_werror_flag" ||
13173 test ! -s conftest.err
13174 } && test -s conftest$ac_exeext &&
13175 $as_test_x conftest$ac_exeext; then
13176 gt_cv_func_gnugettext1_libintl=yes
13178 echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13181 gt_cv_func_gnugettext1_libintl=no
13184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13185 conftest$ac_exeext conftest.$ac_ext
13186 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
13187 LIBS="$LIBS $LIBICONV"
13188 cat >conftest.$ac_ext <<_ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h. */
13194 #include <libintl.h>
13195 extern int _nl_msg_cat_cntr;
13200 const char *_nl_expand_alias (const char *);
13204 bindtextdomain ("", "");
13205 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
13210 rm -f conftest.$ac_objext conftest$ac_exeext
13211 if { (ac_try="$ac_link"
13212 case "(($ac_try" in
13213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13214 *) ac_try_echo=$ac_try;;
13216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13217 (eval "$ac_link") 2>conftest.er1
13219 grep -v '^ *+' conftest.er1 >conftest.err
13221 cat conftest.err >&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } && {
13224 test -z "$ac_c_werror_flag" ||
13225 test ! -s conftest.err
13226 } && test -s conftest$ac_exeext &&
13227 $as_test_x conftest$ac_exeext; then
13228 LIBINTL="$LIBINTL $LIBICONV"
13229 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
13230 gt_cv_func_gnugettext1_libintl=yes
13233 echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13240 conftest$ac_exeext conftest.$ac_ext
13242 CPPFLAGS="$gt_save_CPPFLAGS"
13243 LIBS="$gt_save_LIBS"
13245 { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
13246 echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
13249 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
13250 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
13251 && test "$PACKAGE" != gettext-runtime \
13252 && test "$PACKAGE" != gettext-tools; }; then
13253 gt_use_preinstalled_gnugettext=yes
13261 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
13262 nls_cv_use_gnu_gettext=yes
13266 if test "$nls_cv_use_gnu_gettext" = "yes"; then
13267 BUILD_INCLUDED_LIBINTL=yes
13268 USE_INCLUDED_LIBINTL=yes
13269 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
13270 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
13271 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
13275 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13276 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13281 if test -n "$INTL_MACOSX_LIBS"; then
13282 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13283 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13284 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
13285 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
13289 if test "$gt_use_preinstalled_gnugettext" = "yes" \
13290 || test "$nls_cv_use_gnu_gettext" = "yes"; then
13292 cat >>confdefs.h <<\_ACEOF
13293 #define ENABLE_NLS 1
13301 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
13302 echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
13303 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
13304 echo "${ECHO_T}$USE_NLS" >&6; }
13305 if test "$USE_NLS" = "yes"; then
13306 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
13307 echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
13308 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13309 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13310 gt_source="external libintl"
13315 gt_source="included intl directory"
13317 { echo "$as_me:$LINENO: result: $gt_source" >&5
13318 echo "${ECHO_T}$gt_source" >&6; }
13321 if test "$USE_NLS" = "yes"; then
13323 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
13324 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
13325 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
13326 echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
13327 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
13328 echo "${ECHO_T}$LIBINTL" >&6; }
13330 for element in $INCINTL; do
13332 for x in $CPPFLAGS; do
13334 acl_save_prefix="$prefix"
13335 prefix="$acl_final_prefix"
13336 acl_save_exec_prefix="$exec_prefix"
13337 exec_prefix="$acl_final_exec_prefix"
13339 exec_prefix="$acl_save_exec_prefix"
13340 prefix="$acl_save_prefix"
13342 if test "X$x" = "X$element"; then
13347 if test -z "$haveit"; then
13348 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13355 cat >>confdefs.h <<\_ACEOF
13356 #define HAVE_GETTEXT 1
13360 cat >>confdefs.h <<\_ACEOF
13361 #define HAVE_DCGETTEXT 1
13370 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
13371 BUILD_INCLUDED_LIBINTL=yes
13378 nls_cv_header_intl=
13379 nls_cv_header_libgt=
13391 if test "$USE_INCLUDED_LIBINTL" = yes; then
13392 INTLOBJS="\$(GETTOBJS)"
13396 INTL_LIBTOOL_SUFFIX_PREFIX=
13400 INTLLIBS="$LIBINTL"
13412 support_postgresql=no
13414 support_smartalloc=yes
13415 support_readline=yes
13419 support_wx_console=no
13424 support_static_tools=no
13425 support_static_fd=no
13426 support_static_sd=no
13427 support_static_dir=no
13428 support_static_cons=no
13430 build_client_only=no
13438 # -------------------------------------------
13439 # gnome (default off)
13440 # -------------------------------------------
13441 # Check whether --enable-gnome was given.
13442 if test "${enable_gnome+set}" = set; then
13443 enableval=$enable_gnome; if test x$enableval = xyes; then
13450 if test x$support_gnome = xyes; then
13451 abc=`$PKGCONFIG --exists libgnomeui-2.0`
13453 if test $pkg = 0; then
13454 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
13455 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13456 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
13457 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
13462 GNOME_DIR=src/gnome2-console
13463 gnome_version="Version 2.x"
13465 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
13466 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
13467 { (exit 1); exit 1; }; }
13472 # -------------------------------------------
13473 # bat (default off)
13474 # -------------------------------------------
13475 # Check whether --enable-bat was given.
13476 if test "${enable_bat+set}" = set; then
13477 enableval=$enable_bat; if test x$enableval = xyes; then
13479 cat >>confdefs.h <<\_ACEOF
13489 if test x$support_bat = xyes; then
13490 abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
13492 if test $pkg = 0; then
13493 BAT_DIR=src/qt-console
13495 { { echo "$as_me:$LINENO: error: Unable to find Qt4 installation needed by bat" >&5
13496 echo "$as_me: error: Unable to find Qt4 installation needed by bat" >&2;}
13497 { (exit 1); exit 1; }; }
13502 # If bat is enabled, we need the qwt library
13509 if test x$support_bat = xyes; then
13510 { echo "$as_me:$LINENO: checking for qwt support" >&5
13511 echo $ECHO_N "checking for qwt support... $ECHO_C" >&6; }
13513 # Check whether --with-qwt was given.
13514 if test "${with_qwt+set}" = set; then
13516 case "$with_qwt" in
13521 if test -f ${with_qwt}/include/qwt.h; then
13522 QWT_INC="${with_qwt}/include"
13523 QWT_LDFLAGS="-L${with_qwt}/lib"
13534 # Search in standard places, or --with-qwt not specified
13536 if test $no_qwt = no; then
13537 if test x$QWT_INC = x; then
13538 for root in /usr /usr/local; do
13539 for ver in qwt qwt5 qwt-qt4; do
13540 if test -f ${root}/include/${ver}/qwt.h; then
13541 QWT_INC="${root}/include/${ver}"
13542 if test -d ${root}/lib64/; then
13543 QWT_LDFLAGS="-L${root}/lib64"
13545 QWT_LDFLAGS="-L${root}/lib"
13556 if test x$QWT_INC = x; then
13557 { echo "$as_me:$LINENO: result: no" >&5
13558 echo "${ECHO_T}no" >&6; }
13561 cat >>confdefs.h <<\_ACEOF
13565 { echo "$as_me:$LINENO: result: yes" >&5
13566 echo "${ECHO_T}yes" >&6; }
13577 # -------------------------------------------
13578 # bwx-console (default off)
13579 # -------------------------------------------
13580 # Check whether --enable-bwx-console was given.
13581 if test "${enable_bwx_console+set}" = set; then
13582 enableval=$enable_bwx_console; if test x$enableval = xyes; then
13583 support_wx_console=yes
13589 if test x$support_wx_console = xyes; then
13590 abc=`$WXCONFIG $WXFLAGS --cppflags`
13592 if test $pkg = 0; then
13593 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
13594 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
13595 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
13599 WX_DIR=src/wx-console
13602 echo "wx-config program not found. bwx-console disabled."
13604 support_wx_console=no
13610 # -------------------------------------------
13611 # tray-monitor (default off)
13612 # -------------------------------------------
13613 # Check whether --enable-tray-monitor was given.
13614 if test "${enable_tray_monitor+set}" = set; then
13615 enableval=$enable_tray_monitor; if test x$enableval = xyes; then
13616 support_tray_monitor=yes
13622 if test x$support_tray_monitor = xyes; then
13623 abc=`$PKGCONFIG --exists gtk+-2.0`
13625 if test $pkg = 0; then
13626 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
13627 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
13630 TRAY_MONITOR_DIR=src/tray-monitor
13631 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
13633 if test $pkg = 0; then
13635 cat >>confdefs.h <<\_ACEOF
13636 #define HAVE_GTK_2_4 1
13644 # -------------------------------------------
13645 # smartalloc (default off)
13646 # -------------------------------------------
13647 # Check whether --enable-smartalloc was given.
13648 if test "${enable_smartalloc+set}" = set; then
13649 enableval=$enable_smartalloc; if test x$enableval = xno; then
13650 support_smartalloc=no
13655 if test x$support_smartalloc = xyes; then
13657 cat >>confdefs.h <<\_ACEOF
13658 #define SMARTALLOC 1
13663 # -------------------------------------------
13664 # static-tools (default off)
13665 # -------------------------------------------
13666 # Check whether --enable-static-tools was given.
13667 if test "${enable_static_tools+set}" = set; then
13668 enableval=$enable_static_tools; if test x$enableval = xyes; then
13669 support_static_tools=yes
13675 if test x$support_static_tools = xyes; then
13676 TTOOL_LDFLAGS="-static"
13680 # -------------------------------------------
13681 # static-fd (default off)
13682 # -------------------------------------------
13683 # Check whether --enable-static-fd was given.
13684 if test "${enable_static_fd+set}" = set; then
13685 enableval=$enable_static_fd; if test x$enableval = xyes; then
13686 support_static_fd=yes
13692 if test x$support_static_fd = xyes; then
13693 STATIC_FD="static-bacula-fd"
13697 # -------------------------------------------
13698 # static-sd (default off)
13699 # -------------------------------------------
13700 # Check whether --enable-static-sd was given.
13701 if test "${enable_static_sd+set}" = set; then
13702 enableval=$enable_static_sd; if test x$enableval = xyes; then
13703 support_static_sd=yes
13709 if test x$support_static_sd = xyes; then
13710 STATIC_SD="static-bacula-sd"
13714 # -------------------------------------------
13715 # static-dir (default off)
13716 # -------------------------------------------
13717 # Check whether --enable-static-dir was given.
13718 if test "${enable_static_dir+set}" = set; then
13719 enableval=$enable_static_dir; if test x$enableval = xyes; then
13720 support_static_dir=yes
13726 if test x$support_static_dir = xyes; then
13727 STATIC_DIR="static-bacula-dir"
13731 # -------------------------------------------
13732 # static-cons (default off)
13733 # -------------------------------------------
13734 # Check whether --enable-static-cons was given.
13735 if test "${enable_static_cons+set}" = set; then
13736 enableval=$enable_static_cons; if test x$enableval = xyes; then
13737 support_static_cons=yes
13745 if test x$support_static_cons = xyes; then
13746 STATIC_CONS="static-bconsole"
13747 STATIC_GNOME_CONS="static-bgnome-console"
13748 STATIC_WX_CONS="static-bwx-console"
13754 # -------------------------------------------
13755 # client_only (default off)
13756 # -------------------------------------------
13757 # Check whether --enable-client-only was given.
13758 if test "${enable_client_only+set}" = set; then
13759 enableval=$enable_client_only; if test x$enableval = xyes; then
13760 build_client_only=yes
13766 if test x$build_client_only = xno; then
13773 # -------------------------------------------
13774 # director (default on)
13775 # -------------------------------------------
13776 # Check whether --enable-build-dird was given.
13777 if test "${enable_build_dird+set}" = set; then
13778 enableval=$enable_build_dird; if test x$enableval = xno; then
13783 if test x$build_dird = xyes; then
13784 DIRD_DIR="src/dird"
13785 DIR_TOOLS="DIRTOOLS"
13788 DIR_TOOLS="NODIRTOOLS"
13793 # -------------------------------------------
13794 # stored (default on)
13795 # -------------------------------------------
13796 # Check whether --enable-build-stored was given.
13797 if test "${enable_build_stored+set}" = set; then
13798 enableval=$enable_build_stored; if test x$enableval = xno; then
13803 if test x$build_stored = xyes; then
13804 STORED_DIR="src/stored"
13810 # ---------------------------------------------------
13811 # Check for conio (Bacula readline substitute)(
13812 # ---------------------------------------------------
13813 # this allows you to turn it completely off
13814 # Check whether --enable-conio was given.
13815 if test "${enable_conio+set}" = set; then
13816 enableval=$enable_conio; if test x$enableval = xno; then
13824 # ---------------------------------------------------
13825 # Check for IPv6 support
13826 # ---------------------------------------------------
13827 # this allows you to turn it completely off
13829 # Check whether --enable-ipv6 was given.
13830 if test "${enable_ipv6+set}" = set; then
13831 enableval=$enable_ipv6; if test x$enableval = xno; then
13838 if test x$support_ipv6 = xyes; then
13839 cat >conftest.$ac_ext <<_ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h. */
13845 #include <sys/types.h>
13846 #include <sys/socket.h>
13847 #include <netinet/in.h>
13851 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
13856 rm -f conftest.$ac_objext conftest$ac_exeext
13857 if { (ac_try="$ac_link"
13858 case "(($ac_try" in
13859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13860 *) ac_try_echo=$ac_try;;
13862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13863 (eval "$ac_link") 2>conftest.er1
13865 grep -v '^ *+' conftest.er1 >conftest.err
13867 cat conftest.err >&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); } && {
13870 test -z "$ac_c_werror_flag" ||
13871 test ! -s conftest.err
13872 } && test -s conftest$ac_exeext &&
13873 $as_test_x conftest$ac_exeext; then
13876 echo "$as_me: failed program was:" >&5
13877 sed 's/^/| /' conftest.$ac_ext >&5
13882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13883 conftest$ac_exeext conftest.$ac_ext
13886 if test x$support_ipv6 = xyes; then
13888 cat >>confdefs.h <<\_ACEOF
13889 #define HAVE_IPV6 1
13897 if test x$support_conio = xyes; then
13898 if test "${ac_cv_header_termcap_h+set}" = set; then
13899 { echo "$as_me:$LINENO: checking for termcap.h" >&5
13900 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
13901 if test "${ac_cv_header_termcap_h+set}" = set; then
13902 echo $ECHO_N "(cached) $ECHO_C" >&6
13904 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
13905 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
13907 # Is the header compilable?
13908 { echo "$as_me:$LINENO: checking termcap.h usability" >&5
13909 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6; }
13910 cat >conftest.$ac_ext <<_ACEOF
13913 cat confdefs.h >>conftest.$ac_ext
13914 cat >>conftest.$ac_ext <<_ACEOF
13915 /* end confdefs.h. */
13916 $ac_includes_default
13917 #include <termcap.h>
13919 rm -f conftest.$ac_objext
13920 if { (ac_try="$ac_compile"
13921 case "(($ac_try" in
13922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13923 *) ac_try_echo=$ac_try;;
13925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13926 (eval "$ac_compile") 2>conftest.er1
13928 grep -v '^ *+' conftest.er1 >conftest.err
13930 cat conftest.err >&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); } && {
13933 test -z "$ac_c_werror_flag" ||
13934 test ! -s conftest.err
13935 } && test -s conftest.$ac_objext; then
13936 ac_header_compiler=yes
13938 echo "$as_me: failed program was:" >&5
13939 sed 's/^/| /' conftest.$ac_ext >&5
13941 ac_header_compiler=no
13944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13945 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13946 echo "${ECHO_T}$ac_header_compiler" >&6; }
13948 # Is the header present?
13949 { echo "$as_me:$LINENO: checking termcap.h presence" >&5
13950 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6; }
13951 cat >conftest.$ac_ext <<_ACEOF
13954 cat confdefs.h >>conftest.$ac_ext
13955 cat >>conftest.$ac_ext <<_ACEOF
13956 /* end confdefs.h. */
13957 #include <termcap.h>
13959 if { (ac_try="$ac_cpp conftest.$ac_ext"
13960 case "(($ac_try" in
13961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13962 *) ac_try_echo=$ac_try;;
13964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13967 grep -v '^ *+' conftest.er1 >conftest.err
13969 cat conftest.err >&5
13970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13971 (exit $ac_status); } >/dev/null && {
13972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13973 test ! -s conftest.err
13975 ac_header_preproc=yes
13977 echo "$as_me: failed program was:" >&5
13978 sed 's/^/| /' conftest.$ac_ext >&5
13980 ac_header_preproc=no
13983 rm -f conftest.err conftest.$ac_ext
13984 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13985 echo "${ECHO_T}$ac_header_preproc" >&6; }
13987 # So? What about this header?
13988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13990 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
13991 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13992 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
13993 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
13994 ac_header_preproc=yes
13997 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
13998 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
13999 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
14000 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
14001 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
14002 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
14003 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
14004 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
14005 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
14006 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
14007 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
14008 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
14012 { echo "$as_me:$LINENO: checking for termcap.h" >&5
14013 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6; }
14014 if test "${ac_cv_header_termcap_h+set}" = set; then
14015 echo $ECHO_N "(cached) $ECHO_C" >&6
14017 ac_cv_header_termcap_h=$ac_header_preproc
14019 { echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
14020 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6; }
14023 if test $ac_cv_header_termcap_h = yes; then
14024 { echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
14025 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
14026 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
14027 echo $ECHO_N "(cached) $ECHO_C" >&6
14029 ac_check_lib_save_LIBS=$LIBS
14030 LIBS="-ltermcap $LIBS"
14031 cat >conftest.$ac_ext <<_ACEOF
14034 cat confdefs.h >>conftest.$ac_ext
14035 cat >>conftest.$ac_ext <<_ACEOF
14036 /* end confdefs.h. */
14038 /* Override any GCC internal prototype to avoid an error.
14039 Use char because int might match the return type of a GCC
14040 builtin and then its argument prototype would still apply. */
14053 rm -f conftest.$ac_objext conftest$ac_exeext
14054 if { (ac_try="$ac_link"
14055 case "(($ac_try" in
14056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14057 *) ac_try_echo=$ac_try;;
14059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14060 (eval "$ac_link") 2>conftest.er1
14062 grep -v '^ *+' conftest.er1 >conftest.err
14064 cat conftest.err >&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } && {
14067 test -z "$ac_c_werror_flag" ||
14068 test ! -s conftest.err
14069 } && test -s conftest$ac_exeext &&
14070 $as_test_x conftest$ac_exeext; then
14071 ac_cv_lib_termcap_tgetent=yes
14073 echo "$as_me: failed program was:" >&5
14074 sed 's/^/| /' conftest.$ac_ext >&5
14076 ac_cv_lib_termcap_tgetent=no
14079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14080 conftest$ac_exeext conftest.$ac_ext
14081 LIBS=$ac_check_lib_save_LIBS
14083 { echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
14084 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
14085 if test $ac_cv_lib_termcap_tgetent = yes; then
14086 CONS_LIBS="-ltermcap"
14090 support_readline=no
14092 cat >>confdefs.h <<\_ACEOF
14093 #define HAVE_CONIO 1
14098 { echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
14099 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6; }
14100 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
14101 echo $ECHO_N "(cached) $ECHO_C" >&6
14103 ac_check_lib_save_LIBS=$LIBS
14104 LIBS="-lncurses $LIBS"
14105 cat >conftest.$ac_ext <<_ACEOF
14108 cat confdefs.h >>conftest.$ac_ext
14109 cat >>conftest.$ac_ext <<_ACEOF
14110 /* end confdefs.h. */
14112 /* Override any GCC internal prototype to avoid an error.
14113 Use char because int might match the return type of a GCC
14114 builtin and then its argument prototype would still apply. */
14127 rm -f conftest.$ac_objext conftest$ac_exeext
14128 if { (ac_try="$ac_link"
14129 case "(($ac_try" in
14130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131 *) ac_try_echo=$ac_try;;
14133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14134 (eval "$ac_link") 2>conftest.er1
14136 grep -v '^ *+' conftest.er1 >conftest.err
14138 cat conftest.err >&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } && {
14141 test -z "$ac_c_werror_flag" ||
14142 test ! -s conftest.err
14143 } && test -s conftest$ac_exeext &&
14144 $as_test_x conftest$ac_exeext; then
14145 ac_cv_lib_ncurses_tgetent=yes
14147 echo "$as_me: failed program was:" >&5
14148 sed 's/^/| /' conftest.$ac_ext >&5
14150 ac_cv_lib_ncurses_tgetent=no
14153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14154 conftest$ac_exeext conftest.$ac_ext
14155 LIBS=$ac_check_lib_save_LIBS
14157 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
14158 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6; }
14159 if test $ac_cv_lib_ncurses_tgetent = yes; then
14160 CONS_LIBS="-lncurses"
14164 support_readline=no
14166 cat >>confdefs.h <<\_ACEOF
14167 #define HAVE_CONIO 1
14180 for ac_header in curses.h
14182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14184 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14187 echo $ECHO_N "(cached) $ECHO_C" >&6
14189 ac_res=`eval echo '${'$as_ac_Header'}'`
14190 { echo "$as_me:$LINENO: result: $ac_res" >&5
14191 echo "${ECHO_T}$ac_res" >&6; }
14193 # Is the header compilable?
14194 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14196 cat >conftest.$ac_ext <<_ACEOF
14199 cat confdefs.h >>conftest.$ac_ext
14200 cat >>conftest.$ac_ext <<_ACEOF
14201 /* end confdefs.h. */
14202 $ac_includes_default
14203 #include <$ac_header>
14205 rm -f conftest.$ac_objext
14206 if { (ac_try="$ac_compile"
14207 case "(($ac_try" in
14208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14209 *) ac_try_echo=$ac_try;;
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_compile") 2>conftest.er1
14214 grep -v '^ *+' conftest.er1 >conftest.err
14216 cat conftest.err >&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } && {
14219 test -z "$ac_c_werror_flag" ||
14220 test ! -s conftest.err
14221 } && test -s conftest.$ac_objext; then
14222 ac_header_compiler=yes
14224 echo "$as_me: failed program was:" >&5
14225 sed 's/^/| /' conftest.$ac_ext >&5
14227 ac_header_compiler=no
14230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14231 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14232 echo "${ECHO_T}$ac_header_compiler" >&6; }
14234 # Is the header present?
14235 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14237 cat >conftest.$ac_ext <<_ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h. */
14243 #include <$ac_header>
14245 if { (ac_try="$ac_cpp conftest.$ac_ext"
14246 case "(($ac_try" in
14247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14253 grep -v '^ *+' conftest.er1 >conftest.err
14255 cat conftest.err >&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } >/dev/null && {
14258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14259 test ! -s conftest.err
14261 ac_header_preproc=yes
14263 echo "$as_me: failed program was:" >&5
14264 sed 's/^/| /' conftest.$ac_ext >&5
14266 ac_header_preproc=no
14269 rm -f conftest.err conftest.$ac_ext
14270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14271 echo "${ECHO_T}$ac_header_preproc" >&6; }
14273 # So? What about this header?
14274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14276 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14278 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14280 ac_header_preproc=yes
14283 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14285 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14286 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14287 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14289 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14290 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14291 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14293 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14301 echo $ECHO_N "(cached) $ECHO_C" >&6
14303 eval "$as_ac_Header=\$ac_header_preproc"
14305 ac_res=`eval echo '${'$as_ac_Header'}'`
14306 { echo "$as_me:$LINENO: result: $ac_res" >&5
14307 echo "${ECHO_T}$ac_res" >&6; }
14310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14311 cat >>confdefs.h <<_ACEOF
14312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14319 { echo "$as_me:$LINENO: checking for term.h" >&5
14320 echo $ECHO_N "checking for term.h... $ECHO_C" >&6; }
14321 if test "${ac_cv_header_term_h+set}" = set; then
14322 echo $ECHO_N "(cached) $ECHO_C" >&6
14324 cat >conftest.$ac_ext <<_ACEOF
14327 cat confdefs.h >>conftest.$ac_ext
14328 cat >>conftest.$ac_ext <<_ACEOF
14329 /* end confdefs.h. */
14331 #include <curses.h>
14337 rm -f conftest.$ac_objext
14338 if { (ac_try="$ac_compile"
14339 case "(($ac_try" in
14340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341 *) ac_try_echo=$ac_try;;
14343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14344 (eval "$ac_compile") 2>conftest.er1
14346 grep -v '^ *+' conftest.er1 >conftest.err
14348 cat conftest.err >&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } && {
14351 test -z "$ac_c_werror_flag" ||
14352 test ! -s conftest.err
14353 } && test -s conftest.$ac_objext; then
14354 ac_cv_header_term_h=yes
14356 echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.$ac_ext >&5
14359 ac_cv_header_term_h=no
14362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14364 { echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
14365 echo "${ECHO_T}$ac_cv_header_term_h" >&6; }
14366 if test $ac_cv_header_term_h = yes; then
14367 { echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
14368 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
14369 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
14370 echo $ECHO_N "(cached) $ECHO_C" >&6
14372 ac_check_lib_save_LIBS=$LIBS
14373 LIBS="-lcurses $LIBS"
14374 cat >conftest.$ac_ext <<_ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h. */
14381 /* Override any GCC internal prototype to avoid an error.
14382 Use char because int might match the return type of a GCC
14383 builtin and then its argument prototype would still apply. */
14396 rm -f conftest.$ac_objext conftest$ac_exeext
14397 if { (ac_try="$ac_link"
14398 case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_link") 2>conftest.er1
14405 grep -v '^ *+' conftest.er1 >conftest.err
14407 cat conftest.err >&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); } && {
14410 test -z "$ac_c_werror_flag" ||
14411 test ! -s conftest.err
14412 } && test -s conftest$ac_exeext &&
14413 $as_test_x conftest$ac_exeext; then
14414 ac_cv_lib_curses_tgetent=yes
14416 echo "$as_me: failed program was:" >&5
14417 sed 's/^/| /' conftest.$ac_ext >&5
14419 ac_cv_lib_curses_tgetent=no
14422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14423 conftest$ac_exeext conftest.$ac_ext
14424 LIBS=$ac_check_lib_save_LIBS
14426 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
14427 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
14428 if test $ac_cv_lib_curses_tgetent = yes; then
14429 CONS_LIBS="-lcurses"
14433 support_readline=no
14435 cat >>confdefs.h <<\_ACEOF
14436 #define HAVE_CONIO 1
14444 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
14455 # ---------------------------------------------------
14456 # Check for readline support/directory (default off)
14457 # ---------------------------------------------------
14458 # this allows you to turn it completely off
14459 # Check whether --enable-readline was given.
14460 if test "${enable_readline+set}" = set; then
14461 enableval=$enable_readline; if test x$enableval = xno; then
14462 support_readline=no
14469 if test x$support_readline = xyes; then
14471 # Check whether --with-readline was given.
14472 if test "${with_readline+set}" = set; then
14473 withval=$with_readline;
14474 case "$with_readline" in
14477 if test -f ${with_readline}/readline.h; then
14478 CONS_INC="-I${with_readline}"
14479 CONS_LDFLAGS="-L$with_readline"
14480 elif test -f ${with_readline}/include/readline/readline.h; then
14481 CONS_INC="-I${with_readline}/include/readline"
14482 CONS_LDFLAGS="-L${with_readline}/lib"
14483 with_readline="${with_readline}/include/readline"
14485 with_readline="/usr/include/readline"
14487 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
14488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14489 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14490 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14492 echo $ECHO_N "(cached) $ECHO_C" >&6
14494 ac_res=`eval echo '${'$as_ac_Header'}'`
14495 { echo "$as_me:$LINENO: result: $ac_res" >&5
14496 echo "${ECHO_T}$ac_res" >&6; }
14498 # Is the header compilable?
14499 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
14500 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6; }
14501 cat >conftest.$ac_ext <<_ACEOF
14504 cat confdefs.h >>conftest.$ac_ext
14505 cat >>conftest.$ac_ext <<_ACEOF
14506 /* end confdefs.h. */
14507 $ac_includes_default
14508 #include <${with_readline}/readline.h>
14510 rm -f conftest.$ac_objext
14511 if { (ac_try="$ac_compile"
14512 case "(($ac_try" in
14513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14514 *) ac_try_echo=$ac_try;;
14516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517 (eval "$ac_compile") 2>conftest.er1
14519 grep -v '^ *+' conftest.er1 >conftest.err
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } && {
14524 test -z "$ac_c_werror_flag" ||
14525 test ! -s conftest.err
14526 } && test -s conftest.$ac_objext; then
14527 ac_header_compiler=yes
14529 echo "$as_me: failed program was:" >&5
14530 sed 's/^/| /' conftest.$ac_ext >&5
14532 ac_header_compiler=no
14535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14536 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14537 echo "${ECHO_T}$ac_header_compiler" >&6; }
14539 # Is the header present?
14540 { echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
14541 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6; }
14542 cat >conftest.$ac_ext <<_ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14548 #include <${with_readline}/readline.h>
14550 if { (ac_try="$ac_cpp conftest.$ac_ext"
14551 case "(($ac_try" in
14552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553 *) ac_try_echo=$ac_try;;
14555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14558 grep -v '^ *+' conftest.er1 >conftest.err
14560 cat conftest.err >&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); } >/dev/null && {
14563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14564 test ! -s conftest.err
14566 ac_header_preproc=yes
14568 echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14571 ac_header_preproc=no
14574 rm -f conftest.err conftest.$ac_ext
14575 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14576 echo "${ECHO_T}$ac_header_preproc" >&6; }
14578 # So? What about this header?
14579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14581 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14582 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14583 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
14584 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
14585 ac_header_preproc=yes
14588 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
14589 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
14590 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
14591 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
14592 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
14593 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
14594 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14595 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14596 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
14597 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
14598 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
14599 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
14603 { echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
14604 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6; }
14605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14606 echo $ECHO_N "(cached) $ECHO_C" >&6
14608 eval "$as_ac_Header=\$ac_header_preproc"
14610 ac_res=`eval echo '${'$as_ac_Header'}'`
14611 { echo "$as_me:$LINENO: result: $ac_res" >&5
14612 echo "${ECHO_T}$ac_res" >&6; }
14615 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14617 cat >>confdefs.h <<\_ACEOF
14618 #define HAVE_READLINE 1
14621 CONS_LIBS="-lreadline -lhistory -ltermcap"
14626 echo "readline.h not found. readline turned off ..."
14638 # check for standard readline library
14639 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14640 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14641 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14642 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14643 echo $ECHO_N "(cached) $ECHO_C" >&6
14645 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14646 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14648 # Is the header compilable?
14649 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
14650 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6; }
14651 cat >conftest.$ac_ext <<_ACEOF
14654 cat confdefs.h >>conftest.$ac_ext
14655 cat >>conftest.$ac_ext <<_ACEOF
14656 /* end confdefs.h. */
14657 $ac_includes_default
14658 #include </usr/include/readline/readline.h>
14660 rm -f conftest.$ac_objext
14661 if { (ac_try="$ac_compile"
14662 case "(($ac_try" in
14663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14664 *) ac_try_echo=$ac_try;;
14666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14667 (eval "$ac_compile") 2>conftest.er1
14669 grep -v '^ *+' conftest.er1 >conftest.err
14671 cat conftest.err >&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } && {
14674 test -z "$ac_c_werror_flag" ||
14675 test ! -s conftest.err
14676 } && test -s conftest.$ac_objext; then
14677 ac_header_compiler=yes
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14682 ac_header_compiler=no
14685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14686 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14687 echo "${ECHO_T}$ac_header_compiler" >&6; }
14689 # Is the header present?
14690 { echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
14691 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6; }
14692 cat >conftest.$ac_ext <<_ACEOF
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 #include </usr/include/readline/readline.h>
14700 if { (ac_try="$ac_cpp conftest.$ac_ext"
14701 case "(($ac_try" in
14702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14703 *) ac_try_echo=$ac_try;;
14705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14708 grep -v '^ *+' conftest.er1 >conftest.err
14710 cat conftest.err >&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } >/dev/null && {
14713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14714 test ! -s conftest.err
14716 ac_header_preproc=yes
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14721 ac_header_preproc=no
14724 rm -f conftest.err conftest.$ac_ext
14725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14726 echo "${ECHO_T}$ac_header_preproc" >&6; }
14728 # So? What about this header?
14729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14731 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14732 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14733 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
14734 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
14735 ac_header_preproc=yes
14738 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
14739 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
14740 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
14741 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
14742 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
14743 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
14744 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14745 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14746 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
14747 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14748 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
14749 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14753 { echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
14754 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6; }
14755 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
14756 echo $ECHO_N "(cached) $ECHO_C" >&6
14758 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
14760 { echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
14761 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6; }
14764 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
14766 cat >>confdefs.h <<\_ACEOF
14767 #define HAVE_READLINE 1
14771 CONS_INC="-I/usr/include/readline"
14772 CONS_LIBS="-lreadline -ltermcap"
14776 # Did not find standard library, so try Bacula's default
14777 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
14778 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14779 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14780 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14782 echo $ECHO_N "(cached) $ECHO_C" >&6
14784 ac_res=`eval echo '${'$as_ac_Header'}'`
14785 { echo "$as_me:$LINENO: result: $ac_res" >&5
14786 echo "${ECHO_T}$ac_res" >&6; }
14788 # Is the header compilable?
14789 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
14790 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6; }
14791 cat >conftest.$ac_ext <<_ACEOF
14794 cat confdefs.h >>conftest.$ac_ext
14795 cat >>conftest.$ac_ext <<_ACEOF
14796 /* end confdefs.h. */
14797 $ac_includes_default
14798 #include <${TOP_DIR}/depkgs/readline/readline.h>
14800 rm -f conftest.$ac_objext
14801 if { (ac_try="$ac_compile"
14802 case "(($ac_try" in
14803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804 *) ac_try_echo=$ac_try;;
14806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807 (eval "$ac_compile") 2>conftest.er1
14809 grep -v '^ *+' conftest.er1 >conftest.err
14811 cat conftest.err >&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } && {
14814 test -z "$ac_c_werror_flag" ||
14815 test ! -s conftest.err
14816 } && test -s conftest.$ac_objext; then
14817 ac_header_compiler=yes
14819 echo "$as_me: failed program was:" >&5
14820 sed 's/^/| /' conftest.$ac_ext >&5
14822 ac_header_compiler=no
14825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14827 echo "${ECHO_T}$ac_header_compiler" >&6; }
14829 # Is the header present?
14830 { echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
14831 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6; }
14832 cat >conftest.$ac_ext <<_ACEOF
14835 cat confdefs.h >>conftest.$ac_ext
14836 cat >>conftest.$ac_ext <<_ACEOF
14837 /* end confdefs.h. */
14838 #include <${TOP_DIR}/depkgs/readline/readline.h>
14840 if { (ac_try="$ac_cpp conftest.$ac_ext"
14841 case "(($ac_try" in
14842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14843 *) ac_try_echo=$ac_try;;
14845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14848 grep -v '^ *+' conftest.er1 >conftest.err
14850 cat conftest.err >&5
14851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14852 (exit $ac_status); } >/dev/null && {
14853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14854 test ! -s conftest.err
14856 ac_header_preproc=yes
14858 echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.$ac_ext >&5
14861 ac_header_preproc=no
14864 rm -f conftest.err conftest.$ac_ext
14865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14866 echo "${ECHO_T}$ac_header_preproc" >&6; }
14868 # So? What about this header?
14869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14871 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
14872 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14873 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
14874 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
14875 ac_header_preproc=yes
14878 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
14879 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
14880 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
14881 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
14882 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
14883 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
14884 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
14885 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
14886 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
14887 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
14888 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
14889 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
14893 { echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
14894 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6; }
14895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14896 echo $ECHO_N "(cached) $ECHO_C" >&6
14898 eval "$as_ac_Header=\$ac_header_preproc"
14900 ac_res=`eval echo '${'$as_ac_Header'}'`
14901 { echo "$as_me:$LINENO: result: $ac_res" >&5
14902 echo "${ECHO_T}$ac_res" >&6; }
14905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14907 cat >>confdefs.h <<\_ACEOF
14908 #define HAVE_READLINE 1
14912 CONS_INC="-I${TOP_DIR}/depkgs/readline"
14913 CONS_LIBS="-lreadline -lhistory -ltermcap"
14914 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
14915 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
14919 echo "readline.h not found. readline turned off ..."
14946 # Minimal stuff for readline Makefile configuration
14949 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14950 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14951 if test "${ac_cv_header_stat_broken+set}" = set; then
14952 echo $ECHO_N "(cached) $ECHO_C" >&6
14954 cat >conftest.$ac_ext <<_ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14960 #include <sys/types.h>
14961 #include <sys/stat.h>
14963 #if defined S_ISBLK && defined S_IFDIR
14964 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
14967 #if defined S_ISBLK && defined S_IFCHR
14968 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
14971 #if defined S_ISLNK && defined S_IFREG
14972 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
14975 #if defined S_ISSOCK && defined S_IFREG
14976 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
14980 rm -f conftest.$ac_objext
14981 if { (ac_try="$ac_compile"
14982 case "(($ac_try" in
14983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984 *) ac_try_echo=$ac_try;;
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987 (eval "$ac_compile") 2>conftest.er1
14989 grep -v '^ *+' conftest.er1 >conftest.err
14991 cat conftest.err >&5
14992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14993 (exit $ac_status); } && {
14994 test -z "$ac_c_werror_flag" ||
14995 test ! -s conftest.err
14996 } && test -s conftest.$ac_objext; then
14997 ac_cv_header_stat_broken=no
14999 echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.$ac_ext >&5
15002 ac_cv_header_stat_broken=yes
15005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15007 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15008 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15009 if test $ac_cv_header_stat_broken = yes; then
15011 cat >>confdefs.h <<\_ACEOF
15012 #define STAT_MACROS_BROKEN 1
15022 ac_header_dirent=no
15023 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15024 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15025 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
15026 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
15027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15028 echo $ECHO_N "(cached) $ECHO_C" >&6
15030 cat >conftest.$ac_ext <<_ACEOF
15033 cat confdefs.h >>conftest.$ac_ext
15034 cat >>conftest.$ac_ext <<_ACEOF
15035 /* end confdefs.h. */
15036 #include <sys/types.h>
15048 rm -f conftest.$ac_objext
15049 if { (ac_try="$ac_compile"
15050 case "(($ac_try" in
15051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15052 *) ac_try_echo=$ac_try;;
15054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055 (eval "$ac_compile") 2>conftest.er1
15057 grep -v '^ *+' conftest.er1 >conftest.err
15059 cat conftest.err >&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } && {
15062 test -z "$ac_c_werror_flag" ||
15063 test ! -s conftest.err
15064 } && test -s conftest.$ac_objext; then
15065 eval "$as_ac_Header=yes"
15067 echo "$as_me: failed program was:" >&5
15068 sed 's/^/| /' conftest.$ac_ext >&5
15070 eval "$as_ac_Header=no"
15073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15075 ac_res=`eval echo '${'$as_ac_Header'}'`
15076 { echo "$as_me:$LINENO: result: $ac_res" >&5
15077 echo "${ECHO_T}$ac_res" >&6; }
15078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15079 cat >>confdefs.h <<_ACEOF
15080 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15083 ac_header_dirent=$ac_hdr; break
15087 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15088 if test $ac_header_dirent = dirent.h; then
15089 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15090 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15091 if test "${ac_cv_search_opendir+set}" = set; then
15092 echo $ECHO_N "(cached) $ECHO_C" >&6
15094 ac_func_search_save_LIBS=$LIBS
15095 cat >conftest.$ac_ext <<_ACEOF
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h. */
15102 /* Override any GCC internal prototype to avoid an error.
15103 Use char because int might match the return type of a GCC
15104 builtin and then its argument prototype would still apply. */
15117 for ac_lib in '' dir; do
15118 if test -z "$ac_lib"; then
15119 ac_res="none required"
15122 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15124 rm -f conftest.$ac_objext conftest$ac_exeext
15125 if { (ac_try="$ac_link"
15126 case "(($ac_try" in
15127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128 *) ac_try_echo=$ac_try;;
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131 (eval "$ac_link") 2>conftest.er1
15133 grep -v '^ *+' conftest.er1 >conftest.err
15135 cat conftest.err >&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } && {
15138 test -z "$ac_c_werror_flag" ||
15139 test ! -s conftest.err
15140 } && test -s conftest$ac_exeext &&
15141 $as_test_x conftest$ac_exeext; then
15142 ac_cv_search_opendir=$ac_res
15144 echo "$as_me: failed program was:" >&5
15145 sed 's/^/| /' conftest.$ac_ext >&5
15150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15152 if test "${ac_cv_search_opendir+set}" = set; then
15156 if test "${ac_cv_search_opendir+set}" = set; then
15159 ac_cv_search_opendir=no
15161 rm conftest.$ac_ext
15162 LIBS=$ac_func_search_save_LIBS
15164 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15165 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15166 ac_res=$ac_cv_search_opendir
15167 if test "$ac_res" != no; then
15168 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15173 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15174 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15175 if test "${ac_cv_search_opendir+set}" = set; then
15176 echo $ECHO_N "(cached) $ECHO_C" >&6
15178 ac_func_search_save_LIBS=$LIBS
15179 cat >conftest.$ac_ext <<_ACEOF
15182 cat confdefs.h >>conftest.$ac_ext
15183 cat >>conftest.$ac_ext <<_ACEOF
15184 /* end confdefs.h. */
15186 /* Override any GCC internal prototype to avoid an error.
15187 Use char because int might match the return type of a GCC
15188 builtin and then its argument prototype would still apply. */
15201 for ac_lib in '' x; do
15202 if test -z "$ac_lib"; then
15203 ac_res="none required"
15206 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15208 rm -f conftest.$ac_objext conftest$ac_exeext
15209 if { (ac_try="$ac_link"
15210 case "(($ac_try" in
15211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15212 *) ac_try_echo=$ac_try;;
15214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15215 (eval "$ac_link") 2>conftest.er1
15217 grep -v '^ *+' conftest.er1 >conftest.err
15219 cat conftest.err >&5
15220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15221 (exit $ac_status); } && {
15222 test -z "$ac_c_werror_flag" ||
15223 test ! -s conftest.err
15224 } && test -s conftest$ac_exeext &&
15225 $as_test_x conftest$ac_exeext; then
15226 ac_cv_search_opendir=$ac_res
15228 echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15236 if test "${ac_cv_search_opendir+set}" = set; then
15240 if test "${ac_cv_search_opendir+set}" = set; then
15243 ac_cv_search_opendir=no
15245 rm conftest.$ac_ext
15246 LIBS=$ac_func_search_save_LIBS
15248 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15249 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15250 ac_res=$ac_cv_search_opendir
15251 if test "$ac_res" != no; then
15252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15265 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
15267 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15268 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15269 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15270 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15271 echo $ECHO_N "(cached) $ECHO_C" >&6
15273 cat >conftest.$ac_ext <<_ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h. */
15279 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15280 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15281 #define $ac_func innocuous_$ac_func
15283 /* System header to define __stub macros and hopefully few prototypes,
15284 which can conflict with char $ac_func (); below.
15285 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15286 <limits.h> exists even on freestanding compilers. */
15289 # include <limits.h>
15291 # include <assert.h>
15296 /* Override any GCC internal prototype to avoid an error.
15297 Use char because int might match the return type of a GCC
15298 builtin and then its argument prototype would still apply. */
15303 /* The GNU C library defines this for functions which it implements
15304 to always fail with ENOSYS. Some functions are actually named
15305 something starting with __ and the normal name is an alias. */
15306 #if defined __stub_$ac_func || defined __stub___$ac_func
15313 return $ac_func ();
15318 rm -f conftest.$ac_objext conftest$ac_exeext
15319 if { (ac_try="$ac_link"
15320 case "(($ac_try" in
15321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322 *) ac_try_echo=$ac_try;;
15324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325 (eval "$ac_link") 2>conftest.er1
15327 grep -v '^ *+' conftest.er1 >conftest.err
15329 cat conftest.err >&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); } && {
15332 test -z "$ac_c_werror_flag" ||
15333 test ! -s conftest.err
15334 } && test -s conftest$ac_exeext &&
15335 $as_test_x conftest$ac_exeext; then
15336 eval "$as_ac_var=yes"
15338 echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.$ac_ext >&5
15341 eval "$as_ac_var=no"
15344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15345 conftest$ac_exeext conftest.$ac_ext
15347 ac_res=`eval echo '${'$as_ac_var'}'`
15348 { echo "$as_me:$LINENO: result: $ac_res" >&5
15349 echo "${ECHO_T}$ac_res" >&6; }
15350 if test `eval echo '${'$as_ac_var'}'` = yes; then
15351 cat >>confdefs.h <<_ACEOF
15352 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15360 for ac_func in nanosleep nl_langinfo
15362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15363 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15366 echo $ECHO_N "(cached) $ECHO_C" >&6
15368 cat >conftest.$ac_ext <<_ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h. */
15374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15376 #define $ac_func innocuous_$ac_func
15378 /* System header to define __stub macros and hopefully few prototypes,
15379 which can conflict with char $ac_func (); below.
15380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15381 <limits.h> exists even on freestanding compilers. */
15384 # include <limits.h>
15386 # include <assert.h>
15391 /* Override any GCC internal prototype to avoid an error.
15392 Use char because int might match the return type of a GCC
15393 builtin and then its argument prototype would still apply. */
15398 /* The GNU C library defines this for functions which it implements
15399 to always fail with ENOSYS. Some functions are actually named
15400 something starting with __ and the normal name is an alias. */
15401 #if defined __stub_$ac_func || defined __stub___$ac_func
15408 return $ac_func ();
15413 rm -f conftest.$ac_objext conftest$ac_exeext
15414 if { (ac_try="$ac_link"
15415 case "(($ac_try" in
15416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417 *) ac_try_echo=$ac_try;;
15419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420 (eval "$ac_link") 2>conftest.er1
15422 grep -v '^ *+' conftest.er1 >conftest.err
15424 cat conftest.err >&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } && {
15427 test -z "$ac_c_werror_flag" ||
15428 test ! -s conftest.err
15429 } && test -s conftest$ac_exeext &&
15430 $as_test_x conftest$ac_exeext; then
15431 eval "$as_ac_var=yes"
15433 echo "$as_me: failed program was:" >&5
15434 sed 's/^/| /' conftest.$ac_ext >&5
15436 eval "$as_ac_var=no"
15439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15440 conftest$ac_exeext conftest.$ac_ext
15442 ac_res=`eval echo '${'$as_ac_var'}'`
15443 { echo "$as_me:$LINENO: result: $ac_res" >&5
15444 echo "${ECHO_T}$ac_res" >&6; }
15445 if test `eval echo '${'$as_ac_var'}'` = yes; then
15446 cat >>confdefs.h <<_ACEOF
15447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15454 for ac_header in varargs.h
15456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15463 ac_res=`eval echo '${'$as_ac_Header'}'`
15464 { echo "$as_me:$LINENO: result: $ac_res" >&5
15465 echo "${ECHO_T}$ac_res" >&6; }
15467 # Is the header compilable?
15468 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15470 cat >conftest.$ac_ext <<_ACEOF
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h. */
15476 $ac_includes_default
15477 #include <$ac_header>
15479 rm -f conftest.$ac_objext
15480 if { (ac_try="$ac_compile"
15481 case "(($ac_try" in
15482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483 *) ac_try_echo=$ac_try;;
15485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15486 (eval "$ac_compile") 2>conftest.er1
15488 grep -v '^ *+' conftest.er1 >conftest.err
15490 cat conftest.err >&5
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); } && {
15493 test -z "$ac_c_werror_flag" ||
15494 test ! -s conftest.err
15495 } && test -s conftest.$ac_objext; then
15496 ac_header_compiler=yes
15498 echo "$as_me: failed program was:" >&5
15499 sed 's/^/| /' conftest.$ac_ext >&5
15501 ac_header_compiler=no
15504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15505 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15506 echo "${ECHO_T}$ac_header_compiler" >&6; }
15508 # Is the header present?
15509 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15511 cat >conftest.$ac_ext <<_ACEOF
15514 cat confdefs.h >>conftest.$ac_ext
15515 cat >>conftest.$ac_ext <<_ACEOF
15516 /* end confdefs.h. */
15517 #include <$ac_header>
15519 if { (ac_try="$ac_cpp conftest.$ac_ext"
15520 case "(($ac_try" in
15521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522 *) ac_try_echo=$ac_try;;
15524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15527 grep -v '^ *+' conftest.er1 >conftest.err
15529 cat conftest.err >&5
15530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15531 (exit $ac_status); } >/dev/null && {
15532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15533 test ! -s conftest.err
15535 ac_header_preproc=yes
15537 echo "$as_me: failed program was:" >&5
15538 sed 's/^/| /' conftest.$ac_ext >&5
15540 ac_header_preproc=no
15543 rm -f conftest.err conftest.$ac_ext
15544 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15545 echo "${ECHO_T}$ac_header_preproc" >&6; }
15547 # So? What about this header?
15548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15554 ac_header_preproc=yes
15557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15564 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15575 echo $ECHO_N "(cached) $ECHO_C" >&6
15577 eval "$as_ac_Header=\$ac_header_preproc"
15579 ac_res=`eval echo '${'$as_ac_Header'}'`
15580 { echo "$as_me:$LINENO: result: $ac_res" >&5
15581 echo "${ECHO_T}$ac_res" >&6; }
15584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15585 cat >>confdefs.h <<_ACEOF
15586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15594 # End of readline/conio stuff
15595 # -----------------------------------------------------------------------
15597 # -----------------------------------------------------------------------
15598 # Check for Python support
15600 { echo "$as_me:$LINENO: checking for Python support" >&5
15601 echo $ECHO_N "checking for Python support... $ECHO_C" >&6; }
15603 # Check whether --with-python was given.
15604 if test "${with_python+set}" = set; then
15605 withval=$with_python;
15608 if test "$withval" != "no"; then
15609 if test "$withval" = "yes"; then
15610 for python_root in /usr /usr/local /usr/sfw; do
15611 for ver in python2.2 python2.3 python2.4 python2.5; do
15612 if test -f $python_root/include/${ver}/Python.h; then
15613 PYTHON_INCDIR=-I$python_root/include/${ver}
15614 if test -d $python_root/lib64/${ver}/config; then
15615 PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
15617 PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
15623 if test x$PYTHON_INCDIR = x; then
15624 if test -f $prefix/include/Python.h; then
15625 PYTHON_INCDIR=-I$prefix/include
15626 if test -d $prefix/lib64/config; then
15627 PYTHON_LIBS="-L$prefix/lib64/config -lpython"
15629 PYTHON_LIBS="-L$prefix/lib/config -lpython"
15632 { echo "$as_me:$LINENO: result: no" >&5
15633 echo "${ECHO_T}no" >&6; }
15634 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
15635 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
15636 { (exit 1); exit 1; }; }
15640 if test -f $withval/Python.h; then
15641 PYTHON_INCDIR=-I$withval
15642 PYTHON_LIBS="-L$withval/config -lpython"
15643 elif test -f $withval/include/Python.h; then
15644 PYTHON_INCDIR=-I$withval/include
15645 if test -d $withval/lib64/config; then
15646 PYTHON_LIBS="-L$withval/lib64/config -lpython"
15648 PYTHON_LIBS="-L$withval/lib/config -lpython"
15650 elif test -f $withval/include/python/Python.h; then
15651 PYTHON_INCDIR=-I$withval/include/python
15652 if test -d $withval/lib64/python/config; then
15653 PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
15655 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
15658 { echo "$as_me:$LINENO: result: no" >&5
15659 echo "${ECHO_T}no" >&6; }
15660 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
15661 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
15662 { (exit 1); exit 1; }; }
15665 cat >>confdefs.h <<\_ACEOF
15666 #define HAVE_PYTHON 1
15669 { echo "$as_me:$LINENO: result: yes" >&5
15670 echo "${ECHO_T}yes" >&6; }
15672 { echo "$as_me:$LINENO: checking for more Python libs" >&5
15673 echo "$as_me: checking for more Python libs" >&6;}
15674 saved_LIBS="$LIBS"; LIBS=
15675 { echo "$as_me:$LINENO: checking for library containing shm_open" >&5
15676 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6; }
15677 if test "${ac_cv_search_shm_open+set}" = set; then
15678 echo $ECHO_N "(cached) $ECHO_C" >&6
15680 ac_func_search_save_LIBS=$LIBS
15681 cat >conftest.$ac_ext <<_ACEOF
15684 cat confdefs.h >>conftest.$ac_ext
15685 cat >>conftest.$ac_ext <<_ACEOF
15686 /* end confdefs.h. */
15688 /* Override any GCC internal prototype to avoid an error.
15689 Use char because int might match the return type of a GCC
15690 builtin and then its argument prototype would still apply. */
15698 return shm_open ();
15703 for ac_lib in '' rt; do
15704 if test -z "$ac_lib"; then
15705 ac_res="none required"
15708 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15710 rm -f conftest.$ac_objext conftest$ac_exeext
15711 if { (ac_try="$ac_link"
15712 case "(($ac_try" in
15713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15714 *) ac_try_echo=$ac_try;;
15716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15717 (eval "$ac_link") 2>conftest.er1
15719 grep -v '^ *+' conftest.er1 >conftest.err
15721 cat conftest.err >&5
15722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15723 (exit $ac_status); } && {
15724 test -z "$ac_c_werror_flag" ||
15725 test ! -s conftest.err
15726 } && test -s conftest$ac_exeext &&
15727 $as_test_x conftest$ac_exeext; then
15728 ac_cv_search_shm_open=$ac_res
15730 echo "$as_me: failed program was:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15738 if test "${ac_cv_search_shm_open+set}" = set; then
15742 if test "${ac_cv_search_shm_open+set}" = set; then
15745 ac_cv_search_shm_open=no
15747 rm conftest.$ac_ext
15748 LIBS=$ac_func_search_save_LIBS
15750 { echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
15751 echo "${ECHO_T}$ac_cv_search_shm_open" >&6; }
15752 ac_res=$ac_cv_search_shm_open
15753 if test "$ac_res" != no; then
15754 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15759 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
15760 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
15761 if test "${ac_cv_lib_util_openpty+set}" = set; then
15762 echo $ECHO_N "(cached) $ECHO_C" >&6
15764 ac_check_lib_save_LIBS=$LIBS
15765 LIBS="-lutil $LIBS"
15766 cat >conftest.$ac_ext <<_ACEOF
15769 cat confdefs.h >>conftest.$ac_ext
15770 cat >>conftest.$ac_ext <<_ACEOF
15771 /* end confdefs.h. */
15773 /* Override any GCC internal prototype to avoid an error.
15774 Use char because int might match the return type of a GCC
15775 builtin and then its argument prototype would still apply. */
15788 rm -f conftest.$ac_objext conftest$ac_exeext
15789 if { (ac_try="$ac_link"
15790 case "(($ac_try" in
15791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792 *) ac_try_echo=$ac_try;;
15794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15795 (eval "$ac_link") 2>conftest.er1
15797 grep -v '^ *+' conftest.er1 >conftest.err
15799 cat conftest.err >&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); } && {
15802 test -z "$ac_c_werror_flag" ||
15803 test ! -s conftest.err
15804 } && test -s conftest$ac_exeext &&
15805 $as_test_x conftest$ac_exeext; then
15806 ac_cv_lib_util_openpty=yes
15808 echo "$as_me: failed program was:" >&5
15809 sed 's/^/| /' conftest.$ac_ext >&5
15811 ac_cv_lib_util_openpty=no
15814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15815 conftest$ac_exeext conftest.$ac_ext
15816 LIBS=$ac_check_lib_save_LIBS
15818 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
15819 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
15820 if test $ac_cv_lib_util_openpty = yes; then
15821 cat >>confdefs.h <<_ACEOF
15822 #define HAVE_LIBUTIL 1
15825 LIBS="-lutil $LIBS"
15829 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
15832 { echo "$as_me:$LINENO: result: no" >&5
15833 echo "${ECHO_T}no" >&6; }
15838 { echo "$as_me:$LINENO: result: no" >&5
15839 echo "${ECHO_T}no" >&6; }
15847 # Find where sockets are (especially for Solaris)
15848 # Do this before the TCP Wrappers test since tcp wrappers
15849 # uses the socket library and some linkers are stupid.
15851 { echo "$as_me:$LINENO: checking for socket" >&5
15852 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15853 if test "${ac_cv_func_socket+set}" = set; then
15854 echo $ECHO_N "(cached) $ECHO_C" >&6
15856 cat >conftest.$ac_ext <<_ACEOF
15859 cat confdefs.h >>conftest.$ac_ext
15860 cat >>conftest.$ac_ext <<_ACEOF
15861 /* end confdefs.h. */
15862 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15864 #define socket innocuous_socket
15866 /* System header to define __stub macros and hopefully few prototypes,
15867 which can conflict with char socket (); below.
15868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15869 <limits.h> exists even on freestanding compilers. */
15872 # include <limits.h>
15874 # include <assert.h>
15879 /* Override any GCC internal prototype to avoid an error.
15880 Use char because int might match the return type of a GCC
15881 builtin and then its argument prototype would still apply. */
15886 /* The GNU C library defines this for functions which it implements
15887 to always fail with ENOSYS. Some functions are actually named
15888 something starting with __ and the normal name is an alias. */
15889 #if defined __stub_socket || defined __stub___socket
15901 rm -f conftest.$ac_objext conftest$ac_exeext
15902 if { (ac_try="$ac_link"
15903 case "(($ac_try" in
15904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15905 *) ac_try_echo=$ac_try;;
15907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15908 (eval "$ac_link") 2>conftest.er1
15910 grep -v '^ *+' conftest.er1 >conftest.err
15912 cat conftest.err >&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } && {
15915 test -z "$ac_c_werror_flag" ||
15916 test ! -s conftest.err
15917 } && test -s conftest$ac_exeext &&
15918 $as_test_x conftest$ac_exeext; then
15919 ac_cv_func_socket=yes
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15924 ac_cv_func_socket=no
15927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15928 conftest$ac_exeext conftest.$ac_ext
15930 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15931 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15932 if test $ac_cv_func_socket = yes; then
15933 { echo "$as_me:$LINENO: result: using libc's socket" >&5
15934 echo "${ECHO_T}using libc's socket" >&6; }
15937 { echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15938 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6; }
15939 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15940 echo $ECHO_N "(cached) $ECHO_C" >&6
15942 ac_check_lib_save_LIBS=$LIBS
15943 LIBS="-lxnet $LIBS"
15944 cat >conftest.$ac_ext <<_ACEOF
15947 cat confdefs.h >>conftest.$ac_ext
15948 cat >>conftest.$ac_ext <<_ACEOF
15949 /* end confdefs.h. */
15951 /* Override any GCC internal prototype to avoid an error.
15952 Use char because int might match the return type of a GCC
15953 builtin and then its argument prototype would still apply. */
15966 rm -f conftest.$ac_objext conftest$ac_exeext
15967 if { (ac_try="$ac_link"
15968 case "(($ac_try" in
15969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15970 *) ac_try_echo=$ac_try;;
15972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15973 (eval "$ac_link") 2>conftest.er1
15975 grep -v '^ *+' conftest.er1 >conftest.err
15977 cat conftest.err >&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); } && {
15980 test -z "$ac_c_werror_flag" ||
15981 test ! -s conftest.err
15982 } && test -s conftest$ac_exeext &&
15983 $as_test_x conftest$ac_exeext; then
15984 ac_cv_lib_xnet_socket=yes
15986 echo "$as_me: failed program was:" >&5
15987 sed 's/^/| /' conftest.$ac_ext >&5
15989 ac_cv_lib_xnet_socket=no
15992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15993 conftest$ac_exeext conftest.$ac_ext
15994 LIBS=$ac_check_lib_save_LIBS
15996 { echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15997 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6; }
15998 if test $ac_cv_lib_xnet_socket = yes; then
15999 cat >>confdefs.h <<_ACEOF
16000 #define HAVE_LIBXNET 1
16003 LIBS="-lxnet $LIBS"
16008 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16009 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
16010 if test "${ac_cv_lib_socket_socket+set}" = set; then
16011 echo $ECHO_N "(cached) $ECHO_C" >&6
16013 ac_check_lib_save_LIBS=$LIBS
16014 LIBS="-lsocket $LIBS"
16015 cat >conftest.$ac_ext <<_ACEOF
16018 cat confdefs.h >>conftest.$ac_ext
16019 cat >>conftest.$ac_ext <<_ACEOF
16020 /* end confdefs.h. */
16022 /* Override any GCC internal prototype to avoid an error.
16023 Use char because int might match the return type of a GCC
16024 builtin and then its argument prototype would still apply. */
16037 rm -f conftest.$ac_objext conftest$ac_exeext
16038 if { (ac_try="$ac_link"
16039 case "(($ac_try" in
16040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16041 *) ac_try_echo=$ac_try;;
16043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16044 (eval "$ac_link") 2>conftest.er1
16046 grep -v '^ *+' conftest.er1 >conftest.err
16048 cat conftest.err >&5
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); } && {
16051 test -z "$ac_c_werror_flag" ||
16052 test ! -s conftest.err
16053 } && test -s conftest$ac_exeext &&
16054 $as_test_x conftest$ac_exeext; then
16055 ac_cv_lib_socket_socket=yes
16057 echo "$as_me: failed program was:" >&5
16058 sed 's/^/| /' conftest.$ac_ext >&5
16060 ac_cv_lib_socket_socket=no
16063 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16064 conftest$ac_exeext conftest.$ac_ext
16065 LIBS=$ac_check_lib_save_LIBS
16067 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16068 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
16069 if test $ac_cv_lib_socket_socket = yes; then
16070 cat >>confdefs.h <<_ACEOF
16071 #define HAVE_LIBSOCKET 1
16074 LIBS="-lsocket $LIBS"
16079 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
16080 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
16081 if test "${ac_cv_lib_inet_socket+set}" = set; then
16082 echo $ECHO_N "(cached) $ECHO_C" >&6
16084 ac_check_lib_save_LIBS=$LIBS
16085 LIBS="-linet $LIBS"
16086 cat >conftest.$ac_ext <<_ACEOF
16089 cat confdefs.h >>conftest.$ac_ext
16090 cat >>conftest.$ac_ext <<_ACEOF
16091 /* end confdefs.h. */
16093 /* Override any GCC internal prototype to avoid an error.
16094 Use char because int might match the return type of a GCC
16095 builtin and then its argument prototype would still apply. */
16108 rm -f conftest.$ac_objext conftest$ac_exeext
16109 if { (ac_try="$ac_link"
16110 case "(($ac_try" in
16111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16112 *) ac_try_echo=$ac_try;;
16114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16115 (eval "$ac_link") 2>conftest.er1
16117 grep -v '^ *+' conftest.er1 >conftest.err
16119 cat conftest.err >&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); } && {
16122 test -z "$ac_c_werror_flag" ||
16123 test ! -s conftest.err
16124 } && test -s conftest$ac_exeext &&
16125 $as_test_x conftest$ac_exeext; then
16126 ac_cv_lib_inet_socket=yes
16128 echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16131 ac_cv_lib_inet_socket=no
16134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16135 conftest$ac_exeext conftest.$ac_ext
16136 LIBS=$ac_check_lib_save_LIBS
16138 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16139 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16140 if test $ac_cv_lib_inet_socket = yes; then
16141 cat >>confdefs.h <<_ACEOF
16142 #define HAVE_LIBINET 1
16145 LIBS="-linet $LIBS"
16153 # -----------------------------------------------------------
16154 # Check whether user wants TCP wrappers support (default off)
16155 # -----------------------------------------------------------
16159 # Check whether --with-tcp-wrappers was given.
16160 if test "${with_tcp_wrappers+set}" = set; then
16161 withval=$with_tcp_wrappers;
16162 if test "x$withval" != "xno" ; then
16164 LIBS="$saved_LIBS -lwrap"
16165 { echo "$as_me:$LINENO: checking for libwrap" >&5
16166 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6; }
16167 { echo "$as_me:$LINENO: checking for library containing nanosleep" >&5
16168 echo $ECHO_N "checking for library containing nanosleep... $ECHO_C" >&6; }
16169 if test "${ac_cv_search_nanosleep+set}" = set; then
16170 echo $ECHO_N "(cached) $ECHO_C" >&6
16172 ac_func_search_save_LIBS=$LIBS
16173 cat >conftest.$ac_ext <<_ACEOF
16176 cat confdefs.h >>conftest.$ac_ext
16177 cat >>conftest.$ac_ext <<_ACEOF
16178 /* end confdefs.h. */
16180 /* Override any GCC internal prototype to avoid an error.
16181 Use char because int might match the return type of a GCC
16182 builtin and then its argument prototype would still apply. */
16190 return nanosleep ();
16195 for ac_lib in '' rt; do
16196 if test -z "$ac_lib"; then
16197 ac_res="none required"
16200 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16202 rm -f conftest.$ac_objext conftest$ac_exeext
16203 if { (ac_try="$ac_link"
16204 case "(($ac_try" in
16205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206 *) ac_try_echo=$ac_try;;
16208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209 (eval "$ac_link") 2>conftest.er1
16211 grep -v '^ *+' conftest.er1 >conftest.err
16213 cat conftest.err >&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); } && {
16216 test -z "$ac_c_werror_flag" ||
16217 test ! -s conftest.err
16218 } && test -s conftest$ac_exeext &&
16219 $as_test_x conftest$ac_exeext; then
16220 ac_cv_search_nanosleep=$ac_res
16222 echo "$as_me: failed program was:" >&5
16223 sed 's/^/| /' conftest.$ac_ext >&5
16228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16230 if test "${ac_cv_search_nanosleep+set}" = set; then
16234 if test "${ac_cv_search_nanosleep+set}" = set; then
16237 ac_cv_search_nanosleep=no
16239 rm conftest.$ac_ext
16240 LIBS=$ac_func_search_save_LIBS
16242 { echo "$as_me:$LINENO: result: $ac_cv_search_nanosleep" >&5
16243 echo "${ECHO_T}$ac_cv_search_nanosleep" >&6; }
16244 ac_res=$ac_cv_search_nanosleep
16245 if test "$ac_res" != no; then
16246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16250 cat >conftest.$ac_ext <<_ACEOF
16253 cat confdefs.h >>conftest.$ac_ext
16254 cat >>conftest.$ac_ext <<_ACEOF
16255 /* end confdefs.h. */
16256 #include <sys/types.h>
16258 int deny_severity = 0;
16259 int allow_severity = 0;
16260 struct request_info *req;
16269 rm -f conftest.$ac_objext conftest$ac_exeext
16270 if { (ac_try="$ac_link"
16271 case "(($ac_try" in
16272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273 *) ac_try_echo=$ac_try;;
16275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16276 (eval "$ac_link") 2>conftest.er1
16278 grep -v '^ *+' conftest.er1 >conftest.err
16280 cat conftest.err >&5
16281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16282 (exit $ac_status); } && {
16283 test -z "$ac_c_werror_flag" ||
16284 test ! -s conftest.err
16285 } && test -s conftest$ac_exeext &&
16286 $as_test_x conftest$ac_exeext; then
16288 { echo "$as_me:$LINENO: result: yes" >&5
16289 echo "${ECHO_T}yes" >&6; }
16291 cat >>confdefs.h <<\_ACEOF
16292 #define HAVE_LIBWRAP 1
16300 echo "$as_me: failed program was:" >&5
16301 sed 's/^/| /' conftest.$ac_ext >&5
16304 LIBS="$saved_LIBS -lwrap -lnsl"
16305 WRAPLIBS="$saved_LIBS -lwrap -lnsl"
16306 cat >conftest.$ac_ext <<_ACEOF
16309 cat confdefs.h >>conftest.$ac_ext
16310 cat >>conftest.$ac_ext <<_ACEOF
16311 /* end confdefs.h. */
16312 #include <sys/types.h>
16314 int deny_severity = 0;
16315 int allow_severity = 0;
16316 struct request_info *req;
16325 rm -f conftest.$ac_objext conftest$ac_exeext
16326 if { (ac_try="$ac_link"
16327 case "(($ac_try" in
16328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16329 *) ac_try_echo=$ac_try;;
16331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16332 (eval "$ac_link") 2>conftest.er1
16334 grep -v '^ *+' conftest.er1 >conftest.err
16336 cat conftest.err >&5
16337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16338 (exit $ac_status); } && {
16339 test -z "$ac_c_werror_flag" ||
16340 test ! -s conftest.err
16341 } && test -s conftest$ac_exeext &&
16342 $as_test_x conftest$ac_exeext; then
16344 { echo "$as_me:$LINENO: result: yes" >&5
16345 echo "${ECHO_T}yes" >&6; }
16347 cat >>confdefs.h <<\_ACEOF
16348 #define HAVE_LIBWRAP 1
16356 echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16359 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
16360 echo "$as_me: error: *** libwrap missing" >&2;}
16361 { (exit 1); exit 1; }; }
16365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16366 conftest$ac_exeext conftest.$ac_ext
16370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16371 conftest$ac_exeext conftest.$ac_ext
16378 # -----------------------------------------------------------
16379 # Check whether OpenSSL is available
16380 # -----------------------------------------------------------
16381 { echo "$as_me:$LINENO: checking for OpenSSL" >&5
16382 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6; }
16384 # Check whether --with-openssl was given.
16385 if test "${with_openssl+set}" = set; then
16386 withval=$with_openssl; with_openssl_directory=${withval}
16390 if test "x$with_openssl_directory" != "x"; then
16391 OPENSSL_LIBS="-lssl -lcrypto"
16394 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
16395 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
16396 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
16399 saved_LIBS="${LIBS}"
16400 saved_CFLAGS="${CFLAGS}"
16401 LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
16402 CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
16404 cat >conftest.$ac_ext <<_ACEOF
16407 cat confdefs.h >>conftest.$ac_ext
16408 cat >>conftest.$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16410 #include <openssl/ssl.h>
16414 CRYPTO_set_id_callback(NULL);
16419 rm -f conftest.$ac_objext conftest$ac_exeext
16420 if { (ac_try="$ac_link"
16421 case "(($ac_try" in
16422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16423 *) ac_try_echo=$ac_try;;
16425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16426 (eval "$ac_link") 2>conftest.er1
16428 grep -v '^ *+' conftest.er1 >conftest.err
16430 cat conftest.err >&5
16431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432 (exit $ac_status); } && {
16433 test -z "$ac_c_werror_flag" ||
16434 test ! -s conftest.err
16435 } && test -s conftest$ac_exeext &&
16436 $as_test_x conftest$ac_exeext; then
16439 support_crypto="yes"
16442 echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16450 conftest$ac_exeext conftest.$ac_ext
16452 cat >conftest.$ac_ext <<_ACEOF
16455 cat confdefs.h >>conftest.$ac_ext
16456 cat >>conftest.$ac_ext <<_ACEOF
16457 /* end confdefs.h. */
16458 #include <openssl/evp.h>
16467 rm -f conftest.$ac_objext conftest$ac_exeext
16468 if { (ac_try="$ac_link"
16469 case "(($ac_try" in
16470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16471 *) ac_try_echo=$ac_try;;
16473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16474 (eval "$ac_link") 2>conftest.er1
16476 grep -v '^ *+' conftest.er1 >conftest.err
16478 cat conftest.err >&5
16479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16480 (exit $ac_status); } && {
16481 test -z "$ac_c_werror_flag" ||
16482 test ! -s conftest.err
16483 } && test -s conftest$ac_exeext &&
16484 $as_test_x conftest$ac_exeext; then
16485 ac_cv_openssl_sha2="yes"
16487 echo "$as_me: failed program was:" >&5
16488 sed 's/^/| /' conftest.$ac_ext >&5
16490 ac_cv_openssl_sha2="no"
16494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16495 conftest$ac_exeext conftest.$ac_ext
16497 # Solaris disables greater than 128+ bit encryption in their OpenSSL
16498 # implementation, presumably for export reasons. If 192bit AES
16499 # is available, we assume that we're running with a 'non-export'
16501 cat >conftest.$ac_ext <<_ACEOF
16504 cat confdefs.h >>conftest.$ac_ext
16505 cat >>conftest.$ac_ext <<_ACEOF
16506 /* end confdefs.h. */
16507 #include <openssl/evp.h>
16516 rm -f conftest.$ac_objext conftest$ac_exeext
16517 if { (ac_try="$ac_link"
16518 case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_link") 2>conftest.er1
16525 grep -v '^ *+' conftest.er1 >conftest.err
16527 cat conftest.err >&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); } && {
16530 test -z "$ac_c_werror_flag" ||
16531 test ! -s conftest.err
16532 } && test -s conftest$ac_exeext &&
16533 $as_test_x conftest$ac_exeext; then
16534 ac_cv_openssl_export="no"
16536 echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16539 ac_cv_openssl_export="yes"
16543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16544 conftest$ac_exeext conftest.$ac_ext
16546 LIBS="${saved_LIBS}"
16547 CFLAGS="${saved_CFLAGS}"
16549 if test "$support_tls" = "yes"; then
16551 cat >>confdefs.h <<\_ACEOF
16552 #define HAVE_OPENSSL 1
16556 cat >>confdefs.h <<\_ACEOF
16561 cat >>confdefs.h <<\_ACEOF
16562 #define HAVE_CRYPTO 1
16567 if test "$ac_cv_openssl_sha2" = "yes"; then
16569 cat >>confdefs.h <<\_ACEOF
16570 #define HAVE_SHA2 1
16575 if test "$ac_cv_openssl_export" = "yes"; then
16577 cat >>confdefs.h <<\_ACEOF
16578 #define HAVE_OPENSSL_EXPORT_LIBRARY 1
16584 support_crypto="no"
16589 { echo "$as_me:$LINENO: result: $support_tls" >&5
16590 echo "${ECHO_T}$support_tls" >&6; }
16595 # -----------------------------------------------------------
16596 # dlopen is needed for plugins
16597 # -----------------------------------------------------------
16598 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
16599 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
16600 if test "${ac_cv_search_dlopen+set}" = set; then
16601 echo $ECHO_N "(cached) $ECHO_C" >&6
16603 ac_func_search_save_LIBS=$LIBS
16604 cat >conftest.$ac_ext <<_ACEOF
16607 cat confdefs.h >>conftest.$ac_ext
16608 cat >>conftest.$ac_ext <<_ACEOF
16609 /* end confdefs.h. */
16611 /* Override any GCC internal prototype to avoid an error.
16612 Use char because int might match the return type of a GCC
16613 builtin and then its argument prototype would still apply. */
16626 for ac_lib in '' dl; do
16627 if test -z "$ac_lib"; then
16628 ac_res="none required"
16631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16633 rm -f conftest.$ac_objext conftest$ac_exeext
16634 if { (ac_try="$ac_link"
16635 case "(($ac_try" in
16636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16637 *) ac_try_echo=$ac_try;;
16639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16640 (eval "$ac_link") 2>conftest.er1
16642 grep -v '^ *+' conftest.er1 >conftest.err
16644 cat conftest.err >&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } && {
16647 test -z "$ac_c_werror_flag" ||
16648 test ! -s conftest.err
16649 } && test -s conftest$ac_exeext &&
16650 $as_test_x conftest$ac_exeext; then
16651 ac_cv_search_dlopen=$ac_res
16653 echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16661 if test "${ac_cv_search_dlopen+set}" = set; then
16665 if test "${ac_cv_search_dlopen+set}" = set; then
16668 ac_cv_search_dlopen=no
16670 rm conftest.$ac_ext
16671 LIBS=$ac_func_search_save_LIBS
16673 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
16674 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
16675 ac_res=$ac_cv_search_dlopen
16676 if test "$ac_res" != no; then
16677 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16682 # ------------------------------------------
16683 # Where to place working dir
16684 # ------------------------------------------
16685 working_dir=`eval echo ${prefix}/var/bacula/working`
16687 # Check whether --with-working-dir was given.
16688 if test "${with_working_dir+set}" = set; then
16689 withval=$with_working_dir;
16690 if test "x$withval" != "xno" ; then
16691 working_dir=$withval
16700 # ------------------------------------------------------------------
16701 # If the user has not set archivedir, we set our default as /tmp
16702 # ------------------------------------------------------------------
16705 # Check whether --with-archivedir was given.
16706 if test "${with_archivedir+set}" = set; then
16707 withval=$with_archivedir;
16708 if test "x$withval" != "xno" ; then
16709 archivedir=$withval
16720 # ------------------------------------------
16721 # Where to place scriptdir (script files)
16722 # ------------------------------------------
16723 scriptdir=`eval echo ${sysconfdir}`
16725 # Check whether --with-scriptdir was given.
16726 if test "${with_scriptdir+set}" = set; then
16727 withval=$with_scriptdir;
16728 if test "x$withval" != "xno" ; then
16739 # ------------------------------------------
16740 # Where to place plugindir (script files)
16741 # ------------------------------------------
16742 plugindir=`eval echo ${sysconfdir}`
16744 # Check whether --with-plugindir was given.
16745 if test "${with_plugindir+set}" = set; then
16746 withval=$with_plugindir;
16747 if test "x$withval" != "xno" ; then
16758 # ------------------------------------------
16759 # Where to send dump email
16760 # ------------------------------------------
16761 dump_email=root@localhost
16763 # Check whether --with-dump-email was given.
16764 if test "${with_dump_email+set}" = set; then
16765 withval=$with_dump_email;
16766 if test "x$withval" != "xno" ; then
16767 dump_email=$withval
16776 # ------------------------------------------
16777 # Where to send job email
16778 # ------------------------------------------
16779 job_email=root@localhost
16781 # Check whether --with-job-email was given.
16782 if test "${with_job_email+set}" = set; then
16783 withval=$with_job_email;
16784 if test "x$withval" != "xno" ; then
16794 # ------------------------------------------
16795 # Where to find smtp host
16796 # ------------------------------------------
16797 smtp_host=localhost
16799 # Check whether --with-smtp_host was given.
16800 if test "${with_smtp_host+set}" = set; then
16801 withval=$with_smtp_host;
16802 if test "x$withval" != "xno" ; then
16813 # ------------------------------------
16814 # Where to place pid files
16815 # ------------------------------------
16818 # Check whether --with-pid-dir was given.
16819 if test "${with_pid_dir+set}" = set; then
16820 withval=$with_pid_dir;
16821 if test "x$withval" != "xno" ; then
16829 cat >>confdefs.h <<_ACEOF
16830 #define _PATH_BACULA_PIDDIR "$piddir"
16836 # ------------------------------------
16837 # Where to place subsys "lock file"
16838 # ------------------------------------
16839 subsysdir=/var/run/subsys
16840 if test -d /var/run/subsys; then
16841 subsysdir=/var/run/subsys
16842 elif test -d /var/lock/subsys; then
16843 subsysdir=/var/lock/subsys
16845 subsysdir=/var/run/subsys
16848 # Check whether --with-subsys-dir was given.
16849 if test "${with_subsys_dir+set}" = set; then
16850 withval=$with_subsys_dir;
16851 if test "x$withval" != "xno" ; then
16863 # ------------------------------------
16864 # Where to start assigning ports
16865 # ------------------------------------
16868 # Check whether --with-baseport was given.
16869 if test "${with_baseport+set}" = set; then
16870 withval=$with_baseport;
16871 if test "x$withval" != "xno" ; then
16880 dir_port=`expr $baseport`
16881 fd_port=`expr $baseport + 1`
16882 sd_port=`expr $fd_port + 1`
16889 # ------------------------------------------
16890 # Generate passwords
16891 # ------------------------------------------
16894 # Check whether --with-dir-password was given.
16895 if test "${with_dir_password+set}" = set; then
16896 withval=$with_dir_password;
16897 if test "x$withval" != "xno" ; then
16898 dir_password=$withval
16905 if test "x$dir_password" = "x" ; then
16906 if test "x$OPENSSL" = "xnone" ; then
16907 key=`autoconf/randpass 33`
16909 key=`openssl rand -base64 33`
16916 # Check whether --with-fd-password was given.
16917 if test "${with_fd_password+set}" = set; then
16918 withval=$with_fd_password;
16919 if test "x$withval" != "xno" ; then
16920 fd_password=$withval
16927 if test "x$fd_password" = "x" ; then
16928 if test "x$OPENSSL" = "xnone" ; then
16929 key=`autoconf/randpass 37`
16931 key=`openssl rand -base64 33`
16938 # Check whether --with-sd-password was given.
16939 if test "${with_sd_password+set}" = set; then
16940 withval=$with_sd_password;
16941 if test "x$withval" != "xno" ; then
16942 sd_password=$withval
16949 if test "x$sd_password" = "x" ; then
16950 if test "x$OPENSSL" = "xnone" ; then
16951 key=`autoconf/randpass 41`
16953 key=`openssl rand -base64 33`
16960 # Check whether --with-mon-dir-password was given.
16961 if test "${with_mon_dir_password+set}" = set; then
16962 withval=$with_mon_dir_password;
16963 if test "x$withval" != "xno" ; then
16964 mon_dir_password=$withval
16971 if test "x$mon_dir_password" = "x" ; then
16972 if test "x$OPENSSL" = "xnone" ; then
16973 key=`autoconf/randpass 33`
16975 key=`openssl rand -base64 33`
16977 mon_dir_password=$key
16982 # Check whether --with-mon-fd-password was given.
16983 if test "${with_mon_fd_password+set}" = set; then
16984 withval=$with_mon_fd_password;
16985 if test "x$withval" != "xno" ; then
16986 mon_fd_password=$withval
16993 if test "x$mon_fd_password" = "x" ; then
16994 if test "x$OPENSSL" = "xnone" ; then
16995 key=`autoconf/randpass 37`
16997 key=`openssl rand -base64 33`
16999 mon_fd_password=$key
17004 # Check whether --with-mon-sd-password was given.
17005 if test "${with_mon_sd_password+set}" = set; then
17006 withval=$with_mon_sd_password;
17007 if test "x$withval" != "xno" ; then
17008 mon_sd_password=$withval
17015 if test "x$mon_sd_password" = "x" ; then
17016 if test "x$OPENSSL" = "xnone" ; then
17017 key=`autoconf/randpass 41`
17019 key=`openssl rand -base64 33`
17021 mon_sd_password=$key
17032 # Pickup any database name
17036 # Check whether --with-db_name was given.
17037 if test "${with_db_name+set}" = set; then
17038 withval=$with_db_name;
17039 if test "x$withval" != "x" ; then
17050 # Check whether --with-db_user was given.
17051 if test "${with_db_user+set}" = set; then
17052 withval=$with_db_user;
17053 if test "x$withval" != "x" ; then
17064 # Check whether --with-db_password was given.
17065 if test "${with_db_password+set}" = set; then
17066 withval=$with_db_password;
17067 if test "x$withval" != "x" ; then
17068 db_password=$withval
17077 # Pickup a database port
17081 # Check whether --with-db_port was given.
17082 if test "${with_db_port+set}" = set; then
17083 withval=$with_db_port;
17084 if test "x$withval" != "x" ; then
17094 # Handle users and groups for each daemon
17098 # Check whether --with-dir_user was given.
17099 if test "${with_dir_user+set}" = set; then
17100 withval=$with_dir_user;
17101 if test "x$withval" != "x" ; then
17111 # Check whether --with-dir_group was given.
17112 if test "${with_dir_group+set}" = set; then
17113 withval=$with_dir_group;
17114 if test "x$withval" != "x" ; then
17124 # Check whether --with-sd_user was given.
17125 if test "${with_sd_user+set}" = set; then
17126 withval=$with_sd_user;
17127 if test "x$withval" != "x" ; then
17137 # Check whether --with-sd_group was given.
17138 if test "${with_sd_group+set}" = set; then
17139 withval=$with_sd_group;
17140 if test "x$withval" != "x" ; then
17150 # Check whether --with-fd_user was given.
17151 if test "${with_fd_user+set}" = set; then
17152 withval=$with_fd_user;
17153 if test "x$withval" != "x" ; then
17163 # Check whether --with-fd_group was given.
17164 if test "${with_fd_group+set}" = set; then
17165 withval=$with_fd_group;
17166 if test "x$withval" != "x" ; then
17182 # allow setting default executable permissions
17186 # Check whether --with-sbin-perm was given.
17187 if test "${with_sbin_perm+set}" = set; then
17188 withval=$with_sbin_perm;
17189 if test "x$withval" != "x" ; then
17199 # ------------------------------------------------
17200 # Bacula check for various SQL database engines
17201 # ------------------------------------------------
17203 BA_CHECK_POSTGRESQL_DB
17207 BA_CHECK_SQLITE3_DB
17213 BA_CHECK_DBI_DRIVER
17218 # -------------------------------------------
17219 # enable batch attribute DB insert (default on)
17220 # -------------------------------------------
17221 support_batch_insert=no
17222 A=`nm $SQL_LIB | grep pthread_mutex_lock`
17224 if test $pkg = 0; then
17225 support_batch_insert=yes
17226 # Check whether --enable-batch-insert was given.
17227 if test "${enable_batch_insert+set}" = set; then
17228 enableval=$enable_batch_insert; if test x$enableval = xno; then
17229 support_batch_insert=no
17231 support_batch_insert=yes
17237 # Check if postgresql support batch mode
17238 if test x$DB_TYPE = xpostgresql; then
17239 A=`nm $SQL_LIB | grep PQputCopyData`
17241 if test $pkg != 0; then
17242 support_batch_insert=no
17246 if test x$DB_TYPE = xdbi; then
17250 # Check for batch insert
17251 if test $DB_PROG = postgresql; then
17252 A=`nm $DB_PROG_LIB | grep PQputCopyData`
17256 if test $DB_PROG = mysql; then
17257 A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
17261 if test $DB_PROG = sqlite3; then
17262 A=`nm $DB_PROG_LIB | grep pthread_mutex_lock`
17266 if test $pkg = 0; then
17267 # Check whether --enable-batch-insert was given.
17268 if test "${enable_batch_insert+set}" = set; then
17269 enableval=$enable_batch_insert; if test x$enableval = xno; then
17270 support_batch_insert=no
17272 support_batch_insert=yes
17278 # If dbi was not chosen, let the comment in file
17284 if test $support_batch_insert = yes ; then
17286 cat >>confdefs.h <<\_ACEOF
17287 #define HAVE_BATCH_FILE_INSERT 1
17293 cat >>confdefs.h <<\_ACEOF
17294 #define PROTOTYPES 1
17298 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
17299 if test -z "$CCOPTS"; then
17300 CCOPTS='-g -O2 -Wall'
17308 largefile_support="no"
17310 # Check whether --enable-largefile was given.
17311 if test "${enable_largefile+set}" = set; then
17312 enableval=$enable_largefile;
17315 if test "$enable_largefile" != no; then
17316 if test -n "$ac_tool_prefix"; then
17317 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
17318 set dummy ${ac_tool_prefix}getconf; ac_word=$2
17319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17321 if test "${ac_cv_prog_GETCONF+set}" = set; then
17322 echo $ECHO_N "(cached) $ECHO_C" >&6
17324 if test -n "$GETCONF"; then
17325 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
17327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17328 for as_dir in $PATH
17331 test -z "$as_dir" && as_dir=.
17332 for ac_exec_ext in '' $ac_executable_extensions; do
17333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17334 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
17335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17344 GETCONF=$ac_cv_prog_GETCONF
17345 if test -n "$GETCONF"; then
17346 { echo "$as_me:$LINENO: result: $GETCONF" >&5
17347 echo "${ECHO_T}$GETCONF" >&6; }
17349 { echo "$as_me:$LINENO: result: no" >&5
17350 echo "${ECHO_T}no" >&6; }
17355 if test -z "$ac_cv_prog_GETCONF"; then
17356 ac_ct_GETCONF=$GETCONF
17357 # Extract the first word of "getconf", so it can be a program name with args.
17358 set dummy getconf; ac_word=$2
17359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
17360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17361 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
17362 echo $ECHO_N "(cached) $ECHO_C" >&6
17364 if test -n "$ac_ct_GETCONF"; then
17365 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
17367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17368 for as_dir in $PATH
17371 test -z "$as_dir" && as_dir=.
17372 for ac_exec_ext in '' $ac_executable_extensions; do
17373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17374 ac_cv_prog_ac_ct_GETCONF="getconf"
17375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17384 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
17385 if test -n "$ac_ct_GETCONF"; then
17386 { echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
17387 echo "${ECHO_T}$ac_ct_GETCONF" >&6; }
17389 { echo "$as_me:$LINENO: result: no" >&5
17390 echo "${ECHO_T}no" >&6; }
17393 if test "x$ac_ct_GETCONF" = x; then
17396 case $cross_compiling:$ac_tool_warned in
17398 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
17399 whose name does not start with the host triplet. If you think this
17400 configuration is useful to you, please write to autoconf@gnu.org." >&5
17401 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
17402 whose name does not start with the host triplet. If you think this
17403 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
17404 ac_tool_warned=yes ;;
17406 GETCONF=$ac_ct_GETCONF
17409 GETCONF="$ac_cv_prog_GETCONF"
17412 { echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
17413 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6; }
17414 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
17415 echo $ECHO_N "(cached) $ECHO_C" >&6
17417 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
17418 ac_cv_sys_largefile_CFLAGS=no
17420 # IRIX 6.2 and later require cc -n32.
17421 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
17422 if test "$GCC" != yes; then
17423 ac_cv_sys_largefile_CFLAGS=-n32
17426 CC="$CC $ac_cv_sys_largefile_CFLAGS"
17427 cat >conftest.$ac_ext <<_ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17442 rm -f conftest.$ac_objext conftest$ac_exeext
17443 if { (ac_try="$ac_link"
17444 case "(($ac_try" in
17445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17446 *) ac_try_echo=$ac_try;;
17448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17449 (eval "$ac_link") 2>conftest.er1
17451 grep -v '^ *+' conftest.er1 >conftest.err
17453 cat conftest.err >&5
17454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); } && {
17456 test -z "$ac_c_werror_flag" ||
17457 test ! -s conftest.err
17458 } && test -s conftest$ac_exeext &&
17459 $as_test_x conftest$ac_exeext; then
17462 echo "$as_me: failed program was:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17465 ac_cv_sys_largefile_CFLAGS=no
17468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17469 conftest$ac_exeext conftest.$ac_ext
17474 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
17475 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6; }
17476 { echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
17477 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6; }
17478 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
17479 echo $ECHO_N "(cached) $ECHO_C" >&6
17481 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
17482 ac_cv_sys_largefile_LDFLAGS=no
17486 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
17487 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6; }
17488 { echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
17489 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6; }
17490 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
17491 echo $ECHO_N "(cached) $ECHO_C" >&6
17493 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
17494 ac_cv_sys_largefile_LIBS=no
17498 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
17499 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6; }
17501 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17504 -D_FILE_OFFSET_BITS=*) ;;
17505 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
17506 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
17511 case "$CPPFLAGS" in
17512 '') CPPFLAGS="$ac_flag" ;;
17513 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
17521 '') CFLAGS="$ac_flag" ;;
17522 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
17527 case "$ac_cv_sys_largefile_LDFLAGS" in
17531 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
17532 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
17535 case "$ac_cv_sys_largefile_LIBS" in
17539 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
17540 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
17543 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
17544 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6; }
17545 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
17546 echo $ECHO_N "(cached) $ECHO_C" >&6
17548 ac_cv_sys_file_offset_bits=no
17549 ac_cv_sys_file_offset_bits=64
17550 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17552 -D_FILE_OFFSET_BITS)
17553 ac_cv_sys_file_offset_bits=1 ;;
17554 -D_FILE_OFFSET_BITS=*)
17555 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17560 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
17561 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
17562 if test "$ac_cv_sys_file_offset_bits" != no; then
17564 cat >>confdefs.h <<_ACEOF
17565 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17569 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
17570 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6; }
17571 if test "${ac_cv_sys_largefile_source+set}" = set; then
17572 echo $ECHO_N "(cached) $ECHO_C" >&6
17574 ac_cv_sys_largefile_source=no
17575 ac_cv_sys_largefile_source=1
17576 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17578 -D_LARGEFILE_SOURCE)
17579 ac_cv_sys_largefile_source=1 ;;
17580 -D_LARGEFILE_SOURCE=*)
17581 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17586 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17587 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17588 if test "$ac_cv_sys_largefile_source" != no; then
17590 cat >>confdefs.h <<_ACEOF
17591 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17595 { echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
17596 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6; }
17597 if test "${ac_cv_sys_large_files+set}" = set; then
17598 echo $ECHO_N "(cached) $ECHO_C" >&6
17600 ac_cv_sys_large_files=no
17601 ac_cv_sys_large_files=1
17602 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
17605 ac_cv_sys_large_files=1 ;;
17607 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
17612 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
17613 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
17614 if test "$ac_cv_sys_large_files" != no; then
17616 cat >>confdefs.h <<_ACEOF
17617 #define _LARGE_FILES $ac_cv_sys_large_files
17625 { echo "$as_me:$LINENO: checking for X" >&5
17626 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
17629 # Check whether --with-x was given.
17630 if test "${with_x+set}" = set; then
17634 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17635 if test "x$with_x" = xno; then
17636 # The user explicitly disabled X.
17639 case $x_includes,$x_libraries in #(
17640 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
17641 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
17642 { (exit 1); exit 1; }; };; #(
17643 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
17644 echo $ECHO_N "(cached) $ECHO_C" >&6
17646 # One or both of the vars are not set, and there is no cached value.
17647 ac_x_includes=no ac_x_libraries=no
17648 rm -f -r conftest.dir
17649 if mkdir conftest.dir; then
17651 cat >Imakefile <<'_ACEOF'
17653 @echo incroot='${INCROOT}'
17655 @echo usrlibdir='${USRLIBDIR}'
17657 @echo libdir='${LIBDIR}'
17659 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
17660 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17661 for ac_var in incroot usrlibdir libdir; do
17662 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17664 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17665 for ac_extension in a so sl; do
17666 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17667 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17668 ac_im_usrlibdir=$ac_im_libdir; break
17671 # Screen out bogus values from the imake configuration. They are
17672 # bogus both because they are the default anyway, and because
17673 # using them would break gcc on systems where it needs fixed includes.
17674 case $ac_im_incroot in
17675 /usr/include) ac_x_includes= ;;
17676 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17678 case $ac_im_usrlibdir in
17679 /usr/lib | /lib) ;;
17680 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17684 rm -f -r conftest.dir
17687 # Standard set of common directories for X headers.
17688 # Check X11 before X11Rn because it is often a symlink to the current release.
17700 /usr/local/X11/include
17701 /usr/local/X11R6/include
17702 /usr/local/X11R5/include
17703 /usr/local/X11R4/include
17705 /usr/local/include/X11
17706 /usr/local/include/X11R6
17707 /usr/local/include/X11R5
17708 /usr/local/include/X11R4
17712 /usr/XFree86/include/X11
17716 /usr/unsupported/include
17717 /usr/athena/include
17718 /usr/local/x11r5/include
17719 /usr/lpp/Xamples/include
17721 /usr/openwin/include
17722 /usr/openwin/share/include'
17724 if test "$ac_x_includes" = no; then
17725 # Guess where to find include files, by looking for Xlib.h.
17726 # First, try using that file with no special directory specified.
17727 cat >conftest.$ac_ext <<_ACEOF
17730 cat confdefs.h >>conftest.$ac_ext
17731 cat >>conftest.$ac_ext <<_ACEOF
17732 /* end confdefs.h. */
17733 #include <X11/Xlib.h>
17735 if { (ac_try="$ac_cpp conftest.$ac_ext"
17736 case "(($ac_try" in
17737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738 *) ac_try_echo=$ac_try;;
17740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17743 grep -v '^ *+' conftest.er1 >conftest.err
17745 cat conftest.err >&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); } >/dev/null && {
17748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17749 test ! -s conftest.err
17751 # We can compile using X headers with no special include directory.
17754 echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17757 for ac_dir in $ac_x_header_dirs; do
17758 if test -r "$ac_dir/X11/Xlib.h"; then
17759 ac_x_includes=$ac_dir
17765 rm -f conftest.err conftest.$ac_ext
17766 fi # $ac_x_includes = no
17768 if test "$ac_x_libraries" = no; then
17769 # Check for the libraries.
17770 # See if we find them without any special options.
17771 # Don't add to $LIBS permanently.
17774 cat >conftest.$ac_ext <<_ACEOF
17777 cat confdefs.h >>conftest.$ac_ext
17778 cat >>conftest.$ac_ext <<_ACEOF
17779 /* end confdefs.h. */
17780 #include <X11/Xlib.h>
17789 rm -f conftest.$ac_objext conftest$ac_exeext
17790 if { (ac_try="$ac_link"
17791 case "(($ac_try" in
17792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17793 *) ac_try_echo=$ac_try;;
17795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17796 (eval "$ac_link") 2>conftest.er1
17798 grep -v '^ *+' conftest.er1 >conftest.err
17800 cat conftest.err >&5
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); } && {
17803 test -z "$ac_c_werror_flag" ||
17804 test ! -s conftest.err
17805 } && test -s conftest$ac_exeext &&
17806 $as_test_x conftest$ac_exeext; then
17808 # We can link X programs with no special library path.
17811 echo "$as_me: failed program was:" >&5
17812 sed 's/^/| /' conftest.$ac_ext >&5
17815 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17817 # Don't even attempt the hair of trying to link an X program!
17818 for ac_extension in a so sl; do
17819 if test -r "$ac_dir/libX11.$ac_extension"; then
17820 ac_x_libraries=$ac_dir
17827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17828 conftest$ac_exeext conftest.$ac_ext
17829 fi # $ac_x_libraries = no
17831 case $ac_x_includes,$ac_x_libraries in #(
17832 no,* | *,no | *\'*)
17833 # Didn't find X, or a directory has "'" in its name.
17834 ac_cv_have_x="have_x=no";; #(
17836 # Record where we found X for the cache.
17837 ac_cv_have_x="have_x=yes\
17838 ac_x_includes='$ac_x_includes'\
17839 ac_x_libraries='$ac_x_libraries'"
17845 eval "$ac_cv_have_x"
17848 if test "$have_x" != yes; then
17849 { echo "$as_me:$LINENO: result: $have_x" >&5
17850 echo "${ECHO_T}$have_x" >&6; }
17853 # If each of the values was on the command line, it overrides each guess.
17854 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17855 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17856 # Update the cache value to reflect the command line values.
17857 ac_cv_have_x="have_x=yes\
17858 ac_x_includes='$x_includes'\
17859 ac_x_libraries='$x_libraries'"
17860 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
17861 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
17864 if test "$no_x" = yes; then
17865 # Not all programs may use this symbol, but it does not hurt to define it.
17867 cat >>confdefs.h <<\_ACEOF
17868 #define X_DISPLAY_MISSING 1
17871 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17873 if test -n "$x_includes"; then
17874 X_CFLAGS="$X_CFLAGS -I$x_includes"
17877 # It would also be nice to do this for all -L options, not just this one.
17878 if test -n "$x_libraries"; then
17879 X_LIBS="$X_LIBS -L$x_libraries"
17880 # For Solaris; some versions of Sun CC require a space after -R and
17881 # others require no space. Words are not sufficient . . . .
17882 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
17883 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
17884 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17885 ac_xsave_c_werror_flag=$ac_c_werror_flag
17886 ac_c_werror_flag=yes
17887 cat >conftest.$ac_ext <<_ACEOF
17890 cat confdefs.h >>conftest.$ac_ext
17891 cat >>conftest.$ac_ext <<_ACEOF
17892 /* end confdefs.h. */
17902 rm -f conftest.$ac_objext conftest$ac_exeext
17903 if { (ac_try="$ac_link"
17904 case "(($ac_try" in
17905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17906 *) ac_try_echo=$ac_try;;
17908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17909 (eval "$ac_link") 2>conftest.er1
17911 grep -v '^ *+' conftest.er1 >conftest.err
17913 cat conftest.err >&5
17914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17915 (exit $ac_status); } && {
17916 test -z "$ac_c_werror_flag" ||
17917 test ! -s conftest.err
17918 } && test -s conftest$ac_exeext &&
17919 $as_test_x conftest$ac_exeext; then
17920 { echo "$as_me:$LINENO: result: no" >&5
17921 echo "${ECHO_T}no" >&6; }
17922 X_LIBS="$X_LIBS -R$x_libraries"
17924 echo "$as_me: failed program was:" >&5
17925 sed 's/^/| /' conftest.$ac_ext >&5
17927 LIBS="$ac_xsave_LIBS -R $x_libraries"
17928 cat >conftest.$ac_ext <<_ACEOF
17931 cat confdefs.h >>conftest.$ac_ext
17932 cat >>conftest.$ac_ext <<_ACEOF
17933 /* end confdefs.h. */
17943 rm -f conftest.$ac_objext conftest$ac_exeext
17944 if { (ac_try="$ac_link"
17945 case "(($ac_try" in
17946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947 *) ac_try_echo=$ac_try;;
17949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17950 (eval "$ac_link") 2>conftest.er1
17952 grep -v '^ *+' conftest.er1 >conftest.err
17954 cat conftest.err >&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); } && {
17957 test -z "$ac_c_werror_flag" ||
17958 test ! -s conftest.err
17959 } && test -s conftest$ac_exeext &&
17960 $as_test_x conftest$ac_exeext; then
17961 { echo "$as_me:$LINENO: result: yes" >&5
17962 echo "${ECHO_T}yes" >&6; }
17963 X_LIBS="$X_LIBS -R $x_libraries"
17965 echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17968 { echo "$as_me:$LINENO: result: neither works" >&5
17969 echo "${ECHO_T}neither works" >&6; }
17972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17973 conftest$ac_exeext conftest.$ac_ext
17976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17977 conftest$ac_exeext conftest.$ac_ext
17978 ac_c_werror_flag=$ac_xsave_c_werror_flag
17979 LIBS=$ac_xsave_LIBS
17982 # Check for system-dependent libraries X programs must link with.
17983 # Do this before checking for the system-independent R6 libraries
17984 # (-lICE), since we may need -lsocket or whatever for X linking.
17986 if test "$ISC" = yes; then
17987 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17989 # Martyn Johnson says this is needed for Ultrix, if the X
17990 # libraries were built with DECnet support. And Karl Berry says
17991 # the Alpha needs dnet_stub (dnet does not exist).
17992 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17993 cat >conftest.$ac_ext <<_ACEOF
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h. */
18000 /* Override any GCC internal prototype to avoid an error.
18001 Use char because int might match the return type of a GCC
18002 builtin and then its argument prototype would still apply. */
18006 char XOpenDisplay ();
18010 return XOpenDisplay ();
18015 rm -f conftest.$ac_objext conftest$ac_exeext
18016 if { (ac_try="$ac_link"
18017 case "(($ac_try" in
18018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18019 *) ac_try_echo=$ac_try;;
18021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18022 (eval "$ac_link") 2>conftest.er1
18024 grep -v '^ *+' conftest.er1 >conftest.err
18026 cat conftest.err >&5
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); } && {
18029 test -z "$ac_c_werror_flag" ||
18030 test ! -s conftest.err
18031 } && test -s conftest$ac_exeext &&
18032 $as_test_x conftest$ac_exeext; then
18035 echo "$as_me: failed program was:" >&5
18036 sed 's/^/| /' conftest.$ac_ext >&5
18038 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
18039 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
18040 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
18041 echo $ECHO_N "(cached) $ECHO_C" >&6
18043 ac_check_lib_save_LIBS=$LIBS
18044 LIBS="-ldnet $LIBS"
18045 cat >conftest.$ac_ext <<_ACEOF
18048 cat confdefs.h >>conftest.$ac_ext
18049 cat >>conftest.$ac_ext <<_ACEOF
18050 /* end confdefs.h. */
18052 /* Override any GCC internal prototype to avoid an error.
18053 Use char because int might match the return type of a GCC
18054 builtin and then its argument prototype would still apply. */
18062 return dnet_ntoa ();
18067 rm -f conftest.$ac_objext conftest$ac_exeext
18068 if { (ac_try="$ac_link"
18069 case "(($ac_try" in
18070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18071 *) ac_try_echo=$ac_try;;
18073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18074 (eval "$ac_link") 2>conftest.er1
18076 grep -v '^ *+' conftest.er1 >conftest.err
18078 cat conftest.err >&5
18079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18080 (exit $ac_status); } && {
18081 test -z "$ac_c_werror_flag" ||
18082 test ! -s conftest.err
18083 } && test -s conftest$ac_exeext &&
18084 $as_test_x conftest$ac_exeext; then
18085 ac_cv_lib_dnet_dnet_ntoa=yes
18087 echo "$as_me: failed program was:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18090 ac_cv_lib_dnet_dnet_ntoa=no
18093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18094 conftest$ac_exeext conftest.$ac_ext
18095 LIBS=$ac_check_lib_save_LIBS
18097 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18098 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18099 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
18100 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18103 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18104 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
18105 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
18106 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
18107 echo $ECHO_N "(cached) $ECHO_C" >&6
18109 ac_check_lib_save_LIBS=$LIBS
18110 LIBS="-ldnet_stub $LIBS"
18111 cat >conftest.$ac_ext <<_ACEOF
18114 cat confdefs.h >>conftest.$ac_ext
18115 cat >>conftest.$ac_ext <<_ACEOF
18116 /* end confdefs.h. */
18118 /* Override any GCC internal prototype to avoid an error.
18119 Use char because int might match the return type of a GCC
18120 builtin and then its argument prototype would still apply. */
18128 return dnet_ntoa ();
18133 rm -f conftest.$ac_objext conftest$ac_exeext
18134 if { (ac_try="$ac_link"
18135 case "(($ac_try" in
18136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18137 *) ac_try_echo=$ac_try;;
18139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18140 (eval "$ac_link") 2>conftest.er1
18142 grep -v '^ *+' conftest.er1 >conftest.err
18144 cat conftest.err >&5
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); } && {
18147 test -z "$ac_c_werror_flag" ||
18148 test ! -s conftest.err
18149 } && test -s conftest$ac_exeext &&
18150 $as_test_x conftest$ac_exeext; then
18151 ac_cv_lib_dnet_stub_dnet_ntoa=yes
18153 echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18156 ac_cv_lib_dnet_stub_dnet_ntoa=no
18159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18160 conftest$ac_exeext conftest.$ac_ext
18161 LIBS=$ac_check_lib_save_LIBS
18163 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18164 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18165 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
18166 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18173 conftest$ac_exeext conftest.$ac_ext
18174 LIBS="$ac_xsave_LIBS"
18176 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18177 # to get the SysV transport functions.
18178 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18180 # The nsl library prevents programs from opening the X display
18181 # on Irix 5.2, according to T.E. Dickey.
18182 # The functions gethostbyname, getservbyname, and inet_addr are
18183 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18184 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
18185 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
18186 if test "${ac_cv_func_gethostbyname+set}" = set; then
18187 echo $ECHO_N "(cached) $ECHO_C" >&6
18189 cat >conftest.$ac_ext <<_ACEOF
18192 cat confdefs.h >>conftest.$ac_ext
18193 cat >>conftest.$ac_ext <<_ACEOF
18194 /* end confdefs.h. */
18195 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
18196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18197 #define gethostbyname innocuous_gethostbyname
18199 /* System header to define __stub macros and hopefully few prototypes,
18200 which can conflict with char gethostbyname (); below.
18201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18202 <limits.h> exists even on freestanding compilers. */
18205 # include <limits.h>
18207 # include <assert.h>
18210 #undef gethostbyname
18212 /* Override any GCC internal prototype to avoid an error.
18213 Use char because int might match the return type of a GCC
18214 builtin and then its argument prototype would still apply. */
18218 char gethostbyname ();
18219 /* The GNU C library defines this for functions which it implements
18220 to always fail with ENOSYS. Some functions are actually named
18221 something starting with __ and the normal name is an alias. */
18222 #if defined __stub_gethostbyname || defined __stub___gethostbyname
18229 return gethostbyname ();
18234 rm -f conftest.$ac_objext conftest$ac_exeext
18235 if { (ac_try="$ac_link"
18236 case "(($ac_try" in
18237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238 *) ac_try_echo=$ac_try;;
18240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18241 (eval "$ac_link") 2>conftest.er1
18243 grep -v '^ *+' conftest.er1 >conftest.err
18245 cat conftest.err >&5
18246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18247 (exit $ac_status); } && {
18248 test -z "$ac_c_werror_flag" ||
18249 test ! -s conftest.err
18250 } && test -s conftest$ac_exeext &&
18251 $as_test_x conftest$ac_exeext; then
18252 ac_cv_func_gethostbyname=yes
18254 echo "$as_me: failed program was:" >&5
18255 sed 's/^/| /' conftest.$ac_ext >&5
18257 ac_cv_func_gethostbyname=no
18260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18261 conftest$ac_exeext conftest.$ac_ext
18263 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
18264 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
18266 if test $ac_cv_func_gethostbyname = no; then
18267 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
18268 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
18269 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
18270 echo $ECHO_N "(cached) $ECHO_C" >&6
18272 ac_check_lib_save_LIBS=$LIBS
18274 cat >conftest.$ac_ext <<_ACEOF
18277 cat confdefs.h >>conftest.$ac_ext
18278 cat >>conftest.$ac_ext <<_ACEOF
18279 /* end confdefs.h. */
18281 /* Override any GCC internal prototype to avoid an error.
18282 Use char because int might match the return type of a GCC
18283 builtin and then its argument prototype would still apply. */
18287 char gethostbyname ();
18291 return gethostbyname ();
18296 rm -f conftest.$ac_objext conftest$ac_exeext
18297 if { (ac_try="$ac_link"
18298 case "(($ac_try" in
18299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18300 *) ac_try_echo=$ac_try;;
18302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18303 (eval "$ac_link") 2>conftest.er1
18305 grep -v '^ *+' conftest.er1 >conftest.err
18307 cat conftest.err >&5
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); } && {
18310 test -z "$ac_c_werror_flag" ||
18311 test ! -s conftest.err
18312 } && test -s conftest$ac_exeext &&
18313 $as_test_x conftest$ac_exeext; then
18314 ac_cv_lib_nsl_gethostbyname=yes
18316 echo "$as_me: failed program was:" >&5
18317 sed 's/^/| /' conftest.$ac_ext >&5
18319 ac_cv_lib_nsl_gethostbyname=no
18322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18323 conftest$ac_exeext conftest.$ac_ext
18324 LIBS=$ac_check_lib_save_LIBS
18326 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
18327 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
18328 if test $ac_cv_lib_nsl_gethostbyname = yes; then
18329 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18332 if test $ac_cv_lib_nsl_gethostbyname = no; then
18333 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
18334 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
18335 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
18336 echo $ECHO_N "(cached) $ECHO_C" >&6
18338 ac_check_lib_save_LIBS=$LIBS
18340 cat >conftest.$ac_ext <<_ACEOF
18343 cat confdefs.h >>conftest.$ac_ext
18344 cat >>conftest.$ac_ext <<_ACEOF
18345 /* end confdefs.h. */
18347 /* Override any GCC internal prototype to avoid an error.
18348 Use char because int might match the return type of a GCC
18349 builtin and then its argument prototype would still apply. */
18353 char gethostbyname ();
18357 return gethostbyname ();
18362 rm -f conftest.$ac_objext conftest$ac_exeext
18363 if { (ac_try="$ac_link"
18364 case "(($ac_try" in
18365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18366 *) ac_try_echo=$ac_try;;
18368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18369 (eval "$ac_link") 2>conftest.er1
18371 grep -v '^ *+' conftest.er1 >conftest.err
18373 cat conftest.err >&5
18374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18375 (exit $ac_status); } && {
18376 test -z "$ac_c_werror_flag" ||
18377 test ! -s conftest.err
18378 } && test -s conftest$ac_exeext &&
18379 $as_test_x conftest$ac_exeext; then
18380 ac_cv_lib_bsd_gethostbyname=yes
18382 echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18385 ac_cv_lib_bsd_gethostbyname=no
18388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18389 conftest$ac_exeext conftest.$ac_ext
18390 LIBS=$ac_check_lib_save_LIBS
18392 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
18393 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
18394 if test $ac_cv_lib_bsd_gethostbyname = yes; then
18395 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18401 # lieder@skyler.mavd.honeywell.com says without -lsocket,
18402 # socket/setsockopt and other routines are undefined under SCO ODT
18403 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
18404 # on later versions), says Simon Leinen: it contains gethostby*
18405 # variants that don't use the name server (or something). -lsocket
18406 # must be given before -lnsl if both are needed. We assume that
18407 # if connect needs -lnsl, so does gethostbyname.
18408 { echo "$as_me:$LINENO: checking for connect" >&5
18409 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
18410 if test "${ac_cv_func_connect+set}" = set; then
18411 echo $ECHO_N "(cached) $ECHO_C" >&6
18413 cat >conftest.$ac_ext <<_ACEOF
18416 cat confdefs.h >>conftest.$ac_ext
18417 cat >>conftest.$ac_ext <<_ACEOF
18418 /* end confdefs.h. */
18419 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
18420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18421 #define connect innocuous_connect
18423 /* System header to define __stub macros and hopefully few prototypes,
18424 which can conflict with char connect (); below.
18425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18426 <limits.h> exists even on freestanding compilers. */
18429 # include <limits.h>
18431 # include <assert.h>
18436 /* Override any GCC internal prototype to avoid an error.
18437 Use char because int might match the return type of a GCC
18438 builtin and then its argument prototype would still apply. */
18443 /* The GNU C library defines this for functions which it implements
18444 to always fail with ENOSYS. Some functions are actually named
18445 something starting with __ and the normal name is an alias. */
18446 #if defined __stub_connect || defined __stub___connect
18458 rm -f conftest.$ac_objext conftest$ac_exeext
18459 if { (ac_try="$ac_link"
18460 case "(($ac_try" in
18461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462 *) ac_try_echo=$ac_try;;
18464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465 (eval "$ac_link") 2>conftest.er1
18467 grep -v '^ *+' conftest.er1 >conftest.err
18469 cat conftest.err >&5
18470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18471 (exit $ac_status); } && {
18472 test -z "$ac_c_werror_flag" ||
18473 test ! -s conftest.err
18474 } && test -s conftest$ac_exeext &&
18475 $as_test_x conftest$ac_exeext; then
18476 ac_cv_func_connect=yes
18478 echo "$as_me: failed program was:" >&5
18479 sed 's/^/| /' conftest.$ac_ext >&5
18481 ac_cv_func_connect=no
18484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18485 conftest$ac_exeext conftest.$ac_ext
18487 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
18488 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
18490 if test $ac_cv_func_connect = no; then
18491 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
18492 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
18493 if test "${ac_cv_lib_socket_connect+set}" = set; then
18494 echo $ECHO_N "(cached) $ECHO_C" >&6
18496 ac_check_lib_save_LIBS=$LIBS
18497 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18498 cat >conftest.$ac_ext <<_ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h. */
18505 /* Override any GCC internal prototype to avoid an error.
18506 Use char because int might match the return type of a GCC
18507 builtin and then its argument prototype would still apply. */
18520 rm -f conftest.$ac_objext conftest$ac_exeext
18521 if { (ac_try="$ac_link"
18522 case "(($ac_try" in
18523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524 *) ac_try_echo=$ac_try;;
18526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18527 (eval "$ac_link") 2>conftest.er1
18529 grep -v '^ *+' conftest.er1 >conftest.err
18531 cat conftest.err >&5
18532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18533 (exit $ac_status); } && {
18534 test -z "$ac_c_werror_flag" ||
18535 test ! -s conftest.err
18536 } && test -s conftest$ac_exeext &&
18537 $as_test_x conftest$ac_exeext; then
18538 ac_cv_lib_socket_connect=yes
18540 echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18543 ac_cv_lib_socket_connect=no
18546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18547 conftest$ac_exeext conftest.$ac_ext
18548 LIBS=$ac_check_lib_save_LIBS
18550 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
18551 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
18552 if test $ac_cv_lib_socket_connect = yes; then
18553 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18558 # Guillermo Gomez says -lposix is necessary on A/UX.
18559 { echo "$as_me:$LINENO: checking for remove" >&5
18560 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
18561 if test "${ac_cv_func_remove+set}" = set; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
18564 cat >conftest.$ac_ext <<_ACEOF
18567 cat confdefs.h >>conftest.$ac_ext
18568 cat >>conftest.$ac_ext <<_ACEOF
18569 /* end confdefs.h. */
18570 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
18571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18572 #define remove innocuous_remove
18574 /* System header to define __stub macros and hopefully few prototypes,
18575 which can conflict with char remove (); below.
18576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18577 <limits.h> exists even on freestanding compilers. */
18580 # include <limits.h>
18582 # include <assert.h>
18587 /* Override any GCC internal prototype to avoid an error.
18588 Use char because int might match the return type of a GCC
18589 builtin and then its argument prototype would still apply. */
18594 /* The GNU C library defines this for functions which it implements
18595 to always fail with ENOSYS. Some functions are actually named
18596 something starting with __ and the normal name is an alias. */
18597 #if defined __stub_remove || defined __stub___remove
18609 rm -f conftest.$ac_objext conftest$ac_exeext
18610 if { (ac_try="$ac_link"
18611 case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_link") 2>conftest.er1
18618 grep -v '^ *+' conftest.er1 >conftest.err
18620 cat conftest.err >&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); } && {
18623 test -z "$ac_c_werror_flag" ||
18624 test ! -s conftest.err
18625 } && test -s conftest$ac_exeext &&
18626 $as_test_x conftest$ac_exeext; then
18627 ac_cv_func_remove=yes
18629 echo "$as_me: failed program was:" >&5
18630 sed 's/^/| /' conftest.$ac_ext >&5
18632 ac_cv_func_remove=no
18635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18636 conftest$ac_exeext conftest.$ac_ext
18638 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
18639 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
18641 if test $ac_cv_func_remove = no; then
18642 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
18643 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
18644 if test "${ac_cv_lib_posix_remove+set}" = set; then
18645 echo $ECHO_N "(cached) $ECHO_C" >&6
18647 ac_check_lib_save_LIBS=$LIBS
18648 LIBS="-lposix $LIBS"
18649 cat >conftest.$ac_ext <<_ACEOF
18652 cat confdefs.h >>conftest.$ac_ext
18653 cat >>conftest.$ac_ext <<_ACEOF
18654 /* end confdefs.h. */
18656 /* Override any GCC internal prototype to avoid an error.
18657 Use char because int might match the return type of a GCC
18658 builtin and then its argument prototype would still apply. */
18671 rm -f conftest.$ac_objext conftest$ac_exeext
18672 if { (ac_try="$ac_link"
18673 case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678 (eval "$ac_link") 2>conftest.er1
18680 grep -v '^ *+' conftest.er1 >conftest.err
18682 cat conftest.err >&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } && {
18685 test -z "$ac_c_werror_flag" ||
18686 test ! -s conftest.err
18687 } && test -s conftest$ac_exeext &&
18688 $as_test_x conftest$ac_exeext; then
18689 ac_cv_lib_posix_remove=yes
18691 echo "$as_me: failed program was:" >&5
18692 sed 's/^/| /' conftest.$ac_ext >&5
18694 ac_cv_lib_posix_remove=no
18697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18698 conftest$ac_exeext conftest.$ac_ext
18699 LIBS=$ac_check_lib_save_LIBS
18701 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
18702 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
18703 if test $ac_cv_lib_posix_remove = yes; then
18704 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18709 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18710 { echo "$as_me:$LINENO: checking for shmat" >&5
18711 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
18712 if test "${ac_cv_func_shmat+set}" = set; then
18713 echo $ECHO_N "(cached) $ECHO_C" >&6
18715 cat >conftest.$ac_ext <<_ACEOF
18718 cat confdefs.h >>conftest.$ac_ext
18719 cat >>conftest.$ac_ext <<_ACEOF
18720 /* end confdefs.h. */
18721 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
18722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18723 #define shmat innocuous_shmat
18725 /* System header to define __stub macros and hopefully few prototypes,
18726 which can conflict with char shmat (); below.
18727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18728 <limits.h> exists even on freestanding compilers. */
18731 # include <limits.h>
18733 # include <assert.h>
18738 /* Override any GCC internal prototype to avoid an error.
18739 Use char because int might match the return type of a GCC
18740 builtin and then its argument prototype would still apply. */
18745 /* The GNU C library defines this for functions which it implements
18746 to always fail with ENOSYS. Some functions are actually named
18747 something starting with __ and the normal name is an alias. */
18748 #if defined __stub_shmat || defined __stub___shmat
18760 rm -f conftest.$ac_objext conftest$ac_exeext
18761 if { (ac_try="$ac_link"
18762 case "(($ac_try" in
18763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18764 *) ac_try_echo=$ac_try;;
18766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18767 (eval "$ac_link") 2>conftest.er1
18769 grep -v '^ *+' conftest.er1 >conftest.err
18771 cat conftest.err >&5
18772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18773 (exit $ac_status); } && {
18774 test -z "$ac_c_werror_flag" ||
18775 test ! -s conftest.err
18776 } && test -s conftest$ac_exeext &&
18777 $as_test_x conftest$ac_exeext; then
18778 ac_cv_func_shmat=yes
18780 echo "$as_me: failed program was:" >&5
18781 sed 's/^/| /' conftest.$ac_ext >&5
18783 ac_cv_func_shmat=no
18786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18787 conftest$ac_exeext conftest.$ac_ext
18789 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
18790 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
18792 if test $ac_cv_func_shmat = no; then
18793 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
18794 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
18795 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
18796 echo $ECHO_N "(cached) $ECHO_C" >&6
18798 ac_check_lib_save_LIBS=$LIBS
18800 cat >conftest.$ac_ext <<_ACEOF
18803 cat confdefs.h >>conftest.$ac_ext
18804 cat >>conftest.$ac_ext <<_ACEOF
18805 /* end confdefs.h. */
18807 /* Override any GCC internal prototype to avoid an error.
18808 Use char because int might match the return type of a GCC
18809 builtin and then its argument prototype would still apply. */
18822 rm -f conftest.$ac_objext conftest$ac_exeext
18823 if { (ac_try="$ac_link"
18824 case "(($ac_try" in
18825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18826 *) ac_try_echo=$ac_try;;
18828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18829 (eval "$ac_link") 2>conftest.er1
18831 grep -v '^ *+' conftest.er1 >conftest.err
18833 cat conftest.err >&5
18834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18835 (exit $ac_status); } && {
18836 test -z "$ac_c_werror_flag" ||
18837 test ! -s conftest.err
18838 } && test -s conftest$ac_exeext &&
18839 $as_test_x conftest$ac_exeext; then
18840 ac_cv_lib_ipc_shmat=yes
18842 echo "$as_me: failed program was:" >&5
18843 sed 's/^/| /' conftest.$ac_ext >&5
18845 ac_cv_lib_ipc_shmat=no
18848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18849 conftest$ac_exeext conftest.$ac_ext
18850 LIBS=$ac_check_lib_save_LIBS
18852 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
18853 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
18854 if test $ac_cv_lib_ipc_shmat = yes; then
18855 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18861 # Check for libraries that X11R6 Xt/Xaw programs need.
18862 ac_save_LDFLAGS=$LDFLAGS
18863 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18864 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18865 # check for ICE first), but we must link in the order -lSM -lICE or
18866 # we get undefined symbols. So assume we have SM if we have ICE.
18867 # These have to be linked with before -lX11, unlike the other
18868 # libraries we check for below, so use a different variable.
18869 # John Interrante, Karl Berry
18870 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
18871 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
18872 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
18873 echo $ECHO_N "(cached) $ECHO_C" >&6
18875 ac_check_lib_save_LIBS=$LIBS
18876 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18877 cat >conftest.$ac_ext <<_ACEOF
18880 cat confdefs.h >>conftest.$ac_ext
18881 cat >>conftest.$ac_ext <<_ACEOF
18882 /* end confdefs.h. */
18884 /* Override any GCC internal prototype to avoid an error.
18885 Use char because int might match the return type of a GCC
18886 builtin and then its argument prototype would still apply. */
18890 char IceConnectionNumber ();
18894 return IceConnectionNumber ();
18899 rm -f conftest.$ac_objext conftest$ac_exeext
18900 if { (ac_try="$ac_link"
18901 case "(($ac_try" in
18902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903 *) ac_try_echo=$ac_try;;
18905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18906 (eval "$ac_link") 2>conftest.er1
18908 grep -v '^ *+' conftest.er1 >conftest.err
18910 cat conftest.err >&5
18911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18912 (exit $ac_status); } && {
18913 test -z "$ac_c_werror_flag" ||
18914 test ! -s conftest.err
18915 } && test -s conftest$ac_exeext &&
18916 $as_test_x conftest$ac_exeext; then
18917 ac_cv_lib_ICE_IceConnectionNumber=yes
18919 echo "$as_me: failed program was:" >&5
18920 sed 's/^/| /' conftest.$ac_ext >&5
18922 ac_cv_lib_ICE_IceConnectionNumber=no
18925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18926 conftest$ac_exeext conftest.$ac_ext
18927 LIBS=$ac_check_lib_save_LIBS
18929 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18930 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
18931 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
18932 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18935 LDFLAGS=$ac_save_LDFLAGS
19003 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19008 echo $ECHO_N "(cached) $ECHO_C" >&6
19010 ac_res=`eval echo '${'$as_ac_Header'}'`
19011 { echo "$as_me:$LINENO: result: $ac_res" >&5
19012 echo "${ECHO_T}$ac_res" >&6; }
19014 # Is the header compilable?
19015 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19017 cat >conftest.$ac_ext <<_ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19023 $ac_includes_default
19024 #include <$ac_header>
19026 rm -f conftest.$ac_objext
19027 if { (ac_try="$ac_compile"
19028 case "(($ac_try" in
19029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030 *) ac_try_echo=$ac_try;;
19032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033 (eval "$ac_compile") 2>conftest.er1
19035 grep -v '^ *+' conftest.er1 >conftest.err
19037 cat conftest.err >&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } && {
19040 test -z "$ac_c_werror_flag" ||
19041 test ! -s conftest.err
19042 } && test -s conftest.$ac_objext; then
19043 ac_header_compiler=yes
19045 echo "$as_me: failed program was:" >&5
19046 sed 's/^/| /' conftest.$ac_ext >&5
19048 ac_header_compiler=no
19051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19053 echo "${ECHO_T}$ac_header_compiler" >&6; }
19055 # Is the header present?
19056 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19058 cat >conftest.$ac_ext <<_ACEOF
19061 cat confdefs.h >>conftest.$ac_ext
19062 cat >>conftest.$ac_ext <<_ACEOF
19063 /* end confdefs.h. */
19064 #include <$ac_header>
19066 if { (ac_try="$ac_cpp conftest.$ac_ext"
19067 case "(($ac_try" in
19068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19069 *) ac_try_echo=$ac_try;;
19071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19074 grep -v '^ *+' conftest.er1 >conftest.err
19076 cat conftest.err >&5
19077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19078 (exit $ac_status); } >/dev/null && {
19079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19080 test ! -s conftest.err
19082 ac_header_preproc=yes
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19087 ac_header_preproc=no
19090 rm -f conftest.err conftest.$ac_ext
19091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19092 echo "${ECHO_T}$ac_header_preproc" >&6; }
19094 # So? What about this header?
19095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19101 ac_header_preproc=yes
19104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19122 echo $ECHO_N "(cached) $ECHO_C" >&6
19124 eval "$as_ac_Header=\$ac_header_preproc"
19126 ac_res=`eval echo '${'$as_ac_Header'}'`
19127 { echo "$as_me:$LINENO: result: $ac_res" >&5
19128 echo "${ECHO_T}$ac_res" >&6; }
19131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19132 cat >>confdefs.h <<_ACEOF
19133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19140 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19141 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19142 if test "${ac_cv_header_stdc+set}" = set; then
19143 echo $ECHO_N "(cached) $ECHO_C" >&6
19145 cat >conftest.$ac_ext <<_ACEOF
19148 cat confdefs.h >>conftest.$ac_ext
19149 cat >>conftest.$ac_ext <<_ACEOF
19150 /* end confdefs.h. */
19151 #include <stdlib.h>
19152 #include <stdarg.h>
19153 #include <string.h>
19164 rm -f conftest.$ac_objext
19165 if { (ac_try="$ac_compile"
19166 case "(($ac_try" in
19167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19168 *) ac_try_echo=$ac_try;;
19170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19171 (eval "$ac_compile") 2>conftest.er1
19173 grep -v '^ *+' conftest.er1 >conftest.err
19175 cat conftest.err >&5
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); } && {
19178 test -z "$ac_c_werror_flag" ||
19179 test ! -s conftest.err
19180 } && test -s conftest.$ac_objext; then
19181 ac_cv_header_stdc=yes
19183 echo "$as_me: failed program was:" >&5
19184 sed 's/^/| /' conftest.$ac_ext >&5
19186 ac_cv_header_stdc=no
19189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19191 if test $ac_cv_header_stdc = yes; then
19192 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19193 cat >conftest.$ac_ext <<_ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h. */
19199 #include <string.h>
19202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19203 $EGREP "memchr" >/dev/null 2>&1; then
19206 ac_cv_header_stdc=no
19212 if test $ac_cv_header_stdc = yes; then
19213 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19214 cat >conftest.$ac_ext <<_ACEOF
19217 cat confdefs.h >>conftest.$ac_ext
19218 cat >>conftest.$ac_ext <<_ACEOF
19219 /* end confdefs.h. */
19220 #include <stdlib.h>
19223 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19224 $EGREP "free" >/dev/null 2>&1; then
19227 ac_cv_header_stdc=no
19233 if test $ac_cv_header_stdc = yes; then
19234 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19235 if test "$cross_compiling" = yes; then
19238 cat >conftest.$ac_ext <<_ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19245 #include <stdlib.h>
19246 #if ((' ' & 0x0FF) == 0x020)
19247 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19248 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19250 # define ISLOWER(c) \
19251 (('a' <= (c) && (c) <= 'i') \
19252 || ('j' <= (c) && (c) <= 'r') \
19253 || ('s' <= (c) && (c) <= 'z'))
19254 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19257 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19262 for (i = 0; i < 256; i++)
19263 if (XOR (islower (i), ISLOWER (i))
19264 || toupper (i) != TOUPPER (i))
19269 rm -f conftest$ac_exeext
19270 if { (ac_try="$ac_link"
19271 case "(($ac_try" in
19272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19273 *) ac_try_echo=$ac_try;;
19275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19276 (eval "$ac_link") 2>&5
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19280 { (case "(($ac_try" in
19281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19282 *) ac_try_echo=$ac_try;;
19284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19285 (eval "$ac_try") 2>&5
19287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19288 (exit $ac_status); }; }; then
19291 echo "$as_me: program exited with status $ac_status" >&5
19292 echo "$as_me: failed program was:" >&5
19293 sed 's/^/| /' conftest.$ac_ext >&5
19295 ( exit $ac_status )
19296 ac_cv_header_stdc=no
19298 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19304 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19305 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
19306 if test $ac_cv_header_stdc = yes; then
19308 cat >>confdefs.h <<\_ACEOF
19309 #define STDC_HEADERS 1
19314 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
19315 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
19316 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
19317 echo $ECHO_N "(cached) $ECHO_C" >&6
19319 cat >conftest.$ac_ext <<_ACEOF
19322 cat confdefs.h >>conftest.$ac_ext
19323 cat >>conftest.$ac_ext <<_ACEOF
19324 /* end confdefs.h. */
19325 #include <sys/types.h>
19329 return makedev(0, 0);
19334 rm -f conftest.$ac_objext conftest$ac_exeext
19335 if { (ac_try="$ac_link"
19336 case "(($ac_try" in
19337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19338 *) ac_try_echo=$ac_try;;
19340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19341 (eval "$ac_link") 2>conftest.er1
19343 grep -v '^ *+' conftest.er1 >conftest.err
19345 cat conftest.err >&5
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); } && {
19348 test -z "$ac_c_werror_flag" ||
19349 test ! -s conftest.err
19350 } && test -s conftest$ac_exeext &&
19351 $as_test_x conftest$ac_exeext; then
19352 ac_cv_header_sys_types_h_makedev=yes
19354 echo "$as_me: failed program was:" >&5
19355 sed 's/^/| /' conftest.$ac_ext >&5
19357 ac_cv_header_sys_types_h_makedev=no
19360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19361 conftest$ac_exeext conftest.$ac_ext
19364 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
19365 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
19367 if test $ac_cv_header_sys_types_h_makedev = no; then
19368 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19369 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19370 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
19371 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19372 echo $ECHO_N "(cached) $ECHO_C" >&6
19374 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19375 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
19377 # Is the header compilable?
19378 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
19379 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
19380 cat >conftest.$ac_ext <<_ACEOF
19383 cat confdefs.h >>conftest.$ac_ext
19384 cat >>conftest.$ac_ext <<_ACEOF
19385 /* end confdefs.h. */
19386 $ac_includes_default
19387 #include <sys/mkdev.h>
19389 rm -f conftest.$ac_objext
19390 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
19406 ac_header_compiler=yes
19408 echo "$as_me: failed program was:" >&5
19409 sed 's/^/| /' conftest.$ac_ext >&5
19411 ac_header_compiler=no
19414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19415 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19416 echo "${ECHO_T}$ac_header_compiler" >&6; }
19418 # Is the header present?
19419 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
19420 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
19421 cat >conftest.$ac_ext <<_ACEOF
19424 cat confdefs.h >>conftest.$ac_ext
19425 cat >>conftest.$ac_ext <<_ACEOF
19426 /* end confdefs.h. */
19427 #include <sys/mkdev.h>
19429 if { (ac_try="$ac_cpp conftest.$ac_ext"
19430 case "(($ac_try" in
19431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432 *) ac_try_echo=$ac_try;;
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19437 grep -v '^ *+' conftest.er1 >conftest.err
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } >/dev/null && {
19442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19443 test ! -s conftest.err
19445 ac_header_preproc=yes
19447 echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19450 ac_header_preproc=no
19453 rm -f conftest.err conftest.$ac_ext
19454 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19455 echo "${ECHO_T}$ac_header_preproc" >&6; }
19457 # So? What about this header?
19458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19460 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
19461 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19462 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
19463 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
19464 ac_header_preproc=yes
19467 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
19468 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
19469 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
19470 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
19471 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
19472 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
19473 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
19474 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
19475 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
19476 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
19477 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
19478 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
19482 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
19483 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
19484 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
19485 echo $ECHO_N "(cached) $ECHO_C" >&6
19487 ac_cv_header_sys_mkdev_h=$ac_header_preproc
19489 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
19490 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
19493 if test $ac_cv_header_sys_mkdev_h = yes; then
19495 cat >>confdefs.h <<\_ACEOF
19496 #define MAJOR_IN_MKDEV 1
19503 if test $ac_cv_header_sys_mkdev_h = no; then
19504 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19505 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19506 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
19507 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19508 echo $ECHO_N "(cached) $ECHO_C" >&6
19510 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19511 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
19513 # Is the header compilable?
19514 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
19515 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
19516 cat >conftest.$ac_ext <<_ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19522 $ac_includes_default
19523 #include <sys/sysmacros.h>
19525 rm -f conftest.$ac_objext
19526 if { (ac_try="$ac_compile"
19527 case "(($ac_try" in
19528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529 *) ac_try_echo=$ac_try;;
19531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532 (eval "$ac_compile") 2>conftest.er1
19534 grep -v '^ *+' conftest.er1 >conftest.err
19536 cat conftest.err >&5
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); } && {
19539 test -z "$ac_c_werror_flag" ||
19540 test ! -s conftest.err
19541 } && test -s conftest.$ac_objext; then
19542 ac_header_compiler=yes
19544 echo "$as_me: failed program was:" >&5
19545 sed 's/^/| /' conftest.$ac_ext >&5
19547 ac_header_compiler=no
19550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19551 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19552 echo "${ECHO_T}$ac_header_compiler" >&6; }
19554 # Is the header present?
19555 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
19556 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
19557 cat >conftest.$ac_ext <<_ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h. */
19563 #include <sys/sysmacros.h>
19565 if { (ac_try="$ac_cpp conftest.$ac_ext"
19566 case "(($ac_try" in
19567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19568 *) ac_try_echo=$ac_try;;
19570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19571 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19573 grep -v '^ *+' conftest.er1 >conftest.err
19575 cat conftest.err >&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); } >/dev/null && {
19578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19579 test ! -s conftest.err
19581 ac_header_preproc=yes
19583 echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.$ac_ext >&5
19586 ac_header_preproc=no
19589 rm -f conftest.err conftest.$ac_ext
19590 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19591 echo "${ECHO_T}$ac_header_preproc" >&6; }
19593 # So? What about this header?
19594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19596 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
19597 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19598 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
19599 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
19600 ac_header_preproc=yes
19603 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
19604 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
19605 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
19606 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
19607 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
19608 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
19609 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
19610 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
19611 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
19612 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
19613 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
19614 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
19618 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
19619 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
19620 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
19623 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
19625 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
19626 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
19629 if test $ac_cv_header_sys_sysmacros_h = yes; then
19631 cat >>confdefs.h <<\_ACEOF
19632 #define MAJOR_IN_SYSMACROS 1
19646 ac_header_dirent=no
19647 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19648 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19649 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19650 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
19651 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19652 echo $ECHO_N "(cached) $ECHO_C" >&6
19654 cat >conftest.$ac_ext <<_ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h. */
19660 #include <sys/types.h>
19672 rm -f conftest.$ac_objext
19673 if { (ac_try="$ac_compile"
19674 case "(($ac_try" in
19675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676 *) ac_try_echo=$ac_try;;
19678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679 (eval "$ac_compile") 2>conftest.er1
19681 grep -v '^ *+' conftest.er1 >conftest.err
19683 cat conftest.err >&5
19684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19685 (exit $ac_status); } && {
19686 test -z "$ac_c_werror_flag" ||
19687 test ! -s conftest.err
19688 } && test -s conftest.$ac_objext; then
19689 eval "$as_ac_Header=yes"
19691 echo "$as_me: failed program was:" >&5
19692 sed 's/^/| /' conftest.$ac_ext >&5
19694 eval "$as_ac_Header=no"
19697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19699 ac_res=`eval echo '${'$as_ac_Header'}'`
19700 { echo "$as_me:$LINENO: result: $ac_res" >&5
19701 echo "${ECHO_T}$ac_res" >&6; }
19702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19703 cat >>confdefs.h <<_ACEOF
19704 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19707 ac_header_dirent=$ac_hdr; break
19711 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19712 if test $ac_header_dirent = dirent.h; then
19713 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19714 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19715 if test "${ac_cv_search_opendir+set}" = set; then
19716 echo $ECHO_N "(cached) $ECHO_C" >&6
19718 ac_func_search_save_LIBS=$LIBS
19719 cat >conftest.$ac_ext <<_ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19726 /* Override any GCC internal prototype to avoid an error.
19727 Use char because int might match the return type of a GCC
19728 builtin and then its argument prototype would still apply. */
19741 for ac_lib in '' dir; do
19742 if test -z "$ac_lib"; then
19743 ac_res="none required"
19746 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19748 rm -f conftest.$ac_objext conftest$ac_exeext
19749 if { (ac_try="$ac_link"
19750 case "(($ac_try" in
19751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752 *) ac_try_echo=$ac_try;;
19754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19755 (eval "$ac_link") 2>conftest.er1
19757 grep -v '^ *+' conftest.er1 >conftest.err
19759 cat conftest.err >&5
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); } && {
19762 test -z "$ac_c_werror_flag" ||
19763 test ! -s conftest.err
19764 } && test -s conftest$ac_exeext &&
19765 $as_test_x conftest$ac_exeext; then
19766 ac_cv_search_opendir=$ac_res
19768 echo "$as_me: failed program was:" >&5
19769 sed 's/^/| /' conftest.$ac_ext >&5
19774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19776 if test "${ac_cv_search_opendir+set}" = set; then
19780 if test "${ac_cv_search_opendir+set}" = set; then
19783 ac_cv_search_opendir=no
19785 rm conftest.$ac_ext
19786 LIBS=$ac_func_search_save_LIBS
19788 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19789 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19790 ac_res=$ac_cv_search_opendir
19791 if test "$ac_res" != no; then
19792 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19797 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
19798 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
19799 if test "${ac_cv_search_opendir+set}" = set; then
19800 echo $ECHO_N "(cached) $ECHO_C" >&6
19802 ac_func_search_save_LIBS=$LIBS
19803 cat >conftest.$ac_ext <<_ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h. */
19810 /* Override any GCC internal prototype to avoid an error.
19811 Use char because int might match the return type of a GCC
19812 builtin and then its argument prototype would still apply. */
19825 for ac_lib in '' x; do
19826 if test -z "$ac_lib"; then
19827 ac_res="none required"
19830 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19832 rm -f conftest.$ac_objext conftest$ac_exeext
19833 if { (ac_try="$ac_link"
19834 case "(($ac_try" in
19835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19836 *) ac_try_echo=$ac_try;;
19838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839 (eval "$ac_link") 2>conftest.er1
19841 grep -v '^ *+' conftest.er1 >conftest.err
19843 cat conftest.err >&5
19844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19845 (exit $ac_status); } && {
19846 test -z "$ac_c_werror_flag" ||
19847 test ! -s conftest.err
19848 } && test -s conftest$ac_exeext &&
19849 $as_test_x conftest$ac_exeext; then
19850 ac_cv_search_opendir=$ac_res
19852 echo "$as_me: failed program was:" >&5
19853 sed 's/^/| /' conftest.$ac_ext >&5
19858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19860 if test "${ac_cv_search_opendir+set}" = set; then
19864 if test "${ac_cv_search_opendir+set}" = set; then
19867 ac_cv_search_opendir=no
19869 rm conftest.$ac_ext
19870 LIBS=$ac_func_search_save_LIBS
19872 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19873 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
19874 ac_res=$ac_cv_search_opendir
19875 if test "$ac_res" != no; then
19876 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19882 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
19883 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
19884 if test "${ac_cv_header_stat_broken+set}" = set; then
19885 echo $ECHO_N "(cached) $ECHO_C" >&6
19887 cat >conftest.$ac_ext <<_ACEOF
19890 cat confdefs.h >>conftest.$ac_ext
19891 cat >>conftest.$ac_ext <<_ACEOF
19892 /* end confdefs.h. */
19893 #include <sys/types.h>
19894 #include <sys/stat.h>
19896 #if defined S_ISBLK && defined S_IFDIR
19897 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19900 #if defined S_ISBLK && defined S_IFCHR
19901 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19904 #if defined S_ISLNK && defined S_IFREG
19905 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19908 #if defined S_ISSOCK && defined S_IFREG
19909 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19913 rm -f conftest.$ac_objext
19914 if { (ac_try="$ac_compile"
19915 case "(($ac_try" in
19916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19917 *) ac_try_echo=$ac_try;;
19919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19920 (eval "$ac_compile") 2>conftest.er1
19922 grep -v '^ *+' conftest.er1 >conftest.err
19924 cat conftest.err >&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); } && {
19927 test -z "$ac_c_werror_flag" ||
19928 test ! -s conftest.err
19929 } && test -s conftest.$ac_objext; then
19930 ac_cv_header_stat_broken=no
19932 echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19935 ac_cv_header_stat_broken=yes
19938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19940 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
19941 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
19942 if test $ac_cv_header_stat_broken = yes; then
19944 cat >>confdefs.h <<\_ACEOF
19945 #define STAT_MACROS_BROKEN 1
19950 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19951 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
19952 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19953 echo $ECHO_N "(cached) $ECHO_C" >&6
19955 cat >conftest.$ac_ext <<_ACEOF
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h. */
19961 #include <sys/types.h>
19962 #include <sys/wait.h>
19963 #ifndef WEXITSTATUS
19964 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
19967 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19975 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19980 rm -f conftest.$ac_objext
19981 if { (ac_try="$ac_compile"
19982 case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987 (eval "$ac_compile") 2>conftest.er1
19989 grep -v '^ *+' conftest.er1 >conftest.err
19991 cat conftest.err >&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } && {
19994 test -z "$ac_c_werror_flag" ||
19995 test ! -s conftest.err
19996 } && test -s conftest.$ac_objext; then
19997 ac_cv_header_sys_wait_h=yes
19999 echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20002 ac_cv_header_sys_wait_h=no
20005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20007 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20008 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20009 if test $ac_cv_header_sys_wait_h = yes; then
20011 cat >>confdefs.h <<\_ACEOF
20012 #define HAVE_SYS_WAIT_H 1
20017 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20018 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
20019 if test "${ac_cv_header_time+set}" = set; then
20020 echo $ECHO_N "(cached) $ECHO_C" >&6
20022 cat >conftest.$ac_ext <<_ACEOF
20025 cat confdefs.h >>conftest.$ac_ext
20026 cat >>conftest.$ac_ext <<_ACEOF
20027 /* end confdefs.h. */
20028 #include <sys/types.h>
20029 #include <sys/time.h>
20035 if ((struct tm *) 0)
20041 rm -f conftest.$ac_objext
20042 if { (ac_try="$ac_compile"
20043 case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048 (eval "$ac_compile") 2>conftest.er1
20050 grep -v '^ *+' conftest.er1 >conftest.err
20052 cat conftest.err >&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); } && {
20055 test -z "$ac_c_werror_flag" ||
20056 test ! -s conftest.err
20057 } && test -s conftest.$ac_objext; then
20058 ac_cv_header_time=yes
20060 echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20063 ac_cv_header_time=no
20066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20068 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20069 echo "${ECHO_T}$ac_cv_header_time" >&6; }
20070 if test $ac_cv_header_time = yes; then
20072 cat >>confdefs.h <<\_ACEOF
20073 #define TIME_WITH_SYS_TIME 1
20078 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
20079 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
20080 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
20081 echo $ECHO_N "(cached) $ECHO_C" >&6
20083 cat >conftest.$ac_ext <<_ACEOF
20086 cat confdefs.h >>conftest.$ac_ext
20087 cat >>conftest.$ac_ext <<_ACEOF
20088 /* end confdefs.h. */
20089 $ac_includes_default
20093 static struct stat ac_aggr;
20094 if (ac_aggr.st_blksize)
20100 rm -f conftest.$ac_objext
20101 if { (ac_try="$ac_compile"
20102 case "(($ac_try" in
20103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20104 *) ac_try_echo=$ac_try;;
20106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20107 (eval "$ac_compile") 2>conftest.er1
20109 grep -v '^ *+' conftest.er1 >conftest.err
20111 cat conftest.err >&5
20112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20113 (exit $ac_status); } && {
20114 test -z "$ac_c_werror_flag" ||
20115 test ! -s conftest.err
20116 } && test -s conftest.$ac_objext; then
20117 ac_cv_member_struct_stat_st_blksize=yes
20119 echo "$as_me: failed program was:" >&5
20120 sed 's/^/| /' conftest.$ac_ext >&5
20122 cat >conftest.$ac_ext <<_ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h. */
20128 $ac_includes_default
20132 static struct stat ac_aggr;
20133 if (sizeof ac_aggr.st_blksize)
20139 rm -f conftest.$ac_objext
20140 if { (ac_try="$ac_compile"
20141 case "(($ac_try" in
20142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20143 *) ac_try_echo=$ac_try;;
20145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20146 (eval "$ac_compile") 2>conftest.er1
20148 grep -v '^ *+' conftest.er1 >conftest.err
20150 cat conftest.err >&5
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); } && {
20153 test -z "$ac_c_werror_flag" ||
20154 test ! -s conftest.err
20155 } && test -s conftest.$ac_objext; then
20156 ac_cv_member_struct_stat_st_blksize=yes
20158 echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20161 ac_cv_member_struct_stat_st_blksize=no
20164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20169 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
20170 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
20171 if test $ac_cv_member_struct_stat_st_blksize = yes; then
20173 cat >>confdefs.h <<_ACEOF
20174 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
20178 cat >>confdefs.h <<\_ACEOF
20179 #define HAVE_ST_BLKSIZE 1
20185 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
20186 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
20187 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
20188 echo $ECHO_N "(cached) $ECHO_C" >&6
20190 cat >conftest.$ac_ext <<_ACEOF
20193 cat confdefs.h >>conftest.$ac_ext
20194 cat >>conftest.$ac_ext <<_ACEOF
20195 /* end confdefs.h. */
20196 $ac_includes_default
20200 static struct stat ac_aggr;
20201 if (ac_aggr.st_blocks)
20207 rm -f conftest.$ac_objext
20208 if { (ac_try="$ac_compile"
20209 case "(($ac_try" in
20210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20211 *) ac_try_echo=$ac_try;;
20213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20214 (eval "$ac_compile") 2>conftest.er1
20216 grep -v '^ *+' conftest.er1 >conftest.err
20218 cat conftest.err >&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } && {
20221 test -z "$ac_c_werror_flag" ||
20222 test ! -s conftest.err
20223 } && test -s conftest.$ac_objext; then
20224 ac_cv_member_struct_stat_st_blocks=yes
20226 echo "$as_me: failed program was:" >&5
20227 sed 's/^/| /' conftest.$ac_ext >&5
20229 cat >conftest.$ac_ext <<_ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20235 $ac_includes_default
20239 static struct stat ac_aggr;
20240 if (sizeof ac_aggr.st_blocks)
20246 rm -f conftest.$ac_objext
20247 if { (ac_try="$ac_compile"
20248 case "(($ac_try" in
20249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20250 *) ac_try_echo=$ac_try;;
20252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20253 (eval "$ac_compile") 2>conftest.er1
20255 grep -v '^ *+' conftest.er1 >conftest.err
20257 cat conftest.err >&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); } && {
20260 test -z "$ac_c_werror_flag" ||
20261 test ! -s conftest.err
20262 } && test -s conftest.$ac_objext; then
20263 ac_cv_member_struct_stat_st_blocks=yes
20265 echo "$as_me: failed program was:" >&5
20266 sed 's/^/| /' conftest.$ac_ext >&5
20268 ac_cv_member_struct_stat_st_blocks=no
20271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20276 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
20277 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
20278 if test $ac_cv_member_struct_stat_st_blocks = yes; then
20280 cat >>confdefs.h <<_ACEOF
20281 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
20285 cat >>confdefs.h <<\_ACEOF
20286 #define HAVE_ST_BLOCKS 1
20290 case " $LIBOBJS " in
20291 *" fileblocks.$ac_objext "* ) ;;
20292 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
20299 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20300 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
20301 if test "${ac_cv_struct_tm+set}" = set; then
20302 echo $ECHO_N "(cached) $ECHO_C" >&6
20304 cat >conftest.$ac_ext <<_ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h. */
20310 #include <sys/types.h>
20317 int *p = &tm.tm_sec;
20323 rm -f conftest.$ac_objext
20324 if { (ac_try="$ac_compile"
20325 case "(($ac_try" in
20326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20327 *) ac_try_echo=$ac_try;;
20329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20330 (eval "$ac_compile") 2>conftest.er1
20332 grep -v '^ *+' conftest.er1 >conftest.err
20334 cat conftest.err >&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } && {
20337 test -z "$ac_c_werror_flag" ||
20338 test ! -s conftest.err
20339 } && test -s conftest.$ac_objext; then
20340 ac_cv_struct_tm=time.h
20342 echo "$as_me: failed program was:" >&5
20343 sed 's/^/| /' conftest.$ac_ext >&5
20345 ac_cv_struct_tm=sys/time.h
20348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20350 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20351 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
20352 if test $ac_cv_struct_tm = sys/time.h; then
20354 cat >>confdefs.h <<\_ACEOF
20355 #define TM_IN_SYS_TIME 1
20360 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20361 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
20362 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20363 echo $ECHO_N "(cached) $ECHO_C" >&6
20365 cat >conftest.$ac_ext <<_ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h. */
20371 #include <sys/types.h>
20372 #include <$ac_cv_struct_tm>
20378 static struct tm ac_aggr;
20379 if (ac_aggr.tm_zone)
20385 rm -f conftest.$ac_objext
20386 if { (ac_try="$ac_compile"
20387 case "(($ac_try" in
20388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20389 *) ac_try_echo=$ac_try;;
20391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20392 (eval "$ac_compile") 2>conftest.er1
20394 grep -v '^ *+' conftest.er1 >conftest.err
20396 cat conftest.err >&5
20397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20398 (exit $ac_status); } && {
20399 test -z "$ac_c_werror_flag" ||
20400 test ! -s conftest.err
20401 } && test -s conftest.$ac_objext; then
20402 ac_cv_member_struct_tm_tm_zone=yes
20404 echo "$as_me: failed program was:" >&5
20405 sed 's/^/| /' conftest.$ac_ext >&5
20407 cat >conftest.$ac_ext <<_ACEOF
20410 cat confdefs.h >>conftest.$ac_ext
20411 cat >>conftest.$ac_ext <<_ACEOF
20412 /* end confdefs.h. */
20413 #include <sys/types.h>
20414 #include <$ac_cv_struct_tm>
20420 static struct tm ac_aggr;
20421 if (sizeof ac_aggr.tm_zone)
20427 rm -f conftest.$ac_objext
20428 if { (ac_try="$ac_compile"
20429 case "(($ac_try" in
20430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20431 *) ac_try_echo=$ac_try;;
20433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20434 (eval "$ac_compile") 2>conftest.er1
20436 grep -v '^ *+' conftest.er1 >conftest.err
20438 cat conftest.err >&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); } && {
20441 test -z "$ac_c_werror_flag" ||
20442 test ! -s conftest.err
20443 } && test -s conftest.$ac_objext; then
20444 ac_cv_member_struct_tm_tm_zone=yes
20446 echo "$as_me: failed program was:" >&5
20447 sed 's/^/| /' conftest.$ac_ext >&5
20449 ac_cv_member_struct_tm_tm_zone=no
20452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20457 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20458 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
20459 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20461 cat >>confdefs.h <<_ACEOF
20462 #define HAVE_STRUCT_TM_TM_ZONE 1
20468 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20470 cat >>confdefs.h <<\_ACEOF
20471 #define HAVE_TM_ZONE 1
20475 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
20476 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
20477 if test "${ac_cv_have_decl_tzname+set}" = set; then
20478 echo $ECHO_N "(cached) $ECHO_C" >&6
20480 cat >conftest.$ac_ext <<_ACEOF
20483 cat confdefs.h >>conftest.$ac_ext
20484 cat >>conftest.$ac_ext <<_ACEOF
20485 /* end confdefs.h. */
20499 rm -f conftest.$ac_objext
20500 if { (ac_try="$ac_compile"
20501 case "(($ac_try" in
20502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503 *) ac_try_echo=$ac_try;;
20505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506 (eval "$ac_compile") 2>conftest.er1
20508 grep -v '^ *+' conftest.er1 >conftest.err
20510 cat conftest.err >&5
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); } && {
20513 test -z "$ac_c_werror_flag" ||
20514 test ! -s conftest.err
20515 } && test -s conftest.$ac_objext; then
20516 ac_cv_have_decl_tzname=yes
20518 echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20521 ac_cv_have_decl_tzname=no
20524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20526 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
20527 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
20528 if test $ac_cv_have_decl_tzname = yes; then
20530 cat >>confdefs.h <<_ACEOF
20531 #define HAVE_DECL_TZNAME 1
20536 cat >>confdefs.h <<_ACEOF
20537 #define HAVE_DECL_TZNAME 0
20544 { echo "$as_me:$LINENO: checking for tzname" >&5
20545 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
20546 if test "${ac_cv_var_tzname+set}" = set; then
20547 echo $ECHO_N "(cached) $ECHO_C" >&6
20549 cat >conftest.$ac_ext <<_ACEOF
20552 cat confdefs.h >>conftest.$ac_ext
20553 cat >>conftest.$ac_ext <<_ACEOF
20554 /* end confdefs.h. */
20556 #if !HAVE_DECL_TZNAME
20557 extern char *tzname[];
20563 return tzname[0][0];
20568 rm -f conftest.$ac_objext conftest$ac_exeext
20569 if { (ac_try="$ac_link"
20570 case "(($ac_try" in
20571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572 *) ac_try_echo=$ac_try;;
20574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20575 (eval "$ac_link") 2>conftest.er1
20577 grep -v '^ *+' conftest.er1 >conftest.err
20579 cat conftest.err >&5
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); } && {
20582 test -z "$ac_c_werror_flag" ||
20583 test ! -s conftest.err
20584 } && test -s conftest$ac_exeext &&
20585 $as_test_x conftest$ac_exeext; then
20586 ac_cv_var_tzname=yes
20588 echo "$as_me: failed program was:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20591 ac_cv_var_tzname=no
20594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20595 conftest$ac_exeext conftest.$ac_ext
20597 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
20598 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
20599 if test $ac_cv_var_tzname = yes; then
20601 cat >>confdefs.h <<\_ACEOF
20602 #define HAVE_TZNAME 1
20609 { echo "$as_me:$LINENO: checking for utime.h" >&5
20610 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6; }
20611 if test "${ba_cv_header_utime_h+set}" = set; then
20612 echo $ECHO_N "(cached) $ECHO_C" >&6
20614 cat >conftest.$ac_ext <<_ACEOF
20617 cat confdefs.h >>conftest.$ac_ext
20618 cat >>conftest.$ac_ext <<_ACEOF
20619 /* end confdefs.h. */
20621 #include <sys/types.h>
20631 rm -f conftest.$ac_objext
20632 if { (ac_try="$ac_compile"
20633 case "(($ac_try" in
20634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635 *) ac_try_echo=$ac_try;;
20637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20638 (eval "$ac_compile") 2>conftest.er1
20640 grep -v '^ *+' conftest.er1 >conftest.err
20642 cat conftest.err >&5
20643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20644 (exit $ac_status); } && {
20645 test -z "$ac_c_werror_flag" ||
20646 test ! -s conftest.err
20647 } && test -s conftest.$ac_objext; then
20648 ba_cv_header_utime_h=yes
20650 echo "$as_me: failed program was:" >&5
20651 sed 's/^/| /' conftest.$ac_ext >&5
20653 ba_cv_header_utime_h=no
20656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20658 { echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
20659 echo "${ECHO_T}$ba_cv_header_utime_h" >&6; }
20660 test $ba_cv_header_utime_h = yes &&
20661 cat >>confdefs.h <<\_ACEOF
20662 #define HAVE_UTIME_H 1
20666 { echo "$as_me:$LINENO: checking for socklen_t" >&5
20667 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
20668 if test "${ba_cv_header_socklen_t+set}" = set; then
20669 echo $ECHO_N "(cached) $ECHO_C" >&6
20671 cat >conftest.$ac_ext <<_ACEOF
20674 cat confdefs.h >>conftest.$ac_ext
20675 cat >>conftest.$ac_ext <<_ACEOF
20676 /* end confdefs.h. */
20678 #include <sys/types.h>
20679 #include <sys/socket.h>
20688 rm -f conftest.$ac_objext
20689 if { (ac_try="$ac_compile"
20690 case "(($ac_try" in
20691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20692 *) ac_try_echo=$ac_try;;
20694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20695 (eval "$ac_compile") 2>conftest.er1
20697 grep -v '^ *+' conftest.er1 >conftest.err
20699 cat conftest.err >&5
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); } && {
20702 test -z "$ac_c_werror_flag" ||
20703 test ! -s conftest.err
20704 } && test -s conftest.$ac_objext; then
20705 ba_cv_header_socklen_t=yes
20707 echo "$as_me: failed program was:" >&5
20708 sed 's/^/| /' conftest.$ac_ext >&5
20710 ba_cv_header_socklen_t=no
20713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20715 { echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
20716 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6; }
20717 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
20718 #define HAVE_SOCKLEN_T 1
20722 { echo "$as_me:$LINENO: checking for bigendian" >&5
20723 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6; }
20724 if test "${ba_cv_bigendian+set}" = set; then
20725 echo $ECHO_N "(cached) $ECHO_C" >&6
20727 if test "$cross_compiling" = yes; then
20730 cat >conftest.$ac_ext <<_ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h. */
20736 main(){long a=1L; char *p=(char *)&a; exit(*p);}
20738 rm -f conftest$ac_exeext
20739 if { (ac_try="$ac_link"
20740 case "(($ac_try" in
20741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20742 *) ac_try_echo=$ac_try;;
20744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20745 (eval "$ac_link") 2>&5
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20749 { (case "(($ac_try" in
20750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20751 *) ac_try_echo=$ac_try;;
20753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20754 (eval "$ac_try") 2>&5
20756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20757 (exit $ac_status); }; }; then
20758 ba_cv_bigendian=yes
20760 echo "$as_me: program exited with status $ac_status" >&5
20761 echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.$ac_ext >&5
20764 ( exit $ac_status )
20767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20772 { echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
20773 echo "${ECHO_T}$ba_cv_bigendian" >&6; }
20774 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
20775 #define HAVE_BIGENDIAN 1
20780 ac_cpp='$CXXCPP $CPPFLAGS'
20781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20786 { echo "$as_me:$LINENO: checking for typeof" >&5
20787 echo $ECHO_N "checking for typeof... $ECHO_C" >&6; }
20788 if test "${ba_cv_have_typeof+set}" = set; then
20789 echo $ECHO_N "(cached) $ECHO_C" >&6
20791 if test "$cross_compiling" = yes; then
20792 ba_cv_have_typeof=no
20794 cat >conftest.$ac_ext <<_ACEOF
20797 cat confdefs.h >>conftest.$ac_ext
20798 cat >>conftest.$ac_ext <<_ACEOF
20799 /* end confdefs.h. */
20800 main(){char *a = 0; a = (typeof a)a;}
20802 rm -f conftest$ac_exeext
20803 if { (ac_try="$ac_link"
20804 case "(($ac_try" in
20805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806 *) ac_try_echo=$ac_try;;
20808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20809 (eval "$ac_link") 2>&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20813 { (case "(($ac_try" in
20814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815 *) ac_try_echo=$ac_try;;
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818 (eval "$ac_try") 2>&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; }; then
20822 ba_cv_have_typeof=yes
20824 echo "$as_me: program exited with status $ac_status" >&5
20825 echo "$as_me: failed program was:" >&5
20826 sed 's/^/| /' conftest.$ac_ext >&5
20828 ( exit $ac_status )
20829 ba_cv_have_typeof=no
20831 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20836 { echo "$as_me:$LINENO: result: $ba_cv_have_typeof" >&5
20837 echo "${ECHO_T}$ba_cv_have_typeof" >&6; }
20838 test $ba_cv_have_typeof = yes &&
20839 cat >>confdefs.h <<\_ACEOF
20840 #define HAVE_TYPEOF 1
20844 ac_cpp='$CPP $CPPFLAGS'
20845 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20846 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20847 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20850 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20851 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20852 if test "${ac_cv_c_const+set}" = set; then
20853 echo $ECHO_N "(cached) $ECHO_C" >&6
20855 cat >conftest.$ac_ext <<_ACEOF
20858 cat confdefs.h >>conftest.$ac_ext
20859 cat >>conftest.$ac_ext <<_ACEOF
20860 /* end confdefs.h. */
20865 /* FIXME: Include the comments suggested by Paul. */
20866 #ifndef __cplusplus
20867 /* Ultrix mips cc rejects this. */
20868 typedef int charset[2];
20870 /* SunOS 4.1.1 cc rejects this. */
20871 char const *const *pcpcc;
20873 /* NEC SVR4.0.2 mips cc rejects this. */
20874 struct point {int x, y;};
20875 static struct point const zero = {0,0};
20876 /* AIX XL C 1.02.0.0 rejects this.
20877 It does not let you subtract one const X* pointer from another in
20878 an arm of an if-expression whose if-part is not a constant
20880 const char *g = "string";
20881 pcpcc = &g + (g ? g-g : 0);
20882 /* HPUX 7.0 cc rejects these. */
20884 ppc = (char**) pcpcc;
20885 pcpcc = (char const *const *) ppc;
20886 { /* SCO 3.2v4 cc rejects this. */
20888 char const *s = 0 ? (char *) 0 : (char const *) 0;
20893 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20894 int x[] = {25, 17};
20895 const int *foo = &x[0];
20898 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20899 typedef const int *iptr;
20903 { /* AIX XL C 1.02.0.0 rejects this saying
20904 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20905 struct s { int j; const int *ap[3]; };
20906 struct s *b; b->j = 5;
20908 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20909 const int foo = 10;
20910 if (!foo) return 0;
20912 return !cs[0] && !zero.x;
20919 rm -f conftest.$ac_objext
20920 if { (ac_try="$ac_compile"
20921 case "(($ac_try" in
20922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923 *) ac_try_echo=$ac_try;;
20925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926 (eval "$ac_compile") 2>conftest.er1
20928 grep -v '^ *+' conftest.er1 >conftest.err
20930 cat conftest.err >&5
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); } && {
20933 test -z "$ac_c_werror_flag" ||
20934 test ! -s conftest.err
20935 } && test -s conftest.$ac_objext; then
20938 echo "$as_me: failed program was:" >&5
20939 sed 's/^/| /' conftest.$ac_ext >&5
20944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20946 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20947 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20948 if test $ac_cv_c_const = no; then
20950 cat >>confdefs.h <<\_ACEOF
20958 { echo "$as_me:$LINENO: checking how to get filesystem type" >&5
20959 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6; }
20961 # The order of these tests is important.
20962 cat >conftest.$ac_ext <<_ACEOF
20965 cat confdefs.h >>conftest.$ac_ext
20966 cat >>conftest.$ac_ext <<_ACEOF
20967 /* end confdefs.h. */
20968 #include <sys/statvfs.h>
20969 #include <sys/fstyp.h>
20971 if { (ac_try="$ac_cpp conftest.$ac_ext"
20972 case "(($ac_try" in
20973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974 *) ac_try_echo=$ac_try;;
20976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20979 grep -v '^ *+' conftest.er1 >conftest.err
20981 cat conftest.err >&5
20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20983 (exit $ac_status); } >/dev/null && {
20984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20985 test ! -s conftest.err
20987 cat >>confdefs.h <<\_ACEOF
20988 #define FSTYPE_STATVFS 1
20992 echo "$as_me: failed program was:" >&5
20993 sed 's/^/| /' conftest.$ac_ext >&5
20998 rm -f conftest.err conftest.$ac_ext
20999 if test $fstype = no; then
21000 cat >conftest.$ac_ext <<_ACEOF
21003 cat confdefs.h >>conftest.$ac_ext
21004 cat >>conftest.$ac_ext <<_ACEOF
21005 /* end confdefs.h. */
21006 #include <sys/statfs.h>
21007 #include <sys/fstyp.h>
21009 if { (ac_try="$ac_cpp conftest.$ac_ext"
21010 case "(($ac_try" in
21011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012 *) ac_try_echo=$ac_try;;
21014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21015 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21017 grep -v '^ *+' conftest.er1 >conftest.err
21019 cat conftest.err >&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); } >/dev/null && {
21022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21023 test ! -s conftest.err
21025 cat >>confdefs.h <<\_ACEOF
21026 #define FSTYPE_USG_STATFS 1
21030 echo "$as_me: failed program was:" >&5
21031 sed 's/^/| /' conftest.$ac_ext >&5
21036 rm -f conftest.err conftest.$ac_ext
21038 if test $fstype = no; then
21039 cat >conftest.$ac_ext <<_ACEOF
21042 cat confdefs.h >>conftest.$ac_ext
21043 cat >>conftest.$ac_ext <<_ACEOF
21044 /* end confdefs.h. */
21045 #include <sys/statfs.h>
21046 #include <sys/vmount.h>
21048 if { (ac_try="$ac_cpp conftest.$ac_ext"
21049 case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21056 grep -v '^ *+' conftest.er1 >conftest.err
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } >/dev/null && {
21061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21062 test ! -s conftest.err
21064 cat >>confdefs.h <<\_ACEOF
21065 #define FSTYPE_AIX_STATFS 1
21069 echo "$as_me: failed program was:" >&5
21070 sed 's/^/| /' conftest.$ac_ext >&5
21075 rm -f conftest.err conftest.$ac_ext
21077 if test $fstype = no; then
21078 cat >conftest.$ac_ext <<_ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h. */
21084 #include <mntent.h>
21086 if { (ac_try="$ac_cpp conftest.$ac_ext"
21087 case "(($ac_try" in
21088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21089 *) ac_try_echo=$ac_try;;
21091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21094 grep -v '^ *+' conftest.er1 >conftest.err
21096 cat conftest.err >&5
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); } >/dev/null && {
21099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21100 test ! -s conftest.err
21102 cat >>confdefs.h <<\_ACEOF
21103 #define FSTYPE_MNTENT 1
21107 echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21113 rm -f conftest.err conftest.$ac_ext
21115 if test $fstype = no; then
21116 cat >conftest.$ac_ext <<_ACEOF
21119 cat confdefs.h >>conftest.$ac_ext
21120 cat >>conftest.$ac_ext <<_ACEOF
21121 /* end confdefs.h. */
21122 #include <sys/mount.h>
21125 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21126 $EGREP "f_type;" >/dev/null 2>&1; then
21127 cat >>confdefs.h <<\_ACEOF
21128 #define FSTYPE_STATFS 1
21135 if test $fstype = no; then
21136 cat >conftest.$ac_ext <<_ACEOF
21139 cat confdefs.h >>conftest.$ac_ext
21140 cat >>conftest.$ac_ext <<_ACEOF
21141 /* end confdefs.h. */
21142 #include <sys/mount.h>
21143 #include <sys/fs_types.h>
21145 if { (ac_try="$ac_cpp conftest.$ac_ext"
21146 case "(($ac_try" in
21147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21148 *) ac_try_echo=$ac_try;;
21150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21151 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21153 grep -v '^ *+' conftest.er1 >conftest.err
21155 cat conftest.err >&5
21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); } >/dev/null && {
21158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21159 test ! -s conftest.err
21161 cat >>confdefs.h <<\_ACEOF
21162 #define FSTYPE_GETMNT 1
21166 echo "$as_me: failed program was:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21172 rm -f conftest.err conftest.$ac_ext
21174 { echo "$as_me:$LINENO: result: $fstype" >&5
21175 echo "${ECHO_T}$fstype" >&6; }
21177 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21178 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21179 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
21180 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21181 echo $ECHO_N "(cached) $ECHO_C" >&6
21183 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21184 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
21186 # Is the header compilable?
21187 { echo "$as_me:$LINENO: checking sys/statvfs.h usability" >&5
21188 echo $ECHO_N "checking sys/statvfs.h usability... $ECHO_C" >&6; }
21189 cat >conftest.$ac_ext <<_ACEOF
21192 cat confdefs.h >>conftest.$ac_ext
21193 cat >>conftest.$ac_ext <<_ACEOF
21194 /* end confdefs.h. */
21195 $ac_includes_default
21196 #include <sys/statvfs.h>
21198 rm -f conftest.$ac_objext
21199 if { (ac_try="$ac_compile"
21200 case "(($ac_try" in
21201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202 *) ac_try_echo=$ac_try;;
21204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21205 (eval "$ac_compile") 2>conftest.er1
21207 grep -v '^ *+' conftest.er1 >conftest.err
21209 cat conftest.err >&5
21210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21211 (exit $ac_status); } && {
21212 test -z "$ac_c_werror_flag" ||
21213 test ! -s conftest.err
21214 } && test -s conftest.$ac_objext; then
21215 ac_header_compiler=yes
21217 echo "$as_me: failed program was:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21220 ac_header_compiler=no
21223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21225 echo "${ECHO_T}$ac_header_compiler" >&6; }
21227 # Is the header present?
21228 { echo "$as_me:$LINENO: checking sys/statvfs.h presence" >&5
21229 echo $ECHO_N "checking sys/statvfs.h presence... $ECHO_C" >&6; }
21230 cat >conftest.$ac_ext <<_ACEOF
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h. */
21236 #include <sys/statvfs.h>
21238 if { (ac_try="$ac_cpp conftest.$ac_ext"
21239 case "(($ac_try" in
21240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21241 *) ac_try_echo=$ac_try;;
21243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21246 grep -v '^ *+' conftest.er1 >conftest.err
21248 cat conftest.err >&5
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); } >/dev/null && {
21251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21252 test ! -s conftest.err
21254 ac_header_preproc=yes
21256 echo "$as_me: failed program was:" >&5
21257 sed 's/^/| /' conftest.$ac_ext >&5
21259 ac_header_preproc=no
21262 rm -f conftest.err conftest.$ac_ext
21263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21264 echo "${ECHO_T}$ac_header_preproc" >&6; }
21266 # So? What about this header?
21267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21269 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&5
21270 echo "$as_me: WARNING: sys/statvfs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21271 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&5
21272 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the compiler's result" >&2;}
21273 ac_header_preproc=yes
21276 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: present but cannot be compiled" >&5
21277 echo "$as_me: WARNING: sys/statvfs.h: present but cannot be compiled" >&2;}
21278 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&5
21279 echo "$as_me: WARNING: sys/statvfs.h: check for missing prerequisite headers?" >&2;}
21280 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: see the Autoconf documentation" >&5
21281 echo "$as_me: WARNING: sys/statvfs.h: see the Autoconf documentation" >&2;}
21282 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&5
21283 echo "$as_me: WARNING: sys/statvfs.h: section \"Present But Cannot Be Compiled\"" >&2;}
21284 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&5
21285 echo "$as_me: WARNING: sys/statvfs.h: proceeding with the preprocessor's result" >&2;}
21286 { echo "$as_me:$LINENO: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&5
21287 echo "$as_me: WARNING: sys/statvfs.h: in the future, the compiler will take precedence" >&2;}
21291 { echo "$as_me:$LINENO: checking for sys/statvfs.h" >&5
21292 echo $ECHO_N "checking for sys/statvfs.h... $ECHO_C" >&6; }
21293 if test "${ac_cv_header_sys_statvfs_h+set}" = set; then
21294 echo $ECHO_N "(cached) $ECHO_C" >&6
21296 ac_cv_header_sys_statvfs_h=$ac_header_preproc
21298 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_statvfs_h" >&5
21299 echo "${ECHO_T}$ac_cv_header_sys_statvfs_h" >&6; }
21302 if test $ac_cv_header_sys_statvfs_h = yes; then
21304 cat >>confdefs.h <<\_ACEOF
21305 #define HAVE_SYS_STATVFS_H 1
21312 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21313 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
21314 if test "${ac_cv_type_signal+set}" = set; then
21315 echo $ECHO_N "(cached) $ECHO_C" >&6
21317 cat >conftest.$ac_ext <<_ACEOF
21320 cat confdefs.h >>conftest.$ac_ext
21321 cat >>conftest.$ac_ext <<_ACEOF
21322 /* end confdefs.h. */
21323 #include <sys/types.h>
21324 #include <signal.h>
21329 return *(signal (0, 0)) (0) == 1;
21334 rm -f conftest.$ac_objext
21335 if { (ac_try="$ac_compile"
21336 case "(($ac_try" in
21337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21338 *) ac_try_echo=$ac_try;;
21340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21341 (eval "$ac_compile") 2>conftest.er1
21343 grep -v '^ *+' conftest.er1 >conftest.err
21345 cat conftest.err >&5
21346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347 (exit $ac_status); } && {
21348 test -z "$ac_c_werror_flag" ||
21349 test ! -s conftest.err
21350 } && test -s conftest.$ac_objext; then
21351 ac_cv_type_signal=int
21353 echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21356 ac_cv_type_signal=void
21359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21361 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21362 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
21364 cat >>confdefs.h <<_ACEOF
21365 #define RETSIGTYPE $ac_cv_type_signal
21370 { echo "$as_me:$LINENO: checking for type of signal functions" >&5
21371 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6; }
21372 if test "${bash_cv_signal_vintage+set}" = set; then
21373 echo $ECHO_N "(cached) $ECHO_C" >&6
21376 cat >conftest.$ac_ext <<_ACEOF
21379 cat confdefs.h >>conftest.$ac_ext
21380 cat >>conftest.$ac_ext <<_ACEOF
21381 /* end confdefs.h. */
21382 #include <signal.h>
21388 struct sigaction sa;
21389 sigemptyset(&ss); sigsuspend(&ss);
21390 sigaction(SIGINT, &sa, (struct sigaction *) 0);
21391 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
21397 rm -f conftest.$ac_objext conftest$ac_exeext
21398 if { (ac_try="$ac_link"
21399 case "(($ac_try" in
21400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401 *) ac_try_echo=$ac_try;;
21403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21404 (eval "$ac_link") 2>conftest.er1
21406 grep -v '^ *+' conftest.er1 >conftest.err
21408 cat conftest.err >&5
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); } && {
21411 test -z "$ac_c_werror_flag" ||
21412 test ! -s conftest.err
21413 } && test -s conftest$ac_exeext &&
21414 $as_test_x conftest$ac_exeext; then
21415 bash_cv_signal_vintage="posix"
21417 echo "$as_me: failed program was:" >&5
21418 sed 's/^/| /' conftest.$ac_ext >&5
21421 cat >conftest.$ac_ext <<_ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h. */
21427 #include <signal.h>
21432 int mask = sigmask(SIGINT);
21433 sigsetmask(mask); sigblock(mask); sigpause(mask);
21439 rm -f conftest.$ac_objext conftest$ac_exeext
21440 if { (ac_try="$ac_link"
21441 case "(($ac_try" in
21442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21443 *) ac_try_echo=$ac_try;;
21445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21446 (eval "$ac_link") 2>conftest.er1
21448 grep -v '^ *+' conftest.er1 >conftest.err
21450 cat conftest.err >&5
21451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452 (exit $ac_status); } && {
21453 test -z "$ac_c_werror_flag" ||
21454 test ! -s conftest.err
21455 } && test -s conftest$ac_exeext &&
21456 $as_test_x conftest$ac_exeext; then
21457 bash_cv_signal_vintage="4.2bsd"
21459 echo "$as_me: failed program was:" >&5
21460 sed 's/^/| /' conftest.$ac_ext >&5
21463 cat >conftest.$ac_ext <<_ACEOF
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h. */
21470 #include <signal.h>
21471 RETSIGTYPE foo() { }
21476 int mask = sigmask(SIGINT);
21477 sigset(SIGINT, foo); sigrelse(SIGINT);
21478 sighold(SIGINT); sigpause(SIGINT);
21484 rm -f conftest.$ac_objext conftest$ac_exeext
21485 if { (ac_try="$ac_link"
21486 case "(($ac_try" in
21487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488 *) ac_try_echo=$ac_try;;
21490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21491 (eval "$ac_link") 2>conftest.er1
21493 grep -v '^ *+' conftest.er1 >conftest.err
21495 cat conftest.err >&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } && {
21498 test -z "$ac_c_werror_flag" ||
21499 test ! -s conftest.err
21500 } && test -s conftest$ac_exeext &&
21501 $as_test_x conftest$ac_exeext; then
21502 bash_cv_signal_vintage="svr3"
21504 echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21507 bash_cv_signal_vintage="v7"
21511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21512 conftest$ac_exeext conftest.$ac_ext
21516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21517 conftest$ac_exeext conftest.$ac_ext
21521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21522 conftest$ac_exeext conftest.$ac_ext
21526 { echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
21527 echo "${ECHO_T}$bash_cv_signal_vintage" >&6; }
21528 if test "$bash_cv_signal_vintage" = "posix"; then
21529 cat >>confdefs.h <<\_ACEOF
21530 #define HAVE_POSIX_SIGNALS 1
21533 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
21534 cat >>confdefs.h <<\_ACEOF
21535 #define HAVE_BSD_SIGNALS 1
21538 elif test "$bash_cv_signal_vintage" = "svr3"; then
21539 cat >>confdefs.h <<\_ACEOF
21540 #define HAVE_USG_SIGHOLD 1
21545 { echo "$as_me:$LINENO: checking for mode_t" >&5
21546 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
21547 if test "${ac_cv_type_mode_t+set}" = set; then
21548 echo $ECHO_N "(cached) $ECHO_C" >&6
21550 cat >conftest.$ac_ext <<_ACEOF
21553 cat confdefs.h >>conftest.$ac_ext
21554 cat >>conftest.$ac_ext <<_ACEOF
21555 /* end confdefs.h. */
21556 $ac_includes_default
21557 typedef mode_t ac__type_new_;
21561 if ((ac__type_new_ *) 0)
21563 if (sizeof (ac__type_new_))
21569 rm -f conftest.$ac_objext
21570 if { (ac_try="$ac_compile"
21571 case "(($ac_try" in
21572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21573 *) ac_try_echo=$ac_try;;
21575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21576 (eval "$ac_compile") 2>conftest.er1
21578 grep -v '^ *+' conftest.er1 >conftest.err
21580 cat conftest.err >&5
21581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21582 (exit $ac_status); } && {
21583 test -z "$ac_c_werror_flag" ||
21584 test ! -s conftest.err
21585 } && test -s conftest.$ac_objext; then
21586 ac_cv_type_mode_t=yes
21588 echo "$as_me: failed program was:" >&5
21589 sed 's/^/| /' conftest.$ac_ext >&5
21591 ac_cv_type_mode_t=no
21594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21596 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
21597 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
21598 if test $ac_cv_type_mode_t = yes; then
21602 cat >>confdefs.h <<_ACEOF
21608 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21609 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
21610 if test "${ac_cv_type_uid_t+set}" = set; then
21611 echo $ECHO_N "(cached) $ECHO_C" >&6
21613 cat >conftest.$ac_ext <<_ACEOF
21616 cat confdefs.h >>conftest.$ac_ext
21617 cat >>conftest.$ac_ext <<_ACEOF
21618 /* end confdefs.h. */
21619 #include <sys/types.h>
21622 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21623 $EGREP "uid_t" >/dev/null 2>&1; then
21624 ac_cv_type_uid_t=yes
21626 ac_cv_type_uid_t=no
21631 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21632 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
21633 if test $ac_cv_type_uid_t = no; then
21635 cat >>confdefs.h <<\_ACEOF
21640 cat >>confdefs.h <<\_ACEOF
21646 { echo "$as_me:$LINENO: checking for size_t" >&5
21647 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21648 if test "${ac_cv_type_size_t+set}" = set; then
21649 echo $ECHO_N "(cached) $ECHO_C" >&6
21651 cat >conftest.$ac_ext <<_ACEOF
21654 cat confdefs.h >>conftest.$ac_ext
21655 cat >>conftest.$ac_ext <<_ACEOF
21656 /* end confdefs.h. */
21657 $ac_includes_default
21658 typedef size_t ac__type_new_;
21662 if ((ac__type_new_ *) 0)
21664 if (sizeof (ac__type_new_))
21670 rm -f conftest.$ac_objext
21671 if { (ac_try="$ac_compile"
21672 case "(($ac_try" in
21673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21674 *) ac_try_echo=$ac_try;;
21676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21677 (eval "$ac_compile") 2>conftest.er1
21679 grep -v '^ *+' conftest.er1 >conftest.err
21681 cat conftest.err >&5
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); } && {
21684 test -z "$ac_c_werror_flag" ||
21685 test ! -s conftest.err
21686 } && test -s conftest.$ac_objext; then
21687 ac_cv_type_size_t=yes
21689 echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.$ac_ext >&5
21692 ac_cv_type_size_t=no
21695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21697 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21698 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21699 if test $ac_cv_type_size_t = yes; then
21703 cat >>confdefs.h <<_ACEOF
21704 #define size_t unsigned int
21709 { echo "$as_me:$LINENO: checking for pid_t" >&5
21710 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21711 if test "${ac_cv_type_pid_t+set}" = set; then
21712 echo $ECHO_N "(cached) $ECHO_C" >&6
21714 cat >conftest.$ac_ext <<_ACEOF
21717 cat confdefs.h >>conftest.$ac_ext
21718 cat >>conftest.$ac_ext <<_ACEOF
21719 /* end confdefs.h. */
21720 $ac_includes_default
21721 typedef pid_t ac__type_new_;
21725 if ((ac__type_new_ *) 0)
21727 if (sizeof (ac__type_new_))
21733 rm -f conftest.$ac_objext
21734 if { (ac_try="$ac_compile"
21735 case "(($ac_try" in
21736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21737 *) ac_try_echo=$ac_try;;
21739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21740 (eval "$ac_compile") 2>conftest.er1
21742 grep -v '^ *+' conftest.er1 >conftest.err
21744 cat conftest.err >&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); } && {
21747 test -z "$ac_c_werror_flag" ||
21748 test ! -s conftest.err
21749 } && test -s conftest.$ac_objext; then
21750 ac_cv_type_pid_t=yes
21752 echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21755 ac_cv_type_pid_t=no
21758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21760 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21761 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21762 if test $ac_cv_type_pid_t = yes; then
21766 cat >>confdefs.h <<_ACEOF
21772 { echo "$as_me:$LINENO: checking for off_t" >&5
21773 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21774 if test "${ac_cv_type_off_t+set}" = set; then
21775 echo $ECHO_N "(cached) $ECHO_C" >&6
21777 cat >conftest.$ac_ext <<_ACEOF
21780 cat confdefs.h >>conftest.$ac_ext
21781 cat >>conftest.$ac_ext <<_ACEOF
21782 /* end confdefs.h. */
21783 $ac_includes_default
21784 typedef off_t ac__type_new_;
21788 if ((ac__type_new_ *) 0)
21790 if (sizeof (ac__type_new_))
21796 rm -f conftest.$ac_objext
21797 if { (ac_try="$ac_compile"
21798 case "(($ac_try" in
21799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800 *) ac_try_echo=$ac_try;;
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803 (eval "$ac_compile") 2>conftest.er1
21805 grep -v '^ *+' conftest.er1 >conftest.err
21807 cat conftest.err >&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); } && {
21810 test -z "$ac_c_werror_flag" ||
21811 test ! -s conftest.err
21812 } && test -s conftest.$ac_objext; then
21813 ac_cv_type_off_t=yes
21815 echo "$as_me: failed program was:" >&5
21816 sed 's/^/| /' conftest.$ac_ext >&5
21818 ac_cv_type_off_t=no
21821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21823 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21824 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21825 if test $ac_cv_type_off_t = yes; then
21829 cat >>confdefs.h <<_ACEOF
21830 #define off_t long int
21835 { echo "$as_me:$LINENO: checking for ino_t" >&5
21836 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
21837 if test "${ac_cv_type_ino_t+set}" = set; then
21838 echo $ECHO_N "(cached) $ECHO_C" >&6
21840 cat >conftest.$ac_ext <<_ACEOF
21843 cat confdefs.h >>conftest.$ac_ext
21844 cat >>conftest.$ac_ext <<_ACEOF
21845 /* end confdefs.h. */
21846 $ac_includes_default
21847 typedef ino_t ac__type_new_;
21851 if ((ac__type_new_ *) 0)
21853 if (sizeof (ac__type_new_))
21859 rm -f conftest.$ac_objext
21860 if { (ac_try="$ac_compile"
21861 case "(($ac_try" in
21862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21863 *) ac_try_echo=$ac_try;;
21865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21866 (eval "$ac_compile") 2>conftest.er1
21868 grep -v '^ *+' conftest.er1 >conftest.err
21870 cat conftest.err >&5
21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21872 (exit $ac_status); } && {
21873 test -z "$ac_c_werror_flag" ||
21874 test ! -s conftest.err
21875 } && test -s conftest.$ac_objext; then
21876 ac_cv_type_ino_t=yes
21878 echo "$as_me: failed program was:" >&5
21879 sed 's/^/| /' conftest.$ac_ext >&5
21881 ac_cv_type_ino_t=no
21884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21886 { echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
21887 echo "${ECHO_T}$ac_cv_type_ino_t" >&6; }
21888 if test $ac_cv_type_ino_t = yes; then
21892 cat >>confdefs.h <<_ACEOF
21893 #define ino_t unsigned long
21898 { echo "$as_me:$LINENO: checking for dev_t" >&5
21899 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
21900 if test "${ac_cv_type_dev_t+set}" = set; then
21901 echo $ECHO_N "(cached) $ECHO_C" >&6
21903 cat >conftest.$ac_ext <<_ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h. */
21909 $ac_includes_default
21910 typedef dev_t ac__type_new_;
21914 if ((ac__type_new_ *) 0)
21916 if (sizeof (ac__type_new_))
21922 rm -f conftest.$ac_objext
21923 if { (ac_try="$ac_compile"
21924 case "(($ac_try" in
21925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21926 *) ac_try_echo=$ac_try;;
21928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21929 (eval "$ac_compile") 2>conftest.er1
21931 grep -v '^ *+' conftest.er1 >conftest.err
21933 cat conftest.err >&5
21934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21935 (exit $ac_status); } && {
21936 test -z "$ac_c_werror_flag" ||
21937 test ! -s conftest.err
21938 } && test -s conftest.$ac_objext; then
21939 ac_cv_type_dev_t=yes
21941 echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21944 ac_cv_type_dev_t=no
21947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21949 { echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
21950 echo "${ECHO_T}$ac_cv_type_dev_t" >&6; }
21951 if test $ac_cv_type_dev_t = yes; then
21955 cat >>confdefs.h <<_ACEOF
21956 #define dev_t unsigned long
21961 { echo "$as_me:$LINENO: checking for daddr_t" >&5
21962 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6; }
21963 if test "${ac_cv_type_daddr_t+set}" = set; then
21964 echo $ECHO_N "(cached) $ECHO_C" >&6
21966 cat >conftest.$ac_ext <<_ACEOF
21969 cat confdefs.h >>conftest.$ac_ext
21970 cat >>conftest.$ac_ext <<_ACEOF
21971 /* end confdefs.h. */
21972 $ac_includes_default
21973 typedef daddr_t ac__type_new_;
21977 if ((ac__type_new_ *) 0)
21979 if (sizeof (ac__type_new_))
21985 rm -f conftest.$ac_objext
21986 if { (ac_try="$ac_compile"
21987 case "(($ac_try" in
21988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21989 *) ac_try_echo=$ac_try;;
21991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21992 (eval "$ac_compile") 2>conftest.er1
21994 grep -v '^ *+' conftest.er1 >conftest.err
21996 cat conftest.err >&5
21997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21998 (exit $ac_status); } && {
21999 test -z "$ac_c_werror_flag" ||
22000 test ! -s conftest.err
22001 } && test -s conftest.$ac_objext; then
22002 ac_cv_type_daddr_t=yes
22004 echo "$as_me: failed program was:" >&5
22005 sed 's/^/| /' conftest.$ac_ext >&5
22007 ac_cv_type_daddr_t=no
22010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22012 { echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
22013 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6; }
22014 if test $ac_cv_type_daddr_t = yes; then
22018 cat >>confdefs.h <<_ACEOF
22019 #define daddr_t long
22024 { echo "$as_me:$LINENO: checking for major_t" >&5
22025 echo $ECHO_N "checking for major_t... $ECHO_C" >&6; }
22026 if test "${ac_cv_type_major_t+set}" = set; then
22027 echo $ECHO_N "(cached) $ECHO_C" >&6
22029 cat >conftest.$ac_ext <<_ACEOF
22032 cat confdefs.h >>conftest.$ac_ext
22033 cat >>conftest.$ac_ext <<_ACEOF
22034 /* end confdefs.h. */
22035 $ac_includes_default
22036 typedef major_t ac__type_new_;
22040 if ((ac__type_new_ *) 0)
22042 if (sizeof (ac__type_new_))
22048 rm -f conftest.$ac_objext
22049 if { (ac_try="$ac_compile"
22050 case "(($ac_try" in
22051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22052 *) ac_try_echo=$ac_try;;
22054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22055 (eval "$ac_compile") 2>conftest.er1
22057 grep -v '^ *+' conftest.er1 >conftest.err
22059 cat conftest.err >&5
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); } && {
22062 test -z "$ac_c_werror_flag" ||
22063 test ! -s conftest.err
22064 } && test -s conftest.$ac_objext; then
22065 ac_cv_type_major_t=yes
22067 echo "$as_me: failed program was:" >&5
22068 sed 's/^/| /' conftest.$ac_ext >&5
22070 ac_cv_type_major_t=no
22073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22075 { echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
22076 echo "${ECHO_T}$ac_cv_type_major_t" >&6; }
22077 if test $ac_cv_type_major_t = yes; then
22081 cat >>confdefs.h <<_ACEOF
22082 #define major_t int
22087 { echo "$as_me:$LINENO: checking for minor_t" >&5
22088 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6; }
22089 if test "${ac_cv_type_minor_t+set}" = set; then
22090 echo $ECHO_N "(cached) $ECHO_C" >&6
22092 cat >conftest.$ac_ext <<_ACEOF
22095 cat confdefs.h >>conftest.$ac_ext
22096 cat >>conftest.$ac_ext <<_ACEOF
22097 /* end confdefs.h. */
22098 $ac_includes_default
22099 typedef minor_t ac__type_new_;
22103 if ((ac__type_new_ *) 0)
22105 if (sizeof (ac__type_new_))
22111 rm -f conftest.$ac_objext
22112 if { (ac_try="$ac_compile"
22113 case "(($ac_try" in
22114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22115 *) ac_try_echo=$ac_try;;
22117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22118 (eval "$ac_compile") 2>conftest.er1
22120 grep -v '^ *+' conftest.er1 >conftest.err
22122 cat conftest.err >&5
22123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); } && {
22125 test -z "$ac_c_werror_flag" ||
22126 test ! -s conftest.err
22127 } && test -s conftest.$ac_objext; then
22128 ac_cv_type_minor_t=yes
22130 echo "$as_me: failed program was:" >&5
22131 sed 's/^/| /' conftest.$ac_ext >&5
22133 ac_cv_type_minor_t=no
22136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22138 { echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
22139 echo "${ECHO_T}$ac_cv_type_minor_t" >&6; }
22140 if test $ac_cv_type_minor_t = yes; then
22144 cat >>confdefs.h <<_ACEOF
22145 #define minor_t int
22150 { echo "$as_me:$LINENO: checking for ssize_t" >&5
22151 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
22152 if test "${ac_cv_type_ssize_t+set}" = set; then
22153 echo $ECHO_N "(cached) $ECHO_C" >&6
22155 cat >conftest.$ac_ext <<_ACEOF
22158 cat confdefs.h >>conftest.$ac_ext
22159 cat >>conftest.$ac_ext <<_ACEOF
22160 /* end confdefs.h. */
22161 $ac_includes_default
22162 typedef ssize_t ac__type_new_;
22166 if ((ac__type_new_ *) 0)
22168 if (sizeof (ac__type_new_))
22174 rm -f conftest.$ac_objext
22175 if { (ac_try="$ac_compile"
22176 case "(($ac_try" in
22177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22178 *) ac_try_echo=$ac_try;;
22180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22181 (eval "$ac_compile") 2>conftest.er1
22183 grep -v '^ *+' conftest.er1 >conftest.err
22185 cat conftest.err >&5
22186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); } && {
22188 test -z "$ac_c_werror_flag" ||
22189 test ! -s conftest.err
22190 } && test -s conftest.$ac_objext; then
22191 ac_cv_type_ssize_t=yes
22193 echo "$as_me: failed program was:" >&5
22194 sed 's/^/| /' conftest.$ac_ext >&5
22196 ac_cv_type_ssize_t=no
22199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22201 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
22202 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
22203 if test $ac_cv_type_ssize_t = yes; then
22207 cat >>confdefs.h <<_ACEOF
22208 #define ssize_t int
22213 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
22214 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
22215 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
22216 echo $ECHO_N "(cached) $ECHO_C" >&6
22218 cat >conftest.$ac_ext <<_ACEOF
22221 cat confdefs.h >>conftest.$ac_ext
22222 cat >>conftest.$ac_ext <<_ACEOF
22223 /* end confdefs.h. */
22224 $ac_includes_default
22228 static struct stat ac_aggr;
22229 if (ac_aggr.st_blocks)
22235 rm -f conftest.$ac_objext
22236 if { (ac_try="$ac_compile"
22237 case "(($ac_try" in
22238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22239 *) ac_try_echo=$ac_try;;
22241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22242 (eval "$ac_compile") 2>conftest.er1
22244 grep -v '^ *+' conftest.er1 >conftest.err
22246 cat conftest.err >&5
22247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248 (exit $ac_status); } && {
22249 test -z "$ac_c_werror_flag" ||
22250 test ! -s conftest.err
22251 } && test -s conftest.$ac_objext; then
22252 ac_cv_member_struct_stat_st_blocks=yes
22254 echo "$as_me: failed program was:" >&5
22255 sed 's/^/| /' conftest.$ac_ext >&5
22257 cat >conftest.$ac_ext <<_ACEOF
22260 cat confdefs.h >>conftest.$ac_ext
22261 cat >>conftest.$ac_ext <<_ACEOF
22262 /* end confdefs.h. */
22263 $ac_includes_default
22267 static struct stat ac_aggr;
22268 if (sizeof ac_aggr.st_blocks)
22274 rm -f conftest.$ac_objext
22275 if { (ac_try="$ac_compile"
22276 case "(($ac_try" in
22277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278 *) ac_try_echo=$ac_try;;
22280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22281 (eval "$ac_compile") 2>conftest.er1
22283 grep -v '^ *+' conftest.er1 >conftest.err
22285 cat conftest.err >&5
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); } && {
22288 test -z "$ac_c_werror_flag" ||
22289 test ! -s conftest.err
22290 } && test -s conftest.$ac_objext; then
22291 ac_cv_member_struct_stat_st_blocks=yes
22293 echo "$as_me: failed program was:" >&5
22294 sed 's/^/| /' conftest.$ac_ext >&5
22296 ac_cv_member_struct_stat_st_blocks=no
22299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22304 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
22305 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
22306 if test $ac_cv_member_struct_stat_st_blocks = yes; then
22308 cat >>confdefs.h <<_ACEOF
22309 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
22313 cat >>confdefs.h <<\_ACEOF
22314 #define HAVE_ST_BLOCKS 1
22318 case " $LIBOBJS " in
22319 *" fileblocks.$ac_objext "* ) ;;
22320 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
22327 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
22328 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
22329 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
22330 echo $ECHO_N "(cached) $ECHO_C" >&6
22332 cat >conftest.$ac_ext <<_ACEOF
22335 cat confdefs.h >>conftest.$ac_ext
22336 cat >>conftest.$ac_ext <<_ACEOF
22337 /* end confdefs.h. */
22338 $ac_includes_default
22342 static struct stat ac_aggr;
22343 if (ac_aggr.st_rdev)
22349 rm -f conftest.$ac_objext
22350 if { (ac_try="$ac_compile"
22351 case "(($ac_try" in
22352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22353 *) ac_try_echo=$ac_try;;
22355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22356 (eval "$ac_compile") 2>conftest.er1
22358 grep -v '^ *+' conftest.er1 >conftest.err
22360 cat conftest.err >&5
22361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362 (exit $ac_status); } && {
22363 test -z "$ac_c_werror_flag" ||
22364 test ! -s conftest.err
22365 } && test -s conftest.$ac_objext; then
22366 ac_cv_member_struct_stat_st_rdev=yes
22368 echo "$as_me: failed program was:" >&5
22369 sed 's/^/| /' conftest.$ac_ext >&5
22371 cat >conftest.$ac_ext <<_ACEOF
22374 cat confdefs.h >>conftest.$ac_ext
22375 cat >>conftest.$ac_ext <<_ACEOF
22376 /* end confdefs.h. */
22377 $ac_includes_default
22381 static struct stat ac_aggr;
22382 if (sizeof ac_aggr.st_rdev)
22388 rm -f conftest.$ac_objext
22389 if { (ac_try="$ac_compile"
22390 case "(($ac_try" in
22391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22392 *) ac_try_echo=$ac_try;;
22394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22395 (eval "$ac_compile") 2>conftest.er1
22397 grep -v '^ *+' conftest.er1 >conftest.err
22399 cat conftest.err >&5
22400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401 (exit $ac_status); } && {
22402 test -z "$ac_c_werror_flag" ||
22403 test ! -s conftest.err
22404 } && test -s conftest.$ac_objext; then
22405 ac_cv_member_struct_stat_st_rdev=yes
22407 echo "$as_me: failed program was:" >&5
22408 sed 's/^/| /' conftest.$ac_ext >&5
22410 ac_cv_member_struct_stat_st_rdev=no
22413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22418 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
22419 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
22420 if test $ac_cv_member_struct_stat_st_rdev = yes; then
22422 cat >>confdefs.h <<_ACEOF
22423 #define HAVE_STRUCT_STAT_ST_RDEV 1
22427 cat >>confdefs.h <<\_ACEOF
22428 #define HAVE_ST_RDEV 1
22434 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22435 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
22436 if test "${ac_cv_struct_tm+set}" = set; then
22437 echo $ECHO_N "(cached) $ECHO_C" >&6
22439 cat >conftest.$ac_ext <<_ACEOF
22442 cat confdefs.h >>conftest.$ac_ext
22443 cat >>conftest.$ac_ext <<_ACEOF
22444 /* end confdefs.h. */
22445 #include <sys/types.h>
22452 int *p = &tm.tm_sec;
22458 rm -f conftest.$ac_objext
22459 if { (ac_try="$ac_compile"
22460 case "(($ac_try" in
22461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22462 *) ac_try_echo=$ac_try;;
22464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22465 (eval "$ac_compile") 2>conftest.er1
22467 grep -v '^ *+' conftest.er1 >conftest.err
22469 cat conftest.err >&5
22470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22471 (exit $ac_status); } && {
22472 test -z "$ac_c_werror_flag" ||
22473 test ! -s conftest.err
22474 } && test -s conftest.$ac_objext; then
22475 ac_cv_struct_tm=time.h
22477 echo "$as_me: failed program was:" >&5
22478 sed 's/^/| /' conftest.$ac_ext >&5
22480 ac_cv_struct_tm=sys/time.h
22483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22485 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22486 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
22487 if test $ac_cv_struct_tm = sys/time.h; then
22489 cat >>confdefs.h <<\_ACEOF
22490 #define TM_IN_SYS_TIME 1
22495 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22496 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
22497 if test "${ac_cv_c_const+set}" = set; then
22498 echo $ECHO_N "(cached) $ECHO_C" >&6
22500 cat >conftest.$ac_ext <<_ACEOF
22503 cat confdefs.h >>conftest.$ac_ext
22504 cat >>conftest.$ac_ext <<_ACEOF
22505 /* end confdefs.h. */
22510 /* FIXME: Include the comments suggested by Paul. */
22511 #ifndef __cplusplus
22512 /* Ultrix mips cc rejects this. */
22513 typedef int charset[2];
22515 /* SunOS 4.1.1 cc rejects this. */
22516 char const *const *pcpcc;
22518 /* NEC SVR4.0.2 mips cc rejects this. */
22519 struct point {int x, y;};
22520 static struct point const zero = {0,0};
22521 /* AIX XL C 1.02.0.0 rejects this.
22522 It does not let you subtract one const X* pointer from another in
22523 an arm of an if-expression whose if-part is not a constant
22525 const char *g = "string";
22526 pcpcc = &g + (g ? g-g : 0);
22527 /* HPUX 7.0 cc rejects these. */
22529 ppc = (char**) pcpcc;
22530 pcpcc = (char const *const *) ppc;
22531 { /* SCO 3.2v4 cc rejects this. */
22533 char const *s = 0 ? (char *) 0 : (char const *) 0;
22538 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22539 int x[] = {25, 17};
22540 const int *foo = &x[0];
22543 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22544 typedef const int *iptr;
22548 { /* AIX XL C 1.02.0.0 rejects this saying
22549 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22550 struct s { int j; const int *ap[3]; };
22551 struct s *b; b->j = 5;
22553 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22554 const int foo = 10;
22555 if (!foo) return 0;
22557 return !cs[0] && !zero.x;
22564 rm -f conftest.$ac_objext
22565 if { (ac_try="$ac_compile"
22566 case "(($ac_try" in
22567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22568 *) ac_try_echo=$ac_try;;
22570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22571 (eval "$ac_compile") 2>conftest.er1
22573 grep -v '^ *+' conftest.er1 >conftest.err
22575 cat conftest.err >&5
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); } && {
22578 test -z "$ac_c_werror_flag" ||
22579 test ! -s conftest.err
22580 } && test -s conftest.$ac_objext; then
22583 echo "$as_me: failed program was:" >&5
22584 sed 's/^/| /' conftest.$ac_ext >&5
22589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22591 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22592 echo "${ECHO_T}$ac_cv_c_const" >&6; }
22593 if test $ac_cv_c_const = no; then
22595 cat >>confdefs.h <<\_ACEOF
22603 { echo "$as_me:$LINENO: checking for char" >&5
22604 echo $ECHO_N "checking for char... $ECHO_C" >&6; }
22605 if test "${ac_cv_type_char+set}" = set; then
22606 echo $ECHO_N "(cached) $ECHO_C" >&6
22608 cat >conftest.$ac_ext <<_ACEOF
22611 cat confdefs.h >>conftest.$ac_ext
22612 cat >>conftest.$ac_ext <<_ACEOF
22613 /* end confdefs.h. */
22614 $ac_includes_default
22615 typedef char ac__type_new_;
22619 if ((ac__type_new_ *) 0)
22621 if (sizeof (ac__type_new_))
22627 rm -f conftest.$ac_objext
22628 if { (ac_try="$ac_compile"
22629 case "(($ac_try" in
22630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22631 *) ac_try_echo=$ac_try;;
22633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22634 (eval "$ac_compile") 2>conftest.er1
22636 grep -v '^ *+' conftest.er1 >conftest.err
22638 cat conftest.err >&5
22639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); } && {
22641 test -z "$ac_c_werror_flag" ||
22642 test ! -s conftest.err
22643 } && test -s conftest.$ac_objext; then
22644 ac_cv_type_char=yes
22646 echo "$as_me: failed program was:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22654 { echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
22655 echo "${ECHO_T}$ac_cv_type_char" >&6; }
22657 # The cast to long int works around a bug in the HP C Compiler
22658 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22659 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22660 # This bug is HP SR number 8606223364.
22661 { echo "$as_me:$LINENO: checking size of char" >&5
22662 echo $ECHO_N "checking size of char... $ECHO_C" >&6; }
22663 if test "${ac_cv_sizeof_char+set}" = set; then
22664 echo $ECHO_N "(cached) $ECHO_C" >&6
22666 if test "$cross_compiling" = yes; then
22667 # Depending upon the size, compute the lo and hi bounds.
22668 cat >conftest.$ac_ext <<_ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h. */
22674 $ac_includes_default
22675 typedef char ac__type_sizeof_;
22679 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22686 rm -f conftest.$ac_objext
22687 if { (ac_try="$ac_compile"
22688 case "(($ac_try" in
22689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22690 *) ac_try_echo=$ac_try;;
22692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22693 (eval "$ac_compile") 2>conftest.er1
22695 grep -v '^ *+' conftest.er1 >conftest.err
22697 cat conftest.err >&5
22698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22699 (exit $ac_status); } && {
22700 test -z "$ac_c_werror_flag" ||
22701 test ! -s conftest.err
22702 } && test -s conftest.$ac_objext; then
22705 cat >conftest.$ac_ext <<_ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h. */
22711 $ac_includes_default
22712 typedef char ac__type_sizeof_;
22716 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22723 rm -f conftest.$ac_objext
22724 if { (ac_try="$ac_compile"
22725 case "(($ac_try" in
22726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22727 *) ac_try_echo=$ac_try;;
22729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22730 (eval "$ac_compile") 2>conftest.er1
22732 grep -v '^ *+' conftest.er1 >conftest.err
22734 cat conftest.err >&5
22735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736 (exit $ac_status); } && {
22737 test -z "$ac_c_werror_flag" ||
22738 test ! -s conftest.err
22739 } && test -s conftest.$ac_objext; then
22740 ac_hi=$ac_mid; break
22742 echo "$as_me: failed program was:" >&5
22743 sed 's/^/| /' conftest.$ac_ext >&5
22745 ac_lo=`expr $ac_mid + 1`
22746 if test $ac_lo -le $ac_mid; then
22750 ac_mid=`expr 2 '*' $ac_mid + 1`
22753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22756 echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22759 cat >conftest.$ac_ext <<_ACEOF
22762 cat confdefs.h >>conftest.$ac_ext
22763 cat >>conftest.$ac_ext <<_ACEOF
22764 /* end confdefs.h. */
22765 $ac_includes_default
22766 typedef char ac__type_sizeof_;
22770 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22777 rm -f conftest.$ac_objext
22778 if { (ac_try="$ac_compile"
22779 case "(($ac_try" in
22780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22781 *) ac_try_echo=$ac_try;;
22783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22784 (eval "$ac_compile") 2>conftest.er1
22786 grep -v '^ *+' conftest.er1 >conftest.err
22788 cat conftest.err >&5
22789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22790 (exit $ac_status); } && {
22791 test -z "$ac_c_werror_flag" ||
22792 test ! -s conftest.err
22793 } && test -s conftest.$ac_objext; then
22796 cat >conftest.$ac_ext <<_ACEOF
22799 cat confdefs.h >>conftest.$ac_ext
22800 cat >>conftest.$ac_ext <<_ACEOF
22801 /* end confdefs.h. */
22802 $ac_includes_default
22803 typedef char ac__type_sizeof_;
22807 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22814 rm -f conftest.$ac_objext
22815 if { (ac_try="$ac_compile"
22816 case "(($ac_try" in
22817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22818 *) ac_try_echo=$ac_try;;
22820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22821 (eval "$ac_compile") 2>conftest.er1
22823 grep -v '^ *+' conftest.er1 >conftest.err
22825 cat conftest.err >&5
22826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827 (exit $ac_status); } && {
22828 test -z "$ac_c_werror_flag" ||
22829 test ! -s conftest.err
22830 } && test -s conftest.$ac_objext; then
22831 ac_lo=$ac_mid; break
22833 echo "$as_me: failed program was:" >&5
22834 sed 's/^/| /' conftest.$ac_ext >&5
22836 ac_hi=`expr '(' $ac_mid ')' - 1`
22837 if test $ac_mid -le $ac_hi; then
22841 ac_mid=`expr 2 '*' $ac_mid`
22844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22847 echo "$as_me: failed program was:" >&5
22848 sed 's/^/| /' conftest.$ac_ext >&5
22853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22857 # Binary search between lo and hi bounds.
22858 while test "x$ac_lo" != "x$ac_hi"; do
22859 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22860 cat >conftest.$ac_ext <<_ACEOF
22863 cat confdefs.h >>conftest.$ac_ext
22864 cat >>conftest.$ac_ext <<_ACEOF
22865 /* end confdefs.h. */
22866 $ac_includes_default
22867 typedef char ac__type_sizeof_;
22871 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22878 rm -f conftest.$ac_objext
22879 if { (ac_try="$ac_compile"
22880 case "(($ac_try" in
22881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22882 *) ac_try_echo=$ac_try;;
22884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22885 (eval "$ac_compile") 2>conftest.er1
22887 grep -v '^ *+' conftest.er1 >conftest.err
22889 cat conftest.err >&5
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); } && {
22892 test -z "$ac_c_werror_flag" ||
22893 test ! -s conftest.err
22894 } && test -s conftest.$ac_objext; then
22897 echo "$as_me: failed program was:" >&5
22898 sed 's/^/| /' conftest.$ac_ext >&5
22900 ac_lo=`expr '(' $ac_mid ')' + 1`
22903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22906 ?*) ac_cv_sizeof_char=$ac_lo;;
22907 '') if test "$ac_cv_type_char" = yes; then
22908 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
22909 See \`config.log' for more details." >&5
22910 echo "$as_me: error: cannot compute sizeof (char)
22911 See \`config.log' for more details." >&2;}
22912 { (exit 77); exit 77; }; }
22914 ac_cv_sizeof_char=0
22918 cat >conftest.$ac_ext <<_ACEOF
22921 cat confdefs.h >>conftest.$ac_ext
22922 cat >>conftest.$ac_ext <<_ACEOF
22923 /* end confdefs.h. */
22924 $ac_includes_default
22925 typedef char ac__type_sizeof_;
22926 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22927 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22929 #include <stdlib.h>
22934 FILE *f = fopen ("conftest.val", "w");
22937 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22939 long int i = longval ();
22940 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22942 fprintf (f, "%ld\n", i);
22946 unsigned long int i = ulongval ();
22947 if (i != ((long int) (sizeof (ac__type_sizeof_))))
22949 fprintf (f, "%lu\n", i);
22951 return ferror (f) || fclose (f) != 0;
22957 rm -f conftest$ac_exeext
22958 if { (ac_try="$ac_link"
22959 case "(($ac_try" in
22960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22961 *) ac_try_echo=$ac_try;;
22963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22964 (eval "$ac_link") 2>&5
22966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22968 { (case "(($ac_try" in
22969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970 *) ac_try_echo=$ac_try;;
22972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22973 (eval "$ac_try") 2>&5
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); }; }; then
22977 ac_cv_sizeof_char=`cat conftest.val`
22979 echo "$as_me: program exited with status $ac_status" >&5
22980 echo "$as_me: failed program was:" >&5
22981 sed 's/^/| /' conftest.$ac_ext >&5
22983 ( exit $ac_status )
22984 if test "$ac_cv_type_char" = yes; then
22985 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char)
22986 See \`config.log' for more details." >&5
22987 echo "$as_me: error: cannot compute sizeof (char)
22988 See \`config.log' for more details." >&2;}
22989 { (exit 77); exit 77; }; }
22991 ac_cv_sizeof_char=0
22994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22998 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
22999 echo "${ECHO_T}$ac_cv_sizeof_char" >&6; }
23003 cat >>confdefs.h <<_ACEOF
23004 #define SIZEOF_CHAR $ac_cv_sizeof_char
23008 { echo "$as_me:$LINENO: checking for short int" >&5
23009 echo $ECHO_N "checking for short int... $ECHO_C" >&6; }
23010 if test "${ac_cv_type_short_int+set}" = set; then
23011 echo $ECHO_N "(cached) $ECHO_C" >&6
23013 cat >conftest.$ac_ext <<_ACEOF
23016 cat confdefs.h >>conftest.$ac_ext
23017 cat >>conftest.$ac_ext <<_ACEOF
23018 /* end confdefs.h. */
23019 $ac_includes_default
23020 typedef short int ac__type_new_;
23024 if ((ac__type_new_ *) 0)
23026 if (sizeof (ac__type_new_))
23032 rm -f conftest.$ac_objext
23033 if { (ac_try="$ac_compile"
23034 case "(($ac_try" in
23035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23036 *) ac_try_echo=$ac_try;;
23038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23039 (eval "$ac_compile") 2>conftest.er1
23041 grep -v '^ *+' conftest.er1 >conftest.err
23043 cat conftest.err >&5
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); } && {
23046 test -z "$ac_c_werror_flag" ||
23047 test ! -s conftest.err
23048 } && test -s conftest.$ac_objext; then
23049 ac_cv_type_short_int=yes
23051 echo "$as_me: failed program was:" >&5
23052 sed 's/^/| /' conftest.$ac_ext >&5
23054 ac_cv_type_short_int=no
23057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23059 { echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
23060 echo "${ECHO_T}$ac_cv_type_short_int" >&6; }
23062 # The cast to long int works around a bug in the HP C Compiler
23063 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23064 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23065 # This bug is HP SR number 8606223364.
23066 { echo "$as_me:$LINENO: checking size of short int" >&5
23067 echo $ECHO_N "checking size of short int... $ECHO_C" >&6; }
23068 if test "${ac_cv_sizeof_short_int+set}" = set; then
23069 echo $ECHO_N "(cached) $ECHO_C" >&6
23071 if test "$cross_compiling" = yes; then
23072 # Depending upon the size, compute the lo and hi bounds.
23073 cat >conftest.$ac_ext <<_ACEOF
23076 cat confdefs.h >>conftest.$ac_ext
23077 cat >>conftest.$ac_ext <<_ACEOF
23078 /* end confdefs.h. */
23079 $ac_includes_default
23080 typedef short int ac__type_sizeof_;
23084 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23091 rm -f conftest.$ac_objext
23092 if { (ac_try="$ac_compile"
23093 case "(($ac_try" in
23094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23095 *) ac_try_echo=$ac_try;;
23097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23098 (eval "$ac_compile") 2>conftest.er1
23100 grep -v '^ *+' conftest.er1 >conftest.err
23102 cat conftest.err >&5
23103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); } && {
23105 test -z "$ac_c_werror_flag" ||
23106 test ! -s conftest.err
23107 } && test -s conftest.$ac_objext; then
23110 cat >conftest.$ac_ext <<_ACEOF
23113 cat confdefs.h >>conftest.$ac_ext
23114 cat >>conftest.$ac_ext <<_ACEOF
23115 /* end confdefs.h. */
23116 $ac_includes_default
23117 typedef short int ac__type_sizeof_;
23121 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23128 rm -f conftest.$ac_objext
23129 if { (ac_try="$ac_compile"
23130 case "(($ac_try" in
23131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23132 *) ac_try_echo=$ac_try;;
23134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23135 (eval "$ac_compile") 2>conftest.er1
23137 grep -v '^ *+' conftest.er1 >conftest.err
23139 cat conftest.err >&5
23140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141 (exit $ac_status); } && {
23142 test -z "$ac_c_werror_flag" ||
23143 test ! -s conftest.err
23144 } && test -s conftest.$ac_objext; then
23145 ac_hi=$ac_mid; break
23147 echo "$as_me: failed program was:" >&5
23148 sed 's/^/| /' conftest.$ac_ext >&5
23150 ac_lo=`expr $ac_mid + 1`
23151 if test $ac_lo -le $ac_mid; then
23155 ac_mid=`expr 2 '*' $ac_mid + 1`
23158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23161 echo "$as_me: failed program was:" >&5
23162 sed 's/^/| /' conftest.$ac_ext >&5
23164 cat >conftest.$ac_ext <<_ACEOF
23167 cat confdefs.h >>conftest.$ac_ext
23168 cat >>conftest.$ac_ext <<_ACEOF
23169 /* end confdefs.h. */
23170 $ac_includes_default
23171 typedef short int ac__type_sizeof_;
23175 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23182 rm -f conftest.$ac_objext
23183 if { (ac_try="$ac_compile"
23184 case "(($ac_try" in
23185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23186 *) ac_try_echo=$ac_try;;
23188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23189 (eval "$ac_compile") 2>conftest.er1
23191 grep -v '^ *+' conftest.er1 >conftest.err
23193 cat conftest.err >&5
23194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23195 (exit $ac_status); } && {
23196 test -z "$ac_c_werror_flag" ||
23197 test ! -s conftest.err
23198 } && test -s conftest.$ac_objext; then
23201 cat >conftest.$ac_ext <<_ACEOF
23204 cat confdefs.h >>conftest.$ac_ext
23205 cat >>conftest.$ac_ext <<_ACEOF
23206 /* end confdefs.h. */
23207 $ac_includes_default
23208 typedef short int ac__type_sizeof_;
23212 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23219 rm -f conftest.$ac_objext
23220 if { (ac_try="$ac_compile"
23221 case "(($ac_try" in
23222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23223 *) ac_try_echo=$ac_try;;
23225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23226 (eval "$ac_compile") 2>conftest.er1
23228 grep -v '^ *+' conftest.er1 >conftest.err
23230 cat conftest.err >&5
23231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23232 (exit $ac_status); } && {
23233 test -z "$ac_c_werror_flag" ||
23234 test ! -s conftest.err
23235 } && test -s conftest.$ac_objext; then
23236 ac_lo=$ac_mid; break
23238 echo "$as_me: failed program was:" >&5
23239 sed 's/^/| /' conftest.$ac_ext >&5
23241 ac_hi=`expr '(' $ac_mid ')' - 1`
23242 if test $ac_mid -le $ac_hi; then
23246 ac_mid=`expr 2 '*' $ac_mid`
23249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23252 echo "$as_me: failed program was:" >&5
23253 sed 's/^/| /' conftest.$ac_ext >&5
23258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23262 # Binary search between lo and hi bounds.
23263 while test "x$ac_lo" != "x$ac_hi"; do
23264 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23265 cat >conftest.$ac_ext <<_ACEOF
23268 cat confdefs.h >>conftest.$ac_ext
23269 cat >>conftest.$ac_ext <<_ACEOF
23270 /* end confdefs.h. */
23271 $ac_includes_default
23272 typedef short int ac__type_sizeof_;
23276 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23283 rm -f conftest.$ac_objext
23284 if { (ac_try="$ac_compile"
23285 case "(($ac_try" in
23286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287 *) ac_try_echo=$ac_try;;
23289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23290 (eval "$ac_compile") 2>conftest.er1
23292 grep -v '^ *+' conftest.er1 >conftest.err
23294 cat conftest.err >&5
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); } && {
23297 test -z "$ac_c_werror_flag" ||
23298 test ! -s conftest.err
23299 } && test -s conftest.$ac_objext; then
23302 echo "$as_me: failed program was:" >&5
23303 sed 's/^/| /' conftest.$ac_ext >&5
23305 ac_lo=`expr '(' $ac_mid ')' + 1`
23308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23311 ?*) ac_cv_sizeof_short_int=$ac_lo;;
23312 '') if test "$ac_cv_type_short_int" = yes; then
23313 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
23314 See \`config.log' for more details." >&5
23315 echo "$as_me: error: cannot compute sizeof (short int)
23316 See \`config.log' for more details." >&2;}
23317 { (exit 77); exit 77; }; }
23319 ac_cv_sizeof_short_int=0
23323 cat >conftest.$ac_ext <<_ACEOF
23326 cat confdefs.h >>conftest.$ac_ext
23327 cat >>conftest.$ac_ext <<_ACEOF
23328 /* end confdefs.h. */
23329 $ac_includes_default
23330 typedef short int ac__type_sizeof_;
23331 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23332 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23334 #include <stdlib.h>
23339 FILE *f = fopen ("conftest.val", "w");
23342 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23344 long int i = longval ();
23345 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23347 fprintf (f, "%ld\n", i);
23351 unsigned long int i = ulongval ();
23352 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23354 fprintf (f, "%lu\n", i);
23356 return ferror (f) || fclose (f) != 0;
23362 rm -f conftest$ac_exeext
23363 if { (ac_try="$ac_link"
23364 case "(($ac_try" in
23365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23366 *) ac_try_echo=$ac_try;;
23368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23369 (eval "$ac_link") 2>&5
23371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23373 { (case "(($ac_try" in
23374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23375 *) ac_try_echo=$ac_try;;
23377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23378 (eval "$ac_try") 2>&5
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); }; }; then
23382 ac_cv_sizeof_short_int=`cat conftest.val`
23384 echo "$as_me: program exited with status $ac_status" >&5
23385 echo "$as_me: failed program was:" >&5
23386 sed 's/^/| /' conftest.$ac_ext >&5
23388 ( exit $ac_status )
23389 if test "$ac_cv_type_short_int" = yes; then
23390 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int)
23391 See \`config.log' for more details." >&5
23392 echo "$as_me: error: cannot compute sizeof (short int)
23393 See \`config.log' for more details." >&2;}
23394 { (exit 77); exit 77; }; }
23396 ac_cv_sizeof_short_int=0
23399 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23403 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
23404 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6; }
23408 cat >>confdefs.h <<_ACEOF
23409 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
23413 { echo "$as_me:$LINENO: checking for int" >&5
23414 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
23415 if test "${ac_cv_type_int+set}" = set; then
23416 echo $ECHO_N "(cached) $ECHO_C" >&6
23418 cat >conftest.$ac_ext <<_ACEOF
23421 cat confdefs.h >>conftest.$ac_ext
23422 cat >>conftest.$ac_ext <<_ACEOF
23423 /* end confdefs.h. */
23424 $ac_includes_default
23425 typedef int ac__type_new_;
23429 if ((ac__type_new_ *) 0)
23431 if (sizeof (ac__type_new_))
23437 rm -f conftest.$ac_objext
23438 if { (ac_try="$ac_compile"
23439 case "(($ac_try" in
23440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23441 *) ac_try_echo=$ac_try;;
23443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23444 (eval "$ac_compile") 2>conftest.er1
23446 grep -v '^ *+' conftest.er1 >conftest.err
23448 cat conftest.err >&5
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); } && {
23451 test -z "$ac_c_werror_flag" ||
23452 test ! -s conftest.err
23453 } && test -s conftest.$ac_objext; then
23456 echo "$as_me: failed program was:" >&5
23457 sed 's/^/| /' conftest.$ac_ext >&5
23462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23464 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
23465 echo "${ECHO_T}$ac_cv_type_int" >&6; }
23467 # The cast to long int works around a bug in the HP C Compiler
23468 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23469 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23470 # This bug is HP SR number 8606223364.
23471 { echo "$as_me:$LINENO: checking size of int" >&5
23472 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
23473 if test "${ac_cv_sizeof_int+set}" = set; then
23474 echo $ECHO_N "(cached) $ECHO_C" >&6
23476 if test "$cross_compiling" = yes; then
23477 # Depending upon the size, compute the lo and hi bounds.
23478 cat >conftest.$ac_ext <<_ACEOF
23481 cat confdefs.h >>conftest.$ac_ext
23482 cat >>conftest.$ac_ext <<_ACEOF
23483 /* end confdefs.h. */
23484 $ac_includes_default
23485 typedef int ac__type_sizeof_;
23489 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23496 rm -f conftest.$ac_objext
23497 if { (ac_try="$ac_compile"
23498 case "(($ac_try" in
23499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23500 *) ac_try_echo=$ac_try;;
23502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23503 (eval "$ac_compile") 2>conftest.er1
23505 grep -v '^ *+' conftest.er1 >conftest.err
23507 cat conftest.err >&5
23508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23509 (exit $ac_status); } && {
23510 test -z "$ac_c_werror_flag" ||
23511 test ! -s conftest.err
23512 } && test -s conftest.$ac_objext; then
23515 cat >conftest.$ac_ext <<_ACEOF
23518 cat confdefs.h >>conftest.$ac_ext
23519 cat >>conftest.$ac_ext <<_ACEOF
23520 /* end confdefs.h. */
23521 $ac_includes_default
23522 typedef int ac__type_sizeof_;
23526 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23533 rm -f conftest.$ac_objext
23534 if { (ac_try="$ac_compile"
23535 case "(($ac_try" in
23536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23537 *) ac_try_echo=$ac_try;;
23539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23540 (eval "$ac_compile") 2>conftest.er1
23542 grep -v '^ *+' conftest.er1 >conftest.err
23544 cat conftest.err >&5
23545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23546 (exit $ac_status); } && {
23547 test -z "$ac_c_werror_flag" ||
23548 test ! -s conftest.err
23549 } && test -s conftest.$ac_objext; then
23550 ac_hi=$ac_mid; break
23552 echo "$as_me: failed program was:" >&5
23553 sed 's/^/| /' conftest.$ac_ext >&5
23555 ac_lo=`expr $ac_mid + 1`
23556 if test $ac_lo -le $ac_mid; then
23560 ac_mid=`expr 2 '*' $ac_mid + 1`
23563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23566 echo "$as_me: failed program was:" >&5
23567 sed 's/^/| /' conftest.$ac_ext >&5
23569 cat >conftest.$ac_ext <<_ACEOF
23572 cat confdefs.h >>conftest.$ac_ext
23573 cat >>conftest.$ac_ext <<_ACEOF
23574 /* end confdefs.h. */
23575 $ac_includes_default
23576 typedef int ac__type_sizeof_;
23580 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23587 rm -f conftest.$ac_objext
23588 if { (ac_try="$ac_compile"
23589 case "(($ac_try" in
23590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23591 *) ac_try_echo=$ac_try;;
23593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23594 (eval "$ac_compile") 2>conftest.er1
23596 grep -v '^ *+' conftest.er1 >conftest.err
23598 cat conftest.err >&5
23599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600 (exit $ac_status); } && {
23601 test -z "$ac_c_werror_flag" ||
23602 test ! -s conftest.err
23603 } && test -s conftest.$ac_objext; then
23606 cat >conftest.$ac_ext <<_ACEOF
23609 cat confdefs.h >>conftest.$ac_ext
23610 cat >>conftest.$ac_ext <<_ACEOF
23611 /* end confdefs.h. */
23612 $ac_includes_default
23613 typedef int ac__type_sizeof_;
23617 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23624 rm -f conftest.$ac_objext
23625 if { (ac_try="$ac_compile"
23626 case "(($ac_try" in
23627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23628 *) ac_try_echo=$ac_try;;
23630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23631 (eval "$ac_compile") 2>conftest.er1
23633 grep -v '^ *+' conftest.er1 >conftest.err
23635 cat conftest.err >&5
23636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23637 (exit $ac_status); } && {
23638 test -z "$ac_c_werror_flag" ||
23639 test ! -s conftest.err
23640 } && test -s conftest.$ac_objext; then
23641 ac_lo=$ac_mid; break
23643 echo "$as_me: failed program was:" >&5
23644 sed 's/^/| /' conftest.$ac_ext >&5
23646 ac_hi=`expr '(' $ac_mid ')' - 1`
23647 if test $ac_mid -le $ac_hi; then
23651 ac_mid=`expr 2 '*' $ac_mid`
23654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23657 echo "$as_me: failed program was:" >&5
23658 sed 's/^/| /' conftest.$ac_ext >&5
23663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23667 # Binary search between lo and hi bounds.
23668 while test "x$ac_lo" != "x$ac_hi"; do
23669 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23670 cat >conftest.$ac_ext <<_ACEOF
23673 cat confdefs.h >>conftest.$ac_ext
23674 cat >>conftest.$ac_ext <<_ACEOF
23675 /* end confdefs.h. */
23676 $ac_includes_default
23677 typedef int ac__type_sizeof_;
23681 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23688 rm -f conftest.$ac_objext
23689 if { (ac_try="$ac_compile"
23690 case "(($ac_try" in
23691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23692 *) ac_try_echo=$ac_try;;
23694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23695 (eval "$ac_compile") 2>conftest.er1
23697 grep -v '^ *+' conftest.er1 >conftest.err
23699 cat conftest.err >&5
23700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23701 (exit $ac_status); } && {
23702 test -z "$ac_c_werror_flag" ||
23703 test ! -s conftest.err
23704 } && test -s conftest.$ac_objext; then
23707 echo "$as_me: failed program was:" >&5
23708 sed 's/^/| /' conftest.$ac_ext >&5
23710 ac_lo=`expr '(' $ac_mid ')' + 1`
23713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23716 ?*) ac_cv_sizeof_int=$ac_lo;;
23717 '') if test "$ac_cv_type_int" = yes; then
23718 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23719 See \`config.log' for more details." >&5
23720 echo "$as_me: error: cannot compute sizeof (int)
23721 See \`config.log' for more details." >&2;}
23722 { (exit 77); exit 77; }; }
23728 cat >conftest.$ac_ext <<_ACEOF
23731 cat confdefs.h >>conftest.$ac_ext
23732 cat >>conftest.$ac_ext <<_ACEOF
23733 /* end confdefs.h. */
23734 $ac_includes_default
23735 typedef int ac__type_sizeof_;
23736 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23737 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23739 #include <stdlib.h>
23744 FILE *f = fopen ("conftest.val", "w");
23747 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23749 long int i = longval ();
23750 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23752 fprintf (f, "%ld\n", i);
23756 unsigned long int i = ulongval ();
23757 if (i != ((long int) (sizeof (ac__type_sizeof_))))
23759 fprintf (f, "%lu\n", i);
23761 return ferror (f) || fclose (f) != 0;
23767 rm -f conftest$ac_exeext
23768 if { (ac_try="$ac_link"
23769 case "(($ac_try" in
23770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23771 *) ac_try_echo=$ac_try;;
23773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23774 (eval "$ac_link") 2>&5
23776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23778 { (case "(($ac_try" in
23779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23780 *) ac_try_echo=$ac_try;;
23782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23783 (eval "$ac_try") 2>&5
23785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23786 (exit $ac_status); }; }; then
23787 ac_cv_sizeof_int=`cat conftest.val`
23789 echo "$as_me: program exited with status $ac_status" >&5
23790 echo "$as_me: failed program was:" >&5
23791 sed 's/^/| /' conftest.$ac_ext >&5
23793 ( exit $ac_status )
23794 if test "$ac_cv_type_int" = yes; then
23795 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23796 See \`config.log' for more details." >&5
23797 echo "$as_me: error: cannot compute sizeof (int)
23798 See \`config.log' for more details." >&2;}
23799 { (exit 77); exit 77; }; }
23804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23808 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23809 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
23813 cat >>confdefs.h <<_ACEOF
23814 #define SIZEOF_INT $ac_cv_sizeof_int
23818 { echo "$as_me:$LINENO: checking for long int" >&5
23819 echo $ECHO_N "checking for long int... $ECHO_C" >&6; }
23820 if test "${ac_cv_type_long_int+set}" = set; then
23821 echo $ECHO_N "(cached) $ECHO_C" >&6
23823 cat >conftest.$ac_ext <<_ACEOF
23826 cat confdefs.h >>conftest.$ac_ext
23827 cat >>conftest.$ac_ext <<_ACEOF
23828 /* end confdefs.h. */
23829 $ac_includes_default
23830 typedef long int ac__type_new_;
23834 if ((ac__type_new_ *) 0)
23836 if (sizeof (ac__type_new_))
23842 rm -f conftest.$ac_objext
23843 if { (ac_try="$ac_compile"
23844 case "(($ac_try" in
23845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23846 *) ac_try_echo=$ac_try;;
23848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23849 (eval "$ac_compile") 2>conftest.er1
23851 grep -v '^ *+' conftest.er1 >conftest.err
23853 cat conftest.err >&5
23854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23855 (exit $ac_status); } && {
23856 test -z "$ac_c_werror_flag" ||
23857 test ! -s conftest.err
23858 } && test -s conftest.$ac_objext; then
23859 ac_cv_type_long_int=yes
23861 echo "$as_me: failed program was:" >&5
23862 sed 's/^/| /' conftest.$ac_ext >&5
23864 ac_cv_type_long_int=no
23867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23869 { echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
23870 echo "${ECHO_T}$ac_cv_type_long_int" >&6; }
23872 # The cast to long int works around a bug in the HP C Compiler
23873 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23874 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23875 # This bug is HP SR number 8606223364.
23876 { echo "$as_me:$LINENO: checking size of long int" >&5
23877 echo $ECHO_N "checking size of long int... $ECHO_C" >&6; }
23878 if test "${ac_cv_sizeof_long_int+set}" = set; then
23879 echo $ECHO_N "(cached) $ECHO_C" >&6
23881 if test "$cross_compiling" = yes; then
23882 # Depending upon the size, compute the lo and hi bounds.
23883 cat >conftest.$ac_ext <<_ACEOF
23886 cat confdefs.h >>conftest.$ac_ext
23887 cat >>conftest.$ac_ext <<_ACEOF
23888 /* end confdefs.h. */
23889 $ac_includes_default
23890 typedef long int ac__type_sizeof_;
23894 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23901 rm -f conftest.$ac_objext
23902 if { (ac_try="$ac_compile"
23903 case "(($ac_try" in
23904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23905 *) ac_try_echo=$ac_try;;
23907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23908 (eval "$ac_compile") 2>conftest.er1
23910 grep -v '^ *+' conftest.er1 >conftest.err
23912 cat conftest.err >&5
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); } && {
23915 test -z "$ac_c_werror_flag" ||
23916 test ! -s conftest.err
23917 } && test -s conftest.$ac_objext; then
23920 cat >conftest.$ac_ext <<_ACEOF
23923 cat confdefs.h >>conftest.$ac_ext
23924 cat >>conftest.$ac_ext <<_ACEOF
23925 /* end confdefs.h. */
23926 $ac_includes_default
23927 typedef long int ac__type_sizeof_;
23931 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23938 rm -f conftest.$ac_objext
23939 if { (ac_try="$ac_compile"
23940 case "(($ac_try" in
23941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23942 *) ac_try_echo=$ac_try;;
23944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23945 (eval "$ac_compile") 2>conftest.er1
23947 grep -v '^ *+' conftest.er1 >conftest.err
23949 cat conftest.err >&5
23950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951 (exit $ac_status); } && {
23952 test -z "$ac_c_werror_flag" ||
23953 test ! -s conftest.err
23954 } && test -s conftest.$ac_objext; then
23955 ac_hi=$ac_mid; break
23957 echo "$as_me: failed program was:" >&5
23958 sed 's/^/| /' conftest.$ac_ext >&5
23960 ac_lo=`expr $ac_mid + 1`
23961 if test $ac_lo -le $ac_mid; then
23965 ac_mid=`expr 2 '*' $ac_mid + 1`
23968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23971 echo "$as_me: failed program was:" >&5
23972 sed 's/^/| /' conftest.$ac_ext >&5
23974 cat >conftest.$ac_ext <<_ACEOF
23977 cat confdefs.h >>conftest.$ac_ext
23978 cat >>conftest.$ac_ext <<_ACEOF
23979 /* end confdefs.h. */
23980 $ac_includes_default
23981 typedef long int ac__type_sizeof_;
23985 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23992 rm -f conftest.$ac_objext
23993 if { (ac_try="$ac_compile"
23994 case "(($ac_try" in
23995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23996 *) ac_try_echo=$ac_try;;
23998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23999 (eval "$ac_compile") 2>conftest.er1
24001 grep -v '^ *+' conftest.er1 >conftest.err
24003 cat conftest.err >&5
24004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005 (exit $ac_status); } && {
24006 test -z "$ac_c_werror_flag" ||
24007 test ! -s conftest.err
24008 } && test -s conftest.$ac_objext; then
24011 cat >conftest.$ac_ext <<_ACEOF
24014 cat confdefs.h >>conftest.$ac_ext
24015 cat >>conftest.$ac_ext <<_ACEOF
24016 /* end confdefs.h. */
24017 $ac_includes_default
24018 typedef long int ac__type_sizeof_;
24022 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24029 rm -f conftest.$ac_objext
24030 if { (ac_try="$ac_compile"
24031 case "(($ac_try" in
24032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24033 *) ac_try_echo=$ac_try;;
24035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24036 (eval "$ac_compile") 2>conftest.er1
24038 grep -v '^ *+' conftest.er1 >conftest.err
24040 cat conftest.err >&5
24041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24042 (exit $ac_status); } && {
24043 test -z "$ac_c_werror_flag" ||
24044 test ! -s conftest.err
24045 } && test -s conftest.$ac_objext; then
24046 ac_lo=$ac_mid; break
24048 echo "$as_me: failed program was:" >&5
24049 sed 's/^/| /' conftest.$ac_ext >&5
24051 ac_hi=`expr '(' $ac_mid ')' - 1`
24052 if test $ac_mid -le $ac_hi; then
24056 ac_mid=`expr 2 '*' $ac_mid`
24059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24062 echo "$as_me: failed program was:" >&5
24063 sed 's/^/| /' conftest.$ac_ext >&5
24068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24072 # Binary search between lo and hi bounds.
24073 while test "x$ac_lo" != "x$ac_hi"; do
24074 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24075 cat >conftest.$ac_ext <<_ACEOF
24078 cat confdefs.h >>conftest.$ac_ext
24079 cat >>conftest.$ac_ext <<_ACEOF
24080 /* end confdefs.h. */
24081 $ac_includes_default
24082 typedef long int ac__type_sizeof_;
24086 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24093 rm -f conftest.$ac_objext
24094 if { (ac_try="$ac_compile"
24095 case "(($ac_try" in
24096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24097 *) ac_try_echo=$ac_try;;
24099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24100 (eval "$ac_compile") 2>conftest.er1
24102 grep -v '^ *+' conftest.er1 >conftest.err
24104 cat conftest.err >&5
24105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24106 (exit $ac_status); } && {
24107 test -z "$ac_c_werror_flag" ||
24108 test ! -s conftest.err
24109 } && test -s conftest.$ac_objext; then
24112 echo "$as_me: failed program was:" >&5
24113 sed 's/^/| /' conftest.$ac_ext >&5
24115 ac_lo=`expr '(' $ac_mid ')' + 1`
24118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24121 ?*) ac_cv_sizeof_long_int=$ac_lo;;
24122 '') if test "$ac_cv_type_long_int" = yes; then
24123 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24124 See \`config.log' for more details." >&5
24125 echo "$as_me: error: cannot compute sizeof (long int)
24126 See \`config.log' for more details." >&2;}
24127 { (exit 77); exit 77; }; }
24129 ac_cv_sizeof_long_int=0
24133 cat >conftest.$ac_ext <<_ACEOF
24136 cat confdefs.h >>conftest.$ac_ext
24137 cat >>conftest.$ac_ext <<_ACEOF
24138 /* end confdefs.h. */
24139 $ac_includes_default
24140 typedef long int ac__type_sizeof_;
24141 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24142 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24144 #include <stdlib.h>
24149 FILE *f = fopen ("conftest.val", "w");
24152 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24154 long int i = longval ();
24155 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24157 fprintf (f, "%ld\n", i);
24161 unsigned long int i = ulongval ();
24162 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24164 fprintf (f, "%lu\n", i);
24166 return ferror (f) || fclose (f) != 0;
24172 rm -f conftest$ac_exeext
24173 if { (ac_try="$ac_link"
24174 case "(($ac_try" in
24175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24176 *) ac_try_echo=$ac_try;;
24178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24179 (eval "$ac_link") 2>&5
24181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24183 { (case "(($ac_try" in
24184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24185 *) ac_try_echo=$ac_try;;
24187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24188 (eval "$ac_try") 2>&5
24190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191 (exit $ac_status); }; }; then
24192 ac_cv_sizeof_long_int=`cat conftest.val`
24194 echo "$as_me: program exited with status $ac_status" >&5
24195 echo "$as_me: failed program was:" >&5
24196 sed 's/^/| /' conftest.$ac_ext >&5
24198 ( exit $ac_status )
24199 if test "$ac_cv_type_long_int" = yes; then
24200 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int)
24201 See \`config.log' for more details." >&5
24202 echo "$as_me: error: cannot compute sizeof (long int)
24203 See \`config.log' for more details." >&2;}
24204 { (exit 77); exit 77; }; }
24206 ac_cv_sizeof_long_int=0
24209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24213 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
24214 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6; }
24218 cat >>confdefs.h <<_ACEOF
24219 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
24223 { echo "$as_me:$LINENO: checking for long long int" >&5
24224 echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
24225 if test "${ac_cv_type_long_long_int+set}" = set; then
24226 echo $ECHO_N "(cached) $ECHO_C" >&6
24228 cat >conftest.$ac_ext <<_ACEOF
24231 cat confdefs.h >>conftest.$ac_ext
24232 cat >>conftest.$ac_ext <<_ACEOF
24233 /* end confdefs.h. */
24234 $ac_includes_default
24235 typedef long long int ac__type_new_;
24239 if ((ac__type_new_ *) 0)
24241 if (sizeof (ac__type_new_))
24247 rm -f conftest.$ac_objext
24248 if { (ac_try="$ac_compile"
24249 case "(($ac_try" in
24250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24251 *) ac_try_echo=$ac_try;;
24253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24254 (eval "$ac_compile") 2>conftest.er1
24256 grep -v '^ *+' conftest.er1 >conftest.err
24258 cat conftest.err >&5
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); } && {
24261 test -z "$ac_c_werror_flag" ||
24262 test ! -s conftest.err
24263 } && test -s conftest.$ac_objext; then
24264 ac_cv_type_long_long_int=yes
24266 echo "$as_me: failed program was:" >&5
24267 sed 's/^/| /' conftest.$ac_ext >&5
24269 ac_cv_type_long_long_int=no
24272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24274 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
24275 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
24277 # The cast to long int works around a bug in the HP C Compiler
24278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24280 # This bug is HP SR number 8606223364.
24281 { echo "$as_me:$LINENO: checking size of long long int" >&5
24282 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6; }
24283 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
24284 echo $ECHO_N "(cached) $ECHO_C" >&6
24286 if test "$cross_compiling" = yes; then
24287 # Depending upon the size, compute the lo and hi bounds.
24288 cat >conftest.$ac_ext <<_ACEOF
24291 cat confdefs.h >>conftest.$ac_ext
24292 cat >>conftest.$ac_ext <<_ACEOF
24293 /* end confdefs.h. */
24294 $ac_includes_default
24295 typedef long long int ac__type_sizeof_;
24299 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24306 rm -f conftest.$ac_objext
24307 if { (ac_try="$ac_compile"
24308 case "(($ac_try" in
24309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24310 *) ac_try_echo=$ac_try;;
24312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24313 (eval "$ac_compile") 2>conftest.er1
24315 grep -v '^ *+' conftest.er1 >conftest.err
24317 cat conftest.err >&5
24318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24319 (exit $ac_status); } && {
24320 test -z "$ac_c_werror_flag" ||
24321 test ! -s conftest.err
24322 } && test -s conftest.$ac_objext; then
24325 cat >conftest.$ac_ext <<_ACEOF
24328 cat confdefs.h >>conftest.$ac_ext
24329 cat >>conftest.$ac_ext <<_ACEOF
24330 /* end confdefs.h. */
24331 $ac_includes_default
24332 typedef long long int ac__type_sizeof_;
24336 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24343 rm -f conftest.$ac_objext
24344 if { (ac_try="$ac_compile"
24345 case "(($ac_try" in
24346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24347 *) ac_try_echo=$ac_try;;
24349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24350 (eval "$ac_compile") 2>conftest.er1
24352 grep -v '^ *+' conftest.er1 >conftest.err
24354 cat conftest.err >&5
24355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356 (exit $ac_status); } && {
24357 test -z "$ac_c_werror_flag" ||
24358 test ! -s conftest.err
24359 } && test -s conftest.$ac_objext; then
24360 ac_hi=$ac_mid; break
24362 echo "$as_me: failed program was:" >&5
24363 sed 's/^/| /' conftest.$ac_ext >&5
24365 ac_lo=`expr $ac_mid + 1`
24366 if test $ac_lo -le $ac_mid; then
24370 ac_mid=`expr 2 '*' $ac_mid + 1`
24373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24376 echo "$as_me: failed program was:" >&5
24377 sed 's/^/| /' conftest.$ac_ext >&5
24379 cat >conftest.$ac_ext <<_ACEOF
24382 cat confdefs.h >>conftest.$ac_ext
24383 cat >>conftest.$ac_ext <<_ACEOF
24384 /* end confdefs.h. */
24385 $ac_includes_default
24386 typedef long long int ac__type_sizeof_;
24390 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24397 rm -f conftest.$ac_objext
24398 if { (ac_try="$ac_compile"
24399 case "(($ac_try" in
24400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24401 *) ac_try_echo=$ac_try;;
24403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24404 (eval "$ac_compile") 2>conftest.er1
24406 grep -v '^ *+' conftest.er1 >conftest.err
24408 cat conftest.err >&5
24409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410 (exit $ac_status); } && {
24411 test -z "$ac_c_werror_flag" ||
24412 test ! -s conftest.err
24413 } && test -s conftest.$ac_objext; then
24416 cat >conftest.$ac_ext <<_ACEOF
24419 cat confdefs.h >>conftest.$ac_ext
24420 cat >>conftest.$ac_ext <<_ACEOF
24421 /* end confdefs.h. */
24422 $ac_includes_default
24423 typedef long long int ac__type_sizeof_;
24427 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24434 rm -f conftest.$ac_objext
24435 if { (ac_try="$ac_compile"
24436 case "(($ac_try" in
24437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24438 *) ac_try_echo=$ac_try;;
24440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24441 (eval "$ac_compile") 2>conftest.er1
24443 grep -v '^ *+' conftest.er1 >conftest.err
24445 cat conftest.err >&5
24446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24447 (exit $ac_status); } && {
24448 test -z "$ac_c_werror_flag" ||
24449 test ! -s conftest.err
24450 } && test -s conftest.$ac_objext; then
24451 ac_lo=$ac_mid; break
24453 echo "$as_me: failed program was:" >&5
24454 sed 's/^/| /' conftest.$ac_ext >&5
24456 ac_hi=`expr '(' $ac_mid ')' - 1`
24457 if test $ac_mid -le $ac_hi; then
24461 ac_mid=`expr 2 '*' $ac_mid`
24464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24467 echo "$as_me: failed program was:" >&5
24468 sed 's/^/| /' conftest.$ac_ext >&5
24473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24477 # Binary search between lo and hi bounds.
24478 while test "x$ac_lo" != "x$ac_hi"; do
24479 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24480 cat >conftest.$ac_ext <<_ACEOF
24483 cat confdefs.h >>conftest.$ac_ext
24484 cat >>conftest.$ac_ext <<_ACEOF
24485 /* end confdefs.h. */
24486 $ac_includes_default
24487 typedef long long int ac__type_sizeof_;
24491 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24498 rm -f conftest.$ac_objext
24499 if { (ac_try="$ac_compile"
24500 case "(($ac_try" in
24501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24502 *) ac_try_echo=$ac_try;;
24504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24505 (eval "$ac_compile") 2>conftest.er1
24507 grep -v '^ *+' conftest.er1 >conftest.err
24509 cat conftest.err >&5
24510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24511 (exit $ac_status); } && {
24512 test -z "$ac_c_werror_flag" ||
24513 test ! -s conftest.err
24514 } && test -s conftest.$ac_objext; then
24517 echo "$as_me: failed program was:" >&5
24518 sed 's/^/| /' conftest.$ac_ext >&5
24520 ac_lo=`expr '(' $ac_mid ')' + 1`
24523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24526 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
24527 '') if test "$ac_cv_type_long_long_int" = yes; then
24528 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
24529 See \`config.log' for more details." >&5
24530 echo "$as_me: error: cannot compute sizeof (long long int)
24531 See \`config.log' for more details." >&2;}
24532 { (exit 77); exit 77; }; }
24534 ac_cv_sizeof_long_long_int=0
24538 cat >conftest.$ac_ext <<_ACEOF
24541 cat confdefs.h >>conftest.$ac_ext
24542 cat >>conftest.$ac_ext <<_ACEOF
24543 /* end confdefs.h. */
24544 $ac_includes_default
24545 typedef long long int ac__type_sizeof_;
24546 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24547 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24549 #include <stdlib.h>
24554 FILE *f = fopen ("conftest.val", "w");
24557 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24559 long int i = longval ();
24560 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24562 fprintf (f, "%ld\n", i);
24566 unsigned long int i = ulongval ();
24567 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24569 fprintf (f, "%lu\n", i);
24571 return ferror (f) || fclose (f) != 0;
24577 rm -f conftest$ac_exeext
24578 if { (ac_try="$ac_link"
24579 case "(($ac_try" in
24580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24581 *) ac_try_echo=$ac_try;;
24583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24584 (eval "$ac_link") 2>&5
24586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24588 { (case "(($ac_try" in
24589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24590 *) ac_try_echo=$ac_try;;
24592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24593 (eval "$ac_try") 2>&5
24595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596 (exit $ac_status); }; }; then
24597 ac_cv_sizeof_long_long_int=`cat conftest.val`
24599 echo "$as_me: program exited with status $ac_status" >&5
24600 echo "$as_me: failed program was:" >&5
24601 sed 's/^/| /' conftest.$ac_ext >&5
24603 ( exit $ac_status )
24604 if test "$ac_cv_type_long_long_int" = yes; then
24605 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int)
24606 See \`config.log' for more details." >&5
24607 echo "$as_me: error: cannot compute sizeof (long long int)
24608 See \`config.log' for more details." >&2;}
24609 { (exit 77); exit 77; }; }
24611 ac_cv_sizeof_long_long_int=0
24614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24618 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
24619 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6; }
24623 cat >>confdefs.h <<_ACEOF
24624 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
24628 { echo "$as_me:$LINENO: checking for int *" >&5
24629 echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
24630 if test "${ac_cv_type_int_p+set}" = set; then
24631 echo $ECHO_N "(cached) $ECHO_C" >&6
24633 cat >conftest.$ac_ext <<_ACEOF
24636 cat confdefs.h >>conftest.$ac_ext
24637 cat >>conftest.$ac_ext <<_ACEOF
24638 /* end confdefs.h. */
24639 $ac_includes_default
24640 typedef int * ac__type_new_;
24644 if ((ac__type_new_ *) 0)
24646 if (sizeof (ac__type_new_))
24652 rm -f conftest.$ac_objext
24653 if { (ac_try="$ac_compile"
24654 case "(($ac_try" in
24655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24656 *) ac_try_echo=$ac_try;;
24658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24659 (eval "$ac_compile") 2>conftest.er1
24661 grep -v '^ *+' conftest.er1 >conftest.err
24663 cat conftest.err >&5
24664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); } && {
24666 test -z "$ac_c_werror_flag" ||
24667 test ! -s conftest.err
24668 } && test -s conftest.$ac_objext; then
24669 ac_cv_type_int_p=yes
24671 echo "$as_me: failed program was:" >&5
24672 sed 's/^/| /' conftest.$ac_ext >&5
24674 ac_cv_type_int_p=no
24677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24679 { echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
24680 echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
24682 # The cast to long int works around a bug in the HP C Compiler
24683 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24684 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24685 # This bug is HP SR number 8606223364.
24686 { echo "$as_me:$LINENO: checking size of int *" >&5
24687 echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
24688 if test "${ac_cv_sizeof_int_p+set}" = set; then
24689 echo $ECHO_N "(cached) $ECHO_C" >&6
24691 if test "$cross_compiling" = yes; then
24692 # Depending upon the size, compute the lo and hi bounds.
24693 cat >conftest.$ac_ext <<_ACEOF
24696 cat confdefs.h >>conftest.$ac_ext
24697 cat >>conftest.$ac_ext <<_ACEOF
24698 /* end confdefs.h. */
24699 $ac_includes_default
24700 typedef int * ac__type_sizeof_;
24704 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24711 rm -f conftest.$ac_objext
24712 if { (ac_try="$ac_compile"
24713 case "(($ac_try" in
24714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24715 *) ac_try_echo=$ac_try;;
24717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24718 (eval "$ac_compile") 2>conftest.er1
24720 grep -v '^ *+' conftest.er1 >conftest.err
24722 cat conftest.err >&5
24723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724 (exit $ac_status); } && {
24725 test -z "$ac_c_werror_flag" ||
24726 test ! -s conftest.err
24727 } && test -s conftest.$ac_objext; then
24730 cat >conftest.$ac_ext <<_ACEOF
24733 cat confdefs.h >>conftest.$ac_ext
24734 cat >>conftest.$ac_ext <<_ACEOF
24735 /* end confdefs.h. */
24736 $ac_includes_default
24737 typedef int * ac__type_sizeof_;
24741 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24748 rm -f conftest.$ac_objext
24749 if { (ac_try="$ac_compile"
24750 case "(($ac_try" in
24751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24752 *) ac_try_echo=$ac_try;;
24754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24755 (eval "$ac_compile") 2>conftest.er1
24757 grep -v '^ *+' conftest.er1 >conftest.err
24759 cat conftest.err >&5
24760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761 (exit $ac_status); } && {
24762 test -z "$ac_c_werror_flag" ||
24763 test ! -s conftest.err
24764 } && test -s conftest.$ac_objext; then
24765 ac_hi=$ac_mid; break
24767 echo "$as_me: failed program was:" >&5
24768 sed 's/^/| /' conftest.$ac_ext >&5
24770 ac_lo=`expr $ac_mid + 1`
24771 if test $ac_lo -le $ac_mid; then
24775 ac_mid=`expr 2 '*' $ac_mid + 1`
24778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24781 echo "$as_me: failed program was:" >&5
24782 sed 's/^/| /' conftest.$ac_ext >&5
24784 cat >conftest.$ac_ext <<_ACEOF
24787 cat confdefs.h >>conftest.$ac_ext
24788 cat >>conftest.$ac_ext <<_ACEOF
24789 /* end confdefs.h. */
24790 $ac_includes_default
24791 typedef int * ac__type_sizeof_;
24795 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24802 rm -f conftest.$ac_objext
24803 if { (ac_try="$ac_compile"
24804 case "(($ac_try" in
24805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24806 *) ac_try_echo=$ac_try;;
24808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24809 (eval "$ac_compile") 2>conftest.er1
24811 grep -v '^ *+' conftest.er1 >conftest.err
24813 cat conftest.err >&5
24814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24815 (exit $ac_status); } && {
24816 test -z "$ac_c_werror_flag" ||
24817 test ! -s conftest.err
24818 } && test -s conftest.$ac_objext; then
24821 cat >conftest.$ac_ext <<_ACEOF
24824 cat confdefs.h >>conftest.$ac_ext
24825 cat >>conftest.$ac_ext <<_ACEOF
24826 /* end confdefs.h. */
24827 $ac_includes_default
24828 typedef int * ac__type_sizeof_;
24832 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24839 rm -f conftest.$ac_objext
24840 if { (ac_try="$ac_compile"
24841 case "(($ac_try" in
24842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24843 *) ac_try_echo=$ac_try;;
24845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24846 (eval "$ac_compile") 2>conftest.er1
24848 grep -v '^ *+' conftest.er1 >conftest.err
24850 cat conftest.err >&5
24851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24852 (exit $ac_status); } && {
24853 test -z "$ac_c_werror_flag" ||
24854 test ! -s conftest.err
24855 } && test -s conftest.$ac_objext; then
24856 ac_lo=$ac_mid; break
24858 echo "$as_me: failed program was:" >&5
24859 sed 's/^/| /' conftest.$ac_ext >&5
24861 ac_hi=`expr '(' $ac_mid ')' - 1`
24862 if test $ac_mid -le $ac_hi; then
24866 ac_mid=`expr 2 '*' $ac_mid`
24869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24872 echo "$as_me: failed program was:" >&5
24873 sed 's/^/| /' conftest.$ac_ext >&5
24878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24882 # Binary search between lo and hi bounds.
24883 while test "x$ac_lo" != "x$ac_hi"; do
24884 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24885 cat >conftest.$ac_ext <<_ACEOF
24888 cat confdefs.h >>conftest.$ac_ext
24889 cat >>conftest.$ac_ext <<_ACEOF
24890 /* end confdefs.h. */
24891 $ac_includes_default
24892 typedef int * ac__type_sizeof_;
24896 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24903 rm -f conftest.$ac_objext
24904 if { (ac_try="$ac_compile"
24905 case "(($ac_try" in
24906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24907 *) ac_try_echo=$ac_try;;
24909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24910 (eval "$ac_compile") 2>conftest.er1
24912 grep -v '^ *+' conftest.er1 >conftest.err
24914 cat conftest.err >&5
24915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916 (exit $ac_status); } && {
24917 test -z "$ac_c_werror_flag" ||
24918 test ! -s conftest.err
24919 } && test -s conftest.$ac_objext; then
24922 echo "$as_me: failed program was:" >&5
24923 sed 's/^/| /' conftest.$ac_ext >&5
24925 ac_lo=`expr '(' $ac_mid ')' + 1`
24928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24931 ?*) ac_cv_sizeof_int_p=$ac_lo;;
24932 '') if test "$ac_cv_type_int_p" = yes; then
24933 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
24934 See \`config.log' for more details." >&5
24935 echo "$as_me: error: cannot compute sizeof (int *)
24936 See \`config.log' for more details." >&2;}
24937 { (exit 77); exit 77; }; }
24939 ac_cv_sizeof_int_p=0
24943 cat >conftest.$ac_ext <<_ACEOF
24946 cat confdefs.h >>conftest.$ac_ext
24947 cat >>conftest.$ac_ext <<_ACEOF
24948 /* end confdefs.h. */
24949 $ac_includes_default
24950 typedef int * ac__type_sizeof_;
24951 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24952 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24954 #include <stdlib.h>
24959 FILE *f = fopen ("conftest.val", "w");
24962 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24964 long int i = longval ();
24965 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24967 fprintf (f, "%ld\n", i);
24971 unsigned long int i = ulongval ();
24972 if (i != ((long int) (sizeof (ac__type_sizeof_))))
24974 fprintf (f, "%lu\n", i);
24976 return ferror (f) || fclose (f) != 0;
24982 rm -f conftest$ac_exeext
24983 if { (ac_try="$ac_link"
24984 case "(($ac_try" in
24985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24986 *) ac_try_echo=$ac_try;;
24988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24989 (eval "$ac_link") 2>&5
24991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24992 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24993 { (case "(($ac_try" in
24994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24995 *) ac_try_echo=$ac_try;;
24997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24998 (eval "$ac_try") 2>&5
25000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001 (exit $ac_status); }; }; then
25002 ac_cv_sizeof_int_p=`cat conftest.val`
25004 echo "$as_me: program exited with status $ac_status" >&5
25005 echo "$as_me: failed program was:" >&5
25006 sed 's/^/| /' conftest.$ac_ext >&5
25008 ( exit $ac_status )
25009 if test "$ac_cv_type_int_p" = yes; then
25010 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
25011 See \`config.log' for more details." >&5
25012 echo "$as_me: error: cannot compute sizeof (int *)
25013 See \`config.log' for more details." >&2;}
25014 { (exit 77); exit 77; }; }
25016 ac_cv_sizeof_int_p=0
25019 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25023 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
25024 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
25028 cat >>confdefs.h <<_ACEOF
25029 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
25034 # Check for sys/types.h types
25035 { echo "$as_me:$LINENO: checking for u_int type" >&5
25036 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6; }
25037 if test "${ac_cv_have_u_int+set}" = set; then
25038 echo $ECHO_N "(cached) $ECHO_C" >&6
25041 cat >conftest.$ac_ext <<_ACEOF
25044 cat confdefs.h >>conftest.$ac_ext
25045 cat >>conftest.$ac_ext <<_ACEOF
25046 /* end confdefs.h. */
25047 #include <sys/types.h>
25056 rm -f conftest.$ac_objext
25057 if { (ac_try="$ac_compile"
25058 case "(($ac_try" in
25059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25060 *) ac_try_echo=$ac_try;;
25062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25063 (eval "$ac_compile") 2>conftest.er1
25065 grep -v '^ *+' conftest.er1 >conftest.err
25067 cat conftest.err >&5
25068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069 (exit $ac_status); } && {
25070 test -z "$ac_c_werror_flag" ||
25071 test ! -s conftest.err
25072 } && test -s conftest.$ac_objext; then
25073 ac_cv_have_u_int="yes"
25075 echo "$as_me: failed program was:" >&5
25076 sed 's/^/| /' conftest.$ac_ext >&5
25078 ac_cv_have_u_int="no"
25082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25085 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
25086 echo "${ECHO_T}$ac_cv_have_u_int" >&6; }
25087 if test "x$ac_cv_have_u_int" = "xyes" ; then
25088 cat >>confdefs.h <<\_ACEOF
25089 #define HAVE_U_INT 1
25095 { echo "$as_me:$LINENO: checking for intmax_t type" >&5
25096 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6; }
25097 if test "${ac_cv_have_intmax_t+set}" = set; then
25098 echo $ECHO_N "(cached) $ECHO_C" >&6
25101 cat >conftest.$ac_ext <<_ACEOF
25104 cat confdefs.h >>conftest.$ac_ext
25105 cat >>conftest.$ac_ext <<_ACEOF
25106 /* end confdefs.h. */
25107 #include <sys/types.h>
25116 rm -f conftest.$ac_objext
25117 if { (ac_try="$ac_compile"
25118 case "(($ac_try" in
25119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25120 *) ac_try_echo=$ac_try;;
25122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25123 (eval "$ac_compile") 2>conftest.er1
25125 grep -v '^ *+' conftest.er1 >conftest.err
25127 cat conftest.err >&5
25128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25129 (exit $ac_status); } && {
25130 test -z "$ac_c_werror_flag" ||
25131 test ! -s conftest.err
25132 } && test -s conftest.$ac_objext; then
25133 ac_cv_have_intmax_t="yes"
25135 echo "$as_me: failed program was:" >&5
25136 sed 's/^/| /' conftest.$ac_ext >&5
25139 cat >conftest.$ac_ext <<_ACEOF
25142 cat confdefs.h >>conftest.$ac_ext
25143 cat >>conftest.$ac_ext <<_ACEOF
25144 /* end confdefs.h. */
25145 #include <stdint.h>
25154 rm -f conftest.$ac_objext
25155 if { (ac_try="$ac_compile"
25156 case "(($ac_try" in
25157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25158 *) ac_try_echo=$ac_try;;
25160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25161 (eval "$ac_compile") 2>conftest.er1
25163 grep -v '^ *+' conftest.er1 >conftest.err
25165 cat conftest.err >&5
25166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25167 (exit $ac_status); } && {
25168 test -z "$ac_c_werror_flag" ||
25169 test ! -s conftest.err
25170 } && test -s conftest.$ac_objext; then
25171 ac_cv_have_intmax_t="yes"
25173 echo "$as_me: failed program was:" >&5
25174 sed 's/^/| /' conftest.$ac_ext >&5
25176 ac_cv_have_intmax_t="no"
25180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25189 { echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
25190 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6; }
25191 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
25192 cat >>confdefs.h <<\_ACEOF
25193 #define HAVE_INTMAX_T 1
25200 { echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
25201 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6; }
25202 if test "${ac_cv_have_u_intmax_t+set}" = set; then
25203 echo $ECHO_N "(cached) $ECHO_C" >&6
25206 cat >conftest.$ac_ext <<_ACEOF
25209 cat confdefs.h >>conftest.$ac_ext
25210 cat >>conftest.$ac_ext <<_ACEOF
25211 /* end confdefs.h. */
25212 #include <sys/types.h>
25216 u_intmax_t a; a = 1;
25221 rm -f conftest.$ac_objext
25222 if { (ac_try="$ac_compile"
25223 case "(($ac_try" in
25224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25225 *) ac_try_echo=$ac_try;;
25227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25228 (eval "$ac_compile") 2>conftest.er1
25230 grep -v '^ *+' conftest.er1 >conftest.err
25232 cat conftest.err >&5
25233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234 (exit $ac_status); } && {
25235 test -z "$ac_c_werror_flag" ||
25236 test ! -s conftest.err
25237 } && test -s conftest.$ac_objext; then
25238 ac_cv_have_u_intmax_t="yes"
25240 echo "$as_me: failed program was:" >&5
25241 sed 's/^/| /' conftest.$ac_ext >&5
25244 cat >conftest.$ac_ext <<_ACEOF
25247 cat confdefs.h >>conftest.$ac_ext
25248 cat >>conftest.$ac_ext <<_ACEOF
25249 /* end confdefs.h. */
25250 #include <stdint.h>
25254 u_intmax_t a; a = 1;
25259 rm -f conftest.$ac_objext
25260 if { (ac_try="$ac_compile"
25261 case "(($ac_try" in
25262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25263 *) ac_try_echo=$ac_try;;
25265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25266 (eval "$ac_compile") 2>conftest.er1
25268 grep -v '^ *+' conftest.er1 >conftest.err
25270 cat conftest.err >&5
25271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25272 (exit $ac_status); } && {
25273 test -z "$ac_c_werror_flag" ||
25274 test ! -s conftest.err
25275 } && test -s conftest.$ac_objext; then
25276 ac_cv_have_u_intmax_t="yes"
25278 echo "$as_me: failed program was:" >&5
25279 sed 's/^/| /' conftest.$ac_ext >&5
25281 ac_cv_have_u_intmax_t="no"
25285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25293 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
25294 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6; }
25295 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
25296 cat >>confdefs.h <<\_ACEOF
25297 #define HAVE_U_INTMAX_T 1
25304 { echo "$as_me:$LINENO: checking for intXX_t types" >&5
25305 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6; }
25306 if test "${ac_cv_have_intxx_t+set}" = set; then
25307 echo $ECHO_N "(cached) $ECHO_C" >&6
25310 cat >conftest.$ac_ext <<_ACEOF
25313 cat confdefs.h >>conftest.$ac_ext
25314 cat >>conftest.$ac_ext <<_ACEOF
25315 /* end confdefs.h. */
25316 #include <sys/types.h>
25320 int8_t a; int16_t b; int32_t c; a = b = c = 1;
25325 rm -f conftest.$ac_objext
25326 if { (ac_try="$ac_compile"
25327 case "(($ac_try" in
25328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25329 *) ac_try_echo=$ac_try;;
25331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25332 (eval "$ac_compile") 2>conftest.er1
25334 grep -v '^ *+' conftest.er1 >conftest.err
25336 cat conftest.err >&5
25337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25338 (exit $ac_status); } && {
25339 test -z "$ac_c_werror_flag" ||
25340 test ! -s conftest.err
25341 } && test -s conftest.$ac_objext; then
25342 ac_cv_have_intxx_t="yes"
25344 echo "$as_me: failed program was:" >&5
25345 sed 's/^/| /' conftest.$ac_ext >&5
25347 ac_cv_have_intxx_t="no"
25351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25354 { echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
25355 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6; }
25356 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
25357 cat >>confdefs.h <<\_ACEOF
25358 #define HAVE_INTXX_T 1
25364 { echo "$as_me:$LINENO: checking for int64_t type" >&5
25365 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6; }
25366 if test "${ac_cv_have_int64_t+set}" = set; then
25367 echo $ECHO_N "(cached) $ECHO_C" >&6
25370 cat >conftest.$ac_ext <<_ACEOF
25373 cat confdefs.h >>conftest.$ac_ext
25374 cat >>conftest.$ac_ext <<_ACEOF
25375 /* end confdefs.h. */
25376 #include <sys/types.h>
25385 rm -f conftest.$ac_objext
25386 if { (ac_try="$ac_compile"
25387 case "(($ac_try" in
25388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25389 *) ac_try_echo=$ac_try;;
25391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25392 (eval "$ac_compile") 2>conftest.er1
25394 grep -v '^ *+' conftest.er1 >conftest.err
25396 cat conftest.err >&5
25397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398 (exit $ac_status); } && {
25399 test -z "$ac_c_werror_flag" ||
25400 test ! -s conftest.err
25401 } && test -s conftest.$ac_objext; then
25402 ac_cv_have_int64_t="yes"
25404 echo "$as_me: failed program was:" >&5
25405 sed 's/^/| /' conftest.$ac_ext >&5
25407 ac_cv_have_int64_t="no"
25411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25414 { echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
25415 echo "${ECHO_T}$ac_cv_have_int64_t" >&6; }
25416 if test "x$ac_cv_have_int64_t" = "xyes" ; then
25417 cat >>confdefs.h <<\_ACEOF
25418 #define HAVE_INT64_T 1
25424 { echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
25425 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6; }
25426 if test "${ac_cv_have_u_intxx_t+set}" = set; then
25427 echo $ECHO_N "(cached) $ECHO_C" >&6
25430 cat >conftest.$ac_ext <<_ACEOF
25433 cat confdefs.h >>conftest.$ac_ext
25434 cat >>conftest.$ac_ext <<_ACEOF
25435 /* end confdefs.h. */
25436 #include <sys/types.h>
25440 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
25445 rm -f conftest.$ac_objext
25446 if { (ac_try="$ac_compile"
25447 case "(($ac_try" in
25448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25449 *) ac_try_echo=$ac_try;;
25451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25452 (eval "$ac_compile") 2>conftest.er1
25454 grep -v '^ *+' conftest.er1 >conftest.err
25456 cat conftest.err >&5
25457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25458 (exit $ac_status); } && {
25459 test -z "$ac_c_werror_flag" ||
25460 test ! -s conftest.err
25461 } && test -s conftest.$ac_objext; then
25462 ac_cv_have_u_intxx_t="yes"
25464 echo "$as_me: failed program was:" >&5
25465 sed 's/^/| /' conftest.$ac_ext >&5
25467 ac_cv_have_u_intxx_t="no"
25471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25474 { echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
25475 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6; }
25476 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
25477 cat >>confdefs.h <<\_ACEOF
25478 #define HAVE_U_INTXX_T 1
25484 { echo "$as_me:$LINENO: checking for u_int64_t types" >&5
25485 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6; }
25486 if test "${ac_cv_have_u_int64_t+set}" = set; then
25487 echo $ECHO_N "(cached) $ECHO_C" >&6
25490 cat >conftest.$ac_ext <<_ACEOF
25493 cat confdefs.h >>conftest.$ac_ext
25494 cat >>conftest.$ac_ext <<_ACEOF
25495 /* end confdefs.h. */
25496 #include <sys/types.h>
25500 u_int64_t a; a = 1;
25505 rm -f conftest.$ac_objext
25506 if { (ac_try="$ac_compile"
25507 case "(($ac_try" in
25508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25509 *) ac_try_echo=$ac_try;;
25511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25512 (eval "$ac_compile") 2>conftest.er1
25514 grep -v '^ *+' conftest.er1 >conftest.err
25516 cat conftest.err >&5
25517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25518 (exit $ac_status); } && {
25519 test -z "$ac_c_werror_flag" ||
25520 test ! -s conftest.err
25521 } && test -s conftest.$ac_objext; then
25522 ac_cv_have_u_int64_t="yes"
25524 echo "$as_me: failed program was:" >&5
25525 sed 's/^/| /' conftest.$ac_ext >&5
25527 ac_cv_have_u_int64_t="no"
25531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25534 { echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
25535 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6; }
25536 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
25537 cat >>confdefs.h <<\_ACEOF
25538 #define HAVE_U_INT64_T 1
25544 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
25545 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25547 { echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
25548 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
25549 cat >conftest.$ac_ext <<_ACEOF
25552 cat confdefs.h >>conftest.$ac_ext
25553 cat >>conftest.$ac_ext <<_ACEOF
25554 /* end confdefs.h. */
25555 #include <sys/bitypes.h>
25559 int8_t a; int16_t b; int32_t c;
25560 u_int8_t e; u_int16_t f; u_int32_t g;
25561 a = b = c = e = f = g = 1;
25566 rm -f conftest.$ac_objext
25567 if { (ac_try="$ac_compile"
25568 case "(($ac_try" in
25569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25570 *) ac_try_echo=$ac_try;;
25572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25573 (eval "$ac_compile") 2>conftest.er1
25575 grep -v '^ *+' conftest.er1 >conftest.err
25577 cat conftest.err >&5
25578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25579 (exit $ac_status); } && {
25580 test -z "$ac_c_werror_flag" ||
25581 test ! -s conftest.err
25582 } && test -s conftest.$ac_objext; then
25583 cat >>confdefs.h <<\_ACEOF
25584 #define HAVE_U_INTXX_T 1
25587 cat >>confdefs.h <<\_ACEOF
25588 #define HAVE_INTXX_T 1
25591 cat >>confdefs.h <<\_ACEOF
25592 #define HAVE_SYS_BITYPES_H 1
25595 { echo "$as_me:$LINENO: result: yes" >&5
25596 echo "${ECHO_T}yes" >&6; }
25598 echo "$as_me: failed program was:" >&5
25599 sed 's/^/| /' conftest.$ac_ext >&5
25601 { echo "$as_me:$LINENO: result: no" >&5
25602 echo "${ECHO_T}no" >&6; }
25606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25609 if test -z "$have_u_intxx_t" ; then
25610 { echo "$as_me:$LINENO: checking for uintXX_t types" >&5
25611 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6; }
25612 if test "${ac_cv_have_uintxx_t+set}" = set; then
25613 echo $ECHO_N "(cached) $ECHO_C" >&6
25616 cat >conftest.$ac_ext <<_ACEOF
25619 cat confdefs.h >>conftest.$ac_ext
25620 cat >>conftest.$ac_ext <<_ACEOF
25621 /* end confdefs.h. */
25622 #include <sys/types.h>
25626 uint8_t a; uint16_t b;
25627 uint32_t c; a = b = c = 1;
25632 rm -f conftest.$ac_objext
25633 if { (ac_try="$ac_compile"
25634 case "(($ac_try" in
25635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25636 *) ac_try_echo=$ac_try;;
25638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25639 (eval "$ac_compile") 2>conftest.er1
25641 grep -v '^ *+' conftest.er1 >conftest.err
25643 cat conftest.err >&5
25644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25645 (exit $ac_status); } && {
25646 test -z "$ac_c_werror_flag" ||
25647 test ! -s conftest.err
25648 } && test -s conftest.$ac_objext; then
25649 ac_cv_have_uintxx_t="yes"
25651 echo "$as_me: failed program was:" >&5
25652 sed 's/^/| /' conftest.$ac_ext >&5
25654 ac_cv_have_uintxx_t="no"
25658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25661 { echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
25662 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6; }
25663 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
25664 cat >>confdefs.h <<\_ACEOF
25665 #define HAVE_UINTXX_T 1
25671 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
25672 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25674 { echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
25675 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6; }
25676 cat >conftest.$ac_ext <<_ACEOF
25679 cat confdefs.h >>conftest.$ac_ext
25680 cat >>conftest.$ac_ext <<_ACEOF
25681 /* end confdefs.h. */
25682 #include <sys/bitypes.h>
25686 int64_t a; u_int64_t b;
25692 rm -f conftest.$ac_objext
25693 if { (ac_try="$ac_compile"
25694 case "(($ac_try" in
25695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25696 *) ac_try_echo=$ac_try;;
25698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25699 (eval "$ac_compile") 2>conftest.er1
25701 grep -v '^ *+' conftest.er1 >conftest.err
25703 cat conftest.err >&5
25704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25705 (exit $ac_status); } && {
25706 test -z "$ac_c_werror_flag" ||
25707 test ! -s conftest.err
25708 } && test -s conftest.$ac_objext; then
25709 cat >>confdefs.h <<\_ACEOF
25710 #define HAVE_U_INT64_T 1
25713 cat >>confdefs.h <<\_ACEOF
25714 #define HAVE_INT64_T 1
25717 { echo "$as_me:$LINENO: result: yes" >&5
25718 echo "${ECHO_T}yes" >&6; }
25720 echo "$as_me: failed program was:" >&5
25721 sed 's/^/| /' conftest.$ac_ext >&5
25723 { echo "$as_me:$LINENO: result: no" >&5
25724 echo "${ECHO_T}no" >&6; }
25728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25731 if (test -z "$have_uintxx_t" && \
25732 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
25734 { echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
25735 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6; }
25736 cat >conftest.$ac_ext <<_ACEOF
25739 cat confdefs.h >>conftest.$ac_ext
25740 cat >>conftest.$ac_ext <<_ACEOF
25741 /* end confdefs.h. */
25742 #include <sys/bitypes.h>
25746 uint8_t a; uint16_t b;
25747 uint32_t c; a = b = c = 1;
25752 rm -f conftest.$ac_objext
25753 if { (ac_try="$ac_compile"
25754 case "(($ac_try" in
25755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25756 *) ac_try_echo=$ac_try;;
25758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25759 (eval "$ac_compile") 2>conftest.er1
25761 grep -v '^ *+' conftest.er1 >conftest.err
25763 cat conftest.err >&5
25764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25765 (exit $ac_status); } && {
25766 test -z "$ac_c_werror_flag" ||
25767 test ! -s conftest.err
25768 } && test -s conftest.$ac_objext; then
25769 cat >>confdefs.h <<\_ACEOF
25770 #define HAVE_UINTXX_T 1
25773 { echo "$as_me:$LINENO: result: yes" >&5
25774 echo "${ECHO_T}yes" >&6; }
25776 echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25779 { echo "$as_me:$LINENO: result: no" >&5
25780 echo "${ECHO_T}no" >&6; }
25784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25821 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25823 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25824 echo $ECHO_N "(cached) $ECHO_C" >&6
25826 cat >conftest.$ac_ext <<_ACEOF
25829 cat confdefs.h >>conftest.$ac_ext
25830 cat >>conftest.$ac_ext <<_ACEOF
25831 /* end confdefs.h. */
25832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25834 #define $ac_func innocuous_$ac_func
25836 /* System header to define __stub macros and hopefully few prototypes,
25837 which can conflict with char $ac_func (); below.
25838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25839 <limits.h> exists even on freestanding compilers. */
25842 # include <limits.h>
25844 # include <assert.h>
25849 /* Override any GCC internal prototype to avoid an error.
25850 Use char because int might match the return type of a GCC
25851 builtin and then its argument prototype would still apply. */
25856 /* The GNU C library defines this for functions which it implements
25857 to always fail with ENOSYS. Some functions are actually named
25858 something starting with __ and the normal name is an alias. */
25859 #if defined __stub_$ac_func || defined __stub___$ac_func
25866 return $ac_func ();
25871 rm -f conftest.$ac_objext conftest$ac_exeext
25872 if { (ac_try="$ac_link"
25873 case "(($ac_try" in
25874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25875 *) ac_try_echo=$ac_try;;
25877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25878 (eval "$ac_link") 2>conftest.er1
25880 grep -v '^ *+' conftest.er1 >conftest.err
25882 cat conftest.err >&5
25883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884 (exit $ac_status); } && {
25885 test -z "$ac_c_werror_flag" ||
25886 test ! -s conftest.err
25887 } && test -s conftest$ac_exeext &&
25888 $as_test_x conftest$ac_exeext; then
25889 eval "$as_ac_var=yes"
25891 echo "$as_me: failed program was:" >&5
25892 sed 's/^/| /' conftest.$ac_ext >&5
25894 eval "$as_ac_var=no"
25897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25898 conftest$ac_exeext conftest.$ac_ext
25900 ac_res=`eval echo '${'$as_ac_var'}'`
25901 { echo "$as_me:$LINENO: result: $ac_res" >&5
25902 echo "${ECHO_T}$ac_res" >&6; }
25903 if test `eval echo '${'$as_ac_var'}'` = yes; then
25904 cat >>confdefs.h <<_ACEOF
25905 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25909 echo 'configure: cannot find needed function.'; exit 1
25916 for ac_func in fchdir
25918 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25919 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25920 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25921 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25922 echo $ECHO_N "(cached) $ECHO_C" >&6
25924 cat >conftest.$ac_ext <<_ACEOF
25927 cat confdefs.h >>conftest.$ac_ext
25928 cat >>conftest.$ac_ext <<_ACEOF
25929 /* end confdefs.h. */
25930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25932 #define $ac_func innocuous_$ac_func
25934 /* System header to define __stub macros and hopefully few prototypes,
25935 which can conflict with char $ac_func (); below.
25936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25937 <limits.h> exists even on freestanding compilers. */
25940 # include <limits.h>
25942 # include <assert.h>
25947 /* Override any GCC internal prototype to avoid an error.
25948 Use char because int might match the return type of a GCC
25949 builtin and then its argument prototype would still apply. */
25954 /* The GNU C library defines this for functions which it implements
25955 to always fail with ENOSYS. Some functions are actually named
25956 something starting with __ and the normal name is an alias. */
25957 #if defined __stub_$ac_func || defined __stub___$ac_func
25964 return $ac_func ();
25969 rm -f conftest.$ac_objext conftest$ac_exeext
25970 if { (ac_try="$ac_link"
25971 case "(($ac_try" in
25972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25973 *) ac_try_echo=$ac_try;;
25975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25976 (eval "$ac_link") 2>conftest.er1
25978 grep -v '^ *+' conftest.er1 >conftest.err
25980 cat conftest.err >&5
25981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25982 (exit $ac_status); } && {
25983 test -z "$ac_c_werror_flag" ||
25984 test ! -s conftest.err
25985 } && test -s conftest$ac_exeext &&
25986 $as_test_x conftest$ac_exeext; then
25987 eval "$as_ac_var=yes"
25989 echo "$as_me: failed program was:" >&5
25990 sed 's/^/| /' conftest.$ac_ext >&5
25992 eval "$as_ac_var=no"
25995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25996 conftest$ac_exeext conftest.$ac_ext
25998 ac_res=`eval echo '${'$as_ac_var'}'`
25999 { echo "$as_me:$LINENO: result: $ac_res" >&5
26000 echo "${ECHO_T}$ac_res" >&6; }
26001 if test `eval echo '${'$as_ac_var'}'` = yes; then
26002 cat >>confdefs.h <<_ACEOF
26003 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26005 cat >>confdefs.h <<\_ACEOF
26006 #define HAVE_FCHDIR 1
26013 for ac_func in strtoll
26015 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26016 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26017 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26019 echo $ECHO_N "(cached) $ECHO_C" >&6
26021 cat >conftest.$ac_ext <<_ACEOF
26024 cat confdefs.h >>conftest.$ac_ext
26025 cat >>conftest.$ac_ext <<_ACEOF
26026 /* end confdefs.h. */
26027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26029 #define $ac_func innocuous_$ac_func
26031 /* System header to define __stub macros and hopefully few prototypes,
26032 which can conflict with char $ac_func (); below.
26033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26034 <limits.h> exists even on freestanding compilers. */
26037 # include <limits.h>
26039 # include <assert.h>
26044 /* Override any GCC internal prototype to avoid an error.
26045 Use char because int might match the return type of a GCC
26046 builtin and then its argument prototype would still apply. */
26051 /* The GNU C library defines this for functions which it implements
26052 to always fail with ENOSYS. Some functions are actually named
26053 something starting with __ and the normal name is an alias. */
26054 #if defined __stub_$ac_func || defined __stub___$ac_func
26061 return $ac_func ();
26066 rm -f conftest.$ac_objext conftest$ac_exeext
26067 if { (ac_try="$ac_link"
26068 case "(($ac_try" in
26069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26070 *) ac_try_echo=$ac_try;;
26072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26073 (eval "$ac_link") 2>conftest.er1
26075 grep -v '^ *+' conftest.er1 >conftest.err
26077 cat conftest.err >&5
26078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26079 (exit $ac_status); } && {
26080 test -z "$ac_c_werror_flag" ||
26081 test ! -s conftest.err
26082 } && test -s conftest$ac_exeext &&
26083 $as_test_x conftest$ac_exeext; then
26084 eval "$as_ac_var=yes"
26086 echo "$as_me: failed program was:" >&5
26087 sed 's/^/| /' conftest.$ac_ext >&5
26089 eval "$as_ac_var=no"
26092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26093 conftest$ac_exeext conftest.$ac_ext
26095 ac_res=`eval echo '${'$as_ac_var'}'`
26096 { echo "$as_me:$LINENO: result: $ac_res" >&5
26097 echo "${ECHO_T}$ac_res" >&6; }
26098 if test `eval echo '${'$as_ac_var'}'` = yes; then
26099 cat >>confdefs.h <<_ACEOF
26100 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26102 cat >>confdefs.h <<\_ACEOF
26103 #define HAVE_STRTOLL 1
26110 for ac_func in posix_fadvise
26112 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26113 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26114 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26115 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26116 echo $ECHO_N "(cached) $ECHO_C" >&6
26118 cat >conftest.$ac_ext <<_ACEOF
26121 cat confdefs.h >>conftest.$ac_ext
26122 cat >>conftest.$ac_ext <<_ACEOF
26123 /* end confdefs.h. */
26124 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26126 #define $ac_func innocuous_$ac_func
26128 /* System header to define __stub macros and hopefully few prototypes,
26129 which can conflict with char $ac_func (); below.
26130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26131 <limits.h> exists even on freestanding compilers. */
26134 # include <limits.h>
26136 # include <assert.h>
26141 /* Override any GCC internal prototype to avoid an error.
26142 Use char because int might match the return type of a GCC
26143 builtin and then its argument prototype would still apply. */
26148 /* The GNU C library defines this for functions which it implements
26149 to always fail with ENOSYS. Some functions are actually named
26150 something starting with __ and the normal name is an alias. */
26151 #if defined __stub_$ac_func || defined __stub___$ac_func
26158 return $ac_func ();
26163 rm -f conftest.$ac_objext conftest$ac_exeext
26164 if { (ac_try="$ac_link"
26165 case "(($ac_try" in
26166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26167 *) ac_try_echo=$ac_try;;
26169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26170 (eval "$ac_link") 2>conftest.er1
26172 grep -v '^ *+' conftest.er1 >conftest.err
26174 cat conftest.err >&5
26175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26176 (exit $ac_status); } && {
26177 test -z "$ac_c_werror_flag" ||
26178 test ! -s conftest.err
26179 } && test -s conftest$ac_exeext &&
26180 $as_test_x conftest$ac_exeext; then
26181 eval "$as_ac_var=yes"
26183 echo "$as_me: failed program was:" >&5
26184 sed 's/^/| /' conftest.$ac_ext >&5
26186 eval "$as_ac_var=no"
26189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26190 conftest$ac_exeext conftest.$ac_ext
26192 ac_res=`eval echo '${'$as_ac_var'}'`
26193 { echo "$as_me:$LINENO: result: $ac_res" >&5
26194 echo "${ECHO_T}$ac_res" >&6; }
26195 if test `eval echo '${'$as_ac_var'}'` = yes; then
26196 cat >>confdefs.h <<_ACEOF
26197 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26204 for ac_func in fdatasync
26206 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26207 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26208 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26209 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26210 echo $ECHO_N "(cached) $ECHO_C" >&6
26212 cat >conftest.$ac_ext <<_ACEOF
26215 cat confdefs.h >>conftest.$ac_ext
26216 cat >>conftest.$ac_ext <<_ACEOF
26217 /* end confdefs.h. */
26218 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26220 #define $ac_func innocuous_$ac_func
26222 /* System header to define __stub macros and hopefully few prototypes,
26223 which can conflict with char $ac_func (); below.
26224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26225 <limits.h> exists even on freestanding compilers. */
26228 # include <limits.h>
26230 # include <assert.h>
26235 /* Override any GCC internal prototype to avoid an error.
26236 Use char because int might match the return type of a GCC
26237 builtin and then its argument prototype would still apply. */
26242 /* The GNU C library defines this for functions which it implements
26243 to always fail with ENOSYS. Some functions are actually named
26244 something starting with __ and the normal name is an alias. */
26245 #if defined __stub_$ac_func || defined __stub___$ac_func
26252 return $ac_func ();
26257 rm -f conftest.$ac_objext conftest$ac_exeext
26258 if { (ac_try="$ac_link"
26259 case "(($ac_try" in
26260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26261 *) ac_try_echo=$ac_try;;
26263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26264 (eval "$ac_link") 2>conftest.er1
26266 grep -v '^ *+' conftest.er1 >conftest.err
26268 cat conftest.err >&5
26269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270 (exit $ac_status); } && {
26271 test -z "$ac_c_werror_flag" ||
26272 test ! -s conftest.err
26273 } && test -s conftest$ac_exeext &&
26274 $as_test_x conftest$ac_exeext; then
26275 eval "$as_ac_var=yes"
26277 echo "$as_me: failed program was:" >&5
26278 sed 's/^/| /' conftest.$ac_ext >&5
26280 eval "$as_ac_var=no"
26283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26284 conftest$ac_exeext conftest.$ac_ext
26286 ac_res=`eval echo '${'$as_ac_var'}'`
26287 { echo "$as_me:$LINENO: result: $ac_res" >&5
26288 echo "${ECHO_T}$ac_res" >&6; }
26289 if test `eval echo '${'$as_ac_var'}'` = yes; then
26290 cat >>confdefs.h <<_ACEOF
26291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26299 for ac_func in chflags
26301 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26302 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26303 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26304 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26305 echo $ECHO_N "(cached) $ECHO_C" >&6
26307 cat >conftest.$ac_ext <<_ACEOF
26310 cat confdefs.h >>conftest.$ac_ext
26311 cat >>conftest.$ac_ext <<_ACEOF
26312 /* end confdefs.h. */
26313 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26315 #define $ac_func innocuous_$ac_func
26317 /* System header to define __stub macros and hopefully few prototypes,
26318 which can conflict with char $ac_func (); below.
26319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26320 <limits.h> exists even on freestanding compilers. */
26323 # include <limits.h>
26325 # include <assert.h>
26330 /* Override any GCC internal prototype to avoid an error.
26331 Use char because int might match the return type of a GCC
26332 builtin and then its argument prototype would still apply. */
26337 /* The GNU C library defines this for functions which it implements
26338 to always fail with ENOSYS. Some functions are actually named
26339 something starting with __ and the normal name is an alias. */
26340 #if defined __stub_$ac_func || defined __stub___$ac_func
26347 return $ac_func ();
26352 rm -f conftest.$ac_objext conftest$ac_exeext
26353 if { (ac_try="$ac_link"
26354 case "(($ac_try" in
26355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26356 *) ac_try_echo=$ac_try;;
26358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26359 (eval "$ac_link") 2>conftest.er1
26361 grep -v '^ *+' conftest.er1 >conftest.err
26363 cat conftest.err >&5
26364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26365 (exit $ac_status); } && {
26366 test -z "$ac_c_werror_flag" ||
26367 test ! -s conftest.err
26368 } && test -s conftest$ac_exeext &&
26369 $as_test_x conftest$ac_exeext; then
26370 eval "$as_ac_var=yes"
26372 echo "$as_me: failed program was:" >&5
26373 sed 's/^/| /' conftest.$ac_ext >&5
26375 eval "$as_ac_var=no"
26378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26379 conftest$ac_exeext conftest.$ac_ext
26381 ac_res=`eval echo '${'$as_ac_var'}'`
26382 { echo "$as_me:$LINENO: result: $ac_res" >&5
26383 echo "${ECHO_T}$ac_res" >&6; }
26384 if test `eval echo '${'$as_ac_var'}'` = yes; then
26385 cat >>confdefs.h <<_ACEOF
26386 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26397 for ac_func in snprintf vsnprintf gethostid fseeko
26399 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26400 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26401 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26402 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26403 echo $ECHO_N "(cached) $ECHO_C" >&6
26405 cat >conftest.$ac_ext <<_ACEOF
26408 cat confdefs.h >>conftest.$ac_ext
26409 cat >>conftest.$ac_ext <<_ACEOF
26410 /* end confdefs.h. */
26411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26413 #define $ac_func innocuous_$ac_func
26415 /* System header to define __stub macros and hopefully few prototypes,
26416 which can conflict with char $ac_func (); below.
26417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26418 <limits.h> exists even on freestanding compilers. */
26421 # include <limits.h>
26423 # include <assert.h>
26428 /* Override any GCC internal prototype to avoid an error.
26429 Use char because int might match the return type of a GCC
26430 builtin and then its argument prototype would still apply. */
26435 /* The GNU C library defines this for functions which it implements
26436 to always fail with ENOSYS. Some functions are actually named
26437 something starting with __ and the normal name is an alias. */
26438 #if defined __stub_$ac_func || defined __stub___$ac_func
26445 return $ac_func ();
26450 rm -f conftest.$ac_objext conftest$ac_exeext
26451 if { (ac_try="$ac_link"
26452 case "(($ac_try" in
26453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26454 *) ac_try_echo=$ac_try;;
26456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26457 (eval "$ac_link") 2>conftest.er1
26459 grep -v '^ *+' conftest.er1 >conftest.err
26461 cat conftest.err >&5
26462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26463 (exit $ac_status); } && {
26464 test -z "$ac_c_werror_flag" ||
26465 test ! -s conftest.err
26466 } && test -s conftest$ac_exeext &&
26467 $as_test_x conftest$ac_exeext; then
26468 eval "$as_ac_var=yes"
26470 echo "$as_me: failed program was:" >&5
26471 sed 's/^/| /' conftest.$ac_ext >&5
26473 eval "$as_ac_var=no"
26476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26477 conftest$ac_exeext conftest.$ac_ext
26479 ac_res=`eval echo '${'$as_ac_var'}'`
26480 { echo "$as_me:$LINENO: result: $ac_res" >&5
26481 echo "${ECHO_T}$ac_res" >&6; }
26482 if test `eval echo '${'$as_ac_var'}'` = yes; then
26483 cat >>confdefs.h <<_ACEOF
26484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26491 { echo "$as_me:$LINENO: checking for va_copy" >&5
26492 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
26493 if test "${ba_cv_va_copy+set}" = set; then
26494 echo $ECHO_N "(cached) $ECHO_C" >&6
26496 cat >conftest.$ac_ext <<_ACEOF
26499 cat confdefs.h >>conftest.$ac_ext
26500 cat >>conftest.$ac_ext <<_ACEOF
26501 /* end confdefs.h. */
26503 #include <stdarg.h>
26504 void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
26505 void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
26510 call_use_va_copy(1,2,3)
26515 rm -f conftest.$ac_objext conftest$ac_exeext
26516 if { (ac_try="$ac_link"
26517 case "(($ac_try" in
26518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26519 *) ac_try_echo=$ac_try;;
26521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26522 (eval "$ac_link") 2>conftest.er1
26524 grep -v '^ *+' conftest.er1 >conftest.err
26526 cat conftest.err >&5
26527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26528 (exit $ac_status); } && {
26529 test -z "$ac_c_werror_flag" ||
26530 test ! -s conftest.err
26531 } && test -s conftest$ac_exeext &&
26532 $as_test_x conftest$ac_exeext; then
26535 echo "$as_me: failed program was:" >&5
26536 sed 's/^/| /' conftest.$ac_ext >&5
26541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26542 conftest$ac_exeext conftest.$ac_ext
26544 { echo "$as_me:$LINENO: result: $ba_cv_va_copy" >&5
26545 echo "${ECHO_T}$ba_cv_va_copy" >&6; }
26546 test $ba_cv_va_copy = yes &&
26547 cat >>confdefs.h <<\_ACEOF
26548 #define HAVE_VA_COPY 1
26557 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
26559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26563 echo $ECHO_N "(cached) $ECHO_C" >&6
26565 cat >conftest.$ac_ext <<_ACEOF
26568 cat confdefs.h >>conftest.$ac_ext
26569 cat >>conftest.$ac_ext <<_ACEOF
26570 /* end confdefs.h. */
26571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26573 #define $ac_func innocuous_$ac_func
26575 /* System header to define __stub macros and hopefully few prototypes,
26576 which can conflict with char $ac_func (); below.
26577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26578 <limits.h> exists even on freestanding compilers. */
26581 # include <limits.h>
26583 # include <assert.h>
26588 /* Override any GCC internal prototype to avoid an error.
26589 Use char because int might match the return type of a GCC
26590 builtin and then its argument prototype would still apply. */
26595 /* The GNU C library defines this for functions which it implements
26596 to always fail with ENOSYS. Some functions are actually named
26597 something starting with __ and the normal name is an alias. */
26598 #if defined __stub_$ac_func || defined __stub___$ac_func
26605 return $ac_func ();
26610 rm -f conftest.$ac_objext conftest$ac_exeext
26611 if { (ac_try="$ac_link"
26612 case "(($ac_try" in
26613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26614 *) ac_try_echo=$ac_try;;
26616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26617 (eval "$ac_link") 2>conftest.er1
26619 grep -v '^ *+' conftest.er1 >conftest.err
26621 cat conftest.err >&5
26622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623 (exit $ac_status); } && {
26624 test -z "$ac_c_werror_flag" ||
26625 test ! -s conftest.err
26626 } && test -s conftest$ac_exeext &&
26627 $as_test_x conftest$ac_exeext; then
26628 eval "$as_ac_var=yes"
26630 echo "$as_me: failed program was:" >&5
26631 sed 's/^/| /' conftest.$ac_ext >&5
26633 eval "$as_ac_var=no"
26636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26637 conftest$ac_exeext conftest.$ac_ext
26639 ac_res=`eval echo '${'$as_ac_var'}'`
26640 { echo "$as_me:$LINENO: result: $ac_res" >&5
26641 echo "${ECHO_T}$ac_res" >&6; }
26642 if test `eval echo '${'$as_ac_var'}'` = yes; then
26643 cat >>confdefs.h <<_ACEOF
26644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26651 # If resolver functions are not in libc check for -lnsl or -lresolv.
26652 { echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
26653 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6; }
26654 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
26655 echo $ECHO_N "(cached) $ECHO_C" >&6
26657 cat >conftest.$ac_ext <<_ACEOF
26660 cat confdefs.h >>conftest.$ac_ext
26661 cat >>conftest.$ac_ext <<_ACEOF
26662 /* end confdefs.h. */
26663 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
26664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26665 #define gethostbyname_r innocuous_gethostbyname_r
26667 /* System header to define __stub macros and hopefully few prototypes,
26668 which can conflict with char gethostbyname_r (); below.
26669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26670 <limits.h> exists even on freestanding compilers. */
26673 # include <limits.h>
26675 # include <assert.h>
26678 #undef gethostbyname_r
26680 /* Override any GCC internal prototype to avoid an error.
26681 Use char because int might match the return type of a GCC
26682 builtin and then its argument prototype would still apply. */
26686 char gethostbyname_r ();
26687 /* The GNU C library defines this for functions which it implements
26688 to always fail with ENOSYS. Some functions are actually named
26689 something starting with __ and the normal name is an alias. */
26690 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
26697 return gethostbyname_r ();
26702 rm -f conftest.$ac_objext conftest$ac_exeext
26703 if { (ac_try="$ac_link"
26704 case "(($ac_try" in
26705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26706 *) ac_try_echo=$ac_try;;
26708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26709 (eval "$ac_link") 2>conftest.er1
26711 grep -v '^ *+' conftest.er1 >conftest.err
26713 cat conftest.err >&5
26714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26715 (exit $ac_status); } && {
26716 test -z "$ac_c_werror_flag" ||
26717 test ! -s conftest.err
26718 } && test -s conftest$ac_exeext &&
26719 $as_test_x conftest$ac_exeext; then
26720 ac_cv_func_gethostbyname_r=yes
26722 echo "$as_me: failed program was:" >&5
26723 sed 's/^/| /' conftest.$ac_ext >&5
26725 ac_cv_func_gethostbyname_r=no
26728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26729 conftest$ac_exeext conftest.$ac_ext
26731 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
26732 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6; }
26733 if test $ac_cv_func_gethostbyname_r = yes; then
26734 { echo "$as_me:$LINENO: result: using libc's resolver" >&5
26735 echo "${ECHO_T}using libc's resolver" >&6; }
26738 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
26739 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6; }
26740 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
26741 echo $ECHO_N "(cached) $ECHO_C" >&6
26743 ac_check_lib_save_LIBS=$LIBS
26745 cat >conftest.$ac_ext <<_ACEOF
26748 cat confdefs.h >>conftest.$ac_ext
26749 cat >>conftest.$ac_ext <<_ACEOF
26750 /* end confdefs.h. */
26752 /* Override any GCC internal prototype to avoid an error.
26753 Use char because int might match the return type of a GCC
26754 builtin and then its argument prototype would still apply. */
26758 char gethostbyname_r ();
26762 return gethostbyname_r ();
26767 rm -f conftest.$ac_objext conftest$ac_exeext
26768 if { (ac_try="$ac_link"
26769 case "(($ac_try" in
26770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26771 *) ac_try_echo=$ac_try;;
26773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26774 (eval "$ac_link") 2>conftest.er1
26776 grep -v '^ *+' conftest.er1 >conftest.err
26778 cat conftest.err >&5
26779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26780 (exit $ac_status); } && {
26781 test -z "$ac_c_werror_flag" ||
26782 test ! -s conftest.err
26783 } && test -s conftest$ac_exeext &&
26784 $as_test_x conftest$ac_exeext; then
26785 ac_cv_lib_nsl_gethostbyname_r=yes
26787 echo "$as_me: failed program was:" >&5
26788 sed 's/^/| /' conftest.$ac_ext >&5
26790 ac_cv_lib_nsl_gethostbyname_r=no
26793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26794 conftest$ac_exeext conftest.$ac_ext
26795 LIBS=$ac_check_lib_save_LIBS
26797 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
26798 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6; }
26799 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
26800 cat >>confdefs.h <<_ACEOF
26801 #define HAVE_LIBNSL 1
26809 { echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
26810 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6; }
26811 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
26812 echo $ECHO_N "(cached) $ECHO_C" >&6
26814 ac_check_lib_save_LIBS=$LIBS
26815 LIBS="-lresolv $LIBS"
26816 cat >conftest.$ac_ext <<_ACEOF
26819 cat confdefs.h >>conftest.$ac_ext
26820 cat >>conftest.$ac_ext <<_ACEOF
26821 /* end confdefs.h. */
26823 /* Override any GCC internal prototype to avoid an error.
26824 Use char because int might match the return type of a GCC
26825 builtin and then its argument prototype would still apply. */
26829 char gethostbyname_r ();
26833 return gethostbyname_r ();
26838 rm -f conftest.$ac_objext conftest$ac_exeext
26839 if { (ac_try="$ac_link"
26840 case "(($ac_try" in
26841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26842 *) ac_try_echo=$ac_try;;
26844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26845 (eval "$ac_link") 2>conftest.er1
26847 grep -v '^ *+' conftest.er1 >conftest.err
26849 cat conftest.err >&5
26850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851 (exit $ac_status); } && {
26852 test -z "$ac_c_werror_flag" ||
26853 test ! -s conftest.err
26854 } && test -s conftest$ac_exeext &&
26855 $as_test_x conftest$ac_exeext; then
26856 ac_cv_lib_resolv_gethostbyname_r=yes
26858 echo "$as_me: failed program was:" >&5
26859 sed 's/^/| /' conftest.$ac_ext >&5
26861 ac_cv_lib_resolv_gethostbyname_r=no
26864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26865 conftest$ac_exeext conftest.$ac_ext
26866 LIBS=$ac_check_lib_save_LIBS
26868 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
26869 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6; }
26870 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
26871 cat >>confdefs.h <<_ACEOF
26872 #define HAVE_LIBRESOLV 1
26875 LIBS="-lresolv $LIBS"
26885 for ac_func in inet_pton
26887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26888 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26891 echo $ECHO_N "(cached) $ECHO_C" >&6
26893 cat >conftest.$ac_ext <<_ACEOF
26896 cat confdefs.h >>conftest.$ac_ext
26897 cat >>conftest.$ac_ext <<_ACEOF
26898 /* end confdefs.h. */
26899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26901 #define $ac_func innocuous_$ac_func
26903 /* System header to define __stub macros and hopefully few prototypes,
26904 which can conflict with char $ac_func (); below.
26905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26906 <limits.h> exists even on freestanding compilers. */
26909 # include <limits.h>
26911 # include <assert.h>
26916 /* Override any GCC internal prototype to avoid an error.
26917 Use char because int might match the return type of a GCC
26918 builtin and then its argument prototype would still apply. */
26923 /* The GNU C library defines this for functions which it implements
26924 to always fail with ENOSYS. Some functions are actually named
26925 something starting with __ and the normal name is an alias. */
26926 #if defined __stub_$ac_func || defined __stub___$ac_func
26933 return $ac_func ();
26938 rm -f conftest.$ac_objext conftest$ac_exeext
26939 if { (ac_try="$ac_link"
26940 case "(($ac_try" in
26941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26942 *) ac_try_echo=$ac_try;;
26944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26945 (eval "$ac_link") 2>conftest.er1
26947 grep -v '^ *+' conftest.er1 >conftest.err
26949 cat conftest.err >&5
26950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951 (exit $ac_status); } && {
26952 test -z "$ac_c_werror_flag" ||
26953 test ! -s conftest.err
26954 } && test -s conftest$ac_exeext &&
26955 $as_test_x conftest$ac_exeext; then
26956 eval "$as_ac_var=yes"
26958 echo "$as_me: failed program was:" >&5
26959 sed 's/^/| /' conftest.$ac_ext >&5
26961 eval "$as_ac_var=no"
26964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26965 conftest$ac_exeext conftest.$ac_ext
26967 ac_res=`eval echo '${'$as_ac_var'}'`
26968 { echo "$as_me:$LINENO: result: $ac_res" >&5
26969 echo "${ECHO_T}$ac_res" >&6; }
26970 if test `eval echo '${'$as_ac_var'}'` = yes; then
26971 cat >>confdefs.h <<_ACEOF
26972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26974 cat >>confdefs.h <<\_ACEOF
26975 #define HAVE_INET_PTON 1
26982 for ac_func in inet_ntop
26984 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26985 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26986 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26987 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26988 echo $ECHO_N "(cached) $ECHO_C" >&6
26990 cat >conftest.$ac_ext <<_ACEOF
26993 cat confdefs.h >>conftest.$ac_ext
26994 cat >>conftest.$ac_ext <<_ACEOF
26995 /* end confdefs.h. */
26996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26998 #define $ac_func innocuous_$ac_func
27000 /* System header to define __stub macros and hopefully few prototypes,
27001 which can conflict with char $ac_func (); below.
27002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27003 <limits.h> exists even on freestanding compilers. */
27006 # include <limits.h>
27008 # include <assert.h>
27013 /* Override any GCC internal prototype to avoid an error.
27014 Use char because int might match the return type of a GCC
27015 builtin and then its argument prototype would still apply. */
27020 /* The GNU C library defines this for functions which it implements
27021 to always fail with ENOSYS. Some functions are actually named
27022 something starting with __ and the normal name is an alias. */
27023 #if defined __stub_$ac_func || defined __stub___$ac_func
27030 return $ac_func ();
27035 rm -f conftest.$ac_objext conftest$ac_exeext
27036 if { (ac_try="$ac_link"
27037 case "(($ac_try" in
27038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27039 *) ac_try_echo=$ac_try;;
27041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27042 (eval "$ac_link") 2>conftest.er1
27044 grep -v '^ *+' conftest.er1 >conftest.err
27046 cat conftest.err >&5
27047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048 (exit $ac_status); } && {
27049 test -z "$ac_c_werror_flag" ||
27050 test ! -s conftest.err
27051 } && test -s conftest$ac_exeext &&
27052 $as_test_x conftest$ac_exeext; then
27053 eval "$as_ac_var=yes"
27055 echo "$as_me: failed program was:" >&5
27056 sed 's/^/| /' conftest.$ac_ext >&5
27058 eval "$as_ac_var=no"
27061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27062 conftest$ac_exeext conftest.$ac_ext
27064 ac_res=`eval echo '${'$as_ac_var'}'`
27065 { echo "$as_me:$LINENO: result: $ac_res" >&5
27066 echo "${ECHO_T}$ac_res" >&6; }
27067 if test `eval echo '${'$as_ac_var'}'` = yes; then
27068 cat >>confdefs.h <<_ACEOF
27069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27071 cat >>confdefs.h <<\_ACEOF
27072 #define HAVE_INET_NTOP 1
27079 for ac_func in gethostbyname2
27081 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27082 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27083 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27084 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27085 echo $ECHO_N "(cached) $ECHO_C" >&6
27087 cat >conftest.$ac_ext <<_ACEOF
27090 cat confdefs.h >>conftest.$ac_ext
27091 cat >>conftest.$ac_ext <<_ACEOF
27092 /* end confdefs.h. */
27093 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27095 #define $ac_func innocuous_$ac_func
27097 /* System header to define __stub macros and hopefully few prototypes,
27098 which can conflict with char $ac_func (); below.
27099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27100 <limits.h> exists even on freestanding compilers. */
27103 # include <limits.h>
27105 # include <assert.h>
27110 /* Override any GCC internal prototype to avoid an error.
27111 Use char because int might match the return type of a GCC
27112 builtin and then its argument prototype would still apply. */
27117 /* The GNU C library defines this for functions which it implements
27118 to always fail with ENOSYS. Some functions are actually named
27119 something starting with __ and the normal name is an alias. */
27120 #if defined __stub_$ac_func || defined __stub___$ac_func
27127 return $ac_func ();
27132 rm -f conftest.$ac_objext conftest$ac_exeext
27133 if { (ac_try="$ac_link"
27134 case "(($ac_try" in
27135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27136 *) ac_try_echo=$ac_try;;
27138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27139 (eval "$ac_link") 2>conftest.er1
27141 grep -v '^ *+' conftest.er1 >conftest.err
27143 cat conftest.err >&5
27144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27145 (exit $ac_status); } && {
27146 test -z "$ac_c_werror_flag" ||
27147 test ! -s conftest.err
27148 } && test -s conftest$ac_exeext &&
27149 $as_test_x conftest$ac_exeext; then
27150 eval "$as_ac_var=yes"
27152 echo "$as_me: failed program was:" >&5
27153 sed 's/^/| /' conftest.$ac_ext >&5
27155 eval "$as_ac_var=no"
27158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27159 conftest$ac_exeext conftest.$ac_ext
27161 ac_res=`eval echo '${'$as_ac_var'}'`
27162 { echo "$as_me:$LINENO: result: $ac_res" >&5
27163 echo "${ECHO_T}$ac_res" >&6; }
27164 if test `eval echo '${'$as_ac_var'}'` = yes; then
27165 cat >>confdefs.h <<_ACEOF
27166 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27168 cat >>confdefs.h <<\_ACEOF
27169 #define HAVE_GETHOSTBYNAME2 1
27176 { echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
27177 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6; }
27178 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
27179 echo $ECHO_N "(cached) $ECHO_C" >&6
27181 cat >conftest.$ac_ext <<_ACEOF
27184 cat confdefs.h >>conftest.$ac_ext
27185 cat >>conftest.$ac_ext <<_ACEOF
27186 /* end confdefs.h. */
27187 #include <sys/socket.h>
27191 struct sockaddr s; s.sa_len;
27196 rm -f conftest.$ac_objext
27197 if { (ac_try="$ac_compile"
27198 case "(($ac_try" in
27199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27200 *) ac_try_echo=$ac_try;;
27202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27203 (eval "$ac_compile") 2>conftest.er1
27205 grep -v '^ *+' conftest.er1 >conftest.err
27207 cat conftest.err >&5
27208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27209 (exit $ac_status); } && {
27210 test -z "$ac_c_werror_flag" ||
27211 test ! -s conftest.err
27212 } && test -s conftest.$ac_objext; then
27213 ac_cv_struct_sockaddr_sa_len=yes
27215 echo "$as_me: failed program was:" >&5
27216 sed 's/^/| /' conftest.$ac_ext >&5
27218 ac_cv_struct_sockaddr_sa_len=no
27221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27223 { echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
27224 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6; }
27226 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27228 cat >>confdefs.h <<\_ACEOF
27229 #define HAVE_SA_LEN 1
27238 for ac_func in strftime
27240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27241 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27244 echo $ECHO_N "(cached) $ECHO_C" >&6
27246 cat >conftest.$ac_ext <<_ACEOF
27249 cat confdefs.h >>conftest.$ac_ext
27250 cat >>conftest.$ac_ext <<_ACEOF
27251 /* end confdefs.h. */
27252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27254 #define $ac_func innocuous_$ac_func
27256 /* System header to define __stub macros and hopefully few prototypes,
27257 which can conflict with char $ac_func (); below.
27258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27259 <limits.h> exists even on freestanding compilers. */
27262 # include <limits.h>
27264 # include <assert.h>
27269 /* Override any GCC internal prototype to avoid an error.
27270 Use char because int might match the return type of a GCC
27271 builtin and then its argument prototype would still apply. */
27276 /* The GNU C library defines this for functions which it implements
27277 to always fail with ENOSYS. Some functions are actually named
27278 something starting with __ and the normal name is an alias. */
27279 #if defined __stub_$ac_func || defined __stub___$ac_func
27286 return $ac_func ();
27291 rm -f conftest.$ac_objext conftest$ac_exeext
27292 if { (ac_try="$ac_link"
27293 case "(($ac_try" in
27294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27295 *) ac_try_echo=$ac_try;;
27297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27298 (eval "$ac_link") 2>conftest.er1
27300 grep -v '^ *+' conftest.er1 >conftest.err
27302 cat conftest.err >&5
27303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27304 (exit $ac_status); } && {
27305 test -z "$ac_c_werror_flag" ||
27306 test ! -s conftest.err
27307 } && test -s conftest$ac_exeext &&
27308 $as_test_x conftest$ac_exeext; then
27309 eval "$as_ac_var=yes"
27311 echo "$as_me: failed program was:" >&5
27312 sed 's/^/| /' conftest.$ac_ext >&5
27314 eval "$as_ac_var=no"
27317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27318 conftest$ac_exeext conftest.$ac_ext
27320 ac_res=`eval echo '${'$as_ac_var'}'`
27321 { echo "$as_me:$LINENO: result: $ac_res" >&5
27322 echo "${ECHO_T}$ac_res" >&6; }
27323 if test `eval echo '${'$as_ac_var'}'` = yes; then
27324 cat >>confdefs.h <<_ACEOF
27325 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27329 # strftime is in -lintl on SCO UNIX.
27330 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
27331 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
27332 if test "${ac_cv_lib_intl_strftime+set}" = set; then
27333 echo $ECHO_N "(cached) $ECHO_C" >&6
27335 ac_check_lib_save_LIBS=$LIBS
27336 LIBS="-lintl $LIBS"
27337 cat >conftest.$ac_ext <<_ACEOF
27340 cat confdefs.h >>conftest.$ac_ext
27341 cat >>conftest.$ac_ext <<_ACEOF
27342 /* end confdefs.h. */
27344 /* Override any GCC internal prototype to avoid an error.
27345 Use char because int might match the return type of a GCC
27346 builtin and then its argument prototype would still apply. */
27354 return strftime ();
27359 rm -f conftest.$ac_objext conftest$ac_exeext
27360 if { (ac_try="$ac_link"
27361 case "(($ac_try" in
27362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27363 *) ac_try_echo=$ac_try;;
27365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27366 (eval "$ac_link") 2>conftest.er1
27368 grep -v '^ *+' conftest.er1 >conftest.err
27370 cat conftest.err >&5
27371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372 (exit $ac_status); } && {
27373 test -z "$ac_c_werror_flag" ||
27374 test ! -s conftest.err
27375 } && test -s conftest$ac_exeext &&
27376 $as_test_x conftest$ac_exeext; then
27377 ac_cv_lib_intl_strftime=yes
27379 echo "$as_me: failed program was:" >&5
27380 sed 's/^/| /' conftest.$ac_ext >&5
27382 ac_cv_lib_intl_strftime=no
27385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27386 conftest$ac_exeext conftest.$ac_ext
27387 LIBS=$ac_check_lib_save_LIBS
27389 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
27390 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
27391 if test $ac_cv_lib_intl_strftime = yes; then
27392 cat >>confdefs.h <<\_ACEOF
27393 #define HAVE_STRFTIME 1
27396 LIBS="-lintl $LIBS"
27403 for ac_func in vprintf
27405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27406 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27408 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27409 echo $ECHO_N "(cached) $ECHO_C" >&6
27411 cat >conftest.$ac_ext <<_ACEOF
27414 cat confdefs.h >>conftest.$ac_ext
27415 cat >>conftest.$ac_ext <<_ACEOF
27416 /* end confdefs.h. */
27417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27419 #define $ac_func innocuous_$ac_func
27421 /* System header to define __stub macros and hopefully few prototypes,
27422 which can conflict with char $ac_func (); below.
27423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27424 <limits.h> exists even on freestanding compilers. */
27427 # include <limits.h>
27429 # include <assert.h>
27434 /* Override any GCC internal prototype to avoid an error.
27435 Use char because int might match the return type of a GCC
27436 builtin and then its argument prototype would still apply. */
27441 /* The GNU C library defines this for functions which it implements
27442 to always fail with ENOSYS. Some functions are actually named
27443 something starting with __ and the normal name is an alias. */
27444 #if defined __stub_$ac_func || defined __stub___$ac_func
27451 return $ac_func ();
27456 rm -f conftest.$ac_objext conftest$ac_exeext
27457 if { (ac_try="$ac_link"
27458 case "(($ac_try" in
27459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27460 *) ac_try_echo=$ac_try;;
27462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27463 (eval "$ac_link") 2>conftest.er1
27465 grep -v '^ *+' conftest.er1 >conftest.err
27467 cat conftest.err >&5
27468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27469 (exit $ac_status); } && {
27470 test -z "$ac_c_werror_flag" ||
27471 test ! -s conftest.err
27472 } && test -s conftest$ac_exeext &&
27473 $as_test_x conftest$ac_exeext; then
27474 eval "$as_ac_var=yes"
27476 echo "$as_me: failed program was:" >&5
27477 sed 's/^/| /' conftest.$ac_ext >&5
27479 eval "$as_ac_var=no"
27482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27483 conftest$ac_exeext conftest.$ac_ext
27485 ac_res=`eval echo '${'$as_ac_var'}'`
27486 { echo "$as_me:$LINENO: result: $ac_res" >&5
27487 echo "${ECHO_T}$ac_res" >&6; }
27488 if test `eval echo '${'$as_ac_var'}'` = yes; then
27489 cat >>confdefs.h <<_ACEOF
27490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27493 { echo "$as_me:$LINENO: checking for _doprnt" >&5
27494 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
27495 if test "${ac_cv_func__doprnt+set}" = set; then
27496 echo $ECHO_N "(cached) $ECHO_C" >&6
27498 cat >conftest.$ac_ext <<_ACEOF
27501 cat confdefs.h >>conftest.$ac_ext
27502 cat >>conftest.$ac_ext <<_ACEOF
27503 /* end confdefs.h. */
27504 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
27505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27506 #define _doprnt innocuous__doprnt
27508 /* System header to define __stub macros and hopefully few prototypes,
27509 which can conflict with char _doprnt (); below.
27510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27511 <limits.h> exists even on freestanding compilers. */
27514 # include <limits.h>
27516 # include <assert.h>
27521 /* Override any GCC internal prototype to avoid an error.
27522 Use char because int might match the return type of a GCC
27523 builtin and then its argument prototype would still apply. */
27528 /* The GNU C library defines this for functions which it implements
27529 to always fail with ENOSYS. Some functions are actually named
27530 something starting with __ and the normal name is an alias. */
27531 #if defined __stub__doprnt || defined __stub____doprnt
27543 rm -f conftest.$ac_objext conftest$ac_exeext
27544 if { (ac_try="$ac_link"
27545 case "(($ac_try" in
27546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27547 *) ac_try_echo=$ac_try;;
27549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27550 (eval "$ac_link") 2>conftest.er1
27552 grep -v '^ *+' conftest.er1 >conftest.err
27554 cat conftest.err >&5
27555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27556 (exit $ac_status); } && {
27557 test -z "$ac_c_werror_flag" ||
27558 test ! -s conftest.err
27559 } && test -s conftest$ac_exeext &&
27560 $as_test_x conftest$ac_exeext; then
27561 ac_cv_func__doprnt=yes
27563 echo "$as_me: failed program was:" >&5
27564 sed 's/^/| /' conftest.$ac_ext >&5
27566 ac_cv_func__doprnt=no
27569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27570 conftest$ac_exeext conftest.$ac_ext
27572 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
27573 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
27574 if test $ac_cv_func__doprnt = yes; then
27576 cat >>confdefs.h <<\_ACEOF
27577 #define HAVE_DOPRNT 1
27586 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27587 # for constant arguments. Useless!
27588 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
27589 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
27590 if test "${ac_cv_working_alloca_h+set}" = set; then
27591 echo $ECHO_N "(cached) $ECHO_C" >&6
27593 cat >conftest.$ac_ext <<_ACEOF
27596 cat confdefs.h >>conftest.$ac_ext
27597 cat >>conftest.$ac_ext <<_ACEOF
27598 /* end confdefs.h. */
27599 #include <alloca.h>
27603 char *p = (char *) alloca (2 * sizeof (int));
27609 rm -f conftest.$ac_objext conftest$ac_exeext
27610 if { (ac_try="$ac_link"
27611 case "(($ac_try" in
27612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27613 *) ac_try_echo=$ac_try;;
27615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27616 (eval "$ac_link") 2>conftest.er1
27618 grep -v '^ *+' conftest.er1 >conftest.err
27620 cat conftest.err >&5
27621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27622 (exit $ac_status); } && {
27623 test -z "$ac_c_werror_flag" ||
27624 test ! -s conftest.err
27625 } && test -s conftest$ac_exeext &&
27626 $as_test_x conftest$ac_exeext; then
27627 ac_cv_working_alloca_h=yes
27629 echo "$as_me: failed program was:" >&5
27630 sed 's/^/| /' conftest.$ac_ext >&5
27632 ac_cv_working_alloca_h=no
27635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27636 conftest$ac_exeext conftest.$ac_ext
27638 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
27639 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
27640 if test $ac_cv_working_alloca_h = yes; then
27642 cat >>confdefs.h <<\_ACEOF
27643 #define HAVE_ALLOCA_H 1
27648 { echo "$as_me:$LINENO: checking for alloca" >&5
27649 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
27650 if test "${ac_cv_func_alloca_works+set}" = set; then
27651 echo $ECHO_N "(cached) $ECHO_C" >&6
27653 cat >conftest.$ac_ext <<_ACEOF
27656 cat confdefs.h >>conftest.$ac_ext
27657 cat >>conftest.$ac_ext <<_ACEOF
27658 /* end confdefs.h. */
27660 # define alloca __builtin_alloca
27663 # include <malloc.h>
27664 # define alloca _alloca
27666 # ifdef HAVE_ALLOCA_H
27667 # include <alloca.h>
27672 # ifndef alloca /* predefined by HP cc +Olibcalls */
27683 char *p = (char *) alloca (1);
27689 rm -f conftest.$ac_objext conftest$ac_exeext
27690 if { (ac_try="$ac_link"
27691 case "(($ac_try" in
27692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27693 *) ac_try_echo=$ac_try;;
27695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27696 (eval "$ac_link") 2>conftest.er1
27698 grep -v '^ *+' conftest.er1 >conftest.err
27700 cat conftest.err >&5
27701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27702 (exit $ac_status); } && {
27703 test -z "$ac_c_werror_flag" ||
27704 test ! -s conftest.err
27705 } && test -s conftest$ac_exeext &&
27706 $as_test_x conftest$ac_exeext; then
27707 ac_cv_func_alloca_works=yes
27709 echo "$as_me: failed program was:" >&5
27710 sed 's/^/| /' conftest.$ac_ext >&5
27712 ac_cv_func_alloca_works=no
27715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27716 conftest$ac_exeext conftest.$ac_ext
27718 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27719 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
27721 if test $ac_cv_func_alloca_works = yes; then
27723 cat >>confdefs.h <<\_ACEOF
27724 #define HAVE_ALLOCA 1
27728 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27729 # that cause trouble. Some versions do not even contain alloca or
27730 # contain a buggy version. If you still want to use their alloca,
27731 # use ar to extract alloca.o from them instead of compiling alloca.c.
27733 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27735 cat >>confdefs.h <<\_ACEOF
27740 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27741 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
27742 if test "${ac_cv_os_cray+set}" = set; then
27743 echo $ECHO_N "(cached) $ECHO_C" >&6
27745 cat >conftest.$ac_ext <<_ACEOF
27748 cat confdefs.h >>conftest.$ac_ext
27749 cat >>conftest.$ac_ext <<_ACEOF
27750 /* end confdefs.h. */
27751 #if defined CRAY && ! defined CRAY2
27758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27759 $EGREP "webecray" >/dev/null 2>&1; then
27767 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27768 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
27769 if test $ac_cv_os_cray = yes; then
27770 for ac_func in _getb67 GETB67 getb67; do
27771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27772 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27774 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27775 echo $ECHO_N "(cached) $ECHO_C" >&6
27777 cat >conftest.$ac_ext <<_ACEOF
27780 cat confdefs.h >>conftest.$ac_ext
27781 cat >>conftest.$ac_ext <<_ACEOF
27782 /* end confdefs.h. */
27783 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27785 #define $ac_func innocuous_$ac_func
27787 /* System header to define __stub macros and hopefully few prototypes,
27788 which can conflict with char $ac_func (); below.
27789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27790 <limits.h> exists even on freestanding compilers. */
27793 # include <limits.h>
27795 # include <assert.h>
27800 /* Override any GCC internal prototype to avoid an error.
27801 Use char because int might match the return type of a GCC
27802 builtin and then its argument prototype would still apply. */
27807 /* The GNU C library defines this for functions which it implements
27808 to always fail with ENOSYS. Some functions are actually named
27809 something starting with __ and the normal name is an alias. */
27810 #if defined __stub_$ac_func || defined __stub___$ac_func
27817 return $ac_func ();
27822 rm -f conftest.$ac_objext conftest$ac_exeext
27823 if { (ac_try="$ac_link"
27824 case "(($ac_try" in
27825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27826 *) ac_try_echo=$ac_try;;
27828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27829 (eval "$ac_link") 2>conftest.er1
27831 grep -v '^ *+' conftest.er1 >conftest.err
27833 cat conftest.err >&5
27834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835 (exit $ac_status); } && {
27836 test -z "$ac_c_werror_flag" ||
27837 test ! -s conftest.err
27838 } && test -s conftest$ac_exeext &&
27839 $as_test_x conftest$ac_exeext; then
27840 eval "$as_ac_var=yes"
27842 echo "$as_me: failed program was:" >&5
27843 sed 's/^/| /' conftest.$ac_ext >&5
27845 eval "$as_ac_var=no"
27848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27849 conftest$ac_exeext conftest.$ac_ext
27851 ac_res=`eval echo '${'$as_ac_var'}'`
27852 { echo "$as_me:$LINENO: result: $ac_res" >&5
27853 echo "${ECHO_T}$ac_res" >&6; }
27854 if test `eval echo '${'$as_ac_var'}'` = yes; then
27856 cat >>confdefs.h <<_ACEOF
27857 #define CRAY_STACKSEG_END $ac_func
27866 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27867 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
27868 if test "${ac_cv_c_stack_direction+set}" = set; then
27869 echo $ECHO_N "(cached) $ECHO_C" >&6
27871 if test "$cross_compiling" = yes; then
27872 ac_cv_c_stack_direction=0
27874 cat >conftest.$ac_ext <<_ACEOF
27877 cat confdefs.h >>conftest.$ac_ext
27878 cat >>conftest.$ac_ext <<_ACEOF
27879 /* end confdefs.h. */
27880 $ac_includes_default
27882 find_stack_direction ()
27884 static char *addr = 0;
27889 return find_stack_direction ();
27892 return (&dummy > addr) ? 1 : -1;
27898 return find_stack_direction () < 0;
27901 rm -f conftest$ac_exeext
27902 if { (ac_try="$ac_link"
27903 case "(($ac_try" in
27904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27905 *) ac_try_echo=$ac_try;;
27907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27908 (eval "$ac_link") 2>&5
27910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27911 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27912 { (case "(($ac_try" in
27913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27914 *) ac_try_echo=$ac_try;;
27916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27917 (eval "$ac_try") 2>&5
27919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27920 (exit $ac_status); }; }; then
27921 ac_cv_c_stack_direction=1
27923 echo "$as_me: program exited with status $ac_status" >&5
27924 echo "$as_me: failed program was:" >&5
27925 sed 's/^/| /' conftest.$ac_ext >&5
27927 ( exit $ac_status )
27928 ac_cv_c_stack_direction=-1
27930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27935 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27936 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
27938 cat >>confdefs.h <<_ACEOF
27939 #define STACK_DIRECTION $ac_cv_c_stack_direction
27945 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
27946 # -lseq on Dynix/PTX, -lgen on Unixware.
27947 { echo "$as_me:$LINENO: checking for library containing getmntent" >&5
27948 echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; }
27949 if test "${ac_cv_search_getmntent+set}" = set; then
27950 echo $ECHO_N "(cached) $ECHO_C" >&6
27952 ac_func_search_save_LIBS=$LIBS
27953 cat >conftest.$ac_ext <<_ACEOF
27956 cat confdefs.h >>conftest.$ac_ext
27957 cat >>conftest.$ac_ext <<_ACEOF
27958 /* end confdefs.h. */
27960 /* Override any GCC internal prototype to avoid an error.
27961 Use char because int might match the return type of a GCC
27962 builtin and then its argument prototype would still apply. */
27970 return getmntent ();
27975 for ac_lib in '' sun seq gen; do
27976 if test -z "$ac_lib"; then
27977 ac_res="none required"
27980 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27982 rm -f conftest.$ac_objext conftest$ac_exeext
27983 if { (ac_try="$ac_link"
27984 case "(($ac_try" in
27985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27986 *) ac_try_echo=$ac_try;;
27988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27989 (eval "$ac_link") 2>conftest.er1
27991 grep -v '^ *+' conftest.er1 >conftest.err
27993 cat conftest.err >&5
27994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995 (exit $ac_status); } && {
27996 test -z "$ac_c_werror_flag" ||
27997 test ! -s conftest.err
27998 } && test -s conftest$ac_exeext &&
27999 $as_test_x conftest$ac_exeext; then
28000 ac_cv_search_getmntent=$ac_res
28002 echo "$as_me: failed program was:" >&5
28003 sed 's/^/| /' conftest.$ac_ext >&5
28008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28010 if test "${ac_cv_search_getmntent+set}" = set; then
28014 if test "${ac_cv_search_getmntent+set}" = set; then
28017 ac_cv_search_getmntent=no
28019 rm conftest.$ac_ext
28020 LIBS=$ac_func_search_save_LIBS
28022 { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5
28023 echo "${ECHO_T}$ac_cv_search_getmntent" >&6; }
28024 ac_res=$ac_cv_search_getmntent
28025 if test "$ac_res" != no; then
28026 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28027 ac_cv_func_getmntent=yes
28029 cat >>confdefs.h <<\_ACEOF
28030 #define HAVE_GETMNTENT 1
28034 ac_cv_func_getmntent=no
28038 { echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28039 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
28040 if test "${ac_cv_func_closedir_void+set}" = set; then
28041 echo $ECHO_N "(cached) $ECHO_C" >&6
28043 if test "$cross_compiling" = yes; then
28044 ac_cv_func_closedir_void=yes
28046 cat >conftest.$ac_ext <<_ACEOF
28049 cat confdefs.h >>conftest.$ac_ext
28050 cat >>conftest.$ac_ext <<_ACEOF
28051 /* end confdefs.h. */
28052 $ac_includes_default
28053 #include <$ac_header_dirent>
28054 #ifndef __cplusplus
28061 return closedir (opendir (".")) != 0;
28066 rm -f conftest$ac_exeext
28067 if { (ac_try="$ac_link"
28068 case "(($ac_try" in
28069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28070 *) ac_try_echo=$ac_try;;
28072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28073 (eval "$ac_link") 2>&5
28075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28076 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28077 { (case "(($ac_try" in
28078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28079 *) ac_try_echo=$ac_try;;
28081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28082 (eval "$ac_try") 2>&5
28084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28085 (exit $ac_status); }; }; then
28086 ac_cv_func_closedir_void=no
28088 echo "$as_me: program exited with status $ac_status" >&5
28089 echo "$as_me: failed program was:" >&5
28090 sed 's/^/| /' conftest.$ac_ext >&5
28092 ( exit $ac_status )
28093 ac_cv_func_closedir_void=yes
28095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28100 { echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28101 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
28102 if test $ac_cv_func_closedir_void = yes; then
28104 cat >>confdefs.h <<\_ACEOF
28105 #define CLOSEDIR_VOID 1
28110 { echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
28111 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
28112 if test "${ac_cv_func_setpgrp_void+set}" = set; then
28113 echo $ECHO_N "(cached) $ECHO_C" >&6
28115 if test "$cross_compiling" = yes; then
28116 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
28117 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
28118 { (exit 1); exit 1; }; }
28120 cat >conftest.$ac_ext <<_ACEOF
28123 cat confdefs.h >>conftest.$ac_ext
28124 cat >>conftest.$ac_ext <<_ACEOF
28125 /* end confdefs.h. */
28126 $ac_includes_default
28130 /* If this system has a BSD-style setpgrp which takes arguments,
28131 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28132 exit successfully. */
28133 return setpgrp (1,1) != -1;
28138 rm -f conftest$ac_exeext
28139 if { (ac_try="$ac_link"
28140 case "(($ac_try" in
28141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28142 *) ac_try_echo=$ac_try;;
28144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28145 (eval "$ac_link") 2>&5
28147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28148 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28149 { (case "(($ac_try" in
28150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28151 *) ac_try_echo=$ac_try;;
28153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28154 (eval "$ac_try") 2>&5
28156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28157 (exit $ac_status); }; }; then
28158 ac_cv_func_setpgrp_void=no
28160 echo "$as_me: program exited with status $ac_status" >&5
28161 echo "$as_me: failed program was:" >&5
28162 sed 's/^/| /' conftest.$ac_ext >&5
28164 ( exit $ac_status )
28165 ac_cv_func_setpgrp_void=yes
28167 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28172 { echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
28173 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
28174 if test $ac_cv_func_setpgrp_void = yes; then
28176 cat >>confdefs.h <<\_ACEOF
28177 #define SETPGRP_VOID 1
28181 # AC_FUNC_FNMATCH dnl use local version
28184 { echo "$as_me:$LINENO: checking for gettext in -lintl" >&5
28185 echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6; }
28186 if test "${ac_cv_lib_intl_gettext+set}" = set; then
28187 echo $ECHO_N "(cached) $ECHO_C" >&6
28189 ac_check_lib_save_LIBS=$LIBS
28190 LIBS="-lintl $LIBS"
28191 cat >conftest.$ac_ext <<_ACEOF
28194 cat confdefs.h >>conftest.$ac_ext
28195 cat >>conftest.$ac_ext <<_ACEOF
28196 /* end confdefs.h. */
28198 /* Override any GCC internal prototype to avoid an error.
28199 Use char because int might match the return type of a GCC
28200 builtin and then its argument prototype would still apply. */
28213 rm -f conftest.$ac_objext conftest$ac_exeext
28214 if { (ac_try="$ac_link"
28215 case "(($ac_try" in
28216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28217 *) ac_try_echo=$ac_try;;
28219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28220 (eval "$ac_link") 2>conftest.er1
28222 grep -v '^ *+' conftest.er1 >conftest.err
28224 cat conftest.err >&5
28225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28226 (exit $ac_status); } && {
28227 test -z "$ac_c_werror_flag" ||
28228 test ! -s conftest.err
28229 } && test -s conftest$ac_exeext &&
28230 $as_test_x conftest$ac_exeext; then
28231 ac_cv_lib_intl_gettext=yes
28233 echo "$as_me: failed program was:" >&5
28234 sed 's/^/| /' conftest.$ac_ext >&5
28236 ac_cv_lib_intl_gettext=no
28239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28240 conftest$ac_exeext conftest.$ac_ext
28241 LIBS=$ac_check_lib_save_LIBS
28243 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_gettext" >&5
28244 echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6; }
28245 if test $ac_cv_lib_intl_gettext = yes; then
28246 LIBS="$LIBS -lintl"
28252 { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
28253 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
28254 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
28255 echo $ECHO_N "(cached) $ECHO_C" >&6
28257 ac_check_lib_save_LIBS=$LIBS
28259 cat >conftest.$ac_ext <<_ACEOF
28262 cat confdefs.h >>conftest.$ac_ext
28263 cat >>conftest.$ac_ext <<_ACEOF
28264 /* end confdefs.h. */
28266 /* Override any GCC internal prototype to avoid an error.
28267 Use char because int might match the return type of a GCC
28268 builtin and then its argument prototype would still apply. */
28276 return getpwnam ();
28281 rm -f conftest.$ac_objext conftest$ac_exeext
28282 if { (ac_try="$ac_link"
28283 case "(($ac_try" in
28284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28285 *) ac_try_echo=$ac_try;;
28287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28288 (eval "$ac_link") 2>conftest.er1
28290 grep -v '^ *+' conftest.er1 >conftest.err
28292 cat conftest.err >&5
28293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28294 (exit $ac_status); } && {
28295 test -z "$ac_c_werror_flag" ||
28296 test ! -s conftest.err
28297 } && test -s conftest$ac_exeext &&
28298 $as_test_x conftest$ac_exeext; then
28299 ac_cv_lib_sun_getpwnam=yes
28301 echo "$as_me: failed program was:" >&5
28302 sed 's/^/| /' conftest.$ac_ext >&5
28304 ac_cv_lib_sun_getpwnam=no
28307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28308 conftest$ac_exeext conftest.$ac_ext
28309 LIBS=$ac_check_lib_save_LIBS
28311 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
28312 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
28313 if test $ac_cv_lib_sun_getpwnam = yes; then
28314 cat >>confdefs.h <<_ACEOF
28315 #define HAVE_LIBSUN 1
28324 for ac_header in zlib.h
28326 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28331 echo $ECHO_N "(cached) $ECHO_C" >&6
28333 ac_res=`eval echo '${'$as_ac_Header'}'`
28334 { echo "$as_me:$LINENO: result: $ac_res" >&5
28335 echo "${ECHO_T}$ac_res" >&6; }
28337 # Is the header compilable?
28338 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28339 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28340 cat >conftest.$ac_ext <<_ACEOF
28343 cat confdefs.h >>conftest.$ac_ext
28344 cat >>conftest.$ac_ext <<_ACEOF
28345 /* end confdefs.h. */
28346 $ac_includes_default
28347 #include <$ac_header>
28349 rm -f conftest.$ac_objext
28350 if { (ac_try="$ac_compile"
28351 case "(($ac_try" in
28352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28353 *) ac_try_echo=$ac_try;;
28355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28356 (eval "$ac_compile") 2>conftest.er1
28358 grep -v '^ *+' conftest.er1 >conftest.err
28360 cat conftest.err >&5
28361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28362 (exit $ac_status); } && {
28363 test -z "$ac_c_werror_flag" ||
28364 test ! -s conftest.err
28365 } && test -s conftest.$ac_objext; then
28366 ac_header_compiler=yes
28368 echo "$as_me: failed program was:" >&5
28369 sed 's/^/| /' conftest.$ac_ext >&5
28371 ac_header_compiler=no
28374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28375 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28376 echo "${ECHO_T}$ac_header_compiler" >&6; }
28378 # Is the header present?
28379 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28380 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28381 cat >conftest.$ac_ext <<_ACEOF
28384 cat confdefs.h >>conftest.$ac_ext
28385 cat >>conftest.$ac_ext <<_ACEOF
28386 /* end confdefs.h. */
28387 #include <$ac_header>
28389 if { (ac_try="$ac_cpp conftest.$ac_ext"
28390 case "(($ac_try" in
28391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28392 *) ac_try_echo=$ac_try;;
28394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28395 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28397 grep -v '^ *+' conftest.er1 >conftest.err
28399 cat conftest.err >&5
28400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28401 (exit $ac_status); } >/dev/null && {
28402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28403 test ! -s conftest.err
28405 ac_header_preproc=yes
28407 echo "$as_me: failed program was:" >&5
28408 sed 's/^/| /' conftest.$ac_ext >&5
28410 ac_header_preproc=no
28413 rm -f conftest.err conftest.$ac_ext
28414 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28415 echo "${ECHO_T}$ac_header_preproc" >&6; }
28417 # So? What about this header?
28418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28420 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28421 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28422 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28424 ac_header_preproc=yes
28427 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28428 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28429 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28430 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28431 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28432 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28433 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28434 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28437 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28438 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28442 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28443 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28445 echo $ECHO_N "(cached) $ECHO_C" >&6
28447 eval "$as_ac_Header=\$ac_header_preproc"
28449 ac_res=`eval echo '${'$as_ac_Header'}'`
28450 { echo "$as_me:$LINENO: result: $ac_res" >&5
28451 echo "${ECHO_T}$ac_res" >&6; }
28454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28455 cat >>confdefs.h <<_ACEOF
28456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28463 { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28464 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
28465 if test "${ac_cv_lib_z_deflate+set}" = set; then
28466 echo $ECHO_N "(cached) $ECHO_C" >&6
28468 ac_check_lib_save_LIBS=$LIBS
28470 cat >conftest.$ac_ext <<_ACEOF
28473 cat confdefs.h >>conftest.$ac_ext
28474 cat >>conftest.$ac_ext <<_ACEOF
28475 /* end confdefs.h. */
28477 /* Override any GCC internal prototype to avoid an error.
28478 Use char because int might match the return type of a GCC
28479 builtin and then its argument prototype would still apply. */
28492 rm -f conftest.$ac_objext conftest$ac_exeext
28493 if { (ac_try="$ac_link"
28494 case "(($ac_try" in
28495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28496 *) ac_try_echo=$ac_try;;
28498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28499 (eval "$ac_link") 2>conftest.er1
28501 grep -v '^ *+' conftest.er1 >conftest.err
28503 cat conftest.err >&5
28504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28505 (exit $ac_status); } && {
28506 test -z "$ac_c_werror_flag" ||
28507 test ! -s conftest.err
28508 } && test -s conftest$ac_exeext &&
28509 $as_test_x conftest$ac_exeext; then
28510 ac_cv_lib_z_deflate=yes
28512 echo "$as_me: failed program was:" >&5
28513 sed 's/^/| /' conftest.$ac_ext >&5
28515 ac_cv_lib_z_deflate=no
28518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28519 conftest$ac_exeext conftest.$ac_ext
28520 LIBS=$ac_check_lib_save_LIBS
28522 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28523 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
28524 if test $ac_cv_lib_z_deflate = yes; then
28529 if test x$FDLIBS = x-lz; then
28530 cat >>confdefs.h <<\_ACEOF
28531 #define HAVE_LIBZ 1
28538 # Check for ACL libraries
28541 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28542 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28543 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
28544 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28545 echo $ECHO_N "(cached) $ECHO_C" >&6
28547 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28548 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
28550 # Is the header compilable?
28551 { echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
28552 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6; }
28553 cat >conftest.$ac_ext <<_ACEOF
28556 cat confdefs.h >>conftest.$ac_ext
28557 cat >>conftest.$ac_ext <<_ACEOF
28558 /* end confdefs.h. */
28559 $ac_includes_default
28560 #include <sys/acl.h>
28562 rm -f conftest.$ac_objext
28563 if { (ac_try="$ac_compile"
28564 case "(($ac_try" in
28565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28566 *) ac_try_echo=$ac_try;;
28568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28569 (eval "$ac_compile") 2>conftest.er1
28571 grep -v '^ *+' conftest.er1 >conftest.err
28573 cat conftest.err >&5
28574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28575 (exit $ac_status); } && {
28576 test -z "$ac_c_werror_flag" ||
28577 test ! -s conftest.err
28578 } && test -s conftest.$ac_objext; then
28579 ac_header_compiler=yes
28581 echo "$as_me: failed program was:" >&5
28582 sed 's/^/| /' conftest.$ac_ext >&5
28584 ac_header_compiler=no
28587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28589 echo "${ECHO_T}$ac_header_compiler" >&6; }
28591 # Is the header present?
28592 { echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
28593 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6; }
28594 cat >conftest.$ac_ext <<_ACEOF
28597 cat confdefs.h >>conftest.$ac_ext
28598 cat >>conftest.$ac_ext <<_ACEOF
28599 /* end confdefs.h. */
28600 #include <sys/acl.h>
28602 if { (ac_try="$ac_cpp conftest.$ac_ext"
28603 case "(($ac_try" in
28604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28605 *) ac_try_echo=$ac_try;;
28607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28610 grep -v '^ *+' conftest.er1 >conftest.err
28612 cat conftest.err >&5
28613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614 (exit $ac_status); } >/dev/null && {
28615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28616 test ! -s conftest.err
28618 ac_header_preproc=yes
28620 echo "$as_me: failed program was:" >&5
28621 sed 's/^/| /' conftest.$ac_ext >&5
28623 ac_header_preproc=no
28626 rm -f conftest.err conftest.$ac_ext
28627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28628 echo "${ECHO_T}$ac_header_preproc" >&6; }
28630 # So? What about this header?
28631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28633 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
28634 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
28635 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
28636 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
28637 ac_header_preproc=yes
28640 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
28641 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
28642 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
28643 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
28644 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
28645 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
28646 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
28647 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
28648 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
28649 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
28650 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
28651 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
28655 { echo "$as_me:$LINENO: checking for sys/acl.h" >&5
28656 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6; }
28657 if test "${ac_cv_header_sys_acl_h+set}" = set; then
28658 echo $ECHO_N "(cached) $ECHO_C" >&6
28660 ac_cv_header_sys_acl_h=$ac_header_preproc
28662 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
28663 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6; }
28668 { echo "$as_me:$LINENO: checking for acl_get_file" >&5
28669 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6; }
28670 if test "${ac_cv_func_acl_get_file+set}" = set; then
28671 echo $ECHO_N "(cached) $ECHO_C" >&6
28673 cat >conftest.$ac_ext <<_ACEOF
28676 cat confdefs.h >>conftest.$ac_ext
28677 cat >>conftest.$ac_ext <<_ACEOF
28678 /* end confdefs.h. */
28679 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
28680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28681 #define acl_get_file innocuous_acl_get_file
28683 /* System header to define __stub macros and hopefully few prototypes,
28684 which can conflict with char acl_get_file (); below.
28685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28686 <limits.h> exists even on freestanding compilers. */
28689 # include <limits.h>
28691 # include <assert.h>
28694 #undef acl_get_file
28696 /* Override any GCC internal prototype to avoid an error.
28697 Use char because int might match the return type of a GCC
28698 builtin and then its argument prototype would still apply. */
28702 char acl_get_file ();
28703 /* The GNU C library defines this for functions which it implements
28704 to always fail with ENOSYS. Some functions are actually named
28705 something starting with __ and the normal name is an alias. */
28706 #if defined __stub_acl_get_file || defined __stub___acl_get_file
28713 return acl_get_file ();
28718 rm -f conftest.$ac_objext conftest$ac_exeext
28719 if { (ac_try="$ac_link"
28720 case "(($ac_try" in
28721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28722 *) ac_try_echo=$ac_try;;
28724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28725 (eval "$ac_link") 2>conftest.er1
28727 grep -v '^ *+' conftest.er1 >conftest.err
28729 cat conftest.err >&5
28730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28731 (exit $ac_status); } && {
28732 test -z "$ac_c_werror_flag" ||
28733 test ! -s conftest.err
28734 } && test -s conftest$ac_exeext &&
28735 $as_test_x conftest$ac_exeext; then
28736 ac_cv_func_acl_get_file=yes
28738 echo "$as_me: failed program was:" >&5
28739 sed 's/^/| /' conftest.$ac_ext >&5
28741 ac_cv_func_acl_get_file=no
28744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28745 conftest$ac_exeext conftest.$ac_ext
28747 { echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
28748 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6; }
28749 if test $ac_cv_func_acl_get_file = yes; then
28752 { echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
28753 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6; }
28754 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
28755 echo $ECHO_N "(cached) $ECHO_C" >&6
28757 ac_check_lib_save_LIBS=$LIBS
28759 cat >conftest.$ac_ext <<_ACEOF
28762 cat confdefs.h >>conftest.$ac_ext
28763 cat >>conftest.$ac_ext <<_ACEOF
28764 /* end confdefs.h. */
28766 /* Override any GCC internal prototype to avoid an error.
28767 Use char because int might match the return type of a GCC
28768 builtin and then its argument prototype would still apply. */
28772 char acl_get_file ();
28776 return acl_get_file ();
28781 rm -f conftest.$ac_objext conftest$ac_exeext
28782 if { (ac_try="$ac_link"
28783 case "(($ac_try" in
28784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28785 *) ac_try_echo=$ac_try;;
28787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28788 (eval "$ac_link") 2>conftest.er1
28790 grep -v '^ *+' conftest.er1 >conftest.err
28792 cat conftest.err >&5
28793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28794 (exit $ac_status); } && {
28795 test -z "$ac_c_werror_flag" ||
28796 test ! -s conftest.err
28797 } && test -s conftest$ac_exeext &&
28798 $as_test_x conftest$ac_exeext; then
28799 ac_cv_lib_acl_acl_get_file=yes
28801 echo "$as_me: failed program was:" >&5
28802 sed 's/^/| /' conftest.$ac_ext >&5
28804 ac_cv_lib_acl_acl_get_file=no
28807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28808 conftest$ac_exeext conftest.$ac_ext
28809 LIBS=$ac_check_lib_save_LIBS
28811 { echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
28812 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6; }
28813 if test $ac_cv_lib_acl_acl_get_file = yes; then
28814 have_acl=yes; FDLIBS="-lacl $FDLIBS"
28816 { echo "$as_me:$LINENO: checking for acltotext in -lsec" >&5
28817 echo $ECHO_N "checking for acltotext in -lsec... $ECHO_C" >&6; }
28818 if test "${ac_cv_lib_sec_acltotext+set}" = set; then
28819 echo $ECHO_N "(cached) $ECHO_C" >&6
28821 ac_check_lib_save_LIBS=$LIBS
28823 cat >conftest.$ac_ext <<_ACEOF
28826 cat confdefs.h >>conftest.$ac_ext
28827 cat >>conftest.$ac_ext <<_ACEOF
28828 /* end confdefs.h. */
28830 /* Override any GCC internal prototype to avoid an error.
28831 Use char because int might match the return type of a GCC
28832 builtin and then its argument prototype would still apply. */
28840 return acltotext ();
28845 rm -f conftest.$ac_objext conftest$ac_exeext
28846 if { (ac_try="$ac_link"
28847 case "(($ac_try" in
28848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28849 *) ac_try_echo=$ac_try;;
28851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28852 (eval "$ac_link") 2>conftest.er1
28854 grep -v '^ *+' conftest.er1 >conftest.err
28856 cat conftest.err >&5
28857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28858 (exit $ac_status); } && {
28859 test -z "$ac_c_werror_flag" ||
28860 test ! -s conftest.err
28861 } && test -s conftest$ac_exeext &&
28862 $as_test_x conftest$ac_exeext; then
28863 ac_cv_lib_sec_acltotext=yes
28865 echo "$as_me: failed program was:" >&5
28866 sed 's/^/| /' conftest.$ac_ext >&5
28868 ac_cv_lib_sec_acltotext=no
28871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28872 conftest$ac_exeext conftest.$ac_ext
28873 LIBS=$ac_check_lib_save_LIBS
28875 { echo "$as_me:$LINENO: result: $ac_cv_lib_sec_acltotext" >&5
28876 echo "${ECHO_T}$ac_cv_lib_sec_acltotext" >&6; }
28877 if test $ac_cv_lib_sec_acltotext = yes; then
28878 have_acl=yes; FDLIBS="-lsec $FDLIBS"
28887 if test $have_acl = yes; then
28888 cat >>confdefs.h <<\_ACEOF
28895 { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
28896 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
28897 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
28898 echo $ECHO_N "(cached) $ECHO_C" >&6
28900 ac_check_lib_save_LIBS=$LIBS
28901 LIBS="-lpthread $LIBS"
28902 cat >conftest.$ac_ext <<_ACEOF
28905 cat confdefs.h >>conftest.$ac_ext
28906 cat >>conftest.$ac_ext <<_ACEOF
28907 /* end confdefs.h. */
28909 /* Override any GCC internal prototype to avoid an error.
28910 Use char because int might match the return type of a GCC
28911 builtin and then its argument prototype would still apply. */
28915 char pthread_create ();
28919 return pthread_create ();
28924 rm -f conftest.$ac_objext conftest$ac_exeext
28925 if { (ac_try="$ac_link"
28926 case "(($ac_try" in
28927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28928 *) ac_try_echo=$ac_try;;
28930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28931 (eval "$ac_link") 2>conftest.er1
28933 grep -v '^ *+' conftest.er1 >conftest.err
28935 cat conftest.err >&5
28936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28937 (exit $ac_status); } && {
28938 test -z "$ac_c_werror_flag" ||
28939 test ! -s conftest.err
28940 } && test -s conftest$ac_exeext &&
28941 $as_test_x conftest$ac_exeext; then
28942 ac_cv_lib_pthread_pthread_create=yes
28944 echo "$as_me: failed program was:" >&5
28945 sed 's/^/| /' conftest.$ac_ext >&5
28947 ac_cv_lib_pthread_pthread_create=no
28950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28951 conftest$ac_exeext conftest.$ac_ext
28952 LIBS=$ac_check_lib_save_LIBS
28954 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
28955 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
28956 if test $ac_cv_lib_pthread_pthread_create = yes; then
28957 PTHREAD_LIB="-lpthread"
28959 { echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
28960 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6; }
28961 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
28962 echo $ECHO_N "(cached) $ECHO_C" >&6
28964 ac_check_lib_save_LIBS=$LIBS
28965 LIBS="-lpthreads $LIBS"
28966 cat >conftest.$ac_ext <<_ACEOF
28969 cat confdefs.h >>conftest.$ac_ext
28970 cat >>conftest.$ac_ext <<_ACEOF
28971 /* end confdefs.h. */
28973 /* Override any GCC internal prototype to avoid an error.
28974 Use char because int might match the return type of a GCC
28975 builtin and then its argument prototype would still apply. */
28979 char pthread_create ();
28983 return pthread_create ();
28988 rm -f conftest.$ac_objext conftest$ac_exeext
28989 if { (ac_try="$ac_link"
28990 case "(($ac_try" in
28991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28992 *) ac_try_echo=$ac_try;;
28994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28995 (eval "$ac_link") 2>conftest.er1
28997 grep -v '^ *+' conftest.er1 >conftest.err
28999 cat conftest.err >&5
29000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29001 (exit $ac_status); } && {
29002 test -z "$ac_c_werror_flag" ||
29003 test ! -s conftest.err
29004 } && test -s conftest$ac_exeext &&
29005 $as_test_x conftest$ac_exeext; then
29006 ac_cv_lib_pthreads_pthread_create=yes
29008 echo "$as_me: failed program was:" >&5
29009 sed 's/^/| /' conftest.$ac_ext >&5
29011 ac_cv_lib_pthreads_pthread_create=no
29014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29015 conftest$ac_exeext conftest.$ac_ext
29016 LIBS=$ac_check_lib_save_LIBS
29018 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
29019 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6; }
29020 if test $ac_cv_lib_pthreads_pthread_create = yes; then
29021 PTHREAD_LIB="-lpthreads"
29023 { echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
29024 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6; }
29025 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
29026 echo $ECHO_N "(cached) $ECHO_C" >&6
29028 ac_check_lib_save_LIBS=$LIBS
29030 cat >conftest.$ac_ext <<_ACEOF
29033 cat confdefs.h >>conftest.$ac_ext
29034 cat >>conftest.$ac_ext <<_ACEOF
29035 /* end confdefs.h. */
29037 /* Override any GCC internal prototype to avoid an error.
29038 Use char because int might match the return type of a GCC
29039 builtin and then its argument prototype would still apply. */
29043 char pthread_create ();
29047 return pthread_create ();
29052 rm -f conftest.$ac_objext conftest$ac_exeext
29053 if { (ac_try="$ac_link"
29054 case "(($ac_try" in
29055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29056 *) ac_try_echo=$ac_try;;
29058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29059 (eval "$ac_link") 2>conftest.er1
29061 grep -v '^ *+' conftest.er1 >conftest.err
29063 cat conftest.err >&5
29064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29065 (exit $ac_status); } && {
29066 test -z "$ac_c_werror_flag" ||
29067 test ! -s conftest.err
29068 } && test -s conftest$ac_exeext &&
29069 $as_test_x conftest$ac_exeext; then
29070 ac_cv_lib_c_r_pthread_create=yes
29072 echo "$as_me: failed program was:" >&5
29073 sed 's/^/| /' conftest.$ac_ext >&5
29075 ac_cv_lib_c_r_pthread_create=no
29078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29079 conftest$ac_exeext conftest.$ac_ext
29080 LIBS=$ac_check_lib_save_LIBS
29082 { echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
29083 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6; }
29084 if test $ac_cv_lib_c_r_pthread_create = yes; then
29085 PTHREAD_LIB="-lc_r"
29087 { echo "$as_me:$LINENO: checking for pthread_create" >&5
29088 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6; }
29089 if test "${ac_cv_func_pthread_create+set}" = set; then
29090 echo $ECHO_N "(cached) $ECHO_C" >&6
29092 cat >conftest.$ac_ext <<_ACEOF
29095 cat confdefs.h >>conftest.$ac_ext
29096 cat >>conftest.$ac_ext <<_ACEOF
29097 /* end confdefs.h. */
29098 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
29099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29100 #define pthread_create innocuous_pthread_create
29102 /* System header to define __stub macros and hopefully few prototypes,
29103 which can conflict with char pthread_create (); below.
29104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29105 <limits.h> exists even on freestanding compilers. */
29108 # include <limits.h>
29110 # include <assert.h>
29113 #undef pthread_create
29115 /* Override any GCC internal prototype to avoid an error.
29116 Use char because int might match the return type of a GCC
29117 builtin and then its argument prototype would still apply. */
29121 char pthread_create ();
29122 /* The GNU C library defines this for functions which it implements
29123 to always fail with ENOSYS. Some functions are actually named
29124 something starting with __ and the normal name is an alias. */
29125 #if defined __stub_pthread_create || defined __stub___pthread_create
29132 return pthread_create ();
29137 rm -f conftest.$ac_objext conftest$ac_exeext
29138 if { (ac_try="$ac_link"
29139 case "(($ac_try" in
29140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29141 *) ac_try_echo=$ac_try;;
29143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29144 (eval "$ac_link") 2>conftest.er1
29146 grep -v '^ *+' conftest.er1 >conftest.err
29148 cat conftest.err >&5
29149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29150 (exit $ac_status); } && {
29151 test -z "$ac_c_werror_flag" ||
29152 test ! -s conftest.err
29153 } && test -s conftest$ac_exeext &&
29154 $as_test_x conftest$ac_exeext; then
29155 ac_cv_func_pthread_create=yes
29157 echo "$as_me: failed program was:" >&5
29158 sed 's/^/| /' conftest.$ac_ext >&5
29160 ac_cv_func_pthread_create=no
29163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29164 conftest$ac_exeext conftest.$ac_ext
29166 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
29167 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6; }
29180 cat >>confdefs.h <<\_ACEOF
29186 CFLAGS=${CFLAGS--O}
29188 if test x$have_gcc = xyes ; then
29189 CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29190 CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29192 LDFLAGS=${LDFLAGS--O}
29193 DB_LIBS="${SQL_LFLAGS}"
29194 CPPFLAGS="$CPPFLAGS"
29222 # Finally we set appropriate distribution specific
29223 # variables and defaults
29225 # PFILES are platform specific files
29226 PFILES="platforms/Makefile"
29230 hostname=`uname -n | cut -d '.' -f 1`
29231 if test x${hostname} = x ; then
29232 hostname="localhost"
29234 case "$DISTNAME" in
29237 PSCMD="ps -e -o pid,comm"
29238 PFILES="${PFILES} \
29239 platforms/aix/Makefile"
29240 TAPEDRIVE="/dev/rmt0.1"
29244 PTHREAD_LIB="-lpthread -lexc"
29245 if test "${CC}" = "gcc" ; then
29252 TAPEDRIVE="/dev/nrmt0"
29255 DISTVER=`uname -a |awk '{print $3}'`
29256 TAPEDRIVE="/dev/nrmt0"
29257 PTHREAD_LIB="-pthread"
29258 CFLAGS="${CFLAGS} -pthread"
29259 PSCMD="ps -ax -o pid,command"
29262 PFILES="${PFILES} \
29263 platforms/bsdi/Makefile \
29264 platforms/bsdi/bacula-fd \
29265 platforms/bsdi/bacula-sd \
29266 platforms/bsdi/bacula-dir"
29267 largefile_support="yes"
29270 DISTVER=`uname -a |awk '{print $3}'`
29271 TAPEDRIVE="/dev/nrst0"
29273 WCFLAGS="-mwindows"
29274 WLDFLAGS="-mwindows"
29278 TAPEDRIVE="/dev/nst0"
29279 PSCMD="ps -e -o pid,command"
29281 PFILES="${PFILES} \
29282 platforms/darwin/Makefile"
29285 # Make sure hostname is resolved
29286 ping -c 1 $hostname 2>&1 1>/dev/null
29287 if test ! $? = 0; then
29288 hostname="localhost"
29290 if `grep -q ubuntu /etc/apt/sources.list`; then
29293 DISTVER=`cat /etc/debian_version`
29294 if test -f /etc/lsb-release ; then
29296 if test "x$DISTRIB_ID" != "x" ; then
29297 DISTNAME=$DISTRIB_ID
29299 if test "x$DISTRIB_RELEASE" != "x" ; then
29300 DISTVER=$DISTRIB_RELEASE
29303 if test "$DISTNAME" = "Ubuntu" ; then
29306 TAPEDRIVE="/dev/nst0"
29307 PSCMD="ps -e -o pid,command"
29308 if test "$DISTNAME" = "ubuntu" ; then
29309 PFILES="${PFILES} \
29310 platforms/ubuntu/Makefile \
29311 platforms/ubuntu/bacula-fd \
29312 platforms/ubuntu/bacula-sd \
29313 platforms/ubuntu/bacula-dir"
29315 PFILES="${PFILES} \
29316 platforms/debian/Makefile \
29317 platforms/debian/bacula-fd \
29318 platforms/debian/bacula-sd \
29319 platforms/debian/bacula-dir"
29323 # Make sure hostname is resolved
29324 ping -c 1 $hostname 2>&1 1>/dev/null
29325 if test ! $? = 0; then
29326 hostname="localhost"
29328 if `grep -q ubuntu /etc/apt/sources.list`; then
29331 DISTVER=`uname -a |awk '{print $3}'`
29332 VER=`echo $DISTVER | cut -c 1`
29333 if test x$VER = x4 ; then
29334 PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29335 CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29339 TAPEDRIVE="/dev/nrsa0"
29340 PSCMD="ps -ax -o pid,command"
29341 PFILES="${PFILES} \
29342 platforms/freebsd/Makefile \
29343 platforms/freebsd/bacula-fd \
29344 platforms/freebsd/bacula-sd \
29345 platforms/freebsd/bacula-dir"
29346 largefile_support="yes"
29349 PSCMD="UNIX95=1; ps -e -o pid,comm"
29350 CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29352 TAPEDRIVE="/dev/rmt/0hnb"
29353 PTHREAD_LIB="-lpthread"
29354 cat >>confdefs.h <<\_ACEOF
29355 #define _INCLUDE_LONGLONG 1
29361 TAPEDRIVE="/dev/rmt/0cbn"
29362 PSCMD="ps -e -o pid,comm"
29363 PFILES="${PFILES} \
29364 platforms/irix/Makefile \
29365 platforms/irix/bacula-fd \
29366 platforms/irix/bacula-sd \
29367 platforms/irix/bacula-dir"
29370 DISTVER=`uname -a |awk '{print $3}'`
29373 TAPEDRIVE="/dev/nrst0"
29374 PSCMD="ps -ax -o pid,command"
29375 PTHREAD_LIB="-pthread"
29376 CFLAGS="${CFLAGS} -pthread"
29379 DISTVER=`uname -a |awk '{print $3}'`
29382 TAPEDRIVE="/dev/nrst0"
29383 PSCMD="ps -ax -o pid,command"
29384 PTHREAD_LIB="-pthread"
29385 CFLAGS="${CFLAGS} -pthread"
29386 PFILES="${PFILES} \
29387 platforms/openbsd/Makefile \
29388 platforms/openbsd/bacula-fd \
29389 platforms/openbsd/bacula-sd \
29390 platforms/openbsd/bacula-dir"
29393 # Make sure hostname is resolved
29394 ping -c 1 $hostname 2>&1 1>/dev/null
29395 if test ! $? = 0; then
29396 hostname="localhost"
29398 if `grep -q ubuntu /etc/apt/sources.list`; then
29401 if test -f /etc/whitebox-release ; then
29402 f=/etc/whitebox-release
29404 f=/etc/redhat-release
29406 if test `cat $f | grep release |\
29407 cut -f 3 -d ' '`x = "Enterprise"x ; then
29408 DISTVER="Enterprise "`cat $f | grep release |\
29411 DISTVER=`cat /etc/redhat-release | grep release |\
29414 TAPEDRIVE="/dev/nst0"
29415 PSCMD="ps -e -o pid,command"
29416 PFILES="${PFILES} \
29417 platforms/redhat/Makefile \
29418 platforms/redhat/bacula-fd \
29419 platforms/redhat/bacula-sd \
29420 platforms/redhat/bacula-dir \
29421 platforms/redhat/bacula.spec \
29425 # Make sure hostname is resolved
29426 ping -c 1 $hostname 2>&1 1>/dev/null
29427 if test ! $? = 0; then
29428 hostname="localhost"
29430 if `grep -q ubuntu /etc/apt/sources.list`; then
29433 DISTVER=`cat /etc/mandrake-release | grep release |\
29435 TAPEDRIVE="/dev/nst0"
29436 PSCMD="ps -e -o pid,command"
29437 PFILES="${PFILES} \
29438 platforms/mandrake/Makefile \
29439 platforms/mandrake/bacula-fd \
29440 platforms/mandrake/bacula-sd \
29441 platforms/mandrake/bacula-dir \
29442 platforms/mandrake/bacula.spec \
29446 # Make sure hostname is resolved
29447 ping -c 1 $hostname 2>&1 1>/dev/null
29448 if test ! $? = 0; then
29449 hostname="localhost"
29451 if `grep -q ubuntu /etc/apt/sources.list`; then
29454 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29455 TAPEDRIVE="/dev/nst0"
29456 PSCMD="ps -e -o pid,command"
29457 PFILES="${PFILES} \
29458 platforms/gentoo/Makefile \
29459 platforms/gentoo/bacula-init \
29460 platforms/gentoo/bacula-fd \
29461 platforms/gentoo/bacula-sd \
29462 platforms/gentoo/bacula-dir"
29465 # Make sure hostname is resolved
29466 ping -c 1 $hostname 2>&1 1>/dev/null
29467 if test ! $? = 0; then
29468 hostname="localhost"
29470 if `grep -q ubuntu /etc/apt/sources.list`; then
29473 DISTVER=`cat /etc/slackware-version`
29474 TAPEDRIVE="/dev/nst0"
29475 PSCMD="ps -e -o pid,command"
29476 PFILES="${PFILES} \
29477 platforms/slackware/Makefile \
29478 platforms/slackware/rc.bacula-fd \
29479 platforms/slackware/rc.bacula-sd \
29480 platforms/slackware/rc.bacula-dir\
29481 platforms/slackware/functions.bacula"
29485 TAPEDRIVE="/dev/rmt/0cbn"
29486 PSCMD="ps -e -o pid,comm"
29487 PFILES="${PFILES} \
29488 platforms/solaris/Makefile \
29489 platforms/solaris/bacula-fd \
29490 platforms/solaris/bacula-sd \
29491 platforms/solaris/bacula-dir"
29492 if test x$DISTVER = x5.6 ; then
29493 cat >>confdefs.h <<\_ACEOF
29494 #define HAVE_OLD_SOCKOPT 1
29498 LIBS="$LIBS -lresolv"
29501 # Make sure hostname is resolved
29502 ping -c 1 $hostname 2>&1 1>/dev/null
29503 if test ! $? = 0; then
29504 hostname="localhost"
29506 if `grep -q ubuntu /etc/apt/sources.list`; then
29509 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29511 TAPEDRIVE="/dev/nst0"
29512 PSCMD="ps -e -o pid,command"
29513 PFILES="${PFILES} \
29514 platforms/suse/Makefile \
29515 platforms/suse/bacula-fd \
29516 platforms/suse/bacula-sd \
29517 platforms/suse/bacula-dir \
29518 platforms/suse/bacula \
29519 platforms/suse/bacula.spec"
29522 # Make sure hostname is resolved
29523 ping -c 1 $hostname 2>&1 1>/dev/null
29524 if test ! $? = 0; then
29525 hostname="localhost"
29527 if `grep -q ubuntu /etc/apt/sources.list`; then
29532 TAPEDRIVE="/dev/nst0"
29533 PSCMD="ps -e -o pid,command"
29534 PFILES="${PFILES} \
29535 platforms/suse/Makefile \
29536 platforms/suse/bacula-fd \
29537 platforms/suse/bacula-sd \
29538 platforms/suse/bacula-dir"
29542 TAPEDRIVE="/dev/nst0"
29545 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29551 LIBS="$PTHREAD_LIB $LIBS"
29553 cat >>confdefs.h <<_ACEOF
29557 cat >>confdefs.h <<_ACEOF
29568 MCOMMON=./autoconf/Make.common
29571 if test "x${subsysdir}" = "x${sbindir}" ; then
29574 echo "You have set both --sbindir and --with-subsys-dir"
29575 echo " equal to: ${subsysdir} "
29576 echo "This is not permitted. Please reconfigure."
29578 echo "Aborting configuration ..."
29584 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 src/plugins/fd/Makefile po/Makefile.in updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_sqlite_tables_10_to_11 $PFILES"
29586 ac_config_commands="$ac_config_commands default"
29588 cat >confcache <<\_ACEOF
29589 # This file is a shell script that caches the results of configure
29590 # tests run on this system so they can be shared between configure
29591 # scripts and configure runs, see configure's option --config-cache.
29592 # It is not useful on other systems. If it contains results you don't
29593 # want to keep, you may remove or edit it.
29595 # config.status only pays attention to the cache file if you give it
29596 # the --recheck option to rerun configure.
29598 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29599 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29600 # following values.
29604 # The following way of writing the cache mishandles newlines in values,
29605 # but we know of no workaround that is simple, portable, and efficient.
29606 # So, we kill variables containing newlines.
29607 # Ultrix sh set writes to stderr and can't be redirected directly,
29608 # and sets the high bit in the cache file unless we assign to the vars.
29610 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29611 eval ac_val=\$$ac_var
29615 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
29616 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
29619 _ | IFS | as_nl) ;; #(
29620 *) $as_unset $ac_var ;;
29626 case $as_nl`(ac_space=' '; set) 2>&1` in #(
29627 *${as_nl}ac_space=\ *)
29628 # `set' does not quote correctly, so add quotes (double-quote
29629 # substitution turns \\\\ into \\, and sed turns \\ into \).
29632 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29635 # `set' quotes correctly as required by POSIX, so do not add quotes.
29636 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29645 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29647 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29649 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29650 if test -w "$cache_file"; then
29651 test "x$cache_file" != "x/dev/null" &&
29652 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
29653 echo "$as_me: updating cache $cache_file" >&6;}
29654 cat confcache >$cache_file
29656 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
29657 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29662 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29663 # Let make expand exec_prefix.
29664 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29666 DEFS=-DHAVE_CONFIG_H
29670 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29671 # 1. Remove the extension, and $U if already installed.
29672 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29673 ac_i=`echo "$ac_i" | sed "$ac_script"`
29674 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
29675 # will be set to the directory where LIBOBJS objects are built.
29676 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29677 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
29679 LIBOBJS=$ac_libobjs
29681 LTLIBOBJS=$ac_ltlibobjs
29684 if test -z "${HAVE_DARWIN_OS_TRUE}" && test -z "${HAVE_DARWIN_OS_FALSE}"; then
29685 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DARWIN_OS\" was never defined.
29686 Usually this means the macro was only invoked conditionally." >&5
29687 echo "$as_me: error: conditional \"HAVE_DARWIN_OS\" was never defined.
29688 Usually this means the macro was only invoked conditionally." >&2;}
29689 { (exit 1); exit 1; }; }
29691 if test -z "${HAVE_DARWIN_OS_TRUE}" && test -z "${HAVE_DARWIN_OS_FALSE}"; then
29692 { { echo "$as_me:$LINENO: error: conditional \"HAVE_DARWIN_OS\" was never defined.
29693 Usually this means the macro was only invoked conditionally." >&5
29694 echo "$as_me: error: conditional \"HAVE_DARWIN_OS\" was never defined.
29695 Usually this means the macro was only invoked conditionally." >&2;}
29696 { (exit 1); exit 1; }; }
29699 : ${CONFIG_STATUS=./config.status}
29700 ac_clean_files_save=$ac_clean_files
29701 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29702 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29703 echo "$as_me: creating $CONFIG_STATUS" >&6;}
29704 cat >$CONFIG_STATUS <<_ACEOF
29706 # Generated by $as_me.
29707 # Run this file to recreate the current configuration.
29708 # Compiler output produced by configure, useful for debugging
29709 # configure, is in config.log if it exists.
29712 ac_cs_recheck=false
29714 SHELL=\${CONFIG_SHELL-$SHELL}
29717 cat >>$CONFIG_STATUS <<\_ACEOF
29718 ## --------------------- ##
29719 ## M4sh Initialization. ##
29720 ## --------------------- ##
29722 # Be more Bourne compatible
29723 DUALCASE=1; export DUALCASE # for MKS sh
29724 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29727 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29728 # is contrary to our usage. Disable this feature.
29729 alias -g '${1+"$@"}'='"$@"'
29730 setopt NO_GLOB_SUBST
29732 case `(set -o) 2>/dev/null` in
29733 *posix*) set -o posix ;;
29742 # Avoid depending upon Character Ranges.
29743 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29744 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29745 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29746 as_cr_digits='0123456789'
29747 as_cr_alnum=$as_cr_Letters$as_cr_digits
29749 # The user is always right.
29750 if test "${PATH_SEPARATOR+set}" != set; then
29751 echo "#! /bin/sh" >conf$$.sh
29752 echo "exit 0" >>conf$$.sh
29754 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
29762 # Support unset when possible.
29763 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29771 # We need space, tab and new line, in precisely that order. Quoting is
29772 # there to prevent editors from complaining about space-tab.
29773 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29774 # splitting by setting IFS to empty value.)
29779 # Find who we are. Look in the path if we contain no directory separator.
29781 *[\\/]* ) as_myself=$0 ;;
29782 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29783 for as_dir in $PATH
29786 test -z "$as_dir" && as_dir=.
29787 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29793 # We did not find ourselves, most probably we were run as `sh COMMAND'
29794 # in which case we are not to be found in the path.
29795 if test "x$as_myself" = x; then
29798 if test ! -f "$as_myself"; then
29799 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29800 { (exit 1); exit 1; }
29803 # Work around bugs in pre-3.0 UWIN ksh.
29804 for as_var in ENV MAIL MAILPATH
29805 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29813 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29814 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29815 LC_TELEPHONE LC_TIME
29817 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
29818 eval $as_var=C; export $as_var
29820 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
29824 # Required to use basename.
29825 if expr a : '\(a\)' >/dev/null 2>&1 &&
29826 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29832 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
29833 as_basename=basename
29839 # Name of the executable.
29840 as_me=`$as_basename -- "$0" ||
29841 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29842 X"$0" : 'X\(//\)$' \| \
29843 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
29845 sed '/^.*\/\([^/][^/]*\)\/*$/{
29864 as_lineno_1=$LINENO
29865 as_lineno_2=$LINENO
29866 test "x$as_lineno_1" != "x$as_lineno_2" &&
29867 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
29869 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29870 # uniformly replaced by the line number. The first 'sed' inserts a
29871 # line-number line after each line using $LINENO; the second 'sed'
29872 # does the real work. The second script uses 'N' to pair each
29873 # line-number line with the line containing $LINENO, and appends
29874 # trailing '-' during substitution so that $LINENO is not a special
29875 # case at line end.
29876 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29877 # scripts with optimization help from Paolo Bonzini. Blame Lee
29878 # E. McMahon (1931-1989) for sed's syntax. :-)
29890 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
29893 ' >$as_me.lineno &&
29894 chmod +x "$as_me.lineno" ||
29895 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
29896 { (exit 1); exit 1; }; }
29898 # Don't try to exec as it changes $[0], causing all sort of problems
29899 # (the dirname of $[0] is not the place where we might find the
29900 # original and so on. Autoconf is especially sensitive to this).
29901 . "./$as_me.lineno"
29902 # Exit status is that of the last command.
29907 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
29913 ECHO_C= ECHO_N= ECHO_T=
29914 case `echo -n x` in
29916 case `echo 'x\c'` in
29917 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
29924 if expr a : '\(a\)' >/dev/null 2>&1 &&
29925 test "X`expr 00001 : '.*\(...\)'`" = X001; then
29931 rm -f conf$$ conf$$.exe conf$$.file
29932 if test -d conf$$.dir; then
29933 rm -f conf$$.dir/conf$$.file
29939 if ln -s conf$$.file conf$$ 2>/dev/null; then
29941 # ... but there are two gotchas:
29942 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
29943 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
29944 # In both cases, we have to default to `cp -p'.
29945 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
29947 elif ln conf$$.file conf$$ 2>/dev/null; then
29952 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
29953 rmdir conf$$.dir 2>/dev/null
29955 if mkdir -p . 2>/dev/null; then
29958 test -d ./-p && rmdir ./-p
29962 if test -x / >/dev/null 2>&1; then
29963 as_test_x='test -x'
29965 if ls -dL / >/dev/null 2>&1; then
29972 if test -d "$1"; then
29978 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
29979 ???[sx]*):;;*)false;;esac;fi
29983 as_executable_p=$as_test_x
29985 # Sed expression to map a string onto a valid CPP name.
29986 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
29988 # Sed expression to map a string onto a valid variable name.
29989 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
29994 # Save the log message, to keep $[0] and so on meaningful, and to
29995 # report actual input values of CONFIG_FILES etc. instead of their
29996 # values after options handling.
29998 This file was extended by $as_me, which was
29999 generated by GNU Autoconf 2.61. Invocation command line was
30001 CONFIG_FILES = $CONFIG_FILES
30002 CONFIG_HEADERS = $CONFIG_HEADERS
30003 CONFIG_LINKS = $CONFIG_LINKS
30004 CONFIG_COMMANDS = $CONFIG_COMMANDS
30007 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30012 cat >>$CONFIG_STATUS <<_ACEOF
30013 # Files that config.status was made for.
30014 config_files="$ac_config_files"
30015 config_headers="$ac_config_headers"
30016 config_commands="$ac_config_commands"
30020 cat >>$CONFIG_STATUS <<\_ACEOF
30022 \`$as_me' instantiates files from templates according to the
30023 current configuration.
30025 Usage: $0 [OPTIONS] [FILE]...
30027 -h, --help print this help, then exit
30028 -V, --version print version number and configuration settings, then exit
30029 -q, --quiet do not print progress messages
30030 -d, --debug don't remove temporary files
30031 --recheck update $as_me by reconfiguring in the same conditions
30032 --file=FILE[:TEMPLATE]
30033 instantiate the configuration file FILE
30034 --header=FILE[:TEMPLATE]
30035 instantiate the configuration header FILE
30037 Configuration files:
30040 Configuration headers:
30043 Configuration commands:
30046 Report bugs to <bug-autoconf@gnu.org>."
30049 cat >>$CONFIG_STATUS <<_ACEOF
30052 configured by $0, generated by GNU Autoconf 2.61,
30053 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
30055 Copyright (C) 2006 Free Software Foundation, Inc.
30056 This config.status script is free software; the Free Software Foundation
30057 gives unlimited permission to copy, distribute and modify it."
30064 cat >>$CONFIG_STATUS <<\_ACEOF
30065 # If no file are specified by the user, then we need to provide default
30066 # value. By we need to know if files were specified by the user.
30072 ac_option=`expr "X$1" : 'X\([^=]*\)='`
30073 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30084 # Handling of the options.
30085 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30087 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30088 echo "$ac_cs_version"; exit ;;
30089 --debug | --debu | --deb | --de | --d | -d )
30091 --file | --fil | --fi | --f )
30093 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30094 ac_need_defaults=false;;
30095 --header | --heade | --head | --hea )
30097 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30098 ac_need_defaults=false;;
30100 # Conflict between --help and --header
30101 { echo "$as_me: error: ambiguous option: $1
30102 Try \`$0 --help' for more information." >&2
30103 { (exit 1); exit 1; }; };;
30104 --help | --hel | -h )
30105 echo "$ac_cs_usage"; exit ;;
30106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30107 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30110 # This is an error.
30111 -*) { echo "$as_me: error: unrecognized option: $1
30112 Try \`$0 --help' for more information." >&2
30113 { (exit 1); exit 1; }; } ;;
30115 *) ac_config_targets="$ac_config_targets $1"
30116 ac_need_defaults=false ;;
30122 ac_configure_extra_args=
30124 if $ac_cs_silent; then
30126 ac_configure_extra_args="$ac_configure_extra_args --silent"
30130 cat >>$CONFIG_STATUS <<_ACEOF
30131 if \$ac_cs_recheck; then
30132 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30133 CONFIG_SHELL=$SHELL
30134 export CONFIG_SHELL
30135 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30139 cat >>$CONFIG_STATUS <<\_ACEOF
30143 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30144 ## Running $as_me. ##
30150 cat >>$CONFIG_STATUS <<_ACEOF
30154 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30155 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30157 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30158 # Capture the value of LINGUAS because we need it to compute CATALOGS.
30159 LINGUAS="${LINGUAS-%UNSET%}"
30164 cat >>$CONFIG_STATUS <<\_ACEOF
30166 # Handling of arguments.
30167 for ac_config_target in $ac_config_targets
30169 case $ac_config_target in
30170 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30171 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30172 "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30173 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30174 "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30175 "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30176 "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30177 "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30178 "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30179 "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30180 "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30181 "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30182 "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30183 "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30184 "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30185 "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30186 "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30187 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30188 "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30189 "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30190 "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30191 "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30192 "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30193 "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30194 "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30195 "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30196 "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30197 "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30198 "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30199 "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30200 "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30201 "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30202 "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30203 "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30204 "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30205 "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30206 "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30207 "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30208 "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30209 "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30210 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30211 "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30212 "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30213 "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30214 "src/gnome2-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
30215 "src/gnome2-console/bgnome-console.conf") CONFIG_FILES="$CONFIG_FILES src/gnome2-console/bgnome-console.conf" ;;
30216 "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30217 "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30218 "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30219 "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30220 "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30221 "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30222 "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30223 "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30224 "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30225 "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30226 "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30227 "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30228 "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30229 "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30230 "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30231 "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30232 "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30233 "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30234 "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30235 "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30236 "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30237 "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30238 "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30239 "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30240 "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30241 "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30242 "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30243 "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30244 "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30245 "src/cats/create_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
30246 "src/cats/update_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
30247 "src/cats/make_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
30248 "src/cats/grant_sqlite_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
30249 "src/cats/drop_sqlite_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
30250 "src/cats/drop_sqlite_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
30251 "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30252 "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30253 "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30254 "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30255 "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30256 "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30257 "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30258 "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30259 "src/cats/create_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
30260 "src/cats/update_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
30261 "src/cats/make_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
30262 "src/cats/grant_bdb_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
30263 "src/cats/drop_bdb_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
30264 "src/cats/drop_bdb_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
30265 "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30266 "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30267 "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30268 "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30269 "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30270 "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30271 "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30272 "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30273 "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30274 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30275 "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30276 "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30277 "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30278 "updatedb/update_sqlite_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite_tables_10_to_11" ;;
30279 "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30280 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30282 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30283 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30284 { (exit 1); exit 1; }; };;
30289 # If the user did not use the arguments to specify the items to instantiate,
30290 # then the envvar interface is used. Set only those that are not.
30291 # We use the long form for the default assignment because of an extremely
30292 # bizarre bug on SunOS 4.1.3.
30293 if $ac_need_defaults; then
30294 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30295 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30296 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30299 # Have a temporary directory for convenience. Make it in the build tree
30300 # simply because there is no reason against having it here, and in addition,
30301 # creating and moving files from /tmp can sometimes cause problems.
30302 # Hook for its removal unless debugging.
30303 # Note that there is a small window in which the directory will not be cleaned:
30304 # after its creation but before its name has been assigned to `$tmp'.
30308 trap 'exit_status=$?
30309 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
30311 trap '{ (exit 1); exit 1; }' 1 2 13 15
30313 # Create a (secure) tmp directory for tmp files.
30316 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30317 test -n "$tmp" && test -d "$tmp"
30320 tmp=./conf$$-$RANDOM
30321 (umask 077 && mkdir "$tmp")
30324 echo "$me: cannot create a temporary directory in ." >&2
30325 { (exit 1); exit 1; }
30329 # Set up the sed scripts for CONFIG_FILES section.
30332 # No need to generate the scripts if there are no CONFIG_FILES.
30333 # This happens for instance when ./config.status config.h
30334 if test -n "$CONFIG_FILES"; then
30338 # Create sed commands to just substitute file output variables.
30340 # Remaining file output variables are in a fragment that also has non-file
30346 for ac_last_try in false false false false false :; do
30347 cat >conf$$subs.sed <<_ACEOF
30348 SHELL!$SHELL$ac_delim
30349 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
30350 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
30351 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
30352 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
30353 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
30354 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
30355 exec_prefix!$exec_prefix$ac_delim
30356 prefix!$prefix$ac_delim
30357 program_transform_name!$program_transform_name$ac_delim
30358 bindir!$bindir$ac_delim
30359 sbindir!$sbindir$ac_delim
30360 libexecdir!$libexecdir$ac_delim
30361 datarootdir!$datarootdir$ac_delim
30362 datadir!$datadir$ac_delim
30363 sysconfdir!$sysconfdir$ac_delim
30364 sharedstatedir!$sharedstatedir$ac_delim
30365 localstatedir!$localstatedir$ac_delim
30366 includedir!$includedir$ac_delim
30367 oldincludedir!$oldincludedir$ac_delim
30368 docdir!$docdir$ac_delim
30369 infodir!$infodir$ac_delim
30370 htmldir!$htmldir$ac_delim
30371 dvidir!$dvidir$ac_delim
30372 pdfdir!$pdfdir$ac_delim
30373 psdir!$psdir$ac_delim
30374 libdir!$libdir$ac_delim
30375 localedir!$localedir$ac_delim
30376 mandir!$mandir$ac_delim
30377 DEFS!$DEFS$ac_delim
30378 ECHO_C!$ECHO_C$ac_delim
30379 ECHO_N!$ECHO_N$ac_delim
30380 ECHO_T!$ECHO_T$ac_delim
30381 LIBS!$LIBS$ac_delim
30382 build_alias!$build_alias$ac_delim
30383 host_alias!$host_alias$ac_delim
30384 target_alias!$target_alias$ac_delim
30385 BUILD_DIR!$BUILD_DIR$ac_delim
30386 TOP_DIR!$TOP_DIR$ac_delim
30387 TRUEPRG!$TRUEPRG$ac_delim
30388 FALSEPRG!$FALSEPRG$ac_delim
30389 VERSION!$VERSION$ac_delim
30390 DATE!$DATE$ac_delim
30391 LSMDATE!$LSMDATE$ac_delim
30393 CFLAGS!$CFLAGS$ac_delim
30394 LDFLAGS!$LDFLAGS$ac_delim
30395 CPPFLAGS!$CPPFLAGS$ac_delim
30396 ac_ct_CC!$ac_ct_CC$ac_delim
30397 EXEEXT!$EXEEXT$ac_delim
30398 OBJEXT!$OBJEXT$ac_delim
30400 CXXFLAGS!$CXXFLAGS$ac_delim
30401 ac_ct_CXX!$ac_ct_CXX$ac_delim
30403 GREP!$GREP$ac_delim
30404 EGREP!$EGREP$ac_delim
30405 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
30406 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
30407 INSTALL_DATA!$INSTALL_DATA$ac_delim
30408 RANLIB!$RANLIB$ac_delim
30413 ECHO!$ECHO$ac_delim
30417 OPENSSL!$OPENSSL$ac_delim
30420 MKISOFS!$MKISOFS$ac_delim
30421 PYTHON!$PYTHON$ac_delim
30422 GROWISOFS!$GROWISOFS$ac_delim
30423 DVDRWMEDIAINFO!$DVDRWMEDIAINFO$ac_delim
30424 DVDRWFORMAT!$DVDRWFORMAT$ac_delim
30425 PKGCONFIG!$PKGCONFIG$ac_delim
30426 QMAKE!$QMAKE$ac_delim
30427 QMAKEQT4!$QMAKEQT4$ac_delim
30428 WXCONFIG!$WXCONFIG$ac_delim
30429 WXFLAGS!$WXFLAGS$ac_delim
30430 CDRECORD!$CDRECORD$ac_delim
30431 PIDOF!$PIDOF$ac_delim
30433 ARFLAGS!$ARFLAGS$ac_delim
30434 MAKE_SHELL!$MAKE_SHELL$ac_delim
30435 LOCAL_LIBS!$LOCAL_LIBS$ac_delim
30436 LOCAL_CFLAGS!$LOCAL_CFLAGS$ac_delim
30437 LOCAL_LDFLAGS!$LOCAL_LDFLAGS$ac_delim
30438 LOCAL_DEFS!$LOCAL_DEFS$ac_delim
30439 build!$build$ac_delim
30440 build_cpu!$build_cpu$ac_delim
30441 build_vendor!$build_vendor$ac_delim
30444 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
30446 elif $ac_last_try; then
30447 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30448 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30449 { (exit 1); exit 1; }; }
30451 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30455 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30456 if test -n "$ac_eof"; then
30457 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30458 ac_eof=`expr $ac_eof + 1`
30461 cat >>$CONFIG_STATUS <<_ACEOF
30462 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
30463 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30464 /^[ ]*@MCOMMON@[ ]*$/{
30470 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30471 s/^/s,@/; s/!/@,|#_!!_#|/
30474 s/'"$ac_delim"'$/,g/; t
30476 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30477 ' >>$CONFIG_STATUS <conf$$subs.sed
30478 rm -f conf$$subs.sed
30479 cat >>$CONFIG_STATUS <<_ACEOF
30485 for ac_last_try in false false false false false :; do
30486 cat >conf$$subs.sed <<_ACEOF
30487 build_os!$build_os$ac_delim
30488 host!$host$ac_delim
30489 host_cpu!$host_cpu$ac_delim
30490 host_vendor!$host_vendor$ac_delim
30491 host_os!$host_os$ac_delim
30492 HAVE_SUN_OS_TRUE!$HAVE_SUN_OS_TRUE$ac_delim
30493 HAVE_SUN_OS_FALSE!$HAVE_SUN_OS_FALSE$ac_delim
30494 HAVE_OSF1_OS_TRUE!$HAVE_OSF1_OS_TRUE$ac_delim
30495 HAVE_OSF1_OS_FALSE!$HAVE_OSF1_OS_FALSE$ac_delim
30496 HAVE_AIX_OS_TRUE!$HAVE_AIX_OS_TRUE$ac_delim
30497 HAVE_AIX_OS_FALSE!$HAVE_AIX_OS_FALSE$ac_delim
30498 HAVE_HPUX_OS_TRUE!$HAVE_HPUX_OS_TRUE$ac_delim
30499 HAVE_HPUX_OS_FALSE!$HAVE_HPUX_OS_FALSE$ac_delim
30500 HAVE_LINUX_OS_TRUE!$HAVE_LINUX_OS_TRUE$ac_delim
30501 HAVE_LINUX_OS_FALSE!$HAVE_LINUX_OS_FALSE$ac_delim
30502 HAVE_FREEBSD_OS_TRUE!$HAVE_FREEBSD_OS_TRUE$ac_delim
30503 HAVE_FREEBSD_OS_FALSE!$HAVE_FREEBSD_OS_FALSE$ac_delim
30504 HAVE_NETBSD_OS_TRUE!$HAVE_NETBSD_OS_TRUE$ac_delim
30505 HAVE_NETBSD_OS_FALSE!$HAVE_NETBSD_OS_FALSE$ac_delim
30506 HAVE_OPENBSD_OS_TRUE!$HAVE_OPENBSD_OS_TRUE$ac_delim
30507 HAVE_OPENBSD_OS_FALSE!$HAVE_OPENBSD_OS_FALSE$ac_delim
30508 HAVE_BSDI_OS_TRUE!$HAVE_BSDI_OS_TRUE$ac_delim
30509 HAVE_BSDI_OS_FALSE!$HAVE_BSDI_OS_FALSE$ac_delim
30510 HAVE_SGI_OS_TRUE!$HAVE_SGI_OS_TRUE$ac_delim
30511 HAVE_SGI_OS_FALSE!$HAVE_SGI_OS_FALSE$ac_delim
30512 HAVE_IRIX_OS_TRUE!$HAVE_IRIX_OS_TRUE$ac_delim
30513 HAVE_IRIX_OS_FALSE!$HAVE_IRIX_OS_FALSE$ac_delim
30514 HAVE_DARWIN_OS_TRUE!$HAVE_DARWIN_OS_TRUE$ac_delim
30515 HAVE_DARWIN_OS_FALSE!$HAVE_DARWIN_OS_FALSE$ac_delim
30516 SET_MAKE!$SET_MAKE$ac_delim
30517 MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
30518 USE_NLS!$USE_NLS$ac_delim
30519 MSGFMT!$MSGFMT$ac_delim
30520 GMSGFMT!$GMSGFMT$ac_delim
30521 XGETTEXT!$XGETTEXT$ac_delim
30522 MSGMERGE!$MSGMERGE$ac_delim
30523 INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim
30524 LIBICONV!$LIBICONV$ac_delim
30525 LTLIBICONV!$LTLIBICONV$ac_delim
30526 INTLLIBS!$INTLLIBS$ac_delim
30527 LIBINTL!$LIBINTL$ac_delim
30528 LTLIBINTL!$LTLIBINTL$ac_delim
30529 POSUB!$POSUB$ac_delim
30530 GLIBC2!$GLIBC2$ac_delim
30531 ALLOCA!$ALLOCA$ac_delim
30532 GLIBC21!$GLIBC21$ac_delim
30533 HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
30534 HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
30535 HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
30536 HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
30537 INTLBISON!$INTLBISON$ac_delim
30538 BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
30539 USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
30540 CATOBJEXT!$CATOBJEXT$ac_delim
30541 DATADIRNAME!$DATADIRNAME$ac_delim
30542 INSTOBJEXT!$INSTOBJEXT$ac_delim
30543 GENCAT!$GENCAT$ac_delim
30544 INTLOBJS!$INTLOBJS$ac_delim
30545 INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
30546 GNOME_INCLUDEDIR!$GNOME_INCLUDEDIR$ac_delim
30547 GNOMEUI_LIBS!$GNOMEUI_LIBS$ac_delim
30548 GNOME_LIBDIR!$GNOME_LIBDIR$ac_delim
30549 GNOME_LIBS!$GNOME_LIBS$ac_delim
30550 GNOME_DIR!$GNOME_DIR$ac_delim
30551 BAT_DIR!$BAT_DIR$ac_delim
30552 QWT_INC!$QWT_INC$ac_delim
30553 QWT_LDFLAGS!$QWT_LDFLAGS$ac_delim
30554 QWT_LIB!$QWT_LIB$ac_delim
30556 WXCONS_CPPFLAGS!$WXCONS_CPPFLAGS$ac_delim
30557 WXCONS_LDFLAGS!$WXCONS_LDFLAGS$ac_delim
30558 WX_DIR!$WX_DIR$ac_delim
30559 TRAY_MONITOR_CPPFLAGS!$TRAY_MONITOR_CPPFLAGS$ac_delim
30560 TRAY_MONITOR_LDFLAGS!$TRAY_MONITOR_LDFLAGS$ac_delim
30561 TRAY_MONITOR_DIR!$TRAY_MONITOR_DIR$ac_delim
30562 TTOOL_LDFLAGS!$TTOOL_LDFLAGS$ac_delim
30563 STATIC_FD!$STATIC_FD$ac_delim
30564 STATIC_SD!$STATIC_SD$ac_delim
30565 STATIC_DIR!$STATIC_DIR$ac_delim
30566 STATIC_CONS!$STATIC_CONS$ac_delim
30567 STATIC_GNOME_CONS!$STATIC_GNOME_CONS$ac_delim
30568 STATIC_WX_CONS!$STATIC_WX_CONS$ac_delim
30569 ALL_DIRS!$ALL_DIRS$ac_delim
30570 DIRD_DIR!$DIRD_DIR$ac_delim
30571 DIR_TOOLS!$DIR_TOOLS$ac_delim
30572 STORED_DIR!$STORED_DIR$ac_delim
30573 CONS_INC!$CONS_INC$ac_delim
30574 CONS_OBJ!$CONS_OBJ$ac_delim
30575 CONS_SRC!$CONS_SRC$ac_delim
30576 CONS_LIBS!$CONS_LIBS$ac_delim
30577 CONS_LDFLAGS!$CONS_LDFLAGS$ac_delim
30578 READLINE_SRC!$READLINE_SRC$ac_delim
30579 PYTHON_LIBS!$PYTHON_LIBS$ac_delim
30580 PYTHON_INCDIR!$PYTHON_INCDIR$ac_delim
30581 OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
30582 OPENSSL_INC!$OPENSSL_INC$ac_delim
30583 working_dir!$working_dir$ac_delim
30586 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
30588 elif $ac_last_try; then
30589 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30590 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30591 { (exit 1); exit 1; }; }
30593 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30597 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30598 if test -n "$ac_eof"; then
30599 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30600 ac_eof=`expr $ac_eof + 1`
30603 cat >>$CONFIG_STATUS <<_ACEOF
30604 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
30605 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30608 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30609 s/^/s,@/; s/!/@,|#_!!_#|/
30612 s/'"$ac_delim"'$/,g/; t
30614 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30615 ' >>$CONFIG_STATUS <conf$$subs.sed
30616 rm -f conf$$subs.sed
30617 cat >>$CONFIG_STATUS <<_ACEOF
30623 for ac_last_try in false false false false false :; do
30624 cat >conf$$subs.sed <<_ACEOF
30625 archivedir!$archivedir$ac_delim
30626 scriptdir!$scriptdir$ac_delim
30627 plugindir!$plugindir$ac_delim
30628 dump_email!$dump_email$ac_delim
30629 job_email!$job_email$ac_delim
30630 smtp_host!$smtp_host$ac_delim
30631 piddir!$piddir$ac_delim
30632 subsysdir!$subsysdir$ac_delim
30633 baseport!$baseport$ac_delim
30634 dir_port!$dir_port$ac_delim
30635 fd_port!$fd_port$ac_delim
30636 sd_port!$sd_port$ac_delim
30637 dir_password!$dir_password$ac_delim
30638 fd_password!$fd_password$ac_delim
30639 sd_password!$sd_password$ac_delim
30640 mon_dir_password!$mon_dir_password$ac_delim
30641 mon_fd_password!$mon_fd_password$ac_delim
30642 mon_sd_password!$mon_sd_password$ac_delim
30643 db_name!$db_name$ac_delim
30644 db_user!$db_user$ac_delim
30645 db_password!$db_password$ac_delim
30646 db_port!$db_port$ac_delim
30647 dir_user!$dir_user$ac_delim
30648 dir_group!$dir_group$ac_delim
30649 sd_user!$sd_user$ac_delim
30650 sd_group!$sd_group$ac_delim
30651 fd_user!$fd_user$ac_delim
30652 fd_group!$fd_group$ac_delim
30653 SBINPERM!$SBINPERM$ac_delim
30654 cats!$cats$ac_delim
30655 DB_TYPE!$DB_TYPE$ac_delim
30656 uncomment_dbi!$uncomment_dbi$ac_delim
30657 GETCONF!$GETCONF$ac_delim
30658 XMKMF!$XMKMF$ac_delim
30659 X_CFLAGS!$X_CFLAGS$ac_delim
30660 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
30661 X_LIBS!$X_LIBS$ac_delim
30662 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
30663 LIBOBJS!$LIBOBJS$ac_delim
30664 FDLIBS!$FDLIBS$ac_delim
30665 DEBUG!$DEBUG$ac_delim
30666 DINCLUDE!$DINCLUDE$ac_delim
30667 DLIB!$DLIB$ac_delim
30668 DB_LIBS!$DB_LIBS$ac_delim
30669 WCFLAGS!$WCFLAGS$ac_delim
30670 WLDFLAGS!$WLDFLAGS$ac_delim
30671 WRAPLIBS!$WRAPLIBS$ac_delim
30672 OBJLIST!$OBJLIST$ac_delim
30673 hostname!$hostname$ac_delim
30674 TAPEDRIVE!$TAPEDRIVE$ac_delim
30675 PSCMD!$PSCMD$ac_delim
30676 WIN32!$WIN32$ac_delim
30677 MACOSX!$MACOSX$ac_delim
30678 DISTNAME!$DISTNAME$ac_delim
30679 DISTVER!$DISTVER$ac_delim
30680 LTLIBOBJS!$LTLIBOBJS$ac_delim
30683 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 56; then
30685 elif $ac_last_try; then
30686 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
30687 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
30688 { (exit 1); exit 1; }; }
30690 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
30694 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
30695 if test -n "$ac_eof"; then
30696 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
30697 ac_eof=`expr $ac_eof + 1`
30700 cat >>$CONFIG_STATUS <<_ACEOF
30701 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
30702 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
30705 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
30706 s/^/s,@/; s/!/@,|#_!!_#|/
30709 s/'"$ac_delim"'$/,g/; t
30711 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
30712 ' >>$CONFIG_STATUS <conf$$subs.sed
30713 rm -f conf$$subs.sed
30714 cat >>$CONFIG_STATUS <<_ACEOF
30721 # VPATH may cause trouble with some makes, so we remove $(srcdir),
30722 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
30723 # trailing colons and then remove the whole line if VPATH becomes empty
30724 # (actually we leave an empty line to preserve line numbers).
30725 if test "x$srcdir" = x.; then
30726 ac_vpsub='/^[ ]*VPATH[ ]*=/{
30727 s/:*\$(srcdir):*/:/
30728 s/:*\${srcdir}:*/:/
30730 s/^\([^=]*=[ ]*\):*/\1/
30736 cat >>$CONFIG_STATUS <<\_ACEOF
30737 fi # test -n "$CONFIG_FILES"
30740 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
30743 :[FHLC]) ac_mode=$ac_tag; continue;;
30745 case $ac_mode$ac_tag in
30747 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
30748 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
30749 { (exit 1); exit 1; }; };;
30750 :[FH]-) ac_tag=-:-;;
30751 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
30768 -) ac_f="$tmp/stdin";;
30769 *) # Look for the file first in the build tree, then in the source tree
30770 # (if the path is not absolute). The absolute path cannot be DOS-style,
30771 # because $ac_f cannot contain `:'.
30775 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
30777 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
30778 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
30779 { (exit 1); exit 1; }; };;
30781 ac_file_inputs="$ac_file_inputs $ac_f"
30784 # Let's still pretend it is `configure' which instantiates (i.e., don't
30785 # use $as_me), people would be surprised to read:
30786 # /* config.h. Generated by config.status. */
30787 configure_input="Generated from "`IFS=:
30788 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
30789 if test x"$ac_file" != x-; then
30790 configure_input="$ac_file. $configure_input"
30791 { echo "$as_me:$LINENO: creating $ac_file" >&5
30792 echo "$as_me: creating $ac_file" >&6;}
30796 *:-:* | *:-) cat >"$tmp/stdin";;
30801 ac_dir=`$as_dirname -- "$ac_file" ||
30802 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30803 X"$ac_file" : 'X\(//\)[^/]' \| \
30804 X"$ac_file" : 'X\(//\)$' \| \
30805 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30811 /^X\(\/\/\)[^/].*/{
30826 -*) as_dir=./$as_dir;;
30828 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
30832 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
30833 *) as_qdir=$as_dir;;
30835 as_dirs="'$as_qdir' $as_dirs"
30836 as_dir=`$as_dirname -- "$as_dir" ||
30837 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30838 X"$as_dir" : 'X\(//\)[^/]' \| \
30839 X"$as_dir" : 'X\(//\)$' \| \
30840 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30846 /^X\(\/\/\)[^/].*/{
30859 test -d "$as_dir" && break
30861 test -z "$as_dirs" || eval "mkdir $as_dirs"
30862 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
30863 echo "$as_me: error: cannot create directory $as_dir" >&2;}
30864 { (exit 1); exit 1; }; }; }
30868 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30870 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30871 # A ".." for each directory in $ac_dir_suffix.
30872 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
30873 case $ac_top_builddir_sub in
30874 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30875 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30878 ac_abs_top_builddir=$ac_pwd
30879 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30880 # for backward compatibility:
30881 ac_top_builddir=$ac_top_build_prefix
30884 .) # We are building in place.
30886 ac_top_srcdir=$ac_top_builddir_sub
30887 ac_abs_top_srcdir=$ac_pwd ;;
30888 [\\/]* | ?:[\\/]* ) # Absolute name.
30889 ac_srcdir=$srcdir$ac_dir_suffix;
30890 ac_top_srcdir=$srcdir
30891 ac_abs_top_srcdir=$srcdir ;;
30892 *) # Relative name.
30893 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30894 ac_top_srcdir=$ac_top_build_prefix$srcdir
30895 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30897 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30907 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30908 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30912 cat >>$CONFIG_STATUS <<\_ACEOF
30913 # If the template does not know about datarootdir, expand it.
30914 # FIXME: This hack should be removed a few years after 2.60.
30915 ac_datarootdir_hack=; ac_datarootdir_seen=
30917 case `sed -n '/datarootdir/ {
30926 ' $ac_file_inputs` in
30927 *datarootdir*) ac_datarootdir_seen=yes;;
30928 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30929 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30930 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30932 cat >>$CONFIG_STATUS <<_ACEOF
30933 ac_datarootdir_hack='
30934 s&@datadir@&$datadir&g
30935 s&@docdir@&$docdir&g
30936 s&@infodir@&$infodir&g
30937 s&@localedir@&$localedir&g
30938 s&@mandir@&$mandir&g
30939 s&\\\${datarootdir}&$datarootdir&g' ;;
30943 # Neutralize VPATH when `$srcdir' = `.'.
30944 # Shell code in configure.ac might set extrasub.
30945 # FIXME: do we really want to maintain this feature?
30946 cat >>$CONFIG_STATUS <<_ACEOF
30950 cat >>$CONFIG_STATUS <<\_ACEOF
30952 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30953 s&@configure_input@&$configure_input&;t t
30954 s&@top_builddir@&$ac_top_builddir_sub&;t t
30955 s&@srcdir@&$ac_srcdir&;t t
30956 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30957 s&@top_srcdir@&$ac_top_srcdir&;t t
30958 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30959 s&@builddir@&$ac_builddir&;t t
30960 s&@abs_builddir@&$ac_abs_builddir&;t t
30961 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30962 s&@INSTALL@&$ac_INSTALL&;t t
30963 $ac_datarootdir_hack
30964 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
30966 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30967 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30968 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30969 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30970 which seems to be undefined. Please make sure it is defined." >&5
30971 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30972 which seems to be undefined. Please make sure it is defined." >&2;}
30976 -) cat "$tmp/out"; rm -f "$tmp/out";;
30977 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
30986 # Transform confdefs.h into a sed script `conftest.defines', that
30987 # substitutes the proper values into config.h.in to produce config.h.
30988 rm -f conftest.defines conftest.tail
30989 # First, append a space to every undef/define line, to ease matching.
30990 echo 's/$/ /' >conftest.defines
30991 # Then, protect against being on the right side of a sed subst, or in
30992 # an unquoted here document, in config.status. If some macros were
30993 # called several times there might be several #defines for the same
30994 # symbol, which is useless. But do not sort them, since the last
30995 # AC_DEFINE must be honored.
30996 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
30997 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
30998 # NAME is the cpp macro being defined, VALUE is the value it is being given.
30999 # PARAMS is the parameter list in the macro definition--in most cases, it's
31000 # just an empty string.
31001 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
31002 ac_dB='\\)[ (].*,\\1define\\2'
31010 s/^[ ]*#[ ]*define[ ][ ]*//
31015 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
31016 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
31017 ' >>conftest.defines
31019 # Remove the space that was appended to ease matching.
31020 # Then replace #undef with comments. This is necessary, for
31021 # example, in the case of _POSIX_SOURCE, which is predefined and required
31022 # on some systems where configure will not decide to define it.
31023 # (The regexp can be short, since the line contains either #define or #undef.)
31025 s,^[ #]*u.*,/* & */,' >>conftest.defines
31027 # Break up conftest.defines:
31028 ac_max_sed_lines=50
31030 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
31031 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
31032 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
31034 ac_in='$ac_file_inputs'
31035 ac_out='"$tmp/out1"'
31036 ac_nxt='"$tmp/out2"'
31040 # Write a here document:
31041 cat >>$CONFIG_STATUS <<_ACEOF
31042 # First, check the format of the line:
31043 cat >"\$tmp/defines.sed" <<\\CEOF
31044 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
31045 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
31049 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
31051 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
31052 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
31053 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
31054 grep . conftest.tail >/dev/null || break
31055 rm -f conftest.defines
31056 mv conftest.tail conftest.defines
31058 rm -f conftest.defines conftest.tail
31060 echo "ac_result=$ac_in" >>$CONFIG_STATUS
31061 cat >>$CONFIG_STATUS <<\_ACEOF
31062 if test x"$ac_file" != x-; then
31063 echo "/* $configure_input */" >"$tmp/config.h"
31064 cat "$ac_result" >>"$tmp/config.h"
31065 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
31066 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
31067 echo "$as_me: $ac_file is unchanged" >&6;}
31070 mv "$tmp/config.h" $ac_file
31073 echo "/* $configure_input */"
31079 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
31080 echo "$as_me: executing $ac_file commands" >&6;}
31085 case $ac_file$ac_mode in
31087 for ac_file in $CONFIG_FILES; do
31088 # Support "outfile[:infile[:infile...]]"
31090 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
31092 # PO directories have a Makefile.in generated from Makefile.in.in.
31093 case "$ac_file" in */Makefile.in)
31094 # Adjust a relative srcdir.
31095 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
31096 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
31097 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
31098 # In autoconf-2.13 it is called $ac_given_srcdir.
31099 # In autoconf-2.50 it is called $srcdir.
31100 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
31101 case "$ac_given_srcdir" in
31102 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
31103 /*) top_srcdir="$ac_given_srcdir" ;;
31104 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
31106 # Treat a directory as a PO directory if and only if it has a
31107 # POTFILES.in file. This allows packages to have multiple PO
31108 # directories under different names or in different locations.
31109 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
31110 rm -f "$ac_dir/POTFILES"
31111 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
31112 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
31113 POMAKEFILEDEPS="POTFILES.in"
31114 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
31115 # on $ac_dir but don't depend on user-specified configuration
31117 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
31118 # The LINGUAS file contains the set of available languages.
31119 if test -n "$OBSOLETE_ALL_LINGUAS"; then
31120 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
31122 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
31123 # Hide the ALL_LINGUAS assigment from automake.
31124 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
31125 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
31127 # The set of available languages was given in configure.in.
31128 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
31131 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
31132 # Compute UPDATEPOFILES
31133 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
31134 # Compute DUMMYPOFILES
31135 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
31137 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
31138 case "$ac_given_srcdir" in
31140 *) srcdirpre='$(srcdir)/' ;;
31146 for lang in $ALL_LINGUAS; do
31147 POFILES="$POFILES $srcdirpre$lang.po"
31148 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
31149 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
31150 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
31152 # CATALOGS depends on both $ac_dir and the user's LINGUAS
31153 # environment variable.
31155 if test -n "$ALL_LINGUAS"; then
31156 for presentlang in $ALL_LINGUAS; do
31158 if test "%UNSET%" != "$LINGUAS"; then
31159 desiredlanguages="$LINGUAS"
31161 desiredlanguages="$ALL_LINGUAS"
31163 for desiredlang in $desiredlanguages; do
31164 # Use the presentlang catalog if desiredlang is
31165 # a. equal to presentlang, or
31166 # b. a variant of presentlang (because in this case,
31167 # presentlang can be used as a fallback for messages
31168 # which are not translated in the desiredlang catalog).
31169 case "$desiredlang" in
31170 "$presentlang"*) useit=yes;;
31173 if test $useit = yes; then
31174 INST_LINGUAS="$INST_LINGUAS $presentlang"
31179 if test -n "$INST_LINGUAS"; then
31180 for lang in $INST_LINGUAS; do
31181 CATALOGS="$CATALOGS $lang.gmo"
31184 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
31185 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"
31186 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
31187 if test -f "$f"; then
31189 *.orig | *.bak | *~) ;;
31190 *) cat "$f" >> "$ac_dir/Makefile" ;;
31205 { (exit 0); exit 0; }
31207 chmod +x $CONFIG_STATUS
31208 ac_clean_files=$ac_clean_files_save
31211 # configure is writing to config.log, and then calls config.status.
31212 # config.status does its own redirection, appending to config.log.
31213 # Unfortunately, on DOS this fails, as config.log is still kept open
31214 # by configure, so config.status won't be able to write to it; its
31215 # output is simply discarded. So we exec the FD to /dev/null,
31216 # effectively closing config.log, so it can be properly (re)opened and
31217 # appended to by config.status. When coming back to configure, we
31218 # need to make the FD available again.
31219 if test "$no_create" != yes; then
31221 ac_config_status_args=
31222 test "$silent" = yes &&
31223 ac_config_status_args="$ac_config_status_args --quiet"
31225 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31227 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31228 # would make configure fail if this is the last instruction.
31229 $ac_cs_success || { (exit 1); exit 1; }
31233 if test "${support_bat}" = "yes" ; then
31234 if test "x$QMAKE" = "xnone" && test "x$QMAKEQT4" = "xnone"; then
31235 echo "Could not find qmake or qmake-qt4 in $PATH. Check your Qt installation"
31241 if test "x$QMAKEQT4" != "xnone"; then
31246 chmod 755 install_conf_file build-depkgs-qt-console
31247 echo "Creating bat Makefile"
31253 echo "Doing make of dependencies"
31254 ${MAKE:-make} depend
31257 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
31258 chmod 755 dvd-handler dvd-simulator
31259 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
31263 chmod 755 $c/update_mysql_tables_10_to_11 $c/update_sqlite3_tables_10_to_11
31264 chmod 755 $c/update_postgresql_tables_10_to_11 $c/update_sqlite_tables_10_to_11
31268 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
31269 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
31271 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
31272 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
31274 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
31275 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
31277 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
31278 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
31280 chmod 755 $c/create_sqlite3_database $c/update_sqlite3_tables $c/make_sqlite3_tables
31281 chmod 755 $c/grant_sqlite3_privileges $c/drop_sqlite3_tables $c/drop_sqlite3_database
31283 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
31284 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
31286 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
31287 chmod 755 $c/sqlite
31290 chmod 755 src/win32/build-depkgs-mingw32
31294 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
31295 largefile_support="yes"
31299 # A whole lot of hand springs to get the compiler version.
31300 # This is because gcc changed the output in version 3.0
31302 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31303 if test "x${CCVERSION}" = "x" ; then
31304 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31306 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
31307 if test x"${CXXVERSION}" = x ; then
31308 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
31311 if test "x${subsysdir}" = "x${sbindir}" ; then
31314 echo "You have set --sbindir and --with-subsys-dir"
31315 echo " both equal to: ${subsysdir} "
31316 echo " This is not permitted. Please reconfigure."
31318 echo "Aborting configuration ..."
31324 if test "x${db_type}" = "xInternal" ; then
31327 echo "You have not specified either --enable-client-only or one of the"
31328 echo " supported databases: MySQL, PostgreSQL, SQLite3, SQLite or DBI."
31329 echo " This is not permitted. Please reconfigure."
31331 echo "Aborting the configuration ..."
31338 Configuration on `date`:
31340 Host: $host -- ${DISTNAME} ${DISTVER}
31341 Bacula version: ${VERSION} (${DATE})
31342 Source code location: ${srcdir}
31343 Install binaries: ${sbindir}
31344 Install config files: ${sysconfdir}
31345 Scripts directory: ${scriptdir}
31346 Archive directory: ${archivedir}
31347 Working directory: ${working_dir}
31348 PID directory: ${piddir}
31349 Subsys directory: ${subsysdir}
31350 Man directory: ${mandir}
31351 Data directory: ${datadir}
31352 C Compiler: ${CC} ${CCVERSION}
31353 C++ Compiler: ${CXX} ${CXXVERSION}
31354 Compiler flags: ${WCFLAGS} ${CFLAGS}
31355 Linker flags: ${WLDFLAGS} ${LDFLAGS}
31357 Statically Linked Tools: ${support_static_tools}
31358 Statically Linked FD: ${support_static_fd}
31359 Statically Linked SD: ${support_static_sd}
31360 Statically Linked DIR: ${support_static_dir}
31361 Statically Linked CONS: ${support_static_cons}
31362 Database type: ${db_type}
31363 Database port: ${db_port}
31364 Database lib: ${DB_LIBS}
31365 Database name: ${db_name}
31366 Database user: ${db_user}
31368 Job Output Email: ${job_email}
31369 Traceback Email: ${dump_email}
31370 SMTP Host Address: ${smtp_host}
31372 Director Port: ${dir_port}
31373 File daemon Port: ${fd_port}
31374 Storage daemon Port: ${sd_port}
31376 Director User: ${dir_user}
31377 Director Group: ${dir_group}
31378 Storage Daemon User: ${sd_user}
31379 Storage DaemonGroup: ${sd_group}
31380 File Daemon User: ${fd_user}
31381 File Daemon Group: ${fd_group}
31383 SQL binaries Directory ${SQL_BINDIR}
31385 Large file support: $largefile_support
31386 Bacula conio support: ${got_conio} ${CONS_LIBS}
31387 readline support: ${got_readline} ${PRTREADLINE_SRC}
31388 TCP Wrappers support: ${TCPW_MSG} ${WRAPLIBS}
31389 TLS support: ${support_tls}
31390 Encryption support: ${support_crypto}
31391 ZLIB support: ${have_zlib}
31392 enable-smartalloc: ${support_smartalloc}
31393 bat support: ${support_bat} ${QWT_LDFLAGS}
31394 enable-gnome: ${support_gnome} ${gnome_version}
31395 enable-bwx-console: ${support_wx_console} ${wx_version}
31396 enable-tray-monitor: ${support_tray_monitor}
31397 client-only: ${build_client_only}
31398 build-dird: ${build_dird}
31399 build-stored: ${build_stored}
31400 ACL support: ${have_acl}
31401 Python support: ${support_python} ${PYTHON_LIBS}
31402 Batch insert enabled: ${support_batch_insert}