2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # 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 Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG WXCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
782 # Report the --help message.
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
788 \`configure' configures this package to adapt to many kinds of systems.
790 Usage: $0 [OPTION]... [VAR=VALUE]...
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
795 Defaults for the options are specified in brackets.
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
822 For better control, use the options below.
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
842 --x-includes=DIR X include files are in DIR
843 --x-libraries=DIR X library files are in DIR
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 if test -n "$ac_init_help"; then
856 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
857 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
858 --enable-gnome enable build of gnome-console GUI disabled
859 --enable-wx-console enable build of wxWidgets console disabled
860 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
861 --enable-smartalloc enable smartalloc debugging support disabled
862 --enable-static-tools enable static tape tools disabled
863 --enable-static-fd enable static File daemon disabled
864 --enable-static-sd enable static Storage daemon disabled
865 --enable-static-dir enable static Director disabled
866 --enable-static-cons enable static Console disabled
867 --enable-client-only build client (File daemon) only disabled
868 --disable-conio disable conio support enabled
870 --disable-readline disable readline support disable
872 --disable-largefile omit support for large files
875 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
876 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
877 --with-gnome-includes Specify location of GNOME headers
878 --with-gnome-libs Specify location of GNOME libs
879 --with-gnome Specify prefix for GNOME files
880 --with-readline=DIR specify readline library directory
881 --with-tcp-wrappers=DIR enable tcpwrappers support
882 --with-working-dir=PATH specify path of Bacula working directory
883 --with-scriptdir=PATH specify path of Bacula scripts directory
884 --with-dump-email=EMAIL dump email address
885 --with-job-email=EMAIL job output email address
886 --with-smtp-host=HOST SMTP mail host address
887 --with-pid-dir=PATH specify location of Bacula pid files
888 --with-subsys-dir=PATH specify location of Bacula subsys file
889 --with-baseport=PORT specify base port address for daemons
890 --with-dir-password=PASSWORD specify Director's password
891 --with-fd-password=PASSWORD specify Client's password
892 --with-sd-password=PASSWORD specify Storage daemon's password
893 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
894 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
895 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
896 --with-dir-user=USER specify user for Director daemon
897 --with-dir-group=GROUP specify group for Director daemon
898 --with-sd-user=USER specify user for Storage daemon
899 --with-sd-group=GROUP specify group for Storage daemon
900 --with-fd-user=USER specify user for File daemon
901 --with-fd-group=GROUP specify group for File daemon
902 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
903 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
904 base install directory, defaults to /usr/local/pgsql
906 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
907 install directory, default is to search through
908 a number of common places for the MySQL files.
910 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
911 install directory, default is to search through
912 a number of common places for the MySQL files.
914 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
915 install directory, default is to search through
916 a number of common places for the SQLite files.
917 --with-x use the X Window System
919 Some influential environment variables:
920 CC C compiler command
921 CFLAGS C compiler flags
922 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
923 nonstandard directory <lib dir>
924 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
925 headers in a nonstandard directory <include dir>
926 CXX C++ compiler command
927 CXXFLAGS C++ compiler flags
930 Use these variables to override the choices made by `configure' or to help
931 it to find libraries and programs with nonstandard names/locations.
936 if test "$ac_init_help" = "recursive"; then
937 # If there are subdirs, report their specific --help.
939 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
940 test -d $ac_dir || continue
943 if test "$ac_dir" != .; then
944 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
945 # A "../" for each directory in $ac_dir_suffix.
946 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
948 ac_dir_suffix= ac_top_builddir=
952 .) # No --srcdir option. We are building in place.
954 if test -z "$ac_top_builddir"; then
957 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
959 [\\/]* | ?:[\\/]* ) # Absolute path.
960 ac_srcdir=$srcdir$ac_dir_suffix;
961 ac_top_srcdir=$srcdir ;;
963 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
964 ac_top_srcdir=$ac_top_builddir$srcdir ;;
966 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
968 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
969 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
970 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
971 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
974 # Check for guested configure; otherwise get Cygnus style configure.
975 if test -f $ac_srcdir/configure.gnu; then
977 $SHELL $ac_srcdir/configure.gnu --help=recursive
978 elif test -f $ac_srcdir/configure; then
980 $SHELL $ac_srcdir/configure --help=recursive
981 elif test -f $ac_srcdir/configure.ac ||
982 test -f $ac_srcdir/configure.in; then
986 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
992 test -n "$ac_init_help" && exit 0
993 if $ac_init_version; then
996 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
997 Free Software Foundation, Inc.
998 This configure script is free software; the Free Software Foundation
999 gives unlimited permission to copy, distribute and modify it.
1005 This file contains any messages produced by compilers while
1006 running configure, to aid debugging if configure makes a mistake.
1008 It was created by $as_me, which was
1009 generated by GNU Autoconf 2.57. Invocation command line was
1020 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1021 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1022 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1023 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1024 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1026 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1027 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1029 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1030 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1031 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1032 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1033 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1034 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1035 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1043 test -z "$as_dir" && as_dir=.
1044 echo "PATH: $as_dir"
1059 # Keep a trace of the command line.
1060 # Strip out --no-create and --no-recursion so they do not pile up.
1061 # Strip out --silent because we don't want to record it for future runs.
1062 # Also quote any args containing shell meta-characters.
1063 # Make two passes to allow for proper duplicate-argument suppression.
1068 ac_must_keep_next=false
1074 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1078 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1079 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1082 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1084 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1085 if test $ac_must_keep_next = true; then
1086 ac_must_keep_next=false # Got value, back to normal.
1089 *=* | --config-cache | -C | -disable-* | --disable-* \
1090 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1091 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1092 | -with-* | --with-* | -without-* | --without-* | --x)
1093 case "$ac_configure_args0 " in
1094 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1097 -* ) ac_must_keep_next=true ;;
1100 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1101 # Get rid of the leading space.
1107 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1108 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1110 # When interrupted or exit'd, cleanup temporary files, and complete
1111 # config.log. We remove comments because anyway the quotes in there
1112 # would cause problems or look ugly.
1113 # WARNING: Be sure not to use single quotes in there, as some shells,
1114 # such as our DU 5.0 friend, will then `close' the trap.
1115 trap 'exit_status=$?
1116 # Save into config.log some information that might help in debugging.
1121 ## ---------------- ##
1122 ## Cache variables. ##
1123 ## ---------------- ##
1126 # The following way of writing the cache mishandles newlines in values,
1129 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1132 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1133 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1137 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1144 ## ----------------- ##
1145 ## Output variables. ##
1146 ## ----------------- ##
1149 for ac_var in $ac_subst_vars
1151 eval ac_val=$`echo $ac_var`
1152 echo "$ac_var='"'"'$ac_val'"'"'"
1156 if test -n "$ac_subst_files"; then
1163 for ac_var in $ac_subst_files
1165 eval ac_val=$`echo $ac_var`
1166 echo "$ac_var='"'"'$ac_val'"'"'"
1171 if test -s confdefs.h; then
1178 sed "/^$/d" confdefs.h | sort
1181 test "$ac_signal" != 0 &&
1182 echo "$as_me: caught signal $ac_signal"
1183 echo "$as_me: exit $exit_status"
1185 rm -f core core.* *.core &&
1186 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1189 for ac_signal in 1 2 13 15; do
1190 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1194 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1195 rm -rf conftest* confdefs.h
1196 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1199 # Predefined preprocessor variables.
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_NAME "$PACKAGE_NAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_STRING "$PACKAGE_STRING"
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1226 # Let the site file select an alternate cache file if it wants to.
1227 # Prefer explicitly selected file to automatically selected ones.
1228 if test -z "$CONFIG_SITE"; then
1229 if test "x$prefix" != xNONE; then
1230 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1232 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1235 for ac_site_file in $CONFIG_SITE; do
1236 if test -r "$ac_site_file"; then
1237 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1238 echo "$as_me: loading site script $ac_site_file" >&6;}
1239 sed 's/^/| /' "$ac_site_file" >&5
1244 if test -r "$cache_file"; then
1245 # Some versions of bash will fail to source /dev/null (special
1246 # files actually), so we avoid doing that.
1247 if test -f "$cache_file"; then
1248 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1249 echo "$as_me: loading cache $cache_file" >&6;}
1251 [\\/]* | ?:[\\/]* ) . $cache_file;;
1252 *) . ./$cache_file;;
1256 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1257 echo "$as_me: creating cache $cache_file" >&6;}
1261 # Check that the precious variables saved in the cache have kept the same
1263 ac_cache_corrupted=false
1264 for ac_var in `(set) 2>&1 |
1265 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1266 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1267 eval ac_new_set=\$ac_env_${ac_var}_set
1268 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1269 eval ac_new_val="\$ac_env_${ac_var}_value"
1270 case $ac_old_set,$ac_new_set in
1272 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1273 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1274 ac_cache_corrupted=: ;;
1276 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1277 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1278 ac_cache_corrupted=: ;;
1281 if test "x$ac_old_val" != "x$ac_new_val"; then
1282 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1283 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1284 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1285 echo "$as_me: former value: $ac_old_val" >&2;}
1286 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1287 echo "$as_me: current value: $ac_new_val" >&2;}
1288 ac_cache_corrupted=:
1291 # Pass precious variables to config.status.
1292 if test "$ac_new_set" = set; then
1294 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1295 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1296 *) ac_arg=$ac_var=$ac_new_val ;;
1298 case " $ac_configure_args " in
1299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1300 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1304 if $ac_cache_corrupted; then
1305 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1306 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1307 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1308 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1309 { (exit 1); exit 1; }; }
1313 ac_cpp='$CPP $CPPFLAGS'
1314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1342 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1343 if test -f $ac_dir/install-sh; then
1345 ac_install_sh="$ac_aux_dir/install-sh -c"
1347 elif test -f $ac_dir/install.sh; then
1349 ac_install_sh="$ac_aux_dir/install.sh -c"
1351 elif test -f $ac_dir/shtool; then
1353 ac_install_sh="$ac_aux_dir/shtool install -c"
1357 if test -z "$ac_aux_dir"; then
1358 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1359 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1360 { (exit 1); exit 1; }; }
1362 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1363 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1364 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1366 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1374 # Extract the first word of "$ac_prog", so it can be a program name with args.
1375 set dummy $ac_prog; ac_word=$2
1376 echo "$as_me:$LINENO: checking for $ac_word" >&5
1377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1383 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1390 test -z "$as_dir" && as_dir=.
1391 for ac_exec_ext in '' $ac_executable_extensions; do
1392 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1393 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1403 TRUEPRG=$ac_cv_path_TRUEPRG
1405 if test -n "$TRUEPRG"; then
1406 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1407 echo "${ECHO_T}$TRUEPRG" >&6
1409 echo "$as_me:$LINENO: result: no" >&5
1410 echo "${ECHO_T}no" >&6
1413 test -n "$TRUEPRG" && break
1415 test -n "$TRUEPRG" || TRUEPRG=":"
1417 for ac_prog in false
1419 # Extract the first word of "$ac_prog", so it can be a program name with args.
1420 set dummy $ac_prog; ac_word=$2
1421 echo "$as_me:$LINENO: checking for $ac_word" >&5
1422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1423 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1428 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1435 test -z "$as_dir" && as_dir=.
1436 for ac_exec_ext in '' $ac_executable_extensions; do
1437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1438 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1448 FALSEPRG=$ac_cv_path_FALSEPRG
1450 if test -n "$FALSEPRG"; then
1451 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1452 echo "${ECHO_T}$FALSEPRG" >&6
1454 echo "$as_me:$LINENO: result: no" >&5
1455 echo "${ECHO_T}no" >&6
1458 test -n "$FALSEPRG" && break
1460 test -n "$FALSEPRG" || FALSEPRG=":"
1465 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1466 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1467 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1468 echo "configuring for bacula $VERSION ($DATE)"
1473 ac_cpp='$CPP $CPPFLAGS'
1474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1477 if test -n "$ac_tool_prefix"; then
1478 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1479 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1480 echo "$as_me:$LINENO: checking for $ac_word" >&5
1481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1482 if test "${ac_cv_prog_CC+set}" = set; then
1483 echo $ECHO_N "(cached) $ECHO_C" >&6
1485 if test -n "$CC"; then
1486 ac_cv_prog_CC="$CC" # Let the user override the test.
1488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1492 test -z "$as_dir" && as_dir=.
1493 for ac_exec_ext in '' $ac_executable_extensions; do
1494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1495 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1505 if test -n "$CC"; then
1506 echo "$as_me:$LINENO: result: $CC" >&5
1507 echo "${ECHO_T}$CC" >&6
1509 echo "$as_me:$LINENO: result: no" >&5
1510 echo "${ECHO_T}no" >&6
1514 if test -z "$ac_cv_prog_CC"; then
1516 # Extract the first word of "gcc", so it can be a program name with args.
1517 set dummy gcc; ac_word=$2
1518 echo "$as_me:$LINENO: checking for $ac_word" >&5
1519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1520 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1521 echo $ECHO_N "(cached) $ECHO_C" >&6
1523 if test -n "$ac_ct_CC"; then
1524 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530 test -z "$as_dir" && as_dir=.
1531 for ac_exec_ext in '' $ac_executable_extensions; do
1532 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1533 ac_cv_prog_ac_ct_CC="gcc"
1534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1543 if test -n "$ac_ct_CC"; then
1544 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1545 echo "${ECHO_T}$ac_ct_CC" >&6
1547 echo "$as_me:$LINENO: result: no" >&5
1548 echo "${ECHO_T}no" >&6
1556 if test -z "$CC"; then
1557 if test -n "$ac_tool_prefix"; then
1558 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1559 set dummy ${ac_tool_prefix}cc; ac_word=$2
1560 echo "$as_me:$LINENO: checking for $ac_word" >&5
1561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1562 if test "${ac_cv_prog_CC+set}" = set; then
1563 echo $ECHO_N "(cached) $ECHO_C" >&6
1565 if test -n "$CC"; then
1566 ac_cv_prog_CC="$CC" # Let the user override the test.
1568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1572 test -z "$as_dir" && as_dir=.
1573 for ac_exec_ext in '' $ac_executable_extensions; do
1574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1575 ac_cv_prog_CC="${ac_tool_prefix}cc"
1576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1585 if test -n "$CC"; then
1586 echo "$as_me:$LINENO: result: $CC" >&5
1587 echo "${ECHO_T}$CC" >&6
1589 echo "$as_me:$LINENO: result: no" >&5
1590 echo "${ECHO_T}no" >&6
1594 if test -z "$ac_cv_prog_CC"; then
1596 # Extract the first word of "cc", so it can be a program name with args.
1597 set dummy cc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1603 if test -n "$ac_ct_CC"; then
1604 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 ac_cv_prog_ac_ct_CC="cc"
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1622 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1623 if test -n "$ac_ct_CC"; then
1624 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1625 echo "${ECHO_T}$ac_ct_CC" >&6
1627 echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1637 if test -z "$CC"; then
1638 # Extract the first word of "cc", so it can be a program name with args.
1639 set dummy cc; ac_word=$2
1640 echo "$as_me:$LINENO: checking for $ac_word" >&5
1641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1642 if test "${ac_cv_prog_CC+set}" = set; then
1643 echo $ECHO_N "(cached) $ECHO_C" >&6
1645 if test -n "$CC"; then
1646 ac_cv_prog_CC="$CC" # Let the user override the test.
1649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1653 test -z "$as_dir" && as_dir=.
1654 for ac_exec_ext in '' $ac_executable_extensions; do
1655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1656 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1657 ac_prog_rejected=yes
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1667 if test $ac_prog_rejected = yes; then
1668 # We found a bogon in the path, so make sure we never use it.
1669 set dummy $ac_cv_prog_CC
1671 if test $# != 0; then
1672 # We chose a different compiler from the bogus one.
1673 # However, it has the same basename, so the bogon will be chosen
1674 # first if we set CC to just the basename; use the full file name.
1676 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1682 if test -n "$CC"; then
1683 echo "$as_me:$LINENO: result: $CC" >&5
1684 echo "${ECHO_T}$CC" >&6
1686 echo "$as_me:$LINENO: result: no" >&5
1687 echo "${ECHO_T}no" >&6
1691 if test -z "$CC"; then
1692 if test -n "$ac_tool_prefix"; then
1695 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1696 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1697 echo "$as_me:$LINENO: checking for $ac_word" >&5
1698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1699 if test "${ac_cv_prog_CC+set}" = set; then
1700 echo $ECHO_N "(cached) $ECHO_C" >&6
1702 if test -n "$CC"; then
1703 ac_cv_prog_CC="$CC" # Let the user override the test.
1705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1709 test -z "$as_dir" && as_dir=.
1710 for ac_exec_ext in '' $ac_executable_extensions; do
1711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1712 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1722 if test -n "$CC"; then
1723 echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1730 test -n "$CC" && break
1733 if test -z "$CC"; then
1737 # Extract the first word of "$ac_prog", so it can be a program name with args.
1738 set dummy $ac_prog; ac_word=$2
1739 echo "$as_me:$LINENO: checking for $ac_word" >&5
1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1741 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1744 if test -n "$ac_ct_CC"; then
1745 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1751 test -z "$as_dir" && as_dir=.
1752 for ac_exec_ext in '' $ac_executable_extensions; do
1753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1754 ac_cv_prog_ac_ct_CC="$ac_prog"
1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1763 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1764 if test -n "$ac_ct_CC"; then
1765 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1766 echo "${ECHO_T}$ac_ct_CC" >&6
1768 echo "$as_me:$LINENO: result: no" >&5
1769 echo "${ECHO_T}no" >&6
1772 test -n "$ac_ct_CC" && break
1781 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1782 See \`config.log' for more details." >&5
1783 echo "$as_me: error: no acceptable C compiler found in \$PATH
1784 See \`config.log' for more details." >&2;}
1785 { (exit 1); exit 1; }; }
1787 # Provide some information about the compiler.
1788 echo "$as_me:$LINENO:" \
1789 "checking for C compiler version" >&5
1790 ac_compiler=`set X $ac_compile; echo $2`
1791 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1792 (eval $ac_compiler --version </dev/null >&5) 2>&5
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }
1796 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1797 (eval $ac_compiler -v </dev/null >&5) 2>&5
1799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800 (exit $ac_status); }
1801 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1802 (eval $ac_compiler -V </dev/null >&5) 2>&5
1804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805 (exit $ac_status); }
1807 cat >conftest.$ac_ext <<_ACEOF
1808 #line $LINENO "configure"
1811 cat confdefs.h >>conftest.$ac_ext
1812 cat >>conftest.$ac_ext <<_ACEOF
1813 /* end confdefs.h. */
1823 ac_clean_files_save=$ac_clean_files
1824 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1825 # Try to create an executable without -o first, disregard a.out.
1826 # It will help us diagnose broken compilers, and finding out an intuition
1828 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1829 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1830 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1831 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1832 (eval $ac_link_default) 2>&5
1834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835 (exit $ac_status); }; then
1836 # Find the output, starting from the most likely. This scheme is
1837 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1840 # Be careful to initialize this variable, since it used to be cached.
1841 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1843 # b.out is created by i960 compilers.
1844 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1846 test -f "$ac_file" || continue
1848 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1851 # This is the source file.
1854 # We found the default executable, but exeext='' is most
1858 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1859 # FIXME: I believe we export ac_cv_exeext for Libtool,
1860 # but it would be cool to find out if it's true. Does anybody
1861 # maintain Libtool? --akim.
1869 echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1872 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1873 See \`config.log' for more details." >&5
1874 echo "$as_me: error: C compiler cannot create executables
1875 See \`config.log' for more details." >&2;}
1876 { (exit 77); exit 77; }; }
1879 ac_exeext=$ac_cv_exeext
1880 echo "$as_me:$LINENO: result: $ac_file" >&5
1881 echo "${ECHO_T}$ac_file" >&6
1883 # Check the compiler produces executables we can run. If not, either
1884 # the compiler is broken, or we cross compile.
1885 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1886 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1887 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1888 # If not cross compiling, check that we can run a simple program.
1889 if test "$cross_compiling" != yes; then
1890 if { ac_try='./$ac_file'
1891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1895 (exit $ac_status); }; }; then
1898 if test "$cross_compiling" = maybe; then
1901 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1902 If you meant to cross compile, use \`--host'.
1903 See \`config.log' for more details." >&5
1904 echo "$as_me: error: cannot run C compiled programs.
1905 If you meant to cross compile, use \`--host'.
1906 See \`config.log' for more details." >&2;}
1907 { (exit 1); exit 1; }; }
1911 echo "$as_me:$LINENO: result: yes" >&5
1912 echo "${ECHO_T}yes" >&6
1914 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1915 ac_clean_files=$ac_clean_files_save
1916 # Check the compiler produces executables we can run. If not, either
1917 # the compiler is broken, or we cross compile.
1918 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1919 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1920 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1921 echo "${ECHO_T}$cross_compiling" >&6
1923 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1924 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1926 (eval $ac_link) 2>&5
1928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1929 (exit $ac_status); }; then
1930 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1931 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1932 # work properly (i.e., refer to `conftest.exe'), while it won't with
1934 for ac_file in conftest.exe conftest conftest.*; do
1935 test -f "$ac_file" || continue
1937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1938 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1945 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1946 See \`config.log' for more details." >&5
1947 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1948 See \`config.log' for more details." >&2;}
1949 { (exit 1); exit 1; }; }
1952 rm -f conftest$ac_cv_exeext
1953 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1954 echo "${ECHO_T}$ac_cv_exeext" >&6
1956 rm -f conftest.$ac_ext
1957 EXEEXT=$ac_cv_exeext
1959 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1960 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1961 if test "${ac_cv_objext+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1964 cat >conftest.$ac_ext <<_ACEOF
1965 #line $LINENO "configure"
1968 cat confdefs.h >>conftest.$ac_ext
1969 cat >>conftest.$ac_ext <<_ACEOF
1970 /* end confdefs.h. */
1980 rm -f conftest.o conftest.obj
1981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1982 (eval $ac_compile) 2>&5
1984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985 (exit $ac_status); }; then
1986 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1989 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1994 echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1997 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1998 See \`config.log' for more details." >&5
1999 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2000 See \`config.log' for more details." >&2;}
2001 { (exit 1); exit 1; }; }
2004 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2006 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2007 echo "${ECHO_T}$ac_cv_objext" >&6
2008 OBJEXT=$ac_cv_objext
2010 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2011 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2012 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2013 echo $ECHO_N "(cached) $ECHO_C" >&6
2015 cat >conftest.$ac_ext <<_ACEOF
2016 #line $LINENO "configure"
2019 cat confdefs.h >>conftest.$ac_ext
2020 cat >>conftest.$ac_ext <<_ACEOF
2021 /* end confdefs.h. */
2034 rm -f conftest.$ac_objext
2035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2036 (eval $ac_compile) 2>&5
2038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2039 (exit $ac_status); } &&
2040 { ac_try='test -s conftest.$ac_objext'
2041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); }; }; then
2048 echo "$as_me: failed program was:" >&5
2049 sed 's/^/| /' conftest.$ac_ext >&5
2053 rm -f conftest.$ac_objext conftest.$ac_ext
2054 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2057 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2058 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2059 GCC=`test $ac_compiler_gnu = yes && echo yes`
2060 ac_test_CFLAGS=${CFLAGS+set}
2061 ac_save_CFLAGS=$CFLAGS
2063 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2064 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2065 if test "${ac_cv_prog_cc_g+set}" = set; then
2066 echo $ECHO_N "(cached) $ECHO_C" >&6
2068 cat >conftest.$ac_ext <<_ACEOF
2069 #line $LINENO "configure"
2072 cat confdefs.h >>conftest.$ac_ext
2073 cat >>conftest.$ac_ext <<_ACEOF
2074 /* end confdefs.h. */
2084 rm -f conftest.$ac_objext
2085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086 (eval $ac_compile) 2>&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); } &&
2090 { ac_try='test -s conftest.$ac_objext'
2091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }; }; then
2098 echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2103 rm -f conftest.$ac_objext conftest.$ac_ext
2105 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2106 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2107 if test "$ac_test_CFLAGS" = set; then
2108 CFLAGS=$ac_save_CFLAGS
2109 elif test $ac_cv_prog_cc_g = yes; then
2110 if test "$GCC" = yes; then
2116 if test "$GCC" = yes; then
2122 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2123 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2124 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2127 ac_cv_prog_cc_stdc=no
2129 cat >conftest.$ac_ext <<_ACEOF
2130 #line $LINENO "configure"
2133 cat confdefs.h >>conftest.$ac_ext
2134 cat >>conftest.$ac_ext <<_ACEOF
2135 /* end confdefs.h. */
2138 #include <sys/types.h>
2139 #include <sys/stat.h>
2140 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2141 struct buf { int x; };
2142 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2143 static char *e (p, i)
2149 static char *f (char * (*g) (char **, int), char **p, ...)
2154 s = g (p, va_arg (v,int));
2158 int test (int i, double x);
2159 struct s1 {int (*f) (int a);};
2160 struct s2 {int (*f) (double a);};
2161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2172 # Don't try gcc -ansi; that turns off useful extensions and
2173 # breaks some systems' header files.
2174 # AIX -qlanglvl=ansi
2175 # Ultrix and OSF/1 -std1
2176 # HP-UX 10.20 and later -Ae
2177 # HP-UX older versions -Aa -D_HPUX_SOURCE
2178 # SVR4 -Xc -D__EXTENSIONS__
2179 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2181 CC="$ac_save_CC $ac_arg"
2182 rm -f conftest.$ac_objext
2183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2184 (eval $ac_compile) 2>&5
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); } &&
2188 { ac_try='test -s conftest.$ac_objext'
2189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2193 (exit $ac_status); }; }; then
2194 ac_cv_prog_cc_stdc=$ac_arg
2197 echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2201 rm -f conftest.$ac_objext
2203 rm -f conftest.$ac_ext conftest.$ac_objext
2208 case "x$ac_cv_prog_cc_stdc" in
2210 echo "$as_me:$LINENO: result: none needed" >&5
2211 echo "${ECHO_T}none needed" >&6 ;;
2213 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2214 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2215 CC="$CC $ac_cv_prog_cc_stdc" ;;
2218 # Some people use a C++ compiler to compile C. Since we use `exit',
2219 # in C++ we need to declare it. In case someone uses the same compiler
2220 # for both compiling C and C++ we need to have the C++ compiler decide
2221 # the declaration of exit, since it's the most demanding environment.
2222 cat >conftest.$ac_ext <<_ACEOF
2227 rm -f conftest.$ac_objext
2228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2229 (eval $ac_compile) 2>&5
2231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232 (exit $ac_status); } &&
2233 { ac_try='test -s conftest.$ac_objext'
2234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; }; then
2239 for ac_declaration in \
2241 '#include <stdlib.h>' \
2242 'extern "C" void std::exit (int) throw (); using std::exit;' \
2243 'extern "C" void std::exit (int); using std::exit;' \
2244 'extern "C" void exit (int) throw ();' \
2245 'extern "C" void exit (int);' \
2248 cat >conftest.$ac_ext <<_ACEOF
2249 #line $LINENO "configure"
2252 cat confdefs.h >>conftest.$ac_ext
2253 cat >>conftest.$ac_ext <<_ACEOF
2254 /* end confdefs.h. */
2265 rm -f conftest.$ac_objext
2266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2267 (eval $ac_compile) 2>&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); } &&
2271 { ac_try='test -s conftest.$ac_objext'
2272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2276 (exit $ac_status); }; }; then
2279 echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2284 rm -f conftest.$ac_objext conftest.$ac_ext
2285 cat >conftest.$ac_ext <<_ACEOF
2286 #line $LINENO "configure"
2289 cat confdefs.h >>conftest.$ac_ext
2290 cat >>conftest.$ac_ext <<_ACEOF
2291 /* end confdefs.h. */
2301 rm -f conftest.$ac_objext
2302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2303 (eval $ac_compile) 2>&5
2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2306 (exit $ac_status); } &&
2307 { ac_try='test -s conftest.$ac_objext'
2308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2312 (exit $ac_status); }; }; then
2315 echo "$as_me: failed program was:" >&5
2316 sed 's/^/| /' conftest.$ac_ext >&5
2319 rm -f conftest.$ac_objext conftest.$ac_ext
2322 if test -n "$ac_declaration"; then
2323 echo '#ifdef __cplusplus' >>confdefs.h
2324 echo $ac_declaration >>confdefs.h
2325 echo '#endif' >>confdefs.h
2329 echo "$as_me: failed program was:" >&5
2330 sed 's/^/| /' conftest.$ac_ext >&5
2333 rm -f conftest.$ac_objext conftest.$ac_ext
2335 ac_cpp='$CPP $CPPFLAGS'
2336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2341 ac_cpp='$CXXCPP $CPPFLAGS'
2342 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2343 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2344 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2345 if test -n "$ac_tool_prefix"; then
2346 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2350 echo "$as_me:$LINENO: checking for $ac_word" >&5
2351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2352 if test "${ac_cv_prog_CXX+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 if test -n "$CXX"; then
2356 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2362 test -z "$as_dir" && as_dir=.
2363 for ac_exec_ext in '' $ac_executable_extensions; do
2364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2375 if test -n "$CXX"; then
2376 echo "$as_me:$LINENO: result: $CXX" >&5
2377 echo "${ECHO_T}$CXX" >&6
2379 echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6
2383 test -n "$CXX" && break
2386 if test -z "$CXX"; then
2388 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2390 # Extract the first word of "$ac_prog", so it can be a program name with args.
2391 set dummy $ac_prog; ac_word=$2
2392 echo "$as_me:$LINENO: checking for $ac_word" >&5
2393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2394 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2395 echo $ECHO_N "(cached) $ECHO_C" >&6
2397 if test -n "$ac_ct_CXX"; then
2398 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404 test -z "$as_dir" && as_dir=.
2405 for ac_exec_ext in '' $ac_executable_extensions; do
2406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2407 ac_cv_prog_ac_ct_CXX="$ac_prog"
2408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2417 if test -n "$ac_ct_CXX"; then
2418 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2419 echo "${ECHO_T}$ac_ct_CXX" >&6
2421 echo "$as_me:$LINENO: result: no" >&5
2422 echo "${ECHO_T}no" >&6
2425 test -n "$ac_ct_CXX" && break
2427 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2433 # Provide some information about the compiler.
2434 echo "$as_me:$LINENO:" \
2435 "checking for C++ compiler version" >&5
2436 ac_compiler=`set X $ac_compile; echo $2`
2437 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2438 (eval $ac_compiler --version </dev/null >&5) 2>&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); }
2442 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2443 (eval $ac_compiler -v </dev/null >&5) 2>&5
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }
2447 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2448 (eval $ac_compiler -V </dev/null >&5) 2>&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }
2453 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2454 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2455 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 cat >conftest.$ac_ext <<_ACEOF
2459 #line $LINENO "configure"
2462 cat confdefs.h >>conftest.$ac_ext
2463 cat >>conftest.$ac_ext <<_ACEOF
2464 /* end confdefs.h. */
2477 rm -f conftest.$ac_objext
2478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2479 (eval $ac_compile) 2>&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); } &&
2483 { ac_try='test -s conftest.$ac_objext'
2484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; }; then
2491 echo "$as_me: failed program was:" >&5
2492 sed 's/^/| /' conftest.$ac_ext >&5
2496 rm -f conftest.$ac_objext conftest.$ac_ext
2497 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2500 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2501 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2502 GXX=`test $ac_compiler_gnu = yes && echo yes`
2503 ac_test_CXXFLAGS=${CXXFLAGS+set}
2504 ac_save_CXXFLAGS=$CXXFLAGS
2506 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2507 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2508 if test "${ac_cv_prog_cxx_g+set}" = set; then
2509 echo $ECHO_N "(cached) $ECHO_C" >&6
2511 cat >conftest.$ac_ext <<_ACEOF
2512 #line $LINENO "configure"
2515 cat confdefs.h >>conftest.$ac_ext
2516 cat >>conftest.$ac_ext <<_ACEOF
2517 /* end confdefs.h. */
2527 rm -f conftest.$ac_objext
2528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529 (eval $ac_compile) 2>&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } &&
2533 { ac_try='test -s conftest.$ac_objext'
2534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2538 (exit $ac_status); }; }; then
2539 ac_cv_prog_cxx_g=yes
2541 echo "$as_me: failed program was:" >&5
2542 sed 's/^/| /' conftest.$ac_ext >&5
2546 rm -f conftest.$ac_objext conftest.$ac_ext
2548 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2549 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2550 if test "$ac_test_CXXFLAGS" = set; then
2551 CXXFLAGS=$ac_save_CXXFLAGS
2552 elif test $ac_cv_prog_cxx_g = yes; then
2553 if test "$GXX" = yes; then
2559 if test "$GXX" = yes; then
2565 for ac_declaration in \
2567 '#include <stdlib.h>' \
2568 'extern "C" void std::exit (int) throw (); using std::exit;' \
2569 'extern "C" void std::exit (int); using std::exit;' \
2570 'extern "C" void exit (int) throw ();' \
2571 'extern "C" void exit (int);' \
2574 cat >conftest.$ac_ext <<_ACEOF
2575 #line $LINENO "configure"
2578 cat confdefs.h >>conftest.$ac_ext
2579 cat >>conftest.$ac_ext <<_ACEOF
2580 /* end confdefs.h. */
2591 rm -f conftest.$ac_objext
2592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2593 (eval $ac_compile) 2>&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); } &&
2597 { ac_try='test -s conftest.$ac_objext'
2598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); }; }; then
2605 echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2610 rm -f conftest.$ac_objext conftest.$ac_ext
2611 cat >conftest.$ac_ext <<_ACEOF
2612 #line $LINENO "configure"
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h. */
2627 rm -f conftest.$ac_objext
2628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2629 (eval $ac_compile) 2>&5
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
2633 { ac_try='test -s conftest.$ac_objext'
2634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2641 echo "$as_me: failed program was:" >&5
2642 sed 's/^/| /' conftest.$ac_ext >&5
2645 rm -f conftest.$ac_objext conftest.$ac_ext
2648 if test -n "$ac_declaration"; then
2649 echo '#ifdef __cplusplus' >>confdefs.h
2650 echo $ac_declaration >>confdefs.h
2651 echo '#endif' >>confdefs.h
2655 ac_cpp='$CPP $CPPFLAGS'
2656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2660 if test "x$CC" != xcc; then
2661 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2662 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2664 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2665 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2667 set dummy $CC; ac_cc=`echo $2 |
2668 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2669 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2670 echo $ECHO_N "(cached) $ECHO_C" >&6
2672 cat >conftest.$ac_ext <<_ACEOF
2673 #line $LINENO "configure"
2676 cat confdefs.h >>conftest.$ac_ext
2677 cat >>conftest.$ac_ext <<_ACEOF
2678 /* end confdefs.h. */
2688 # Make sure it works both with $CC and with simple cc.
2689 # We do the test twice because some compilers refuse to overwrite an
2690 # existing .o file with -o, though they will create one.
2691 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2692 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2696 (exit $ac_status); } &&
2697 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); };
2703 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2704 if test "x$CC" != xcc; then
2705 # Test first that cc exists at all.
2706 if { ac_try='cc -c conftest.$ac_ext >&5'
2707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }; }; then
2712 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2713 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); } &&
2718 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); };
2727 # cc exists but doesn't like -o.
2728 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2733 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2738 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2739 echo "$as_me:$LINENO: result: yes" >&5
2740 echo "${ECHO_T}yes" >&6
2742 echo "$as_me:$LINENO: result: no" >&5
2743 echo "${ECHO_T}no" >&6
2745 cat >>confdefs.h <<\_ACEOF
2746 #define NO_MINUS_C_MINUS_O 1
2752 ac_cpp='$CPP $CPPFLAGS'
2753 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2754 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2755 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2756 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2757 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2758 # On Suns, sometimes $CPP names a directory.
2759 if test -n "$CPP" && test -d "$CPP"; then
2762 if test -z "$CPP"; then
2763 if test "${ac_cv_prog_CPP+set}" = set; then
2764 echo $ECHO_N "(cached) $ECHO_C" >&6
2766 # Double quotes because CPP needs to be expanded
2767 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2770 for ac_c_preproc_warn_flag in '' yes
2772 # Use a header file that comes with gcc, so configuring glibc
2773 # with a fresh cross-compiler works.
2774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2775 # <limits.h> exists even on freestanding compilers.
2776 # On the NeXT, cc -E runs the code through the compiler's parser,
2777 # not just through cpp. "Syntax error" is here to catch this case.
2778 cat >conftest.$ac_ext <<_ACEOF
2779 #line $LINENO "configure"
2782 cat confdefs.h >>conftest.$ac_ext
2783 cat >>conftest.$ac_ext <<_ACEOF
2784 /* end confdefs.h. */
2786 # include <limits.h>
2788 # include <assert.h>
2792 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2793 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2795 grep -v '^ *+' conftest.er1 >conftest.err
2797 cat conftest.err >&5
2798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2799 (exit $ac_status); } >/dev/null; then
2800 if test -s conftest.err; then
2801 ac_cpp_err=$ac_c_preproc_warn_flag
2808 if test -z "$ac_cpp_err"; then
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2814 # Broken: fails on valid input.
2817 rm -f conftest.err conftest.$ac_ext
2819 # OK, works on sane cases. Now check whether non-existent headers
2820 # can be detected and how.
2821 cat >conftest.$ac_ext <<_ACEOF
2822 #line $LINENO "configure"
2825 cat confdefs.h >>conftest.$ac_ext
2826 cat >>conftest.$ac_ext <<_ACEOF
2827 /* end confdefs.h. */
2828 #include <ac_nonexistent.h>
2830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2833 grep -v '^ *+' conftest.er1 >conftest.err
2835 cat conftest.err >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); } >/dev/null; then
2838 if test -s conftest.err; then
2839 ac_cpp_err=$ac_c_preproc_warn_flag
2846 if test -z "$ac_cpp_err"; then
2847 # Broken: success on invalid input.
2850 echo "$as_me: failed program was:" >&5
2851 sed 's/^/| /' conftest.$ac_ext >&5
2853 # Passes both tests.
2857 rm -f conftest.err conftest.$ac_ext
2860 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2861 rm -f conftest.err conftest.$ac_ext
2862 if $ac_preproc_ok; then
2874 echo "$as_me:$LINENO: result: $CPP" >&5
2875 echo "${ECHO_T}$CPP" >&6
2877 for ac_c_preproc_warn_flag in '' yes
2879 # Use a header file that comes with gcc, so configuring glibc
2880 # with a fresh cross-compiler works.
2881 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2882 # <limits.h> exists even on freestanding compilers.
2883 # On the NeXT, cc -E runs the code through the compiler's parser,
2884 # not just through cpp. "Syntax error" is here to catch this case.
2885 cat >conftest.$ac_ext <<_ACEOF
2886 #line $LINENO "configure"
2889 cat confdefs.h >>conftest.$ac_ext
2890 cat >>conftest.$ac_ext <<_ACEOF
2891 /* end confdefs.h. */
2893 # include <limits.h>
2895 # include <assert.h>
2899 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2900 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2902 grep -v '^ *+' conftest.er1 >conftest.err
2904 cat conftest.err >&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); } >/dev/null; then
2907 if test -s conftest.err; then
2908 ac_cpp_err=$ac_c_preproc_warn_flag
2915 if test -z "$ac_cpp_err"; then
2918 echo "$as_me: failed program was:" >&5
2919 sed 's/^/| /' conftest.$ac_ext >&5
2921 # Broken: fails on valid input.
2924 rm -f conftest.err conftest.$ac_ext
2926 # OK, works on sane cases. Now check whether non-existent headers
2927 # can be detected and how.
2928 cat >conftest.$ac_ext <<_ACEOF
2929 #line $LINENO "configure"
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2935 #include <ac_nonexistent.h>
2937 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2938 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2940 grep -v '^ *+' conftest.er1 >conftest.err
2942 cat conftest.err >&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); } >/dev/null; then
2945 if test -s conftest.err; then
2946 ac_cpp_err=$ac_c_preproc_warn_flag
2953 if test -z "$ac_cpp_err"; then
2954 # Broken: success on invalid input.
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2960 # Passes both tests.
2964 rm -f conftest.err conftest.$ac_ext
2967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2968 rm -f conftest.err conftest.$ac_ext
2969 if $ac_preproc_ok; then
2972 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2973 See \`config.log' for more details." >&5
2974 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2975 See \`config.log' for more details." >&2;}
2976 { (exit 1); exit 1; }; }
2980 ac_cpp='$CPP $CPPFLAGS'
2981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2986 echo "$as_me:$LINENO: checking for egrep" >&5
2987 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2988 if test "${ac_cv_prog_egrep+set}" = set; then
2989 echo $ECHO_N "(cached) $ECHO_C" >&6
2991 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2992 then ac_cv_prog_egrep='grep -E'
2993 else ac_cv_prog_egrep='egrep'
2996 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2997 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2998 EGREP=$ac_cv_prog_egrep
3001 if test $ac_cv_c_compiler_gnu = yes; then
3002 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3003 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3004 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3005 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 ac_pattern="Autoconf.*'x'"
3008 cat >conftest.$ac_ext <<_ACEOF
3009 #line $LINENO "configure"
3012 cat confdefs.h >>conftest.$ac_ext
3013 cat >>conftest.$ac_ext <<_ACEOF
3014 /* end confdefs.h. */
3018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3019 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3020 ac_cv_prog_gcc_traditional=yes
3022 ac_cv_prog_gcc_traditional=no
3027 if test $ac_cv_prog_gcc_traditional = no; then
3028 cat >conftest.$ac_ext <<_ACEOF
3029 #line $LINENO "configure"
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3038 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3039 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3040 ac_cv_prog_gcc_traditional=yes
3046 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3047 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3048 if test $ac_cv_prog_gcc_traditional = yes; then
3049 CC="$CC -traditional"
3055 cat >>confdefs.h <<\_ACEOF
3061 # Find a good install program. We prefer a C program (faster),
3062 # so one script is as good as another. But avoid the broken or
3063 # incompatible versions:
3064 # SysV /etc/install, /usr/sbin/install
3065 # SunOS /usr/etc/install
3066 # IRIX /sbin/install
3068 # AmigaOS /C/install, which installs bootblocks on floppy discs
3069 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3070 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3071 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3072 # ./install, which can be erroneously created by make from ./install.sh.
3073 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3074 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3075 if test -z "$INSTALL"; then
3076 if test "${ac_cv_path_install+set}" = set; then
3077 echo $ECHO_N "(cached) $ECHO_C" >&6
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 test -z "$as_dir" && as_dir=.
3084 # Account for people who put trailing slashes in PATH elements.
3086 ./ | .// | /cC/* | \
3087 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3090 # OSF1 and SCO ODT 3.0 have their own names for install.
3091 # Don't use installbsd from OSF since it installs stuff as root
3093 for ac_prog in ginstall scoinst install; do
3094 for ac_exec_ext in '' $ac_executable_extensions; do
3095 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3096 if test $ac_prog = install &&
3097 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3098 # AIX install. It has an incompatible calling convention.
3100 elif test $ac_prog = install &&
3101 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3102 # program-specific install script used by HP pwplus--don't use.
3105 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3117 if test "${ac_cv_path_install+set}" = set; then
3118 INSTALL=$ac_cv_path_install
3120 # As a last resort, use the slow shell script. We don't cache a
3121 # path for INSTALL within a source directory, because that will
3122 # break other packages using the cache if that directory is
3123 # removed, or if the path is relative.
3124 INSTALL=$ac_install_sh
3127 echo "$as_me:$LINENO: result: $INSTALL" >&5
3128 echo "${ECHO_T}$INSTALL" >&6
3130 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3131 # It thinks the first close brace ends the variable substitution.
3132 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3134 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3136 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3138 if test -n "$ac_tool_prefix"; then
3139 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3141 echo "$as_me:$LINENO: checking for $ac_word" >&5
3142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3143 if test "${ac_cv_prog_RANLIB+set}" = set; then
3144 echo $ECHO_N "(cached) $ECHO_C" >&6
3146 if test -n "$RANLIB"; then
3147 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3156 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3165 RANLIB=$ac_cv_prog_RANLIB
3166 if test -n "$RANLIB"; then
3167 echo "$as_me:$LINENO: result: $RANLIB" >&5
3168 echo "${ECHO_T}$RANLIB" >&6
3170 echo "$as_me:$LINENO: result: no" >&5
3171 echo "${ECHO_T}no" >&6
3175 if test -z "$ac_cv_prog_RANLIB"; then
3176 ac_ct_RANLIB=$RANLIB
3177 # Extract the first word of "ranlib", so it can be a program name with args.
3178 set dummy ranlib; ac_word=$2
3179 echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3181 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 if test -n "$ac_ct_RANLIB"; then
3185 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3194 ac_cv_prog_ac_ct_RANLIB="ranlib"
3195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3204 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3205 if test -n "$ac_ct_RANLIB"; then
3206 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3207 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3209 echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6
3213 RANLIB=$ac_ct_RANLIB
3215 RANLIB="$ac_cv_prog_RANLIB"
3218 # Extract the first word of "mv", so it can be a program name with args.
3219 set dummy mv; ac_word=$2
3220 echo "$as_me:$LINENO: checking for $ac_word" >&5
3221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3222 if test "${ac_cv_path_MV+set}" = set; then
3223 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3234 test -z "$as_dir" && as_dir=.
3235 for ac_exec_ext in '' $ac_executable_extensions; do
3236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3237 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3250 if test -n "$MV"; then
3251 echo "$as_me:$LINENO: result: $MV" >&5
3252 echo "${ECHO_T}$MV" >&6
3254 echo "$as_me:$LINENO: result: no" >&5
3255 echo "${ECHO_T}no" >&6
3258 # Extract the first word of "rm", so it can be a program name with args.
3259 set dummy rm; ac_word=$2
3260 echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3262 if test "${ac_cv_path_RM+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3290 if test -n "$RM"; then
3291 echo "$as_me:$LINENO: result: $RM" >&5
3292 echo "${ECHO_T}$RM" >&6
3294 echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3298 # Extract the first word of "cp", so it can be a program name with args.
3299 set dummy cp; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_path_CP+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3330 if test -n "$CP"; then
3331 echo "$as_me:$LINENO: result: $CP" >&5
3332 echo "${ECHO_T}$CP" >&6
3334 echo "$as_me:$LINENO: result: no" >&5
3335 echo "${ECHO_T}no" >&6
3338 # Extract the first word of "sed", so it can be a program name with args.
3339 set dummy sed; ac_word=$2
3340 echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342 if test "${ac_cv_path_SED+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3370 if test -n "$SED"; then
3371 echo "$as_me:$LINENO: result: $SED" >&5
3372 echo "${ECHO_T}$SED" >&6
3374 echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6
3378 # Extract the first word of "awk", so it can be a program name with args.
3379 set dummy awk; ac_word=$2
3380 echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3382 if test "${ac_cv_path_AWK+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3410 if test -n "$AWK"; then
3411 echo "$as_me:$LINENO: result: $AWK" >&5
3412 echo "${ECHO_T}$AWK" >&6
3414 echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6
3418 # Extract the first word of "echo", so it can be a program name with args.
3419 set dummy echo; ac_word=$2
3420 echo "$as_me:$LINENO: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_path_ECHO+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3448 ECHO=$ac_cv_path_ECHO
3450 if test -n "$ECHO"; then
3451 echo "$as_me:$LINENO: result: $ECHO" >&5
3452 echo "${ECHO_T}$ECHO" >&6
3454 echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3458 # Extract the first word of "cmp", so it can be a program name with args.
3459 set dummy cmp; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_path_CMP+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 test -z "$as_dir" && as_dir=.
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3490 if test -n "$CMP"; then
3491 echo "$as_me:$LINENO: result: $CMP" >&5
3492 echo "${ECHO_T}$CMP" >&6
3494 echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3498 # Extract the first word of "tbl", so it can be a program name with args.
3499 set dummy tbl; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_path_TBL+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3530 if test -n "$TBL"; then
3531 echo "$as_me:$LINENO: result: $TBL" >&5
3532 echo "${ECHO_T}$TBL" >&6
3534 echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3538 # Extract the first word of "ar", so it can be a program name with args.
3539 set dummy ar; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_path_AR+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3570 if test -n "$AR"; then
3571 echo "$as_me:$LINENO: result: $AR" >&5
3572 echo "${ECHO_T}$AR" >&6
3574 echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3578 # Extract the first word of "openssl", so it can be a program name with args.
3579 set dummy openssl; ac_word=$2
3580 echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_path_OPENSSL+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3608 OPENSSL=$ac_cv_path_OPENSSL
3610 if test -n "$OPENSSL"; then
3611 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3612 echo "${ECHO_T}$OPENSSL" >&6
3614 echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3618 # Extract the first word of "mtx", so it can be a program name with args.
3619 set dummy mtx; ac_word=$2
3620 echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622 if test "${ac_cv_path_MTX+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3650 if test -n "$MTX"; then
3651 echo "$as_me:$LINENO: result: $MTX" >&5
3652 echo "${ECHO_T}$MTX" >&6
3654 echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3658 # Extract the first word of "pkg-config", so it can be a program name with args.
3659 set dummy pkg-config; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3688 PKGCONFIG=$ac_cv_path_PKGCONFIG
3690 if test -n "$PKGCONFIG"; then
3691 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3692 echo "${ECHO_T}$PKGCONFIG" >&6
3694 echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3698 # Extract the first word of "wx-config", so it can be a program name with args.
3699 set dummy wx-config; ac_word=$2
3700 echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3728 WXCONFIG=$ac_cv_path_WXCONFIG
3730 if test -n "$WXCONFIG"; then
3731 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3732 echo "${ECHO_T}$WXCONFIG" >&6
3734 echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3739 test -n "$ARFLAG" || ARFLAGS="cr"
3752 # Make sure we can run config.sub.
3753 $ac_config_sub sun4 >/dev/null 2>&1 ||
3754 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3755 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3756 { (exit 1); exit 1; }; }
3758 echo "$as_me:$LINENO: checking build system type" >&5
3759 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3760 if test "${ac_cv_build+set}" = set; then
3761 echo $ECHO_N "(cached) $ECHO_C" >&6
3763 ac_cv_build_alias=$build_alias
3764 test -z "$ac_cv_build_alias" &&
3765 ac_cv_build_alias=`$ac_config_guess`
3766 test -z "$ac_cv_build_alias" &&
3767 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3768 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3769 { (exit 1); exit 1; }; }
3770 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3771 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3772 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3773 { (exit 1); exit 1; }; }
3776 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3777 echo "${ECHO_T}$ac_cv_build" >&6
3779 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3780 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3781 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3785 echo "$as_me:$LINENO: checking host system type" >&5
3786 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3787 if test "${ac_cv_host+set}" = set; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3790 ac_cv_host_alias=$host_alias
3791 test -z "$ac_cv_host_alias" &&
3792 ac_cv_host_alias=$ac_cv_build_alias
3793 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3794 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3795 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3796 { (exit 1); exit 1; }; }
3799 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3800 echo "${ECHO_T}$ac_cv_host" >&6
3802 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3803 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3804 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3808 *cygwin* ) CYGWIN=yes;;
3812 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3818 HAVE_SUN_OS_FALSE='#'
3820 HAVE_SUN_OS_TRUE='#'
3823 cat >>confdefs.h <<\_ACEOF
3824 #define HAVE_SUN_OS 1
3832 HAVE_SUN_OS_FALSE='#'
3834 HAVE_SUN_OS_TRUE='#'
3839 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3845 HAVE_OSF1_OS_FALSE='#'
3847 HAVE_OSF1_OS_TRUE='#'
3850 cat >>confdefs.h <<\_ACEOF
3851 #define HAVE_OSF1_OS 1
3859 HAVE_OSF1_OS_FALSE='#'
3861 HAVE_OSF1_OS_TRUE='#'
3866 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3872 HAVE_AIX_OS_FALSE='#'
3874 HAVE_AIX_OS_TRUE='#'
3877 cat >>confdefs.h <<\_ACEOF
3878 #define HAVE_AIX_OS 1
3886 HAVE_AIX_OS_FALSE='#'
3888 HAVE_AIX_OS_TRUE='#'
3893 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3899 HAVE_HPUX_OS_FALSE='#'
3901 HAVE_HPUX_OS_TRUE='#'
3904 cat >>confdefs.h <<\_ACEOF
3905 #define HAVE_HPUX_OS 1
3913 HAVE_HPUX_OS_FALSE='#'
3915 HAVE_HPUX_OS_TRUE='#'
3920 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3926 HAVE_LINUX_OS_FALSE='#'
3928 HAVE_LINUX_OS_TRUE='#'
3929 HAVE_LINUX_OS_FALSE=
3931 cat >>confdefs.h <<\_ACEOF
3932 #define HAVE_LINUX_OS 1
3940 HAVE_LINUX_OS_FALSE='#'
3942 HAVE_LINUX_OS_TRUE='#'
3943 HAVE_LINUX_OS_FALSE=
3947 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3952 HAVE_FREEBSD_OS_TRUE=
3953 HAVE_FREEBSD_OS_FALSE='#'
3955 HAVE_FREEBSD_OS_TRUE='#'
3956 HAVE_FREEBSD_OS_FALSE=
3958 cat >>confdefs.h <<\_ACEOF
3959 #define HAVE_FREEBSD_OS 1
3966 HAVE_FREEBSD_OS_TRUE=
3967 HAVE_FREEBSD_OS_FALSE='#'
3969 HAVE_FREEBSD_OS_TRUE='#'
3970 HAVE_FREEBSD_OS_FALSE=
3974 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3979 HAVE_NETBSD_OS_TRUE=
3980 HAVE_NETBSD_OS_FALSE='#'
3982 HAVE_NETBSD_OS_TRUE='#'
3983 HAVE_NETBSD_OS_FALSE=
3985 cat >>confdefs.h <<\_ACEOF
3986 #define HAVE_NETBSD_OS 1
3993 HAVE_NETBSD_OS_TRUE=
3994 HAVE_NETBSD_OS_FALSE='#'
3996 HAVE_NETBSD_OS_TRUE='#'
3997 HAVE_NETBSD_OS_FALSE=
4001 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4006 HAVE_OPENBSD_OS_TRUE=
4007 HAVE_OPENBSD_OS_FALSE='#'
4009 HAVE_OPENBSD_OS_TRUE='#'
4010 HAVE_OPENBSD_OS_FALSE=
4012 cat >>confdefs.h <<\_ACEOF
4013 #define HAVE_OPENBSD_OS 1
4020 HAVE_OPENBSD_OS_TRUE=
4021 HAVE_OPENBSD_OS_FALSE='#'
4023 HAVE_OPENBSD_OS_TRUE='#'
4024 HAVE_OPENBSD_OS_FALSE=
4028 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4034 HAVE_BSDI_OS_FALSE='#'
4036 HAVE_BSDI_OS_TRUE='#'
4039 cat >>confdefs.h <<\_ACEOF
4040 #define HAVE_BSDI_OS 1
4048 HAVE_BSDI_OS_FALSE='#'
4050 HAVE_BSDI_OS_TRUE='#'
4055 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4061 HAVE_SGI_OS_FALSE='#'
4063 HAVE_SGI_OS_TRUE='#'
4066 cat >>confdefs.h <<\_ACEOF
4067 #define HAVE_SGI_OS 1
4075 HAVE_SGI_OS_FALSE='#'
4077 HAVE_SGI_OS_TRUE='#'
4082 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4088 HAVE_IRIX_OS_FALSE='#'
4090 HAVE_IRIX_OS_TRUE='#'
4093 cat >>confdefs.h <<\_ACEOF
4094 #define HAVE_IRIX_OS 1
4102 HAVE_IRIX_OS_FALSE='#'
4104 HAVE_IRIX_OS_TRUE='#'
4109 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4114 HAVE_DARWIN_OS_TRUE=
4115 HAVE_DARWIN_OS_FALSE='#'
4117 HAVE_DARWIN_OS_TRUE='#'
4118 HAVE_DARWIN_OS_FALSE=
4120 cat >>confdefs.h <<\_ACEOF
4121 #define HAVE_DARWIN_OS 1
4128 HAVE_DARWIN_OS_TRUE=
4129 HAVE_DARWIN_OS_FALSE='#'
4131 HAVE_DARWIN_OS_TRUE='#'
4132 HAVE_DARWIN_OS_FALSE=
4137 # -----------------------------------------------------------
4138 # ----------------------------------------------------------
4139 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4140 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4141 if test "x$DISTNAME" != "x"
4143 echo "distname set to $DISTNAME"
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4162 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4165 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4168 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4171 elif test -f /etc/SuSE-release
4174 elif test -d /etc/SuSEconfig
4177 elif test -f /etc/mandrake-release
4180 elif test -f /etc/whitebox-release
4183 elif test -f /etc/redhat-release
4186 elif test -f /etc/gentoo-release
4189 elif test -f /etc/debian_version
4192 elif test -f /etc/slackware-version
4195 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4198 elif test -f /etc/engarde-version
4201 elif test "$CYGWIN" = yes
4204 cat >>confdefs.h <<\_ACEOF
4205 #define HAVE_CYGWIN 1
4211 echo "$as_me:$LINENO: result: done" >&5
4212 echo "${ECHO_T}done" >&6
4215 # -----------------------------------------------------------
4216 # ----------------------------------------------------------
4221 INSIDE_GNOME_COMMON_TRUE=
4222 INSIDE_GNOME_COMMON_FALSE='#'
4224 INSIDE_GNOME_COMMON_TRUE='#'
4225 INSIDE_GNOME_COMMON_FALSE=
4228 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4230 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4233 # ------------------------------------------------------------------
4234 # If the user has not set --prefix, we set our default to nothing.
4235 # In this case, if the user has not set --sysconfdir, we set it
4236 # to the package default of /etc/bacula. If either --prefix or
4237 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4238 # ------------------------------------------------------------------
4239 if test x${prefix} = xNONE ; then
4240 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4241 sysconfdir=/etc/bacula
4245 sysconfdir=`eval echo ${sysconfdir}`
4247 # -------------------------------------------------------------------------
4248 # If the user has not set --exec-prefix, we default to ${prefix}
4249 # -------------------------------------------------------------------------
4250 if test x${exec_prefix} = xNONE ; then
4251 exec_prefix=${prefix}
4254 # ------------------------------------------------------------------
4255 # If the user has not set --sbindir, we set our default as /sbin
4256 # ------------------------------------------------------------------
4257 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4258 sbindir=${exec_prefix}/sbin
4260 sbindir=`eval echo ${sbindir}`
4262 # ------------------------------------------------------------------
4263 # All list of languages for which a translation exist. Each
4264 # language is separated by a space.
4265 # ------------------------------------------------------------------
4268 for ac_prog in msgfmt
4270 # Extract the first word of "$ac_prog", so it can be a program name with args.
4271 set dummy $ac_prog; ac_word=$2
4272 echo "$as_me:$LINENO: checking for $ac_word" >&5
4273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4274 if test "${ac_cv_path_MSGFMT+set}" = set; then
4275 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 MSGFMT=$ac_cv_path_MSGFMT
4301 if test -n "$MSGFMT"; then
4302 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4303 echo "${ECHO_T}$MSGFMT" >&6
4305 echo "$as_me:$LINENO: result: no" >&5
4306 echo "${ECHO_T}no" >&6
4309 test -n "$MSGFMT" && break
4311 test -n "$MSGFMT" || MSGFMT="no"
4313 if test "$MSGFMT" = "no"
4315 echo 'msgfmt program not found, disabling NLS !'
4317 USE_INCLUDED_LIBINTL=no
4325 support_postgresql=no
4326 support_smartalloc=yes
4327 support_readline=yes
4330 support_wx_console=no
4332 support_static_tools=no
4333 support_static_fd=no
4334 support_static_sd=no
4335 support_static_dir=no
4336 support_static_cons=no
4337 build_client_only=no
4343 # -------------------------------------------
4344 # gnome (default off)
4345 # -------------------------------------------
4346 # Check whether --enable-gnome or --disable-gnome was given.
4347 if test "${enable_gnome+set}" = set; then
4348 enableval="$enable_gnome"
4349 if test x$enableval = xyes; then
4355 if test x$support_gnome = xyes; then
4356 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4358 if test $pkg = 0; then
4359 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4360 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4361 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4362 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4367 GNOME_DIR=src/gnome2-console
4368 gnome_version="Version 2.x"
4381 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4382 if test "${with_gnome_includes+set}" = set; then
4383 withval="$with_gnome_includes"
4385 CFLAGS="$CFLAGS -I$withval"
4390 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4391 if test "${with_gnome_libs+set}" = set; then
4392 withval="$with_gnome_libs"
4394 LDFLAGS="$LDFLAGS -L$withval"
4395 gnome_prefix=$withval
4400 # Check whether --with-gnome or --without-gnome was given.
4401 if test "${with_gnome+set}" = set; then
4402 withval="$with_gnome"
4403 if test x$withval = xyes; then
4407 if test "x$withval" = xno; then
4411 LDFLAGS="$LDFLAGS -L$withval/lib"
4412 CFLAGS="$CFLAGS -I$withval/include"
4413 gnome_prefix=$withval/lib
4420 if test "x$want_gnome" = xyes; then
4422 # Extract the first word of "gnome-config", so it can be a program name with args.
4423 set dummy gnome-config; ac_word=$2
4424 echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4426 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 case $GNOME_CONFIG in
4431 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4438 test -z "$as_dir" && as_dir=.
4439 for ac_exec_ext in '' $ac_executable_extensions; do
4440 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4441 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4452 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4454 if test -n "$GNOME_CONFIG"; then
4455 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4456 echo "${ECHO_T}$GNOME_CONFIG" >&6
4458 echo "$as_me:$LINENO: result: no" >&5
4459 echo "${ECHO_T}no" >&6
4462 if test "$GNOME_CONFIG" = "no"; then
4463 no_gnome_config="yes"
4465 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4466 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4467 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4468 echo "$as_me:$LINENO: result: yes" >&5
4469 echo "${ECHO_T}yes" >&6
4472 # Extract the first word of "orbit-config", so it can be a program name with args.
4473 set dummy orbit-config; ac_word=$2
4474 echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 case $ORBIT_CONFIG in
4481 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4502 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4504 if test -n "$ORBIT_CONFIG"; then
4505 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4506 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4508 echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6
4512 # Extract the first word of "orbit-idl", so it can be a program name with args.
4513 set dummy orbit-idl; ac_word=$2
4514 echo "$as_me:$LINENO: checking for $ac_word" >&5
4515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4516 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4517 echo $ECHO_N "(cached) $ECHO_C" >&6
4521 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4528 test -z "$as_dir" && as_dir=.
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4531 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4538 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4542 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4544 if test -n "$ORBIT_IDL"; then
4545 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4546 echo "${ECHO_T}$ORBIT_IDL" >&6
4548 echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6
4552 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4553 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4554 if test "${gnome_cv_orbit_found+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4559 gnome_cv_orbit_found=no
4561 gnome_cv_orbit_found=yes
4565 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4566 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4569 if test x$gnome_cv_orbit_found = xyes; then
4571 HAVE_ORBIT_FALSE='#'
4576 if test x$gnome_cv_orbit_found = xyes; then
4578 ORBIT_CFLAGS=`orbit-config --cflags client server`
4579 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4583 if test xfail = xfailure; then
4584 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4585 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4586 { (exit 1); exit 1; }; }
4590 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4591 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4592 if test "${gnome_cv_gnorba_found+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 gnome_cv_gnorba_found=no
4597 if test x$gnome_cv_orbit_found = xyes; then
4598 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4599 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4600 if test -n "$GNORBA_LIBS"; then
4601 gnome_cv_gnorba_found=yes
4606 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4607 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4610 if test x$gnome_cv_gnorba_found = xyes; then
4612 HAVE_GNORBA_FALSE='#'
4614 HAVE_GNORBA_TRUE='#'
4617 if test x$gnome_cv_orbit_found = xyes; then
4619 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4620 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4624 if test xfail = xfailure; then
4625 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4626 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4627 { (exit 1); exit 1; }; }
4631 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4632 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4633 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4634 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4635 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4636 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4637 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4640 echo "$as_me:$LINENO: result: no" >&5
4641 echo "${ECHO_T}no" >&6
4642 no_gnome_config="yes"
4646 if test x$exec_prefix = xNONE; then
4647 if test x$prefix = xNONE; then
4648 gnome_prefix=$ac_default_prefix/lib
4650 gnome_prefix=$prefix/lib
4653 gnome_prefix=`eval echo \`echo $libdir\``
4656 if test "$no_gnome_config" = "yes"; then
4657 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4658 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4659 if test -f $gnome_prefix/gnomeConf.sh; then
4660 echo "$as_me:$LINENO: result: found" >&5
4661 echo "${ECHO_T}found" >&6
4662 echo "loading gnome configuration from" \
4663 "$gnome_prefix/gnomeConf.sh"
4664 . $gnome_prefix/gnomeConf.sh
4667 echo "$as_me:$LINENO: result: not found" >&5
4668 echo "${ECHO_T}not found" >&6
4669 if test xfail = xfail; then
4670 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4671 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4672 { (exit 1); exit 1; }; }
4681 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4682 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4686 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4687 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4688 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4691 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4692 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4693 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4696 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4697 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4698 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4700 echo "$as_me:$LINENO: result: unknown library" >&5
4701 echo "${ECHO_T}unknown library" >&6
4703 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4704 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4709 GNOME_DIR=src/gnome-console
4710 gnome_version="Version 1.4"
4716 # -------------------------------------------
4717 # wx-console (default off)
4718 # -------------------------------------------
4719 # Check whether --enable-wx-console or --disable-wx-console was given.
4720 if test "${enable_wx_console+set}" = set; then
4721 enableval="$enable_wx_console"
4722 if test x$enableval = xyes; then
4723 support_wx_console=yes
4728 if test x$support_wx_console = xyes; then
4729 abc=`$WXCONFIG --cppflags`
4731 if test $pkg = 0; then
4732 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4733 WXCONS_LDFLAGS=`$WXCONFIG --libs`
4736 WX_DIR=src/wx-console
4739 echo "wx-config program not found. wx-console disabled."
4741 support_wx_console=no
4747 # -------------------------------------------
4748 # tray-monitor (default off)
4749 # -------------------------------------------
4750 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4751 if test "${enable_tray_monitor+set}" = set; then
4752 enableval="$enable_tray_monitor"
4753 if test x$enableval = xyes; then
4754 support_tray_monitor=yes
4759 if test x$support_tray_monitor = xyes; then
4760 abc=`$PKGCONFIG --exists gtk+-2.0`
4762 if test $pkg = 0; then
4763 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4764 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4767 TRAY_MONITOR_DIR=src/tray-monitor
4768 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4770 if test $pkg = 0; then
4771 cat >>confdefs.h <<\_ACEOF
4772 #define HAVE_GTK_2_4 1
4780 # -------------------------------------------
4781 # smartalloc (default off)
4782 # -------------------------------------------
4783 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4784 if test "${enable_smartalloc+set}" = set; then
4785 enableval="$enable_smartalloc"
4786 if test x$enableval = xno; then
4787 support_smartalloc=no
4791 if test x$support_smartalloc = xyes; then
4792 cat >>confdefs.h <<\_ACEOF
4793 #define SMARTALLOC 1
4798 # -------------------------------------------
4799 # static-tools (default off)
4800 # -------------------------------------------
4801 # Check whether --enable-static-tools or --disable-static-tools was given.
4802 if test "${enable_static_tools+set}" = set; then
4803 enableval="$enable_static_tools"
4804 if test x$enableval = xyes; then
4805 support_static_tools=yes
4810 if test x$support_static_tools = xyes; then
4811 TTOOL_LDFLAGS="-static"
4815 # -------------------------------------------
4816 # static-fd (default off)
4817 # -------------------------------------------
4818 # Check whether --enable-static-fd or --disable-static-fd was given.
4819 if test "${enable_static_fd+set}" = set; then
4820 enableval="$enable_static_fd"
4821 if test x$enableval = xyes; then
4822 support_static_fd=yes
4827 if test x$support_static_fd = xyes; then
4828 STATIC_FD="static-bacula-fd"
4832 # -------------------------------------------
4833 # static-sd (default off)
4834 # -------------------------------------------
4835 # Check whether --enable-static-sd or --disable-static-sd was given.
4836 if test "${enable_static_sd+set}" = set; then
4837 enableval="$enable_static_sd"
4838 if test x$enableval = xyes; then
4839 support_static_sd=yes
4844 if test x$support_static_sd = xyes; then
4845 STATIC_SD="static-bacula-sd"
4849 # -------------------------------------------
4850 # static-dir (default off)
4851 # -------------------------------------------
4852 # Check whether --enable-static-dir or --disable-static-dir was given.
4853 if test "${enable_static_dir+set}" = set; then
4854 enableval="$enable_static_dir"
4855 if test x$enableval = xyes; then
4856 support_static_dir=yes
4861 if test x$support_static_dir = xyes; then
4862 STATIC_DIR="static-bacula-dir"
4866 # -------------------------------------------
4867 # static-cons (default off)
4868 # -------------------------------------------
4869 # Check whether --enable-static-cons or --disable-static-cons was given.
4870 if test "${enable_static_cons+set}" = set; then
4871 enableval="$enable_static_cons"
4872 if test x$enableval = xyes; then
4873 support_static_cons=yes
4880 if test x$support_static_cons = xyes; then
4881 STATIC_CONS="static-bconsole"
4882 STATIC_GNOME_CONS="static-gnome-console"
4883 STATIC_WX_CONS="static-wx-console"
4889 # -------------------------------------------
4890 # client_only (default off)
4891 # -------------------------------------------
4892 # Check whether --enable-client-only or --disable-client-only was given.
4893 if test "${enable_client_only+set}" = set; then
4894 enableval="$enable_client_only"
4895 if test x$enableval = xyes; then
4896 build_client_only=yes
4901 if test x$build_client_only = xno; then
4908 # ---------------------------------------------------
4909 # Check for conio (Bacula readline substitute)(
4910 # ---------------------------------------------------
4911 # this allows you to turn it completely off
4912 # Check whether --enable-conio or --disable-conio was given.
4913 if test "${enable_conio+set}" = set; then
4914 enableval="$enable_conio"
4915 if test x$enableval = xno; then
4921 if test x$support_conio = xyes; then
4922 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4923 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4924 if test "${ac_cv_header_stdc+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4927 cat >conftest.$ac_ext <<_ACEOF
4928 #line $LINENO "configure"
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4947 rm -f conftest.$ac_objext
4948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4949 (eval $ac_compile) 2>&5
4951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952 (exit $ac_status); } &&
4953 { ac_try='test -s conftest.$ac_objext'
4954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }; }; then
4959 ac_cv_header_stdc=yes
4961 echo "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4964 ac_cv_header_stdc=no
4966 rm -f conftest.$ac_objext conftest.$ac_ext
4968 if test $ac_cv_header_stdc = yes; then
4969 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4970 cat >conftest.$ac_ext <<_ACEOF
4971 #line $LINENO "configure"
4974 cat confdefs.h >>conftest.$ac_ext
4975 cat >>conftest.$ac_ext <<_ACEOF
4976 /* end confdefs.h. */
4980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4981 $EGREP "memchr" >/dev/null 2>&1; then
4984 ac_cv_header_stdc=no
4990 if test $ac_cv_header_stdc = yes; then
4991 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4992 cat >conftest.$ac_ext <<_ACEOF
4993 #line $LINENO "configure"
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
5002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5003 $EGREP "free" >/dev/null 2>&1; then
5006 ac_cv_header_stdc=no
5012 if test $ac_cv_header_stdc = yes; then
5013 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5014 if test "$cross_compiling" = yes; then
5017 cat >conftest.$ac_ext <<_ACEOF
5018 #line $LINENO "configure"
5021 cat confdefs.h >>conftest.$ac_ext
5022 cat >>conftest.$ac_ext <<_ACEOF
5023 /* end confdefs.h. */
5025 #if ((' ' & 0x0FF) == 0x020)
5026 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5027 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5029 # define ISLOWER(c) \
5030 (('a' <= (c) && (c) <= 'i') \
5031 || ('j' <= (c) && (c) <= 'r') \
5032 || ('s' <= (c) && (c) <= 'z'))
5033 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5036 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5041 for (i = 0; i < 256; i++)
5042 if (XOR (islower (i), ISLOWER (i))
5043 || toupper (i) != TOUPPER (i))
5048 rm -f conftest$ac_exeext
5049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5050 (eval $ac_link) 2>&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); }; }; then
5061 echo "$as_me: program exited with status $ac_status" >&5
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5066 ac_cv_header_stdc=no
5068 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5072 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5073 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5074 if test $ac_cv_header_stdc = yes; then
5076 cat >>confdefs.h <<\_ACEOF
5077 #define STDC_HEADERS 1
5082 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5092 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5093 inttypes.h stdint.h unistd.h
5095 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5096 echo "$as_me:$LINENO: checking for $ac_header" >&5
5097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 cat >conftest.$ac_ext <<_ACEOF
5102 #line $LINENO "configure"
5105 cat confdefs.h >>conftest.$ac_ext
5106 cat >>conftest.$ac_ext <<_ACEOF
5107 /* end confdefs.h. */
5108 $ac_includes_default
5110 #include <$ac_header>
5112 rm -f conftest.$ac_objext
5113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5114 (eval $ac_compile) 2>&5
5116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } &&
5118 { ac_try='test -s conftest.$ac_objext'
5119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); }; }; then
5124 eval "$as_ac_Header=yes"
5126 echo "$as_me: failed program was:" >&5
5127 sed 's/^/| /' conftest.$ac_ext >&5
5129 eval "$as_ac_Header=no"
5131 rm -f conftest.$ac_objext conftest.$ac_ext
5133 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5134 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5135 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5136 cat >>confdefs.h <<_ACEOF
5137 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5145 if test "${ac_cv_header_termcap_h+set}" = set; then
5146 echo "$as_me:$LINENO: checking for termcap.h" >&5
5147 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5148 if test "${ac_cv_header_termcap_h+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5152 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5154 # Is the header compilable?
5155 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5156 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5157 cat >conftest.$ac_ext <<_ACEOF
5158 #line $LINENO "configure"
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h. */
5164 $ac_includes_default
5165 #include <termcap.h>
5167 rm -f conftest.$ac_objext
5168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5169 (eval $ac_compile) 2>&5
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } &&
5173 { ac_try='test -s conftest.$ac_objext'
5174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178 (exit $ac_status); }; }; then
5179 ac_header_compiler=yes
5181 echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5184 ac_header_compiler=no
5186 rm -f conftest.$ac_objext conftest.$ac_ext
5187 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5188 echo "${ECHO_T}$ac_header_compiler" >&6
5190 # Is the header present?
5191 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5192 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5193 cat >conftest.$ac_ext <<_ACEOF
5194 #line $LINENO "configure"
5197 cat confdefs.h >>conftest.$ac_ext
5198 cat >>conftest.$ac_ext <<_ACEOF
5199 /* end confdefs.h. */
5200 #include <termcap.h>
5202 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5205 grep -v '^ *+' conftest.er1 >conftest.err
5207 cat conftest.err >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209 (exit $ac_status); } >/dev/null; then
5210 if test -s conftest.err; then
5211 ac_cpp_err=$ac_c_preproc_warn_flag
5218 if test -z "$ac_cpp_err"; then
5219 ac_header_preproc=yes
5221 echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5224 ac_header_preproc=no
5226 rm -f conftest.err conftest.$ac_ext
5227 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5228 echo "${ECHO_T}$ac_header_preproc" >&6
5230 # So? What about this header?
5231 case $ac_header_compiler:$ac_header_preproc in
5233 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5234 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5235 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5236 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5239 ## ------------------------------------ ##
5240 ## Report this to bug-autoconf@gnu.org. ##
5241 ## ------------------------------------ ##
5244 sed "s/^/$as_me: WARNING: /" >&2
5247 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5248 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5249 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5250 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5251 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5252 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5255 ## ------------------------------------ ##
5256 ## Report this to bug-autoconf@gnu.org. ##
5257 ## ------------------------------------ ##
5260 sed "s/^/$as_me: WARNING: /" >&2
5263 echo "$as_me:$LINENO: checking for termcap.h" >&5
5264 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5265 if test "${ac_cv_header_termcap_h+set}" = set; then
5266 echo $ECHO_N "(cached) $ECHO_C" >&6
5268 ac_cv_header_termcap_h=$ac_header_preproc
5270 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5271 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5274 if test $ac_cv_header_termcap_h = yes; then
5275 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5276 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5277 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5278 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 ac_check_lib_save_LIBS=$LIBS
5281 LIBS="-ltermcap $LIBS"
5282 cat >conftest.$ac_ext <<_ACEOF
5283 #line $LINENO "configure"
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h. */
5290 /* Override any gcc2 internal prototype to avoid an error. */
5294 /* We use char because int might match the return type of a gcc2
5295 builtin and then its argument prototype would still apply. */
5305 rm -f conftest.$ac_objext conftest$ac_exeext
5306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5307 (eval $ac_link) 2>&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); } &&
5311 { ac_try='test -s conftest$ac_exeext'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; }; then
5317 ac_cv_lib_termcap_tgetent=yes
5319 echo "$as_me: failed program was:" >&5
5320 sed 's/^/| /' conftest.$ac_ext >&5
5322 ac_cv_lib_termcap_tgetent=no
5324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5325 LIBS=$ac_check_lib_save_LIBS
5327 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5328 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5329 if test $ac_cv_lib_termcap_tgetent = yes; then
5330 CONS_LIBS="-ltermcap"
5336 cat >>confdefs.h <<\_ACEOF
5337 #define HAVE_CONIO 1
5342 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5343 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5344 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5345 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 ac_check_lib_save_LIBS=$LIBS
5348 LIBS="-lncurses $LIBS"
5349 cat >conftest.$ac_ext <<_ACEOF
5350 #line $LINENO "configure"
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h. */
5357 /* Override any gcc2 internal prototype to avoid an error. */
5361 /* We use char because int might match the return type of a gcc2
5362 builtin and then its argument prototype would still apply. */
5372 rm -f conftest.$ac_objext conftest$ac_exeext
5373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5374 (eval $ac_link) 2>&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } &&
5378 { ac_try='test -s conftest$ac_exeext'
5379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }; }; then
5384 ac_cv_lib_ncurses_tgetent=yes
5386 echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5389 ac_cv_lib_ncurses_tgetent=no
5391 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5392 LIBS=$ac_check_lib_save_LIBS
5394 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5395 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5396 if test $ac_cv_lib_ncurses_tgetent = yes; then
5397 CONS_LIBS="-lncurses"
5403 cat >>confdefs.h <<\_ACEOF
5404 #define HAVE_CONIO 1
5409 echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5417 echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5424 # ---------------------------------------------------
5425 # Check for readline support/directory (default off)
5426 # ---------------------------------------------------
5427 # this allows you to turn it completely off
5428 # Check whether --enable-readline or --disable-readline was given.
5429 if test "${enable_readline+set}" = set; then
5430 enableval="$enable_readline"
5431 if test x$enableval = xno; then
5438 if test x$support_readline = xyes; then
5440 # Check whether --with-readline or --without-readline was given.
5441 if test "${with_readline+set}" = set; then
5442 withval="$with_readline"
5444 case "$with_readline" in
5447 if test "$with_readline" != "yes"; then
5448 CONS_INC="-I${with_readline}"
5449 CONS_LDFLAGS="-L$with_readline"
5451 with_readline="/usr/include/readline"
5453 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5454 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5455 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5456 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5458 echo $ECHO_N "(cached) $ECHO_C" >&6
5460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5461 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5463 # Is the header compilable?
5464 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5465 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5466 cat >conftest.$ac_ext <<_ACEOF
5467 #line $LINENO "configure"
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h. */
5473 $ac_includes_default
5474 #include <${with_readline}/readline.h>
5476 rm -f conftest.$ac_objext
5477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5478 (eval $ac_compile) 2>&5
5480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481 (exit $ac_status); } &&
5482 { ac_try='test -s conftest.$ac_objext'
5483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5487 (exit $ac_status); }; }; then
5488 ac_header_compiler=yes
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5493 ac_header_compiler=no
5495 rm -f conftest.$ac_objext conftest.$ac_ext
5496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5497 echo "${ECHO_T}$ac_header_compiler" >&6
5499 # Is the header present?
5500 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5501 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5502 cat >conftest.$ac_ext <<_ACEOF
5503 #line $LINENO "configure"
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h. */
5509 #include <${with_readline}/readline.h>
5511 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5514 grep -v '^ *+' conftest.er1 >conftest.err
5516 cat conftest.err >&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); } >/dev/null; then
5519 if test -s conftest.err; then
5520 ac_cpp_err=$ac_c_preproc_warn_flag
5527 if test -z "$ac_cpp_err"; then
5528 ac_header_preproc=yes
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5533 ac_header_preproc=no
5535 rm -f conftest.err conftest.$ac_ext
5536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5537 echo "${ECHO_T}$ac_header_preproc" >&6
5539 # So? What about this header?
5540 case $ac_header_compiler:$ac_header_preproc in
5542 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5543 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5544 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5545 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5548 ## ------------------------------------ ##
5549 ## Report this to bug-autoconf@gnu.org. ##
5550 ## ------------------------------------ ##
5553 sed "s/^/$as_me: WARNING: /" >&2
5556 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5557 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5558 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5559 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5560 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5561 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5564 ## ------------------------------------ ##
5565 ## Report this to bug-autoconf@gnu.org. ##
5566 ## ------------------------------------ ##
5569 sed "s/^/$as_me: WARNING: /" >&2
5572 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5573 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5574 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5575 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 eval "$as_ac_Header=$ac_header_preproc"
5579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5580 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5584 cat >>confdefs.h <<\_ACEOF
5585 #define HAVE_READLINE 1
5588 CONS_LIBS="-lreadline -ltermcap"
5593 echo "readline.h not found. readline turned off ..."
5605 # check for standard readline library
5606 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5607 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5608 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5609 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5613 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5615 # Is the header compilable?
5616 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5617 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5618 cat >conftest.$ac_ext <<_ACEOF
5619 #line $LINENO "configure"
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h. */
5625 $ac_includes_default
5626 #include </usr/include/readline/readline.h>
5628 rm -f conftest.$ac_objext
5629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630 (eval $ac_compile) 2>&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } &&
5634 { ac_try='test -s conftest.$ac_objext'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
5640 ac_header_compiler=yes
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5645 ac_header_compiler=no
5647 rm -f conftest.$ac_objext conftest.$ac_ext
5648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5649 echo "${ECHO_T}$ac_header_compiler" >&6
5651 # Is the header present?
5652 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5653 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5654 cat >conftest.$ac_ext <<_ACEOF
5655 #line $LINENO "configure"
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 #include </usr/include/readline/readline.h>
5663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5666 grep -v '^ *+' conftest.er1 >conftest.err
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } >/dev/null; then
5671 if test -s conftest.err; then
5672 ac_cpp_err=$ac_c_preproc_warn_flag
5679 if test -z "$ac_cpp_err"; then
5680 ac_header_preproc=yes
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5685 ac_header_preproc=no
5687 rm -f conftest.err conftest.$ac_ext
5688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5689 echo "${ECHO_T}$ac_header_preproc" >&6
5691 # So? What about this header?
5692 case $ac_header_compiler:$ac_header_preproc in
5694 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5695 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5696 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5697 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5700 ## ------------------------------------ ##
5701 ## Report this to bug-autoconf@gnu.org. ##
5702 ## ------------------------------------ ##
5705 sed "s/^/$as_me: WARNING: /" >&2
5708 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5709 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5710 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5711 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5712 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5713 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5716 ## ------------------------------------ ##
5717 ## Report this to bug-autoconf@gnu.org. ##
5718 ## ------------------------------------ ##
5721 sed "s/^/$as_me: WARNING: /" >&2
5724 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5725 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5726 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5731 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5732 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5735 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5736 cat >>confdefs.h <<\_ACEOF
5737 #define HAVE_READLINE 1
5741 CONS_INC="-I/usr/include/readline"
5742 CONS_LIBS="-lreadline -ltermcap"
5746 # Did not find standard library, so try Bacula's default
5747 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5749 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5750 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5755 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5757 # Is the header compilable?
5758 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5759 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5760 cat >conftest.$ac_ext <<_ACEOF
5761 #line $LINENO "configure"
5764 cat confdefs.h >>conftest.$ac_ext
5765 cat >>conftest.$ac_ext <<_ACEOF
5766 /* end confdefs.h. */
5767 $ac_includes_default
5768 #include <${TOP_DIR}/depkgs/readline/readline.h>
5770 rm -f conftest.$ac_objext
5771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5772 (eval $ac_compile) 2>&5
5774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5775 (exit $ac_status); } &&
5776 { ac_try='test -s conftest.$ac_objext'
5777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); }; }; then
5782 ac_header_compiler=yes
5784 echo "$as_me: failed program was:" >&5
5785 sed 's/^/| /' conftest.$ac_ext >&5
5787 ac_header_compiler=no
5789 rm -f conftest.$ac_objext conftest.$ac_ext
5790 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5791 echo "${ECHO_T}$ac_header_compiler" >&6
5793 # Is the header present?
5794 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5795 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5796 cat >conftest.$ac_ext <<_ACEOF
5797 #line $LINENO "configure"
5800 cat confdefs.h >>conftest.$ac_ext
5801 cat >>conftest.$ac_ext <<_ACEOF
5802 /* end confdefs.h. */
5803 #include <${TOP_DIR}/depkgs/readline/readline.h>
5805 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5808 grep -v '^ *+' conftest.er1 >conftest.err
5810 cat conftest.err >&5
5811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5812 (exit $ac_status); } >/dev/null; then
5813 if test -s conftest.err; then
5814 ac_cpp_err=$ac_c_preproc_warn_flag
5821 if test -z "$ac_cpp_err"; then
5822 ac_header_preproc=yes
5824 echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5827 ac_header_preproc=no
5829 rm -f conftest.err conftest.$ac_ext
5830 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5831 echo "${ECHO_T}$ac_header_preproc" >&6
5833 # So? What about this header?
5834 case $ac_header_compiler:$ac_header_preproc in
5836 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5837 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5838 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5839 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5842 ## ------------------------------------ ##
5843 ## Report this to bug-autoconf@gnu.org. ##
5844 ## ------------------------------------ ##
5847 sed "s/^/$as_me: WARNING: /" >&2
5850 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5851 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5852 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5853 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5854 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5855 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5858 ## ------------------------------------ ##
5859 ## Report this to bug-autoconf@gnu.org. ##
5860 ## ------------------------------------ ##
5863 sed "s/^/$as_me: WARNING: /" >&2
5866 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5867 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5868 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5869 echo $ECHO_N "(cached) $ECHO_C" >&6
5871 eval "$as_ac_Header=$ac_header_preproc"
5873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5878 cat >>confdefs.h <<\_ACEOF
5879 #define HAVE_READLINE 1
5883 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5884 CONS_LIBS="-lreadline -lhistory -ltermcap"
5885 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5886 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5890 echo "readline.h not found. readline turned off ..."
5916 # Minimal stuff for readline Makefile configuration
5919 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5920 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5921 if test "${ac_cv_header_stat_broken+set}" = set; then
5922 echo $ECHO_N "(cached) $ECHO_C" >&6
5924 cat >conftest.$ac_ext <<_ACEOF
5925 #line $LINENO "configure"
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5931 #include <sys/types.h>
5932 #include <sys/stat.h>
5934 #if defined(S_ISBLK) && defined(S_IFDIR)
5935 # if S_ISBLK (S_IFDIR)
5940 #if defined(S_ISBLK) && defined(S_IFCHR)
5941 # if S_ISBLK (S_IFCHR)
5946 #if defined(S_ISLNK) && defined(S_IFREG)
5947 # if S_ISLNK (S_IFREG)
5952 #if defined(S_ISSOCK) && defined(S_IFREG)
5953 # if S_ISSOCK (S_IFREG)
5959 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5960 $EGREP "You lose" >/dev/null 2>&1; then
5961 ac_cv_header_stat_broken=yes
5963 ac_cv_header_stat_broken=no
5968 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5969 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5970 if test $ac_cv_header_stat_broken = yes; then
5972 cat >>confdefs.h <<\_ACEOF
5973 #define STAT_MACROS_BROKEN 1
5984 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5985 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5986 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5987 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 cat >conftest.$ac_ext <<_ACEOF
5992 #line $LINENO "configure"
5995 cat confdefs.h >>conftest.$ac_ext
5996 cat >>conftest.$ac_ext <<_ACEOF
5997 /* end confdefs.h. */
5998 #include <sys/types.h>
6010 rm -f conftest.$ac_objext
6011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6012 (eval $ac_compile) 2>&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } &&
6016 { ac_try='test -s conftest.$ac_objext'
6017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6022 eval "$as_ac_Header=yes"
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6027 eval "$as_ac_Header=no"
6029 rm -f conftest.$ac_objext conftest.$ac_ext
6031 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6032 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6034 cat >>confdefs.h <<_ACEOF
6035 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6038 ac_header_dirent=$ac_hdr; break
6042 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6043 if test $ac_header_dirent = dirent.h; then
6044 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6045 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6046 if test "${ac_cv_search_opendir+set}" = set; then
6047 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 ac_func_search_save_LIBS=$LIBS
6050 ac_cv_search_opendir=no
6051 cat >conftest.$ac_ext <<_ACEOF
6052 #line $LINENO "configure"
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6059 /* Override any gcc2 internal prototype to avoid an error. */
6063 /* We use char because int might match the return type of a gcc2
6064 builtin and then its argument prototype would still apply. */
6074 rm -f conftest.$ac_objext conftest$ac_exeext
6075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6076 (eval $ac_link) 2>&5
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); } &&
6080 { ac_try='test -s conftest$ac_exeext'
6081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }; }; then
6086 ac_cv_search_opendir="none required"
6088 echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6092 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6093 if test "$ac_cv_search_opendir" = no; then
6094 for ac_lib in dir; do
6095 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6096 cat >conftest.$ac_ext <<_ACEOF
6097 #line $LINENO "configure"
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h. */
6104 /* Override any gcc2 internal prototype to avoid an error. */
6108 /* We use char because int might match the return type of a gcc2
6109 builtin and then its argument prototype would still apply. */
6119 rm -f conftest.$ac_objext conftest$ac_exeext
6120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6121 (eval $ac_link) 2>&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); } &&
6125 { ac_try='test -s conftest$ac_exeext'
6126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }; }; then
6131 ac_cv_search_opendir="-l$ac_lib"
6134 echo "$as_me: failed program was:" >&5
6135 sed 's/^/| /' conftest.$ac_ext >&5
6138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6141 LIBS=$ac_func_search_save_LIBS
6143 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6144 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6145 if test "$ac_cv_search_opendir" != no; then
6146 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6151 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6152 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6153 if test "${ac_cv_search_opendir+set}" = set; then
6154 echo $ECHO_N "(cached) $ECHO_C" >&6
6156 ac_func_search_save_LIBS=$LIBS
6157 ac_cv_search_opendir=no
6158 cat >conftest.$ac_ext <<_ACEOF
6159 #line $LINENO "configure"
6162 cat confdefs.h >>conftest.$ac_ext
6163 cat >>conftest.$ac_ext <<_ACEOF
6164 /* end confdefs.h. */
6166 /* Override any gcc2 internal prototype to avoid an error. */
6170 /* We use char because int might match the return type of a gcc2
6171 builtin and then its argument prototype would still apply. */
6181 rm -f conftest.$ac_objext conftest$ac_exeext
6182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6183 (eval $ac_link) 2>&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } &&
6187 { ac_try='test -s conftest$ac_exeext'
6188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192 (exit $ac_status); }; }; then
6193 ac_cv_search_opendir="none required"
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6200 if test "$ac_cv_search_opendir" = no; then
6202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6203 cat >conftest.$ac_ext <<_ACEOF
6204 #line $LINENO "configure"
6207 cat confdefs.h >>conftest.$ac_ext
6208 cat >>conftest.$ac_ext <<_ACEOF
6209 /* end confdefs.h. */
6211 /* Override any gcc2 internal prototype to avoid an error. */
6215 /* We use char because int might match the return type of a gcc2
6216 builtin and then its argument prototype would still apply. */
6226 rm -f conftest.$ac_objext conftest$ac_exeext
6227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6228 (eval $ac_link) 2>&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); } &&
6232 { ac_try='test -s conftest$ac_exeext'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
6238 ac_cv_search_opendir="-l$ac_lib"
6241 echo "$as_me: failed program was:" >&5
6242 sed 's/^/| /' conftest.$ac_ext >&5
6245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6248 LIBS=$ac_func_search_save_LIBS
6250 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6251 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6252 if test "$ac_cv_search_opendir" != no; then
6253 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6267 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6270 echo "$as_me:$LINENO: checking for $ac_func" >&5
6271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6272 if eval "test \"\${$as_ac_var+set}\" = set"; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6275 cat >conftest.$ac_ext <<_ACEOF
6276 #line $LINENO "configure"
6279 cat confdefs.h >>conftest.$ac_ext
6280 cat >>conftest.$ac_ext <<_ACEOF
6281 /* end confdefs.h. */
6282 /* System header to define __stub macros and hopefully few prototypes,
6283 which can conflict with char $ac_func (); below.
6284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6285 <limits.h> exists even on freestanding compilers. */
6287 # include <limits.h>
6289 # include <assert.h>
6291 /* Override any gcc2 internal prototype to avoid an error. */
6296 /* We use char because int might match the return type of a gcc2
6297 builtin and then its argument prototype would still apply. */
6299 /* The GNU C library defines this for functions which it implements
6300 to always fail with ENOSYS. Some functions are actually named
6301 something starting with __ and the normal name is an alias. */
6302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6305 char (*f) () = $ac_func;
6314 return f != $ac_func;
6319 rm -f conftest.$ac_objext conftest$ac_exeext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6321 (eval $ac_link) 2>&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } &&
6325 { ac_try='test -s conftest$ac_exeext'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; }; then
6331 eval "$as_ac_var=yes"
6333 echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6336 eval "$as_ac_var=no"
6338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6341 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6342 if test `eval echo '${'$as_ac_var'}'` = yes; then
6343 cat >>confdefs.h <<_ACEOF
6344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6352 for ac_func in nanosleep nl_langinfo
6354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6355 echo "$as_me:$LINENO: checking for $ac_func" >&5
6356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6357 if eval "test \"\${$as_ac_var+set}\" = set"; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 cat >conftest.$ac_ext <<_ACEOF
6361 #line $LINENO "configure"
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h. */
6367 /* System header to define __stub macros and hopefully few prototypes,
6368 which can conflict with char $ac_func (); below.
6369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6370 <limits.h> exists even on freestanding compilers. */
6372 # include <limits.h>
6374 # include <assert.h>
6376 /* Override any gcc2 internal prototype to avoid an error. */
6381 /* We use char because int might match the return type of a gcc2
6382 builtin and then its argument prototype would still apply. */
6384 /* The GNU C library defines this for functions which it implements
6385 to always fail with ENOSYS. Some functions are actually named
6386 something starting with __ and the normal name is an alias. */
6387 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6390 char (*f) () = $ac_func;
6399 return f != $ac_func;
6404 rm -f conftest.$ac_objext conftest$ac_exeext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6406 (eval $ac_link) 2>&5
6408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6409 (exit $ac_status); } &&
6410 { ac_try='test -s conftest$ac_exeext'
6411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6416 eval "$as_ac_var=yes"
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.$ac_ext >&5
6421 eval "$as_ac_var=no"
6423 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6426 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6427 if test `eval echo '${'$as_ac_var'}'` = yes; then
6428 cat >>confdefs.h <<_ACEOF
6429 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6436 for ac_header in varargs.h
6438 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6440 echo "$as_me:$LINENO: checking for $ac_header" >&5
6441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6445 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6446 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6448 # Is the header compilable?
6449 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6451 cat >conftest.$ac_ext <<_ACEOF
6452 #line $LINENO "configure"
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6458 $ac_includes_default
6459 #include <$ac_header>
6461 rm -f conftest.$ac_objext
6462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6463 (eval $ac_compile) 2>&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } &&
6467 { ac_try='test -s conftest.$ac_objext'
6468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); }; }; then
6473 ac_header_compiler=yes
6475 echo "$as_me: failed program was:" >&5
6476 sed 's/^/| /' conftest.$ac_ext >&5
6478 ac_header_compiler=no
6480 rm -f conftest.$ac_objext conftest.$ac_ext
6481 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6482 echo "${ECHO_T}$ac_header_compiler" >&6
6484 # Is the header present?
6485 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6486 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6487 cat >conftest.$ac_ext <<_ACEOF
6488 #line $LINENO "configure"
6491 cat confdefs.h >>conftest.$ac_ext
6492 cat >>conftest.$ac_ext <<_ACEOF
6493 /* end confdefs.h. */
6494 #include <$ac_header>
6496 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6499 grep -v '^ *+' conftest.er1 >conftest.err
6501 cat conftest.err >&5
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); } >/dev/null; then
6504 if test -s conftest.err; then
6505 ac_cpp_err=$ac_c_preproc_warn_flag
6512 if test -z "$ac_cpp_err"; then
6513 ac_header_preproc=yes
6515 echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.$ac_ext >&5
6518 ac_header_preproc=no
6520 rm -f conftest.err conftest.$ac_ext
6521 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6522 echo "${ECHO_T}$ac_header_preproc" >&6
6524 # So? What about this header?
6525 case $ac_header_compiler:$ac_header_preproc in
6527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6530 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6533 ## ------------------------------------ ##
6534 ## Report this to bug-autoconf@gnu.org. ##
6535 ## ------------------------------------ ##
6538 sed "s/^/$as_me: WARNING: /" >&2
6541 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6542 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6543 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6544 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6549 ## ------------------------------------ ##
6550 ## Report this to bug-autoconf@gnu.org. ##
6551 ## ------------------------------------ ##
6554 sed "s/^/$as_me: WARNING: /" >&2
6557 echo "$as_me:$LINENO: checking for $ac_header" >&5
6558 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6559 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 eval "$as_ac_Header=$ac_header_preproc"
6564 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6565 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6569 cat >>confdefs.h <<_ACEOF
6570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6578 # End of readline/conio stuff
6579 # -----------------------------------------------------------------------
6582 # ---------------------------------------------------
6583 # Check for GMP support/directory
6584 # ---------------------------------------------------
6588 # [ --with-gmp[=DIR] Specify gmp library directory],
6590 # case "$with_gmp" in
6593 # if test "$with_gmp" != "yes"; then
6594 # GMP_INC="-I$with_gmp"
6596 # GMP_LDFLAGS="-L$with_gmp"
6598 # with_gmp="/usr/include"
6600 # AC_CHECK_HEADER($with_gmp/gmp.h,
6601 # [ AC_MSG_RESULT(yes)
6602 # AC_DEFINE(HAVE_GMP)
6606 # [ AC_MSG_ERROR([*** gmp library missing])
6612 # # check for standard gmp library
6613 # AC_CHECK_HEADER(/usr/include/gmp.h,
6614 # [ AC_MSG_RESULT(yes)
6615 # AC_DEFINE(HAVE_GMP)
6620 # # Did not find standard library, so use our own
6621 # AC_MSG_RESULT(yes)
6622 # AC_DEFINE(HAVE_GMP)
6625 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6627 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6628 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6634 #AC_SUBST(GMP_LDFLAGS)
6638 # -----------------------------------------------------------------------
6641 # ---------------------------------------------------
6642 # Check for CWEB support/directory
6643 # ---------------------------------------------------
6648 # [ --with-cweb[=DIR] Specify cweb library directory],
6650 # case "$with_cweb" in
6653 # if test "$with_cweb" != "yes"; then
6654 # CWEB_INC="-I$with_cweb"
6655 # CWEB_LIBS="-lcweb"
6656 # CWEB_LDFLAGS="-L$with_cweb"
6658 # with_cweb="/usr/include"
6660 # AC_CHECK_HEADER($with_cweb/cweb.h,
6661 # [ AC_MSG_RESULT(yes)
6662 # AC_DEFINE(HAVE_CWEB)
6663 # CWEB_LIBS="-lcweb"
6666 # [ AC_MSG_ERROR([*** cweb library missing])
6672 # # check for standard cweb library
6673 # AC_CHECK_HEADER(/usr/include/cweb.h,
6674 # [ AC_MSG_RESULT(yes)
6675 # AC_DEFINE(HAVE_CWEB)
6678 # CWEB_LIBS="-lcweb"
6680 # # Did not find starndard library, so use our own
6681 # AC_MSG_RESULT(yes)
6682 # AC_DEFINE(HAVE_CWEB)
6685 # CWEB=${TOP_DIR}/depkgs/cweb
6686 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6687 # CWEB_LIBS="-lcweb"
6688 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6689 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6695 #AC_SUBST(CWEB_LIBS)
6696 #AC_SUBST(CWEB_LDFLAGS)
6700 # -----------------------------------------------------------------------
6704 # -----------------------------------------------------------
6705 # Check whether user wants TCP wrappers support (default off)
6706 # -----------------------------------------------------------
6709 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6710 if test "${with_tcp_wrappers+set}" = set; then
6711 withval="$with_tcp_wrappers"
6713 if test "x$withval" != "xno" ; then
6715 LIBS="$saved_LIBS -lwrap"
6716 echo "$as_me:$LINENO: checking for libwrap" >&5
6717 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6718 cat >conftest.$ac_ext <<_ACEOF
6719 #line $LINENO "configure"
6722 cat confdefs.h >>conftest.$ac_ext
6723 cat >>conftest.$ac_ext <<_ACEOF
6724 /* end confdefs.h. */
6726 int deny_severity = 0;
6727 int allow_severity = 0;
6728 struct request_info *req;
6737 rm -f conftest.$ac_objext conftest$ac_exeext
6738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6739 (eval $ac_link) 2>&5
6741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6742 (exit $ac_status); } &&
6743 { ac_try='test -s conftest$ac_exeext'
6744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); }; }; then
6750 echo "$as_me:$LINENO: result: yes" >&5
6751 echo "${ECHO_T}yes" >&6
6752 cat >>confdefs.h <<\_ACEOF
6753 #define HAVE_LIBWRAP 1
6759 echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6763 LIBS="$saved_LIBS -lwrap -lnsl"
6764 cat >conftest.$ac_ext <<_ACEOF
6765 #line $LINENO "configure"
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6772 int deny_severity = 0;
6773 int allow_severity = 0;
6774 struct request_info *req;
6783 rm -f conftest.$ac_objext conftest$ac_exeext
6784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6785 (eval $ac_link) 2>&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); } &&
6789 { ac_try='test -s conftest$ac_exeext'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; }; then
6796 echo "$as_me:$LINENO: result: yes" >&5
6797 echo "${ECHO_T}yes" >&6
6798 cat >>confdefs.h <<\_ACEOF
6799 #define HAVE_LIBWRAP 1
6805 echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6808 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6809 echo "$as_me: error: *** libwrap missing" >&2;}
6810 { (exit 1); exit 1; }; }
6813 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6816 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6822 # ------------------------------------------
6823 # Where to place working dir
6824 # ------------------------------------------
6825 working_dir=`eval echo ${prefix}/var/bacula/working`
6827 # Check whether --with-working-dir or --without-working-dir was given.
6828 if test "${with_working_dir+set}" = set; then
6829 withval="$with_working_dir"
6831 if test "x$withval" != "xno" ; then
6832 working_dir=$withval
6841 # ------------------------------------------
6842 # Where to place scriptdir (script files)
6843 # ------------------------------------------
6844 scriptdir=`eval echo ${sysconfdir}`
6846 # Check whether --with-scriptdir or --without-scriptdir was given.
6847 if test "${with_scriptdir+set}" = set; then
6848 withval="$with_scriptdir"
6850 if test "x$withval" != "xno" ; then
6860 # ------------------------------------------
6861 # Where to send dump email
6862 # ------------------------------------------
6863 dump_email=root@localhost
6865 # Check whether --with-dump-email or --without-dump-email was given.
6866 if test "${with_dump_email+set}" = set; then
6867 withval="$with_dump_email"
6869 if test "x$withval" != "xno" ; then
6878 # ------------------------------------------
6879 # Where to send job email
6880 # ------------------------------------------
6881 job_email=root@localhost
6883 # Check whether --with-job-email or --without-job-email was given.
6884 if test "${with_job_email+set}" = set; then
6885 withval="$with_job_email"
6887 if test "x$withval" != "xno" ; then
6896 # ------------------------------------------
6897 # Where to find smtp host
6898 # ------------------------------------------
6901 # Check whether --with-smtp_host or --without-smtp_host was given.
6902 if test "${with_smtp_host+set}" = set; then
6903 withval="$with_smtp_host"
6905 if test "x$withval" != "xno" ; then
6915 # ------------------------------------
6916 # Where to place pid files
6917 # ------------------------------------
6920 # Check whether --with-pid-dir or --without-pid-dir was given.
6921 if test "${with_pid_dir+set}" = set; then
6922 withval="$with_pid_dir"
6924 if test "x$withval" != "xno" ; then
6931 cat >>confdefs.h <<_ACEOF
6932 #define _PATH_BACULA_PIDDIR "$piddir"
6938 # ------------------------------------
6939 # Where to place subsys "lock file"
6940 # ------------------------------------
6941 subsysdir=/var/run/subsys
6943 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6944 if test "${with_subsys_dir+set}" = set; then
6945 withval="$with_subsys_dir"
6947 if test "x$withval" != "xno" ; then
6958 # ------------------------------------
6959 # Where to start assigning ports
6960 # ------------------------------------
6963 # Check whether --with-baseport or --without-baseport was given.
6964 if test "${with_baseport+set}" = set; then
6965 withval="$with_baseport"
6967 if test "x$withval" != "xno" ; then
6975 dir_port=`expr $baseport`
6976 fd_port=`expr $baseport + 1`
6977 sd_port=`expr $fd_port + 1`
6984 # ------------------------------------------
6985 # Generate passwords
6986 # ------------------------------------------
6989 # Check whether --with-dir-password or --without-dir-password was given.
6990 if test "${with_dir_password+set}" = set; then
6991 withval="$with_dir_password"
6993 if test "x$withval" != "xno" ; then
6994 dir_password=$withval
7000 if test "x$dir_password" = "x" ; then
7001 if test "x$OPENSSL" = "xnone" ; then
7002 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7003 key=`autoconf/randpass 33`
7005 key=`openssl rand -base64 33`
7012 # Check whether --with-fd-password or --without-fd-password was given.
7013 if test "${with_fd_password+set}" = set; then
7014 withval="$with_fd_password"
7016 if test "x$withval" != "xno" ; then
7017 fd_password=$withval
7023 if test "x$fd_password" = "x" ; then
7024 if test "x$OPENSSL" = "xnone" ; then
7025 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7026 key=`autoconf/randpass 37`
7028 key=`openssl rand -base64 33`
7035 # Check whether --with-sd-password or --without-sd-password was given.
7036 if test "${with_sd_password+set}" = set; then
7037 withval="$with_sd_password"
7039 if test "x$withval" != "xno" ; then
7040 sd_password=$withval
7046 if test "x$sd_password" = "x" ; then
7047 if test "x$OPENSSL" = "xnone" ; then
7048 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7049 key=`autoconf/randpass 41`
7051 key=`openssl rand -base64 33`
7058 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
7059 if test "${with_mon_dir_password+set}" = set; then
7060 withval="$with_mon_dir_password"
7062 if test "x$withval" != "xno" ; then
7063 mon_dir_password=$withval
7069 if test "x$mon_dir_password" = "x" ; then
7070 if test "x$OPENSSL" = "xnone" ; then
7071 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7072 key=`autoconf/randpass 33`
7074 key=`openssl rand -base64 33`
7076 mon_dir_password=$key
7081 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
7082 if test "${with_mon_fd_password+set}" = set; then
7083 withval="$with_mon_fd_password"
7085 if test "x$withval" != "xno" ; then
7086 mon_fd_password=$withval
7092 if test "x$mon_fd_password" = "x" ; then
7093 if test "x$OPENSSL" = "xnone" ; then
7094 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7095 key=`autoconf/randpass 37`
7097 key=`openssl rand -base64 33`
7099 mon_fd_password=$key
7104 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
7105 if test "${with_mon_sd_password+set}" = set; then
7106 withval="$with_mon_sd_password"
7108 if test "x$withval" != "xno" ; then
7109 mon_sd_password=$withval
7115 if test "x$mon_sd_password" = "x" ; then
7116 if test "x$OPENSSL" = "xnone" ; then
7117 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7118 key=`autoconf/randpass 41`
7120 key=`openssl rand -base64 33`
7122 mon_sd_password=$key
7133 # Handle users and groups for each daemon
7137 # Check whether --with-dir_user or --without-dir_user was given.
7138 if test "${with_dir_user+set}" = set; then
7139 withval="$with_dir_user"
7141 if test "x$withval" != "x" ; then
7150 # Check whether --with-dir_group or --without-dir_group was given.
7151 if test "${with_dir_group+set}" = set; then
7152 withval="$with_dir_group"
7154 if test "x$withval" != "x" ; then
7163 # Check whether --with-sd_user or --without-sd_user was given.
7164 if test "${with_sd_user+set}" = set; then
7165 withval="$with_sd_user"
7167 if test "x$withval" != "x" ; then
7176 # Check whether --with-sd_group or --without-sd_group was given.
7177 if test "${with_sd_group+set}" = set; then
7178 withval="$with_sd_group"
7180 if test "x$withval" != "x" ; then
7189 # Check whether --with-fd_user or --without-fd_user was given.
7190 if test "${with_fd_user+set}" = set; then
7191 withval="$with_fd_user"
7193 if test "x$withval" != "x" ; then
7202 # Check whether --with-fd_group or --without-fd_group was given.
7203 if test "${with_fd_group+set}" = set; then
7204 withval="$with_fd_group"
7206 if test "x$withval" != "x" ; then
7224 # allow setting default executable permissions
7228 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7229 if test "${with_sbin_perm+set}" = set; then
7230 withval="$with_sbin_perm"
7232 if test "x$withval" != "x" ; then
7241 # ------------------------------------------------
7242 # Bacula check for various SQL database engines
7243 # ------------------------------------------------
7246 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7247 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7249 # Check whether --with-postgresql or --without-postgresql was given.
7250 if test "${with_postgresql+set}" = set; then
7251 withval="$with_postgresql"
7253 if test "$withval" != "no"; then
7254 if test "$db_found" = "yes"; then
7255 echo "$as_me:$LINENO: result: error" >&5
7256 echo "${ECHO_T}error" >&6
7257 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7258 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7259 { (exit 1); exit 1; }; };
7261 if test "$withval" = "yes"; then
7262 if test -f /usr/local/include/libpq-fe.h; then
7263 POSTGRESQL_INCDIR=/usr/local/include
7264 POSTGRESQL_LIBDIR=/usr/local/lib
7265 POSTGRESQL_BINDIR=/usr/local/bin
7266 elif test -f /usr/include/libpq-fe.h; then
7267 POSTGRESQL_INCDIR=/usr/include
7268 POSTGRESQL_LIBDIR=/usr/lib
7269 POSTGRESQL_BINDIR=/usr/bin
7270 elif test -f /usr/include/pgsql/libpq-fe.h; then
7271 POSTGRESQL_INCDIR=/usr/include/pgsql
7272 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7273 POSTGRESQL_BINDIR=/usr/bin
7274 elif test -f /usr/include/postgresql/libpq-fe.h; then
7275 POSTGRESQL_INCDIR=/usr/include/postgresql
7276 POSTGRESQL_LIBDIR=/usr/lib/postgresql
7277 POSTGRESQL_BINDIR=/usr/bin
7279 echo "$as_me:$LINENO: result: no" >&5
7280 echo "${ECHO_T}no" >&6
7281 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7282 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7283 { (exit 1); exit 1; }; }
7285 elif test -f $withval/include/libpq-fe.h; then
7286 POSTGRESQL_INCDIR=$withval/include
7287 POSTGRESQL_LIBDIR=$withval/lib
7288 POSTGRESQL_BINDIR=$withval/bin
7290 echo "$as_me:$LINENO: result: no" >&5
7291 echo "${ECHO_T}no" >&6
7292 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7293 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7294 { (exit 1); exit 1; }; }
7296 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7297 echo "$as_me:$LINENO: checking for crypt" >&5
7298 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7299 if test "${ac_cv_func_crypt+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 cat >conftest.$ac_ext <<_ACEOF
7303 #line $LINENO "configure"
7306 cat confdefs.h >>conftest.$ac_ext
7307 cat >>conftest.$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 /* System header to define __stub macros and hopefully few prototypes,
7310 which can conflict with char crypt (); below.
7311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7312 <limits.h> exists even on freestanding compilers. */
7314 # include <limits.h>
7316 # include <assert.h>
7318 /* Override any gcc2 internal prototype to avoid an error. */
7323 /* We use char because int might match the return type of a gcc2
7324 builtin and then its argument prototype would still apply. */
7326 /* The GNU C library defines this for functions which it implements
7327 to always fail with ENOSYS. Some functions are actually named
7328 something starting with __ and the normal name is an alias. */
7329 #if defined (__stub_crypt) || defined (__stub___crypt)
7332 char (*f) () = crypt;
7346 rm -f conftest.$ac_objext conftest$ac_exeext
7347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7348 (eval $ac_link) 2>&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } &&
7352 { ac_try='test -s conftest$ac_exeext'
7353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }; }; then
7358 ac_cv_func_crypt=yes
7360 echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7367 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7368 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7369 if test $ac_cv_func_crypt = yes; then
7372 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7373 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7374 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 ac_check_lib_save_LIBS=$LIBS
7378 LIBS="-lcrypt $LIBS"
7379 cat >conftest.$ac_ext <<_ACEOF
7380 #line $LINENO "configure"
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7387 /* Override any gcc2 internal prototype to avoid an error. */
7391 /* We use char because int might match the return type of a gcc2
7392 builtin and then its argument prototype would still apply. */
7402 rm -f conftest.$ac_objext conftest$ac_exeext
7403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7404 (eval $ac_link) 2>&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } &&
7408 { ac_try='test -s conftest$ac_exeext'
7409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); }; }; then
7414 ac_cv_lib_crypt_crypt=yes
7416 echo "$as_me: failed program was:" >&5
7417 sed 's/^/| /' conftest.$ac_ext >&5
7419 ac_cv_lib_crypt_crypt=no
7421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7422 LIBS=$ac_check_lib_save_LIBS
7424 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7425 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7426 if test $ac_cv_lib_crypt_crypt = yes; then
7427 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7432 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7433 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7434 SQL_BINDIR=$POSTGRESQL_BINDIR
7435 cat >>confdefs.h <<\_ACEOF
7436 #define HAVE_POSTGRESQL 1
7439 echo "$as_me:$LINENO: result: yes" >&5
7440 echo "${ECHO_T}yes" >&6
7442 support_postgresql=yes
7446 echo "$as_me:$LINENO: result: no" >&5
7447 echo "${ECHO_T}no" >&6
7452 echo "$as_me:$LINENO: result: no" >&5
7453 echo "${ECHO_T}no" >&6
7464 echo "$as_me:$LINENO: checking for MySQL support" >&5
7465 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7467 # Check whether --with-mysql or --without-mysql was given.
7468 if test "${with_mysql+set}" = set; then
7469 withval="$with_mysql"
7471 if test "$withval" != "no"; then
7472 if test "$withval" = "yes"; then
7473 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7474 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7475 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7476 MYSQL_BINDIR=/usr/local/mysql/bin
7477 elif test -f /usr/include/mysql/mysql.h; then
7478 MYSQL_INCDIR=/usr/include/mysql
7479 MYSQL_LIBDIR=/usr/lib/mysql
7480 MYSQL_BINDIR=/usr/bin
7481 elif test -f /usr/include/mysql.h; then
7482 MYSQL_INCDIR=/usr/include
7483 MYSQL_LIBDIR=/usr/lib
7484 MYSQL_BINDIR=/usr/bin
7485 elif test -f /usr/local/include/mysql/mysql.h; then
7486 MYSQL_INCDIR=/usr/local/include/mysql
7487 MYSQL_LIBDIR=/usr/local/lib/mysql
7488 MYSQL_BINDIR=/usr/local/bin
7489 elif test -f /usr/local/include/mysql.h; then
7490 MYSQL_INCDIR=/usr/local/include
7491 MYSQL_LIBDIR=/usr/local/lib
7492 MYSQL_BINDIR=/usr/local/bin
7494 echo "$as_me:$LINENO: result: no" >&5
7495 echo "${ECHO_T}no" >&6
7496 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7497 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7498 { (exit 1); exit 1; }; }
7501 if test -f $withval/include/mysql/mysql.h; then
7502 MYSQL_INCDIR=$withval/include/mysql
7503 MYSQL_LIBDIR=$withval/lib/mysql
7504 MYSQL_BINDIR=$withval/bin
7505 elif test -f $withval/include/mysql.h; then
7506 MYSQL_INCDIR=$withval/include
7507 MYSQL_LIBDIR=$withval/lib
7508 MYSQL_BINDIR=$withval/bin
7510 echo "$as_me:$LINENO: result: no" >&5
7511 echo "${ECHO_T}no" >&6
7512 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7513 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7514 { (exit 1); exit 1; }; }
7517 SQL_INCLUDE=-I$MYSQL_INCDIR
7518 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7519 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7520 cat >>confdefs.h <<\_ACEOF
7521 #define HAVE_THREAD_SAFE_MYSQL 1
7525 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7527 SQL_BINDIR=$MYSQL_BINDIR
7529 cat >>confdefs.h <<\_ACEOF
7530 #define HAVE_MYSQL 1
7533 echo "$as_me:$LINENO: result: yes" >&5
7534 echo "${ECHO_T}yes" >&6
7541 echo "$as_me:$LINENO: result: no" >&5
7542 echo "${ECHO_T}no" >&6
7549 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7550 if test "${with_embedded_mysql+set}" = set; then
7551 withval="$with_embedded_mysql"
7553 if test "$withval" != "no"; then
7554 if test "$withval" = "yes"; then
7555 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7556 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7557 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7558 MYSQL_BINDIR=/usr/local/mysql/bin
7559 elif test -f /usr/include/mysql/mysql.h; then
7560 MYSQL_INCDIR=/usr/include/mysql
7561 MYSQL_LIBDIR=/usr/lib/mysql
7562 MYSQL_BINDIR=/usr/bin
7563 elif test -f /usr/include/mysql.h; then
7564 MYSQL_INCDIR=/usr/include
7565 MYSQL_LIBDIR=/usr/lib
7566 MYSQL_BINDIR=/usr/bin
7567 elif test -f /usr/local/include/mysql/mysql.h; then
7568 MYSQL_INCDIR=/usr/local/include/mysql
7569 MYSQL_LIBDIR=/usr/local/lib/mysql
7570 MYSQL_BINDIR=/usr/local/bin
7571 elif test -f /usr/local/include/mysql.h; then
7572 MYSQL_INCDIR=/usr/local/include
7573 MYSQL_LIBDIR=/usr/local/lib
7574 MYSQL_BINDIR=/usr/local/bin
7576 echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6
7578 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7579 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7580 { (exit 1); exit 1; }; }
7583 if test -f $withval/include/mysql/mysql.h; then
7584 MYSQL_INCDIR=$withval/include/mysql
7585 MYSQL_LIBDIR=$withval/lib/mysql
7586 MYSQL_BINDIR=$withval/bin
7587 elif test -f $withval/include/mysql.h; then
7588 MYSQL_INCDIR=$withval/include
7589 MYSQL_LIBDIR=$withval/lib
7590 MYSQL_BINDIR=$withval/bin
7592 echo "$as_me:$LINENO: result: no" >&5
7593 echo "${ECHO_T}no" >&6
7594 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7595 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7596 { (exit 1); exit 1; }; }
7599 SQL_INCLUDE=-I$MYSQL_INCDIR
7600 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7601 SQL_BINDIR=$MYSQL_BINDIR
7603 cat >>confdefs.h <<\_ACEOF
7604 #define HAVE_MYSQL 1
7607 cat >>confdefs.h <<\_ACEOF
7608 #define HAVE_EMBEDDED_MYSQL 1
7611 echo "$as_me:$LINENO: result: yes" >&5
7612 echo "${ECHO_T}yes" >&6
7619 echo "$as_me:$LINENO: result: no" >&5
7620 echo "${ECHO_T}no" >&6
7635 echo "$as_me:$LINENO: checking for SQLite support" >&5
7636 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7638 # Check whether --with-sqlite or --without-sqlite was given.
7639 if test "${with_sqlite+set}" = set; then
7640 withval="$with_sqlite"
7642 if test "$withval" != "no"; then
7643 if test "$withval" = "yes"; then
7644 if test -f /usr/local/include/sqlite.h; then
7645 SQLITE_INCDIR=/usr/local/include
7646 SQLITE_LIBDIR=/usr/local/lib
7647 SQLITE_BINDIR=/usr/local/bin
7648 elif test -f /usr/include/sqlite.h; then
7649 SQLITE_INCDIR=/usr/include
7650 SQLITE_LIBDIR=/usr/lib
7651 SQLITE_BINDIR=/usr/bin
7653 echo "$as_me:$LINENO: result: no" >&5
7654 echo "${ECHO_T}no" >&6
7655 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7656 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7657 { (exit 1); exit 1; }; }
7660 if test -f $withval/sqlite.h; then
7661 SQLITE_INCDIR=$withval
7662 SQLITE_LIBDIR=$withval
7663 SQLITE_BINDIR=$withval
7665 echo "$as_me:$LINENO: result: no" >&5
7666 echo "${ECHO_T}no" >&6
7667 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7668 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7669 { (exit 1); exit 1; }; }
7672 SQL_INCLUDE=-I$SQLITE_INCDIR
7673 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7674 SQL_BINDIR=$SQLITE_BINDIR
7676 cat >>confdefs.h <<\_ACEOF
7677 #define HAVE_SQLITE 1
7680 echo "$as_me:$LINENO: result: yes" >&5
7681 echo "${ECHO_T}yes" >&6
7688 echo "$as_me:$LINENO: result: no" >&5
7689 echo "${ECHO_T}no" >&6
7694 echo "$as_me:$LINENO: result: no" >&5
7695 echo "${ECHO_T}no" >&6
7707 cat >>confdefs.h <<\_ACEOF
7708 #define PROTOTYPES 1
7712 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
7713 if test -z "$CCOPTS"; then
7714 CCOPTS='-g -O2 -Wall'
7722 largefile_support="no"
7724 # Check whether --enable-largefile or --disable-largefile was given.
7725 if test "${enable_largefile+set}" = set; then
7726 enableval="$enable_largefile"
7729 if test "$enable_largefile" != no; then
7730 if test -n "$ac_tool_prefix"; then
7731 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7732 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7733 echo "$as_me:$LINENO: checking for $ac_word" >&5
7734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7735 if test "${ac_cv_prog_GETCONF+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7738 if test -n "$GETCONF"; then
7739 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7745 test -z "$as_dir" && as_dir=.
7746 for ac_exec_ext in '' $ac_executable_extensions; do
7747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7748 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7757 GETCONF=$ac_cv_prog_GETCONF
7758 if test -n "$GETCONF"; then
7759 echo "$as_me:$LINENO: result: $GETCONF" >&5
7760 echo "${ECHO_T}$GETCONF" >&6
7762 echo "$as_me:$LINENO: result: no" >&5
7763 echo "${ECHO_T}no" >&6
7767 if test -z "$ac_cv_prog_GETCONF"; then
7768 ac_ct_GETCONF=$GETCONF
7769 # Extract the first word of "getconf", so it can be a program name with args.
7770 set dummy getconf; ac_word=$2
7771 echo "$as_me:$LINENO: checking for $ac_word" >&5
7772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7773 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7774 echo $ECHO_N "(cached) $ECHO_C" >&6
7776 if test -n "$ac_ct_GETCONF"; then
7777 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783 test -z "$as_dir" && as_dir=.
7784 for ac_exec_ext in '' $ac_executable_extensions; do
7785 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7786 ac_cv_prog_ac_ct_GETCONF="getconf"
7787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7795 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7796 if test -n "$ac_ct_GETCONF"; then
7797 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7798 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7800 echo "$as_me:$LINENO: result: no" >&5
7801 echo "${ECHO_T}no" >&6
7804 GETCONF=$ac_ct_GETCONF
7806 GETCONF="$ac_cv_prog_GETCONF"
7809 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7810 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7811 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7814 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7815 ac_cv_sys_largefile_CFLAGS=no
7817 # IRIX 6.2 and later require cc -n32.
7818 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7819 if test "$GCC" != yes; then
7820 ac_cv_sys_largefile_CFLAGS=-n32
7823 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7824 cat >conftest.$ac_ext <<_ACEOF
7825 #line $LINENO "configure"
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h. */
7840 rm -f conftest.$ac_objext conftest$ac_exeext
7841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7842 (eval $ac_link) 2>&5
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); } &&
7846 { ac_try='test -s conftest$ac_exeext'
7847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7851 (exit $ac_status); }; }; then
7854 echo "$as_me: failed program was:" >&5
7855 sed 's/^/| /' conftest.$ac_ext >&5
7857 ac_cv_sys_largefile_CFLAGS=no
7859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7864 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7865 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7866 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7867 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7868 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7871 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7872 ac_cv_sys_largefile_LDFLAGS=no
7876 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7877 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7878 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7879 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7880 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7883 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7884 ac_cv_sys_largefile_LIBS=no
7888 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7889 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7891 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7894 -D_FILE_OFFSET_BITS=*) ;;
7895 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7896 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7902 '') CPPFLAGS="$ac_flag" ;;
7903 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7911 '') CFLAGS="$ac_flag" ;;
7912 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7917 case "$ac_cv_sys_largefile_LDFLAGS" in
7921 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7922 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7925 case "$ac_cv_sys_largefile_LIBS" in
7929 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7930 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7933 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7934 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7935 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 ac_cv_sys_file_offset_bits=no
7940 # HP-UX 10.20 and later
7941 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7942 ac_cv_sys_file_offset_bits=64 ;;
7944 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7946 -D_FILE_OFFSET_BITS)
7947 ac_cv_sys_file_offset_bits=1 ;;
7948 -D_FILE_OFFSET_BITS=*)
7949 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7954 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7955 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7956 if test "$ac_cv_sys_file_offset_bits" != no; then
7958 cat >>confdefs.h <<_ACEOF
7959 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7963 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7964 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7965 if test "${ac_cv_sys_largefile_source+set}" = set; then
7966 echo $ECHO_N "(cached) $ECHO_C" >&6
7968 ac_cv_sys_largefile_source=no
7970 # HP-UX 10.20 and later
7971 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7972 ac_cv_sys_largefile_source=1 ;;
7974 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7976 -D_LARGEFILE_SOURCE)
7977 ac_cv_sys_largefile_source=1 ;;
7978 -D_LARGEFILE_SOURCE=*)
7979 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7984 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7985 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7986 if test "$ac_cv_sys_largefile_source" != no; then
7988 cat >>confdefs.h <<_ACEOF
7989 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7993 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7994 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7995 if test "${ac_cv_sys_large_files+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
7998 ac_cv_sys_large_files=no
8001 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
8002 ac_cv_sys_large_files=1 ;;
8004 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8007 ac_cv_sys_large_files=1 ;;
8009 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8014 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8015 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8016 if test "$ac_cv_sys_large_files" != no; then
8018 cat >>confdefs.h <<_ACEOF
8019 #define _LARGE_FILES $ac_cv_sys_large_files
8027 echo "$as_me:$LINENO: checking for X" >&5
8028 echo $ECHO_N "checking for X... $ECHO_C" >&6
8031 # Check whether --with-x or --without-x was given.
8032 if test "${with_x+set}" = set; then
8036 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8037 if test "x$with_x" = xno; then
8038 # The user explicitly disabled X.
8041 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8042 # Both variables are already set.
8045 if test "${ac_cv_have_x+set}" = set; then
8046 echo $ECHO_N "(cached) $ECHO_C" >&6
8048 # One or both of the vars are not set, and there is no cached value.
8049 ac_x_includes=no ac_x_libraries=no
8051 if mkdir conftest.dir; then
8053 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8054 cat >Imakefile <<'_ACEOF'
8056 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8058 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8059 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8060 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8061 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8062 for ac_extension in a so sl; do
8063 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8064 test -f $ac_im_libdir/libX11.$ac_extension; then
8065 ac_im_usrlibdir=$ac_im_libdir; break
8068 # Screen out bogus values from the imake configuration. They are
8069 # bogus both because they are the default anyway, and because
8070 # using them would break gcc on systems where it needs fixed includes.
8071 case $ac_im_incroot in
8073 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8075 case $ac_im_usrlibdir in
8077 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8084 # Standard set of common directories for X headers.
8085 # Check X11 before X11Rn because it is often a symlink to the current release.
8097 /usr/local/X11/include
8098 /usr/local/X11R6/include
8099 /usr/local/X11R5/include
8100 /usr/local/X11R4/include
8102 /usr/local/include/X11
8103 /usr/local/include/X11R6
8104 /usr/local/include/X11R5
8105 /usr/local/include/X11R4
8109 /usr/XFree86/include/X11
8113 /usr/unsupported/include
8115 /usr/local/x11r5/include
8116 /usr/lpp/Xamples/include
8118 /usr/openwin/include
8119 /usr/openwin/share/include'
8121 if test "$ac_x_includes" = no; then
8122 # Guess where to find include files, by looking for Intrinsic.h.
8123 # First, try using that file with no special directory specified.
8124 cat >conftest.$ac_ext <<_ACEOF
8125 #line $LINENO "configure"
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8131 #include <X11/Intrinsic.h>
8133 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8134 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8136 grep -v '^ *+' conftest.er1 >conftest.err
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } >/dev/null; then
8141 if test -s conftest.err; then
8142 ac_cpp_err=$ac_c_preproc_warn_flag
8149 if test -z "$ac_cpp_err"; then
8150 # We can compile using X headers with no special include directory.
8153 echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8156 for ac_dir in $ac_x_header_dirs; do
8157 if test -r "$ac_dir/X11/Intrinsic.h"; then
8158 ac_x_includes=$ac_dir
8163 rm -f conftest.err conftest.$ac_ext
8164 fi # $ac_x_includes = no
8166 if test "$ac_x_libraries" = no; then
8167 # Check for the libraries.
8168 # See if we find them without any special options.
8169 # Don't add to $LIBS permanently.
8172 cat >conftest.$ac_ext <<_ACEOF
8173 #line $LINENO "configure"
8176 cat confdefs.h >>conftest.$ac_ext
8177 cat >>conftest.$ac_ext <<_ACEOF
8178 /* end confdefs.h. */
8179 #include <X11/Intrinsic.h>
8188 rm -f conftest.$ac_objext conftest$ac_exeext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8190 (eval $ac_link) 2>&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); } &&
8194 { ac_try='test -s conftest$ac_exeext'
8195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); }; }; then
8201 # We can link X programs with no special library path.
8204 echo "$as_me: failed program was:" >&5
8205 sed 's/^/| /' conftest.$ac_ext >&5
8208 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8210 # Don't even attempt the hair of trying to link an X program!
8211 for ac_extension in a so sl; do
8212 if test -r $ac_dir/libXt.$ac_extension; then
8213 ac_x_libraries=$ac_dir
8219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8220 fi # $ac_x_libraries = no
8222 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8223 # Didn't find X anywhere. Cache the known absence of X.
8224 ac_cv_have_x="have_x=no"
8226 # Record where we found X for the cache.
8227 ac_cv_have_x="have_x=yes \
8228 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8233 eval "$ac_cv_have_x"
8236 if test "$have_x" != yes; then
8237 echo "$as_me:$LINENO: result: $have_x" >&5
8238 echo "${ECHO_T}$have_x" >&6
8241 # If each of the values was on the command line, it overrides each guess.
8242 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8243 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8244 # Update the cache value to reflect the command line values.
8245 ac_cv_have_x="have_x=yes \
8246 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8247 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8248 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8251 if test "$no_x" = yes; then
8252 # Not all programs may use this symbol, but it does not hurt to define it.
8254 cat >>confdefs.h <<\_ACEOF
8255 #define X_DISPLAY_MISSING 1
8258 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8260 if test -n "$x_includes"; then
8261 X_CFLAGS="$X_CFLAGS -I$x_includes"
8264 # It would also be nice to do this for all -L options, not just this one.
8265 if test -n "$x_libraries"; then
8266 X_LIBS="$X_LIBS -L$x_libraries"
8267 # For Solaris; some versions of Sun CC require a space after -R and
8268 # others require no space. Words are not sufficient . . . .
8269 case `(uname -sr) 2>/dev/null` in
8271 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8272 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8273 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8274 cat >conftest.$ac_ext <<_ACEOF
8275 #line $LINENO "configure"
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h. */
8290 rm -f conftest.$ac_objext conftest$ac_exeext
8291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8292 (eval $ac_link) 2>&5
8294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8295 (exit $ac_status); } &&
8296 { ac_try='test -s conftest$ac_exeext'
8297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); }; }; then
8304 echo "$as_me: failed program was:" >&5
8305 sed 's/^/| /' conftest.$ac_ext >&5
8309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8310 if test $ac_R_nospace = yes; then
8311 echo "$as_me:$LINENO: result: no" >&5
8312 echo "${ECHO_T}no" >&6
8313 X_LIBS="$X_LIBS -R$x_libraries"
8315 LIBS="$ac_xsave_LIBS -R $x_libraries"
8316 cat >conftest.$ac_ext <<_ACEOF
8317 #line $LINENO "configure"
8320 cat confdefs.h >>conftest.$ac_ext
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8332 rm -f conftest.$ac_objext conftest$ac_exeext
8333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8334 (eval $ac_link) 2>&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } &&
8338 { ac_try='test -s conftest$ac_exeext'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; }; then
8346 echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8351 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8352 if test $ac_R_space = yes; then
8353 echo "$as_me:$LINENO: result: yes" >&5
8354 echo "${ECHO_T}yes" >&6
8355 X_LIBS="$X_LIBS -R $x_libraries"
8357 echo "$as_me:$LINENO: result: neither works" >&5
8358 echo "${ECHO_T}neither works" >&6
8365 # Check for system-dependent libraries X programs must link with.
8366 # Do this before checking for the system-independent R6 libraries
8367 # (-lICE), since we may need -lsocket or whatever for X linking.
8369 if test "$ISC" = yes; then
8370 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8372 # Martyn Johnson says this is needed for Ultrix, if the X
8373 # libraries were built with DECnet support. And Karl Berry says
8374 # the Alpha needs dnet_stub (dnet does not exist).
8375 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8376 cat >conftest.$ac_ext <<_ACEOF
8377 #line $LINENO "configure"
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h. */
8384 /* Override any gcc2 internal prototype to avoid an error. */
8388 /* We use char because int might match the return type of a gcc2
8389 builtin and then its argument prototype would still apply. */
8390 char XOpenDisplay ();
8399 rm -f conftest.$ac_objext conftest$ac_exeext
8400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8401 (eval $ac_link) 2>&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } &&
8405 { ac_try='test -s conftest$ac_exeext'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; }; then
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8416 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8417 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8418 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8421 ac_check_lib_save_LIBS=$LIBS
8423 cat >conftest.$ac_ext <<_ACEOF
8424 #line $LINENO "configure"
8427 cat confdefs.h >>conftest.$ac_ext
8428 cat >>conftest.$ac_ext <<_ACEOF
8429 /* end confdefs.h. */
8431 /* Override any gcc2 internal prototype to avoid an error. */
8435 /* We use char because int might match the return type of a gcc2
8436 builtin and then its argument prototype would still apply. */
8446 rm -f conftest.$ac_objext conftest$ac_exeext
8447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8448 (eval $ac_link) 2>&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } &&
8452 { ac_try='test -s conftest$ac_exeext'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; }; then
8458 ac_cv_lib_dnet_dnet_ntoa=yes
8460 echo "$as_me: failed program was:" >&5
8461 sed 's/^/| /' conftest.$ac_ext >&5
8463 ac_cv_lib_dnet_dnet_ntoa=no
8465 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8466 LIBS=$ac_check_lib_save_LIBS
8468 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8469 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8470 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8471 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8474 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8475 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8476 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8477 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8478 echo $ECHO_N "(cached) $ECHO_C" >&6
8480 ac_check_lib_save_LIBS=$LIBS
8481 LIBS="-ldnet_stub $LIBS"
8482 cat >conftest.$ac_ext <<_ACEOF
8483 #line $LINENO "configure"
8486 cat confdefs.h >>conftest.$ac_ext
8487 cat >>conftest.$ac_ext <<_ACEOF
8488 /* end confdefs.h. */
8490 /* Override any gcc2 internal prototype to avoid an error. */
8494 /* We use char because int might match the return type of a gcc2
8495 builtin and then its argument prototype would still apply. */
8505 rm -f conftest.$ac_objext conftest$ac_exeext
8506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8507 (eval $ac_link) 2>&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); } &&
8511 { ac_try='test -s conftest$ac_exeext'
8512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); }; }; then
8517 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8519 echo "$as_me: failed program was:" >&5
8520 sed 's/^/| /' conftest.$ac_ext >&5
8522 ac_cv_lib_dnet_stub_dnet_ntoa=no
8524 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8525 LIBS=$ac_check_lib_save_LIBS
8527 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8528 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8529 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8530 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8535 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8536 LIBS="$ac_xsave_LIBS"
8538 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8539 # to get the SysV transport functions.
8540 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8542 # The nsl library prevents programs from opening the X display
8543 # on Irix 5.2, according to T.E. Dickey.
8544 # The functions gethostbyname, getservbyname, and inet_addr are
8545 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8546 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8547 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8548 if test "${ac_cv_func_gethostbyname+set}" = set; then
8549 echo $ECHO_N "(cached) $ECHO_C" >&6
8551 cat >conftest.$ac_ext <<_ACEOF
8552 #line $LINENO "configure"
8555 cat confdefs.h >>conftest.$ac_ext
8556 cat >>conftest.$ac_ext <<_ACEOF
8557 /* end confdefs.h. */
8558 /* System header to define __stub macros and hopefully few prototypes,
8559 which can conflict with char gethostbyname (); below.
8560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8561 <limits.h> exists even on freestanding compilers. */
8563 # include <limits.h>
8565 # include <assert.h>
8567 /* Override any gcc2 internal prototype to avoid an error. */
8572 /* We use char because int might match the return type of a gcc2
8573 builtin and then its argument prototype would still apply. */
8574 char gethostbyname ();
8575 /* The GNU C library defines this for functions which it implements
8576 to always fail with ENOSYS. Some functions are actually named
8577 something starting with __ and the normal name is an alias. */
8578 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8581 char (*f) () = gethostbyname;
8590 return f != gethostbyname;
8595 rm -f conftest.$ac_objext conftest$ac_exeext
8596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8597 (eval $ac_link) 2>&5
8599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8600 (exit $ac_status); } &&
8601 { ac_try='test -s conftest$ac_exeext'
8602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; }; then
8607 ac_cv_func_gethostbyname=yes
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8612 ac_cv_func_gethostbyname=no
8614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8616 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8617 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8619 if test $ac_cv_func_gethostbyname = no; then
8620 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8621 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8622 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8623 echo $ECHO_N "(cached) $ECHO_C" >&6
8625 ac_check_lib_save_LIBS=$LIBS
8627 cat >conftest.$ac_ext <<_ACEOF
8628 #line $LINENO "configure"
8631 cat confdefs.h >>conftest.$ac_ext
8632 cat >>conftest.$ac_ext <<_ACEOF
8633 /* end confdefs.h. */
8635 /* Override any gcc2 internal prototype to avoid an error. */
8639 /* We use char because int might match the return type of a gcc2
8640 builtin and then its argument prototype would still apply. */
8641 char gethostbyname ();
8650 rm -f conftest.$ac_objext conftest$ac_exeext
8651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8652 (eval $ac_link) 2>&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } &&
8656 { ac_try='test -s conftest$ac_exeext'
8657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8661 (exit $ac_status); }; }; then
8662 ac_cv_lib_nsl_gethostbyname=yes
8664 echo "$as_me: failed program was:" >&5
8665 sed 's/^/| /' conftest.$ac_ext >&5
8667 ac_cv_lib_nsl_gethostbyname=no
8669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8670 LIBS=$ac_check_lib_save_LIBS
8672 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8673 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8674 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8675 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8678 if test $ac_cv_lib_nsl_gethostbyname = no; then
8679 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8680 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8681 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8682 echo $ECHO_N "(cached) $ECHO_C" >&6
8684 ac_check_lib_save_LIBS=$LIBS
8686 cat >conftest.$ac_ext <<_ACEOF
8687 #line $LINENO "configure"
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8694 /* Override any gcc2 internal prototype to avoid an error. */
8698 /* We use char because int might match the return type of a gcc2
8699 builtin and then its argument prototype would still apply. */
8700 char gethostbyname ();
8709 rm -f conftest.$ac_objext conftest$ac_exeext
8710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8711 (eval $ac_link) 2>&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); } &&
8715 { ac_try='test -s conftest$ac_exeext'
8716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); }; }; then
8721 ac_cv_lib_bsd_gethostbyname=yes
8723 echo "$as_me: failed program was:" >&5
8724 sed 's/^/| /' conftest.$ac_ext >&5
8726 ac_cv_lib_bsd_gethostbyname=no
8728 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8729 LIBS=$ac_check_lib_save_LIBS
8731 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8732 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8733 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8734 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8740 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8741 # socket/setsockopt and other routines are undefined under SCO ODT
8742 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8743 # on later versions), says Simon Leinen: it contains gethostby*
8744 # variants that don't use the name server (or something). -lsocket
8745 # must be given before -lnsl if both are needed. We assume that
8746 # if connect needs -lnsl, so does gethostbyname.
8747 echo "$as_me:$LINENO: checking for connect" >&5
8748 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8749 if test "${ac_cv_func_connect+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 cat >conftest.$ac_ext <<_ACEOF
8753 #line $LINENO "configure"
8756 cat confdefs.h >>conftest.$ac_ext
8757 cat >>conftest.$ac_ext <<_ACEOF
8758 /* end confdefs.h. */
8759 /* System header to define __stub macros and hopefully few prototypes,
8760 which can conflict with char connect (); below.
8761 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8762 <limits.h> exists even on freestanding compilers. */
8764 # include <limits.h>
8766 # include <assert.h>
8768 /* Override any gcc2 internal prototype to avoid an error. */
8773 /* We use char because int might match the return type of a gcc2
8774 builtin and then its argument prototype would still apply. */
8776 /* The GNU C library defines this for functions which it implements
8777 to always fail with ENOSYS. Some functions are actually named
8778 something starting with __ and the normal name is an alias. */
8779 #if defined (__stub_connect) || defined (__stub___connect)
8782 char (*f) () = connect;
8791 return f != connect;
8796 rm -f conftest.$ac_objext conftest$ac_exeext
8797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8798 (eval $ac_link) 2>&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } &&
8802 { ac_try='test -s conftest$ac_exeext'
8803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8807 (exit $ac_status); }; }; then
8808 ac_cv_func_connect=yes
8810 echo "$as_me: failed program was:" >&5
8811 sed 's/^/| /' conftest.$ac_ext >&5
8813 ac_cv_func_connect=no
8815 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8817 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8818 echo "${ECHO_T}$ac_cv_func_connect" >&6
8820 if test $ac_cv_func_connect = no; then
8821 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8822 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8823 if test "${ac_cv_lib_socket_connect+set}" = set; then
8824 echo $ECHO_N "(cached) $ECHO_C" >&6
8826 ac_check_lib_save_LIBS=$LIBS
8827 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8828 cat >conftest.$ac_ext <<_ACEOF
8829 #line $LINENO "configure"
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8836 /* Override any gcc2 internal prototype to avoid an error. */
8840 /* We use char because int might match the return type of a gcc2
8841 builtin and then its argument prototype would still apply. */
8851 rm -f conftest.$ac_objext conftest$ac_exeext
8852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8853 (eval $ac_link) 2>&5
8855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856 (exit $ac_status); } &&
8857 { ac_try='test -s conftest$ac_exeext'
8858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862 (exit $ac_status); }; }; then
8863 ac_cv_lib_socket_connect=yes
8865 echo "$as_me: failed program was:" >&5
8866 sed 's/^/| /' conftest.$ac_ext >&5
8868 ac_cv_lib_socket_connect=no
8870 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8871 LIBS=$ac_check_lib_save_LIBS
8873 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8874 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8875 if test $ac_cv_lib_socket_connect = yes; then
8876 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8881 # Guillermo Gomez says -lposix is necessary on A/UX.
8882 echo "$as_me:$LINENO: checking for remove" >&5
8883 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8884 if test "${ac_cv_func_remove+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8887 cat >conftest.$ac_ext <<_ACEOF
8888 #line $LINENO "configure"
8891 cat confdefs.h >>conftest.$ac_ext
8892 cat >>conftest.$ac_ext <<_ACEOF
8893 /* end confdefs.h. */
8894 /* System header to define __stub macros and hopefully few prototypes,
8895 which can conflict with char remove (); below.
8896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8897 <limits.h> exists even on freestanding compilers. */
8899 # include <limits.h>
8901 # include <assert.h>
8903 /* Override any gcc2 internal prototype to avoid an error. */
8908 /* We use char because int might match the return type of a gcc2
8909 builtin and then its argument prototype would still apply. */
8911 /* The GNU C library defines this for functions which it implements
8912 to always fail with ENOSYS. Some functions are actually named
8913 something starting with __ and the normal name is an alias. */
8914 #if defined (__stub_remove) || defined (__stub___remove)
8917 char (*f) () = remove;
8931 rm -f conftest.$ac_objext conftest$ac_exeext
8932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8933 (eval $ac_link) 2>&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } &&
8937 { ac_try='test -s conftest$ac_exeext'
8938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }; }; then
8943 ac_cv_func_remove=yes
8945 echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8948 ac_cv_func_remove=no
8950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8952 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8953 echo "${ECHO_T}$ac_cv_func_remove" >&6
8955 if test $ac_cv_func_remove = no; then
8956 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8957 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8958 if test "${ac_cv_lib_posix_remove+set}" = set; then
8959 echo $ECHO_N "(cached) $ECHO_C" >&6
8961 ac_check_lib_save_LIBS=$LIBS
8962 LIBS="-lposix $LIBS"
8963 cat >conftest.$ac_ext <<_ACEOF
8964 #line $LINENO "configure"
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8971 /* Override any gcc2 internal prototype to avoid an error. */
8975 /* We use char because int might match the return type of a gcc2
8976 builtin and then its argument prototype would still apply. */
8986 rm -f conftest.$ac_objext conftest$ac_exeext
8987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8988 (eval $ac_link) 2>&5
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); } &&
8992 { ac_try='test -s conftest$ac_exeext'
8993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); }; }; then
8998 ac_cv_lib_posix_remove=yes
9000 echo "$as_me: failed program was:" >&5
9001 sed 's/^/| /' conftest.$ac_ext >&5
9003 ac_cv_lib_posix_remove=no
9005 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9006 LIBS=$ac_check_lib_save_LIBS
9008 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9009 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9010 if test $ac_cv_lib_posix_remove = yes; then
9011 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9016 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9017 echo "$as_me:$LINENO: checking for shmat" >&5
9018 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9019 if test "${ac_cv_func_shmat+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9022 cat >conftest.$ac_ext <<_ACEOF
9023 #line $LINENO "configure"
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 /* System header to define __stub macros and hopefully few prototypes,
9030 which can conflict with char shmat (); below.
9031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9032 <limits.h> exists even on freestanding compilers. */
9034 # include <limits.h>
9036 # include <assert.h>
9038 /* Override any gcc2 internal prototype to avoid an error. */
9043 /* We use char because int might match the return type of a gcc2
9044 builtin and then its argument prototype would still apply. */
9046 /* The GNU C library defines this for functions which it implements
9047 to always fail with ENOSYS. Some functions are actually named
9048 something starting with __ and the normal name is an alias. */
9049 #if defined (__stub_shmat) || defined (__stub___shmat)
9052 char (*f) () = shmat;
9066 rm -f conftest.$ac_objext conftest$ac_exeext
9067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9068 (eval $ac_link) 2>&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); } &&
9072 { ac_try='test -s conftest$ac_exeext'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; }; then
9078 ac_cv_func_shmat=yes
9080 echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.$ac_ext >&5
9085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9087 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9088 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9090 if test $ac_cv_func_shmat = no; then
9091 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9092 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9093 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9094 echo $ECHO_N "(cached) $ECHO_C" >&6
9096 ac_check_lib_save_LIBS=$LIBS
9098 cat >conftest.$ac_ext <<_ACEOF
9099 #line $LINENO "configure"
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9106 /* Override any gcc2 internal prototype to avoid an error. */
9110 /* We use char because int might match the return type of a gcc2
9111 builtin and then its argument prototype would still apply. */
9121 rm -f conftest.$ac_objext conftest$ac_exeext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9123 (eval $ac_link) 2>&5
9125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126 (exit $ac_status); } &&
9127 { ac_try='test -s conftest$ac_exeext'
9128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9132 (exit $ac_status); }; }; then
9133 ac_cv_lib_ipc_shmat=yes
9135 echo "$as_me: failed program was:" >&5
9136 sed 's/^/| /' conftest.$ac_ext >&5
9138 ac_cv_lib_ipc_shmat=no
9140 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9141 LIBS=$ac_check_lib_save_LIBS
9143 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9144 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9145 if test $ac_cv_lib_ipc_shmat = yes; then
9146 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9152 # Check for libraries that X11R6 Xt/Xaw programs need.
9153 ac_save_LDFLAGS=$LDFLAGS
9154 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9155 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9156 # check for ICE first), but we must link in the order -lSM -lICE or
9157 # we get undefined symbols. So assume we have SM if we have ICE.
9158 # These have to be linked with before -lX11, unlike the other
9159 # libraries we check for below, so use a different variable.
9160 # John Interrante, Karl Berry
9161 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9162 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9163 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9166 ac_check_lib_save_LIBS=$LIBS
9167 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9168 cat >conftest.$ac_ext <<_ACEOF
9169 #line $LINENO "configure"
9172 cat confdefs.h >>conftest.$ac_ext
9173 cat >>conftest.$ac_ext <<_ACEOF
9174 /* end confdefs.h. */
9176 /* Override any gcc2 internal prototype to avoid an error. */
9180 /* We use char because int might match the return type of a gcc2
9181 builtin and then its argument prototype would still apply. */
9182 char IceConnectionNumber ();
9186 IceConnectionNumber ();
9191 rm -f conftest.$ac_objext conftest$ac_exeext
9192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9193 (eval $ac_link) 2>&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } &&
9197 { ac_try='test -s conftest$ac_exeext'
9198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); }; }; then
9203 ac_cv_lib_ICE_IceConnectionNumber=yes
9205 echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.$ac_ext >&5
9208 ac_cv_lib_ICE_IceConnectionNumber=no
9210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9211 LIBS=$ac_check_lib_save_LIBS
9213 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9214 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9215 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9216 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9219 LDFLAGS=$ac_save_LDFLAGS
9279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9281 echo "$as_me:$LINENO: checking for $ac_header" >&5
9282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9284 echo $ECHO_N "(cached) $ECHO_C" >&6
9286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9289 # Is the header compilable?
9290 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9292 cat >conftest.$ac_ext <<_ACEOF
9293 #line $LINENO "configure"
9296 cat confdefs.h >>conftest.$ac_ext
9297 cat >>conftest.$ac_ext <<_ACEOF
9298 /* end confdefs.h. */
9299 $ac_includes_default
9300 #include <$ac_header>
9302 rm -f conftest.$ac_objext
9303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9304 (eval $ac_compile) 2>&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } &&
9308 { ac_try='test -s conftest.$ac_objext'
9309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313 (exit $ac_status); }; }; then
9314 ac_header_compiler=yes
9316 echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9319 ac_header_compiler=no
9321 rm -f conftest.$ac_objext conftest.$ac_ext
9322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9323 echo "${ECHO_T}$ac_header_compiler" >&6
9325 # Is the header present?
9326 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9328 cat >conftest.$ac_ext <<_ACEOF
9329 #line $LINENO "configure"
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h. */
9335 #include <$ac_header>
9337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9338 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9340 grep -v '^ *+' conftest.er1 >conftest.err
9342 cat conftest.err >&5
9343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344 (exit $ac_status); } >/dev/null; then
9345 if test -s conftest.err; then
9346 ac_cpp_err=$ac_c_preproc_warn_flag
9353 if test -z "$ac_cpp_err"; then
9354 ac_header_preproc=yes
9356 echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9359 ac_header_preproc=no
9361 rm -f conftest.err conftest.$ac_ext
9362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9363 echo "${ECHO_T}$ac_header_preproc" >&6
9365 # So? What about this header?
9366 case $ac_header_compiler:$ac_header_preproc in
9368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9374 ## ------------------------------------ ##
9375 ## Report this to bug-autoconf@gnu.org. ##
9376 ## ------------------------------------ ##
9379 sed "s/^/$as_me: WARNING: /" >&2
9382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9390 ## ------------------------------------ ##
9391 ## Report this to bug-autoconf@gnu.org. ##
9392 ## ------------------------------------ ##
9395 sed "s/^/$as_me: WARNING: /" >&2
9398 echo "$as_me:$LINENO: checking for $ac_header" >&5
9399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9403 eval "$as_ac_Header=$ac_header_preproc"
9405 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9406 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9410 cat >>confdefs.h <<_ACEOF
9411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9418 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9419 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9420 if test "${ac_cv_header_stdc+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 cat >conftest.$ac_ext <<_ACEOF
9424 #line $LINENO "configure"
9427 cat confdefs.h >>conftest.$ac_ext
9428 cat >>conftest.$ac_ext <<_ACEOF
9429 /* end confdefs.h. */
9443 rm -f conftest.$ac_objext
9444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9445 (eval $ac_compile) 2>&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } &&
9449 { ac_try='test -s conftest.$ac_objext'
9450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); }; }; then
9455 ac_cv_header_stdc=yes
9457 echo "$as_me: failed program was:" >&5
9458 sed 's/^/| /' conftest.$ac_ext >&5
9460 ac_cv_header_stdc=no
9462 rm -f conftest.$ac_objext conftest.$ac_ext
9464 if test $ac_cv_header_stdc = yes; then
9465 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9466 cat >conftest.$ac_ext <<_ACEOF
9467 #line $LINENO "configure"
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9477 $EGREP "memchr" >/dev/null 2>&1; then
9480 ac_cv_header_stdc=no
9486 if test $ac_cv_header_stdc = yes; then
9487 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9488 cat >conftest.$ac_ext <<_ACEOF
9489 #line $LINENO "configure"
9492 cat confdefs.h >>conftest.$ac_ext
9493 cat >>conftest.$ac_ext <<_ACEOF
9494 /* end confdefs.h. */
9498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9499 $EGREP "free" >/dev/null 2>&1; then
9502 ac_cv_header_stdc=no
9508 if test $ac_cv_header_stdc = yes; then
9509 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9510 if test "$cross_compiling" = yes; then
9513 cat >conftest.$ac_ext <<_ACEOF
9514 #line $LINENO "configure"
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9521 #if ((' ' & 0x0FF) == 0x020)
9522 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9523 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9525 # define ISLOWER(c) \
9526 (('a' <= (c) && (c) <= 'i') \
9527 || ('j' <= (c) && (c) <= 'r') \
9528 || ('s' <= (c) && (c) <= 'z'))
9529 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9532 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9537 for (i = 0; i < 256; i++)
9538 if (XOR (islower (i), ISLOWER (i))
9539 || toupper (i) != TOUPPER (i))
9544 rm -f conftest$ac_exeext
9545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9546 (eval $ac_link) 2>&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; }; then
9557 echo "$as_me: program exited with status $ac_status" >&5
9558 echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9562 ac_cv_header_stdc=no
9564 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9568 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9569 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9570 if test $ac_cv_header_stdc = yes; then
9572 cat >>confdefs.h <<\_ACEOF
9573 #define STDC_HEADERS 1
9578 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9579 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9580 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9583 cat >conftest.$ac_ext <<_ACEOF
9584 #line $LINENO "configure"
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9590 #include <sys/types.h>
9594 return makedev(0, 0);
9599 rm -f conftest.$ac_objext conftest$ac_exeext
9600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9601 (eval $ac_link) 2>&5
9603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9604 (exit $ac_status); } &&
9605 { ac_try='test -s conftest$ac_exeext'
9606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610 (exit $ac_status); }; }; then
9611 ac_cv_header_sys_types_h_makedev=yes
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9616 ac_cv_header_sys_types_h_makedev=no
9618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9621 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9622 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9624 if test $ac_cv_header_sys_types_h_makedev = no; then
9625 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9626 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9627 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9628 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9632 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9634 # Is the header compilable?
9635 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9636 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9637 cat >conftest.$ac_ext <<_ACEOF
9638 #line $LINENO "configure"
9641 cat confdefs.h >>conftest.$ac_ext
9642 cat >>conftest.$ac_ext <<_ACEOF
9643 /* end confdefs.h. */
9644 $ac_includes_default
9645 #include <sys/mkdev.h>
9647 rm -f conftest.$ac_objext
9648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9649 (eval $ac_compile) 2>&5
9651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9652 (exit $ac_status); } &&
9653 { ac_try='test -s conftest.$ac_objext'
9654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9658 (exit $ac_status); }; }; then
9659 ac_header_compiler=yes
9661 echo "$as_me: failed program was:" >&5
9662 sed 's/^/| /' conftest.$ac_ext >&5
9664 ac_header_compiler=no
9666 rm -f conftest.$ac_objext conftest.$ac_ext
9667 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9668 echo "${ECHO_T}$ac_header_compiler" >&6
9670 # Is the header present?
9671 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9672 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9673 cat >conftest.$ac_ext <<_ACEOF
9674 #line $LINENO "configure"
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9680 #include <sys/mkdev.h>
9682 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9683 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9685 grep -v '^ *+' conftest.er1 >conftest.err
9687 cat conftest.err >&5
9688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9689 (exit $ac_status); } >/dev/null; then
9690 if test -s conftest.err; then
9691 ac_cpp_err=$ac_c_preproc_warn_flag
9698 if test -z "$ac_cpp_err"; then
9699 ac_header_preproc=yes
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9704 ac_header_preproc=no
9706 rm -f conftest.err conftest.$ac_ext
9707 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9708 echo "${ECHO_T}$ac_header_preproc" >&6
9710 # So? What about this header?
9711 case $ac_header_compiler:$ac_header_preproc in
9713 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9714 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9715 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9716 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9719 ## ------------------------------------ ##
9720 ## Report this to bug-autoconf@gnu.org. ##
9721 ## ------------------------------------ ##
9724 sed "s/^/$as_me: WARNING: /" >&2
9727 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9728 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9729 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9730 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9731 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9732 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9735 ## ------------------------------------ ##
9736 ## Report this to bug-autoconf@gnu.org. ##
9737 ## ------------------------------------ ##
9740 sed "s/^/$as_me: WARNING: /" >&2
9743 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9744 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9745 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9750 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9751 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9754 if test $ac_cv_header_sys_mkdev_h = yes; then
9756 cat >>confdefs.h <<\_ACEOF
9757 #define MAJOR_IN_MKDEV 1
9764 if test $ac_cv_header_sys_mkdev_h = no; then
9765 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9766 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9767 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9768 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9769 echo $ECHO_N "(cached) $ECHO_C" >&6
9771 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9772 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9774 # Is the header compilable?
9775 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9776 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9777 cat >conftest.$ac_ext <<_ACEOF
9778 #line $LINENO "configure"
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h. */
9784 $ac_includes_default
9785 #include <sys/sysmacros.h>
9787 rm -f conftest.$ac_objext
9788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9789 (eval $ac_compile) 2>&5
9791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792 (exit $ac_status); } &&
9793 { ac_try='test -s conftest.$ac_objext'
9794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); }; }; then
9799 ac_header_compiler=yes
9801 echo "$as_me: failed program was:" >&5
9802 sed 's/^/| /' conftest.$ac_ext >&5
9804 ac_header_compiler=no
9806 rm -f conftest.$ac_objext conftest.$ac_ext
9807 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9808 echo "${ECHO_T}$ac_header_compiler" >&6
9810 # Is the header present?
9811 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9812 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9813 cat >conftest.$ac_ext <<_ACEOF
9814 #line $LINENO "configure"
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9820 #include <sys/sysmacros.h>
9822 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9823 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9825 grep -v '^ *+' conftest.er1 >conftest.err
9827 cat conftest.err >&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } >/dev/null; then
9830 if test -s conftest.err; then
9831 ac_cpp_err=$ac_c_preproc_warn_flag
9838 if test -z "$ac_cpp_err"; then
9839 ac_header_preproc=yes
9841 echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9844 ac_header_preproc=no
9846 rm -f conftest.err conftest.$ac_ext
9847 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9848 echo "${ECHO_T}$ac_header_preproc" >&6
9850 # So? What about this header?
9851 case $ac_header_compiler:$ac_header_preproc in
9853 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9854 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9855 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9856 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9859 ## ------------------------------------ ##
9860 ## Report this to bug-autoconf@gnu.org. ##
9861 ## ------------------------------------ ##
9864 sed "s/^/$as_me: WARNING: /" >&2
9867 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9868 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9869 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9870 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9871 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9872 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9875 ## ------------------------------------ ##
9876 ## Report this to bug-autoconf@gnu.org. ##
9877 ## ------------------------------------ ##
9880 sed "s/^/$as_me: WARNING: /" >&2
9883 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9884 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9885 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9886 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9890 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9891 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9894 if test $ac_cv_header_sys_sysmacros_h = yes; then
9896 cat >>confdefs.h <<\_ACEOF
9897 #define MAJOR_IN_SYSMACROS 1
9912 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9913 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9914 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9915 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9916 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 cat >conftest.$ac_ext <<_ACEOF
9920 #line $LINENO "configure"
9923 cat confdefs.h >>conftest.$ac_ext
9924 cat >>conftest.$ac_ext <<_ACEOF
9925 /* end confdefs.h. */
9926 #include <sys/types.h>
9938 rm -f conftest.$ac_objext
9939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9940 (eval $ac_compile) 2>&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } &&
9944 { ac_try='test -s conftest.$ac_objext'
9945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); }; }; then
9950 eval "$as_ac_Header=yes"
9952 echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.$ac_ext >&5
9955 eval "$as_ac_Header=no"
9957 rm -f conftest.$ac_objext conftest.$ac_ext
9959 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9960 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9961 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9962 cat >>confdefs.h <<_ACEOF
9963 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9966 ac_header_dirent=$ac_hdr; break
9970 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9971 if test $ac_header_dirent = dirent.h; then
9972 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9973 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9974 if test "${ac_cv_search_opendir+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 ac_func_search_save_LIBS=$LIBS
9978 ac_cv_search_opendir=no
9979 cat >conftest.$ac_ext <<_ACEOF
9980 #line $LINENO "configure"
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9987 /* Override any gcc2 internal prototype to avoid an error. */
9991 /* We use char because int might match the return type of a gcc2
9992 builtin and then its argument prototype would still apply. */
10002 rm -f conftest.$ac_objext conftest$ac_exeext
10003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10004 (eval $ac_link) 2>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } &&
10008 { ac_try='test -s conftest$ac_exeext'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; }; then
10014 ac_cv_search_opendir="none required"
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10021 if test "$ac_cv_search_opendir" = no; then
10022 for ac_lib in dir; do
10023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10024 cat >conftest.$ac_ext <<_ACEOF
10025 #line $LINENO "configure"
10028 cat confdefs.h >>conftest.$ac_ext
10029 cat >>conftest.$ac_ext <<_ACEOF
10030 /* end confdefs.h. */
10032 /* Override any gcc2 internal prototype to avoid an error. */
10036 /* We use char because int might match the return type of a gcc2
10037 builtin and then its argument prototype would still apply. */
10047 rm -f conftest.$ac_objext conftest$ac_exeext
10048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10049 (eval $ac_link) 2>&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } &&
10053 { ac_try='test -s conftest$ac_exeext'
10054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10055 (eval $ac_try) 2>&5
10057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10058 (exit $ac_status); }; }; then
10059 ac_cv_search_opendir="-l$ac_lib"
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10066 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10069 LIBS=$ac_func_search_save_LIBS
10071 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10072 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10073 if test "$ac_cv_search_opendir" != no; then
10074 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10079 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10080 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10081 if test "${ac_cv_search_opendir+set}" = set; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 ac_func_search_save_LIBS=$LIBS
10085 ac_cv_search_opendir=no
10086 cat >conftest.$ac_ext <<_ACEOF
10087 #line $LINENO "configure"
10090 cat confdefs.h >>conftest.$ac_ext
10091 cat >>conftest.$ac_ext <<_ACEOF
10092 /* end confdefs.h. */
10094 /* Override any gcc2 internal prototype to avoid an error. */
10098 /* We use char because int might match the return type of a gcc2
10099 builtin and then its argument prototype would still apply. */
10109 rm -f conftest.$ac_objext conftest$ac_exeext
10110 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10111 (eval $ac_link) 2>&5
10113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10114 (exit $ac_status); } &&
10115 { ac_try='test -s conftest$ac_exeext'
10116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10117 (eval $ac_try) 2>&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); }; }; then
10121 ac_cv_search_opendir="none required"
10123 echo "$as_me: failed program was:" >&5
10124 sed 's/^/| /' conftest.$ac_ext >&5
10127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10128 if test "$ac_cv_search_opendir" = no; then
10129 for ac_lib in x; do
10130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10131 cat >conftest.$ac_ext <<_ACEOF
10132 #line $LINENO "configure"
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h. */
10139 /* Override any gcc2 internal prototype to avoid an error. */
10143 /* We use char because int might match the return type of a gcc2
10144 builtin and then its argument prototype would still apply. */
10154 rm -f conftest.$ac_objext conftest$ac_exeext
10155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10156 (eval $ac_link) 2>&5
10158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10159 (exit $ac_status); } &&
10160 { ac_try='test -s conftest$ac_exeext'
10161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10162 (eval $ac_try) 2>&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; }; then
10166 ac_cv_search_opendir="-l$ac_lib"
10169 echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.$ac_ext >&5
10173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10176 LIBS=$ac_func_search_save_LIBS
10178 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10179 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10180 if test "$ac_cv_search_opendir" != no; then
10181 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10187 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10188 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10189 if test "${ac_cv_header_stat_broken+set}" = set; then
10190 echo $ECHO_N "(cached) $ECHO_C" >&6
10192 cat >conftest.$ac_ext <<_ACEOF
10193 #line $LINENO "configure"
10196 cat confdefs.h >>conftest.$ac_ext
10197 cat >>conftest.$ac_ext <<_ACEOF
10198 /* end confdefs.h. */
10199 #include <sys/types.h>
10200 #include <sys/stat.h>
10202 #if defined(S_ISBLK) && defined(S_IFDIR)
10203 # if S_ISBLK (S_IFDIR)
10208 #if defined(S_ISBLK) && defined(S_IFCHR)
10209 # if S_ISBLK (S_IFCHR)
10214 #if defined(S_ISLNK) && defined(S_IFREG)
10215 # if S_ISLNK (S_IFREG)
10220 #if defined(S_ISSOCK) && defined(S_IFREG)
10221 # if S_ISSOCK (S_IFREG)
10227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10228 $EGREP "You lose" >/dev/null 2>&1; then
10229 ac_cv_header_stat_broken=yes
10231 ac_cv_header_stat_broken=no
10236 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10237 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10238 if test $ac_cv_header_stat_broken = yes; then
10240 cat >>confdefs.h <<\_ACEOF
10241 #define STAT_MACROS_BROKEN 1
10246 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10247 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10248 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10249 echo $ECHO_N "(cached) $ECHO_C" >&6
10251 cat >conftest.$ac_ext <<_ACEOF
10252 #line $LINENO "configure"
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10258 #include <sys/types.h>
10259 #include <sys/wait.h>
10260 #ifndef WEXITSTATUS
10261 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10264 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10272 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10277 rm -f conftest.$ac_objext
10278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10279 (eval $ac_compile) 2>&5
10281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10282 (exit $ac_status); } &&
10283 { ac_try='test -s conftest.$ac_objext'
10284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10285 (eval $ac_try) 2>&5
10287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); }; }; then
10289 ac_cv_header_sys_wait_h=yes
10291 echo "$as_me: failed program was:" >&5
10292 sed 's/^/| /' conftest.$ac_ext >&5
10294 ac_cv_header_sys_wait_h=no
10296 rm -f conftest.$ac_objext conftest.$ac_ext
10298 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10299 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10300 if test $ac_cv_header_sys_wait_h = yes; then
10302 cat >>confdefs.h <<\_ACEOF
10303 #define HAVE_SYS_WAIT_H 1
10308 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10309 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10310 if test "${ac_cv_header_time+set}" = set; then
10311 echo $ECHO_N "(cached) $ECHO_C" >&6
10313 cat >conftest.$ac_ext <<_ACEOF
10314 #line $LINENO "configure"
10317 cat confdefs.h >>conftest.$ac_ext
10318 cat >>conftest.$ac_ext <<_ACEOF
10319 /* end confdefs.h. */
10320 #include <sys/types.h>
10321 #include <sys/time.h>
10327 if ((struct tm *) 0)
10333 rm -f conftest.$ac_objext
10334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10335 (eval $ac_compile) 2>&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } &&
10339 { ac_try='test -s conftest.$ac_objext'
10340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10341 (eval $ac_try) 2>&5
10343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10344 (exit $ac_status); }; }; then
10345 ac_cv_header_time=yes
10347 echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.$ac_ext >&5
10350 ac_cv_header_time=no
10352 rm -f conftest.$ac_objext conftest.$ac_ext
10354 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10355 echo "${ECHO_T}$ac_cv_header_time" >&6
10356 if test $ac_cv_header_time = yes; then
10358 cat >>confdefs.h <<\_ACEOF
10359 #define TIME_WITH_SYS_TIME 1
10365 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10366 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10367 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10370 cat >conftest.$ac_ext <<_ACEOF
10371 #line $LINENO "configure"
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10377 $ac_includes_default
10381 static struct stat ac_aggr;
10382 if (ac_aggr.st_blksize)
10388 rm -f conftest.$ac_objext
10389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10390 (eval $ac_compile) 2>&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); } &&
10394 { ac_try='test -s conftest.$ac_objext'
10395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10396 (eval $ac_try) 2>&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); }; }; then
10400 ac_cv_member_struct_stat_st_blksize=yes
10402 echo "$as_me: failed program was:" >&5
10403 sed 's/^/| /' conftest.$ac_ext >&5
10405 cat >conftest.$ac_ext <<_ACEOF
10406 #line $LINENO "configure"
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h. */
10412 $ac_includes_default
10416 static struct stat ac_aggr;
10417 if (sizeof ac_aggr.st_blksize)
10423 rm -f conftest.$ac_objext
10424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10425 (eval $ac_compile) 2>&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } &&
10429 { ac_try='test -s conftest.$ac_objext'
10430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10431 (eval $ac_try) 2>&5
10433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10434 (exit $ac_status); }; }; then
10435 ac_cv_member_struct_stat_st_blksize=yes
10437 echo "$as_me: failed program was:" >&5
10438 sed 's/^/| /' conftest.$ac_ext >&5
10440 ac_cv_member_struct_stat_st_blksize=no
10442 rm -f conftest.$ac_objext conftest.$ac_ext
10444 rm -f conftest.$ac_objext conftest.$ac_ext
10446 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10447 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10448 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10450 cat >>confdefs.h <<_ACEOF
10451 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10455 cat >>confdefs.h <<\_ACEOF
10456 #define HAVE_ST_BLKSIZE 1
10462 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10463 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10464 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10465 echo $ECHO_N "(cached) $ECHO_C" >&6
10467 cat >conftest.$ac_ext <<_ACEOF
10468 #line $LINENO "configure"
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h. */
10474 $ac_includes_default
10478 static struct stat ac_aggr;
10479 if (ac_aggr.st_blocks)
10485 rm -f conftest.$ac_objext
10486 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10487 (eval $ac_compile) 2>&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } &&
10491 { ac_try='test -s conftest.$ac_objext'
10492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10493 (eval $ac_try) 2>&5
10495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10496 (exit $ac_status); }; }; then
10497 ac_cv_member_struct_stat_st_blocks=yes
10499 echo "$as_me: failed program was:" >&5
10500 sed 's/^/| /' conftest.$ac_ext >&5
10502 cat >conftest.$ac_ext <<_ACEOF
10503 #line $LINENO "configure"
10506 cat confdefs.h >>conftest.$ac_ext
10507 cat >>conftest.$ac_ext <<_ACEOF
10508 /* end confdefs.h. */
10509 $ac_includes_default
10513 static struct stat ac_aggr;
10514 if (sizeof ac_aggr.st_blocks)
10520 rm -f conftest.$ac_objext
10521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10522 (eval $ac_compile) 2>&5
10524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10525 (exit $ac_status); } &&
10526 { ac_try='test -s conftest.$ac_objext'
10527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10528 (eval $ac_try) 2>&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); }; }; then
10532 ac_cv_member_struct_stat_st_blocks=yes
10534 echo "$as_me: failed program was:" >&5
10535 sed 's/^/| /' conftest.$ac_ext >&5
10537 ac_cv_member_struct_stat_st_blocks=no
10539 rm -f conftest.$ac_objext conftest.$ac_ext
10541 rm -f conftest.$ac_objext conftest.$ac_ext
10543 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10544 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10545 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10547 cat >>confdefs.h <<_ACEOF
10548 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10552 cat >>confdefs.h <<\_ACEOF
10553 #define HAVE_ST_BLOCKS 1
10557 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10561 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10562 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10563 if test "${ac_cv_struct_tm+set}" = set; then
10564 echo $ECHO_N "(cached) $ECHO_C" >&6
10566 cat >conftest.$ac_ext <<_ACEOF
10567 #line $LINENO "configure"
10570 cat confdefs.h >>conftest.$ac_ext
10571 cat >>conftest.$ac_ext <<_ACEOF
10572 /* end confdefs.h. */
10573 #include <sys/types.h>
10579 struct tm *tp; tp->tm_sec;
10584 rm -f conftest.$ac_objext
10585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10586 (eval $ac_compile) 2>&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); } &&
10590 { ac_try='test -s conftest.$ac_objext'
10591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10592 (eval $ac_try) 2>&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); }; }; then
10596 ac_cv_struct_tm=time.h
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10601 ac_cv_struct_tm=sys/time.h
10603 rm -f conftest.$ac_objext conftest.$ac_ext
10605 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10606 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10607 if test $ac_cv_struct_tm = sys/time.h; then
10609 cat >>confdefs.h <<\_ACEOF
10610 #define TM_IN_SYS_TIME 1
10615 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10616 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10617 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10618 echo $ECHO_N "(cached) $ECHO_C" >&6
10620 cat >conftest.$ac_ext <<_ACEOF
10621 #line $LINENO "configure"
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h. */
10627 #include <sys/types.h>
10628 #include <$ac_cv_struct_tm>
10634 static struct tm ac_aggr;
10635 if (ac_aggr.tm_zone)
10641 rm -f conftest.$ac_objext
10642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10643 (eval $ac_compile) 2>&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); } &&
10647 { ac_try='test -s conftest.$ac_objext'
10648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649 (eval $ac_try) 2>&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; }; then
10653 ac_cv_member_struct_tm_tm_zone=yes
10655 echo "$as_me: failed program was:" >&5
10656 sed 's/^/| /' conftest.$ac_ext >&5
10658 cat >conftest.$ac_ext <<_ACEOF
10659 #line $LINENO "configure"
10662 cat confdefs.h >>conftest.$ac_ext
10663 cat >>conftest.$ac_ext <<_ACEOF
10664 /* end confdefs.h. */
10665 #include <sys/types.h>
10666 #include <$ac_cv_struct_tm>
10672 static struct tm ac_aggr;
10673 if (sizeof ac_aggr.tm_zone)
10679 rm -f conftest.$ac_objext
10680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10681 (eval $ac_compile) 2>&5
10683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10684 (exit $ac_status); } &&
10685 { ac_try='test -s conftest.$ac_objext'
10686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10687 (eval $ac_try) 2>&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); }; }; then
10691 ac_cv_member_struct_tm_tm_zone=yes
10693 echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10696 ac_cv_member_struct_tm_tm_zone=no
10698 rm -f conftest.$ac_objext conftest.$ac_ext
10700 rm -f conftest.$ac_objext conftest.$ac_ext
10702 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10703 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10704 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10706 cat >>confdefs.h <<_ACEOF
10707 #define HAVE_STRUCT_TM_TM_ZONE 1
10713 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10715 cat >>confdefs.h <<\_ACEOF
10716 #define HAVE_TM_ZONE 1
10720 echo "$as_me:$LINENO: checking for tzname" >&5
10721 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10722 if test "${ac_cv_var_tzname+set}" = set; then
10723 echo $ECHO_N "(cached) $ECHO_C" >&6
10725 cat >conftest.$ac_ext <<_ACEOF
10726 #line $LINENO "configure"
10729 cat confdefs.h >>conftest.$ac_ext
10730 cat >>conftest.$ac_ext <<_ACEOF
10731 /* end confdefs.h. */
10733 #ifndef tzname /* For SGI. */
10734 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10745 rm -f conftest.$ac_objext conftest$ac_exeext
10746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10747 (eval $ac_link) 2>&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } &&
10751 { ac_try='test -s conftest$ac_exeext'
10752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10753 (eval $ac_try) 2>&5
10755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756 (exit $ac_status); }; }; then
10757 ac_cv_var_tzname=yes
10759 echo "$as_me: failed program was:" >&5
10760 sed 's/^/| /' conftest.$ac_ext >&5
10762 ac_cv_var_tzname=no
10764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10766 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10767 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10768 if test $ac_cv_var_tzname = yes; then
10770 cat >>confdefs.h <<\_ACEOF
10771 #define HAVE_TZNAME 1
10778 echo "$as_me:$LINENO: checking for utime.h" >&5
10779 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10780 if test "${ba_cv_header_utime_h+set}" = set; then
10781 echo $ECHO_N "(cached) $ECHO_C" >&6
10783 cat >conftest.$ac_ext <<_ACEOF
10784 #line $LINENO "configure"
10787 cat confdefs.h >>conftest.$ac_ext
10788 cat >>conftest.$ac_ext <<_ACEOF
10789 /* end confdefs.h. */
10791 #include <sys/types.h>
10801 rm -f conftest.$ac_objext
10802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10803 (eval $ac_compile) 2>&5
10805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10806 (exit $ac_status); } &&
10807 { ac_try='test -s conftest.$ac_objext'
10808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10809 (eval $ac_try) 2>&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); }; }; then
10813 ba_cv_header_utime_h=yes
10815 echo "$as_me: failed program was:" >&5
10816 sed 's/^/| /' conftest.$ac_ext >&5
10818 ba_cv_header_utime_h=no
10820 rm -f conftest.$ac_objext conftest.$ac_ext
10822 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10823 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10824 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10825 #define HAVE_UTIME_H 1
10829 echo "$as_me:$LINENO: checking for socklen_t" >&5
10830 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10831 if test "${ba_cv_header_socklen_t+set}" = set; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
10834 cat >conftest.$ac_ext <<_ACEOF
10835 #line $LINENO "configure"
10838 cat confdefs.h >>conftest.$ac_ext
10839 cat >>conftest.$ac_ext <<_ACEOF
10840 /* end confdefs.h. */
10842 #include <sys/types.h>
10843 #include <sys/socket.h>
10852 rm -f conftest.$ac_objext
10853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10854 (eval $ac_compile) 2>&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } &&
10858 { ac_try='test -s conftest.$ac_objext'
10859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10860 (eval $ac_try) 2>&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10863 (exit $ac_status); }; }; then
10864 ba_cv_header_socklen_t=yes
10866 echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10869 ba_cv_header_socklen_t=no
10871 rm -f conftest.$ac_objext conftest.$ac_ext
10873 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10874 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10875 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10876 #define HAVE_SOCKLEN_T 1
10880 echo "$as_me:$LINENO: checking for bigendian" >&5
10881 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10882 if test "${ba_cv_bigendian+set}" = set; then
10883 echo $ECHO_N "(cached) $ECHO_C" >&6
10885 if test "$cross_compiling" = yes; then
10888 cat >conftest.$ac_ext <<_ACEOF
10889 #line $LINENO "configure"
10892 cat confdefs.h >>conftest.$ac_ext
10893 cat >>conftest.$ac_ext <<_ACEOF
10894 /* end confdefs.h. */
10895 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10897 rm -f conftest$ac_exeext
10898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10899 (eval $ac_link) 2>&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10904 (eval $ac_try) 2>&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; }; then
10908 ba_cv_bigendian=yes
10910 echo "$as_me: program exited with status $ac_status" >&5
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10914 ( exit $ac_status )
10917 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10920 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10921 echo "${ECHO_T}$ba_cv_bigendian" >&6
10922 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10923 #define HAVE_BIGENDIAN 1
10928 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10929 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10930 if test "${ac_cv_c_const+set}" = set; then
10931 echo $ECHO_N "(cached) $ECHO_C" >&6
10933 cat >conftest.$ac_ext <<_ACEOF
10934 #line $LINENO "configure"
10937 cat confdefs.h >>conftest.$ac_ext
10938 cat >>conftest.$ac_ext <<_ACEOF
10939 /* end confdefs.h. */
10944 /* FIXME: Include the comments suggested by Paul. */
10945 #ifndef __cplusplus
10946 /* Ultrix mips cc rejects this. */
10947 typedef int charset[2];
10949 /* SunOS 4.1.1 cc rejects this. */
10950 char const *const *ccp;
10952 /* NEC SVR4.0.2 mips cc rejects this. */
10953 struct point {int x, y;};
10954 static struct point const zero = {0,0};
10955 /* AIX XL C 1.02.0.0 rejects this.
10956 It does not let you subtract one const X* pointer from another in
10957 an arm of an if-expression whose if-part is not a constant
10959 const char *g = "string";
10960 ccp = &g + (g ? g-g : 0);
10961 /* HPUX 7.0 cc rejects these. */
10964 ccp = (char const *const *) p;
10965 { /* SCO 3.2v4 cc rejects this. */
10967 char const *s = 0 ? (char *) 0 : (char const *) 0;
10971 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10972 int x[] = {25, 17};
10973 const int *foo = &x[0];
10976 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10977 typedef const int *iptr;
10981 { /* AIX XL C 1.02.0.0 rejects this saying
10982 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10983 struct s { int j; const int *ap[3]; };
10984 struct s *b; b->j = 5;
10986 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10987 const int foo = 10;
10995 rm -f conftest.$ac_objext
10996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10997 (eval $ac_compile) 2>&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } &&
11001 { ac_try='test -s conftest.$ac_objext'
11002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11003 (eval $ac_try) 2>&5
11005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11006 (exit $ac_status); }; }; then
11009 echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11014 rm -f conftest.$ac_objext conftest.$ac_ext
11016 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11017 echo "${ECHO_T}$ac_cv_c_const" >&6
11018 if test $ac_cv_c_const = no; then
11020 cat >>confdefs.h <<\_ACEOF
11028 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11029 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11031 # The order of these tests is important.
11032 cat >conftest.$ac_ext <<_ACEOF
11033 #line $LINENO "configure"
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11039 #include <sys/statvfs.h>
11040 #include <sys/fstyp.h>
11042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11045 grep -v '^ *+' conftest.er1 >conftest.err
11047 cat conftest.err >&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); } >/dev/null; then
11050 if test -s conftest.err; then
11051 ac_cpp_err=$ac_c_preproc_warn_flag
11058 if test -z "$ac_cpp_err"; then
11059 cat >>confdefs.h <<\_ACEOF
11060 #define FSTYPE_STATVFS 1
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11069 rm -f conftest.err conftest.$ac_ext
11070 if test $fstype = no; then
11071 cat >conftest.$ac_ext <<_ACEOF
11072 #line $LINENO "configure"
11075 cat confdefs.h >>conftest.$ac_ext
11076 cat >>conftest.$ac_ext <<_ACEOF
11077 /* end confdefs.h. */
11078 #include <sys/statfs.h>
11079 #include <sys/fstyp.h>
11081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11082 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11084 grep -v '^ *+' conftest.er1 >conftest.err
11086 cat conftest.err >&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); } >/dev/null; then
11089 if test -s conftest.err; then
11090 ac_cpp_err=$ac_c_preproc_warn_flag
11097 if test -z "$ac_cpp_err"; then
11098 cat >>confdefs.h <<\_ACEOF
11099 #define FSTYPE_USG_STATFS 1
11103 echo "$as_me: failed program was:" >&5
11104 sed 's/^/| /' conftest.$ac_ext >&5
11108 rm -f conftest.err conftest.$ac_ext
11110 if test $fstype = no; then
11111 cat >conftest.$ac_ext <<_ACEOF
11112 #line $LINENO "configure"
11115 cat confdefs.h >>conftest.$ac_ext
11116 cat >>conftest.$ac_ext <<_ACEOF
11117 /* end confdefs.h. */
11118 #include <sys/statfs.h>
11119 #include <sys/vmount.h>
11121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11124 grep -v '^ *+' conftest.er1 >conftest.err
11126 cat conftest.err >&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } >/dev/null; then
11129 if test -s conftest.err; then
11130 ac_cpp_err=$ac_c_preproc_warn_flag
11137 if test -z "$ac_cpp_err"; then
11138 cat >>confdefs.h <<\_ACEOF
11139 #define FSTYPE_AIX_STATFS 1
11143 echo "$as_me: failed program was:" >&5
11144 sed 's/^/| /' conftest.$ac_ext >&5
11148 rm -f conftest.err conftest.$ac_ext
11150 if test $fstype = no; then
11151 cat >conftest.$ac_ext <<_ACEOF
11152 #line $LINENO "configure"
11155 cat confdefs.h >>conftest.$ac_ext
11156 cat >>conftest.$ac_ext <<_ACEOF
11157 /* end confdefs.h. */
11158 #include <mntent.h>
11160 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11163 grep -v '^ *+' conftest.er1 >conftest.err
11165 cat conftest.err >&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); } >/dev/null; then
11168 if test -s conftest.err; then
11169 ac_cpp_err=$ac_c_preproc_warn_flag
11176 if test -z "$ac_cpp_err"; then
11177 cat >>confdefs.h <<\_ACEOF
11178 #define FSTYPE_MNTENT 1
11182 echo "$as_me: failed program was:" >&5
11183 sed 's/^/| /' conftest.$ac_ext >&5
11187 rm -f conftest.err conftest.$ac_ext
11189 if test $fstype = no; then
11190 cat >conftest.$ac_ext <<_ACEOF
11191 #line $LINENO "configure"
11194 cat confdefs.h >>conftest.$ac_ext
11195 cat >>conftest.$ac_ext <<_ACEOF
11196 /* end confdefs.h. */
11197 #include <sys/mount.h>
11200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11201 $EGREP "f_type;" >/dev/null 2>&1; then
11202 cat >>confdefs.h <<\_ACEOF
11203 #define FSTYPE_STATFS 1
11210 if test $fstype = no; then
11211 cat >conftest.$ac_ext <<_ACEOF
11212 #line $LINENO "configure"
11215 cat confdefs.h >>conftest.$ac_ext
11216 cat >>conftest.$ac_ext <<_ACEOF
11217 /* end confdefs.h. */
11218 #include <sys/mount.h>
11219 #include <sys/fs_types.h>
11221 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11224 grep -v '^ *+' conftest.er1 >conftest.err
11226 cat conftest.err >&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); } >/dev/null; then
11229 if test -s conftest.err; then
11230 ac_cpp_err=$ac_c_preproc_warn_flag
11237 if test -z "$ac_cpp_err"; then
11238 cat >>confdefs.h <<\_ACEOF
11239 #define FSTYPE_GETMNT 1
11243 echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.$ac_ext >&5
11248 rm -f conftest.err conftest.$ac_ext
11250 echo "$as_me:$LINENO: result: $fstype" >&5
11251 echo "${ECHO_T}$fstype" >&6
11253 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11254 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11255 if test "${ac_cv_type_signal+set}" = set; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11258 cat >conftest.$ac_ext <<_ACEOF
11259 #line $LINENO "configure"
11262 cat confdefs.h >>conftest.$ac_ext
11263 cat >>conftest.$ac_ext <<_ACEOF
11264 /* end confdefs.h. */
11265 #include <sys/types.h>
11266 #include <signal.h>
11271 extern "C" void (*signal (int, void (*)(int)))(int);
11273 void (*signal ()) ();
11284 rm -f conftest.$ac_objext
11285 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11286 (eval $ac_compile) 2>&5
11288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11289 (exit $ac_status); } &&
11290 { ac_try='test -s conftest.$ac_objext'
11291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11292 (eval $ac_try) 2>&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); }; }; then
11296 ac_cv_type_signal=void
11298 echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11301 ac_cv_type_signal=int
11303 rm -f conftest.$ac_objext conftest.$ac_ext
11305 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11306 echo "${ECHO_T}$ac_cv_type_signal" >&6
11308 cat >>confdefs.h <<_ACEOF
11309 #define RETSIGTYPE $ac_cv_type_signal
11314 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11315 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11316 if test "${bash_cv_signal_vintage+set}" = set; then
11317 echo $ECHO_N "(cached) $ECHO_C" >&6
11320 cat >conftest.$ac_ext <<_ACEOF
11321 #line $LINENO "configure"
11324 cat confdefs.h >>conftest.$ac_ext
11325 cat >>conftest.$ac_ext <<_ACEOF
11326 /* end confdefs.h. */
11327 #include <signal.h>
11333 struct sigaction sa;
11334 sigemptyset(&ss); sigsuspend(&ss);
11335 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11336 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11342 rm -f conftest.$ac_objext conftest$ac_exeext
11343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11344 (eval $ac_link) 2>&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } &&
11348 { ac_try='test -s conftest$ac_exeext'
11349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11350 (eval $ac_try) 2>&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); }; }; then
11354 bash_cv_signal_vintage=posix
11356 echo "$as_me: failed program was:" >&5
11357 sed 's/^/| /' conftest.$ac_ext >&5
11360 cat >conftest.$ac_ext <<_ACEOF
11361 #line $LINENO "configure"
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h. */
11367 #include <signal.h>
11372 int mask = sigmask(SIGINT);
11373 sigsetmask(mask); sigblock(mask); sigpause(mask);
11379 rm -f conftest.$ac_objext conftest$ac_exeext
11380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11381 (eval $ac_link) 2>&5
11383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11384 (exit $ac_status); } &&
11385 { ac_try='test -s conftest$ac_exeext'
11386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387 (eval $ac_try) 2>&5
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); }; }; then
11391 bash_cv_signal_vintage=4.2bsd
11393 echo "$as_me: failed program was:" >&5
11394 sed 's/^/| /' conftest.$ac_ext >&5
11397 cat >conftest.$ac_ext <<_ACEOF
11398 #line $LINENO "configure"
11401 cat confdefs.h >>conftest.$ac_ext
11402 cat >>conftest.$ac_ext <<_ACEOF
11403 /* end confdefs.h. */
11405 #include <signal.h>
11406 RETSIGTYPE foo() { }
11411 int mask = sigmask(SIGINT);
11412 sigset(SIGINT, foo); sigrelse(SIGINT);
11413 sighold(SIGINT); sigpause(SIGINT);
11419 rm -f conftest.$ac_objext conftest$ac_exeext
11420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11421 (eval $ac_link) 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } &&
11425 { ac_try='test -s conftest$ac_exeext'
11426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11427 (eval $ac_try) 2>&5
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); }; }; then
11431 bash_cv_signal_vintage=svr3
11433 echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.$ac_ext >&5
11436 bash_cv_signal_vintage=v7
11439 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11449 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11450 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11451 if test "$bash_cv_signal_vintage" = posix; then
11452 cat >>confdefs.h <<\_ACEOF
11453 #define HAVE_POSIX_SIGNALS 1
11456 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11457 cat >>confdefs.h <<\_ACEOF
11458 #define HAVE_BSD_SIGNALS 1
11461 elif test "$bash_cv_signal_vintage" = svr3; then
11462 cat >>confdefs.h <<\_ACEOF
11463 #define HAVE_USG_SIGHOLD 1
11468 echo "$as_me:$LINENO: checking for mode_t" >&5
11469 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11470 if test "${ac_cv_type_mode_t+set}" = set; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 cat >conftest.$ac_ext <<_ACEOF
11474 #line $LINENO "configure"
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h. */
11480 $ac_includes_default
11486 if (sizeof (mode_t))
11492 rm -f conftest.$ac_objext
11493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11494 (eval $ac_compile) 2>&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try='test -s conftest.$ac_objext'
11499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11500 (eval $ac_try) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); }; }; then
11504 ac_cv_type_mode_t=yes
11506 echo "$as_me: failed program was:" >&5
11507 sed 's/^/| /' conftest.$ac_ext >&5
11509 ac_cv_type_mode_t=no
11511 rm -f conftest.$ac_objext conftest.$ac_ext
11513 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11514 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11515 if test $ac_cv_type_mode_t = yes; then
11519 cat >>confdefs.h <<_ACEOF
11525 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11526 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11527 if test "${ac_cv_type_uid_t+set}" = set; then
11528 echo $ECHO_N "(cached) $ECHO_C" >&6
11530 cat >conftest.$ac_ext <<_ACEOF
11531 #line $LINENO "configure"
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11537 #include <sys/types.h>
11540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11541 $EGREP "uid_t" >/dev/null 2>&1; then
11542 ac_cv_type_uid_t=yes
11544 ac_cv_type_uid_t=no
11549 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11550 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11551 if test $ac_cv_type_uid_t = no; then
11553 cat >>confdefs.h <<\_ACEOF
11558 cat >>confdefs.h <<\_ACEOF
11564 echo "$as_me:$LINENO: checking for size_t" >&5
11565 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11566 if test "${ac_cv_type_size_t+set}" = set; then
11567 echo $ECHO_N "(cached) $ECHO_C" >&6
11569 cat >conftest.$ac_ext <<_ACEOF
11570 #line $LINENO "configure"
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h. */
11576 $ac_includes_default
11582 if (sizeof (size_t))
11588 rm -f conftest.$ac_objext
11589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11590 (eval $ac_compile) 2>&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); } &&
11594 { ac_try='test -s conftest.$ac_objext'
11595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11596 (eval $ac_try) 2>&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); }; }; then
11600 ac_cv_type_size_t=yes
11602 echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11605 ac_cv_type_size_t=no
11607 rm -f conftest.$ac_objext conftest.$ac_ext
11609 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11610 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11611 if test $ac_cv_type_size_t = yes; then
11615 cat >>confdefs.h <<_ACEOF
11616 #define size_t unsigned
11621 echo "$as_me:$LINENO: checking for pid_t" >&5
11622 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11623 if test "${ac_cv_type_pid_t+set}" = set; then
11624 echo $ECHO_N "(cached) $ECHO_C" >&6
11626 cat >conftest.$ac_ext <<_ACEOF
11627 #line $LINENO "configure"
11630 cat confdefs.h >>conftest.$ac_ext
11631 cat >>conftest.$ac_ext <<_ACEOF
11632 /* end confdefs.h. */
11633 $ac_includes_default
11639 if (sizeof (pid_t))
11645 rm -f conftest.$ac_objext
11646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11647 (eval $ac_compile) 2>&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } &&
11651 { ac_try='test -s conftest.$ac_objext'
11652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11653 (eval $ac_try) 2>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }; }; then
11657 ac_cv_type_pid_t=yes
11659 echo "$as_me: failed program was:" >&5
11660 sed 's/^/| /' conftest.$ac_ext >&5
11662 ac_cv_type_pid_t=no
11664 rm -f conftest.$ac_objext conftest.$ac_ext
11666 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11667 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11668 if test $ac_cv_type_pid_t = yes; then
11672 cat >>confdefs.h <<_ACEOF
11678 echo "$as_me:$LINENO: checking for off_t" >&5
11679 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11680 if test "${ac_cv_type_off_t+set}" = set; then
11681 echo $ECHO_N "(cached) $ECHO_C" >&6
11683 cat >conftest.$ac_ext <<_ACEOF
11684 #line $LINENO "configure"
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11690 $ac_includes_default
11696 if (sizeof (off_t))
11702 rm -f conftest.$ac_objext
11703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11704 (eval $ac_compile) 2>&5
11706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11707 (exit $ac_status); } &&
11708 { ac_try='test -s conftest.$ac_objext'
11709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11710 (eval $ac_try) 2>&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); }; }; then
11714 ac_cv_type_off_t=yes
11716 echo "$as_me: failed program was:" >&5
11717 sed 's/^/| /' conftest.$ac_ext >&5
11719 ac_cv_type_off_t=no
11721 rm -f conftest.$ac_objext conftest.$ac_ext
11723 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11724 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11725 if test $ac_cv_type_off_t = yes; then
11729 cat >>confdefs.h <<_ACEOF
11735 echo "$as_me:$LINENO: checking for ino_t" >&5
11736 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11737 if test "${ac_cv_type_ino_t+set}" = set; then
11738 echo $ECHO_N "(cached) $ECHO_C" >&6
11740 cat >conftest.$ac_ext <<_ACEOF
11741 #line $LINENO "configure"
11744 cat confdefs.h >>conftest.$ac_ext
11745 cat >>conftest.$ac_ext <<_ACEOF
11746 /* end confdefs.h. */
11747 $ac_includes_default
11753 if (sizeof (ino_t))
11759 rm -f conftest.$ac_objext
11760 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11761 (eval $ac_compile) 2>&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); } &&
11765 { ac_try='test -s conftest.$ac_objext'
11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 ac_cv_type_ino_t=yes
11773 echo "$as_me: failed program was:" >&5
11774 sed 's/^/| /' conftest.$ac_ext >&5
11776 ac_cv_type_ino_t=no
11778 rm -f conftest.$ac_objext conftest.$ac_ext
11780 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11781 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11782 if test $ac_cv_type_ino_t = yes; then
11786 cat >>confdefs.h <<_ACEOF
11787 #define ino_t unsigned long
11792 echo "$as_me:$LINENO: checking for dev_t" >&5
11793 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11794 if test "${ac_cv_type_dev_t+set}" = set; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 cat >conftest.$ac_ext <<_ACEOF
11798 #line $LINENO "configure"
11801 cat confdefs.h >>conftest.$ac_ext
11802 cat >>conftest.$ac_ext <<_ACEOF
11803 /* end confdefs.h. */
11804 $ac_includes_default
11810 if (sizeof (dev_t))
11816 rm -f conftest.$ac_objext
11817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11818 (eval $ac_compile) 2>&5
11820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11821 (exit $ac_status); } &&
11822 { ac_try='test -s conftest.$ac_objext'
11823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11824 (eval $ac_try) 2>&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); }; }; then
11828 ac_cv_type_dev_t=yes
11830 echo "$as_me: failed program was:" >&5
11831 sed 's/^/| /' conftest.$ac_ext >&5
11833 ac_cv_type_dev_t=no
11835 rm -f conftest.$ac_objext conftest.$ac_ext
11837 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11838 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11839 if test $ac_cv_type_dev_t = yes; then
11843 cat >>confdefs.h <<_ACEOF
11844 #define dev_t unsigned long
11849 echo "$as_me:$LINENO: checking for daddr_t" >&5
11850 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11851 if test "${ac_cv_type_daddr_t+set}" = set; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11854 cat >conftest.$ac_ext <<_ACEOF
11855 #line $LINENO "configure"
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h. */
11861 $ac_includes_default
11867 if (sizeof (daddr_t))
11873 rm -f conftest.$ac_objext
11874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11875 (eval $ac_compile) 2>&5
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); } &&
11879 { ac_try='test -s conftest.$ac_objext'
11880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11881 (eval $ac_try) 2>&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); }; }; then
11885 ac_cv_type_daddr_t=yes
11887 echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.$ac_ext >&5
11890 ac_cv_type_daddr_t=no
11892 rm -f conftest.$ac_objext conftest.$ac_ext
11894 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11895 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11896 if test $ac_cv_type_daddr_t = yes; then
11900 cat >>confdefs.h <<_ACEOF
11901 #define daddr_t long
11906 echo "$as_me:$LINENO: checking for major_t" >&5
11907 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11908 if test "${ac_cv_type_major_t+set}" = set; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11911 cat >conftest.$ac_ext <<_ACEOF
11912 #line $LINENO "configure"
11915 cat confdefs.h >>conftest.$ac_ext
11916 cat >>conftest.$ac_ext <<_ACEOF
11917 /* end confdefs.h. */
11918 $ac_includes_default
11924 if (sizeof (major_t))
11930 rm -f conftest.$ac_objext
11931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11932 (eval $ac_compile) 2>&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); } &&
11936 { ac_try='test -s conftest.$ac_objext'
11937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11938 (eval $ac_try) 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); }; }; then
11942 ac_cv_type_major_t=yes
11944 echo "$as_me: failed program was:" >&5
11945 sed 's/^/| /' conftest.$ac_ext >&5
11947 ac_cv_type_major_t=no
11949 rm -f conftest.$ac_objext conftest.$ac_ext
11951 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11952 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11953 if test $ac_cv_type_major_t = yes; then
11957 cat >>confdefs.h <<_ACEOF
11958 #define major_t int
11963 echo "$as_me:$LINENO: checking for minor_t" >&5
11964 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11965 if test "${ac_cv_type_minor_t+set}" = set; then
11966 echo $ECHO_N "(cached) $ECHO_C" >&6
11968 cat >conftest.$ac_ext <<_ACEOF
11969 #line $LINENO "configure"
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11975 $ac_includes_default
11981 if (sizeof (minor_t))
11987 rm -f conftest.$ac_objext
11988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11989 (eval $ac_compile) 2>&5
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); } &&
11993 { ac_try='test -s conftest.$ac_objext'
11994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11995 (eval $ac_try) 2>&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); }; }; then
11999 ac_cv_type_minor_t=yes
12001 echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12004 ac_cv_type_minor_t=no
12006 rm -f conftest.$ac_objext conftest.$ac_ext
12008 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12009 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12010 if test $ac_cv_type_minor_t = yes; then
12014 cat >>confdefs.h <<_ACEOF
12015 #define minor_t int
12020 echo "$as_me:$LINENO: checking for ssize_t" >&5
12021 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12022 if test "${ac_cv_type_ssize_t+set}" = set; then
12023 echo $ECHO_N "(cached) $ECHO_C" >&6
12025 cat >conftest.$ac_ext <<_ACEOF
12026 #line $LINENO "configure"
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12032 $ac_includes_default
12038 if (sizeof (ssize_t))
12044 rm -f conftest.$ac_objext
12045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12046 (eval $ac_compile) 2>&5
12048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12049 (exit $ac_status); } &&
12050 { ac_try='test -s conftest.$ac_objext'
12051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12052 (eval $ac_try) 2>&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; }; then
12056 ac_cv_type_ssize_t=yes
12058 echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12061 ac_cv_type_ssize_t=no
12063 rm -f conftest.$ac_objext conftest.$ac_ext
12065 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12066 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12067 if test $ac_cv_type_ssize_t = yes; then
12071 cat >>confdefs.h <<_ACEOF
12072 #define ssize_t int
12077 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12078 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12079 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12080 echo $ECHO_N "(cached) $ECHO_C" >&6
12082 cat >conftest.$ac_ext <<_ACEOF
12083 #line $LINENO "configure"
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h. */
12089 $ac_includes_default
12093 static struct stat ac_aggr;
12094 if (ac_aggr.st_blocks)
12100 rm -f conftest.$ac_objext
12101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12102 (eval $ac_compile) 2>&5
12104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12105 (exit $ac_status); } &&
12106 { ac_try='test -s conftest.$ac_objext'
12107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12108 (eval $ac_try) 2>&5
12110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12111 (exit $ac_status); }; }; then
12112 ac_cv_member_struct_stat_st_blocks=yes
12114 echo "$as_me: failed program was:" >&5
12115 sed 's/^/| /' conftest.$ac_ext >&5
12117 cat >conftest.$ac_ext <<_ACEOF
12118 #line $LINENO "configure"
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h. */
12124 $ac_includes_default
12128 static struct stat ac_aggr;
12129 if (sizeof ac_aggr.st_blocks)
12135 rm -f conftest.$ac_objext
12136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12137 (eval $ac_compile) 2>&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); } &&
12141 { ac_try='test -s conftest.$ac_objext'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12147 ac_cv_member_struct_stat_st_blocks=yes
12149 echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12152 ac_cv_member_struct_stat_st_blocks=no
12154 rm -f conftest.$ac_objext conftest.$ac_ext
12156 rm -f conftest.$ac_objext conftest.$ac_ext
12158 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12159 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12160 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12162 cat >>confdefs.h <<_ACEOF
12163 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12167 cat >>confdefs.h <<\_ACEOF
12168 #define HAVE_ST_BLOCKS 1
12172 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12177 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12178 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12179 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12182 cat >conftest.$ac_ext <<_ACEOF
12183 #line $LINENO "configure"
12186 cat confdefs.h >>conftest.$ac_ext
12187 cat >>conftest.$ac_ext <<_ACEOF
12188 /* end confdefs.h. */
12189 $ac_includes_default
12193 static struct stat ac_aggr;
12194 if (ac_aggr.st_rdev)
12200 rm -f conftest.$ac_objext
12201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12202 (eval $ac_compile) 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } &&
12206 { ac_try='test -s conftest.$ac_objext'
12207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12208 (eval $ac_try) 2>&5
12210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); }; }; then
12212 ac_cv_member_struct_stat_st_rdev=yes
12214 echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12217 cat >conftest.$ac_ext <<_ACEOF
12218 #line $LINENO "configure"
12221 cat confdefs.h >>conftest.$ac_ext
12222 cat >>conftest.$ac_ext <<_ACEOF
12223 /* end confdefs.h. */
12224 $ac_includes_default
12228 static struct stat ac_aggr;
12229 if (sizeof ac_aggr.st_rdev)
12235 rm -f conftest.$ac_objext
12236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12237 (eval $ac_compile) 2>&5
12239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } &&
12241 { ac_try='test -s conftest.$ac_objext'
12242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12243 (eval $ac_try) 2>&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); }; }; then
12247 ac_cv_member_struct_stat_st_rdev=yes
12249 echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12252 ac_cv_member_struct_stat_st_rdev=no
12254 rm -f conftest.$ac_objext conftest.$ac_ext
12256 rm -f conftest.$ac_objext conftest.$ac_ext
12258 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12259 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12260 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12262 cat >>confdefs.h <<_ACEOF
12263 #define HAVE_STRUCT_STAT_ST_RDEV 1
12267 cat >>confdefs.h <<\_ACEOF
12268 #define HAVE_ST_RDEV 1
12274 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12275 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12276 if test "${ac_cv_struct_tm+set}" = set; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12279 cat >conftest.$ac_ext <<_ACEOF
12280 #line $LINENO "configure"
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286 #include <sys/types.h>
12292 struct tm *tp; tp->tm_sec;
12297 rm -f conftest.$ac_objext
12298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12299 (eval $ac_compile) 2>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } &&
12303 { ac_try='test -s conftest.$ac_objext'
12304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; }; then
12309 ac_cv_struct_tm=time.h
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12314 ac_cv_struct_tm=sys/time.h
12316 rm -f conftest.$ac_objext conftest.$ac_ext
12318 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12319 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12320 if test $ac_cv_struct_tm = sys/time.h; then
12322 cat >>confdefs.h <<\_ACEOF
12323 #define TM_IN_SYS_TIME 1
12328 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12329 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12330 if test "${ac_cv_c_const+set}" = set; then
12331 echo $ECHO_N "(cached) $ECHO_C" >&6
12333 cat >conftest.$ac_ext <<_ACEOF
12334 #line $LINENO "configure"
12337 cat confdefs.h >>conftest.$ac_ext
12338 cat >>conftest.$ac_ext <<_ACEOF
12339 /* end confdefs.h. */
12344 /* FIXME: Include the comments suggested by Paul. */
12345 #ifndef __cplusplus
12346 /* Ultrix mips cc rejects this. */
12347 typedef int charset[2];
12349 /* SunOS 4.1.1 cc rejects this. */
12350 char const *const *ccp;
12352 /* NEC SVR4.0.2 mips cc rejects this. */
12353 struct point {int x, y;};
12354 static struct point const zero = {0,0};
12355 /* AIX XL C 1.02.0.0 rejects this.
12356 It does not let you subtract one const X* pointer from another in
12357 an arm of an if-expression whose if-part is not a constant
12359 const char *g = "string";
12360 ccp = &g + (g ? g-g : 0);
12361 /* HPUX 7.0 cc rejects these. */
12364 ccp = (char const *const *) p;
12365 { /* SCO 3.2v4 cc rejects this. */
12367 char const *s = 0 ? (char *) 0 : (char const *) 0;
12371 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12372 int x[] = {25, 17};
12373 const int *foo = &x[0];
12376 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12377 typedef const int *iptr;
12381 { /* AIX XL C 1.02.0.0 rejects this saying
12382 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12383 struct s { int j; const int *ap[3]; };
12384 struct s *b; b->j = 5;
12386 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12387 const int foo = 10;
12395 rm -f conftest.$ac_objext
12396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12397 (eval $ac_compile) 2>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); } &&
12401 { ac_try='test -s conftest.$ac_objext'
12402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12403 (eval $ac_try) 2>&5
12405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12406 (exit $ac_status); }; }; then
12409 echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12414 rm -f conftest.$ac_objext conftest.$ac_ext
12416 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12417 echo "${ECHO_T}$ac_cv_c_const" >&6
12418 if test $ac_cv_c_const = no; then
12420 cat >>confdefs.h <<\_ACEOF
12428 echo "$as_me:$LINENO: checking for char" >&5
12429 echo $ECHO_N "checking for char... $ECHO_C" >&6
12430 if test "${ac_cv_type_char+set}" = set; then
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
12433 cat >conftest.$ac_ext <<_ACEOF
12434 #line $LINENO "configure"
12437 cat confdefs.h >>conftest.$ac_ext
12438 cat >>conftest.$ac_ext <<_ACEOF
12439 /* end confdefs.h. */
12440 $ac_includes_default
12452 rm -f conftest.$ac_objext
12453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12454 (eval $ac_compile) 2>&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); } &&
12458 { ac_try='test -s conftest.$ac_objext'
12459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12460 (eval $ac_try) 2>&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); }; }; then
12464 ac_cv_type_char=yes
12466 echo "$as_me: failed program was:" >&5
12467 sed 's/^/| /' conftest.$ac_ext >&5
12471 rm -f conftest.$ac_objext conftest.$ac_ext
12473 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12474 echo "${ECHO_T}$ac_cv_type_char" >&6
12476 echo "$as_me:$LINENO: checking size of char" >&5
12477 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12478 if test "${ac_cv_sizeof_char+set}" = set; then
12479 echo $ECHO_N "(cached) $ECHO_C" >&6
12481 if test "$ac_cv_type_char" = yes; then
12482 # The cast to unsigned long works around a bug in the HP C Compiler
12483 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12484 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12485 # This bug is HP SR number 8606223364.
12486 if test "$cross_compiling" = yes; then
12487 # Depending upon the size, compute the lo and hi bounds.
12488 cat >conftest.$ac_ext <<_ACEOF
12489 #line $LINENO "configure"
12492 cat confdefs.h >>conftest.$ac_ext
12493 cat >>conftest.$ac_ext <<_ACEOF
12494 /* end confdefs.h. */
12495 $ac_includes_default
12499 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12506 rm -f conftest.$ac_objext
12507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12508 (eval $ac_compile) 2>&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); } &&
12512 { ac_try='test -s conftest.$ac_objext'
12513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12514 (eval $ac_try) 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); }; }; then
12520 cat >conftest.$ac_ext <<_ACEOF
12521 #line $LINENO "configure"
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12527 $ac_includes_default
12531 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12538 rm -f conftest.$ac_objext
12539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12540 (eval $ac_compile) 2>&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } &&
12544 { ac_try='test -s conftest.$ac_objext'
12545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12546 (eval $ac_try) 2>&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); }; }; then
12550 ac_hi=$ac_mid; break
12552 echo "$as_me: failed program was:" >&5
12553 sed 's/^/| /' conftest.$ac_ext >&5
12555 ac_lo=`expr $ac_mid + 1`
12556 if test $ac_lo -le $ac_mid; then
12560 ac_mid=`expr 2 '*' $ac_mid + 1`
12562 rm -f conftest.$ac_objext conftest.$ac_ext
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12568 cat >conftest.$ac_ext <<_ACEOF
12569 #line $LINENO "configure"
12572 cat confdefs.h >>conftest.$ac_ext
12573 cat >>conftest.$ac_ext <<_ACEOF
12574 /* end confdefs.h. */
12575 $ac_includes_default
12579 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12586 rm -f conftest.$ac_objext
12587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12588 (eval $ac_compile) 2>&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } &&
12592 { ac_try='test -s conftest.$ac_objext'
12593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12594 (eval $ac_try) 2>&5
12596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12597 (exit $ac_status); }; }; then
12600 cat >conftest.$ac_ext <<_ACEOF
12601 #line $LINENO "configure"
12604 cat confdefs.h >>conftest.$ac_ext
12605 cat >>conftest.$ac_ext <<_ACEOF
12606 /* end confdefs.h. */
12607 $ac_includes_default
12611 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12618 rm -f conftest.$ac_objext
12619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12620 (eval $ac_compile) 2>&5
12622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623 (exit $ac_status); } &&
12624 { ac_try='test -s conftest.$ac_objext'
12625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12626 (eval $ac_try) 2>&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; }; then
12630 ac_lo=$ac_mid; break
12632 echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12635 ac_hi=`expr '(' $ac_mid ')' - 1`
12636 if test $ac_mid -le $ac_hi; then
12640 ac_mid=`expr 2 '*' $ac_mid`
12642 rm -f conftest.$ac_objext conftest.$ac_ext
12645 echo "$as_me: failed program was:" >&5
12646 sed 's/^/| /' conftest.$ac_ext >&5
12650 rm -f conftest.$ac_objext conftest.$ac_ext
12652 rm -f conftest.$ac_objext conftest.$ac_ext
12653 # Binary search between lo and hi bounds.
12654 while test "x$ac_lo" != "x$ac_hi"; do
12655 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12656 cat >conftest.$ac_ext <<_ACEOF
12657 #line $LINENO "configure"
12660 cat confdefs.h >>conftest.$ac_ext
12661 cat >>conftest.$ac_ext <<_ACEOF
12662 /* end confdefs.h. */
12663 $ac_includes_default
12667 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12674 rm -f conftest.$ac_objext
12675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12676 (eval $ac_compile) 2>&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); } &&
12680 { ac_try='test -s conftest.$ac_objext'
12681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12682 (eval $ac_try) 2>&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); }; }; then
12688 echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12691 ac_lo=`expr '(' $ac_mid ')' + 1`
12693 rm -f conftest.$ac_objext conftest.$ac_ext
12696 ?*) ac_cv_sizeof_char=$ac_lo;;
12697 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12698 See \`config.log' for more details." >&5
12699 echo "$as_me: error: cannot compute sizeof (char), 77
12700 See \`config.log' for more details." >&2;}
12701 { (exit 1); exit 1; }; } ;;
12704 if test "$cross_compiling" = yes; then
12705 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12706 See \`config.log' for more details." >&5
12707 echo "$as_me: error: cannot run test program while cross compiling
12708 See \`config.log' for more details." >&2;}
12709 { (exit 1); exit 1; }; }
12711 cat >conftest.$ac_ext <<_ACEOF
12712 #line $LINENO "configure"
12715 cat confdefs.h >>conftest.$ac_ext
12716 cat >>conftest.$ac_ext <<_ACEOF
12717 /* end confdefs.h. */
12718 $ac_includes_default
12719 long longval () { return (long) (sizeof (char)); }
12720 unsigned long ulongval () { return (long) (sizeof (char)); }
12722 #include <stdlib.h>
12727 FILE *f = fopen ("conftest.val", "w");
12730 if (((long) (sizeof (char))) < 0)
12732 long i = longval ();
12733 if (i != ((long) (sizeof (char))))
12735 fprintf (f, "%ld\n", i);
12739 unsigned long i = ulongval ();
12740 if (i != ((long) (sizeof (char))))
12742 fprintf (f, "%lu\n", i);
12744 exit (ferror (f) || fclose (f) != 0);
12750 rm -f conftest$ac_exeext
12751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12752 (eval $ac_link) 2>&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12757 (eval $ac_try) 2>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 ac_cv_sizeof_char=`cat conftest.val`
12763 echo "$as_me: program exited with status $ac_status" >&5
12764 echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12767 ( exit $ac_status )
12768 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12769 See \`config.log' for more details." >&5
12770 echo "$as_me: error: cannot compute sizeof (char), 77
12771 See \`config.log' for more details." >&2;}
12772 { (exit 1); exit 1; }; }
12774 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12779 ac_cv_sizeof_char=0
12782 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12783 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12784 cat >>confdefs.h <<_ACEOF
12785 #define SIZEOF_CHAR $ac_cv_sizeof_char
12789 echo "$as_me:$LINENO: checking for short int" >&5
12790 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12791 if test "${ac_cv_type_short_int+set}" = set; then
12792 echo $ECHO_N "(cached) $ECHO_C" >&6
12794 cat >conftest.$ac_ext <<_ACEOF
12795 #line $LINENO "configure"
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */
12801 $ac_includes_default
12805 if ((short int *) 0)
12807 if (sizeof (short int))
12813 rm -f conftest.$ac_objext
12814 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12815 (eval $ac_compile) 2>&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); } &&
12819 { ac_try='test -s conftest.$ac_objext'
12820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12821 (eval $ac_try) 2>&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; }; then
12825 ac_cv_type_short_int=yes
12827 echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12830 ac_cv_type_short_int=no
12832 rm -f conftest.$ac_objext conftest.$ac_ext
12834 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12835 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12837 echo "$as_me:$LINENO: checking size of short int" >&5
12838 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12839 if test "${ac_cv_sizeof_short_int+set}" = set; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 if test "$ac_cv_type_short_int" = yes; then
12843 # The cast to unsigned long works around a bug in the HP C Compiler
12844 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12845 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12846 # This bug is HP SR number 8606223364.
12847 if test "$cross_compiling" = yes; then
12848 # Depending upon the size, compute the lo and hi bounds.
12849 cat >conftest.$ac_ext <<_ACEOF
12850 #line $LINENO "configure"
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12856 $ac_includes_default
12860 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12867 rm -f conftest.$ac_objext
12868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12869 (eval $ac_compile) 2>&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); } &&
12873 { ac_try='test -s conftest.$ac_objext'
12874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12875 (eval $ac_try) 2>&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); }; }; then
12881 cat >conftest.$ac_ext <<_ACEOF
12882 #line $LINENO "configure"
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h. */
12888 $ac_includes_default
12892 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12899 rm -f conftest.$ac_objext
12900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12901 (eval $ac_compile) 2>&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); } &&
12905 { ac_try='test -s conftest.$ac_objext'
12906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12907 (eval $ac_try) 2>&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); }; }; then
12911 ac_hi=$ac_mid; break
12913 echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12916 ac_lo=`expr $ac_mid + 1`
12917 if test $ac_lo -le $ac_mid; then
12921 ac_mid=`expr 2 '*' $ac_mid + 1`
12923 rm -f conftest.$ac_objext conftest.$ac_ext
12926 echo "$as_me: failed program was:" >&5
12927 sed 's/^/| /' conftest.$ac_ext >&5
12929 cat >conftest.$ac_ext <<_ACEOF
12930 #line $LINENO "configure"
12933 cat confdefs.h >>conftest.$ac_ext
12934 cat >>conftest.$ac_ext <<_ACEOF
12935 /* end confdefs.h. */
12936 $ac_includes_default
12940 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12947 rm -f conftest.$ac_objext
12948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12949 (eval $ac_compile) 2>&5
12951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12952 (exit $ac_status); } &&
12953 { ac_try='test -s conftest.$ac_objext'
12954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12955 (eval $ac_try) 2>&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); }; }; then
12961 cat >conftest.$ac_ext <<_ACEOF
12962 #line $LINENO "configure"
12965 cat confdefs.h >>conftest.$ac_ext
12966 cat >>conftest.$ac_ext <<_ACEOF
12967 /* end confdefs.h. */
12968 $ac_includes_default
12972 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12979 rm -f conftest.$ac_objext
12980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12981 (eval $ac_compile) 2>&5
12983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12984 (exit $ac_status); } &&
12985 { ac_try='test -s conftest.$ac_objext'
12986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12987 (eval $ac_try) 2>&5
12989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12990 (exit $ac_status); }; }; then
12991 ac_lo=$ac_mid; break
12993 echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12996 ac_hi=`expr '(' $ac_mid ')' - 1`
12997 if test $ac_mid -le $ac_hi; then
13001 ac_mid=`expr 2 '*' $ac_mid`
13003 rm -f conftest.$ac_objext conftest.$ac_ext
13006 echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13011 rm -f conftest.$ac_objext conftest.$ac_ext
13013 rm -f conftest.$ac_objext conftest.$ac_ext
13014 # Binary search between lo and hi bounds.
13015 while test "x$ac_lo" != "x$ac_hi"; do
13016 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13017 cat >conftest.$ac_ext <<_ACEOF
13018 #line $LINENO "configure"
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h. */
13024 $ac_includes_default
13028 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13035 rm -f conftest.$ac_objext
13036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13037 (eval $ac_compile) 2>&5
13039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13040 (exit $ac_status); } &&
13041 { ac_try='test -s conftest.$ac_objext'
13042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13043 (eval $ac_try) 2>&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }; }; then
13049 echo "$as_me: failed program was:" >&5
13050 sed 's/^/| /' conftest.$ac_ext >&5
13052 ac_lo=`expr '(' $ac_mid ')' + 1`
13054 rm -f conftest.$ac_objext conftest.$ac_ext
13057 ?*) ac_cv_sizeof_short_int=$ac_lo;;
13058 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13059 See \`config.log' for more details." >&5
13060 echo "$as_me: error: cannot compute sizeof (short int), 77
13061 See \`config.log' for more details." >&2;}
13062 { (exit 1); exit 1; }; } ;;
13065 if test "$cross_compiling" = yes; then
13066 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13067 See \`config.log' for more details." >&5
13068 echo "$as_me: error: cannot run test program while cross compiling
13069 See \`config.log' for more details." >&2;}
13070 { (exit 1); exit 1; }; }
13072 cat >conftest.$ac_ext <<_ACEOF
13073 #line $LINENO "configure"
13076 cat confdefs.h >>conftest.$ac_ext
13077 cat >>conftest.$ac_ext <<_ACEOF
13078 /* end confdefs.h. */
13079 $ac_includes_default
13080 long longval () { return (long) (sizeof (short int)); }
13081 unsigned long ulongval () { return (long) (sizeof (short int)); }
13083 #include <stdlib.h>
13088 FILE *f = fopen ("conftest.val", "w");
13091 if (((long) (sizeof (short int))) < 0)
13093 long i = longval ();
13094 if (i != ((long) (sizeof (short int))))
13096 fprintf (f, "%ld\n", i);
13100 unsigned long i = ulongval ();
13101 if (i != ((long) (sizeof (short int))))
13103 fprintf (f, "%lu\n", i);
13105 exit (ferror (f) || fclose (f) != 0);
13111 rm -f conftest$ac_exeext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13113 (eval $ac_link) 2>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13118 (eval $ac_try) 2>&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); }; }; then
13122 ac_cv_sizeof_short_int=`cat conftest.val`
13124 echo "$as_me: program exited with status $ac_status" >&5
13125 echo "$as_me: failed program was:" >&5
13126 sed 's/^/| /' conftest.$ac_ext >&5
13128 ( exit $ac_status )
13129 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13130 See \`config.log' for more details." >&5
13131 echo "$as_me: error: cannot compute sizeof (short int), 77
13132 See \`config.log' for more details." >&2;}
13133 { (exit 1); exit 1; }; }
13135 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13140 ac_cv_sizeof_short_int=0
13143 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13144 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13145 cat >>confdefs.h <<_ACEOF
13146 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13150 echo "$as_me:$LINENO: checking for int" >&5
13151 echo $ECHO_N "checking for int... $ECHO_C" >&6
13152 if test "${ac_cv_type_int+set}" = set; then
13153 echo $ECHO_N "(cached) $ECHO_C" >&6
13155 cat >conftest.$ac_ext <<_ACEOF
13156 #line $LINENO "configure"
13159 cat confdefs.h >>conftest.$ac_ext
13160 cat >>conftest.$ac_ext <<_ACEOF
13161 /* end confdefs.h. */
13162 $ac_includes_default
13174 rm -f conftest.$ac_objext
13175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13176 (eval $ac_compile) 2>&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } &&
13180 { ac_try='test -s conftest.$ac_objext'
13181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13182 (eval $ac_try) 2>&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; }; then
13188 echo "$as_me: failed program was:" >&5
13189 sed 's/^/| /' conftest.$ac_ext >&5
13193 rm -f conftest.$ac_objext conftest.$ac_ext
13195 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13196 echo "${ECHO_T}$ac_cv_type_int" >&6
13198 echo "$as_me:$LINENO: checking size of int" >&5
13199 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13200 if test "${ac_cv_sizeof_int+set}" = set; then
13201 echo $ECHO_N "(cached) $ECHO_C" >&6
13203 if test "$ac_cv_type_int" = yes; then
13204 # The cast to unsigned long works around a bug in the HP C Compiler
13205 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13206 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13207 # This bug is HP SR number 8606223364.
13208 if test "$cross_compiling" = yes; then
13209 # Depending upon the size, compute the lo and hi bounds.
13210 cat >conftest.$ac_ext <<_ACEOF
13211 #line $LINENO "configure"
13214 cat confdefs.h >>conftest.$ac_ext
13215 cat >>conftest.$ac_ext <<_ACEOF
13216 /* end confdefs.h. */
13217 $ac_includes_default
13221 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13228 rm -f conftest.$ac_objext
13229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13230 (eval $ac_compile) 2>&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); } &&
13234 { ac_try='test -s conftest.$ac_objext'
13235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13236 (eval $ac_try) 2>&5
13238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13239 (exit $ac_status); }; }; then
13242 cat >conftest.$ac_ext <<_ACEOF
13243 #line $LINENO "configure"
13246 cat confdefs.h >>conftest.$ac_ext
13247 cat >>conftest.$ac_ext <<_ACEOF
13248 /* end confdefs.h. */
13249 $ac_includes_default
13253 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13260 rm -f conftest.$ac_objext
13261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13262 (eval $ac_compile) 2>&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); } &&
13266 { ac_try='test -s conftest.$ac_objext'
13267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13268 (eval $ac_try) 2>&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); }; }; then
13272 ac_hi=$ac_mid; break
13274 echo "$as_me: failed program was:" >&5
13275 sed 's/^/| /' conftest.$ac_ext >&5
13277 ac_lo=`expr $ac_mid + 1`
13278 if test $ac_lo -le $ac_mid; then
13282 ac_mid=`expr 2 '*' $ac_mid + 1`
13284 rm -f conftest.$ac_objext conftest.$ac_ext
13287 echo "$as_me: failed program was:" >&5
13288 sed 's/^/| /' conftest.$ac_ext >&5
13290 cat >conftest.$ac_ext <<_ACEOF
13291 #line $LINENO "configure"
13294 cat confdefs.h >>conftest.$ac_ext
13295 cat >>conftest.$ac_ext <<_ACEOF
13296 /* end confdefs.h. */
13297 $ac_includes_default
13301 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13308 rm -f conftest.$ac_objext
13309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13310 (eval $ac_compile) 2>&5
13312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13313 (exit $ac_status); } &&
13314 { ac_try='test -s conftest.$ac_objext'
13315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13316 (eval $ac_try) 2>&5
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); }; }; then
13322 cat >conftest.$ac_ext <<_ACEOF
13323 #line $LINENO "configure"
13326 cat confdefs.h >>conftest.$ac_ext
13327 cat >>conftest.$ac_ext <<_ACEOF
13328 /* end confdefs.h. */
13329 $ac_includes_default
13333 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13340 rm -f conftest.$ac_objext
13341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13342 (eval $ac_compile) 2>&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 (exit $ac_status); } &&
13346 { ac_try='test -s conftest.$ac_objext'
13347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13348 (eval $ac_try) 2>&5
13350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13351 (exit $ac_status); }; }; then
13352 ac_lo=$ac_mid; break
13354 echo "$as_me: failed program was:" >&5
13355 sed 's/^/| /' conftest.$ac_ext >&5
13357 ac_hi=`expr '(' $ac_mid ')' - 1`
13358 if test $ac_mid -le $ac_hi; then
13362 ac_mid=`expr 2 '*' $ac_mid`
13364 rm -f conftest.$ac_objext conftest.$ac_ext
13367 echo "$as_me: failed program was:" >&5
13368 sed 's/^/| /' conftest.$ac_ext >&5
13372 rm -f conftest.$ac_objext conftest.$ac_ext
13374 rm -f conftest.$ac_objext conftest.$ac_ext
13375 # Binary search between lo and hi bounds.
13376 while test "x$ac_lo" != "x$ac_hi"; do
13377 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13378 cat >conftest.$ac_ext <<_ACEOF
13379 #line $LINENO "configure"
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h. */
13385 $ac_includes_default
13389 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13396 rm -f conftest.$ac_objext
13397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13398 (eval $ac_compile) 2>&5
13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401 (exit $ac_status); } &&
13402 { ac_try='test -s conftest.$ac_objext'
13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13404 (eval $ac_try) 2>&5
13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13407 (exit $ac_status); }; }; then
13410 echo "$as_me: failed program was:" >&5
13411 sed 's/^/| /' conftest.$ac_ext >&5
13413 ac_lo=`expr '(' $ac_mid ')' + 1`
13415 rm -f conftest.$ac_objext conftest.$ac_ext
13418 ?*) ac_cv_sizeof_int=$ac_lo;;
13419 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13420 See \`config.log' for more details." >&5
13421 echo "$as_me: error: cannot compute sizeof (int), 77
13422 See \`config.log' for more details." >&2;}
13423 { (exit 1); exit 1; }; } ;;
13426 if test "$cross_compiling" = yes; then
13427 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13428 See \`config.log' for more details." >&5
13429 echo "$as_me: error: cannot run test program while cross compiling
13430 See \`config.log' for more details." >&2;}
13431 { (exit 1); exit 1; }; }
13433 cat >conftest.$ac_ext <<_ACEOF
13434 #line $LINENO "configure"
13437 cat confdefs.h >>conftest.$ac_ext
13438 cat >>conftest.$ac_ext <<_ACEOF
13439 /* end confdefs.h. */
13440 $ac_includes_default
13441 long longval () { return (long) (sizeof (int)); }
13442 unsigned long ulongval () { return (long) (sizeof (int)); }
13444 #include <stdlib.h>
13449 FILE *f = fopen ("conftest.val", "w");
13452 if (((long) (sizeof (int))) < 0)
13454 long i = longval ();
13455 if (i != ((long) (sizeof (int))))
13457 fprintf (f, "%ld\n", i);
13461 unsigned long i = ulongval ();
13462 if (i != ((long) (sizeof (int))))
13464 fprintf (f, "%lu\n", i);
13466 exit (ferror (f) || fclose (f) != 0);
13472 rm -f conftest$ac_exeext
13473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13474 (eval $ac_link) 2>&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479 (eval $ac_try) 2>&5
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); }; }; then
13483 ac_cv_sizeof_int=`cat conftest.val`
13485 echo "$as_me: program exited with status $ac_status" >&5
13486 echo "$as_me: failed program was:" >&5
13487 sed 's/^/| /' conftest.$ac_ext >&5
13489 ( exit $ac_status )
13490 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13491 See \`config.log' for more details." >&5
13492 echo "$as_me: error: cannot compute sizeof (int), 77
13493 See \`config.log' for more details." >&2;}
13494 { (exit 1); exit 1; }; }
13496 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13504 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13505 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13506 cat >>confdefs.h <<_ACEOF
13507 #define SIZEOF_INT $ac_cv_sizeof_int
13511 echo "$as_me:$LINENO: checking for long int" >&5
13512 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13513 if test "${ac_cv_type_long_int+set}" = set; then
13514 echo $ECHO_N "(cached) $ECHO_C" >&6
13516 cat >conftest.$ac_ext <<_ACEOF
13517 #line $LINENO "configure"
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h. */
13523 $ac_includes_default
13527 if ((long int *) 0)
13529 if (sizeof (long int))
13535 rm -f conftest.$ac_objext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13537 (eval $ac_compile) 2>&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } &&
13541 { ac_try='test -s conftest.$ac_objext'
13542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13543 (eval $ac_try) 2>&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); }; }; then
13547 ac_cv_type_long_int=yes
13549 echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.$ac_ext >&5
13552 ac_cv_type_long_int=no
13554 rm -f conftest.$ac_objext conftest.$ac_ext
13556 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13557 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13559 echo "$as_me:$LINENO: checking size of long int" >&5
13560 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13561 if test "${ac_cv_sizeof_long_int+set}" = set; then
13562 echo $ECHO_N "(cached) $ECHO_C" >&6
13564 if test "$ac_cv_type_long_int" = yes; then
13565 # The cast to unsigned long works around a bug in the HP C Compiler
13566 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13567 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13568 # This bug is HP SR number 8606223364.
13569 if test "$cross_compiling" = yes; then
13570 # Depending upon the size, compute the lo and hi bounds.
13571 cat >conftest.$ac_ext <<_ACEOF
13572 #line $LINENO "configure"
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h. */
13578 $ac_includes_default
13582 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13589 rm -f conftest.$ac_objext
13590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13591 (eval $ac_compile) 2>&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); } &&
13595 { ac_try='test -s conftest.$ac_objext'
13596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597 (eval $ac_try) 2>&5
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); }; }; then
13603 cat >conftest.$ac_ext <<_ACEOF
13604 #line $LINENO "configure"
13607 cat confdefs.h >>conftest.$ac_ext
13608 cat >>conftest.$ac_ext <<_ACEOF
13609 /* end confdefs.h. */
13610 $ac_includes_default
13614 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13621 rm -f conftest.$ac_objext
13622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13623 (eval $ac_compile) 2>&5
13625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626 (exit $ac_status); } &&
13627 { ac_try='test -s conftest.$ac_objext'
13628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13629 (eval $ac_try) 2>&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); }; }; then
13633 ac_hi=$ac_mid; break
13635 echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.$ac_ext >&5
13638 ac_lo=`expr $ac_mid + 1`
13639 if test $ac_lo -le $ac_mid; then
13643 ac_mid=`expr 2 '*' $ac_mid + 1`
13645 rm -f conftest.$ac_objext conftest.$ac_ext
13648 echo "$as_me: failed program was:" >&5
13649 sed 's/^/| /' conftest.$ac_ext >&5
13651 cat >conftest.$ac_ext <<_ACEOF
13652 #line $LINENO "configure"
13655 cat confdefs.h >>conftest.$ac_ext
13656 cat >>conftest.$ac_ext <<_ACEOF
13657 /* end confdefs.h. */
13658 $ac_includes_default
13662 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13669 rm -f conftest.$ac_objext
13670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13671 (eval $ac_compile) 2>&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
13675 { ac_try='test -s conftest.$ac_objext'
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; }; then
13683 cat >conftest.$ac_ext <<_ACEOF
13684 #line $LINENO "configure"
13687 cat confdefs.h >>conftest.$ac_ext
13688 cat >>conftest.$ac_ext <<_ACEOF
13689 /* end confdefs.h. */
13690 $ac_includes_default
13694 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13701 rm -f conftest.$ac_objext
13702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13703 (eval $ac_compile) 2>&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } &&
13707 { ac_try='test -s conftest.$ac_objext'
13708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709 (eval $ac_try) 2>&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; }; then
13713 ac_lo=$ac_mid; break
13715 echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13718 ac_hi=`expr '(' $ac_mid ')' - 1`
13719 if test $ac_mid -le $ac_hi; then
13723 ac_mid=`expr 2 '*' $ac_mid`
13725 rm -f conftest.$ac_objext conftest.$ac_ext
13728 echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13733 rm -f conftest.$ac_objext conftest.$ac_ext
13735 rm -f conftest.$ac_objext conftest.$ac_ext
13736 # Binary search between lo and hi bounds.
13737 while test "x$ac_lo" != "x$ac_hi"; do
13738 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13739 cat >conftest.$ac_ext <<_ACEOF
13740 #line $LINENO "configure"
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13746 $ac_includes_default
13750 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13757 rm -f conftest.$ac_objext
13758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13759 (eval $ac_compile) 2>&5
13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762 (exit $ac_status); } &&
13763 { ac_try='test -s conftest.$ac_objext'
13764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13765 (eval $ac_try) 2>&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); }; }; then
13771 echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13774 ac_lo=`expr '(' $ac_mid ')' + 1`
13776 rm -f conftest.$ac_objext conftest.$ac_ext
13779 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13780 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13781 See \`config.log' for more details." >&5
13782 echo "$as_me: error: cannot compute sizeof (long int), 77
13783 See \`config.log' for more details." >&2;}
13784 { (exit 1); exit 1; }; } ;;
13787 if test "$cross_compiling" = yes; then
13788 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13789 See \`config.log' for more details." >&5
13790 echo "$as_me: error: cannot run test program while cross compiling
13791 See \`config.log' for more details." >&2;}
13792 { (exit 1); exit 1; }; }
13794 cat >conftest.$ac_ext <<_ACEOF
13795 #line $LINENO "configure"
13798 cat confdefs.h >>conftest.$ac_ext
13799 cat >>conftest.$ac_ext <<_ACEOF
13800 /* end confdefs.h. */
13801 $ac_includes_default
13802 long longval () { return (long) (sizeof (long int)); }
13803 unsigned long ulongval () { return (long) (sizeof (long int)); }
13805 #include <stdlib.h>
13810 FILE *f = fopen ("conftest.val", "w");
13813 if (((long) (sizeof (long int))) < 0)
13815 long i = longval ();
13816 if (i != ((long) (sizeof (long int))))
13818 fprintf (f, "%ld\n", i);
13822 unsigned long i = ulongval ();
13823 if (i != ((long) (sizeof (long int))))
13825 fprintf (f, "%lu\n", i);
13827 exit (ferror (f) || fclose (f) != 0);
13833 rm -f conftest$ac_exeext
13834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13835 (eval $ac_link) 2>&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13840 (eval $ac_try) 2>&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; }; then
13844 ac_cv_sizeof_long_int=`cat conftest.val`
13846 echo "$as_me: program exited with status $ac_status" >&5
13847 echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13850 ( exit $ac_status )
13851 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13852 See \`config.log' for more details." >&5
13853 echo "$as_me: error: cannot compute sizeof (long int), 77
13854 See \`config.log' for more details." >&2;}
13855 { (exit 1); exit 1; }; }
13857 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13862 ac_cv_sizeof_long_int=0
13865 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13866 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13867 cat >>confdefs.h <<_ACEOF
13868 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13872 echo "$as_me:$LINENO: checking for long long int" >&5
13873 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13874 if test "${ac_cv_type_long_long_int+set}" = set; then
13875 echo $ECHO_N "(cached) $ECHO_C" >&6
13877 cat >conftest.$ac_ext <<_ACEOF
13878 #line $LINENO "configure"
13881 cat confdefs.h >>conftest.$ac_ext
13882 cat >>conftest.$ac_ext <<_ACEOF
13883 /* end confdefs.h. */
13884 $ac_includes_default
13888 if ((long long int *) 0)
13890 if (sizeof (long long int))
13896 rm -f conftest.$ac_objext
13897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13898 (eval $ac_compile) 2>&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } &&
13902 { ac_try='test -s conftest.$ac_objext'
13903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; }; then
13908 ac_cv_type_long_long_int=yes
13910 echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13913 ac_cv_type_long_long_int=no
13915 rm -f conftest.$ac_objext conftest.$ac_ext
13917 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13918 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13920 echo "$as_me:$LINENO: checking size of long long int" >&5
13921 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13922 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13923 echo $ECHO_N "(cached) $ECHO_C" >&6
13925 if test "$ac_cv_type_long_long_int" = yes; then
13926 # The cast to unsigned long works around a bug in the HP C Compiler
13927 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13928 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13929 # This bug is HP SR number 8606223364.
13930 if test "$cross_compiling" = yes; then
13931 # Depending upon the size, compute the lo and hi bounds.
13932 cat >conftest.$ac_ext <<_ACEOF
13933 #line $LINENO "configure"
13936 cat confdefs.h >>conftest.$ac_ext
13937 cat >>conftest.$ac_ext <<_ACEOF
13938 /* end confdefs.h. */
13939 $ac_includes_default
13943 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13950 rm -f conftest.$ac_objext
13951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13952 (eval $ac_compile) 2>&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } &&
13956 { ac_try='test -s conftest.$ac_objext'
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; }; then
13964 cat >conftest.$ac_ext <<_ACEOF
13965 #line $LINENO "configure"
13968 cat confdefs.h >>conftest.$ac_ext
13969 cat >>conftest.$ac_ext <<_ACEOF
13970 /* end confdefs.h. */
13971 $ac_includes_default
13975 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13982 rm -f conftest.$ac_objext
13983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13984 (eval $ac_compile) 2>&5
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); } &&
13988 { ac_try='test -s conftest.$ac_objext'
13989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13990 (eval $ac_try) 2>&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; }; then
13994 ac_hi=$ac_mid; break
13996 echo "$as_me: failed program was:" >&5
13997 sed 's/^/| /' conftest.$ac_ext >&5
13999 ac_lo=`expr $ac_mid + 1`
14000 if test $ac_lo -le $ac_mid; then
14004 ac_mid=`expr 2 '*' $ac_mid + 1`
14006 rm -f conftest.$ac_objext conftest.$ac_ext
14009 echo "$as_me: failed program was:" >&5
14010 sed 's/^/| /' conftest.$ac_ext >&5
14012 cat >conftest.$ac_ext <<_ACEOF
14013 #line $LINENO "configure"
14016 cat confdefs.h >>conftest.$ac_ext
14017 cat >>conftest.$ac_ext <<_ACEOF
14018 /* end confdefs.h. */
14019 $ac_includes_default
14023 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
14030 rm -f conftest.$ac_objext
14031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14032 (eval $ac_compile) 2>&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } &&
14036 { ac_try='test -s conftest.$ac_objext'
14037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038 (eval $ac_try) 2>&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; }; then
14044 cat >conftest.$ac_ext <<_ACEOF
14045 #line $LINENO "configure"
14048 cat confdefs.h >>conftest.$ac_ext
14049 cat >>conftest.$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14051 $ac_includes_default
14055 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
14062 rm -f conftest.$ac_objext
14063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14064 (eval $ac_compile) 2>&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); } &&
14068 { ac_try='test -s conftest.$ac_objext'
14069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070 (eval $ac_try) 2>&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); }; }; then
14074 ac_lo=$ac_mid; break
14076 echo "$as_me: failed program was:" >&5
14077 sed 's/^/| /' conftest.$ac_ext >&5
14079 ac_hi=`expr '(' $ac_mid ')' - 1`
14080 if test $ac_mid -le $ac_hi; then
14084 ac_mid=`expr 2 '*' $ac_mid`
14086 rm -f conftest.$ac_objext conftest.$ac_ext
14089 echo "$as_me: failed program was:" >&5
14090 sed 's/^/| /' conftest.$ac_ext >&5
14094 rm -f conftest.$ac_objext conftest.$ac_ext
14096 rm -f conftest.$ac_objext conftest.$ac_ext
14097 # Binary search between lo and hi bounds.
14098 while test "x$ac_lo" != "x$ac_hi"; do
14099 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14100 cat >conftest.$ac_ext <<_ACEOF
14101 #line $LINENO "configure"
14104 cat confdefs.h >>conftest.$ac_ext
14105 cat >>conftest.$ac_ext <<_ACEOF
14106 /* end confdefs.h. */
14107 $ac_includes_default
14111 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14118 rm -f conftest.$ac_objext
14119 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14120 (eval $ac_compile) 2>&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); } &&
14124 { ac_try='test -s conftest.$ac_objext'
14125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14126 (eval $ac_try) 2>&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; }; then
14132 echo "$as_me: failed program was:" >&5
14133 sed 's/^/| /' conftest.$ac_ext >&5
14135 ac_lo=`expr '(' $ac_mid ')' + 1`
14137 rm -f conftest.$ac_objext conftest.$ac_ext
14140 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14141 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14142 See \`config.log' for more details." >&5
14143 echo "$as_me: error: cannot compute sizeof (long long int), 77
14144 See \`config.log' for more details." >&2;}
14145 { (exit 1); exit 1; }; } ;;
14148 if test "$cross_compiling" = yes; then
14149 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14150 See \`config.log' for more details." >&5
14151 echo "$as_me: error: cannot run test program while cross compiling
14152 See \`config.log' for more details." >&2;}
14153 { (exit 1); exit 1; }; }
14155 cat >conftest.$ac_ext <<_ACEOF
14156 #line $LINENO "configure"
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h. */
14162 $ac_includes_default
14163 long longval () { return (long) (sizeof (long long int)); }
14164 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14166 #include <stdlib.h>
14171 FILE *f = fopen ("conftest.val", "w");
14174 if (((long) (sizeof (long long int))) < 0)
14176 long i = longval ();
14177 if (i != ((long) (sizeof (long long int))))
14179 fprintf (f, "%ld\n", i);
14183 unsigned long i = ulongval ();
14184 if (i != ((long) (sizeof (long long int))))
14186 fprintf (f, "%lu\n", i);
14188 exit (ferror (f) || fclose (f) != 0);
14194 rm -f conftest$ac_exeext
14195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14196 (eval $ac_link) 2>&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14201 (eval $ac_try) 2>&5
14203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14204 (exit $ac_status); }; }; then
14205 ac_cv_sizeof_long_long_int=`cat conftest.val`
14207 echo "$as_me: program exited with status $ac_status" >&5
14208 echo "$as_me: failed program was:" >&5
14209 sed 's/^/| /' conftest.$ac_ext >&5
14211 ( exit $ac_status )
14212 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14213 See \`config.log' for more details." >&5
14214 echo "$as_me: error: cannot compute sizeof (long long int), 77
14215 See \`config.log' for more details." >&2;}
14216 { (exit 1); exit 1; }; }
14218 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14223 ac_cv_sizeof_long_long_int=0
14226 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14227 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14228 cat >>confdefs.h <<_ACEOF
14229 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14233 echo "$as_me:$LINENO: checking for int *" >&5
14234 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14235 if test "${ac_cv_type_int_p+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14238 cat >conftest.$ac_ext <<_ACEOF
14239 #line $LINENO "configure"
14242 cat confdefs.h >>conftest.$ac_ext
14243 cat >>conftest.$ac_ext <<_ACEOF
14244 /* end confdefs.h. */
14245 $ac_includes_default
14251 if (sizeof (int *))
14257 rm -f conftest.$ac_objext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14259 (eval $ac_compile) 2>&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } &&
14263 { ac_try='test -s conftest.$ac_objext'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; }; then
14269 ac_cv_type_int_p=yes
14271 echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14274 ac_cv_type_int_p=no
14276 rm -f conftest.$ac_objext conftest.$ac_ext
14278 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14279 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14281 echo "$as_me:$LINENO: checking size of int *" >&5
14282 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14283 if test "${ac_cv_sizeof_int_p+set}" = set; then
14284 echo $ECHO_N "(cached) $ECHO_C" >&6
14286 if test "$ac_cv_type_int_p" = yes; then
14287 # The cast to unsigned long works around a bug in the HP C Compiler
14288 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14289 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14290 # This bug is HP SR number 8606223364.
14291 if test "$cross_compiling" = yes; then
14292 # Depending upon the size, compute the lo and hi bounds.
14293 cat >conftest.$ac_ext <<_ACEOF
14294 #line $LINENO "configure"
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h. */
14300 $ac_includes_default
14304 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14311 rm -f conftest.$ac_objext
14312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14313 (eval $ac_compile) 2>&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } &&
14317 { ac_try='test -s conftest.$ac_objext'
14318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14319 (eval $ac_try) 2>&5
14321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14322 (exit $ac_status); }; }; then
14325 cat >conftest.$ac_ext <<_ACEOF
14326 #line $LINENO "configure"
14329 cat confdefs.h >>conftest.$ac_ext
14330 cat >>conftest.$ac_ext <<_ACEOF
14331 /* end confdefs.h. */
14332 $ac_includes_default
14336 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14343 rm -f conftest.$ac_objext
14344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14345 (eval $ac_compile) 2>&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } &&
14349 { ac_try='test -s conftest.$ac_objext'
14350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14351 (eval $ac_try) 2>&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); }; }; then
14355 ac_hi=$ac_mid; break
14357 echo "$as_me: failed program was:" >&5
14358 sed 's/^/| /' conftest.$ac_ext >&5
14360 ac_lo=`expr $ac_mid + 1`
14361 if test $ac_lo -le $ac_mid; then
14365 ac_mid=`expr 2 '*' $ac_mid + 1`
14367 rm -f conftest.$ac_objext conftest.$ac_ext
14370 echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14373 cat >conftest.$ac_ext <<_ACEOF
14374 #line $LINENO "configure"
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h. */
14380 $ac_includes_default
14384 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14391 rm -f conftest.$ac_objext
14392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14393 (eval $ac_compile) 2>&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } &&
14397 { ac_try='test -s conftest.$ac_objext'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
14405 cat >conftest.$ac_ext <<_ACEOF
14406 #line $LINENO "configure"
14409 cat confdefs.h >>conftest.$ac_ext
14410 cat >>conftest.$ac_ext <<_ACEOF
14411 /* end confdefs.h. */
14412 $ac_includes_default
14416 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14423 rm -f conftest.$ac_objext
14424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14425 (eval $ac_compile) 2>&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); } &&
14429 { ac_try='test -s conftest.$ac_objext'
14430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14431 (eval $ac_try) 2>&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); }; }; then
14435 ac_lo=$ac_mid; break
14437 echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.$ac_ext >&5
14440 ac_hi=`expr '(' $ac_mid ')' - 1`
14441 if test $ac_mid -le $ac_hi; then
14445 ac_mid=`expr 2 '*' $ac_mid`
14447 rm -f conftest.$ac_objext conftest.$ac_ext
14450 echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.$ac_ext >&5
14455 rm -f conftest.$ac_objext conftest.$ac_ext
14457 rm -f conftest.$ac_objext conftest.$ac_ext
14458 # Binary search between lo and hi bounds.
14459 while test "x$ac_lo" != "x$ac_hi"; do
14460 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14461 cat >conftest.$ac_ext <<_ACEOF
14462 #line $LINENO "configure"
14465 cat confdefs.h >>conftest.$ac_ext
14466 cat >>conftest.$ac_ext <<_ACEOF
14467 /* end confdefs.h. */
14468 $ac_includes_default
14472 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14479 rm -f conftest.$ac_objext
14480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14481 (eval $ac_compile) 2>&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } &&
14485 { ac_try='test -s conftest.$ac_objext'
14486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14487 (eval $ac_try) 2>&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); }; }; then
14493 echo "$as_me: failed program was:" >&5
14494 sed 's/^/| /' conftest.$ac_ext >&5
14496 ac_lo=`expr '(' $ac_mid ')' + 1`
14498 rm -f conftest.$ac_objext conftest.$ac_ext
14501 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14502 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14503 See \`config.log' for more details." >&5
14504 echo "$as_me: error: cannot compute sizeof (int *), 77
14505 See \`config.log' for more details." >&2;}
14506 { (exit 1); exit 1; }; } ;;
14509 if test "$cross_compiling" = yes; then
14510 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14511 See \`config.log' for more details." >&5
14512 echo "$as_me: error: cannot run test program while cross compiling
14513 See \`config.log' for more details." >&2;}
14514 { (exit 1); exit 1; }; }
14516 cat >conftest.$ac_ext <<_ACEOF
14517 #line $LINENO "configure"
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h. */
14523 $ac_includes_default
14524 long longval () { return (long) (sizeof (int *)); }
14525 unsigned long ulongval () { return (long) (sizeof (int *)); }
14527 #include <stdlib.h>
14532 FILE *f = fopen ("conftest.val", "w");
14535 if (((long) (sizeof (int *))) < 0)
14537 long i = longval ();
14538 if (i != ((long) (sizeof (int *))))
14540 fprintf (f, "%ld\n", i);
14544 unsigned long i = ulongval ();
14545 if (i != ((long) (sizeof (int *))))
14547 fprintf (f, "%lu\n", i);
14549 exit (ferror (f) || fclose (f) != 0);
14555 rm -f conftest$ac_exeext
14556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14557 (eval $ac_link) 2>&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14562 (eval $ac_try) 2>&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); }; }; then
14566 ac_cv_sizeof_int_p=`cat conftest.val`
14568 echo "$as_me: program exited with status $ac_status" >&5
14569 echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14572 ( exit $ac_status )
14573 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14574 See \`config.log' for more details." >&5
14575 echo "$as_me: error: cannot compute sizeof (int *), 77
14576 See \`config.log' for more details." >&2;}
14577 { (exit 1); exit 1; }; }
14579 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14584 ac_cv_sizeof_int_p=0
14587 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14588 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14589 cat >>confdefs.h <<_ACEOF
14590 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14595 # Check for sys/types.h types
14596 echo "$as_me:$LINENO: checking for u_int type" >&5
14597 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14598 if test "${ac_cv_have_u_int+set}" = set; then
14599 echo $ECHO_N "(cached) $ECHO_C" >&6
14602 cat >conftest.$ac_ext <<_ACEOF
14603 #line $LINENO "configure"
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h. */
14609 #include <sys/types.h>
14618 rm -f conftest.$ac_objext
14619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14620 (eval $ac_compile) 2>&5
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); } &&
14624 { ac_try='test -s conftest.$ac_objext'
14625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14626 (eval $ac_try) 2>&5
14628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14629 (exit $ac_status); }; }; then
14630 ac_cv_have_u_int="yes"
14632 echo "$as_me: failed program was:" >&5
14633 sed 's/^/| /' conftest.$ac_ext >&5
14635 ac_cv_have_u_int="no"
14638 rm -f conftest.$ac_objext conftest.$ac_ext
14641 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14642 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14643 if test "x$ac_cv_have_u_int" = "xyes" ; then
14644 cat >>confdefs.h <<\_ACEOF
14645 #define HAVE_U_INT 1
14651 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14652 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14653 if test "${ac_cv_have_intmax_t+set}" = set; then
14654 echo $ECHO_N "(cached) $ECHO_C" >&6
14657 cat >conftest.$ac_ext <<_ACEOF
14658 #line $LINENO "configure"
14661 cat confdefs.h >>conftest.$ac_ext
14662 cat >>conftest.$ac_ext <<_ACEOF
14663 /* end confdefs.h. */
14664 #include <sys/types.h>
14673 rm -f conftest.$ac_objext
14674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14675 (eval $ac_compile) 2>&5
14677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678 (exit $ac_status); } &&
14679 { ac_try='test -s conftest.$ac_objext'
14680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14681 (eval $ac_try) 2>&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); }; }; then
14685 ac_cv_have_intmax_t="yes"
14687 echo "$as_me: failed program was:" >&5
14688 sed 's/^/| /' conftest.$ac_ext >&5
14691 cat >conftest.$ac_ext <<_ACEOF
14692 #line $LINENO "configure"
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 #include <stdint.h>
14707 rm -f conftest.$ac_objext
14708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14709 (eval $ac_compile) 2>&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } &&
14713 { ac_try='test -s conftest.$ac_objext'
14714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715 (eval $ac_try) 2>&5
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); }; }; then
14719 ac_cv_have_intmax_t="yes"
14721 echo "$as_me: failed program was:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14724 ac_cv_have_intmax_t="no"
14727 rm -f conftest.$ac_objext conftest.$ac_ext
14731 rm -f conftest.$ac_objext conftest.$ac_ext
14735 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14736 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14737 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14738 cat >>confdefs.h <<\_ACEOF
14739 #define HAVE_INTMAX_T 1
14746 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14747 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14748 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14752 cat >conftest.$ac_ext <<_ACEOF
14753 #line $LINENO "configure"
14756 cat confdefs.h >>conftest.$ac_ext
14757 cat >>conftest.$ac_ext <<_ACEOF
14758 /* end confdefs.h. */
14759 #include <sys/types.h>
14763 u_intmax_t a; a = 1;
14768 rm -f conftest.$ac_objext
14769 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14770 (eval $ac_compile) 2>&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } &&
14774 { ac_try='test -s conftest.$ac_objext'
14775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776 (eval $ac_try) 2>&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; }; then
14780 ac_cv_have_u_intmax_t="yes"
14782 echo "$as_me: failed program was:" >&5
14783 sed 's/^/| /' conftest.$ac_ext >&5
14786 cat >conftest.$ac_ext <<_ACEOF
14787 #line $LINENO "configure"
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h. */
14793 #include <stdint.h>
14797 u_intmax_t a; a = 1;
14802 rm -f conftest.$ac_objext
14803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14804 (eval $ac_compile) 2>&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } &&
14808 { ac_try='test -s conftest.$ac_objext'
14809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14810 (eval $ac_try) 2>&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); }; }; then
14814 ac_cv_have_u_intmax_t="yes"
14816 echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.$ac_ext >&5
14819 ac_cv_have_u_intmax_t="no"
14822 rm -f conftest.$ac_objext conftest.$ac_ext
14826 rm -f conftest.$ac_objext conftest.$ac_ext
14829 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14830 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14831 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14832 cat >>confdefs.h <<\_ACEOF
14833 #define HAVE_U_INTMAX_T 1
14840 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14841 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14842 if test "${ac_cv_have_intxx_t+set}" = set; then
14843 echo $ECHO_N "(cached) $ECHO_C" >&6
14846 cat >conftest.$ac_ext <<_ACEOF
14847 #line $LINENO "configure"
14850 cat confdefs.h >>conftest.$ac_ext
14851 cat >>conftest.$ac_ext <<_ACEOF
14852 /* end confdefs.h. */
14853 #include <sys/types.h>
14857 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14862 rm -f conftest.$ac_objext
14863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14864 (eval $ac_compile) 2>&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } &&
14868 { ac_try='test -s conftest.$ac_objext'
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; }; then
14874 ac_cv_have_intxx_t="yes"
14876 echo "$as_me: failed program was:" >&5
14877 sed 's/^/| /' conftest.$ac_ext >&5
14879 ac_cv_have_intxx_t="no"
14882 rm -f conftest.$ac_objext conftest.$ac_ext
14885 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14886 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14887 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14888 cat >>confdefs.h <<\_ACEOF
14889 #define HAVE_INTXX_T 1
14895 echo "$as_me:$LINENO: checking for int64_t type" >&5
14896 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14897 if test "${ac_cv_have_int64_t+set}" = set; then
14898 echo $ECHO_N "(cached) $ECHO_C" >&6
14901 cat >conftest.$ac_ext <<_ACEOF
14902 #line $LINENO "configure"
14905 cat confdefs.h >>conftest.$ac_ext
14906 cat >>conftest.$ac_ext <<_ACEOF
14907 /* end confdefs.h. */
14908 #include <sys/types.h>
14917 rm -f conftest.$ac_objext
14918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14919 (eval $ac_compile) 2>&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); } &&
14923 { ac_try='test -s conftest.$ac_objext'
14924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14925 (eval $ac_try) 2>&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); }; }; then
14929 ac_cv_have_int64_t="yes"
14931 echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14934 ac_cv_have_int64_t="no"
14937 rm -f conftest.$ac_objext conftest.$ac_ext
14940 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14941 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14942 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14943 cat >>confdefs.h <<\_ACEOF
14944 #define HAVE_INT64_T 1
14950 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14951 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14952 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14953 echo $ECHO_N "(cached) $ECHO_C" >&6
14956 cat >conftest.$ac_ext <<_ACEOF
14957 #line $LINENO "configure"
14960 cat confdefs.h >>conftest.$ac_ext
14961 cat >>conftest.$ac_ext <<_ACEOF
14962 /* end confdefs.h. */
14963 #include <sys/types.h>
14967 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14972 rm -f conftest.$ac_objext
14973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14974 (eval $ac_compile) 2>&5
14976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977 (exit $ac_status); } &&
14978 { ac_try='test -s conftest.$ac_objext'
14979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14980 (eval $ac_try) 2>&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); }; }; then
14984 ac_cv_have_u_intxx_t="yes"
14986 echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.$ac_ext >&5
14989 ac_cv_have_u_intxx_t="no"
14992 rm -f conftest.$ac_objext conftest.$ac_ext
14995 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14996 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14997 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14998 cat >>confdefs.h <<\_ACEOF
14999 #define HAVE_U_INTXX_T 1
15005 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
15006 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
15007 if test "${ac_cv_have_u_int64_t+set}" = set; then
15008 echo $ECHO_N "(cached) $ECHO_C" >&6
15011 cat >conftest.$ac_ext <<_ACEOF
15012 #line $LINENO "configure"
15015 cat confdefs.h >>conftest.$ac_ext
15016 cat >>conftest.$ac_ext <<_ACEOF
15017 /* end confdefs.h. */
15018 #include <sys/types.h>
15022 u_int64_t a; a = 1;
15027 rm -f conftest.$ac_objext
15028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15029 (eval $ac_compile) 2>&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } &&
15033 { ac_try='test -s conftest.$ac_objext'
15034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15035 (eval $ac_try) 2>&5
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; }; then
15039 ac_cv_have_u_int64_t="yes"
15041 echo "$as_me: failed program was:" >&5
15042 sed 's/^/| /' conftest.$ac_ext >&5
15044 ac_cv_have_u_int64_t="no"
15047 rm -f conftest.$ac_objext conftest.$ac_ext
15050 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
15051 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
15052 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
15053 cat >>confdefs.h <<\_ACEOF
15054 #define HAVE_U_INT64_T 1
15060 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
15061 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15063 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15064 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
15065 cat >conftest.$ac_ext <<_ACEOF
15066 #line $LINENO "configure"
15069 cat confdefs.h >>conftest.$ac_ext
15070 cat >>conftest.$ac_ext <<_ACEOF
15071 /* end confdefs.h. */
15072 #include <sys/bitypes.h>
15076 int8_t a; int16_t b; int32_t c;
15077 u_int8_t e; u_int16_t f; u_int32_t g;
15078 a = b = c = e = f = g = 1;
15083 rm -f conftest.$ac_objext
15084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15085 (eval $ac_compile) 2>&5
15087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088 (exit $ac_status); } &&
15089 { ac_try='test -s conftest.$ac_objext'
15090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15091 (eval $ac_try) 2>&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; }; then
15095 cat >>confdefs.h <<\_ACEOF
15096 #define HAVE_U_INTXX_T 1
15099 cat >>confdefs.h <<\_ACEOF
15100 #define HAVE_INTXX_T 1
15103 cat >>confdefs.h <<\_ACEOF
15104 #define HAVE_SYS_BITYPES_H 1
15107 echo "$as_me:$LINENO: result: yes" >&5
15108 echo "${ECHO_T}yes" >&6
15110 echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15113 echo "$as_me:$LINENO: result: no" >&5
15114 echo "${ECHO_T}no" >&6
15117 rm -f conftest.$ac_objext conftest.$ac_ext
15120 if test -z "$have_u_intxx_t" ; then
15121 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15122 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15123 if test "${ac_cv_have_uintxx_t+set}" = set; then
15124 echo $ECHO_N "(cached) $ECHO_C" >&6
15127 cat >conftest.$ac_ext <<_ACEOF
15128 #line $LINENO "configure"
15131 cat confdefs.h >>conftest.$ac_ext
15132 cat >>conftest.$ac_ext <<_ACEOF
15133 /* end confdefs.h. */
15134 #include <sys/types.h>
15138 uint8_t a; uint16_t b;
15139 uint32_t c; a = b = c = 1;
15144 rm -f conftest.$ac_objext
15145 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15146 (eval $ac_compile) 2>&5
15148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15149 (exit $ac_status); } &&
15150 { ac_try='test -s conftest.$ac_objext'
15151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15152 (eval $ac_try) 2>&5
15154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15155 (exit $ac_status); }; }; then
15156 ac_cv_have_uintxx_t="yes"
15158 echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15161 ac_cv_have_uintxx_t="no"
15164 rm -f conftest.$ac_objext conftest.$ac_ext
15167 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15168 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15169 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15170 cat >>confdefs.h <<\_ACEOF
15171 #define HAVE_UINTXX_T 1
15177 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15178 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15180 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15181 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15182 cat >conftest.$ac_ext <<_ACEOF
15183 #line $LINENO "configure"
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h. */
15189 #include <sys/bitypes.h>
15193 int64_t a; u_int64_t b;
15199 rm -f conftest.$ac_objext
15200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15201 (eval $ac_compile) 2>&5
15203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15204 (exit $ac_status); } &&
15205 { ac_try='test -s conftest.$ac_objext'
15206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15207 (eval $ac_try) 2>&5
15209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15210 (exit $ac_status); }; }; then
15211 cat >>confdefs.h <<\_ACEOF
15212 #define HAVE_U_INT64_T 1
15215 cat >>confdefs.h <<\_ACEOF
15216 #define HAVE_INT64_T 1
15219 echo "$as_me:$LINENO: result: yes" >&5
15220 echo "${ECHO_T}yes" >&6
15222 echo "$as_me: failed program was:" >&5
15223 sed 's/^/| /' conftest.$ac_ext >&5
15225 echo "$as_me:$LINENO: result: no" >&5
15226 echo "${ECHO_T}no" >&6
15229 rm -f conftest.$ac_objext conftest.$ac_ext
15232 if (test -z "$have_uintxx_t" && \
15233 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15235 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15236 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15237 cat >conftest.$ac_ext <<_ACEOF
15238 #line $LINENO "configure"
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h. */
15244 #include <sys/bitypes.h>
15248 uint8_t a; uint16_t b;
15249 uint32_t c; a = b = c = 1;
15254 rm -f conftest.$ac_objext
15255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15256 (eval $ac_compile) 2>&5
15258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15259 (exit $ac_status); } &&
15260 { ac_try='test -s conftest.$ac_objext'
15261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262 (eval $ac_try) 2>&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; }; then
15266 cat >>confdefs.h <<\_ACEOF
15267 #define HAVE_UINTXX_T 1
15270 echo "$as_me:$LINENO: result: yes" >&5
15271 echo "${ECHO_T}yes" >&6
15273 echo "$as_me: failed program was:" >&5
15274 sed 's/^/| /' conftest.$ac_ext >&5
15276 echo "$as_me:$LINENO: result: no" >&5
15277 echo "${ECHO_T}no" >&6
15280 rm -f conftest.$ac_objext conftest.$ac_ext
15316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15317 echo "$as_me:$LINENO: checking for $ac_func" >&5
15318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15319 if eval "test \"\${$as_ac_var+set}\" = set"; then
15320 echo $ECHO_N "(cached) $ECHO_C" >&6
15322 cat >conftest.$ac_ext <<_ACEOF
15323 #line $LINENO "configure"
15326 cat confdefs.h >>conftest.$ac_ext
15327 cat >>conftest.$ac_ext <<_ACEOF
15328 /* end confdefs.h. */
15329 /* System header to define __stub macros and hopefully few prototypes,
15330 which can conflict with char $ac_func (); below.
15331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15332 <limits.h> exists even on freestanding compilers. */
15334 # include <limits.h>
15336 # include <assert.h>
15338 /* Override any gcc2 internal prototype to avoid an error. */
15343 /* We use char because int might match the return type of a gcc2
15344 builtin and then its argument prototype would still apply. */
15346 /* The GNU C library defines this for functions which it implements
15347 to always fail with ENOSYS. Some functions are actually named
15348 something starting with __ and the normal name is an alias. */
15349 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15352 char (*f) () = $ac_func;
15361 return f != $ac_func;
15366 rm -f conftest.$ac_objext conftest$ac_exeext
15367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15368 (eval $ac_link) 2>&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } &&
15372 { ac_try='test -s conftest$ac_exeext'
15373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15374 (eval $ac_try) 2>&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); }; }; then
15378 eval "$as_ac_var=yes"
15380 echo "$as_me: failed program was:" >&5
15381 sed 's/^/| /' conftest.$ac_ext >&5
15383 eval "$as_ac_var=no"
15385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15387 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15388 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15389 if test `eval echo '${'$as_ac_var'}'` = yes; then
15390 cat >>confdefs.h <<_ACEOF
15391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15395 echo 'configure: cannot find needed function.'; exit 1
15402 for ac_func in fchdir
15404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15405 echo "$as_me:$LINENO: checking for $ac_func" >&5
15406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15407 if eval "test \"\${$as_ac_var+set}\" = set"; then
15408 echo $ECHO_N "(cached) $ECHO_C" >&6
15410 cat >conftest.$ac_ext <<_ACEOF
15411 #line $LINENO "configure"
15414 cat confdefs.h >>conftest.$ac_ext
15415 cat >>conftest.$ac_ext <<_ACEOF
15416 /* end confdefs.h. */
15417 /* System header to define __stub macros and hopefully few prototypes,
15418 which can conflict with char $ac_func (); below.
15419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15420 <limits.h> exists even on freestanding compilers. */
15422 # include <limits.h>
15424 # include <assert.h>
15426 /* Override any gcc2 internal prototype to avoid an error. */
15431 /* We use char because int might match the return type of a gcc2
15432 builtin and then its argument prototype would still apply. */
15434 /* The GNU C library defines this for functions which it implements
15435 to always fail with ENOSYS. Some functions are actually named
15436 something starting with __ and the normal name is an alias. */
15437 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15440 char (*f) () = $ac_func;
15449 return f != $ac_func;
15454 rm -f conftest.$ac_objext conftest$ac_exeext
15455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15456 (eval $ac_link) 2>&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } &&
15460 { ac_try='test -s conftest$ac_exeext'
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; }; then
15466 eval "$as_ac_var=yes"
15468 echo "$as_me: failed program was:" >&5
15469 sed 's/^/| /' conftest.$ac_ext >&5
15471 eval "$as_ac_var=no"
15473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15475 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15476 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15477 if test `eval echo '${'$as_ac_var'}'` = yes; then
15478 cat >>confdefs.h <<_ACEOF
15479 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15481 cat >>confdefs.h <<\_ACEOF
15482 #define HAVE_FCHDIR 1
15489 for ac_func in strtoll
15491 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15492 echo "$as_me:$LINENO: checking for $ac_func" >&5
15493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15494 if eval "test \"\${$as_ac_var+set}\" = set"; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15497 cat >conftest.$ac_ext <<_ACEOF
15498 #line $LINENO "configure"
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h. */
15504 /* System header to define __stub macros and hopefully few prototypes,
15505 which can conflict with char $ac_func (); below.
15506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15507 <limits.h> exists even on freestanding compilers. */
15509 # include <limits.h>
15511 # include <assert.h>
15513 /* Override any gcc2 internal prototype to avoid an error. */
15518 /* We use char because int might match the return type of a gcc2
15519 builtin and then its argument prototype would still apply. */
15521 /* The GNU C library defines this for functions which it implements
15522 to always fail with ENOSYS. Some functions are actually named
15523 something starting with __ and the normal name is an alias. */
15524 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15527 char (*f) () = $ac_func;
15536 return f != $ac_func;
15541 rm -f conftest.$ac_objext conftest$ac_exeext
15542 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15543 (eval $ac_link) 2>&5
15545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15546 (exit $ac_status); } &&
15547 { ac_try='test -s conftest$ac_exeext'
15548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549 (eval $ac_try) 2>&5
15551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552 (exit $ac_status); }; }; then
15553 eval "$as_ac_var=yes"
15555 echo "$as_me: failed program was:" >&5
15556 sed 's/^/| /' conftest.$ac_ext >&5
15558 eval "$as_ac_var=no"
15560 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15562 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15563 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15564 if test `eval echo '${'$as_ac_var'}'` = yes; then
15565 cat >>confdefs.h <<_ACEOF
15566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15568 cat >>confdefs.h <<\_ACEOF
15569 #define HAVE_STRTOLL 1
15577 for ac_func in chflags
15579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15580 echo "$as_me:$LINENO: checking for $ac_func" >&5
15581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15582 if eval "test \"\${$as_ac_var+set}\" = set"; then
15583 echo $ECHO_N "(cached) $ECHO_C" >&6
15585 cat >conftest.$ac_ext <<_ACEOF
15586 #line $LINENO "configure"
15589 cat confdefs.h >>conftest.$ac_ext
15590 cat >>conftest.$ac_ext <<_ACEOF
15591 /* end confdefs.h. */
15592 /* System header to define __stub macros and hopefully few prototypes,
15593 which can conflict with char $ac_func (); below.
15594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15595 <limits.h> exists even on freestanding compilers. */
15597 # include <limits.h>
15599 # include <assert.h>
15601 /* Override any gcc2 internal prototype to avoid an error. */
15606 /* We use char because int might match the return type of a gcc2
15607 builtin and then its argument prototype would still apply. */
15609 /* The GNU C library defines this for functions which it implements
15610 to always fail with ENOSYS. Some functions are actually named
15611 something starting with __ and the normal name is an alias. */
15612 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15615 char (*f) () = $ac_func;
15624 return f != $ac_func;
15629 rm -f conftest.$ac_objext conftest$ac_exeext
15630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15631 (eval $ac_link) 2>&5
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); } &&
15635 { ac_try='test -s conftest$ac_exeext'
15636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15637 (eval $ac_try) 2>&5
15639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15640 (exit $ac_status); }; }; then
15641 eval "$as_ac_var=yes"
15643 echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15646 eval "$as_ac_var=no"
15648 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15651 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15652 if test `eval echo '${'$as_ac_var'}'` = yes; then
15653 cat >>confdefs.h <<_ACEOF
15654 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15665 for ac_func in snprintf vsnprintf gethostid getdomainname
15667 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15668 echo "$as_me:$LINENO: checking for $ac_func" >&5
15669 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15670 if eval "test \"\${$as_ac_var+set}\" = set"; then
15671 echo $ECHO_N "(cached) $ECHO_C" >&6
15673 cat >conftest.$ac_ext <<_ACEOF
15674 #line $LINENO "configure"
15677 cat confdefs.h >>conftest.$ac_ext
15678 cat >>conftest.$ac_ext <<_ACEOF
15679 /* end confdefs.h. */
15680 /* System header to define __stub macros and hopefully few prototypes,
15681 which can conflict with char $ac_func (); below.
15682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15683 <limits.h> exists even on freestanding compilers. */
15685 # include <limits.h>
15687 # include <assert.h>
15689 /* Override any gcc2 internal prototype to avoid an error. */
15694 /* We use char because int might match the return type of a gcc2
15695 builtin and then its argument prototype would still apply. */
15697 /* The GNU C library defines this for functions which it implements
15698 to always fail with ENOSYS. Some functions are actually named
15699 something starting with __ and the normal name is an alias. */
15700 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15703 char (*f) () = $ac_func;
15712 return f != $ac_func;
15717 rm -f conftest.$ac_objext conftest$ac_exeext
15718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15719 (eval $ac_link) 2>&5
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); } &&
15723 { ac_try='test -s conftest$ac_exeext'
15724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15725 (eval $ac_try) 2>&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); }; }; then
15729 eval "$as_ac_var=yes"
15731 echo "$as_me: failed program was:" >&5
15732 sed 's/^/| /' conftest.$ac_ext >&5
15734 eval "$as_ac_var=no"
15736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15738 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15739 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15740 if test `eval echo '${'$as_ac_var'}'` = yes; then
15741 cat >>confdefs.h <<_ACEOF
15742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15753 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15755 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15756 echo "$as_me:$LINENO: checking for $ac_func" >&5
15757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15758 if eval "test \"\${$as_ac_var+set}\" = set"; then
15759 echo $ECHO_N "(cached) $ECHO_C" >&6
15761 cat >conftest.$ac_ext <<_ACEOF
15762 #line $LINENO "configure"
15765 cat confdefs.h >>conftest.$ac_ext
15766 cat >>conftest.$ac_ext <<_ACEOF
15767 /* end confdefs.h. */
15768 /* System header to define __stub macros and hopefully few prototypes,
15769 which can conflict with char $ac_func (); below.
15770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15771 <limits.h> exists even on freestanding compilers. */
15773 # include <limits.h>
15775 # include <assert.h>
15777 /* Override any gcc2 internal prototype to avoid an error. */
15782 /* We use char because int might match the return type of a gcc2
15783 builtin and then its argument prototype would still apply. */
15785 /* The GNU C library defines this for functions which it implements
15786 to always fail with ENOSYS. Some functions are actually named
15787 something starting with __ and the normal name is an alias. */
15788 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15791 char (*f) () = $ac_func;
15800 return f != $ac_func;
15805 rm -f conftest.$ac_objext conftest$ac_exeext
15806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15807 (eval $ac_link) 2>&5
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); } &&
15811 { ac_try='test -s conftest$ac_exeext'
15812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15813 (eval $ac_try) 2>&5
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); }; }; then
15817 eval "$as_ac_var=yes"
15819 echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.$ac_ext >&5
15822 eval "$as_ac_var=no"
15824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15828 if test `eval echo '${'$as_ac_var'}'` = yes; then
15829 cat >>confdefs.h <<_ACEOF
15830 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15837 # If resolver functions are not in libc check for -lnsl or -lresolv.
15838 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15839 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15840 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15841 echo $ECHO_N "(cached) $ECHO_C" >&6
15843 cat >conftest.$ac_ext <<_ACEOF
15844 #line $LINENO "configure"
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h. */
15850 /* System header to define __stub macros and hopefully few prototypes,
15851 which can conflict with char gethostbyname_r (); below.
15852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15853 <limits.h> exists even on freestanding compilers. */
15855 # include <limits.h>
15857 # include <assert.h>
15859 /* Override any gcc2 internal prototype to avoid an error. */
15864 /* We use char because int might match the return type of a gcc2
15865 builtin and then its argument prototype would still apply. */
15866 char gethostbyname_r ();
15867 /* The GNU C library defines this for functions which it implements
15868 to always fail with ENOSYS. Some functions are actually named
15869 something starting with __ and the normal name is an alias. */
15870 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15873 char (*f) () = gethostbyname_r;
15882 return f != gethostbyname_r;
15887 rm -f conftest.$ac_objext conftest$ac_exeext
15888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15889 (eval $ac_link) 2>&5
15891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } &&
15893 { ac_try='test -s conftest$ac_exeext'
15894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15895 (eval $ac_try) 2>&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); }; }; then
15899 ac_cv_func_gethostbyname_r=yes
15901 echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15904 ac_cv_func_gethostbyname_r=no
15906 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15908 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15909 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15910 if test $ac_cv_func_gethostbyname_r = yes; then
15911 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15912 echo "${ECHO_T}using libc's resolver" >&6
15915 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15916 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15917 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15918 echo $ECHO_N "(cached) $ECHO_C" >&6
15920 ac_check_lib_save_LIBS=$LIBS
15922 cat >conftest.$ac_ext <<_ACEOF
15923 #line $LINENO "configure"
15926 cat confdefs.h >>conftest.$ac_ext
15927 cat >>conftest.$ac_ext <<_ACEOF
15928 /* end confdefs.h. */
15930 /* Override any gcc2 internal prototype to avoid an error. */
15934 /* We use char because int might match the return type of a gcc2
15935 builtin and then its argument prototype would still apply. */
15936 char gethostbyname_r ();
15940 gethostbyname_r ();
15945 rm -f conftest.$ac_objext conftest$ac_exeext
15946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15947 (eval $ac_link) 2>&5
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } &&
15951 { ac_try='test -s conftest$ac_exeext'
15952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953 (eval $ac_try) 2>&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); }; }; then
15957 ac_cv_lib_nsl_gethostbyname_r=yes
15959 echo "$as_me: failed program was:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15962 ac_cv_lib_nsl_gethostbyname_r=no
15964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15965 LIBS=$ac_check_lib_save_LIBS
15967 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15968 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15969 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15970 cat >>confdefs.h <<_ACEOF
15971 #define HAVE_LIBNSL 1
15979 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15980 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15981 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15982 echo $ECHO_N "(cached) $ECHO_C" >&6
15984 ac_check_lib_save_LIBS=$LIBS
15985 LIBS="-lresolv $LIBS"
15986 cat >conftest.$ac_ext <<_ACEOF
15987 #line $LINENO "configure"
15990 cat confdefs.h >>conftest.$ac_ext
15991 cat >>conftest.$ac_ext <<_ACEOF
15992 /* end confdefs.h. */
15994 /* Override any gcc2 internal prototype to avoid an error. */
15998 /* We use char because int might match the return type of a gcc2
15999 builtin and then its argument prototype would still apply. */
16000 char gethostbyname_r ();
16004 gethostbyname_r ();
16009 rm -f conftest.$ac_objext conftest$ac_exeext
16010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16011 (eval $ac_link) 2>&5
16013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); } &&
16015 { ac_try='test -s conftest$ac_exeext'
16016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16017 (eval $ac_try) 2>&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); }; }; then
16021 ac_cv_lib_resolv_gethostbyname_r=yes
16023 echo "$as_me: failed program was:" >&5
16024 sed 's/^/| /' conftest.$ac_ext >&5
16026 ac_cv_lib_resolv_gethostbyname_r=no
16028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16029 LIBS=$ac_check_lib_save_LIBS
16031 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
16032 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
16033 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
16034 cat >>confdefs.h <<_ACEOF
16035 #define HAVE_LIBRESOLV 1
16038 LIBS="-lresolv $LIBS"
16046 # Find where sockets are (especially for Solaris)
16047 echo "$as_me:$LINENO: checking for socket" >&5
16048 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16049 if test "${ac_cv_func_socket+set}" = set; then
16050 echo $ECHO_N "(cached) $ECHO_C" >&6
16052 cat >conftest.$ac_ext <<_ACEOF
16053 #line $LINENO "configure"
16056 cat confdefs.h >>conftest.$ac_ext
16057 cat >>conftest.$ac_ext <<_ACEOF
16058 /* end confdefs.h. */
16059 /* System header to define __stub macros and hopefully few prototypes,
16060 which can conflict with char socket (); below.
16061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16062 <limits.h> exists even on freestanding compilers. */
16064 # include <limits.h>
16066 # include <assert.h>
16068 /* Override any gcc2 internal prototype to avoid an error. */
16073 /* We use char because int might match the return type of a gcc2
16074 builtin and then its argument prototype would still apply. */
16076 /* The GNU C library defines this for functions which it implements
16077 to always fail with ENOSYS. Some functions are actually named
16078 something starting with __ and the normal name is an alias. */
16079 #if defined (__stub_socket) || defined (__stub___socket)
16082 char (*f) () = socket;
16091 return f != socket;
16096 rm -f conftest.$ac_objext conftest$ac_exeext
16097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16098 (eval $ac_link) 2>&5
16100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16101 (exit $ac_status); } &&
16102 { ac_try='test -s conftest$ac_exeext'
16103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16104 (eval $ac_try) 2>&5
16106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16107 (exit $ac_status); }; }; then
16108 ac_cv_func_socket=yes
16110 echo "$as_me: failed program was:" >&5
16111 sed 's/^/| /' conftest.$ac_ext >&5
16113 ac_cv_func_socket=no
16115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16117 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16118 echo "${ECHO_T}$ac_cv_func_socket" >&6
16119 if test $ac_cv_func_socket = yes; then
16120 echo "$as_me:$LINENO: result: using libc's socket" >&5
16121 echo "${ECHO_T}using libc's socket" >&6
16124 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
16125 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
16126 if test "${ac_cv_lib_xnet_socket+set}" = set; then
16127 echo $ECHO_N "(cached) $ECHO_C" >&6
16129 ac_check_lib_save_LIBS=$LIBS
16130 LIBS="-lxnet $LIBS"
16131 cat >conftest.$ac_ext <<_ACEOF
16132 #line $LINENO "configure"
16135 cat confdefs.h >>conftest.$ac_ext
16136 cat >>conftest.$ac_ext <<_ACEOF
16137 /* end confdefs.h. */
16139 /* Override any gcc2 internal prototype to avoid an error. */
16143 /* We use char because int might match the return type of a gcc2
16144 builtin and then its argument prototype would still apply. */
16154 rm -f conftest.$ac_objext conftest$ac_exeext
16155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16156 (eval $ac_link) 2>&5
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); } &&
16160 { ac_try='test -s conftest$ac_exeext'
16161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16162 (eval $ac_try) 2>&5
16164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); }; }; then
16166 ac_cv_lib_xnet_socket=yes
16168 echo "$as_me: failed program was:" >&5
16169 sed 's/^/| /' conftest.$ac_ext >&5
16171 ac_cv_lib_xnet_socket=no
16173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16174 LIBS=$ac_check_lib_save_LIBS
16176 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16177 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
16178 if test $ac_cv_lib_xnet_socket = yes; then
16179 cat >>confdefs.h <<_ACEOF
16180 #define HAVE_LIBXNET 1
16183 LIBS="-lxnet $LIBS"
16188 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16189 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
16190 if test "${ac_cv_lib_socket_socket+set}" = set; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16193 ac_check_lib_save_LIBS=$LIBS
16194 LIBS="-lsocket $LIBS"
16195 cat >conftest.$ac_ext <<_ACEOF
16196 #line $LINENO "configure"
16199 cat confdefs.h >>conftest.$ac_ext
16200 cat >>conftest.$ac_ext <<_ACEOF
16201 /* end confdefs.h. */
16203 /* Override any gcc2 internal prototype to avoid an error. */
16207 /* We use char because int might match the return type of a gcc2
16208 builtin and then its argument prototype would still apply. */
16218 rm -f conftest.$ac_objext conftest$ac_exeext
16219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16220 (eval $ac_link) 2>&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); } &&
16224 { ac_try='test -s conftest$ac_exeext'
16225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16226 (eval $ac_try) 2>&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); }; }; then
16230 ac_cv_lib_socket_socket=yes
16232 echo "$as_me: failed program was:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16235 ac_cv_lib_socket_socket=no
16237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16238 LIBS=$ac_check_lib_save_LIBS
16240 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16241 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16242 if test $ac_cv_lib_socket_socket = yes; then
16243 cat >>confdefs.h <<_ACEOF
16244 #define HAVE_LIBSOCKET 1
16247 LIBS="-lsocket $LIBS"
16252 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16253 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16254 if test "${ac_cv_lib_inet_socket+set}" = set; then
16255 echo $ECHO_N "(cached) $ECHO_C" >&6
16257 ac_check_lib_save_LIBS=$LIBS
16258 LIBS="-linet $LIBS"
16259 cat >conftest.$ac_ext <<_ACEOF
16260 #line $LINENO "configure"
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16267 /* Override any gcc2 internal prototype to avoid an error. */
16271 /* We use char because int might match the return type of a gcc2
16272 builtin and then its argument prototype would still apply. */
16282 rm -f conftest.$ac_objext conftest$ac_exeext
16283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16284 (eval $ac_link) 2>&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); } &&
16288 { ac_try='test -s conftest$ac_exeext'
16289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290 (eval $ac_try) 2>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; }; then
16294 ac_cv_lib_inet_socket=yes
16296 echo "$as_me: failed program was:" >&5
16297 sed 's/^/| /' conftest.$ac_ext >&5
16299 ac_cv_lib_inet_socket=no
16301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16302 LIBS=$ac_check_lib_save_LIBS
16304 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16305 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16306 if test $ac_cv_lib_inet_socket = yes; then
16307 cat >>confdefs.h <<_ACEOF
16308 #define HAVE_LIBINET 1
16311 LIBS="-linet $LIBS"
16319 for ac_func in inet_pton
16321 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16322 echo "$as_me:$LINENO: checking for $ac_func" >&5
16323 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16324 if eval "test \"\${$as_ac_var+set}\" = set"; then
16325 echo $ECHO_N "(cached) $ECHO_C" >&6
16327 cat >conftest.$ac_ext <<_ACEOF
16328 #line $LINENO "configure"
16331 cat confdefs.h >>conftest.$ac_ext
16332 cat >>conftest.$ac_ext <<_ACEOF
16333 /* end confdefs.h. */
16334 /* System header to define __stub macros and hopefully few prototypes,
16335 which can conflict with char $ac_func (); below.
16336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16337 <limits.h> exists even on freestanding compilers. */
16339 # include <limits.h>
16341 # include <assert.h>
16343 /* Override any gcc2 internal prototype to avoid an error. */
16348 /* We use char because int might match the return type of a gcc2
16349 builtin and then its argument prototype would still apply. */
16351 /* The GNU C library defines this for functions which it implements
16352 to always fail with ENOSYS. Some functions are actually named
16353 something starting with __ and the normal name is an alias. */
16354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16357 char (*f) () = $ac_func;
16366 return f != $ac_func;
16371 rm -f conftest.$ac_objext conftest$ac_exeext
16372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16373 (eval $ac_link) 2>&5
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); } &&
16377 { ac_try='test -s conftest$ac_exeext'
16378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16379 (eval $ac_try) 2>&5
16381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16382 (exit $ac_status); }; }; then
16383 eval "$as_ac_var=yes"
16385 echo "$as_me: failed program was:" >&5
16386 sed 's/^/| /' conftest.$ac_ext >&5
16388 eval "$as_ac_var=no"
16390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16393 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16394 if test `eval echo '${'$as_ac_var'}'` = yes; then
16395 cat >>confdefs.h <<_ACEOF
16396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16398 cat >>confdefs.h <<\_ACEOF
16399 #define HAVE_INET_PTON 1
16406 for ac_func in inet_ntop
16408 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16409 echo "$as_me:$LINENO: checking for $ac_func" >&5
16410 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16411 if eval "test \"\${$as_ac_var+set}\" = set"; then
16412 echo $ECHO_N "(cached) $ECHO_C" >&6
16414 cat >conftest.$ac_ext <<_ACEOF
16415 #line $LINENO "configure"
16418 cat confdefs.h >>conftest.$ac_ext
16419 cat >>conftest.$ac_ext <<_ACEOF
16420 /* end confdefs.h. */
16421 /* System header to define __stub macros and hopefully few prototypes,
16422 which can conflict with char $ac_func (); below.
16423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16424 <limits.h> exists even on freestanding compilers. */
16426 # include <limits.h>
16428 # include <assert.h>
16430 /* Override any gcc2 internal prototype to avoid an error. */
16435 /* We use char because int might match the return type of a gcc2
16436 builtin and then its argument prototype would still apply. */
16438 /* The GNU C library defines this for functions which it implements
16439 to always fail with ENOSYS. Some functions are actually named
16440 something starting with __ and the normal name is an alias. */
16441 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16444 char (*f) () = $ac_func;
16453 return f != $ac_func;
16458 rm -f conftest.$ac_objext conftest$ac_exeext
16459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16460 (eval $ac_link) 2>&5
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); } &&
16464 { ac_try='test -s conftest$ac_exeext'
16465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466 (eval $ac_try) 2>&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); }; }; then
16470 eval "$as_ac_var=yes"
16472 echo "$as_me: failed program was:" >&5
16473 sed 's/^/| /' conftest.$ac_ext >&5
16475 eval "$as_ac_var=no"
16477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16479 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16480 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16481 if test `eval echo '${'$as_ac_var'}'` = yes; then
16482 cat >>confdefs.h <<_ACEOF
16483 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16485 cat >>confdefs.h <<\_ACEOF
16486 #define HAVE_INET_NTOP 1
16493 for ac_func in gethostbyname2
16495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16496 echo "$as_me:$LINENO: checking for $ac_func" >&5
16497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16498 if eval "test \"\${$as_ac_var+set}\" = set"; then
16499 echo $ECHO_N "(cached) $ECHO_C" >&6
16501 cat >conftest.$ac_ext <<_ACEOF
16502 #line $LINENO "configure"
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h. */
16508 /* System header to define __stub macros and hopefully few prototypes,
16509 which can conflict with char $ac_func (); below.
16510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16511 <limits.h> exists even on freestanding compilers. */
16513 # include <limits.h>
16515 # include <assert.h>
16517 /* Override any gcc2 internal prototype to avoid an error. */
16522 /* We use char because int might match the return type of a gcc2
16523 builtin and then its argument prototype would still apply. */
16525 /* The GNU C library defines this for functions which it implements
16526 to always fail with ENOSYS. Some functions are actually named
16527 something starting with __ and the normal name is an alias. */
16528 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16531 char (*f) () = $ac_func;
16540 return f != $ac_func;
16545 rm -f conftest.$ac_objext conftest$ac_exeext
16546 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16547 (eval $ac_link) 2>&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } &&
16551 { ac_try='test -s conftest$ac_exeext'
16552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16553 (eval $ac_try) 2>&5
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); }; }; then
16557 eval "$as_ac_var=yes"
16559 echo "$as_me: failed program was:" >&5
16560 sed 's/^/| /' conftest.$ac_ext >&5
16562 eval "$as_ac_var=no"
16564 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16566 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16567 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16568 if test `eval echo '${'$as_ac_var'}'` = yes; then
16569 cat >>confdefs.h <<_ACEOF
16570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16572 cat >>confdefs.h <<\_ACEOF
16573 #define HAVE_GETHOSTBYNAME2 1
16580 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
16581 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
16582 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
16583 echo $ECHO_N "(cached) $ECHO_C" >&6
16585 cat >conftest.$ac_ext <<_ACEOF
16586 #line $LINENO "configure"
16589 cat confdefs.h >>conftest.$ac_ext
16590 cat >>conftest.$ac_ext <<_ACEOF
16591 /* end confdefs.h. */
16592 #include <sys/socket.h>
16596 struct sockaddr s; s.sa_len;
16601 rm -f conftest.$ac_objext
16602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16603 (eval $ac_compile) 2>&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); } &&
16607 { ac_try='test -s conftest.$ac_objext'
16608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16609 (eval $ac_try) 2>&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); }; }; then
16613 ac_cv_struct_sockaddr_sa_len=yes
16615 echo "$as_me: failed program was:" >&5
16616 sed 's/^/| /' conftest.$ac_ext >&5
16618 ac_cv_struct_sockaddr_sa_len=no
16620 rm -f conftest.$ac_objext conftest.$ac_ext
16622 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
16623 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
16625 if test $ac_cv_struct_sockaddr_sa_len = yes; then
16627 cat >>confdefs.h <<\_ACEOF
16628 #define HAVE_SA_LEN 1
16634 echo "$as_me:$LINENO: checking for IPv6 support" >&5
16635 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
16636 if test "${ac_cv_ipv6_support+set}" = set; then
16637 echo $ECHO_N "(cached) $ECHO_C" >&6
16639 cat >conftest.$ac_ext <<_ACEOF
16640 #line $LINENO "configure"
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h. */
16646 #include <sys/types.h>
16647 #include <sys/socket.h>
16648 #include <netinet/in.h>
16652 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
16658 rm -f conftest.$ac_objext conftest$ac_exeext
16659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16660 (eval $ac_link) 2>&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); } &&
16664 { ac_try='test -s conftest$ac_exeext'
16665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16666 (eval $ac_try) 2>&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; }; then
16670 ac_cv_ipv6_support=yes
16672 echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16675 ac_cv_ipv6_support=no
16677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16679 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
16680 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
16682 if test "$ac_cv_ipv6_support" = yes; then
16684 cat >>confdefs.h <<\_ACEOF
16685 #define HAVE_IPV6 1
16693 for ac_func in strftime
16695 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16696 echo "$as_me:$LINENO: checking for $ac_func" >&5
16697 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16698 if eval "test \"\${$as_ac_var+set}\" = set"; then
16699 echo $ECHO_N "(cached) $ECHO_C" >&6
16701 cat >conftest.$ac_ext <<_ACEOF
16702 #line $LINENO "configure"
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h. */
16708 /* System header to define __stub macros and hopefully few prototypes,
16709 which can conflict with char $ac_func (); below.
16710 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16711 <limits.h> exists even on freestanding compilers. */
16713 # include <limits.h>
16715 # include <assert.h>
16717 /* Override any gcc2 internal prototype to avoid an error. */
16722 /* We use char because int might match the return type of a gcc2
16723 builtin and then its argument prototype would still apply. */
16725 /* The GNU C library defines this for functions which it implements
16726 to always fail with ENOSYS. Some functions are actually named
16727 something starting with __ and the normal name is an alias. */
16728 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16731 char (*f) () = $ac_func;
16740 return f != $ac_func;
16745 rm -f conftest.$ac_objext conftest$ac_exeext
16746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16747 (eval $ac_link) 2>&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } &&
16751 { ac_try='test -s conftest$ac_exeext'
16752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16753 (eval $ac_try) 2>&5
16755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16756 (exit $ac_status); }; }; then
16757 eval "$as_ac_var=yes"
16759 echo "$as_me: failed program was:" >&5
16760 sed 's/^/| /' conftest.$ac_ext >&5
16762 eval "$as_ac_var=no"
16764 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16766 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16767 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16768 if test `eval echo '${'$as_ac_var'}'` = yes; then
16769 cat >>confdefs.h <<_ACEOF
16770 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16774 # strftime is in -lintl on SCO UNIX.
16775 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16776 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16777 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16778 echo $ECHO_N "(cached) $ECHO_C" >&6
16780 ac_check_lib_save_LIBS=$LIBS
16781 LIBS="-lintl $LIBS"
16782 cat >conftest.$ac_ext <<_ACEOF
16783 #line $LINENO "configure"
16786 cat confdefs.h >>conftest.$ac_ext
16787 cat >>conftest.$ac_ext <<_ACEOF
16788 /* end confdefs.h. */
16790 /* Override any gcc2 internal prototype to avoid an error. */
16794 /* We use char because int might match the return type of a gcc2
16795 builtin and then its argument prototype would still apply. */
16805 rm -f conftest.$ac_objext conftest$ac_exeext
16806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16807 (eval $ac_link) 2>&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } &&
16811 { ac_try='test -s conftest$ac_exeext'
16812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16813 (eval $ac_try) 2>&5
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); }; }; then
16817 ac_cv_lib_intl_strftime=yes
16819 echo "$as_me: failed program was:" >&5
16820 sed 's/^/| /' conftest.$ac_ext >&5
16822 ac_cv_lib_intl_strftime=no
16824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16825 LIBS=$ac_check_lib_save_LIBS
16827 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16828 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16829 if test $ac_cv_lib_intl_strftime = yes; then
16830 cat >>confdefs.h <<\_ACEOF
16831 #define HAVE_STRFTIME 1
16834 LIBS="-lintl $LIBS"
16841 for ac_func in vprintf
16843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16844 echo "$as_me:$LINENO: checking for $ac_func" >&5
16845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16846 if eval "test \"\${$as_ac_var+set}\" = set"; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16849 cat >conftest.$ac_ext <<_ACEOF
16850 #line $LINENO "configure"
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h. */
16856 /* System header to define __stub macros and hopefully few prototypes,
16857 which can conflict with char $ac_func (); below.
16858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16859 <limits.h> exists even on freestanding compilers. */
16861 # include <limits.h>
16863 # include <assert.h>
16865 /* Override any gcc2 internal prototype to avoid an error. */
16870 /* We use char because int might match the return type of a gcc2
16871 builtin and then its argument prototype would still apply. */
16873 /* The GNU C library defines this for functions which it implements
16874 to always fail with ENOSYS. Some functions are actually named
16875 something starting with __ and the normal name is an alias. */
16876 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16879 char (*f) () = $ac_func;
16888 return f != $ac_func;
16893 rm -f conftest.$ac_objext conftest$ac_exeext
16894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16895 (eval $ac_link) 2>&5
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); } &&
16899 { ac_try='test -s conftest$ac_exeext'
16900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16901 (eval $ac_try) 2>&5
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); }; }; then
16905 eval "$as_ac_var=yes"
16907 echo "$as_me: failed program was:" >&5
16908 sed 's/^/| /' conftest.$ac_ext >&5
16910 eval "$as_ac_var=no"
16912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16915 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16916 if test `eval echo '${'$as_ac_var'}'` = yes; then
16917 cat >>confdefs.h <<_ACEOF
16918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16921 echo "$as_me:$LINENO: checking for _doprnt" >&5
16922 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16923 if test "${ac_cv_func__doprnt+set}" = set; then
16924 echo $ECHO_N "(cached) $ECHO_C" >&6
16926 cat >conftest.$ac_ext <<_ACEOF
16927 #line $LINENO "configure"
16930 cat confdefs.h >>conftest.$ac_ext
16931 cat >>conftest.$ac_ext <<_ACEOF
16932 /* end confdefs.h. */
16933 /* System header to define __stub macros and hopefully few prototypes,
16934 which can conflict with char _doprnt (); below.
16935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16936 <limits.h> exists even on freestanding compilers. */
16938 # include <limits.h>
16940 # include <assert.h>
16942 /* Override any gcc2 internal prototype to avoid an error. */
16947 /* We use char because int might match the return type of a gcc2
16948 builtin and then its argument prototype would still apply. */
16950 /* The GNU C library defines this for functions which it implements
16951 to always fail with ENOSYS. Some functions are actually named
16952 something starting with __ and the normal name is an alias. */
16953 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16956 char (*f) () = _doprnt;
16965 return f != _doprnt;
16970 rm -f conftest.$ac_objext conftest$ac_exeext
16971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16972 (eval $ac_link) 2>&5
16974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975 (exit $ac_status); } &&
16976 { ac_try='test -s conftest$ac_exeext'
16977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16978 (eval $ac_try) 2>&5
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); }; }; then
16982 ac_cv_func__doprnt=yes
16984 echo "$as_me: failed program was:" >&5
16985 sed 's/^/| /' conftest.$ac_ext >&5
16987 ac_cv_func__doprnt=no
16989 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16991 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16992 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16993 if test $ac_cv_func__doprnt = yes; then
16995 cat >>confdefs.h <<\_ACEOF
16996 #define HAVE_DOPRNT 1
17005 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17006 # for constant arguments. Useless!
17007 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17008 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17009 if test "${ac_cv_working_alloca_h+set}" = set; then
17010 echo $ECHO_N "(cached) $ECHO_C" >&6
17012 cat >conftest.$ac_ext <<_ACEOF
17013 #line $LINENO "configure"
17016 cat confdefs.h >>conftest.$ac_ext
17017 cat >>conftest.$ac_ext <<_ACEOF
17018 /* end confdefs.h. */
17019 #include <alloca.h>
17023 char *p = (char *) alloca (2 * sizeof (int));
17028 rm -f conftest.$ac_objext conftest$ac_exeext
17029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17030 (eval $ac_link) 2>&5
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); } &&
17034 { ac_try='test -s conftest$ac_exeext'
17035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 ac_cv_working_alloca_h=yes
17042 echo "$as_me: failed program was:" >&5
17043 sed 's/^/| /' conftest.$ac_ext >&5
17045 ac_cv_working_alloca_h=no
17047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17049 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17050 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17051 if test $ac_cv_working_alloca_h = yes; then
17053 cat >>confdefs.h <<\_ACEOF
17054 #define HAVE_ALLOCA_H 1
17059 echo "$as_me:$LINENO: checking for alloca" >&5
17060 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17061 if test "${ac_cv_func_alloca_works+set}" = set; then
17062 echo $ECHO_N "(cached) $ECHO_C" >&6
17064 cat >conftest.$ac_ext <<_ACEOF
17065 #line $LINENO "configure"
17068 cat confdefs.h >>conftest.$ac_ext
17069 cat >>conftest.$ac_ext <<_ACEOF
17070 /* end confdefs.h. */
17072 # define alloca __builtin_alloca
17075 # include <malloc.h>
17076 # define alloca _alloca
17079 # include <alloca.h>
17084 # ifndef alloca /* predefined by HP cc +Olibcalls */
17095 char *p = (char *) alloca (1);
17100 rm -f conftest.$ac_objext conftest$ac_exeext
17101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17102 (eval $ac_link) 2>&5
17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105 (exit $ac_status); } &&
17106 { ac_try='test -s conftest$ac_exeext'
17107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17108 (eval $ac_try) 2>&5
17110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17111 (exit $ac_status); }; }; then
17112 ac_cv_func_alloca_works=yes
17114 echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17117 ac_cv_func_alloca_works=no
17119 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17121 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17122 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17124 if test $ac_cv_func_alloca_works = yes; then
17126 cat >>confdefs.h <<\_ACEOF
17127 #define HAVE_ALLOCA 1
17131 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17132 # that cause trouble. Some versions do not even contain alloca or
17133 # contain a buggy version. If you still want to use their alloca,
17134 # use ar to extract alloca.o from them instead of compiling alloca.c.
17136 ALLOCA=alloca.$ac_objext
17138 cat >>confdefs.h <<\_ACEOF
17143 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17144 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17145 if test "${ac_cv_os_cray+set}" = set; then
17146 echo $ECHO_N "(cached) $ECHO_C" >&6
17148 cat >conftest.$ac_ext <<_ACEOF
17149 #line $LINENO "configure"
17152 cat confdefs.h >>conftest.$ac_ext
17153 cat >>conftest.$ac_ext <<_ACEOF
17154 /* end confdefs.h. */
17155 #if defined(CRAY) && ! defined(CRAY2)
17162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17163 $EGREP "webecray" >/dev/null 2>&1; then
17171 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17172 echo "${ECHO_T}$ac_cv_os_cray" >&6
17173 if test $ac_cv_os_cray = yes; then
17174 for ac_func in _getb67 GETB67 getb67; do
17175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17176 echo "$as_me:$LINENO: checking for $ac_func" >&5
17177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17178 if eval "test \"\${$as_ac_var+set}\" = set"; then
17179 echo $ECHO_N "(cached) $ECHO_C" >&6
17181 cat >conftest.$ac_ext <<_ACEOF
17182 #line $LINENO "configure"
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h. */
17188 /* System header to define __stub macros and hopefully few prototypes,
17189 which can conflict with char $ac_func (); below.
17190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17191 <limits.h> exists even on freestanding compilers. */
17193 # include <limits.h>
17195 # include <assert.h>
17197 /* Override any gcc2 internal prototype to avoid an error. */
17202 /* We use char because int might match the return type of a gcc2
17203 builtin and then its argument prototype would still apply. */
17205 /* The GNU C library defines this for functions which it implements
17206 to always fail with ENOSYS. Some functions are actually named
17207 something starting with __ and the normal name is an alias. */
17208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17211 char (*f) () = $ac_func;
17220 return f != $ac_func;
17225 rm -f conftest.$ac_objext conftest$ac_exeext
17226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17227 (eval $ac_link) 2>&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } &&
17231 { ac_try='test -s conftest$ac_exeext'
17232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17233 (eval $ac_try) 2>&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; }; then
17237 eval "$as_ac_var=yes"
17239 echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17242 eval "$as_ac_var=no"
17244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17246 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17247 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17248 if test `eval echo '${'$as_ac_var'}'` = yes; then
17250 cat >>confdefs.h <<_ACEOF
17251 #define CRAY_STACKSEG_END $ac_func
17260 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17261 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17262 if test "${ac_cv_c_stack_direction+set}" = set; then
17263 echo $ECHO_N "(cached) $ECHO_C" >&6
17265 if test "$cross_compiling" = yes; then
17266 ac_cv_c_stack_direction=0
17268 cat >conftest.$ac_ext <<_ACEOF
17269 #line $LINENO "configure"
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17276 find_stack_direction ()
17278 static char *addr = 0;
17283 return find_stack_direction ();
17286 return (&dummy > addr) ? 1 : -1;
17292 exit (find_stack_direction () < 0);
17295 rm -f conftest$ac_exeext
17296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17297 (eval $ac_link) 2>&5
17299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17300 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302 (eval $ac_try) 2>&5
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); }; }; then
17306 ac_cv_c_stack_direction=1
17308 echo "$as_me: program exited with status $ac_status" >&5
17309 echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17312 ( exit $ac_status )
17313 ac_cv_c_stack_direction=-1
17315 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17318 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17319 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17321 cat >>confdefs.h <<_ACEOF
17322 #define STACK_DIRECTION $ac_cv_c_stack_direction
17328 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17329 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17330 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17331 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17332 echo $ECHO_N "(cached) $ECHO_C" >&6
17334 ac_check_lib_save_LIBS=$LIBS
17336 cat >conftest.$ac_ext <<_ACEOF
17337 #line $LINENO "configure"
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h. */
17344 /* Override any gcc2 internal prototype to avoid an error. */
17348 /* We use char because int might match the return type of a gcc2
17349 builtin and then its argument prototype would still apply. */
17359 rm -f conftest.$ac_objext conftest$ac_exeext
17360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17361 (eval $ac_link) 2>&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); } &&
17365 { ac_try='test -s conftest$ac_exeext'
17366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17367 (eval $ac_try) 2>&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; }; then
17371 ac_cv_lib_sun_getmntent=yes
17373 echo "$as_me: failed program was:" >&5
17374 sed 's/^/| /' conftest.$ac_ext >&5
17376 ac_cv_lib_sun_getmntent=no
17378 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17379 LIBS=$ac_check_lib_save_LIBS
17381 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17382 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17383 if test $ac_cv_lib_sun_getmntent = yes; then
17386 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17387 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17388 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17389 echo $ECHO_N "(cached) $ECHO_C" >&6
17391 ac_check_lib_save_LIBS=$LIBS
17393 cat >conftest.$ac_ext <<_ACEOF
17394 #line $LINENO "configure"
17397 cat confdefs.h >>conftest.$ac_ext
17398 cat >>conftest.$ac_ext <<_ACEOF
17399 /* end confdefs.h. */
17401 /* Override any gcc2 internal prototype to avoid an error. */
17405 /* We use char because int might match the return type of a gcc2
17406 builtin and then its argument prototype would still apply. */
17416 rm -f conftest.$ac_objext conftest$ac_exeext
17417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17418 (eval $ac_link) 2>&5
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); } &&
17422 { ac_try='test -s conftest$ac_exeext'
17423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17424 (eval $ac_try) 2>&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); }; }; then
17428 ac_cv_lib_seq_getmntent=yes
17430 echo "$as_me: failed program was:" >&5
17431 sed 's/^/| /' conftest.$ac_ext >&5
17433 ac_cv_lib_seq_getmntent=no
17435 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17436 LIBS=$ac_check_lib_save_LIBS
17438 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17439 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17440 if test $ac_cv_lib_seq_getmntent = yes; then
17443 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17444 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17445 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17446 echo $ECHO_N "(cached) $ECHO_C" >&6
17448 ac_check_lib_save_LIBS=$LIBS
17450 cat >conftest.$ac_ext <<_ACEOF
17451 #line $LINENO "configure"
17454 cat confdefs.h >>conftest.$ac_ext
17455 cat >>conftest.$ac_ext <<_ACEOF
17456 /* end confdefs.h. */
17458 /* Override any gcc2 internal prototype to avoid an error. */
17462 /* We use char because int might match the return type of a gcc2
17463 builtin and then its argument prototype would still apply. */
17473 rm -f conftest.$ac_objext conftest$ac_exeext
17474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17475 (eval $ac_link) 2>&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); } &&
17479 { ac_try='test -s conftest$ac_exeext'
17480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17481 (eval $ac_try) 2>&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); }; }; then
17485 ac_cv_lib_gen_getmntent=yes
17487 echo "$as_me: failed program was:" >&5
17488 sed 's/^/| /' conftest.$ac_ext >&5
17490 ac_cv_lib_gen_getmntent=no
17492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17493 LIBS=$ac_check_lib_save_LIBS
17495 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17496 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17497 if test $ac_cv_lib_gen_getmntent = yes; then
17506 for ac_func in getmntent
17508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17509 echo "$as_me:$LINENO: checking for $ac_func" >&5
17510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17511 if eval "test \"\${$as_ac_var+set}\" = set"; then
17512 echo $ECHO_N "(cached) $ECHO_C" >&6
17514 cat >conftest.$ac_ext <<_ACEOF
17515 #line $LINENO "configure"
17518 cat confdefs.h >>conftest.$ac_ext
17519 cat >>conftest.$ac_ext <<_ACEOF
17520 /* end confdefs.h. */
17521 /* System header to define __stub macros and hopefully few prototypes,
17522 which can conflict with char $ac_func (); below.
17523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17524 <limits.h> exists even on freestanding compilers. */
17526 # include <limits.h>
17528 # include <assert.h>
17530 /* Override any gcc2 internal prototype to avoid an error. */
17535 /* We use char because int might match the return type of a gcc2
17536 builtin and then its argument prototype would still apply. */
17538 /* The GNU C library defines this for functions which it implements
17539 to always fail with ENOSYS. Some functions are actually named
17540 something starting with __ and the normal name is an alias. */
17541 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17544 char (*f) () = $ac_func;
17553 return f != $ac_func;
17558 rm -f conftest.$ac_objext conftest$ac_exeext
17559 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17560 (eval $ac_link) 2>&5
17562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563 (exit $ac_status); } &&
17564 { ac_try='test -s conftest$ac_exeext'
17565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566 (eval $ac_try) 2>&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; }; then
17570 eval "$as_ac_var=yes"
17572 echo "$as_me: failed program was:" >&5
17573 sed 's/^/| /' conftest.$ac_ext >&5
17575 eval "$as_ac_var=no"
17577 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17579 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17580 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17581 if test `eval echo '${'$as_ac_var'}'` = yes; then
17582 cat >>confdefs.h <<_ACEOF
17583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17590 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17591 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17592 if test "${ac_cv_func_closedir_void+set}" = set; then
17593 echo $ECHO_N "(cached) $ECHO_C" >&6
17595 if test "$cross_compiling" = yes; then
17596 ac_cv_func_closedir_void=yes
17598 cat >conftest.$ac_ext <<_ACEOF
17599 #line $LINENO "configure"
17602 cat confdefs.h >>conftest.$ac_ext
17603 cat >>conftest.$ac_ext <<_ACEOF
17604 /* end confdefs.h. */
17605 $ac_includes_default
17606 #include <$ac_header_dirent>
17607 #ifndef __cplusplus
17614 exit (closedir (opendir (".")) != 0);
17619 rm -f conftest$ac_exeext
17620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17621 (eval $ac_link) 2>&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17626 (eval $ac_try) 2>&5
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); }; }; then
17630 ac_cv_func_closedir_void=no
17632 echo "$as_me: program exited with status $ac_status" >&5
17633 echo "$as_me: failed program was:" >&5
17634 sed 's/^/| /' conftest.$ac_ext >&5
17636 ( exit $ac_status )
17637 ac_cv_func_closedir_void=yes
17639 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17642 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17643 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17644 if test $ac_cv_func_closedir_void = yes; then
17646 cat >>confdefs.h <<\_ACEOF
17647 #define CLOSEDIR_VOID 1
17652 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17653 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17654 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17655 echo $ECHO_N "(cached) $ECHO_C" >&6
17657 if test "$cross_compiling" = yes; then
17658 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17659 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17660 { (exit 1); exit 1; }; }
17662 cat >conftest.$ac_ext <<_ACEOF
17663 #line $LINENO "configure"
17666 cat confdefs.h >>conftest.$ac_ext
17667 cat >>conftest.$ac_ext <<_ACEOF
17668 /* end confdefs.h. */
17670 # include <unistd.h>
17676 /* If this system has a BSD-style setpgrp which takes arguments,
17677 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17678 exit successfully. */
17679 exit (setpgrp (1,1) == -1 ? 0 : 1);
17684 rm -f conftest$ac_exeext
17685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17686 (eval $ac_link) 2>&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; }; then
17695 ac_cv_func_setpgrp_void=no
17697 echo "$as_me: program exited with status $ac_status" >&5
17698 echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.$ac_ext >&5
17701 ( exit $ac_status )
17702 ac_cv_func_setpgrp_void=yes
17704 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17707 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17708 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17709 if test $ac_cv_func_setpgrp_void = yes; then
17711 cat >>confdefs.h <<\_ACEOF
17712 #define SETPGRP_VOID 1
17716 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17717 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17718 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17719 echo $ECHO_N "(cached) $ECHO_C" >&6
17721 # Some versions of Solaris, SCO, and the GNU C Library
17722 # have a broken or incompatible fnmatch.
17723 # So we run a test program. If we are cross-compiling, take no chance.
17724 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17725 if test "$cross_compiling" = yes; then
17726 ac_cv_func_fnmatch_works=cross
17728 cat >conftest.$ac_ext <<_ACEOF
17729 #line $LINENO "configure"
17732 cat confdefs.h >>conftest.$ac_ext
17733 cat >>conftest.$ac_ext <<_ACEOF
17734 /* end confdefs.h. */
17735 #include <fnmatch.h>
17736 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17737 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17743 (!(y ("a*", "abc", 0)
17744 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17745 && y ("a\\\\bc", "abc", 0)
17746 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17747 && y ("*x", ".x", 0)
17748 && n ("*x", ".x", FNM_PERIOD)
17754 rm -f conftest$ac_exeext
17755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17756 (eval $ac_link) 2>&5
17758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17761 (eval $ac_try) 2>&5
17763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17764 (exit $ac_status); }; }; then
17765 ac_cv_func_fnmatch_works=yes
17767 echo "$as_me: program exited with status $ac_status" >&5
17768 echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17771 ( exit $ac_status )
17772 ac_cv_func_fnmatch_works=no
17774 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17777 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17778 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17779 if test $ac_cv_func_fnmatch_works = yes; then
17781 cat >>confdefs.h <<\_ACEOF
17782 #define HAVE_FNMATCH 1
17791 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17792 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17793 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17794 echo $ECHO_N "(cached) $ECHO_C" >&6
17796 ac_check_lib_save_LIBS=$LIBS
17797 LIBS="-lxpg4 $LIBS"
17798 cat >conftest.$ac_ext <<_ACEOF
17799 #line $LINENO "configure"
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17806 /* Override any gcc2 internal prototype to avoid an error. */
17810 /* We use char because int might match the return type of a gcc2
17811 builtin and then its argument prototype would still apply. */
17821 rm -f conftest.$ac_objext conftest$ac_exeext
17822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17823 (eval $ac_link) 2>&5
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); } &&
17827 { ac_try='test -s conftest$ac_exeext'
17828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829 (eval $ac_try) 2>&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; }; then
17833 ac_cv_lib_xpg4_setlocale=yes
17835 echo "$as_me: failed program was:" >&5
17836 sed 's/^/| /' conftest.$ac_ext >&5
17838 ac_cv_lib_xpg4_setlocale=no
17840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17841 LIBS=$ac_check_lib_save_LIBS
17843 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17844 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17845 if test $ac_cv_lib_xpg4_setlocale = yes; then
17846 LIBS="$LIBS -lxpg4"
17852 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17853 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17854 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17855 echo $ECHO_N "(cached) $ECHO_C" >&6
17857 ac_check_lib_save_LIBS=$LIBS
17859 cat >conftest.$ac_ext <<_ACEOF
17860 #line $LINENO "configure"
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h. */
17867 /* Override any gcc2 internal prototype to avoid an error. */
17871 /* We use char because int might match the return type of a gcc2
17872 builtin and then its argument prototype would still apply. */
17882 rm -f conftest.$ac_objext conftest$ac_exeext
17883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17884 (eval $ac_link) 2>&5
17886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17887 (exit $ac_status); } &&
17888 { ac_try='test -s conftest$ac_exeext'
17889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17890 (eval $ac_try) 2>&5
17892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17893 (exit $ac_status); }; }; then
17894 ac_cv_lib_sun_getpwnam=yes
17896 echo "$as_me: failed program was:" >&5
17897 sed 's/^/| /' conftest.$ac_ext >&5
17899 ac_cv_lib_sun_getpwnam=no
17901 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17902 LIBS=$ac_check_lib_save_LIBS
17904 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17905 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17906 if test $ac_cv_lib_sun_getpwnam = yes; then
17907 cat >>confdefs.h <<_ACEOF
17908 #define HAVE_LIBSUN 1
17917 for ac_header in zlib.h
17919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17921 echo "$as_me:$LINENO: checking for $ac_header" >&5
17922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17924 echo $ECHO_N "(cached) $ECHO_C" >&6
17926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17929 # Is the header compilable?
17930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17932 cat >conftest.$ac_ext <<_ACEOF
17933 #line $LINENO "configure"
17936 cat confdefs.h >>conftest.$ac_ext
17937 cat >>conftest.$ac_ext <<_ACEOF
17938 /* end confdefs.h. */
17939 $ac_includes_default
17940 #include <$ac_header>
17942 rm -f conftest.$ac_objext
17943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17944 (eval $ac_compile) 2>&5
17946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17947 (exit $ac_status); } &&
17948 { ac_try='test -s conftest.$ac_objext'
17949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17950 (eval $ac_try) 2>&5
17952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17953 (exit $ac_status); }; }; then
17954 ac_header_compiler=yes
17956 echo "$as_me: failed program was:" >&5
17957 sed 's/^/| /' conftest.$ac_ext >&5
17959 ac_header_compiler=no
17961 rm -f conftest.$ac_objext conftest.$ac_ext
17962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17963 echo "${ECHO_T}$ac_header_compiler" >&6
17965 # Is the header present?
17966 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17967 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17968 cat >conftest.$ac_ext <<_ACEOF
17969 #line $LINENO "configure"
17972 cat confdefs.h >>conftest.$ac_ext
17973 cat >>conftest.$ac_ext <<_ACEOF
17974 /* end confdefs.h. */
17975 #include <$ac_header>
17977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17980 grep -v '^ *+' conftest.er1 >conftest.err
17982 cat conftest.err >&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); } >/dev/null; then
17985 if test -s conftest.err; then
17986 ac_cpp_err=$ac_c_preproc_warn_flag
17993 if test -z "$ac_cpp_err"; then
17994 ac_header_preproc=yes
17996 echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17999 ac_header_preproc=no
18001 rm -f conftest.err conftest.$ac_ext
18002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18003 echo "${ECHO_T}$ac_header_preproc" >&6
18005 # So? What about this header?
18006 case $ac_header_compiler:$ac_header_preproc in
18008 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18009 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18010 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18011 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18014 ## ------------------------------------ ##
18015 ## Report this to bug-autoconf@gnu.org. ##
18016 ## ------------------------------------ ##
18019 sed "s/^/$as_me: WARNING: /" >&2
18022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18030 ## ------------------------------------ ##
18031 ## Report this to bug-autoconf@gnu.org. ##
18032 ## ------------------------------------ ##
18035 sed "s/^/$as_me: WARNING: /" >&2
18038 echo "$as_me:$LINENO: checking for $ac_header" >&5
18039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18041 echo $ECHO_N "(cached) $ECHO_C" >&6
18043 eval "$as_ac_Header=$ac_header_preproc"
18045 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18046 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18050 cat >>confdefs.h <<_ACEOF
18051 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18058 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18059 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18060 if test "${ac_cv_lib_z_deflate+set}" = set; then
18061 echo $ECHO_N "(cached) $ECHO_C" >&6
18063 ac_check_lib_save_LIBS=$LIBS
18065 cat >conftest.$ac_ext <<_ACEOF
18066 #line $LINENO "configure"
18069 cat confdefs.h >>conftest.$ac_ext
18070 cat >>conftest.$ac_ext <<_ACEOF
18071 /* end confdefs.h. */
18073 /* Override any gcc2 internal prototype to avoid an error. */
18077 /* We use char because int might match the return type of a gcc2
18078 builtin and then its argument prototype would still apply. */
18088 rm -f conftest.$ac_objext conftest$ac_exeext
18089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18090 (eval $ac_link) 2>&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); } &&
18094 { ac_try='test -s conftest$ac_exeext'
18095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18096 (eval $ac_try) 2>&5
18098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099 (exit $ac_status); }; }; then
18100 ac_cv_lib_z_deflate=yes
18102 echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18105 ac_cv_lib_z_deflate=no
18107 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18108 LIBS=$ac_check_lib_save_LIBS
18110 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18111 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18112 if test $ac_cv_lib_z_deflate = yes; then
18117 if test x$FDLIBS = x-lz; then
18118 cat >>confdefs.h <<\_ACEOF
18119 #define HAVE_LIBZ 1
18125 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18126 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18127 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18128 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18129 echo $ECHO_N "(cached) $ECHO_C" >&6
18131 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18132 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18134 # Is the header compilable?
18135 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18136 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18137 cat >conftest.$ac_ext <<_ACEOF
18138 #line $LINENO "configure"
18141 cat confdefs.h >>conftest.$ac_ext
18142 cat >>conftest.$ac_ext <<_ACEOF
18143 /* end confdefs.h. */
18144 $ac_includes_default
18145 #include <sys/acl.h>
18147 rm -f conftest.$ac_objext
18148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18149 (eval $ac_compile) 2>&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try='test -s conftest.$ac_objext'
18154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18155 (eval $ac_try) 2>&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); }; }; then
18159 ac_header_compiler=yes
18161 echo "$as_me: failed program was:" >&5
18162 sed 's/^/| /' conftest.$ac_ext >&5
18164 ac_header_compiler=no
18166 rm -f conftest.$ac_objext conftest.$ac_ext
18167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18168 echo "${ECHO_T}$ac_header_compiler" >&6
18170 # Is the header present?
18171 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18172 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18173 cat >conftest.$ac_ext <<_ACEOF
18174 #line $LINENO "configure"
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h. */
18180 #include <sys/acl.h>
18182 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18183 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18185 grep -v '^ *+' conftest.er1 >conftest.err
18187 cat conftest.err >&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); } >/dev/null; then
18190 if test -s conftest.err; then
18191 ac_cpp_err=$ac_c_preproc_warn_flag
18198 if test -z "$ac_cpp_err"; then
18199 ac_header_preproc=yes
18201 echo "$as_me: failed program was:" >&5
18202 sed 's/^/| /' conftest.$ac_ext >&5
18204 ac_header_preproc=no
18206 rm -f conftest.err conftest.$ac_ext
18207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18208 echo "${ECHO_T}$ac_header_preproc" >&6
18210 # So? What about this header?
18211 case $ac_header_compiler:$ac_header_preproc in
18213 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18214 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18215 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18216 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18219 ## ------------------------------------ ##
18220 ## Report this to bug-autoconf@gnu.org. ##
18221 ## ------------------------------------ ##
18224 sed "s/^/$as_me: WARNING: /" >&2
18227 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18228 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18229 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18230 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18231 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18232 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18235 ## ------------------------------------ ##
18236 ## Report this to bug-autoconf@gnu.org. ##
18237 ## ------------------------------------ ##
18240 sed "s/^/$as_me: WARNING: /" >&2
18243 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18244 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18245 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18248 ac_cv_header_sys_acl_h=$ac_header_preproc
18250 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18251 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18256 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18257 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18258 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18259 echo $ECHO_N "(cached) $ECHO_C" >&6
18261 ac_check_lib_save_LIBS=$LIBS
18263 cat >conftest.$ac_ext <<_ACEOF
18264 #line $LINENO "configure"
18267 cat confdefs.h >>conftest.$ac_ext
18268 cat >>conftest.$ac_ext <<_ACEOF
18269 /* end confdefs.h. */
18271 /* Override any gcc2 internal prototype to avoid an error. */
18275 /* We use char because int might match the return type of a gcc2
18276 builtin and then its argument prototype would still apply. */
18277 char acl_get_file ();
18286 rm -f conftest.$ac_objext conftest$ac_exeext
18287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18288 (eval $ac_link) 2>&5
18290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18291 (exit $ac_status); } &&
18292 { ac_try='test -s conftest$ac_exeext'
18293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18294 (eval $ac_try) 2>&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); }; }; then
18298 ac_cv_lib_acl_acl_get_file=yes
18300 echo "$as_me: failed program was:" >&5
18301 sed 's/^/| /' conftest.$ac_ext >&5
18303 ac_cv_lib_acl_acl_get_file=no
18305 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18306 LIBS=$ac_check_lib_save_LIBS
18308 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18309 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18310 if test $ac_cv_lib_acl_acl_get_file = yes; then
18311 FDLIBS="-lacl $FDLIBS"
18315 if test $ac_cv_lib_acl_acl_get_file = yes; then
18316 cat >>confdefs.h <<\_ACEOF
18324 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18325 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18326 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18327 echo $ECHO_N "(cached) $ECHO_C" >&6
18329 ac_check_lib_save_LIBS=$LIBS
18330 LIBS="-lpthread $LIBS"
18331 cat >conftest.$ac_ext <<_ACEOF
18332 #line $LINENO "configure"
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h. */
18339 /* Override any gcc2 internal prototype to avoid an error. */
18343 /* We use char because int might match the return type of a gcc2
18344 builtin and then its argument prototype would still apply. */
18345 char pthread_create ();
18354 rm -f conftest.$ac_objext conftest$ac_exeext
18355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18356 (eval $ac_link) 2>&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); } &&
18360 { ac_try='test -s conftest$ac_exeext'
18361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18362 (eval $ac_try) 2>&5
18364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18365 (exit $ac_status); }; }; then
18366 ac_cv_lib_pthread_pthread_create=yes
18368 echo "$as_me: failed program was:" >&5
18369 sed 's/^/| /' conftest.$ac_ext >&5
18371 ac_cv_lib_pthread_pthread_create=no
18373 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18374 LIBS=$ac_check_lib_save_LIBS
18376 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18377 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18378 if test $ac_cv_lib_pthread_pthread_create = yes; then
18379 PTHREAD_LIB="-lpthread"
18381 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18382 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18383 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18384 echo $ECHO_N "(cached) $ECHO_C" >&6
18386 ac_check_lib_save_LIBS=$LIBS
18387 LIBS="-lpthreads $LIBS"
18388 cat >conftest.$ac_ext <<_ACEOF
18389 #line $LINENO "configure"
18392 cat confdefs.h >>conftest.$ac_ext
18393 cat >>conftest.$ac_ext <<_ACEOF
18394 /* end confdefs.h. */
18396 /* Override any gcc2 internal prototype to avoid an error. */
18400 /* We use char because int might match the return type of a gcc2
18401 builtin and then its argument prototype would still apply. */
18402 char pthread_create ();
18411 rm -f conftest.$ac_objext conftest$ac_exeext
18412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18413 (eval $ac_link) 2>&5
18415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18416 (exit $ac_status); } &&
18417 { ac_try='test -s conftest$ac_exeext'
18418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18419 (eval $ac_try) 2>&5
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); }; }; then
18423 ac_cv_lib_pthreads_pthread_create=yes
18425 echo "$as_me: failed program was:" >&5
18426 sed 's/^/| /' conftest.$ac_ext >&5
18428 ac_cv_lib_pthreads_pthread_create=no
18430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18431 LIBS=$ac_check_lib_save_LIBS
18433 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18434 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18435 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18436 PTHREAD_LIB="-lpthreads"
18438 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18439 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18440 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18441 echo $ECHO_N "(cached) $ECHO_C" >&6
18443 ac_check_lib_save_LIBS=$LIBS
18445 cat >conftest.$ac_ext <<_ACEOF
18446 #line $LINENO "configure"
18449 cat confdefs.h >>conftest.$ac_ext
18450 cat >>conftest.$ac_ext <<_ACEOF
18451 /* end confdefs.h. */
18453 /* Override any gcc2 internal prototype to avoid an error. */
18457 /* We use char because int might match the return type of a gcc2
18458 builtin and then its argument prototype would still apply. */
18459 char pthread_create ();
18468 rm -f conftest.$ac_objext conftest$ac_exeext
18469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18470 (eval $ac_link) 2>&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); } &&
18474 { ac_try='test -s conftest$ac_exeext'
18475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18476 (eval $ac_try) 2>&5
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; }; then
18480 ac_cv_lib_c_r_pthread_create=yes
18482 echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18485 ac_cv_lib_c_r_pthread_create=no
18487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18488 LIBS=$ac_check_lib_save_LIBS
18490 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18491 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18492 if test $ac_cv_lib_c_r_pthread_create = yes; then
18493 PTHREAD_LIB="-lc_r"
18495 echo "$as_me:$LINENO: checking for pthread_create" >&5
18496 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18497 if test "${ac_cv_func_pthread_create+set}" = set; then
18498 echo $ECHO_N "(cached) $ECHO_C" >&6
18500 cat >conftest.$ac_ext <<_ACEOF
18501 #line $LINENO "configure"
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18507 /* System header to define __stub macros and hopefully few prototypes,
18508 which can conflict with char pthread_create (); below.
18509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18510 <limits.h> exists even on freestanding compilers. */
18512 # include <limits.h>
18514 # include <assert.h>
18516 /* Override any gcc2 internal prototype to avoid an error. */
18521 /* We use char because int might match the return type of a gcc2
18522 builtin and then its argument prototype would still apply. */
18523 char pthread_create ();
18524 /* The GNU C library defines this for functions which it implements
18525 to always fail with ENOSYS. Some functions are actually named
18526 something starting with __ and the normal name is an alias. */
18527 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18530 char (*f) () = pthread_create;
18539 return f != pthread_create;
18544 rm -f conftest.$ac_objext conftest$ac_exeext
18545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18546 (eval $ac_link) 2>&5
18548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18549 (exit $ac_status); } &&
18550 { ac_try='test -s conftest$ac_exeext'
18551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18552 (eval $ac_try) 2>&5
18554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18555 (exit $ac_status); }; }; then
18556 ac_cv_func_pthread_create=yes
18558 echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.$ac_ext >&5
18561 ac_cv_func_pthread_create=no
18563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18565 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18566 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18579 cat >>confdefs.h <<\_ACEOF
18585 CFLAGS=${CFLAGS--O}
18586 LDFLAGS=${LDFLAGS--O}
18587 DB_LIBS="${SQL_LFLAGS}"
18589 CPPFLAGS="$CPPFLAGS"
18614 # Finally we set appropriate distribution specific
18615 # variables and defaults
18617 # PFILES are platform specific files
18618 PFILES="platforms/Makefile"
18622 hostname=`uname -n | cut -d '.' -f 1`
18623 case "$DISTNAME" in
18626 PSCMD="ps -e -o pid,comm"
18627 PFILES="${PFILES} \
18628 platforms/aix/Makefile"
18629 TAPEDRIVE="/dev/rmt0.1"
18633 PTHREAD_LIB="-lpthread -lexc"
18634 if test "${CC}" = "gcc" ; then
18641 TAPEDRIVE="/dev/nrmt0"
18644 DISTVER=`uname -a |awk '{print $3}'`
18645 TAPEDRIVE="/dev/nrmt0"
18646 PTHREAD_LIB="-pthread"
18647 CFLAGS="${CFLAGS} -pthread"
18648 PSCMD="ps -x -o pid,command"
18651 PFILES="${PFILES} \
18652 platforms/bsdi/Makefile \
18653 platforms/bsdi/bacula-fd \
18654 platforms/bsdi/bacula-sd \
18655 platforms/bsdi/bacula-dir"
18656 largefile_support="yes"
18659 DISTVER=`uname -a |awk '{print $3}'`
18660 TAPEDRIVE="/dev/nrst0"
18662 WCFLAGS="-mwindows"
18663 WLDFLAGS="-mwindows"
18667 TAPEDRIVE="/dev/nst0"
18668 PSCMD="ps -e -o pid,command"
18670 PFILES="${PFILES} \
18671 platforms/darwin/Makefile"
18674 DISTVER=`cat /etc/debian_version`
18675 TAPEDRIVE="/dev/nrst0"
18676 PSCMD="ps -e -o pid,command"
18679 DISTVER=`uname -a |awk '{print $3}'`
18680 VER=`echo $DISTVER | cut -c 1`
18681 if test x$VER = x4 ; then
18682 PTHREAD_LIB="-pthread"
18683 CFLAGS="${CFLAGS} -pthread"
18687 TAPEDRIVE="/dev/nrsa0"
18688 PSCMD="ps -x -o pid,command"
18689 PFILES="${PFILES} \
18690 platforms/freebsd/Makefile \
18691 platforms/freebsd/bacula-fd \
18692 platforms/freebsd/bacula-sd \
18693 platforms/freebsd/bacula-dir"
18694 largefile_support="yes"
18697 PSCMD="UNIX95=1 ps -e -o pid,comm"
18698 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18700 TAPEDRIVE="/dev/rmt/0hnb"
18704 TAPEDRIVE="/dev/rmt/0cbn"
18705 PSCMD="ps -e -o pid,comm"
18706 PFILES="${PFILES} \
18707 platforms/irix/Makefile \
18708 platforms/irix/bacula-fd \
18709 platforms/irix/bacula-sd \
18710 platforms/irix/bacula-dir"
18713 DISTVER=`uname -a |awk '{print $3}'`
18716 TAPEDRIVE="/dev/nrst0"
18717 PSCMD="ps -a -o pid,command"
18718 PTHREAD_LIB="-pthread"
18719 CFLAGS="${CFLAGS} -pthread"
18722 DISTVER=`uname -a |awk '{print $3}'`
18725 TAPEDRIVE="/dev/nrst0"
18726 PSCMD="ps -a -o pid,command"
18727 PTHREAD_LIB="-pthread"
18728 CFLAGS="${CFLAGS} -pthread"
18729 PFILES="${PFILES} \
18730 platforms/openbsd/Makefile \
18731 platforms/openbsd/bacula-fd \
18732 platforms/openbsd/bacula-sd \
18733 platforms/openbsd/bacula-dir"
18736 if test -f /etc/whitebox-release ; then
18737 f=/etc/whitebox-release
18739 f=/etc/redhat-release
18741 if test `cat $f | grep release |\
18742 cut -f 3 -d ' '`x = "Enterprise"x ; then
18743 DISTVER="Enterprise "`cat $f | grep release |\
18746 DISTVER=`cat /etc/redhat-release | grep release |\
18749 TAPEDRIVE="/dev/nst0"
18750 PSCMD="ps -e -o pid,command"
18751 PFILES="${PFILES} \
18752 platforms/redhat/Makefile \
18753 platforms/redhat/bacula-fd \
18754 platforms/redhat/bacula-sd \
18755 platforms/redhat/bacula-dir \
18756 platforms/redhat/bacula.spec \
18758 hostname=`hostname -s`
18761 DISTVER=`cat /etc/mandrake-release | grep release |\
18763 TAPEDRIVE="/dev/nst0"
18764 PSCMD="ps -e -o pid,command"
18765 PFILES="${PFILES} \
18766 platforms/mandrake/Makefile \
18767 platforms/mandrake/bacula-fd \
18768 platforms/mandrake/bacula-sd \
18769 platforms/mandrake/bacula-dir \
18770 platforms/mandrake/bacula.spec \
18774 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18775 TAPEDRIVE="/dev/nst0"
18776 PSCMD="ps -e -o pid,command"
18777 PFILES="${PFILES} \
18778 platforms/gentoo/Makefile \
18779 platforms/gentoo/bacula-fd \
18780 platforms/gentoo/bacula-sd \
18781 platforms/gentoo/bacula-dir"
18784 DISTVER=`cat /etc/slackware-version`
18785 TAPEDRIVE="/dev/nst0"
18786 PSCMD="ps -e -o pid,command"
18787 PFILES="${PFILES} \
18788 platforms/slackware/Makefile \
18789 platforms/slackware/rc.bacula-fd \
18790 platforms/slackware/rc.bacula-sd \
18791 platforms/slackware/rc.bacula-dir\
18792 platforms/slackware/functions.bacula"
18796 TAPEDRIVE="/dev/rmt/0cbn"
18797 PSCMD="ps -e -o pid,comm"
18798 PFILES="${PFILES} \
18799 platforms/solaris/Makefile \
18800 platforms/solaris/bacula-fd \
18801 platforms/solaris/bacula-sd \
18802 platforms/solaris/bacula-dir"
18803 if test x$DISTVER = x5.6 ; then
18804 cat >>confdefs.h <<\_ACEOF
18805 #define HAVE_OLD_SOCKOPT 1
18811 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18813 TAPEDRIVE="/dev/nst0"
18814 PSCMD="ps -e -o pid,command"
18815 PFILES="${PFILES} \
18816 platforms/suse/Makefile \
18817 platforms/suse/bacula-fd \
18818 platforms/suse/bacula-sd \
18819 platforms/suse/bacula-dir \
18820 platforms/suse/bacula \
18821 platforms/suse/bacula.spec"
18826 TAPEDRIVE="/dev/nst0"
18827 PSCMD="ps -e -o pid,command"
18828 PFILES="${PFILES} \
18829 platforms/suse/Makefile \
18830 platforms/suse/bacula-fd \
18831 platforms/suse/bacula-sd \
18832 platforms/suse/bacula-dir"
18836 TAPEDRIVE="/dev/nst0"
18839 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18845 LIBS="$PTHREAD_LIB $LIBS"
18847 cat >>confdefs.h <<_ACEOF
18851 cat >>confdefs.h <<_ACEOF
18862 MCOMMON=./autoconf/Make.common
18865 if test "x${subsysdir}" = "x${sbindir}" ; then
18868 echo "You have set both --sbindir and --with-subsys-dir"
18869 echo " equal to: ${subsysdir} "
18870 echo "This is not permitted. Please reconfigure."
18872 echo "Aborting configuration ..."
18878 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula 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/gnome-console.console_apps scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-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/filed/win32/Makefile 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/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/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf $PFILES"
18879 ac_config_commands="$ac_config_commands default"
18880 cat >confcache <<\_ACEOF
18881 # This file is a shell script that caches the results of configure
18882 # tests run on this system so they can be shared between configure
18883 # scripts and configure runs, see configure's option --config-cache.
18884 # It is not useful on other systems. If it contains results you don't
18885 # want to keep, you may remove or edit it.
18887 # config.status only pays attention to the cache file if you give it
18888 # the --recheck option to rerun configure.
18890 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18891 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18892 # following values.
18896 # The following way of writing the cache mishandles newlines in values,
18897 # but we know of no workaround that is simple, portable, and efficient.
18898 # So, don't put newlines in cache variables' values.
18899 # Ultrix sh set writes to stderr and can't be redirected directly,
18900 # and sets the high bit in the cache file unless we assign to the vars.
18903 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18905 # `set' does not quote correctly, so add quotes (double-quote
18906 # substitution turns \\\\ into \\, and sed turns \\ into \).
18909 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18912 # `set' quotes correctly as required by POSIX, so do not add quotes.
18914 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18921 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18923 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18925 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18926 if test -w $cache_file; then
18927 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18928 cat confcache >$cache_file
18930 echo "not updating unwritable cache $cache_file"
18935 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18936 # Let make expand exec_prefix.
18937 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18939 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18940 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18941 # trailing colons and then remove the whole line if VPATH becomes empty
18942 # (actually we leave an empty line to preserve line numbers).
18943 if test "x$srcdir" = x.; then
18944 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18945 s/:*\$(srcdir):*/:/;
18946 s/:*\${srcdir}:*/:/;
18948 s/^\([^=]*=[ ]*\):*/\1/;
18954 DEFS=-DHAVE_CONFIG_H
18958 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18959 # 1. Remove the extension, and $U if already installed.
18960 ac_i=`echo "$ac_i" |
18961 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18963 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18964 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18966 LIBOBJS=$ac_libobjs
18968 LTLIBOBJS=$ac_ltlibobjs
18972 : ${CONFIG_STATUS=./config.status}
18973 ac_clean_files_save=$ac_clean_files
18974 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18975 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18976 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18977 cat >$CONFIG_STATUS <<_ACEOF
18979 # Generated by $as_me.
18980 # Run this file to recreate the current configuration.
18981 # Compiler output produced by configure, useful for debugging
18982 # configure, is in config.log if it exists.
18985 ac_cs_recheck=false
18987 SHELL=\${CONFIG_SHELL-$SHELL}
18990 cat >>$CONFIG_STATUS <<\_ACEOF
18991 ## --------------------- ##
18992 ## M4sh Initialization. ##
18993 ## --------------------- ##
18995 # Be Bourne compatible
18996 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18999 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19000 # is contrary to our usage. Disable this feature.
19001 alias -g '${1+"$@"}'='"$@"'
19002 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19006 # Support unset when possible.
19007 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19014 # Work around bugs in pre-3.0 UWIN ksh.
19015 $as_unset ENV MAIL MAILPATH
19022 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19023 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19024 LC_TELEPHONE LC_TIME
19026 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19027 eval $as_var=C; export $as_var
19033 # Required to use basename.
19034 if expr a : '\(a\)' >/dev/null 2>&1; then
19040 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19041 as_basename=basename
19047 # Name of the executable.
19048 as_me=`$as_basename "$0" ||
19049 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19050 X"$0" : 'X\(//\)$' \| \
19051 X"$0" : 'X\(/\)$' \| \
19052 . : '\(.\)' 2>/dev/null ||
19054 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19055 /^X\/\(\/\/\)$/{ s//\1/; q; }
19056 /^X\/\(\/\).*/{ s//\1/; q; }
19060 # PATH needs CR, and LINENO needs CR and PATH.
19061 # Avoid depending upon Character Ranges.
19062 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19063 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19064 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19065 as_cr_digits='0123456789'
19066 as_cr_alnum=$as_cr_Letters$as_cr_digits
19068 # The user is always right.
19069 if test "${PATH_SEPARATOR+set}" != set; then
19070 echo "#! /bin/sh" >conf$$.sh
19071 echo "exit 0" >>conf$$.sh
19073 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19082 as_lineno_1=$LINENO
19083 as_lineno_2=$LINENO
19084 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19085 test "x$as_lineno_1" != "x$as_lineno_2" &&
19086 test "x$as_lineno_3" = "x$as_lineno_2" || {
19087 # Find who we are. Look in the path if we contain no path at all
19090 *[\\/]* ) as_myself=$0 ;;
19091 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19092 for as_dir in $PATH
19095 test -z "$as_dir" && as_dir=.
19096 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19101 # We did not find ourselves, most probably we were run as `sh COMMAND'
19102 # in which case we are not to be found in the path.
19103 if test "x$as_myself" = x; then
19106 if test ! -f "$as_myself"; then
19107 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19108 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19109 { (exit 1); exit 1; }; }
19111 case $CONFIG_SHELL in
19113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19114 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19117 test -z "$as_dir" && as_dir=.
19118 for as_base in sh bash ksh sh5; do
19121 if ("$as_dir/$as_base" -c '
19122 as_lineno_1=$LINENO
19123 as_lineno_2=$LINENO
19124 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19125 test "x$as_lineno_1" != "x$as_lineno_2" &&
19126 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19127 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19128 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19129 CONFIG_SHELL=$as_dir/$as_base
19130 export CONFIG_SHELL
19131 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19139 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19140 # uniformly replaced by the line number. The first 'sed' inserts a
19141 # line-number line before each line; the second 'sed' does the real
19142 # work. The second script uses 'N' to pair each line-number line
19143 # with the numbered line, and appends trailing '-' during
19144 # substitution so that $LINENO is not a special case at line end.
19145 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19146 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19147 sed '=' <$as_myself |
19152 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19155 s,^['$as_cr_digits']*\n,,
19156 ' >$as_me.lineno &&
19157 chmod +x $as_me.lineno ||
19158 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19159 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19160 { (exit 1); exit 1; }; }
19162 # Don't try to exec as it changes $[0], causing all sort of problems
19163 # (the dirname of $[0] is not the place where we might find the
19164 # original and so on. Autoconf is especially sensible to this).
19166 # Exit status is that of the last command.
19171 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19172 *c*,-n*) ECHO_N= ECHO_C='
19174 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19175 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19178 if expr a : '\(a\)' >/dev/null 2>&1; then
19184 rm -f conf$$ conf$$.exe conf$$.file
19186 if ln -s conf$$.file conf$$ 2>/dev/null; then
19187 # We could just check for DJGPP; but this test a) works b) is more generic
19188 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19189 if test -f conf$$.exe; then
19190 # Don't use ln at all; we don't have any links
19195 elif ln conf$$.file conf$$ 2>/dev/null; then
19200 rm -f conf$$ conf$$.exe conf$$.file
19202 if mkdir -p . 2>/dev/null; then
19208 as_executable_p="test -f"
19210 # Sed expression to map a string onto a valid CPP name.
19211 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19213 # Sed expression to map a string onto a valid variable name.
19214 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19218 # We need space, tab and new line, in precisely that order.
19228 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19229 # report actual input values of CONFIG_FILES etc. instead of their
19230 # values after options handling. Logging --version etc. is OK.
19234 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19235 ## Running $as_me. ##
19240 This file was extended by $as_me, which was
19241 generated by GNU Autoconf 2.57. Invocation command line was
19243 CONFIG_FILES = $CONFIG_FILES
19244 CONFIG_HEADERS = $CONFIG_HEADERS
19245 CONFIG_LINKS = $CONFIG_LINKS
19246 CONFIG_COMMANDS = $CONFIG_COMMANDS
19250 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19254 # Files that config.status was made for.
19255 if test -n "$ac_config_files"; then
19256 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19259 if test -n "$ac_config_headers"; then
19260 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19263 if test -n "$ac_config_links"; then
19264 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19267 if test -n "$ac_config_commands"; then
19268 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19271 cat >>$CONFIG_STATUS <<\_ACEOF
19274 \`$as_me' instantiates files from templates according to the
19275 current configuration.
19277 Usage: $0 [OPTIONS] [FILE]...
19279 -h, --help print this help, then exit
19280 -V, --version print version number, then exit
19281 -q, --quiet do not print progress messages
19282 -d, --debug don't remove temporary files
19283 --recheck update $as_me by reconfiguring in the same conditions
19284 --file=FILE[:TEMPLATE]
19285 instantiate the configuration file FILE
19286 --header=FILE[:TEMPLATE]
19287 instantiate the configuration header FILE
19289 Configuration files:
19292 Configuration headers:
19295 Configuration commands:
19298 Report bugs to <bug-autoconf@gnu.org>."
19301 cat >>$CONFIG_STATUS <<_ACEOF
19304 configured by $0, generated by GNU Autoconf 2.57,
19305 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19307 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19308 Free Software Foundation, Inc.
19309 This config.status script is free software; the Free Software Foundation
19310 gives unlimited permission to copy, distribute and modify it."
19315 cat >>$CONFIG_STATUS <<\_ACEOF
19316 # If no file are specified by the user, then we need to provide default
19317 # value. By we need to know if files were specified by the user.
19323 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19324 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19332 *) # This is not an option, so the user has probably given explicit
19335 ac_need_defaults=false;;
19339 # Handling of the options.
19341 cat >>$CONFIG_STATUS <<\_ACEOF
19342 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19344 --version | --vers* | -V )
19345 echo "$ac_cs_version"; exit 0 ;;
19347 # Conflict between --help and --header
19348 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19349 Try \`$0 --help' for more information." >&5
19350 echo "$as_me: error: ambiguous option: $1
19351 Try \`$0 --help' for more information." >&2;}
19352 { (exit 1); exit 1; }; };;
19353 --help | --hel | -h )
19354 echo "$ac_cs_usage"; exit 0 ;;
19355 --debug | --d* | -d )
19357 --file | --fil | --fi | --f )
19359 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19360 ac_need_defaults=false;;
19361 --header | --heade | --head | --hea )
19363 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19364 ac_need_defaults=false;;
19365 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19366 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19369 # This is an error.
19370 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19371 Try \`$0 --help' for more information." >&5
19372 echo "$as_me: error: unrecognized option: $1
19373 Try \`$0 --help' for more information." >&2;}
19374 { (exit 1); exit 1; }; } ;;
19376 *) ac_config_targets="$ac_config_targets $1" ;;
19382 ac_configure_extra_args=
19384 if $ac_cs_silent; then
19386 ac_configure_extra_args="$ac_configure_extra_args --silent"
19390 cat >>$CONFIG_STATUS <<_ACEOF
19391 if \$ac_cs_recheck; then
19392 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19393 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19402 cat >>$CONFIG_STATUS <<\_ACEOF
19403 for ac_config_target in $ac_config_targets
19405 case "$ac_config_target" in
19406 # Handling of arguments.
19407 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19408 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19409 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19410 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19411 "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
19412 "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
19413 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19414 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19415 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19416 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19417 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19418 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19419 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19420 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19421 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19422 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19423 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19424 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19425 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19426 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19427 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19428 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19429 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19430 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19431 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19432 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19433 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19434 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19435 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19436 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19437 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19438 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19439 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19440 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19441 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19442 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19443 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19444 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19445 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19446 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19447 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19448 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19449 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19450 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19451 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19452 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19453 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19454 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19455 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19456 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19457 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19458 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19459 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19460 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19461 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19462 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19463 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19464 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19465 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19466 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19467 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19468 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19469 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19470 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19471 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19472 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19473 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19474 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19475 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19476 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19477 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19478 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19479 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19480 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19481 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19482 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19483 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19484 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19485 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19486 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19487 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19488 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19489 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19490 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19491 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19492 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19493 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19494 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19495 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19496 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19497 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19498 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19499 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19500 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19501 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19502 { (exit 1); exit 1; }; };;
19506 # If the user did not use the arguments to specify the items to instantiate,
19507 # then the envvar interface is used. Set only those that are not.
19508 # We use the long form for the default assignment because of an extremely
19509 # bizarre bug on SunOS 4.1.3.
19510 if $ac_need_defaults; then
19511 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19512 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19513 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19516 # Have a temporary directory for convenience. Make it in the build tree
19517 # simply because there is no reason to put it here, and in addition,
19518 # creating and moving files from /tmp can sometimes cause problems.
19519 # Create a temporary directory, and hook for its removal unless debugging.
19522 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19523 trap '{ (exit 1); exit 1; }' 1 2 13 15
19526 # Create a (secure) tmp directory for tmp files.
19529 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19530 test -n "$tmp" && test -d "$tmp"
19533 tmp=./confstat$$-$RANDOM
19534 (umask 077 && mkdir $tmp)
19537 echo "$me: cannot create a temporary directory in ." >&2
19538 { (exit 1); exit 1; }
19543 cat >>$CONFIG_STATUS <<_ACEOF
19546 # CONFIG_FILES section.
19549 # No need to generate the scripts if there are no CONFIG_FILES.
19550 # This happens for instance when ./config.status config.h
19551 if test -n "\$CONFIG_FILES"; then
19552 # Protect against being on the right side of a sed subst in config.status.
19553 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19554 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19555 s,@SHELL@,$SHELL,;t t
19556 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19557 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19558 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19559 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19560 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19561 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19562 s,@exec_prefix@,$exec_prefix,;t t
19563 s,@prefix@,$prefix,;t t
19564 s,@program_transform_name@,$program_transform_name,;t t
19565 s,@bindir@,$bindir,;t t
19566 s,@sbindir@,$sbindir,;t t
19567 s,@libexecdir@,$libexecdir,;t t
19568 s,@datadir@,$datadir,;t t
19569 s,@sysconfdir@,$sysconfdir,;t t
19570 s,@sharedstatedir@,$sharedstatedir,;t t
19571 s,@localstatedir@,$localstatedir,;t t
19572 s,@libdir@,$libdir,;t t
19573 s,@includedir@,$includedir,;t t
19574 s,@oldincludedir@,$oldincludedir,;t t
19575 s,@infodir@,$infodir,;t t
19576 s,@mandir@,$mandir,;t t
19577 s,@build_alias@,$build_alias,;t t
19578 s,@host_alias@,$host_alias,;t t
19579 s,@target_alias@,$target_alias,;t t
19580 s,@DEFS@,$DEFS,;t t
19581 s,@ECHO_C@,$ECHO_C,;t t
19582 s,@ECHO_N@,$ECHO_N,;t t
19583 s,@ECHO_T@,$ECHO_T,;t t
19584 s,@LIBS@,$LIBS,;t t
19585 s,@BUILD_DIR@,$BUILD_DIR,;t t
19586 s,@TRUEPRG@,$TRUEPRG,;t t
19587 s,@FALSEPRG@,$FALSEPRG,;t t
19588 s,@VERSION@,$VERSION,;t t
19589 s,@DATE@,$DATE,;t t
19590 s,@LSMDATE@,$LSMDATE,;t t
19592 s,@CFLAGS@,$CFLAGS,;t t
19593 s,@LDFLAGS@,$LDFLAGS,;t t
19594 s,@CPPFLAGS@,$CPPFLAGS,;t t
19595 s,@ac_ct_CC@,$ac_ct_CC,;t t
19596 s,@EXEEXT@,$EXEEXT,;t t
19597 s,@OBJEXT@,$OBJEXT,;t t
19599 s,@CXXFLAGS@,$CXXFLAGS,;t t
19600 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19602 s,@EGREP@,$EGREP,;t t
19603 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19604 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19605 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19606 s,@RANLIB@,$RANLIB,;t t
19607 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19613 s,@ECHO@,$ECHO,;t t
19617 s,@OPENSSL@,$OPENSSL,;t t
19619 s,@PKGCONFIG@,$PKGCONFIG,;t t
19620 s,@WXCONFIG@,$WXCONFIG,;t t
19621 s,@ARFLAGS@,$ARFLAGS,;t t
19622 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19623 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19624 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19625 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19626 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19627 s,@build@,$build,;t t
19628 s,@build_cpu@,$build_cpu,;t t
19629 s,@build_vendor@,$build_vendor,;t t
19630 s,@build_os@,$build_os,;t t
19631 s,@host@,$host,;t t
19632 s,@host_cpu@,$host_cpu,;t t
19633 s,@host_vendor@,$host_vendor,;t t
19634 s,@host_os@,$host_os,;t t
19635 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19636 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19637 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19638 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19639 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19640 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19641 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19642 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19643 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19644 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19645 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19646 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19647 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19648 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19649 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19650 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19651 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19652 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19653 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19654 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19655 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19656 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19657 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19658 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19659 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19660 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19661 s,@MSGFMT@,$MSGFMT,;t t
19662 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19663 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19664 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19665 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19666 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19667 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19668 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19669 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19670 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19671 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19672 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19673 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19674 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19675 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19676 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19677 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19678 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19679 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19680 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19681 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19682 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19683 s,@GNOME_DIR@,$GNOME_DIR,;t t
19684 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19685 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19686 s,@WX_DIR@,$WX_DIR,;t t
19687 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
19688 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
19689 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
19690 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19691 s,@STATIC_FD@,$STATIC_FD,;t t
19692 s,@STATIC_SD@,$STATIC_SD,;t t
19693 s,@STATIC_DIR@,$STATIC_DIR,;t t
19694 s,@STATIC_CONS@,$STATIC_CONS,;t t
19695 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19696 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19697 s,@ALL_DIRS@,$ALL_DIRS,;t t
19698 s,@CONS_INC@,$CONS_INC,;t t
19699 s,@CONS_OBJ@,$CONS_OBJ,;t t
19700 s,@CONS_SRC@,$CONS_SRC,;t t
19701 s,@CONS_LIBS@,$CONS_LIBS,;t t
19702 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19703 s,@READLINE_SRC@,$READLINE_SRC,;t t
19704 s,@working_dir@,$working_dir,;t t
19705 s,@scriptdir@,$scriptdir,;t t
19706 s,@dump_email@,$dump_email,;t t
19707 s,@job_email@,$job_email,;t t
19708 s,@smtp_host@,$smtp_host,;t t
19709 s,@piddir@,$piddir,;t t
19710 s,@subsysdir@,$subsysdir,;t t
19711 s,@baseport@,$baseport,;t t
19712 s,@dir_port@,$dir_port,;t t
19713 s,@fd_port@,$fd_port,;t t
19714 s,@sd_port@,$sd_port,;t t
19715 s,@dir_password@,$dir_password,;t t
19716 s,@fd_password@,$fd_password,;t t
19717 s,@sd_password@,$sd_password,;t t
19718 s,@mon_dir_password@,$mon_dir_password,;t t
19719 s,@mon_fd_password@,$mon_fd_password,;t t
19720 s,@mon_sd_password@,$mon_sd_password,;t t
19721 s,@dir_user@,$dir_user,;t t
19722 s,@dir_group@,$dir_group,;t t
19723 s,@sd_user@,$sd_user,;t t
19724 s,@sd_group@,$sd_group,;t t
19725 s,@fd_user@,$fd_user,;t t
19726 s,@fd_group@,$fd_group,;t t
19727 s,@SBINPERM@,$SBINPERM,;t t
19728 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19729 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19730 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19731 s,@cats@,$cats,;t t
19732 s,@DB_NAME@,$DB_NAME,;t t
19733 s,@GETCONF@,$GETCONF,;t t
19734 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19735 s,@X_CFLAGS@,$X_CFLAGS,;t t
19736 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19737 s,@X_LIBS@,$X_LIBS,;t t
19738 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19739 s,@LIBOBJS@,$LIBOBJS,;t t
19740 s,@ALLOCA@,$ALLOCA,;t t
19741 s,@FDLIBS@,$FDLIBS,;t t
19742 s,@DEBUG@,$DEBUG,;t t
19743 s,@DINCLUDE@,$DINCLUDE,;t t
19744 s,@DLIB@,$DLIB,;t t
19745 s,@DB_LIBS@,$DB_LIBS,;t t
19746 s,@WCFLAGS@,$WCFLAGS,;t t
19747 s,@WLDFLAGS@,$WLDFLAGS,;t t
19748 s,@OBJLIST@,$OBJLIST,;t t
19749 s,@hostname@,$hostname,;t t
19750 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19751 s,@PSCMD@,$PSCMD,;t t
19752 s,@WIN32@,$WIN32,;t t
19753 s,@MACOSX@,$MACOSX,;t t
19754 s,@DISTNAME@,$DISTNAME,;t t
19755 s,@DISTVER@,$DISTVER,;t t
19756 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19757 /@MCOMMON@/r $MCOMMON
19763 cat >>$CONFIG_STATUS <<\_ACEOF
19764 # Split the substitutions into bite-sized pieces for seds with
19765 # small command number limits, like on Digital OSF/1 and HP-UX.
19766 ac_max_sed_lines=48
19767 ac_sed_frag=1 # Number of current file.
19768 ac_beg=1 # First line for current file.
19769 ac_end=$ac_max_sed_lines # Line after last line for current file.
19772 while $ac_more_lines; do
19773 if test $ac_beg -gt 1; then
19774 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19776 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19778 if test ! -s $tmp/subs.frag; then
19779 ac_more_lines=false
19781 # The purpose of the label and of the branching condition is to
19782 # speed up the sed processing (if there are no `@' at all, there
19783 # is no need to browse any of the substitutions).
19784 # These are the two extra sed commands mentioned above.
19786 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19787 if test -z "$ac_sed_cmds"; then
19788 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19790 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19792 ac_sed_frag=`expr $ac_sed_frag + 1`
19794 ac_end=`expr $ac_end + $ac_max_sed_lines`
19797 if test -z "$ac_sed_cmds"; then
19800 fi # test -n "$CONFIG_FILES"
19803 cat >>$CONFIG_STATUS <<\_ACEOF
19804 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19805 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19807 - | *:- | *:-:* ) # input from stdin
19809 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19810 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19811 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19812 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19813 * ) ac_file_in=$ac_file.in ;;
19816 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19817 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19818 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19819 X"$ac_file" : 'X\(//\)[^/]' \| \
19820 X"$ac_file" : 'X\(//\)$' \| \
19821 X"$ac_file" : 'X\(/\)' \| \
19822 . : '\(.\)' 2>/dev/null ||
19824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19825 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19826 /^X\(\/\/\)$/{ s//\1/; q; }
19827 /^X\(\/\).*/{ s//\1/; q; }
19829 { if $as_mkdir_p; then
19834 while test ! -d "$as_dir"; do
19835 as_dirs="$as_dir $as_dirs"
19836 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19837 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19838 X"$as_dir" : 'X\(//\)[^/]' \| \
19839 X"$as_dir" : 'X\(//\)$' \| \
19840 X"$as_dir" : 'X\(/\)' \| \
19841 . : '\(.\)' 2>/dev/null ||
19843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19844 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19845 /^X\(\/\/\)$/{ s//\1/; q; }
19846 /^X\(\/\).*/{ s//\1/; q; }
19849 test ! -n "$as_dirs" || mkdir $as_dirs
19850 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19851 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19852 { (exit 1); exit 1; }; }; }
19856 if test "$ac_dir" != .; then
19857 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19858 # A "../" for each directory in $ac_dir_suffix.
19859 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19861 ac_dir_suffix= ac_top_builddir=
19865 .) # No --srcdir option. We are building in place.
19867 if test -z "$ac_top_builddir"; then
19870 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19872 [\\/]* | ?:[\\/]* ) # Absolute path.
19873 ac_srcdir=$srcdir$ac_dir_suffix;
19874 ac_top_srcdir=$srcdir ;;
19875 *) # Relative path.
19876 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19877 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19879 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19881 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19882 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19883 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19884 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19888 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19889 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19892 if test x"$ac_file" != x-; then
19893 { echo "$as_me:$LINENO: creating $ac_file" >&5
19894 echo "$as_me: creating $ac_file" >&6;}
19897 # Let's still pretend it is `configure' which instantiates (i.e., don't
19898 # use $as_me), people would be surprised to read:
19899 # /* config.h. Generated by config.status. */
19900 if test x"$ac_file" = x-; then
19903 configure_input="$ac_file. "
19905 configure_input=$configure_input"Generated from `echo $ac_file_in |
19906 sed 's,.*/,,'` by configure."
19908 # First look for the input files in the build tree, otherwise in the
19910 ac_file_inputs=`IFS=:
19911 for f in $ac_file_in; do
19913 -) echo $tmp/stdin ;;
19915 # Absolute (can't be DOS-style, as IFS=:)
19916 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19917 echo "$as_me: error: cannot find input file: $f" >&2;}
19918 { (exit 1); exit 1; }; }
19921 if test -f "$f"; then
19924 elif test -f "$srcdir/$f"; then
19929 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19930 echo "$as_me: error: cannot find input file: $f" >&2;}
19931 { (exit 1); exit 1; }; }
19934 done` || { (exit 1); exit 1; }
19936 cat >>$CONFIG_STATUS <<_ACEOF
19940 cat >>$CONFIG_STATUS <<\_ACEOF
19942 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19943 s,@configure_input@,$configure_input,;t t
19944 s,@srcdir@,$ac_srcdir,;t t
19945 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19946 s,@top_srcdir@,$ac_top_srcdir,;t t
19947 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19948 s,@builddir@,$ac_builddir,;t t
19949 s,@abs_builddir@,$ac_abs_builddir,;t t
19950 s,@top_builddir@,$ac_top_builddir,;t t
19951 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19952 s,@INSTALL@,$ac_INSTALL,;t t
19953 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19955 if test x"$ac_file" != x-; then
19956 mv $tmp/out $ac_file
19964 cat >>$CONFIG_STATUS <<\_ACEOF
19967 # CONFIG_HEADER section.
19970 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19971 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19973 # ac_d sets the value in "#define NAME VALUE" lines.
19974 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19975 ac_dB='[ ].*$,\1#\2'
19978 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19979 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19980 ac_uB='$,\1#\2define\3'
19984 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19985 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19987 - | *:- | *:-:* ) # input from stdin
19989 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19990 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19991 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19992 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19993 * ) ac_file_in=$ac_file.in ;;
19996 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19997 echo "$as_me: creating $ac_file" >&6;}
19999 # First look for the input files in the build tree, otherwise in the
20001 ac_file_inputs=`IFS=:
20002 for f in $ac_file_in; do
20004 -) echo $tmp/stdin ;;
20006 # Absolute (can't be DOS-style, as IFS=:)
20007 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20008 echo "$as_me: error: cannot find input file: $f" >&2;}
20009 { (exit 1); exit 1; }; }
20012 if test -f "$f"; then
20015 elif test -f "$srcdir/$f"; then
20020 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20021 echo "$as_me: error: cannot find input file: $f" >&2;}
20022 { (exit 1); exit 1; }; }
20025 done` || { (exit 1); exit 1; }
20026 # Remove the trailing spaces.
20027 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20031 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20032 # `conftest.undefs', that substitutes the proper values into
20033 # config.h.in to produce config.h. The first handles `#define'
20034 # templates, and the second `#undef' templates.
20035 # And first: Protect against being on the right side of a sed subst in
20036 # config.status. Protect against being in an unquoted here document
20037 # in config.status.
20038 rm -f conftest.defines conftest.undefs
20039 # Using a here document instead of a string reduces the quoting nightmare.
20040 # Putting comments in sed scripts is not portable.
20042 # `end' is used to avoid that the second main sed command (meant for
20043 # 0-ary CPP macros) applies to n-ary macro definitions.
20044 # See the Autoconf documentation for `clear'.
20045 cat >confdef2sed.sed <<\_ACEOF
20050 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20052 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20055 # If some macros were called several times there might be several times
20056 # the same #defines, which is useless. Nevertheless, we may not want to
20057 # sort them, since we want the *last* AC-DEFINE to be honored.
20058 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20059 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20060 rm -f confdef2sed.sed
20062 # This sed command replaces #undef with comments. This is necessary, for
20063 # example, in the case of _POSIX_SOURCE, which is predefined and required
20064 # on some systems where configure will not decide to define it.
20065 cat >>conftest.undefs <<\_ACEOF
20066 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20069 # Break up conftest.defines because some shells have a limit on the size
20070 # of here documents, and old seds have small limits too (100 cmds).
20071 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20072 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20073 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20074 echo ' :' >>$CONFIG_STATUS
20075 rm -f conftest.tail
20076 while grep . conftest.defines >/dev/null
20078 # Write a limited-size here document to $tmp/defines.sed.
20079 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20080 # Speed up: don't consider the non `#define' lines.
20081 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20082 # Work around the forget-to-reset-the-flag bug.
20083 echo 't clr' >>$CONFIG_STATUS
20084 echo ': clr' >>$CONFIG_STATUS
20085 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20087 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20089 mv $tmp/out $tmp/in
20091 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20092 rm -f conftest.defines
20093 mv conftest.tail conftest.defines
20095 rm -f conftest.defines
20096 echo ' fi # grep' >>$CONFIG_STATUS
20097 echo >>$CONFIG_STATUS
20099 # Break up conftest.undefs because some shells have a limit on the size
20100 # of here documents, and old seds have small limits too (100 cmds).
20101 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20102 rm -f conftest.tail
20103 while grep . conftest.undefs >/dev/null
20105 # Write a limited-size here document to $tmp/undefs.sed.
20106 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20107 # Speed up: don't consider the non `#undef'
20108 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20109 # Work around the forget-to-reset-the-flag bug.
20110 echo 't clr' >>$CONFIG_STATUS
20111 echo ': clr' >>$CONFIG_STATUS
20112 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20114 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20116 mv $tmp/out $tmp/in
20118 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20119 rm -f conftest.undefs
20120 mv conftest.tail conftest.undefs
20122 rm -f conftest.undefs
20124 cat >>$CONFIG_STATUS <<\_ACEOF
20125 # Let's still pretend it is `configure' which instantiates (i.e., don't
20126 # use $as_me), people would be surprised to read:
20127 # /* config.h. Generated by config.status. */
20128 if test x"$ac_file" = x-; then
20129 echo "/* Generated by configure. */" >$tmp/config.h
20131 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20133 cat $tmp/in >>$tmp/config.h
20135 if test x"$ac_file" != x-; then
20136 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20137 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20138 echo "$as_me: $ac_file is unchanged" >&6;}
20140 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20141 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20142 X"$ac_file" : 'X\(//\)[^/]' \| \
20143 X"$ac_file" : 'X\(//\)$' \| \
20144 X"$ac_file" : 'X\(/\)' \| \
20145 . : '\(.\)' 2>/dev/null ||
20147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20148 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20149 /^X\(\/\/\)$/{ s//\1/; q; }
20150 /^X\(\/\).*/{ s//\1/; q; }
20152 { if $as_mkdir_p; then
20157 while test ! -d "$as_dir"; do
20158 as_dirs="$as_dir $as_dirs"
20159 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20160 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20161 X"$as_dir" : 'X\(//\)[^/]' \| \
20162 X"$as_dir" : 'X\(//\)$' \| \
20163 X"$as_dir" : 'X\(/\)' \| \
20164 . : '\(.\)' 2>/dev/null ||
20166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20167 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20168 /^X\(\/\/\)$/{ s//\1/; q; }
20169 /^X\(\/\).*/{ s//\1/; q; }
20172 test ! -n "$as_dirs" || mkdir $as_dirs
20173 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20174 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20175 { (exit 1); exit 1; }; }; }
20178 mv $tmp/config.h $ac_file
20182 rm -f $tmp/config.h
20186 cat >>$CONFIG_STATUS <<\_ACEOF
20189 # CONFIG_COMMANDS section.
20191 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20192 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20193 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20194 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20195 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20196 X"$ac_dest" : 'X\(//\)[^/]' \| \
20197 X"$ac_dest" : 'X\(//\)$' \| \
20198 X"$ac_dest" : 'X\(/\)' \| \
20199 . : '\(.\)' 2>/dev/null ||
20201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20202 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20203 /^X\(\/\/\)$/{ s//\1/; q; }
20204 /^X\(\/\).*/{ s//\1/; q; }
20208 if test "$ac_dir" != .; then
20209 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20210 # A "../" for each directory in $ac_dir_suffix.
20211 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20213 ac_dir_suffix= ac_top_builddir=
20217 .) # No --srcdir option. We are building in place.
20219 if test -z "$ac_top_builddir"; then
20222 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20224 [\\/]* | ?:[\\/]* ) # Absolute path.
20225 ac_srcdir=$srcdir$ac_dir_suffix;
20226 ac_top_srcdir=$srcdir ;;
20227 *) # Relative path.
20228 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20229 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20231 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20233 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20234 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20235 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20236 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20239 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20240 echo "$as_me: executing $ac_dest commands" >&6;}
20242 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20248 cat >>$CONFIG_STATUS <<\_ACEOF
20250 { (exit 0); exit 0; }
20252 chmod +x $CONFIG_STATUS
20253 ac_clean_files=$ac_clean_files_save
20256 # configure is writing to config.log, and then calls config.status.
20257 # config.status does its own redirection, appending to config.log.
20258 # Unfortunately, on DOS this fails, as config.log is still kept open
20259 # by configure, so config.status won't be able to write to it; its
20260 # output is simply discarded. So we exec the FD to /dev/null,
20261 # effectively closing config.log, so it can be properly (re)opened and
20262 # appended to by config.status. When coming back to configure, we
20263 # need to make the FD available again.
20264 if test "$no_create" != yes; then
20266 ac_config_status_args=
20267 test "$silent" = yes &&
20268 ac_config_status_args="$ac_config_status_args --quiet"
20270 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20272 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20273 # would make configure fail if this is the last instruction.
20274 $ac_cs_success || { (exit 1); exit 1; }
20279 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20280 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20285 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
20286 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
20288 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
20289 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
20291 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
20292 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
20294 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
20295 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
20297 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
20298 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
20300 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20301 chmod 755 $c/sqlite
20304 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20305 largefile_support="yes"
20309 # A whole lot of hand springs to get the compiler version.
20310 # This is because gcc changed the output in version 3.0
20312 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20313 if test "x${CCVERSION}" = "x" ; then
20314 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20316 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20317 if test x"${CXXVERSION}" = x ; then
20318 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20321 if test "x${subsysdir}" = "x${sbindir}" ; then
20324 echo "You have set --sbindir and --with-subsys-dir"
20325 echo " both equal to: ${subsysdir} "
20326 echo " This is not permitted. Please reconfigure."
20328 echo "Aborting configuration ..."
20334 if test "x${db_name}" = "xInternal" ; then
20337 echo "You have not specified either --enable-client-only or one of the"
20338 echo " supported databases: MySQL, PostgreSQL, or SQLite".
20339 echo " This is not permitted. Please reconfigure."
20341 echo "Aborting the configuration ..."
20348 Configuration on `date`:
20350 Host: $host -- ${DISTNAME} ${DISTVER}
20351 Bacula version: ${VERSION} (${DATE})
20352 Source code location: ${srcdir}
20353 Install binaries: ${sbindir}
20354 Install config files: ${sysconfdir}
20355 Scripts directory: ${scriptdir}
20356 Working directory: ${working_dir}
20357 PID directory: ${piddir}
20358 Subsys directory: ${subsysdir}
20359 C Compiler: ${CC} ${CCVERSION}
20360 C++ Compiler: ${CXX} ${CXXVERSION}
20361 Compiler flags: ${WCFLAGS} ${CFLAGS}
20362 Linker flags: ${WLDFLAGS} ${LDFLAGS}
20364 Statically Linked Tools: ${support_static_tools}
20365 Statically Linked FD: ${support_static_fd}
20366 Statically Linked SD: ${support_static_sd}
20367 Statically Linked DIR: ${support_static_dir}
20368 Statically Linked CONS: ${support_static_cons}
20369 Database type: ${db_name}
20370 Database lib: ${DB_LIBS}
20372 Job Output Email: ${job_email}
20373 Traceback Email: ${dump_email}
20374 SMTP Host Address: ${smtp_host}
20376 Director Port: ${dir_port}
20377 File daemon Port: ${fd_port}
20378 Storage daemon Port: ${sd_port}
20380 Director User: ${dir_user}
20381 Director Group: ${dir_group}
20382 Storage Daemon User: ${sd_user}
20383 Storage DaemonGroup: ${sd_group}
20384 File Daemon User: ${fd_user}
20385 File Daemon Group: ${fd_group}
20387 SQL binaries Directory ${SQL_BINDIR}
20389 Large file support: $largefile_support
20390 Bacula conio support: ${got_conio} ${CONS_LIBS}
20391 readline support: ${got_readline} ${PRTREADLINE_SRC}
20392 TCP Wrappers support: ${TCPW_MSG}
20393 ZLIB support: ${have_zlib}
20394 enable-smartalloc: ${support_smartalloc}
20395 enable-gnome: ${support_gnome} ${gnome_version}
20396 enable-wx-console: ${support_wx_console}
20397 enable-tray-monitor: ${support_tray_monitor}
20398 client-only: ${build_client_only}
20399 ACL support: ${have_acl}
20406 # cweb support: ${got_cweb} ${CWEB_SRC}
20407 # gmp support: ${got_gmp} ${GMP_SRC}