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
7652 elif test -f $prefix/include/sqlite.h; then
7653 SQLITE_INCDIR=$prefix/include
7654 SQLITE_LIBDIR=$prefix/lib
7655 SQLITE_BINDIR=$prefix/bin
7657 echo "$as_me:$LINENO: result: no" >&5
7658 echo "${ECHO_T}no" >&6
7659 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7660 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7661 { (exit 1); exit 1; }; }
7664 if test -f $withval/sqlite.h; then
7665 SQLITE_INCDIR=$withval
7666 SQLITE_LIBDIR=$withval
7667 SQLITE_BINDIR=$withval
7668 elif test -f $withval/include/sqlite.h; then
7669 SQLITE_INCDIR=$withval/include
7670 SQLITE_LIBDIR=$withval/lib
7671 SQLITE_BINDIR=$withval/bin
7673 echo "$as_me:$LINENO: result: no" >&5
7674 echo "${ECHO_T}no" >&6
7675 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7676 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7677 { (exit 1); exit 1; }; }
7680 SQL_INCLUDE=-I$SQLITE_INCDIR
7681 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7682 SQL_BINDIR=$SQLITE_BINDIR
7684 cat >>confdefs.h <<\_ACEOF
7685 #define HAVE_SQLITE 1
7688 echo "$as_me:$LINENO: result: yes" >&5
7689 echo "${ECHO_T}yes" >&6
7696 echo "$as_me:$LINENO: result: no" >&5
7697 echo "${ECHO_T}no" >&6
7702 echo "$as_me:$LINENO: result: no" >&5
7703 echo "${ECHO_T}no" >&6
7715 cat >>confdefs.h <<\_ACEOF
7716 #define PROTOTYPES 1
7720 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
7721 if test -z "$CCOPTS"; then
7722 CCOPTS='-g -O2 -Wall'
7730 largefile_support="no"
7732 # Check whether --enable-largefile or --disable-largefile was given.
7733 if test "${enable_largefile+set}" = set; then
7734 enableval="$enable_largefile"
7737 if test "$enable_largefile" != no; then
7738 if test -n "$ac_tool_prefix"; then
7739 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7740 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7741 echo "$as_me:$LINENO: checking for $ac_word" >&5
7742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7743 if test "${ac_cv_prog_GETCONF+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7746 if test -n "$GETCONF"; then
7747 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753 test -z "$as_dir" && as_dir=.
7754 for ac_exec_ext in '' $ac_executable_extensions; do
7755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7756 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7765 GETCONF=$ac_cv_prog_GETCONF
7766 if test -n "$GETCONF"; then
7767 echo "$as_me:$LINENO: result: $GETCONF" >&5
7768 echo "${ECHO_T}$GETCONF" >&6
7770 echo "$as_me:$LINENO: result: no" >&5
7771 echo "${ECHO_T}no" >&6
7775 if test -z "$ac_cv_prog_GETCONF"; then
7776 ac_ct_GETCONF=$GETCONF
7777 # Extract the first word of "getconf", so it can be a program name with args.
7778 set dummy getconf; ac_word=$2
7779 echo "$as_me:$LINENO: checking for $ac_word" >&5
7780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7781 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 if test -n "$ac_ct_GETCONF"; then
7785 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 test -z "$as_dir" && as_dir=.
7792 for ac_exec_ext in '' $ac_executable_extensions; do
7793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7794 ac_cv_prog_ac_ct_GETCONF="getconf"
7795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7804 if test -n "$ac_ct_GETCONF"; then
7805 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7806 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7808 echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6
7812 GETCONF=$ac_ct_GETCONF
7814 GETCONF="$ac_cv_prog_GETCONF"
7817 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7818 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7819 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7823 ac_cv_sys_largefile_CFLAGS=no
7825 # IRIX 6.2 and later require cc -n32.
7826 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7827 if test "$GCC" != yes; then
7828 ac_cv_sys_largefile_CFLAGS=-n32
7831 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7832 cat >conftest.$ac_ext <<_ACEOF
7833 #line $LINENO "configure"
7836 cat confdefs.h >>conftest.$ac_ext
7837 cat >>conftest.$ac_ext <<_ACEOF
7838 /* end confdefs.h. */
7848 rm -f conftest.$ac_objext conftest$ac_exeext
7849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7850 (eval $ac_link) 2>&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } &&
7854 { ac_try='test -s conftest$ac_exeext'
7855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; }; then
7862 echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7865 ac_cv_sys_largefile_CFLAGS=no
7867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7872 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7873 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7874 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7875 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7876 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7880 ac_cv_sys_largefile_LDFLAGS=no
7884 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7885 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7886 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7887 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7888 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7889 echo $ECHO_N "(cached) $ECHO_C" >&6
7891 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7892 ac_cv_sys_largefile_LIBS=no
7896 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7897 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7899 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7902 -D_FILE_OFFSET_BITS=*) ;;
7903 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7904 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7910 '') CPPFLAGS="$ac_flag" ;;
7911 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7919 '') CFLAGS="$ac_flag" ;;
7920 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7925 case "$ac_cv_sys_largefile_LDFLAGS" in
7929 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7930 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7933 case "$ac_cv_sys_largefile_LIBS" in
7937 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7938 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7941 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7942 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7943 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7946 ac_cv_sys_file_offset_bits=no
7948 # HP-UX 10.20 and later
7949 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7950 ac_cv_sys_file_offset_bits=64 ;;
7952 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7954 -D_FILE_OFFSET_BITS)
7955 ac_cv_sys_file_offset_bits=1 ;;
7956 -D_FILE_OFFSET_BITS=*)
7957 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7962 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7963 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7964 if test "$ac_cv_sys_file_offset_bits" != no; then
7966 cat >>confdefs.h <<_ACEOF
7967 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7971 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7972 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7973 if test "${ac_cv_sys_largefile_source+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 ac_cv_sys_largefile_source=no
7978 # HP-UX 10.20 and later
7979 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7980 ac_cv_sys_largefile_source=1 ;;
7982 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7984 -D_LARGEFILE_SOURCE)
7985 ac_cv_sys_largefile_source=1 ;;
7986 -D_LARGEFILE_SOURCE=*)
7987 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7992 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7993 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7994 if test "$ac_cv_sys_largefile_source" != no; then
7996 cat >>confdefs.h <<_ACEOF
7997 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8001 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
8002 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
8003 if test "${ac_cv_sys_large_files+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 ac_cv_sys_large_files=no
8009 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
8010 ac_cv_sys_large_files=1 ;;
8012 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8015 ac_cv_sys_large_files=1 ;;
8017 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8022 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8023 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8024 if test "$ac_cv_sys_large_files" != no; then
8026 cat >>confdefs.h <<_ACEOF
8027 #define _LARGE_FILES $ac_cv_sys_large_files
8035 echo "$as_me:$LINENO: checking for X" >&5
8036 echo $ECHO_N "checking for X... $ECHO_C" >&6
8039 # Check whether --with-x or --without-x was given.
8040 if test "${with_x+set}" = set; then
8044 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8045 if test "x$with_x" = xno; then
8046 # The user explicitly disabled X.
8049 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8050 # Both variables are already set.
8053 if test "${ac_cv_have_x+set}" = set; then
8054 echo $ECHO_N "(cached) $ECHO_C" >&6
8056 # One or both of the vars are not set, and there is no cached value.
8057 ac_x_includes=no ac_x_libraries=no
8059 if mkdir conftest.dir; then
8061 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8062 cat >Imakefile <<'_ACEOF'
8064 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8066 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8067 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8068 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8069 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8070 for ac_extension in a so sl; do
8071 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8072 test -f $ac_im_libdir/libX11.$ac_extension; then
8073 ac_im_usrlibdir=$ac_im_libdir; break
8076 # Screen out bogus values from the imake configuration. They are
8077 # bogus both because they are the default anyway, and because
8078 # using them would break gcc on systems where it needs fixed includes.
8079 case $ac_im_incroot in
8081 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8083 case $ac_im_usrlibdir in
8085 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8092 # Standard set of common directories for X headers.
8093 # Check X11 before X11Rn because it is often a symlink to the current release.
8105 /usr/local/X11/include
8106 /usr/local/X11R6/include
8107 /usr/local/X11R5/include
8108 /usr/local/X11R4/include
8110 /usr/local/include/X11
8111 /usr/local/include/X11R6
8112 /usr/local/include/X11R5
8113 /usr/local/include/X11R4
8117 /usr/XFree86/include/X11
8121 /usr/unsupported/include
8123 /usr/local/x11r5/include
8124 /usr/lpp/Xamples/include
8126 /usr/openwin/include
8127 /usr/openwin/share/include'
8129 if test "$ac_x_includes" = no; then
8130 # Guess where to find include files, by looking for Intrinsic.h.
8131 # First, try using that file with no special directory specified.
8132 cat >conftest.$ac_ext <<_ACEOF
8133 #line $LINENO "configure"
8136 cat confdefs.h >>conftest.$ac_ext
8137 cat >>conftest.$ac_ext <<_ACEOF
8138 /* end confdefs.h. */
8139 #include <X11/Intrinsic.h>
8141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8144 grep -v '^ *+' conftest.er1 >conftest.err
8146 cat conftest.err >&5
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); } >/dev/null; then
8149 if test -s conftest.err; then
8150 ac_cpp_err=$ac_c_preproc_warn_flag
8157 if test -z "$ac_cpp_err"; then
8158 # We can compile using X headers with no special include directory.
8161 echo "$as_me: failed program was:" >&5
8162 sed 's/^/| /' conftest.$ac_ext >&5
8164 for ac_dir in $ac_x_header_dirs; do
8165 if test -r "$ac_dir/X11/Intrinsic.h"; then
8166 ac_x_includes=$ac_dir
8171 rm -f conftest.err conftest.$ac_ext
8172 fi # $ac_x_includes = no
8174 if test "$ac_x_libraries" = no; then
8175 # Check for the libraries.
8176 # See if we find them without any special options.
8177 # Don't add to $LIBS permanently.
8180 cat >conftest.$ac_ext <<_ACEOF
8181 #line $LINENO "configure"
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h. */
8187 #include <X11/Intrinsic.h>
8196 rm -f conftest.$ac_objext conftest$ac_exeext
8197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8198 (eval $ac_link) 2>&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); } &&
8202 { ac_try='test -s conftest$ac_exeext'
8203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; }; then
8209 # We can link X programs with no special library path.
8212 echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.$ac_ext >&5
8216 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8218 # Don't even attempt the hair of trying to link an X program!
8219 for ac_extension in a so sl; do
8220 if test -r $ac_dir/libXt.$ac_extension; then
8221 ac_x_libraries=$ac_dir
8227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8228 fi # $ac_x_libraries = no
8230 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8231 # Didn't find X anywhere. Cache the known absence of X.
8232 ac_cv_have_x="have_x=no"
8234 # Record where we found X for the cache.
8235 ac_cv_have_x="have_x=yes \
8236 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8241 eval "$ac_cv_have_x"
8244 if test "$have_x" != yes; then
8245 echo "$as_me:$LINENO: result: $have_x" >&5
8246 echo "${ECHO_T}$have_x" >&6
8249 # If each of the values was on the command line, it overrides each guess.
8250 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8251 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8252 # Update the cache value to reflect the command line values.
8253 ac_cv_have_x="have_x=yes \
8254 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8255 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8256 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8259 if test "$no_x" = yes; then
8260 # Not all programs may use this symbol, but it does not hurt to define it.
8262 cat >>confdefs.h <<\_ACEOF
8263 #define X_DISPLAY_MISSING 1
8266 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8268 if test -n "$x_includes"; then
8269 X_CFLAGS="$X_CFLAGS -I$x_includes"
8272 # It would also be nice to do this for all -L options, not just this one.
8273 if test -n "$x_libraries"; then
8274 X_LIBS="$X_LIBS -L$x_libraries"
8275 # For Solaris; some versions of Sun CC require a space after -R and
8276 # others require no space. Words are not sufficient . . . .
8277 case `(uname -sr) 2>/dev/null` in
8279 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8280 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8281 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8282 cat >conftest.$ac_ext <<_ACEOF
8283 #line $LINENO "configure"
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8298 rm -f conftest.$ac_objext conftest$ac_exeext
8299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8300 (eval $ac_link) 2>&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } &&
8304 { ac_try='test -s conftest$ac_exeext'
8305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; }; then
8312 echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8318 if test $ac_R_nospace = yes; then
8319 echo "$as_me:$LINENO: result: no" >&5
8320 echo "${ECHO_T}no" >&6
8321 X_LIBS="$X_LIBS -R$x_libraries"
8323 LIBS="$ac_xsave_LIBS -R $x_libraries"
8324 cat >conftest.$ac_ext <<_ACEOF
8325 #line $LINENO "configure"
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h. */
8340 rm -f conftest.$ac_objext conftest$ac_exeext
8341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8342 (eval $ac_link) 2>&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } &&
8346 { ac_try='test -s conftest$ac_exeext'
8347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); }; }; then
8354 echo "$as_me: failed program was:" >&5
8355 sed 's/^/| /' conftest.$ac_ext >&5
8359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8360 if test $ac_R_space = yes; then
8361 echo "$as_me:$LINENO: result: yes" >&5
8362 echo "${ECHO_T}yes" >&6
8363 X_LIBS="$X_LIBS -R $x_libraries"
8365 echo "$as_me:$LINENO: result: neither works" >&5
8366 echo "${ECHO_T}neither works" >&6
8373 # Check for system-dependent libraries X programs must link with.
8374 # Do this before checking for the system-independent R6 libraries
8375 # (-lICE), since we may need -lsocket or whatever for X linking.
8377 if test "$ISC" = yes; then
8378 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8380 # Martyn Johnson says this is needed for Ultrix, if the X
8381 # libraries were built with DECnet support. And Karl Berry says
8382 # the Alpha needs dnet_stub (dnet does not exist).
8383 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8384 cat >conftest.$ac_ext <<_ACEOF
8385 #line $LINENO "configure"
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h. */
8392 /* Override any gcc2 internal prototype to avoid an error. */
8396 /* We use char because int might match the return type of a gcc2
8397 builtin and then its argument prototype would still apply. */
8398 char XOpenDisplay ();
8407 rm -f conftest.$ac_objext conftest$ac_exeext
8408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8409 (eval $ac_link) 2>&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -s conftest$ac_exeext'
8414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8424 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8425 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8426 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8429 ac_check_lib_save_LIBS=$LIBS
8431 cat >conftest.$ac_ext <<_ACEOF
8432 #line $LINENO "configure"
8435 cat confdefs.h >>conftest.$ac_ext
8436 cat >>conftest.$ac_ext <<_ACEOF
8437 /* end confdefs.h. */
8439 /* Override any gcc2 internal prototype to avoid an error. */
8443 /* We use char because int might match the return type of a gcc2
8444 builtin and then its argument prototype would still apply. */
8454 rm -f conftest.$ac_objext conftest$ac_exeext
8455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8456 (eval $ac_link) 2>&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); } &&
8460 { ac_try='test -s conftest$ac_exeext'
8461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465 (exit $ac_status); }; }; then
8466 ac_cv_lib_dnet_dnet_ntoa=yes
8468 echo "$as_me: failed program was:" >&5
8469 sed 's/^/| /' conftest.$ac_ext >&5
8471 ac_cv_lib_dnet_dnet_ntoa=no
8473 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8474 LIBS=$ac_check_lib_save_LIBS
8476 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8477 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8478 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8479 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8482 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8483 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8484 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8485 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 ac_check_lib_save_LIBS=$LIBS
8489 LIBS="-ldnet_stub $LIBS"
8490 cat >conftest.$ac_ext <<_ACEOF
8491 #line $LINENO "configure"
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h. */
8498 /* Override any gcc2 internal prototype to avoid an error. */
8502 /* We use char because int might match the return type of a gcc2
8503 builtin and then its argument prototype would still apply. */
8513 rm -f conftest.$ac_objext conftest$ac_exeext
8514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8515 (eval $ac_link) 2>&5
8517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518 (exit $ac_status); } &&
8519 { ac_try='test -s conftest$ac_exeext'
8520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; }; then
8525 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8527 echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.$ac_ext >&5
8530 ac_cv_lib_dnet_stub_dnet_ntoa=no
8532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8533 LIBS=$ac_check_lib_save_LIBS
8535 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8536 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8537 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8538 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8543 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8544 LIBS="$ac_xsave_LIBS"
8546 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8547 # to get the SysV transport functions.
8548 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8550 # The nsl library prevents programs from opening the X display
8551 # on Irix 5.2, according to T.E. Dickey.
8552 # The functions gethostbyname, getservbyname, and inet_addr are
8553 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8554 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8555 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8556 if test "${ac_cv_func_gethostbyname+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8559 cat >conftest.$ac_ext <<_ACEOF
8560 #line $LINENO "configure"
8563 cat confdefs.h >>conftest.$ac_ext
8564 cat >>conftest.$ac_ext <<_ACEOF
8565 /* end confdefs.h. */
8566 /* System header to define __stub macros and hopefully few prototypes,
8567 which can conflict with char gethostbyname (); below.
8568 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8569 <limits.h> exists even on freestanding compilers. */
8571 # include <limits.h>
8573 # include <assert.h>
8575 /* Override any gcc2 internal prototype to avoid an error. */
8580 /* We use char because int might match the return type of a gcc2
8581 builtin and then its argument prototype would still apply. */
8582 char gethostbyname ();
8583 /* The GNU C library defines this for functions which it implements
8584 to always fail with ENOSYS. Some functions are actually named
8585 something starting with __ and the normal name is an alias. */
8586 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8589 char (*f) () = gethostbyname;
8598 return f != gethostbyname;
8603 rm -f conftest.$ac_objext conftest$ac_exeext
8604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8605 (eval $ac_link) 2>&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try='test -s conftest$ac_exeext'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; }; then
8615 ac_cv_func_gethostbyname=yes
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8620 ac_cv_func_gethostbyname=no
8622 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8624 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8625 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8627 if test $ac_cv_func_gethostbyname = no; then
8628 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8629 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8630 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8631 echo $ECHO_N "(cached) $ECHO_C" >&6
8633 ac_check_lib_save_LIBS=$LIBS
8635 cat >conftest.$ac_ext <<_ACEOF
8636 #line $LINENO "configure"
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8643 /* Override any gcc2 internal prototype to avoid an error. */
8647 /* We use char because int might match the return type of a gcc2
8648 builtin and then its argument prototype would still apply. */
8649 char gethostbyname ();
8658 rm -f conftest.$ac_objext conftest$ac_exeext
8659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8660 (eval $ac_link) 2>&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } &&
8664 { ac_try='test -s conftest$ac_exeext'
8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); }; }; then
8670 ac_cv_lib_nsl_gethostbyname=yes
8672 echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8675 ac_cv_lib_nsl_gethostbyname=no
8677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8678 LIBS=$ac_check_lib_save_LIBS
8680 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8681 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8682 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8683 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8686 if test $ac_cv_lib_nsl_gethostbyname = no; then
8687 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8688 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8689 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8692 ac_check_lib_save_LIBS=$LIBS
8694 cat >conftest.$ac_ext <<_ACEOF
8695 #line $LINENO "configure"
8698 cat confdefs.h >>conftest.$ac_ext
8699 cat >>conftest.$ac_ext <<_ACEOF
8700 /* end confdefs.h. */
8702 /* Override any gcc2 internal prototype to avoid an error. */
8706 /* We use char because int might match the return type of a gcc2
8707 builtin and then its argument prototype would still apply. */
8708 char gethostbyname ();
8717 rm -f conftest.$ac_objext conftest$ac_exeext
8718 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8719 (eval $ac_link) 2>&5
8721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8722 (exit $ac_status); } &&
8723 { ac_try='test -s conftest$ac_exeext'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; }; then
8729 ac_cv_lib_bsd_gethostbyname=yes
8731 echo "$as_me: failed program was:" >&5
8732 sed 's/^/| /' conftest.$ac_ext >&5
8734 ac_cv_lib_bsd_gethostbyname=no
8736 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8737 LIBS=$ac_check_lib_save_LIBS
8739 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8740 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8741 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8742 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8748 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8749 # socket/setsockopt and other routines are undefined under SCO ODT
8750 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8751 # on later versions), says Simon Leinen: it contains gethostby*
8752 # variants that don't use the name server (or something). -lsocket
8753 # must be given before -lnsl if both are needed. We assume that
8754 # if connect needs -lnsl, so does gethostbyname.
8755 echo "$as_me:$LINENO: checking for connect" >&5
8756 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8757 if test "${ac_cv_func_connect+set}" = set; then
8758 echo $ECHO_N "(cached) $ECHO_C" >&6
8760 cat >conftest.$ac_ext <<_ACEOF
8761 #line $LINENO "configure"
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h. */
8767 /* System header to define __stub macros and hopefully few prototypes,
8768 which can conflict with char connect (); below.
8769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8770 <limits.h> exists even on freestanding compilers. */
8772 # include <limits.h>
8774 # include <assert.h>
8776 /* Override any gcc2 internal prototype to avoid an error. */
8781 /* We use char because int might match the return type of a gcc2
8782 builtin and then its argument prototype would still apply. */
8784 /* The GNU C library defines this for functions which it implements
8785 to always fail with ENOSYS. Some functions are actually named
8786 something starting with __ and the normal name is an alias. */
8787 #if defined (__stub_connect) || defined (__stub___connect)
8790 char (*f) () = connect;
8799 return f != connect;
8804 rm -f conftest.$ac_objext conftest$ac_exeext
8805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8806 (eval $ac_link) 2>&5
8808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8809 (exit $ac_status); } &&
8810 { ac_try='test -s conftest$ac_exeext'
8811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); }; }; then
8816 ac_cv_func_connect=yes
8818 echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8821 ac_cv_func_connect=no
8823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8825 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8826 echo "${ECHO_T}$ac_cv_func_connect" >&6
8828 if test $ac_cv_func_connect = no; then
8829 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8830 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8831 if test "${ac_cv_lib_socket_connect+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8834 ac_check_lib_save_LIBS=$LIBS
8835 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8836 cat >conftest.$ac_ext <<_ACEOF
8837 #line $LINENO "configure"
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h. */
8844 /* Override any gcc2 internal prototype to avoid an error. */
8848 /* We use char because int might match the return type of a gcc2
8849 builtin and then its argument prototype would still apply. */
8859 rm -f conftest.$ac_objext conftest$ac_exeext
8860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8861 (eval $ac_link) 2>&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } &&
8865 { ac_try='test -s conftest$ac_exeext'
8866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); }; }; then
8871 ac_cv_lib_socket_connect=yes
8873 echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8876 ac_cv_lib_socket_connect=no
8878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8879 LIBS=$ac_check_lib_save_LIBS
8881 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8882 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8883 if test $ac_cv_lib_socket_connect = yes; then
8884 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8889 # Guillermo Gomez says -lposix is necessary on A/UX.
8890 echo "$as_me:$LINENO: checking for remove" >&5
8891 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8892 if test "${ac_cv_func_remove+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 cat >conftest.$ac_ext <<_ACEOF
8896 #line $LINENO "configure"
8899 cat confdefs.h >>conftest.$ac_ext
8900 cat >>conftest.$ac_ext <<_ACEOF
8901 /* end confdefs.h. */
8902 /* System header to define __stub macros and hopefully few prototypes,
8903 which can conflict with char remove (); below.
8904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8905 <limits.h> exists even on freestanding compilers. */
8907 # include <limits.h>
8909 # include <assert.h>
8911 /* Override any gcc2 internal prototype to avoid an error. */
8916 /* We use char because int might match the return type of a gcc2
8917 builtin and then its argument prototype would still apply. */
8919 /* The GNU C library defines this for functions which it implements
8920 to always fail with ENOSYS. Some functions are actually named
8921 something starting with __ and the normal name is an alias. */
8922 #if defined (__stub_remove) || defined (__stub___remove)
8925 char (*f) () = remove;
8939 rm -f conftest.$ac_objext conftest$ac_exeext
8940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8941 (eval $ac_link) 2>&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } &&
8945 { ac_try='test -s conftest$ac_exeext'
8946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); }; }; then
8951 ac_cv_func_remove=yes
8953 echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8956 ac_cv_func_remove=no
8958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8960 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8961 echo "${ECHO_T}$ac_cv_func_remove" >&6
8963 if test $ac_cv_func_remove = no; then
8964 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8965 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8966 if test "${ac_cv_lib_posix_remove+set}" = set; then
8967 echo $ECHO_N "(cached) $ECHO_C" >&6
8969 ac_check_lib_save_LIBS=$LIBS
8970 LIBS="-lposix $LIBS"
8971 cat >conftest.$ac_ext <<_ACEOF
8972 #line $LINENO "configure"
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8979 /* Override any gcc2 internal prototype to avoid an error. */
8983 /* We use char because int might match the return type of a gcc2
8984 builtin and then its argument prototype would still apply. */
8994 rm -f conftest.$ac_objext conftest$ac_exeext
8995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8996 (eval $ac_link) 2>&5
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); } &&
9000 { ac_try='test -s conftest$ac_exeext'
9001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9005 (exit $ac_status); }; }; then
9006 ac_cv_lib_posix_remove=yes
9008 echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9011 ac_cv_lib_posix_remove=no
9013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9014 LIBS=$ac_check_lib_save_LIBS
9016 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9017 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9018 if test $ac_cv_lib_posix_remove = yes; then
9019 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9024 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9025 echo "$as_me:$LINENO: checking for shmat" >&5
9026 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9027 if test "${ac_cv_func_shmat+set}" = set; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9030 cat >conftest.$ac_ext <<_ACEOF
9031 #line $LINENO "configure"
9034 cat confdefs.h >>conftest.$ac_ext
9035 cat >>conftest.$ac_ext <<_ACEOF
9036 /* end confdefs.h. */
9037 /* System header to define __stub macros and hopefully few prototypes,
9038 which can conflict with char shmat (); below.
9039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9040 <limits.h> exists even on freestanding compilers. */
9042 # include <limits.h>
9044 # include <assert.h>
9046 /* Override any gcc2 internal prototype to avoid an error. */
9051 /* We use char because int might match the return type of a gcc2
9052 builtin and then its argument prototype would still apply. */
9054 /* The GNU C library defines this for functions which it implements
9055 to always fail with ENOSYS. Some functions are actually named
9056 something starting with __ and the normal name is an alias. */
9057 #if defined (__stub_shmat) || defined (__stub___shmat)
9060 char (*f) () = shmat;
9074 rm -f conftest.$ac_objext conftest$ac_exeext
9075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9076 (eval $ac_link) 2>&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); } &&
9080 { ac_try='test -s conftest$ac_exeext'
9081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085 (exit $ac_status); }; }; then
9086 ac_cv_func_shmat=yes
9088 echo "$as_me: failed program was:" >&5
9089 sed 's/^/| /' conftest.$ac_ext >&5
9093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9095 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9096 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9098 if test $ac_cv_func_shmat = no; then
9099 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9100 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9101 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 ac_check_lib_save_LIBS=$LIBS
9106 cat >conftest.$ac_ext <<_ACEOF
9107 #line $LINENO "configure"
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9114 /* Override any gcc2 internal prototype to avoid an error. */
9118 /* We use char because int might match the return type of a gcc2
9119 builtin and then its argument prototype would still apply. */
9129 rm -f conftest.$ac_objext conftest$ac_exeext
9130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9131 (eval $ac_link) 2>&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } &&
9135 { ac_try='test -s conftest$ac_exeext'
9136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; }; then
9141 ac_cv_lib_ipc_shmat=yes
9143 echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9146 ac_cv_lib_ipc_shmat=no
9148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9149 LIBS=$ac_check_lib_save_LIBS
9151 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9152 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9153 if test $ac_cv_lib_ipc_shmat = yes; then
9154 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9160 # Check for libraries that X11R6 Xt/Xaw programs need.
9161 ac_save_LDFLAGS=$LDFLAGS
9162 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9163 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9164 # check for ICE first), but we must link in the order -lSM -lICE or
9165 # we get undefined symbols. So assume we have SM if we have ICE.
9166 # These have to be linked with before -lX11, unlike the other
9167 # libraries we check for below, so use a different variable.
9168 # John Interrante, Karl Berry
9169 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9170 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9171 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 ac_check_lib_save_LIBS=$LIBS
9175 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9176 cat >conftest.$ac_ext <<_ACEOF
9177 #line $LINENO "configure"
9180 cat confdefs.h >>conftest.$ac_ext
9181 cat >>conftest.$ac_ext <<_ACEOF
9182 /* end confdefs.h. */
9184 /* Override any gcc2 internal prototype to avoid an error. */
9188 /* We use char because int might match the return type of a gcc2
9189 builtin and then its argument prototype would still apply. */
9190 char IceConnectionNumber ();
9194 IceConnectionNumber ();
9199 rm -f conftest.$ac_objext conftest$ac_exeext
9200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9201 (eval $ac_link) 2>&5
9203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9204 (exit $ac_status); } &&
9205 { ac_try='test -s conftest$ac_exeext'
9206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210 (exit $ac_status); }; }; then
9211 ac_cv_lib_ICE_IceConnectionNumber=yes
9213 echo "$as_me: failed program was:" >&5
9214 sed 's/^/| /' conftest.$ac_ext >&5
9216 ac_cv_lib_ICE_IceConnectionNumber=no
9218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9219 LIBS=$ac_check_lib_save_LIBS
9221 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9222 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9223 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9224 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9227 LDFLAGS=$ac_save_LDFLAGS
9287 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9288 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9289 echo "$as_me:$LINENO: checking for $ac_header" >&5
9290 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9291 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9294 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9295 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9297 # Is the header compilable?
9298 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9299 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9300 cat >conftest.$ac_ext <<_ACEOF
9301 #line $LINENO "configure"
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h. */
9307 $ac_includes_default
9308 #include <$ac_header>
9310 rm -f conftest.$ac_objext
9311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9312 (eval $ac_compile) 2>&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } &&
9316 { ac_try='test -s conftest.$ac_objext'
9317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9321 (exit $ac_status); }; }; then
9322 ac_header_compiler=yes
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9327 ac_header_compiler=no
9329 rm -f conftest.$ac_objext conftest.$ac_ext
9330 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9331 echo "${ECHO_T}$ac_header_compiler" >&6
9333 # Is the header present?
9334 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9336 cat >conftest.$ac_ext <<_ACEOF
9337 #line $LINENO "configure"
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9343 #include <$ac_header>
9345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9348 grep -v '^ *+' conftest.er1 >conftest.err
9350 cat conftest.err >&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } >/dev/null; then
9353 if test -s conftest.err; then
9354 ac_cpp_err=$ac_c_preproc_warn_flag
9361 if test -z "$ac_cpp_err"; then
9362 ac_header_preproc=yes
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9367 ac_header_preproc=no
9369 rm -f conftest.err conftest.$ac_ext
9370 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9371 echo "${ECHO_T}$ac_header_preproc" >&6
9373 # So? What about this header?
9374 case $ac_header_compiler:$ac_header_preproc in
9376 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9379 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9382 ## ------------------------------------ ##
9383 ## Report this to bug-autoconf@gnu.org. ##
9384 ## ------------------------------------ ##
9387 sed "s/^/$as_me: WARNING: /" >&2
9390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9398 ## ------------------------------------ ##
9399 ## Report this to bug-autoconf@gnu.org. ##
9400 ## ------------------------------------ ##
9403 sed "s/^/$as_me: WARNING: /" >&2
9406 echo "$as_me:$LINENO: checking for $ac_header" >&5
9407 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9408 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9409 echo $ECHO_N "(cached) $ECHO_C" >&6
9411 eval "$as_ac_Header=$ac_header_preproc"
9413 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9414 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9418 cat >>confdefs.h <<_ACEOF
9419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9426 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9427 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9428 if test "${ac_cv_header_stdc+set}" = set; then
9429 echo $ECHO_N "(cached) $ECHO_C" >&6
9431 cat >conftest.$ac_ext <<_ACEOF
9432 #line $LINENO "configure"
9435 cat confdefs.h >>conftest.$ac_ext
9436 cat >>conftest.$ac_ext <<_ACEOF
9437 /* end confdefs.h. */
9451 rm -f conftest.$ac_objext
9452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9453 (eval $ac_compile) 2>&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } &&
9457 { ac_try='test -s conftest.$ac_objext'
9458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; }; then
9463 ac_cv_header_stdc=yes
9465 echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9468 ac_cv_header_stdc=no
9470 rm -f conftest.$ac_objext conftest.$ac_ext
9472 if test $ac_cv_header_stdc = yes; then
9473 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9474 cat >conftest.$ac_ext <<_ACEOF
9475 #line $LINENO "configure"
9478 cat confdefs.h >>conftest.$ac_ext
9479 cat >>conftest.$ac_ext <<_ACEOF
9480 /* end confdefs.h. */
9484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9485 $EGREP "memchr" >/dev/null 2>&1; then
9488 ac_cv_header_stdc=no
9494 if test $ac_cv_header_stdc = yes; then
9495 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9496 cat >conftest.$ac_ext <<_ACEOF
9497 #line $LINENO "configure"
9500 cat confdefs.h >>conftest.$ac_ext
9501 cat >>conftest.$ac_ext <<_ACEOF
9502 /* end confdefs.h. */
9506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9507 $EGREP "free" >/dev/null 2>&1; then
9510 ac_cv_header_stdc=no
9516 if test $ac_cv_header_stdc = yes; then
9517 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9518 if test "$cross_compiling" = yes; then
9521 cat >conftest.$ac_ext <<_ACEOF
9522 #line $LINENO "configure"
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9529 #if ((' ' & 0x0FF) == 0x020)
9530 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9531 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9533 # define ISLOWER(c) \
9534 (('a' <= (c) && (c) <= 'i') \
9535 || ('j' <= (c) && (c) <= 'r') \
9536 || ('s' <= (c) && (c) <= 'z'))
9537 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9540 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9545 for (i = 0; i < 256; i++)
9546 if (XOR (islower (i), ISLOWER (i))
9547 || toupper (i) != TOUPPER (i))
9552 rm -f conftest$ac_exeext
9553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9554 (eval $ac_link) 2>&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; }; then
9565 echo "$as_me: program exited with status $ac_status" >&5
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9570 ac_cv_header_stdc=no
9572 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9576 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9577 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9578 if test $ac_cv_header_stdc = yes; then
9580 cat >>confdefs.h <<\_ACEOF
9581 #define STDC_HEADERS 1
9586 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9587 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9588 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9589 echo $ECHO_N "(cached) $ECHO_C" >&6
9591 cat >conftest.$ac_ext <<_ACEOF
9592 #line $LINENO "configure"
9595 cat confdefs.h >>conftest.$ac_ext
9596 cat >>conftest.$ac_ext <<_ACEOF
9597 /* end confdefs.h. */
9598 #include <sys/types.h>
9602 return makedev(0, 0);
9607 rm -f conftest.$ac_objext conftest$ac_exeext
9608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9609 (eval $ac_link) 2>&5
9611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9612 (exit $ac_status); } &&
9613 { ac_try='test -s conftest$ac_exeext'
9614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9618 (exit $ac_status); }; }; then
9619 ac_cv_header_sys_types_h_makedev=yes
9621 echo "$as_me: failed program was:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9624 ac_cv_header_sys_types_h_makedev=no
9626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9629 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9630 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9632 if test $ac_cv_header_sys_types_h_makedev = no; then
9633 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9634 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9635 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9636 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9637 echo $ECHO_N "(cached) $ECHO_C" >&6
9639 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9640 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9642 # Is the header compilable?
9643 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9644 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9645 cat >conftest.$ac_ext <<_ACEOF
9646 #line $LINENO "configure"
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9652 $ac_includes_default
9653 #include <sys/mkdev.h>
9655 rm -f conftest.$ac_objext
9656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9657 (eval $ac_compile) 2>&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } &&
9661 { ac_try='test -s conftest.$ac_objext'
9662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); }; }; then
9667 ac_header_compiler=yes
9669 echo "$as_me: failed program was:" >&5
9670 sed 's/^/| /' conftest.$ac_ext >&5
9672 ac_header_compiler=no
9674 rm -f conftest.$ac_objext conftest.$ac_ext
9675 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9676 echo "${ECHO_T}$ac_header_compiler" >&6
9678 # Is the header present?
9679 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9680 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9681 cat >conftest.$ac_ext <<_ACEOF
9682 #line $LINENO "configure"
9685 cat confdefs.h >>conftest.$ac_ext
9686 cat >>conftest.$ac_ext <<_ACEOF
9687 /* end confdefs.h. */
9688 #include <sys/mkdev.h>
9690 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9691 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9693 grep -v '^ *+' conftest.er1 >conftest.err
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } >/dev/null; then
9698 if test -s conftest.err; then
9699 ac_cpp_err=$ac_c_preproc_warn_flag
9706 if test -z "$ac_cpp_err"; then
9707 ac_header_preproc=yes
9709 echo "$as_me: failed program was:" >&5
9710 sed 's/^/| /' conftest.$ac_ext >&5
9712 ac_header_preproc=no
9714 rm -f conftest.err conftest.$ac_ext
9715 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9716 echo "${ECHO_T}$ac_header_preproc" >&6
9718 # So? What about this header?
9719 case $ac_header_compiler:$ac_header_preproc in
9721 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9722 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9723 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9724 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9727 ## ------------------------------------ ##
9728 ## Report this to bug-autoconf@gnu.org. ##
9729 ## ------------------------------------ ##
9732 sed "s/^/$as_me: WARNING: /" >&2
9735 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9736 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9737 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9738 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9739 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9740 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9743 ## ------------------------------------ ##
9744 ## Report this to bug-autoconf@gnu.org. ##
9745 ## ------------------------------------ ##
9748 sed "s/^/$as_me: WARNING: /" >&2
9751 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9752 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9753 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9754 echo $ECHO_N "(cached) $ECHO_C" >&6
9756 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9758 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9759 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9762 if test $ac_cv_header_sys_mkdev_h = yes; then
9764 cat >>confdefs.h <<\_ACEOF
9765 #define MAJOR_IN_MKDEV 1
9772 if test $ac_cv_header_sys_mkdev_h = no; then
9773 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9774 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9775 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9776 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9780 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9782 # Is the header compilable?
9783 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9784 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9785 cat >conftest.$ac_ext <<_ACEOF
9786 #line $LINENO "configure"
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 $ac_includes_default
9793 #include <sys/sysmacros.h>
9795 rm -f conftest.$ac_objext
9796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9797 (eval $ac_compile) 2>&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } &&
9801 { ac_try='test -s conftest.$ac_objext'
9802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; }; then
9807 ac_header_compiler=yes
9809 echo "$as_me: failed program was:" >&5
9810 sed 's/^/| /' conftest.$ac_ext >&5
9812 ac_header_compiler=no
9814 rm -f conftest.$ac_objext conftest.$ac_ext
9815 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9816 echo "${ECHO_T}$ac_header_compiler" >&6
9818 # Is the header present?
9819 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9820 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9821 cat >conftest.$ac_ext <<_ACEOF
9822 #line $LINENO "configure"
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h. */
9828 #include <sys/sysmacros.h>
9830 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9831 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9833 grep -v '^ *+' conftest.er1 >conftest.err
9835 cat conftest.err >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); } >/dev/null; then
9838 if test -s conftest.err; then
9839 ac_cpp_err=$ac_c_preproc_warn_flag
9846 if test -z "$ac_cpp_err"; then
9847 ac_header_preproc=yes
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9852 ac_header_preproc=no
9854 rm -f conftest.err conftest.$ac_ext
9855 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9856 echo "${ECHO_T}$ac_header_preproc" >&6
9858 # So? What about this header?
9859 case $ac_header_compiler:$ac_header_preproc in
9861 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9862 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9863 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9864 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9867 ## ------------------------------------ ##
9868 ## Report this to bug-autoconf@gnu.org. ##
9869 ## ------------------------------------ ##
9872 sed "s/^/$as_me: WARNING: /" >&2
9875 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9876 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9877 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9878 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9879 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9880 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9883 ## ------------------------------------ ##
9884 ## Report this to bug-autoconf@gnu.org. ##
9885 ## ------------------------------------ ##
9888 sed "s/^/$as_me: WARNING: /" >&2
9891 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9892 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9893 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9896 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9898 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9899 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9902 if test $ac_cv_header_sys_sysmacros_h = yes; then
9904 cat >>confdefs.h <<\_ACEOF
9905 #define MAJOR_IN_SYSMACROS 1
9920 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9921 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9922 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9923 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9924 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 cat >conftest.$ac_ext <<_ACEOF
9928 #line $LINENO "configure"
9931 cat confdefs.h >>conftest.$ac_ext
9932 cat >>conftest.$ac_ext <<_ACEOF
9933 /* end confdefs.h. */
9934 #include <sys/types.h>
9946 rm -f conftest.$ac_objext
9947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9948 (eval $ac_compile) 2>&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } &&
9952 { ac_try='test -s conftest.$ac_objext'
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; }; then
9958 eval "$as_ac_Header=yes"
9960 echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9963 eval "$as_ac_Header=no"
9965 rm -f conftest.$ac_objext conftest.$ac_ext
9967 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9968 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9970 cat >>confdefs.h <<_ACEOF
9971 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9974 ac_header_dirent=$ac_hdr; break
9978 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9979 if test $ac_header_dirent = dirent.h; then
9980 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9981 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9982 if test "${ac_cv_search_opendir+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9985 ac_func_search_save_LIBS=$LIBS
9986 ac_cv_search_opendir=no
9987 cat >conftest.$ac_ext <<_ACEOF
9988 #line $LINENO "configure"
9991 cat confdefs.h >>conftest.$ac_ext
9992 cat >>conftest.$ac_ext <<_ACEOF
9993 /* end confdefs.h. */
9995 /* Override any gcc2 internal prototype to avoid an error. */
9999 /* We use char because int might match the return type of a gcc2
10000 builtin and then its argument prototype would still apply. */
10010 rm -f conftest.$ac_objext conftest$ac_exeext
10011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10012 (eval $ac_link) 2>&5
10014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10015 (exit $ac_status); } &&
10016 { ac_try='test -s conftest$ac_exeext'
10017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10018 (eval $ac_try) 2>&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); }; }; then
10022 ac_cv_search_opendir="none required"
10024 echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.$ac_ext >&5
10028 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10029 if test "$ac_cv_search_opendir" = no; then
10030 for ac_lib in dir; do
10031 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10032 cat >conftest.$ac_ext <<_ACEOF
10033 #line $LINENO "configure"
10036 cat confdefs.h >>conftest.$ac_ext
10037 cat >>conftest.$ac_ext <<_ACEOF
10038 /* end confdefs.h. */
10040 /* Override any gcc2 internal prototype to avoid an error. */
10044 /* We use char because int might match the return type of a gcc2
10045 builtin and then its argument prototype would still apply. */
10055 rm -f conftest.$ac_objext conftest$ac_exeext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10057 (eval $ac_link) 2>&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 (exit $ac_status); } &&
10061 { ac_try='test -s conftest$ac_exeext'
10062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10063 (eval $ac_try) 2>&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); }; }; then
10067 ac_cv_search_opendir="-l$ac_lib"
10070 echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10077 LIBS=$ac_func_search_save_LIBS
10079 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10080 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10081 if test "$ac_cv_search_opendir" != no; then
10082 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10087 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10088 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10089 if test "${ac_cv_search_opendir+set}" = set; then
10090 echo $ECHO_N "(cached) $ECHO_C" >&6
10092 ac_func_search_save_LIBS=$LIBS
10093 ac_cv_search_opendir=no
10094 cat >conftest.$ac_ext <<_ACEOF
10095 #line $LINENO "configure"
10098 cat confdefs.h >>conftest.$ac_ext
10099 cat >>conftest.$ac_ext <<_ACEOF
10100 /* end confdefs.h. */
10102 /* Override any gcc2 internal prototype to avoid an error. */
10106 /* We use char because int might match the return type of a gcc2
10107 builtin and then its argument prototype would still apply. */
10117 rm -f conftest.$ac_objext conftest$ac_exeext
10118 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10119 (eval $ac_link) 2>&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); } &&
10123 { ac_try='test -s conftest$ac_exeext'
10124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10125 (eval $ac_try) 2>&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); }; }; then
10129 ac_cv_search_opendir="none required"
10131 echo "$as_me: failed program was:" >&5
10132 sed 's/^/| /' conftest.$ac_ext >&5
10135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10136 if test "$ac_cv_search_opendir" = no; then
10137 for ac_lib in x; do
10138 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10139 cat >conftest.$ac_ext <<_ACEOF
10140 #line $LINENO "configure"
10143 cat confdefs.h >>conftest.$ac_ext
10144 cat >>conftest.$ac_ext <<_ACEOF
10145 /* end confdefs.h. */
10147 /* Override any gcc2 internal prototype to avoid an error. */
10151 /* We use char because int might match the return type of a gcc2
10152 builtin and then its argument prototype would still apply. */
10162 rm -f conftest.$ac_objext conftest$ac_exeext
10163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10164 (eval $ac_link) 2>&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } &&
10168 { ac_try='test -s conftest$ac_exeext'
10169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170 (eval $ac_try) 2>&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); }; }; then
10174 ac_cv_search_opendir="-l$ac_lib"
10177 echo "$as_me: failed program was:" >&5
10178 sed 's/^/| /' conftest.$ac_ext >&5
10181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10184 LIBS=$ac_func_search_save_LIBS
10186 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10187 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10188 if test "$ac_cv_search_opendir" != no; then
10189 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10195 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10196 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10197 if test "${ac_cv_header_stat_broken+set}" = set; then
10198 echo $ECHO_N "(cached) $ECHO_C" >&6
10200 cat >conftest.$ac_ext <<_ACEOF
10201 #line $LINENO "configure"
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h. */
10207 #include <sys/types.h>
10208 #include <sys/stat.h>
10210 #if defined(S_ISBLK) && defined(S_IFDIR)
10211 # if S_ISBLK (S_IFDIR)
10216 #if defined(S_ISBLK) && defined(S_IFCHR)
10217 # if S_ISBLK (S_IFCHR)
10222 #if defined(S_ISLNK) && defined(S_IFREG)
10223 # if S_ISLNK (S_IFREG)
10228 #if defined(S_ISSOCK) && defined(S_IFREG)
10229 # if S_ISSOCK (S_IFREG)
10235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10236 $EGREP "You lose" >/dev/null 2>&1; then
10237 ac_cv_header_stat_broken=yes
10239 ac_cv_header_stat_broken=no
10244 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10245 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10246 if test $ac_cv_header_stat_broken = yes; then
10248 cat >>confdefs.h <<\_ACEOF
10249 #define STAT_MACROS_BROKEN 1
10254 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10255 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10256 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10257 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 cat >conftest.$ac_ext <<_ACEOF
10260 #line $LINENO "configure"
10263 cat confdefs.h >>conftest.$ac_ext
10264 cat >>conftest.$ac_ext <<_ACEOF
10265 /* end confdefs.h. */
10266 #include <sys/types.h>
10267 #include <sys/wait.h>
10268 #ifndef WEXITSTATUS
10269 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10272 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10280 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10285 rm -f conftest.$ac_objext
10286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10287 (eval $ac_compile) 2>&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); } &&
10291 { ac_try='test -s conftest.$ac_objext'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; }; then
10297 ac_cv_header_sys_wait_h=yes
10299 echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10302 ac_cv_header_sys_wait_h=no
10304 rm -f conftest.$ac_objext conftest.$ac_ext
10306 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10307 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10308 if test $ac_cv_header_sys_wait_h = yes; then
10310 cat >>confdefs.h <<\_ACEOF
10311 #define HAVE_SYS_WAIT_H 1
10316 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10317 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10318 if test "${ac_cv_header_time+set}" = set; then
10319 echo $ECHO_N "(cached) $ECHO_C" >&6
10321 cat >conftest.$ac_ext <<_ACEOF
10322 #line $LINENO "configure"
10325 cat confdefs.h >>conftest.$ac_ext
10326 cat >>conftest.$ac_ext <<_ACEOF
10327 /* end confdefs.h. */
10328 #include <sys/types.h>
10329 #include <sys/time.h>
10335 if ((struct tm *) 0)
10341 rm -f conftest.$ac_objext
10342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10343 (eval $ac_compile) 2>&5
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); } &&
10347 { ac_try='test -s conftest.$ac_objext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10353 ac_cv_header_time=yes
10355 echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10358 ac_cv_header_time=no
10360 rm -f conftest.$ac_objext conftest.$ac_ext
10362 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10363 echo "${ECHO_T}$ac_cv_header_time" >&6
10364 if test $ac_cv_header_time = yes; then
10366 cat >>confdefs.h <<\_ACEOF
10367 #define TIME_WITH_SYS_TIME 1
10373 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10374 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10375 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10376 echo $ECHO_N "(cached) $ECHO_C" >&6
10378 cat >conftest.$ac_ext <<_ACEOF
10379 #line $LINENO "configure"
10382 cat confdefs.h >>conftest.$ac_ext
10383 cat >>conftest.$ac_ext <<_ACEOF
10384 /* end confdefs.h. */
10385 $ac_includes_default
10389 static struct stat ac_aggr;
10390 if (ac_aggr.st_blksize)
10396 rm -f conftest.$ac_objext
10397 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10398 (eval $ac_compile) 2>&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } &&
10402 { ac_try='test -s conftest.$ac_objext'
10403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10404 (eval $ac_try) 2>&5
10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407 (exit $ac_status); }; }; then
10408 ac_cv_member_struct_stat_st_blksize=yes
10410 echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10413 cat >conftest.$ac_ext <<_ACEOF
10414 #line $LINENO "configure"
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h. */
10420 $ac_includes_default
10424 static struct stat ac_aggr;
10425 if (sizeof ac_aggr.st_blksize)
10431 rm -f conftest.$ac_objext
10432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10433 (eval $ac_compile) 2>&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } &&
10437 { ac_try='test -s conftest.$ac_objext'
10438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10439 (eval $ac_try) 2>&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); }; }; then
10443 ac_cv_member_struct_stat_st_blksize=yes
10445 echo "$as_me: failed program was:" >&5
10446 sed 's/^/| /' conftest.$ac_ext >&5
10448 ac_cv_member_struct_stat_st_blksize=no
10450 rm -f conftest.$ac_objext conftest.$ac_ext
10452 rm -f conftest.$ac_objext conftest.$ac_ext
10454 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10455 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10456 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10458 cat >>confdefs.h <<_ACEOF
10459 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10463 cat >>confdefs.h <<\_ACEOF
10464 #define HAVE_ST_BLKSIZE 1
10470 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10471 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10472 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 cat >conftest.$ac_ext <<_ACEOF
10476 #line $LINENO "configure"
10479 cat confdefs.h >>conftest.$ac_ext
10480 cat >>conftest.$ac_ext <<_ACEOF
10481 /* end confdefs.h. */
10482 $ac_includes_default
10486 static struct stat ac_aggr;
10487 if (ac_aggr.st_blocks)
10493 rm -f conftest.$ac_objext
10494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10495 (eval $ac_compile) 2>&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } &&
10499 { ac_try='test -s conftest.$ac_objext'
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; }; then
10505 ac_cv_member_struct_stat_st_blocks=yes
10507 echo "$as_me: failed program was:" >&5
10508 sed 's/^/| /' conftest.$ac_ext >&5
10510 cat >conftest.$ac_ext <<_ACEOF
10511 #line $LINENO "configure"
10514 cat confdefs.h >>conftest.$ac_ext
10515 cat >>conftest.$ac_ext <<_ACEOF
10516 /* end confdefs.h. */
10517 $ac_includes_default
10521 static struct stat ac_aggr;
10522 if (sizeof ac_aggr.st_blocks)
10528 rm -f conftest.$ac_objext
10529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10530 (eval $ac_compile) 2>&5
10532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533 (exit $ac_status); } &&
10534 { ac_try='test -s conftest.$ac_objext'
10535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10536 (eval $ac_try) 2>&5
10538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10539 (exit $ac_status); }; }; then
10540 ac_cv_member_struct_stat_st_blocks=yes
10542 echo "$as_me: failed program was:" >&5
10543 sed 's/^/| /' conftest.$ac_ext >&5
10545 ac_cv_member_struct_stat_st_blocks=no
10547 rm -f conftest.$ac_objext conftest.$ac_ext
10549 rm -f conftest.$ac_objext conftest.$ac_ext
10551 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10552 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10553 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10555 cat >>confdefs.h <<_ACEOF
10556 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10560 cat >>confdefs.h <<\_ACEOF
10561 #define HAVE_ST_BLOCKS 1
10565 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10569 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10570 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10571 if test "${ac_cv_struct_tm+set}" = set; then
10572 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 cat >conftest.$ac_ext <<_ACEOF
10575 #line $LINENO "configure"
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h. */
10581 #include <sys/types.h>
10587 struct tm *tp; tp->tm_sec;
10592 rm -f conftest.$ac_objext
10593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10594 (eval $ac_compile) 2>&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } &&
10598 { ac_try='test -s conftest.$ac_objext'
10599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10600 (eval $ac_try) 2>&5
10602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603 (exit $ac_status); }; }; then
10604 ac_cv_struct_tm=time.h
10606 echo "$as_me: failed program was:" >&5
10607 sed 's/^/| /' conftest.$ac_ext >&5
10609 ac_cv_struct_tm=sys/time.h
10611 rm -f conftest.$ac_objext conftest.$ac_ext
10613 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10614 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10615 if test $ac_cv_struct_tm = sys/time.h; then
10617 cat >>confdefs.h <<\_ACEOF
10618 #define TM_IN_SYS_TIME 1
10623 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10624 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10625 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10626 echo $ECHO_N "(cached) $ECHO_C" >&6
10628 cat >conftest.$ac_ext <<_ACEOF
10629 #line $LINENO "configure"
10632 cat confdefs.h >>conftest.$ac_ext
10633 cat >>conftest.$ac_ext <<_ACEOF
10634 /* end confdefs.h. */
10635 #include <sys/types.h>
10636 #include <$ac_cv_struct_tm>
10642 static struct tm ac_aggr;
10643 if (ac_aggr.tm_zone)
10649 rm -f conftest.$ac_objext
10650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10651 (eval $ac_compile) 2>&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } &&
10655 { ac_try='test -s conftest.$ac_objext'
10656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657 (eval $ac_try) 2>&5
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }; }; then
10661 ac_cv_member_struct_tm_tm_zone=yes
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10666 cat >conftest.$ac_ext <<_ACEOF
10667 #line $LINENO "configure"
10670 cat confdefs.h >>conftest.$ac_ext
10671 cat >>conftest.$ac_ext <<_ACEOF
10672 /* end confdefs.h. */
10673 #include <sys/types.h>
10674 #include <$ac_cv_struct_tm>
10680 static struct tm ac_aggr;
10681 if (sizeof ac_aggr.tm_zone)
10687 rm -f conftest.$ac_objext
10688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10689 (eval $ac_compile) 2>&5
10691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692 (exit $ac_status); } &&
10693 { ac_try='test -s conftest.$ac_objext'
10694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10695 (eval $ac_try) 2>&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); }; }; then
10699 ac_cv_member_struct_tm_tm_zone=yes
10701 echo "$as_me: failed program was:" >&5
10702 sed 's/^/| /' conftest.$ac_ext >&5
10704 ac_cv_member_struct_tm_tm_zone=no
10706 rm -f conftest.$ac_objext conftest.$ac_ext
10708 rm -f conftest.$ac_objext conftest.$ac_ext
10710 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10711 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10712 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10714 cat >>confdefs.h <<_ACEOF
10715 #define HAVE_STRUCT_TM_TM_ZONE 1
10721 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10723 cat >>confdefs.h <<\_ACEOF
10724 #define HAVE_TM_ZONE 1
10728 echo "$as_me:$LINENO: checking for tzname" >&5
10729 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10730 if test "${ac_cv_var_tzname+set}" = set; then
10731 echo $ECHO_N "(cached) $ECHO_C" >&6
10733 cat >conftest.$ac_ext <<_ACEOF
10734 #line $LINENO "configure"
10737 cat confdefs.h >>conftest.$ac_ext
10738 cat >>conftest.$ac_ext <<_ACEOF
10739 /* end confdefs.h. */
10741 #ifndef tzname /* For SGI. */
10742 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10753 rm -f conftest.$ac_objext conftest$ac_exeext
10754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10755 (eval $ac_link) 2>&5
10757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10758 (exit $ac_status); } &&
10759 { ac_try='test -s conftest$ac_exeext'
10760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10761 (eval $ac_try) 2>&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); }; }; then
10765 ac_cv_var_tzname=yes
10767 echo "$as_me: failed program was:" >&5
10768 sed 's/^/| /' conftest.$ac_ext >&5
10770 ac_cv_var_tzname=no
10772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10774 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10775 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10776 if test $ac_cv_var_tzname = yes; then
10778 cat >>confdefs.h <<\_ACEOF
10779 #define HAVE_TZNAME 1
10786 echo "$as_me:$LINENO: checking for utime.h" >&5
10787 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10788 if test "${ba_cv_header_utime_h+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 cat >conftest.$ac_ext <<_ACEOF
10792 #line $LINENO "configure"
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h. */
10799 #include <sys/types.h>
10809 rm -f conftest.$ac_objext
10810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10811 (eval $ac_compile) 2>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } &&
10815 { ac_try='test -s conftest.$ac_objext'
10816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10817 (eval $ac_try) 2>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; }; then
10821 ba_cv_header_utime_h=yes
10823 echo "$as_me: failed program was:" >&5
10824 sed 's/^/| /' conftest.$ac_ext >&5
10826 ba_cv_header_utime_h=no
10828 rm -f conftest.$ac_objext conftest.$ac_ext
10830 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10831 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10832 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10833 #define HAVE_UTIME_H 1
10837 echo "$as_me:$LINENO: checking for socklen_t" >&5
10838 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10839 if test "${ba_cv_header_socklen_t+set}" = set; then
10840 echo $ECHO_N "(cached) $ECHO_C" >&6
10842 cat >conftest.$ac_ext <<_ACEOF
10843 #line $LINENO "configure"
10846 cat confdefs.h >>conftest.$ac_ext
10847 cat >>conftest.$ac_ext <<_ACEOF
10848 /* end confdefs.h. */
10850 #include <sys/types.h>
10851 #include <sys/socket.h>
10860 rm -f conftest.$ac_objext
10861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10862 (eval $ac_compile) 2>&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); } &&
10866 { ac_try='test -s conftest.$ac_objext'
10867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868 (eval $ac_try) 2>&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); }; }; then
10872 ba_cv_header_socklen_t=yes
10874 echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10877 ba_cv_header_socklen_t=no
10879 rm -f conftest.$ac_objext conftest.$ac_ext
10881 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10882 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10883 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10884 #define HAVE_SOCKLEN_T 1
10888 echo "$as_me:$LINENO: checking for bigendian" >&5
10889 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10890 if test "${ba_cv_bigendian+set}" = set; then
10891 echo $ECHO_N "(cached) $ECHO_C" >&6
10893 if test "$cross_compiling" = yes; then
10896 cat >conftest.$ac_ext <<_ACEOF
10897 #line $LINENO "configure"
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h. */
10903 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10905 rm -f conftest$ac_exeext
10906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10907 (eval $ac_link) 2>&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10912 (eval $ac_try) 2>&5
10914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10915 (exit $ac_status); }; }; then
10916 ba_cv_bigendian=yes
10918 echo "$as_me: program exited with status $ac_status" >&5
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10922 ( exit $ac_status )
10925 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10928 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10929 echo "${ECHO_T}$ba_cv_bigendian" >&6
10930 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10931 #define HAVE_BIGENDIAN 1
10936 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10937 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10938 if test "${ac_cv_c_const+set}" = set; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 cat >conftest.$ac_ext <<_ACEOF
10942 #line $LINENO "configure"
10945 cat confdefs.h >>conftest.$ac_ext
10946 cat >>conftest.$ac_ext <<_ACEOF
10947 /* end confdefs.h. */
10952 /* FIXME: Include the comments suggested by Paul. */
10953 #ifndef __cplusplus
10954 /* Ultrix mips cc rejects this. */
10955 typedef int charset[2];
10957 /* SunOS 4.1.1 cc rejects this. */
10958 char const *const *ccp;
10960 /* NEC SVR4.0.2 mips cc rejects this. */
10961 struct point {int x, y;};
10962 static struct point const zero = {0,0};
10963 /* AIX XL C 1.02.0.0 rejects this.
10964 It does not let you subtract one const X* pointer from another in
10965 an arm of an if-expression whose if-part is not a constant
10967 const char *g = "string";
10968 ccp = &g + (g ? g-g : 0);
10969 /* HPUX 7.0 cc rejects these. */
10972 ccp = (char const *const *) p;
10973 { /* SCO 3.2v4 cc rejects this. */
10975 char const *s = 0 ? (char *) 0 : (char const *) 0;
10979 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10980 int x[] = {25, 17};
10981 const int *foo = &x[0];
10984 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10985 typedef const int *iptr;
10989 { /* AIX XL C 1.02.0.0 rejects this saying
10990 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10991 struct s { int j; const int *ap[3]; };
10992 struct s *b; b->j = 5;
10994 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10995 const int foo = 10;
11003 rm -f conftest.$ac_objext
11004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11005 (eval $ac_compile) 2>&5
11007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008 (exit $ac_status); } &&
11009 { ac_try='test -s conftest.$ac_objext'
11010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11011 (eval $ac_try) 2>&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); }; }; then
11017 echo "$as_me: failed program was:" >&5
11018 sed 's/^/| /' conftest.$ac_ext >&5
11022 rm -f conftest.$ac_objext conftest.$ac_ext
11024 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11025 echo "${ECHO_T}$ac_cv_c_const" >&6
11026 if test $ac_cv_c_const = no; then
11028 cat >>confdefs.h <<\_ACEOF
11036 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11037 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11039 # The order of these tests is important.
11040 cat >conftest.$ac_ext <<_ACEOF
11041 #line $LINENO "configure"
11044 cat confdefs.h >>conftest.$ac_ext
11045 cat >>conftest.$ac_ext <<_ACEOF
11046 /* end confdefs.h. */
11047 #include <sys/statvfs.h>
11048 #include <sys/fstyp.h>
11050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11053 grep -v '^ *+' conftest.er1 >conftest.err
11055 cat conftest.err >&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } >/dev/null; then
11058 if test -s conftest.err; then
11059 ac_cpp_err=$ac_c_preproc_warn_flag
11066 if test -z "$ac_cpp_err"; then
11067 cat >>confdefs.h <<\_ACEOF
11068 #define FSTYPE_STATVFS 1
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11077 rm -f conftest.err conftest.$ac_ext
11078 if test $fstype = no; then
11079 cat >conftest.$ac_ext <<_ACEOF
11080 #line $LINENO "configure"
11083 cat confdefs.h >>conftest.$ac_ext
11084 cat >>conftest.$ac_ext <<_ACEOF
11085 /* end confdefs.h. */
11086 #include <sys/statfs.h>
11087 #include <sys/fstyp.h>
11089 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11090 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11092 grep -v '^ *+' conftest.er1 >conftest.err
11094 cat conftest.err >&5
11095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } >/dev/null; then
11097 if test -s conftest.err; then
11098 ac_cpp_err=$ac_c_preproc_warn_flag
11105 if test -z "$ac_cpp_err"; then
11106 cat >>confdefs.h <<\_ACEOF
11107 #define FSTYPE_USG_STATFS 1
11111 echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11116 rm -f conftest.err conftest.$ac_ext
11118 if test $fstype = no; then
11119 cat >conftest.$ac_ext <<_ACEOF
11120 #line $LINENO "configure"
11123 cat confdefs.h >>conftest.$ac_ext
11124 cat >>conftest.$ac_ext <<_ACEOF
11125 /* end confdefs.h. */
11126 #include <sys/statfs.h>
11127 #include <sys/vmount.h>
11129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11132 grep -v '^ *+' conftest.er1 >conftest.err
11134 cat conftest.err >&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } >/dev/null; then
11137 if test -s conftest.err; then
11138 ac_cpp_err=$ac_c_preproc_warn_flag
11145 if test -z "$ac_cpp_err"; then
11146 cat >>confdefs.h <<\_ACEOF
11147 #define FSTYPE_AIX_STATFS 1
11151 echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.$ac_ext >&5
11156 rm -f conftest.err conftest.$ac_ext
11158 if test $fstype = no; then
11159 cat >conftest.$ac_ext <<_ACEOF
11160 #line $LINENO "configure"
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11166 #include <mntent.h>
11168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11169 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11171 grep -v '^ *+' conftest.er1 >conftest.err
11173 cat conftest.err >&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } >/dev/null; then
11176 if test -s conftest.err; then
11177 ac_cpp_err=$ac_c_preproc_warn_flag
11184 if test -z "$ac_cpp_err"; then
11185 cat >>confdefs.h <<\_ACEOF
11186 #define FSTYPE_MNTENT 1
11190 echo "$as_me: failed program was:" >&5
11191 sed 's/^/| /' conftest.$ac_ext >&5
11195 rm -f conftest.err conftest.$ac_ext
11197 if test $fstype = no; then
11198 cat >conftest.$ac_ext <<_ACEOF
11199 #line $LINENO "configure"
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h. */
11205 #include <sys/mount.h>
11208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11209 $EGREP "f_type;" >/dev/null 2>&1; then
11210 cat >>confdefs.h <<\_ACEOF
11211 #define FSTYPE_STATFS 1
11218 if test $fstype = no; then
11219 cat >conftest.$ac_ext <<_ACEOF
11220 #line $LINENO "configure"
11223 cat confdefs.h >>conftest.$ac_ext
11224 cat >>conftest.$ac_ext <<_ACEOF
11225 /* end confdefs.h. */
11226 #include <sys/mount.h>
11227 #include <sys/fs_types.h>
11229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11232 grep -v '^ *+' conftest.er1 >conftest.err
11234 cat conftest.err >&5
11235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } >/dev/null; then
11237 if test -s conftest.err; then
11238 ac_cpp_err=$ac_c_preproc_warn_flag
11245 if test -z "$ac_cpp_err"; then
11246 cat >>confdefs.h <<\_ACEOF
11247 #define FSTYPE_GETMNT 1
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11256 rm -f conftest.err conftest.$ac_ext
11258 echo "$as_me:$LINENO: result: $fstype" >&5
11259 echo "${ECHO_T}$fstype" >&6
11261 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11262 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11263 if test "${ac_cv_type_signal+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 cat >conftest.$ac_ext <<_ACEOF
11267 #line $LINENO "configure"
11270 cat confdefs.h >>conftest.$ac_ext
11271 cat >>conftest.$ac_ext <<_ACEOF
11272 /* end confdefs.h. */
11273 #include <sys/types.h>
11274 #include <signal.h>
11279 extern "C" void (*signal (int, void (*)(int)))(int);
11281 void (*signal ()) ();
11292 rm -f conftest.$ac_objext
11293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11294 (eval $ac_compile) 2>&5
11296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11297 (exit $ac_status); } &&
11298 { ac_try='test -s conftest.$ac_objext'
11299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11300 (eval $ac_try) 2>&5
11302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11303 (exit $ac_status); }; }; then
11304 ac_cv_type_signal=void
11306 echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.$ac_ext >&5
11309 ac_cv_type_signal=int
11311 rm -f conftest.$ac_objext conftest.$ac_ext
11313 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11314 echo "${ECHO_T}$ac_cv_type_signal" >&6
11316 cat >>confdefs.h <<_ACEOF
11317 #define RETSIGTYPE $ac_cv_type_signal
11322 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11323 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11324 if test "${bash_cv_signal_vintage+set}" = set; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
11328 cat >conftest.$ac_ext <<_ACEOF
11329 #line $LINENO "configure"
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11335 #include <signal.h>
11341 struct sigaction sa;
11342 sigemptyset(&ss); sigsuspend(&ss);
11343 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11344 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11350 rm -f conftest.$ac_objext conftest$ac_exeext
11351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11352 (eval $ac_link) 2>&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } &&
11356 { ac_try='test -s conftest$ac_exeext'
11357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358 (eval $ac_try) 2>&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); }; }; then
11362 bash_cv_signal_vintage=posix
11364 echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11368 cat >conftest.$ac_ext <<_ACEOF
11369 #line $LINENO "configure"
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11375 #include <signal.h>
11380 int mask = sigmask(SIGINT);
11381 sigsetmask(mask); sigblock(mask); sigpause(mask);
11387 rm -f conftest.$ac_objext conftest$ac_exeext
11388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11389 (eval $ac_link) 2>&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } &&
11393 { ac_try='test -s conftest$ac_exeext'
11394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11395 (eval $ac_try) 2>&5
11397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11398 (exit $ac_status); }; }; then
11399 bash_cv_signal_vintage=4.2bsd
11401 echo "$as_me: failed program was:" >&5
11402 sed 's/^/| /' conftest.$ac_ext >&5
11405 cat >conftest.$ac_ext <<_ACEOF
11406 #line $LINENO "configure"
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11413 #include <signal.h>
11414 RETSIGTYPE foo() { }
11419 int mask = sigmask(SIGINT);
11420 sigset(SIGINT, foo); sigrelse(SIGINT);
11421 sighold(SIGINT); sigpause(SIGINT);
11427 rm -f conftest.$ac_objext conftest$ac_exeext
11428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11429 (eval $ac_link) 2>&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } &&
11433 { ac_try='test -s conftest$ac_exeext'
11434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11435 (eval $ac_try) 2>&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; }; then
11439 bash_cv_signal_vintage=svr3
11441 echo "$as_me: failed program was:" >&5
11442 sed 's/^/| /' conftest.$ac_ext >&5
11444 bash_cv_signal_vintage=v7
11447 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11457 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11458 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11459 if test "$bash_cv_signal_vintage" = posix; then
11460 cat >>confdefs.h <<\_ACEOF
11461 #define HAVE_POSIX_SIGNALS 1
11464 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11465 cat >>confdefs.h <<\_ACEOF
11466 #define HAVE_BSD_SIGNALS 1
11469 elif test "$bash_cv_signal_vintage" = svr3; then
11470 cat >>confdefs.h <<\_ACEOF
11471 #define HAVE_USG_SIGHOLD 1
11476 echo "$as_me:$LINENO: checking for mode_t" >&5
11477 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11478 if test "${ac_cv_type_mode_t+set}" = set; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11481 cat >conftest.$ac_ext <<_ACEOF
11482 #line $LINENO "configure"
11485 cat confdefs.h >>conftest.$ac_ext
11486 cat >>conftest.$ac_ext <<_ACEOF
11487 /* end confdefs.h. */
11488 $ac_includes_default
11494 if (sizeof (mode_t))
11500 rm -f conftest.$ac_objext
11501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11502 (eval $ac_compile) 2>&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } &&
11506 { ac_try='test -s conftest.$ac_objext'
11507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11508 (eval $ac_try) 2>&5
11510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11511 (exit $ac_status); }; }; then
11512 ac_cv_type_mode_t=yes
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11517 ac_cv_type_mode_t=no
11519 rm -f conftest.$ac_objext conftest.$ac_ext
11521 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11522 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11523 if test $ac_cv_type_mode_t = yes; then
11527 cat >>confdefs.h <<_ACEOF
11533 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11534 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11535 if test "${ac_cv_type_uid_t+set}" = set; then
11536 echo $ECHO_N "(cached) $ECHO_C" >&6
11538 cat >conftest.$ac_ext <<_ACEOF
11539 #line $LINENO "configure"
11542 cat confdefs.h >>conftest.$ac_ext
11543 cat >>conftest.$ac_ext <<_ACEOF
11544 /* end confdefs.h. */
11545 #include <sys/types.h>
11548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11549 $EGREP "uid_t" >/dev/null 2>&1; then
11550 ac_cv_type_uid_t=yes
11552 ac_cv_type_uid_t=no
11557 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11558 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11559 if test $ac_cv_type_uid_t = no; then
11561 cat >>confdefs.h <<\_ACEOF
11566 cat >>confdefs.h <<\_ACEOF
11572 echo "$as_me:$LINENO: checking for size_t" >&5
11573 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11574 if test "${ac_cv_type_size_t+set}" = set; then
11575 echo $ECHO_N "(cached) $ECHO_C" >&6
11577 cat >conftest.$ac_ext <<_ACEOF
11578 #line $LINENO "configure"
11581 cat confdefs.h >>conftest.$ac_ext
11582 cat >>conftest.$ac_ext <<_ACEOF
11583 /* end confdefs.h. */
11584 $ac_includes_default
11590 if (sizeof (size_t))
11596 rm -f conftest.$ac_objext
11597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11598 (eval $ac_compile) 2>&5
11600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11601 (exit $ac_status); } &&
11602 { ac_try='test -s conftest.$ac_objext'
11603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11604 (eval $ac_try) 2>&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); }; }; then
11608 ac_cv_type_size_t=yes
11610 echo "$as_me: failed program was:" >&5
11611 sed 's/^/| /' conftest.$ac_ext >&5
11613 ac_cv_type_size_t=no
11615 rm -f conftest.$ac_objext conftest.$ac_ext
11617 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11618 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11619 if test $ac_cv_type_size_t = yes; then
11623 cat >>confdefs.h <<_ACEOF
11624 #define size_t unsigned
11629 echo "$as_me:$LINENO: checking for pid_t" >&5
11630 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11631 if test "${ac_cv_type_pid_t+set}" = set; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 cat >conftest.$ac_ext <<_ACEOF
11635 #line $LINENO "configure"
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11641 $ac_includes_default
11647 if (sizeof (pid_t))
11653 rm -f conftest.$ac_objext
11654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11655 (eval $ac_compile) 2>&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } &&
11659 { ac_try='test -s conftest.$ac_objext'
11660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; }; then
11665 ac_cv_type_pid_t=yes
11667 echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11670 ac_cv_type_pid_t=no
11672 rm -f conftest.$ac_objext conftest.$ac_ext
11674 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11675 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11676 if test $ac_cv_type_pid_t = yes; then
11680 cat >>confdefs.h <<_ACEOF
11686 echo "$as_me:$LINENO: checking for off_t" >&5
11687 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11688 if test "${ac_cv_type_off_t+set}" = set; then
11689 echo $ECHO_N "(cached) $ECHO_C" >&6
11691 cat >conftest.$ac_ext <<_ACEOF
11692 #line $LINENO "configure"
11695 cat confdefs.h >>conftest.$ac_ext
11696 cat >>conftest.$ac_ext <<_ACEOF
11697 /* end confdefs.h. */
11698 $ac_includes_default
11704 if (sizeof (off_t))
11710 rm -f conftest.$ac_objext
11711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11712 (eval $ac_compile) 2>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try='test -s conftest.$ac_objext'
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; }; then
11722 ac_cv_type_off_t=yes
11724 echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11727 ac_cv_type_off_t=no
11729 rm -f conftest.$ac_objext conftest.$ac_ext
11731 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11732 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11733 if test $ac_cv_type_off_t = yes; then
11737 cat >>confdefs.h <<_ACEOF
11743 echo "$as_me:$LINENO: checking for ino_t" >&5
11744 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11745 if test "${ac_cv_type_ino_t+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 cat >conftest.$ac_ext <<_ACEOF
11749 #line $LINENO "configure"
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h. */
11755 $ac_includes_default
11761 if (sizeof (ino_t))
11767 rm -f conftest.$ac_objext
11768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11769 (eval $ac_compile) 2>&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } &&
11773 { ac_try='test -s conftest.$ac_objext'
11774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775 (eval $ac_try) 2>&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; }; then
11779 ac_cv_type_ino_t=yes
11781 echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11784 ac_cv_type_ino_t=no
11786 rm -f conftest.$ac_objext conftest.$ac_ext
11788 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11789 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11790 if test $ac_cv_type_ino_t = yes; then
11794 cat >>confdefs.h <<_ACEOF
11795 #define ino_t unsigned long
11800 echo "$as_me:$LINENO: checking for dev_t" >&5
11801 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11802 if test "${ac_cv_type_dev_t+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11805 cat >conftest.$ac_ext <<_ACEOF
11806 #line $LINENO "configure"
11809 cat confdefs.h >>conftest.$ac_ext
11810 cat >>conftest.$ac_ext <<_ACEOF
11811 /* end confdefs.h. */
11812 $ac_includes_default
11818 if (sizeof (dev_t))
11824 rm -f conftest.$ac_objext
11825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11826 (eval $ac_compile) 2>&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); } &&
11830 { ac_try='test -s conftest.$ac_objext'
11831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832 (eval $ac_try) 2>&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; }; then
11836 ac_cv_type_dev_t=yes
11838 echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11841 ac_cv_type_dev_t=no
11843 rm -f conftest.$ac_objext conftest.$ac_ext
11845 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11846 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11847 if test $ac_cv_type_dev_t = yes; then
11851 cat >>confdefs.h <<_ACEOF
11852 #define dev_t unsigned long
11857 echo "$as_me:$LINENO: checking for daddr_t" >&5
11858 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11859 if test "${ac_cv_type_daddr_t+set}" = set; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11862 cat >conftest.$ac_ext <<_ACEOF
11863 #line $LINENO "configure"
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869 $ac_includes_default
11875 if (sizeof (daddr_t))
11881 rm -f conftest.$ac_objext
11882 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11883 (eval $ac_compile) 2>&5
11885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886 (exit $ac_status); } &&
11887 { ac_try='test -s conftest.$ac_objext'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; }; then
11893 ac_cv_type_daddr_t=yes
11895 echo "$as_me: failed program was:" >&5
11896 sed 's/^/| /' conftest.$ac_ext >&5
11898 ac_cv_type_daddr_t=no
11900 rm -f conftest.$ac_objext conftest.$ac_ext
11902 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11903 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11904 if test $ac_cv_type_daddr_t = yes; then
11908 cat >>confdefs.h <<_ACEOF
11909 #define daddr_t long
11914 echo "$as_me:$LINENO: checking for major_t" >&5
11915 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11916 if test "${ac_cv_type_major_t+set}" = set; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11919 cat >conftest.$ac_ext <<_ACEOF
11920 #line $LINENO "configure"
11923 cat confdefs.h >>conftest.$ac_ext
11924 cat >>conftest.$ac_ext <<_ACEOF
11925 /* end confdefs.h. */
11926 $ac_includes_default
11932 if (sizeof (major_t))
11938 rm -f conftest.$ac_objext
11939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11940 (eval $ac_compile) 2>&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); } &&
11944 { ac_try='test -s conftest.$ac_objext'
11945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946 (eval $ac_try) 2>&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; }; then
11950 ac_cv_type_major_t=yes
11952 echo "$as_me: failed program was:" >&5
11953 sed 's/^/| /' conftest.$ac_ext >&5
11955 ac_cv_type_major_t=no
11957 rm -f conftest.$ac_objext conftest.$ac_ext
11959 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11960 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11961 if test $ac_cv_type_major_t = yes; then
11965 cat >>confdefs.h <<_ACEOF
11966 #define major_t int
11971 echo "$as_me:$LINENO: checking for minor_t" >&5
11972 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11973 if test "${ac_cv_type_minor_t+set}" = set; then
11974 echo $ECHO_N "(cached) $ECHO_C" >&6
11976 cat >conftest.$ac_ext <<_ACEOF
11977 #line $LINENO "configure"
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h. */
11983 $ac_includes_default
11989 if (sizeof (minor_t))
11995 rm -f conftest.$ac_objext
11996 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11997 (eval $ac_compile) 2>&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } &&
12001 { ac_try='test -s conftest.$ac_objext'
12002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003 (eval $ac_try) 2>&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; }; then
12007 ac_cv_type_minor_t=yes
12009 echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.$ac_ext >&5
12012 ac_cv_type_minor_t=no
12014 rm -f conftest.$ac_objext conftest.$ac_ext
12016 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12017 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12018 if test $ac_cv_type_minor_t = yes; then
12022 cat >>confdefs.h <<_ACEOF
12023 #define minor_t int
12028 echo "$as_me:$LINENO: checking for ssize_t" >&5
12029 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12030 if test "${ac_cv_type_ssize_t+set}" = set; then
12031 echo $ECHO_N "(cached) $ECHO_C" >&6
12033 cat >conftest.$ac_ext <<_ACEOF
12034 #line $LINENO "configure"
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040 $ac_includes_default
12046 if (sizeof (ssize_t))
12052 rm -f conftest.$ac_objext
12053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12054 (eval $ac_compile) 2>&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } &&
12058 { ac_try='test -s conftest.$ac_objext'
12059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12060 (eval $ac_try) 2>&5
12062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063 (exit $ac_status); }; }; then
12064 ac_cv_type_ssize_t=yes
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12069 ac_cv_type_ssize_t=no
12071 rm -f conftest.$ac_objext conftest.$ac_ext
12073 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12074 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12075 if test $ac_cv_type_ssize_t = yes; then
12079 cat >>confdefs.h <<_ACEOF
12080 #define ssize_t int
12085 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12086 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12087 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12088 echo $ECHO_N "(cached) $ECHO_C" >&6
12090 cat >conftest.$ac_ext <<_ACEOF
12091 #line $LINENO "configure"
12094 cat confdefs.h >>conftest.$ac_ext
12095 cat >>conftest.$ac_ext <<_ACEOF
12096 /* end confdefs.h. */
12097 $ac_includes_default
12101 static struct stat ac_aggr;
12102 if (ac_aggr.st_blocks)
12108 rm -f conftest.$ac_objext
12109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12110 (eval $ac_compile) 2>&5
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); } &&
12114 { ac_try='test -s conftest.$ac_objext'
12115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116 (eval $ac_try) 2>&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); }; }; then
12120 ac_cv_member_struct_stat_st_blocks=yes
12122 echo "$as_me: failed program was:" >&5
12123 sed 's/^/| /' conftest.$ac_ext >&5
12125 cat >conftest.$ac_ext <<_ACEOF
12126 #line $LINENO "configure"
12129 cat confdefs.h >>conftest.$ac_ext
12130 cat >>conftest.$ac_ext <<_ACEOF
12131 /* end confdefs.h. */
12132 $ac_includes_default
12136 static struct stat ac_aggr;
12137 if (sizeof ac_aggr.st_blocks)
12143 rm -f conftest.$ac_objext
12144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12145 (eval $ac_compile) 2>&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); } &&
12149 { ac_try='test -s conftest.$ac_objext'
12150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12151 (eval $ac_try) 2>&5
12153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); }; }; then
12155 ac_cv_member_struct_stat_st_blocks=yes
12157 echo "$as_me: failed program was:" >&5
12158 sed 's/^/| /' conftest.$ac_ext >&5
12160 ac_cv_member_struct_stat_st_blocks=no
12162 rm -f conftest.$ac_objext conftest.$ac_ext
12164 rm -f conftest.$ac_objext conftest.$ac_ext
12166 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12167 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12168 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12170 cat >>confdefs.h <<_ACEOF
12171 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12175 cat >>confdefs.h <<\_ACEOF
12176 #define HAVE_ST_BLOCKS 1
12180 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12185 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12186 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12187 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12190 cat >conftest.$ac_ext <<_ACEOF
12191 #line $LINENO "configure"
12194 cat confdefs.h >>conftest.$ac_ext
12195 cat >>conftest.$ac_ext <<_ACEOF
12196 /* end confdefs.h. */
12197 $ac_includes_default
12201 static struct stat ac_aggr;
12202 if (ac_aggr.st_rdev)
12208 rm -f conftest.$ac_objext
12209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12210 (eval $ac_compile) 2>&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } &&
12214 { ac_try='test -s conftest.$ac_objext'
12215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216 (eval $ac_try) 2>&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; }; then
12220 ac_cv_member_struct_stat_st_rdev=yes
12222 echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12225 cat >conftest.$ac_ext <<_ACEOF
12226 #line $LINENO "configure"
12229 cat confdefs.h >>conftest.$ac_ext
12230 cat >>conftest.$ac_ext <<_ACEOF
12231 /* end confdefs.h. */
12232 $ac_includes_default
12236 static struct stat ac_aggr;
12237 if (sizeof ac_aggr.st_rdev)
12243 rm -f conftest.$ac_objext
12244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12245 (eval $ac_compile) 2>&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); } &&
12249 { ac_try='test -s conftest.$ac_objext'
12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251 (eval $ac_try) 2>&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; }; then
12255 ac_cv_member_struct_stat_st_rdev=yes
12257 echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12260 ac_cv_member_struct_stat_st_rdev=no
12262 rm -f conftest.$ac_objext conftest.$ac_ext
12264 rm -f conftest.$ac_objext conftest.$ac_ext
12266 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12267 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12268 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12270 cat >>confdefs.h <<_ACEOF
12271 #define HAVE_STRUCT_STAT_ST_RDEV 1
12275 cat >>confdefs.h <<\_ACEOF
12276 #define HAVE_ST_RDEV 1
12282 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12283 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12284 if test "${ac_cv_struct_tm+set}" = set; then
12285 echo $ECHO_N "(cached) $ECHO_C" >&6
12287 cat >conftest.$ac_ext <<_ACEOF
12288 #line $LINENO "configure"
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12294 #include <sys/types.h>
12300 struct tm *tp; tp->tm_sec;
12305 rm -f conftest.$ac_objext
12306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12307 (eval $ac_compile) 2>&5
12309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310 (exit $ac_status); } &&
12311 { ac_try='test -s conftest.$ac_objext'
12312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12313 (eval $ac_try) 2>&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); }; }; then
12317 ac_cv_struct_tm=time.h
12319 echo "$as_me: failed program was:" >&5
12320 sed 's/^/| /' conftest.$ac_ext >&5
12322 ac_cv_struct_tm=sys/time.h
12324 rm -f conftest.$ac_objext conftest.$ac_ext
12326 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12327 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12328 if test $ac_cv_struct_tm = sys/time.h; then
12330 cat >>confdefs.h <<\_ACEOF
12331 #define TM_IN_SYS_TIME 1
12336 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12337 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12338 if test "${ac_cv_c_const+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12341 cat >conftest.$ac_ext <<_ACEOF
12342 #line $LINENO "configure"
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */
12352 /* FIXME: Include the comments suggested by Paul. */
12353 #ifndef __cplusplus
12354 /* Ultrix mips cc rejects this. */
12355 typedef int charset[2];
12357 /* SunOS 4.1.1 cc rejects this. */
12358 char const *const *ccp;
12360 /* NEC SVR4.0.2 mips cc rejects this. */
12361 struct point {int x, y;};
12362 static struct point const zero = {0,0};
12363 /* AIX XL C 1.02.0.0 rejects this.
12364 It does not let you subtract one const X* pointer from another in
12365 an arm of an if-expression whose if-part is not a constant
12367 const char *g = "string";
12368 ccp = &g + (g ? g-g : 0);
12369 /* HPUX 7.0 cc rejects these. */
12372 ccp = (char const *const *) p;
12373 { /* SCO 3.2v4 cc rejects this. */
12375 char const *s = 0 ? (char *) 0 : (char const *) 0;
12379 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12380 int x[] = {25, 17};
12381 const int *foo = &x[0];
12384 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12385 typedef const int *iptr;
12389 { /* AIX XL C 1.02.0.0 rejects this saying
12390 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12391 struct s { int j; const int *ap[3]; };
12392 struct s *b; b->j = 5;
12394 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12395 const int foo = 10;
12403 rm -f conftest.$ac_objext
12404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12405 (eval $ac_compile) 2>&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } &&
12409 { ac_try='test -s conftest.$ac_objext'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; }; then
12417 echo "$as_me: failed program was:" >&5
12418 sed 's/^/| /' conftest.$ac_ext >&5
12422 rm -f conftest.$ac_objext conftest.$ac_ext
12424 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12425 echo "${ECHO_T}$ac_cv_c_const" >&6
12426 if test $ac_cv_c_const = no; then
12428 cat >>confdefs.h <<\_ACEOF
12436 echo "$as_me:$LINENO: checking for char" >&5
12437 echo $ECHO_N "checking for char... $ECHO_C" >&6
12438 if test "${ac_cv_type_char+set}" = set; then
12439 echo $ECHO_N "(cached) $ECHO_C" >&6
12441 cat >conftest.$ac_ext <<_ACEOF
12442 #line $LINENO "configure"
12445 cat confdefs.h >>conftest.$ac_ext
12446 cat >>conftest.$ac_ext <<_ACEOF
12447 /* end confdefs.h. */
12448 $ac_includes_default
12460 rm -f conftest.$ac_objext
12461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12462 (eval $ac_compile) 2>&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } &&
12466 { ac_try='test -s conftest.$ac_objext'
12467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12468 (eval $ac_try) 2>&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); }; }; then
12472 ac_cv_type_char=yes
12474 echo "$as_me: failed program was:" >&5
12475 sed 's/^/| /' conftest.$ac_ext >&5
12479 rm -f conftest.$ac_objext conftest.$ac_ext
12481 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12482 echo "${ECHO_T}$ac_cv_type_char" >&6
12484 echo "$as_me:$LINENO: checking size of char" >&5
12485 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12486 if test "${ac_cv_sizeof_char+set}" = set; then
12487 echo $ECHO_N "(cached) $ECHO_C" >&6
12489 if test "$ac_cv_type_char" = yes; then
12490 # The cast to unsigned long works around a bug in the HP C Compiler
12491 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12492 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12493 # This bug is HP SR number 8606223364.
12494 if test "$cross_compiling" = yes; then
12495 # Depending upon the size, compute the lo and hi bounds.
12496 cat >conftest.$ac_ext <<_ACEOF
12497 #line $LINENO "configure"
12500 cat confdefs.h >>conftest.$ac_ext
12501 cat >>conftest.$ac_ext <<_ACEOF
12502 /* end confdefs.h. */
12503 $ac_includes_default
12507 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12514 rm -f conftest.$ac_objext
12515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12516 (eval $ac_compile) 2>&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } &&
12520 { ac_try='test -s conftest.$ac_objext'
12521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
12528 cat >conftest.$ac_ext <<_ACEOF
12529 #line $LINENO "configure"
12532 cat confdefs.h >>conftest.$ac_ext
12533 cat >>conftest.$ac_ext <<_ACEOF
12534 /* end confdefs.h. */
12535 $ac_includes_default
12539 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12546 rm -f conftest.$ac_objext
12547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12548 (eval $ac_compile) 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } &&
12552 { ac_try='test -s conftest.$ac_objext'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; }; then
12558 ac_hi=$ac_mid; break
12560 echo "$as_me: failed program was:" >&5
12561 sed 's/^/| /' conftest.$ac_ext >&5
12563 ac_lo=`expr $ac_mid + 1`
12564 if test $ac_lo -le $ac_mid; then
12568 ac_mid=`expr 2 '*' $ac_mid + 1`
12570 rm -f conftest.$ac_objext conftest.$ac_ext
12573 echo "$as_me: failed program was:" >&5
12574 sed 's/^/| /' conftest.$ac_ext >&5
12576 cat >conftest.$ac_ext <<_ACEOF
12577 #line $LINENO "configure"
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12583 $ac_includes_default
12587 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12594 rm -f conftest.$ac_objext
12595 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12596 (eval $ac_compile) 2>&5
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } &&
12600 { ac_try='test -s conftest.$ac_objext'
12601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12602 (eval $ac_try) 2>&5
12604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12605 (exit $ac_status); }; }; then
12608 cat >conftest.$ac_ext <<_ACEOF
12609 #line $LINENO "configure"
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12615 $ac_includes_default
12619 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12626 rm -f conftest.$ac_objext
12627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12628 (eval $ac_compile) 2>&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); } &&
12632 { ac_try='test -s conftest.$ac_objext'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; }; then
12638 ac_lo=$ac_mid; break
12640 echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12643 ac_hi=`expr '(' $ac_mid ')' - 1`
12644 if test $ac_mid -le $ac_hi; then
12648 ac_mid=`expr 2 '*' $ac_mid`
12650 rm -f conftest.$ac_objext conftest.$ac_ext
12653 echo "$as_me: failed program was:" >&5
12654 sed 's/^/| /' conftest.$ac_ext >&5
12658 rm -f conftest.$ac_objext conftest.$ac_ext
12660 rm -f conftest.$ac_objext conftest.$ac_ext
12661 # Binary search between lo and hi bounds.
12662 while test "x$ac_lo" != "x$ac_hi"; do
12663 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12664 cat >conftest.$ac_ext <<_ACEOF
12665 #line $LINENO "configure"
12668 cat confdefs.h >>conftest.$ac_ext
12669 cat >>conftest.$ac_ext <<_ACEOF
12670 /* end confdefs.h. */
12671 $ac_includes_default
12675 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12682 rm -f conftest.$ac_objext
12683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12684 (eval $ac_compile) 2>&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } &&
12688 { ac_try='test -s conftest.$ac_objext'
12689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690 (eval $ac_try) 2>&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; }; then
12696 echo "$as_me: failed program was:" >&5
12697 sed 's/^/| /' conftest.$ac_ext >&5
12699 ac_lo=`expr '(' $ac_mid ')' + 1`
12701 rm -f conftest.$ac_objext conftest.$ac_ext
12704 ?*) ac_cv_sizeof_char=$ac_lo;;
12705 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12706 See \`config.log' for more details." >&5
12707 echo "$as_me: error: cannot compute sizeof (char), 77
12708 See \`config.log' for more details." >&2;}
12709 { (exit 1); exit 1; }; } ;;
12712 if test "$cross_compiling" = yes; then
12713 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12714 See \`config.log' for more details." >&5
12715 echo "$as_me: error: cannot run test program while cross compiling
12716 See \`config.log' for more details." >&2;}
12717 { (exit 1); exit 1; }; }
12719 cat >conftest.$ac_ext <<_ACEOF
12720 #line $LINENO "configure"
12723 cat confdefs.h >>conftest.$ac_ext
12724 cat >>conftest.$ac_ext <<_ACEOF
12725 /* end confdefs.h. */
12726 $ac_includes_default
12727 long longval () { return (long) (sizeof (char)); }
12728 unsigned long ulongval () { return (long) (sizeof (char)); }
12730 #include <stdlib.h>
12735 FILE *f = fopen ("conftest.val", "w");
12738 if (((long) (sizeof (char))) < 0)
12740 long i = longval ();
12741 if (i != ((long) (sizeof (char))))
12743 fprintf (f, "%ld\n", i);
12747 unsigned long i = ulongval ();
12748 if (i != ((long) (sizeof (char))))
12750 fprintf (f, "%lu\n", i);
12752 exit (ferror (f) || fclose (f) != 0);
12758 rm -f conftest$ac_exeext
12759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12760 (eval $ac_link) 2>&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12765 (eval $ac_try) 2>&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); }; }; then
12769 ac_cv_sizeof_char=`cat conftest.val`
12771 echo "$as_me: program exited with status $ac_status" >&5
12772 echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12775 ( exit $ac_status )
12776 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12777 See \`config.log' for more details." >&5
12778 echo "$as_me: error: cannot compute sizeof (char), 77
12779 See \`config.log' for more details." >&2;}
12780 { (exit 1); exit 1; }; }
12782 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12787 ac_cv_sizeof_char=0
12790 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12791 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12792 cat >>confdefs.h <<_ACEOF
12793 #define SIZEOF_CHAR $ac_cv_sizeof_char
12797 echo "$as_me:$LINENO: checking for short int" >&5
12798 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12799 if test "${ac_cv_type_short_int+set}" = set; then
12800 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 cat >conftest.$ac_ext <<_ACEOF
12803 #line $LINENO "configure"
12806 cat confdefs.h >>conftest.$ac_ext
12807 cat >>conftest.$ac_ext <<_ACEOF
12808 /* end confdefs.h. */
12809 $ac_includes_default
12813 if ((short int *) 0)
12815 if (sizeof (short int))
12821 rm -f conftest.$ac_objext
12822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12823 (eval $ac_compile) 2>&5
12825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } &&
12827 { ac_try='test -s conftest.$ac_objext'
12828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829 (eval $ac_try) 2>&5
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); }; }; then
12833 ac_cv_type_short_int=yes
12835 echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12838 ac_cv_type_short_int=no
12840 rm -f conftest.$ac_objext conftest.$ac_ext
12842 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12843 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12845 echo "$as_me:$LINENO: checking size of short int" >&5
12846 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12847 if test "${ac_cv_sizeof_short_int+set}" = set; then
12848 echo $ECHO_N "(cached) $ECHO_C" >&6
12850 if test "$ac_cv_type_short_int" = yes; then
12851 # The cast to unsigned long works around a bug in the HP C Compiler
12852 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12853 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12854 # This bug is HP SR number 8606223364.
12855 if test "$cross_compiling" = yes; then
12856 # Depending upon the size, compute the lo and hi bounds.
12857 cat >conftest.$ac_ext <<_ACEOF
12858 #line $LINENO "configure"
12861 cat confdefs.h >>conftest.$ac_ext
12862 cat >>conftest.$ac_ext <<_ACEOF
12863 /* end confdefs.h. */
12864 $ac_includes_default
12868 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12875 rm -f conftest.$ac_objext
12876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12877 (eval $ac_compile) 2>&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } &&
12881 { ac_try='test -s conftest.$ac_objext'
12882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12883 (eval $ac_try) 2>&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); }; }; then
12889 cat >conftest.$ac_ext <<_ACEOF
12890 #line $LINENO "configure"
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12896 $ac_includes_default
12900 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12907 rm -f conftest.$ac_objext
12908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12909 (eval $ac_compile) 2>&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
12913 { ac_try='test -s conftest.$ac_objext'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; }; then
12919 ac_hi=$ac_mid; break
12921 echo "$as_me: failed program was:" >&5
12922 sed 's/^/| /' conftest.$ac_ext >&5
12924 ac_lo=`expr $ac_mid + 1`
12925 if test $ac_lo -le $ac_mid; then
12929 ac_mid=`expr 2 '*' $ac_mid + 1`
12931 rm -f conftest.$ac_objext conftest.$ac_ext
12934 echo "$as_me: failed program was:" >&5
12935 sed 's/^/| /' conftest.$ac_ext >&5
12937 cat >conftest.$ac_ext <<_ACEOF
12938 #line $LINENO "configure"
12941 cat confdefs.h >>conftest.$ac_ext
12942 cat >>conftest.$ac_ext <<_ACEOF
12943 /* end confdefs.h. */
12944 $ac_includes_default
12948 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12955 rm -f conftest.$ac_objext
12956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12957 (eval $ac_compile) 2>&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12960 (exit $ac_status); } &&
12961 { ac_try='test -s conftest.$ac_objext'
12962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12963 (eval $ac_try) 2>&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; }; then
12969 cat >conftest.$ac_ext <<_ACEOF
12970 #line $LINENO "configure"
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h. */
12976 $ac_includes_default
12980 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12987 rm -f conftest.$ac_objext
12988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12989 (eval $ac_compile) 2>&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } &&
12993 { ac_try='test -s conftest.$ac_objext'
12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; }; then
12999 ac_lo=$ac_mid; break
13001 echo "$as_me: failed program was:" >&5
13002 sed 's/^/| /' conftest.$ac_ext >&5
13004 ac_hi=`expr '(' $ac_mid ')' - 1`
13005 if test $ac_mid -le $ac_hi; then
13009 ac_mid=`expr 2 '*' $ac_mid`
13011 rm -f conftest.$ac_objext conftest.$ac_ext
13014 echo "$as_me: failed program was:" >&5
13015 sed 's/^/| /' conftest.$ac_ext >&5
13019 rm -f conftest.$ac_objext conftest.$ac_ext
13021 rm -f conftest.$ac_objext conftest.$ac_ext
13022 # Binary search between lo and hi bounds.
13023 while test "x$ac_lo" != "x$ac_hi"; do
13024 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13025 cat >conftest.$ac_ext <<_ACEOF
13026 #line $LINENO "configure"
13029 cat confdefs.h >>conftest.$ac_ext
13030 cat >>conftest.$ac_ext <<_ACEOF
13031 /* end confdefs.h. */
13032 $ac_includes_default
13036 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13043 rm -f conftest.$ac_objext
13044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13045 (eval $ac_compile) 2>&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } &&
13049 { ac_try='test -s conftest.$ac_objext'
13050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13051 (eval $ac_try) 2>&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); }; }; then
13057 echo "$as_me: failed program was:" >&5
13058 sed 's/^/| /' conftest.$ac_ext >&5
13060 ac_lo=`expr '(' $ac_mid ')' + 1`
13062 rm -f conftest.$ac_objext conftest.$ac_ext
13065 ?*) ac_cv_sizeof_short_int=$ac_lo;;
13066 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13067 See \`config.log' for more details." >&5
13068 echo "$as_me: error: cannot compute sizeof (short int), 77
13069 See \`config.log' for more details." >&2;}
13070 { (exit 1); exit 1; }; } ;;
13073 if test "$cross_compiling" = yes; then
13074 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13075 See \`config.log' for more details." >&5
13076 echo "$as_me: error: cannot run test program while cross compiling
13077 See \`config.log' for more details." >&2;}
13078 { (exit 1); exit 1; }; }
13080 cat >conftest.$ac_ext <<_ACEOF
13081 #line $LINENO "configure"
13084 cat confdefs.h >>conftest.$ac_ext
13085 cat >>conftest.$ac_ext <<_ACEOF
13086 /* end confdefs.h. */
13087 $ac_includes_default
13088 long longval () { return (long) (sizeof (short int)); }
13089 unsigned long ulongval () { return (long) (sizeof (short int)); }
13091 #include <stdlib.h>
13096 FILE *f = fopen ("conftest.val", "w");
13099 if (((long) (sizeof (short int))) < 0)
13101 long i = longval ();
13102 if (i != ((long) (sizeof (short int))))
13104 fprintf (f, "%ld\n", i);
13108 unsigned long i = ulongval ();
13109 if (i != ((long) (sizeof (short int))))
13111 fprintf (f, "%lu\n", i);
13113 exit (ferror (f) || fclose (f) != 0);
13119 rm -f conftest$ac_exeext
13120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13121 (eval $ac_link) 2>&5
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13126 (eval $ac_try) 2>&5
13128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129 (exit $ac_status); }; }; then
13130 ac_cv_sizeof_short_int=`cat conftest.val`
13132 echo "$as_me: program exited with status $ac_status" >&5
13133 echo "$as_me: failed program was:" >&5
13134 sed 's/^/| /' conftest.$ac_ext >&5
13136 ( exit $ac_status )
13137 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13138 See \`config.log' for more details." >&5
13139 echo "$as_me: error: cannot compute sizeof (short int), 77
13140 See \`config.log' for more details." >&2;}
13141 { (exit 1); exit 1; }; }
13143 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13148 ac_cv_sizeof_short_int=0
13151 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13152 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13153 cat >>confdefs.h <<_ACEOF
13154 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13158 echo "$as_me:$LINENO: checking for int" >&5
13159 echo $ECHO_N "checking for int... $ECHO_C" >&6
13160 if test "${ac_cv_type_int+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13163 cat >conftest.$ac_ext <<_ACEOF
13164 #line $LINENO "configure"
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h. */
13170 $ac_includes_default
13182 rm -f conftest.$ac_objext
13183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13184 (eval $ac_compile) 2>&5
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); } &&
13188 { ac_try='test -s conftest.$ac_objext'
13189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13190 (eval $ac_try) 2>&5
13192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193 (exit $ac_status); }; }; then
13196 echo "$as_me: failed program was:" >&5
13197 sed 's/^/| /' conftest.$ac_ext >&5
13201 rm -f conftest.$ac_objext conftest.$ac_ext
13203 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13204 echo "${ECHO_T}$ac_cv_type_int" >&6
13206 echo "$as_me:$LINENO: checking size of int" >&5
13207 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13208 if test "${ac_cv_sizeof_int+set}" = set; then
13209 echo $ECHO_N "(cached) $ECHO_C" >&6
13211 if test "$ac_cv_type_int" = yes; then
13212 # The cast to unsigned long works around a bug in the HP C Compiler
13213 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13214 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13215 # This bug is HP SR number 8606223364.
13216 if test "$cross_compiling" = yes; then
13217 # Depending upon the size, compute the lo and hi bounds.
13218 cat >conftest.$ac_ext <<_ACEOF
13219 #line $LINENO "configure"
13222 cat confdefs.h >>conftest.$ac_ext
13223 cat >>conftest.$ac_ext <<_ACEOF
13224 /* end confdefs.h. */
13225 $ac_includes_default
13229 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13236 rm -f conftest.$ac_objext
13237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13238 (eval $ac_compile) 2>&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } &&
13242 { ac_try='test -s conftest.$ac_objext'
13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 (eval $ac_try) 2>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; }; then
13250 cat >conftest.$ac_ext <<_ACEOF
13251 #line $LINENO "configure"
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h. */
13257 $ac_includes_default
13261 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13268 rm -f conftest.$ac_objext
13269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13270 (eval $ac_compile) 2>&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); } &&
13274 { ac_try='test -s conftest.$ac_objext'
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }; then
13280 ac_hi=$ac_mid; break
13282 echo "$as_me: failed program was:" >&5
13283 sed 's/^/| /' conftest.$ac_ext >&5
13285 ac_lo=`expr $ac_mid + 1`
13286 if test $ac_lo -le $ac_mid; then
13290 ac_mid=`expr 2 '*' $ac_mid + 1`
13292 rm -f conftest.$ac_objext conftest.$ac_ext
13295 echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13298 cat >conftest.$ac_ext <<_ACEOF
13299 #line $LINENO "configure"
13302 cat confdefs.h >>conftest.$ac_ext
13303 cat >>conftest.$ac_ext <<_ACEOF
13304 /* end confdefs.h. */
13305 $ac_includes_default
13309 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13316 rm -f conftest.$ac_objext
13317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13318 (eval $ac_compile) 2>&5
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); } &&
13322 { ac_try='test -s conftest.$ac_objext'
13323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13324 (eval $ac_try) 2>&5
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); }; }; then
13330 cat >conftest.$ac_ext <<_ACEOF
13331 #line $LINENO "configure"
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h. */
13337 $ac_includes_default
13341 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13348 rm -f conftest.$ac_objext
13349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13350 (eval $ac_compile) 2>&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); } &&
13354 { ac_try='test -s conftest.$ac_objext'
13355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356 (eval $ac_try) 2>&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; }; then
13360 ac_lo=$ac_mid; break
13362 echo "$as_me: failed program was:" >&5
13363 sed 's/^/| /' conftest.$ac_ext >&5
13365 ac_hi=`expr '(' $ac_mid ')' - 1`
13366 if test $ac_mid -le $ac_hi; then
13370 ac_mid=`expr 2 '*' $ac_mid`
13372 rm -f conftest.$ac_objext conftest.$ac_ext
13375 echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13380 rm -f conftest.$ac_objext conftest.$ac_ext
13382 rm -f conftest.$ac_objext conftest.$ac_ext
13383 # Binary search between lo and hi bounds.
13384 while test "x$ac_lo" != "x$ac_hi"; do
13385 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13386 cat >conftest.$ac_ext <<_ACEOF
13387 #line $LINENO "configure"
13390 cat confdefs.h >>conftest.$ac_ext
13391 cat >>conftest.$ac_ext <<_ACEOF
13392 /* end confdefs.h. */
13393 $ac_includes_default
13397 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13404 rm -f conftest.$ac_objext
13405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13406 (eval $ac_compile) 2>&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } &&
13410 { ac_try='test -s conftest.$ac_objext'
13411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412 (eval $ac_try) 2>&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; }; then
13418 echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.$ac_ext >&5
13421 ac_lo=`expr '(' $ac_mid ')' + 1`
13423 rm -f conftest.$ac_objext conftest.$ac_ext
13426 ?*) ac_cv_sizeof_int=$ac_lo;;
13427 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13428 See \`config.log' for more details." >&5
13429 echo "$as_me: error: cannot compute sizeof (int), 77
13430 See \`config.log' for more details." >&2;}
13431 { (exit 1); exit 1; }; } ;;
13434 if test "$cross_compiling" = yes; then
13435 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13436 See \`config.log' for more details." >&5
13437 echo "$as_me: error: cannot run test program while cross compiling
13438 See \`config.log' for more details." >&2;}
13439 { (exit 1); exit 1; }; }
13441 cat >conftest.$ac_ext <<_ACEOF
13442 #line $LINENO "configure"
13445 cat confdefs.h >>conftest.$ac_ext
13446 cat >>conftest.$ac_ext <<_ACEOF
13447 /* end confdefs.h. */
13448 $ac_includes_default
13449 long longval () { return (long) (sizeof (int)); }
13450 unsigned long ulongval () { return (long) (sizeof (int)); }
13452 #include <stdlib.h>
13457 FILE *f = fopen ("conftest.val", "w");
13460 if (((long) (sizeof (int))) < 0)
13462 long i = longval ();
13463 if (i != ((long) (sizeof (int))))
13465 fprintf (f, "%ld\n", i);
13469 unsigned long i = ulongval ();
13470 if (i != ((long) (sizeof (int))))
13472 fprintf (f, "%lu\n", i);
13474 exit (ferror (f) || fclose (f) != 0);
13480 rm -f conftest$ac_exeext
13481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13482 (eval $ac_link) 2>&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13487 (eval $ac_try) 2>&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); }; }; then
13491 ac_cv_sizeof_int=`cat conftest.val`
13493 echo "$as_me: program exited with status $ac_status" >&5
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13497 ( exit $ac_status )
13498 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13499 See \`config.log' for more details." >&5
13500 echo "$as_me: error: cannot compute sizeof (int), 77
13501 See \`config.log' for more details." >&2;}
13502 { (exit 1); exit 1; }; }
13504 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13512 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13513 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13514 cat >>confdefs.h <<_ACEOF
13515 #define SIZEOF_INT $ac_cv_sizeof_int
13519 echo "$as_me:$LINENO: checking for long int" >&5
13520 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13521 if test "${ac_cv_type_long_int+set}" = set; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13524 cat >conftest.$ac_ext <<_ACEOF
13525 #line $LINENO "configure"
13528 cat confdefs.h >>conftest.$ac_ext
13529 cat >>conftest.$ac_ext <<_ACEOF
13530 /* end confdefs.h. */
13531 $ac_includes_default
13535 if ((long int *) 0)
13537 if (sizeof (long int))
13543 rm -f conftest.$ac_objext
13544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13545 (eval $ac_compile) 2>&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); } &&
13549 { ac_try='test -s conftest.$ac_objext'
13550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13551 (eval $ac_try) 2>&5
13553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13554 (exit $ac_status); }; }; then
13555 ac_cv_type_long_int=yes
13557 echo "$as_me: failed program was:" >&5
13558 sed 's/^/| /' conftest.$ac_ext >&5
13560 ac_cv_type_long_int=no
13562 rm -f conftest.$ac_objext conftest.$ac_ext
13564 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13565 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13567 echo "$as_me:$LINENO: checking size of long int" >&5
13568 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13569 if test "${ac_cv_sizeof_long_int+set}" = set; then
13570 echo $ECHO_N "(cached) $ECHO_C" >&6
13572 if test "$ac_cv_type_long_int" = yes; then
13573 # The cast to unsigned long works around a bug in the HP C Compiler
13574 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13575 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13576 # This bug is HP SR number 8606223364.
13577 if test "$cross_compiling" = yes; then
13578 # Depending upon the size, compute the lo and hi bounds.
13579 cat >conftest.$ac_ext <<_ACEOF
13580 #line $LINENO "configure"
13583 cat confdefs.h >>conftest.$ac_ext
13584 cat >>conftest.$ac_ext <<_ACEOF
13585 /* end confdefs.h. */
13586 $ac_includes_default
13590 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13597 rm -f conftest.$ac_objext
13598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13599 (eval $ac_compile) 2>&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } &&
13603 { ac_try='test -s conftest.$ac_objext'
13604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605 (eval $ac_try) 2>&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; }; then
13611 cat >conftest.$ac_ext <<_ACEOF
13612 #line $LINENO "configure"
13615 cat confdefs.h >>conftest.$ac_ext
13616 cat >>conftest.$ac_ext <<_ACEOF
13617 /* end confdefs.h. */
13618 $ac_includes_default
13622 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13629 rm -f conftest.$ac_objext
13630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13631 (eval $ac_compile) 2>&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } &&
13635 { ac_try='test -s conftest.$ac_objext'
13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637 (eval $ac_try) 2>&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; }; then
13641 ac_hi=$ac_mid; break
13643 echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13646 ac_lo=`expr $ac_mid + 1`
13647 if test $ac_lo -le $ac_mid; then
13651 ac_mid=`expr 2 '*' $ac_mid + 1`
13653 rm -f conftest.$ac_objext conftest.$ac_ext
13656 echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13659 cat >conftest.$ac_ext <<_ACEOF
13660 #line $LINENO "configure"
13663 cat confdefs.h >>conftest.$ac_ext
13664 cat >>conftest.$ac_ext <<_ACEOF
13665 /* end confdefs.h. */
13666 $ac_includes_default
13670 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13677 rm -f conftest.$ac_objext
13678 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13679 (eval $ac_compile) 2>&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); } &&
13683 { ac_try='test -s conftest.$ac_objext'
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; }; then
13691 cat >conftest.$ac_ext <<_ACEOF
13692 #line $LINENO "configure"
13695 cat confdefs.h >>conftest.$ac_ext
13696 cat >>conftest.$ac_ext <<_ACEOF
13697 /* end confdefs.h. */
13698 $ac_includes_default
13702 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13709 rm -f conftest.$ac_objext
13710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13711 (eval $ac_compile) 2>&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); } &&
13715 { ac_try='test -s conftest.$ac_objext'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13721 ac_lo=$ac_mid; break
13723 echo "$as_me: failed program was:" >&5
13724 sed 's/^/| /' conftest.$ac_ext >&5
13726 ac_hi=`expr '(' $ac_mid ')' - 1`
13727 if test $ac_mid -le $ac_hi; then
13731 ac_mid=`expr 2 '*' $ac_mid`
13733 rm -f conftest.$ac_objext conftest.$ac_ext
13736 echo "$as_me: failed program was:" >&5
13737 sed 's/^/| /' conftest.$ac_ext >&5
13741 rm -f conftest.$ac_objext conftest.$ac_ext
13743 rm -f conftest.$ac_objext conftest.$ac_ext
13744 # Binary search between lo and hi bounds.
13745 while test "x$ac_lo" != "x$ac_hi"; do
13746 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13747 cat >conftest.$ac_ext <<_ACEOF
13748 #line $LINENO "configure"
13751 cat confdefs.h >>conftest.$ac_ext
13752 cat >>conftest.$ac_ext <<_ACEOF
13753 /* end confdefs.h. */
13754 $ac_includes_default
13758 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13765 rm -f conftest.$ac_objext
13766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13767 (eval $ac_compile) 2>&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } &&
13771 { ac_try='test -s conftest.$ac_objext'
13772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13773 (eval $ac_try) 2>&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; }; then
13779 echo "$as_me: failed program was:" >&5
13780 sed 's/^/| /' conftest.$ac_ext >&5
13782 ac_lo=`expr '(' $ac_mid ')' + 1`
13784 rm -f conftest.$ac_objext conftest.$ac_ext
13787 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13788 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13789 See \`config.log' for more details." >&5
13790 echo "$as_me: error: cannot compute sizeof (long int), 77
13791 See \`config.log' for more details." >&2;}
13792 { (exit 1); exit 1; }; } ;;
13795 if test "$cross_compiling" = yes; then
13796 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13797 See \`config.log' for more details." >&5
13798 echo "$as_me: error: cannot run test program while cross compiling
13799 See \`config.log' for more details." >&2;}
13800 { (exit 1); exit 1; }; }
13802 cat >conftest.$ac_ext <<_ACEOF
13803 #line $LINENO "configure"
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h. */
13809 $ac_includes_default
13810 long longval () { return (long) (sizeof (long int)); }
13811 unsigned long ulongval () { return (long) (sizeof (long int)); }
13813 #include <stdlib.h>
13818 FILE *f = fopen ("conftest.val", "w");
13821 if (((long) (sizeof (long int))) < 0)
13823 long i = longval ();
13824 if (i != ((long) (sizeof (long int))))
13826 fprintf (f, "%ld\n", i);
13830 unsigned long i = ulongval ();
13831 if (i != ((long) (sizeof (long int))))
13833 fprintf (f, "%lu\n", i);
13835 exit (ferror (f) || fclose (f) != 0);
13841 rm -f conftest$ac_exeext
13842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13843 (eval $ac_link) 2>&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13848 (eval $ac_try) 2>&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); }; }; then
13852 ac_cv_sizeof_long_int=`cat conftest.val`
13854 echo "$as_me: program exited with status $ac_status" >&5
13855 echo "$as_me: failed program was:" >&5
13856 sed 's/^/| /' conftest.$ac_ext >&5
13858 ( exit $ac_status )
13859 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13860 See \`config.log' for more details." >&5
13861 echo "$as_me: error: cannot compute sizeof (long int), 77
13862 See \`config.log' for more details." >&2;}
13863 { (exit 1); exit 1; }; }
13865 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13870 ac_cv_sizeof_long_int=0
13873 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13874 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13875 cat >>confdefs.h <<_ACEOF
13876 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13880 echo "$as_me:$LINENO: checking for long long int" >&5
13881 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13882 if test "${ac_cv_type_long_long_int+set}" = set; then
13883 echo $ECHO_N "(cached) $ECHO_C" >&6
13885 cat >conftest.$ac_ext <<_ACEOF
13886 #line $LINENO "configure"
13889 cat confdefs.h >>conftest.$ac_ext
13890 cat >>conftest.$ac_ext <<_ACEOF
13891 /* end confdefs.h. */
13892 $ac_includes_default
13896 if ((long long int *) 0)
13898 if (sizeof (long long int))
13904 rm -f conftest.$ac_objext
13905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13906 (eval $ac_compile) 2>&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } &&
13910 { ac_try='test -s conftest.$ac_objext'
13911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912 (eval $ac_try) 2>&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); }; }; then
13916 ac_cv_type_long_long_int=yes
13918 echo "$as_me: failed program was:" >&5
13919 sed 's/^/| /' conftest.$ac_ext >&5
13921 ac_cv_type_long_long_int=no
13923 rm -f conftest.$ac_objext conftest.$ac_ext
13925 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13926 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13928 echo "$as_me:$LINENO: checking size of long long int" >&5
13929 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13930 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13931 echo $ECHO_N "(cached) $ECHO_C" >&6
13933 if test "$ac_cv_type_long_long_int" = yes; then
13934 # The cast to unsigned long works around a bug in the HP C Compiler
13935 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13936 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13937 # This bug is HP SR number 8606223364.
13938 if test "$cross_compiling" = yes; then
13939 # Depending upon the size, compute the lo and hi bounds.
13940 cat >conftest.$ac_ext <<_ACEOF
13941 #line $LINENO "configure"
13944 cat confdefs.h >>conftest.$ac_ext
13945 cat >>conftest.$ac_ext <<_ACEOF
13946 /* end confdefs.h. */
13947 $ac_includes_default
13951 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13958 rm -f conftest.$ac_objext
13959 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13960 (eval $ac_compile) 2>&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } &&
13964 { ac_try='test -s conftest.$ac_objext'
13965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966 (eval $ac_try) 2>&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; }; then
13972 cat >conftest.$ac_ext <<_ACEOF
13973 #line $LINENO "configure"
13976 cat confdefs.h >>conftest.$ac_ext
13977 cat >>conftest.$ac_ext <<_ACEOF
13978 /* end confdefs.h. */
13979 $ac_includes_default
13983 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13990 rm -f conftest.$ac_objext
13991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13992 (eval $ac_compile) 2>&5
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); } &&
13996 { ac_try='test -s conftest.$ac_objext'
13997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13998 (eval $ac_try) 2>&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); }; }; then
14002 ac_hi=$ac_mid; break
14004 echo "$as_me: failed program was:" >&5
14005 sed 's/^/| /' conftest.$ac_ext >&5
14007 ac_lo=`expr $ac_mid + 1`
14008 if test $ac_lo -le $ac_mid; then
14012 ac_mid=`expr 2 '*' $ac_mid + 1`
14014 rm -f conftest.$ac_objext conftest.$ac_ext
14017 echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14020 cat >conftest.$ac_ext <<_ACEOF
14021 #line $LINENO "configure"
14024 cat confdefs.h >>conftest.$ac_ext
14025 cat >>conftest.$ac_ext <<_ACEOF
14026 /* end confdefs.h. */
14027 $ac_includes_default
14031 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
14038 rm -f conftest.$ac_objext
14039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14040 (eval $ac_compile) 2>&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } &&
14044 { ac_try='test -s conftest.$ac_objext'
14045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14046 (eval $ac_try) 2>&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); }; }; then
14052 cat >conftest.$ac_ext <<_ACEOF
14053 #line $LINENO "configure"
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h. */
14059 $ac_includes_default
14063 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
14070 rm -f conftest.$ac_objext
14071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14072 (eval $ac_compile) 2>&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); } &&
14076 { ac_try='test -s conftest.$ac_objext'
14077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14078 (eval $ac_try) 2>&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; }; then
14082 ac_lo=$ac_mid; break
14084 echo "$as_me: failed program was:" >&5
14085 sed 's/^/| /' conftest.$ac_ext >&5
14087 ac_hi=`expr '(' $ac_mid ')' - 1`
14088 if test $ac_mid -le $ac_hi; then
14092 ac_mid=`expr 2 '*' $ac_mid`
14094 rm -f conftest.$ac_objext conftest.$ac_ext
14097 echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14102 rm -f conftest.$ac_objext conftest.$ac_ext
14104 rm -f conftest.$ac_objext conftest.$ac_ext
14105 # Binary search between lo and hi bounds.
14106 while test "x$ac_lo" != "x$ac_hi"; do
14107 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14108 cat >conftest.$ac_ext <<_ACEOF
14109 #line $LINENO "configure"
14112 cat confdefs.h >>conftest.$ac_ext
14113 cat >>conftest.$ac_ext <<_ACEOF
14114 /* end confdefs.h. */
14115 $ac_includes_default
14119 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14126 rm -f conftest.$ac_objext
14127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14128 (eval $ac_compile) 2>&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); } &&
14132 { ac_try='test -s conftest.$ac_objext'
14133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14134 (eval $ac_try) 2>&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); }; }; then
14140 echo "$as_me: failed program was:" >&5
14141 sed 's/^/| /' conftest.$ac_ext >&5
14143 ac_lo=`expr '(' $ac_mid ')' + 1`
14145 rm -f conftest.$ac_objext conftest.$ac_ext
14148 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14149 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14150 See \`config.log' for more details." >&5
14151 echo "$as_me: error: cannot compute sizeof (long long int), 77
14152 See \`config.log' for more details." >&2;}
14153 { (exit 1); exit 1; }; } ;;
14156 if test "$cross_compiling" = yes; then
14157 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14158 See \`config.log' for more details." >&5
14159 echo "$as_me: error: cannot run test program while cross compiling
14160 See \`config.log' for more details." >&2;}
14161 { (exit 1); exit 1; }; }
14163 cat >conftest.$ac_ext <<_ACEOF
14164 #line $LINENO "configure"
14167 cat confdefs.h >>conftest.$ac_ext
14168 cat >>conftest.$ac_ext <<_ACEOF
14169 /* end confdefs.h. */
14170 $ac_includes_default
14171 long longval () { return (long) (sizeof (long long int)); }
14172 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14174 #include <stdlib.h>
14179 FILE *f = fopen ("conftest.val", "w");
14182 if (((long) (sizeof (long long int))) < 0)
14184 long i = longval ();
14185 if (i != ((long) (sizeof (long long int))))
14187 fprintf (f, "%ld\n", i);
14191 unsigned long i = ulongval ();
14192 if (i != ((long) (sizeof (long long int))))
14194 fprintf (f, "%lu\n", i);
14196 exit (ferror (f) || fclose (f) != 0);
14202 rm -f conftest$ac_exeext
14203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14204 (eval $ac_link) 2>&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14209 (eval $ac_try) 2>&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
14213 ac_cv_sizeof_long_long_int=`cat conftest.val`
14215 echo "$as_me: program exited with status $ac_status" >&5
14216 echo "$as_me: failed program was:" >&5
14217 sed 's/^/| /' conftest.$ac_ext >&5
14219 ( exit $ac_status )
14220 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14221 See \`config.log' for more details." >&5
14222 echo "$as_me: error: cannot compute sizeof (long long int), 77
14223 See \`config.log' for more details." >&2;}
14224 { (exit 1); exit 1; }; }
14226 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14231 ac_cv_sizeof_long_long_int=0
14234 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14235 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14236 cat >>confdefs.h <<_ACEOF
14237 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14241 echo "$as_me:$LINENO: checking for int *" >&5
14242 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14243 if test "${ac_cv_type_int_p+set}" = set; then
14244 echo $ECHO_N "(cached) $ECHO_C" >&6
14246 cat >conftest.$ac_ext <<_ACEOF
14247 #line $LINENO "configure"
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h. */
14253 $ac_includes_default
14259 if (sizeof (int *))
14265 rm -f conftest.$ac_objext
14266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14267 (eval $ac_compile) 2>&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); } &&
14271 { ac_try='test -s conftest.$ac_objext'
14272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14273 (eval $ac_try) 2>&5
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); }; }; then
14277 ac_cv_type_int_p=yes
14279 echo "$as_me: failed program was:" >&5
14280 sed 's/^/| /' conftest.$ac_ext >&5
14282 ac_cv_type_int_p=no
14284 rm -f conftest.$ac_objext conftest.$ac_ext
14286 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14287 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14289 echo "$as_me:$LINENO: checking size of int *" >&5
14290 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14291 if test "${ac_cv_sizeof_int_p+set}" = set; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14294 if test "$ac_cv_type_int_p" = yes; then
14295 # The cast to unsigned long works around a bug in the HP C Compiler
14296 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14297 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14298 # This bug is HP SR number 8606223364.
14299 if test "$cross_compiling" = yes; then
14300 # Depending upon the size, compute the lo and hi bounds.
14301 cat >conftest.$ac_ext <<_ACEOF
14302 #line $LINENO "configure"
14305 cat confdefs.h >>conftest.$ac_ext
14306 cat >>conftest.$ac_ext <<_ACEOF
14307 /* end confdefs.h. */
14308 $ac_includes_default
14312 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14319 rm -f conftest.$ac_objext
14320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14321 (eval $ac_compile) 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); } &&
14325 { ac_try='test -s conftest.$ac_objext'
14326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327 (eval $ac_try) 2>&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; }; then
14333 cat >conftest.$ac_ext <<_ACEOF
14334 #line $LINENO "configure"
14337 cat confdefs.h >>conftest.$ac_ext
14338 cat >>conftest.$ac_ext <<_ACEOF
14339 /* end confdefs.h. */
14340 $ac_includes_default
14344 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14351 rm -f conftest.$ac_objext
14352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14353 (eval $ac_compile) 2>&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); } &&
14357 { ac_try='test -s conftest.$ac_objext'
14358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14359 (eval $ac_try) 2>&5
14361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362 (exit $ac_status); }; }; then
14363 ac_hi=$ac_mid; break
14365 echo "$as_me: failed program was:" >&5
14366 sed 's/^/| /' conftest.$ac_ext >&5
14368 ac_lo=`expr $ac_mid + 1`
14369 if test $ac_lo -le $ac_mid; then
14373 ac_mid=`expr 2 '*' $ac_mid + 1`
14375 rm -f conftest.$ac_objext conftest.$ac_ext
14378 echo "$as_me: failed program was:" >&5
14379 sed 's/^/| /' conftest.$ac_ext >&5
14381 cat >conftest.$ac_ext <<_ACEOF
14382 #line $LINENO "configure"
14385 cat confdefs.h >>conftest.$ac_ext
14386 cat >>conftest.$ac_ext <<_ACEOF
14387 /* end confdefs.h. */
14388 $ac_includes_default
14392 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14399 rm -f conftest.$ac_objext
14400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14401 (eval $ac_compile) 2>&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); } &&
14405 { ac_try='test -s conftest.$ac_objext'
14406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14407 (eval $ac_try) 2>&5
14409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410 (exit $ac_status); }; }; then
14413 cat >conftest.$ac_ext <<_ACEOF
14414 #line $LINENO "configure"
14417 cat confdefs.h >>conftest.$ac_ext
14418 cat >>conftest.$ac_ext <<_ACEOF
14419 /* end confdefs.h. */
14420 $ac_includes_default
14424 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14431 rm -f conftest.$ac_objext
14432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14433 (eval $ac_compile) 2>&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); } &&
14437 { ac_try='test -s conftest.$ac_objext'
14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; }; then
14443 ac_lo=$ac_mid; break
14445 echo "$as_me: failed program was:" >&5
14446 sed 's/^/| /' conftest.$ac_ext >&5
14448 ac_hi=`expr '(' $ac_mid ')' - 1`
14449 if test $ac_mid -le $ac_hi; then
14453 ac_mid=`expr 2 '*' $ac_mid`
14455 rm -f conftest.$ac_objext conftest.$ac_ext
14458 echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14463 rm -f conftest.$ac_objext conftest.$ac_ext
14465 rm -f conftest.$ac_objext conftest.$ac_ext
14466 # Binary search between lo and hi bounds.
14467 while test "x$ac_lo" != "x$ac_hi"; do
14468 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14469 cat >conftest.$ac_ext <<_ACEOF
14470 #line $LINENO "configure"
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h. */
14476 $ac_includes_default
14480 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14487 rm -f conftest.$ac_objext
14488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14489 (eval $ac_compile) 2>&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } &&
14493 { ac_try='test -s conftest.$ac_objext'
14494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14495 (eval $ac_try) 2>&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); }; }; then
14501 echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14504 ac_lo=`expr '(' $ac_mid ')' + 1`
14506 rm -f conftest.$ac_objext conftest.$ac_ext
14509 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14510 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14511 See \`config.log' for more details." >&5
14512 echo "$as_me: error: cannot compute sizeof (int *), 77
14513 See \`config.log' for more details." >&2;}
14514 { (exit 1); exit 1; }; } ;;
14517 if test "$cross_compiling" = yes; then
14518 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14519 See \`config.log' for more details." >&5
14520 echo "$as_me: error: cannot run test program while cross compiling
14521 See \`config.log' for more details." >&2;}
14522 { (exit 1); exit 1; }; }
14524 cat >conftest.$ac_ext <<_ACEOF
14525 #line $LINENO "configure"
14528 cat confdefs.h >>conftest.$ac_ext
14529 cat >>conftest.$ac_ext <<_ACEOF
14530 /* end confdefs.h. */
14531 $ac_includes_default
14532 long longval () { return (long) (sizeof (int *)); }
14533 unsigned long ulongval () { return (long) (sizeof (int *)); }
14535 #include <stdlib.h>
14540 FILE *f = fopen ("conftest.val", "w");
14543 if (((long) (sizeof (int *))) < 0)
14545 long i = longval ();
14546 if (i != ((long) (sizeof (int *))))
14548 fprintf (f, "%ld\n", i);
14552 unsigned long i = ulongval ();
14553 if (i != ((long) (sizeof (int *))))
14555 fprintf (f, "%lu\n", i);
14557 exit (ferror (f) || fclose (f) != 0);
14563 rm -f conftest$ac_exeext
14564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14565 (eval $ac_link) 2>&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14570 (eval $ac_try) 2>&5
14572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14573 (exit $ac_status); }; }; then
14574 ac_cv_sizeof_int_p=`cat conftest.val`
14576 echo "$as_me: program exited with status $ac_status" >&5
14577 echo "$as_me: failed program was:" >&5
14578 sed 's/^/| /' conftest.$ac_ext >&5
14580 ( exit $ac_status )
14581 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14582 See \`config.log' for more details." >&5
14583 echo "$as_me: error: cannot compute sizeof (int *), 77
14584 See \`config.log' for more details." >&2;}
14585 { (exit 1); exit 1; }; }
14587 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14592 ac_cv_sizeof_int_p=0
14595 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14596 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14597 cat >>confdefs.h <<_ACEOF
14598 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14603 # Check for sys/types.h types
14604 echo "$as_me:$LINENO: checking for u_int type" >&5
14605 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14606 if test "${ac_cv_have_u_int+set}" = set; then
14607 echo $ECHO_N "(cached) $ECHO_C" >&6
14610 cat >conftest.$ac_ext <<_ACEOF
14611 #line $LINENO "configure"
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h. */
14617 #include <sys/types.h>
14626 rm -f conftest.$ac_objext
14627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14628 (eval $ac_compile) 2>&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } &&
14632 { ac_try='test -s conftest.$ac_objext'
14633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14634 (eval $ac_try) 2>&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14638 ac_cv_have_u_int="yes"
14640 echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14643 ac_cv_have_u_int="no"
14646 rm -f conftest.$ac_objext conftest.$ac_ext
14649 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14650 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14651 if test "x$ac_cv_have_u_int" = "xyes" ; then
14652 cat >>confdefs.h <<\_ACEOF
14653 #define HAVE_U_INT 1
14659 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14660 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14661 if test "${ac_cv_have_intmax_t+set}" = set; then
14662 echo $ECHO_N "(cached) $ECHO_C" >&6
14665 cat >conftest.$ac_ext <<_ACEOF
14666 #line $LINENO "configure"
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h. */
14672 #include <sys/types.h>
14681 rm -f conftest.$ac_objext
14682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14683 (eval $ac_compile) 2>&5
14685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14686 (exit $ac_status); } &&
14687 { ac_try='test -s conftest.$ac_objext'
14688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14689 (eval $ac_try) 2>&5
14691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14692 (exit $ac_status); }; }; then
14693 ac_cv_have_intmax_t="yes"
14695 echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14699 cat >conftest.$ac_ext <<_ACEOF
14700 #line $LINENO "configure"
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h. */
14706 #include <stdint.h>
14715 rm -f conftest.$ac_objext
14716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14717 (eval $ac_compile) 2>&5
14719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720 (exit $ac_status); } &&
14721 { ac_try='test -s conftest.$ac_objext'
14722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14723 (eval $ac_try) 2>&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }; then
14727 ac_cv_have_intmax_t="yes"
14729 echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.$ac_ext >&5
14732 ac_cv_have_intmax_t="no"
14735 rm -f conftest.$ac_objext conftest.$ac_ext
14739 rm -f conftest.$ac_objext conftest.$ac_ext
14743 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14744 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14745 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14746 cat >>confdefs.h <<\_ACEOF
14747 #define HAVE_INTMAX_T 1
14754 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14755 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14756 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14757 echo $ECHO_N "(cached) $ECHO_C" >&6
14760 cat >conftest.$ac_ext <<_ACEOF
14761 #line $LINENO "configure"
14764 cat confdefs.h >>conftest.$ac_ext
14765 cat >>conftest.$ac_ext <<_ACEOF
14766 /* end confdefs.h. */
14767 #include <sys/types.h>
14771 u_intmax_t a; a = 1;
14776 rm -f conftest.$ac_objext
14777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14778 (eval $ac_compile) 2>&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); } &&
14782 { ac_try='test -s conftest.$ac_objext'
14783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14784 (eval $ac_try) 2>&5
14786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14787 (exit $ac_status); }; }; then
14788 ac_cv_have_u_intmax_t="yes"
14790 echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14794 cat >conftest.$ac_ext <<_ACEOF
14795 #line $LINENO "configure"
14798 cat confdefs.h >>conftest.$ac_ext
14799 cat >>conftest.$ac_ext <<_ACEOF
14800 /* end confdefs.h. */
14801 #include <stdint.h>
14805 u_intmax_t a; a = 1;
14810 rm -f conftest.$ac_objext
14811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14812 (eval $ac_compile) 2>&5
14814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14815 (exit $ac_status); } &&
14816 { ac_try='test -s conftest.$ac_objext'
14817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14818 (eval $ac_try) 2>&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); }; }; then
14822 ac_cv_have_u_intmax_t="yes"
14824 echo "$as_me: failed program was:" >&5
14825 sed 's/^/| /' conftest.$ac_ext >&5
14827 ac_cv_have_u_intmax_t="no"
14830 rm -f conftest.$ac_objext conftest.$ac_ext
14834 rm -f conftest.$ac_objext conftest.$ac_ext
14837 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14838 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14839 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14840 cat >>confdefs.h <<\_ACEOF
14841 #define HAVE_U_INTMAX_T 1
14848 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14849 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14850 if test "${ac_cv_have_intxx_t+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14854 cat >conftest.$ac_ext <<_ACEOF
14855 #line $LINENO "configure"
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h. */
14861 #include <sys/types.h>
14865 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14870 rm -f conftest.$ac_objext
14871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14872 (eval $ac_compile) 2>&5
14874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14875 (exit $ac_status); } &&
14876 { ac_try='test -s conftest.$ac_objext'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14882 ac_cv_have_intxx_t="yes"
14884 echo "$as_me: failed program was:" >&5
14885 sed 's/^/| /' conftest.$ac_ext >&5
14887 ac_cv_have_intxx_t="no"
14890 rm -f conftest.$ac_objext conftest.$ac_ext
14893 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14894 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14895 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14896 cat >>confdefs.h <<\_ACEOF
14897 #define HAVE_INTXX_T 1
14903 echo "$as_me:$LINENO: checking for int64_t type" >&5
14904 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14905 if test "${ac_cv_have_int64_t+set}" = set; then
14906 echo $ECHO_N "(cached) $ECHO_C" >&6
14909 cat >conftest.$ac_ext <<_ACEOF
14910 #line $LINENO "configure"
14913 cat confdefs.h >>conftest.$ac_ext
14914 cat >>conftest.$ac_ext <<_ACEOF
14915 /* end confdefs.h. */
14916 #include <sys/types.h>
14925 rm -f conftest.$ac_objext
14926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14927 (eval $ac_compile) 2>&5
14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14930 (exit $ac_status); } &&
14931 { ac_try='test -s conftest.$ac_objext'
14932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14933 (eval $ac_try) 2>&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); }; }; then
14937 ac_cv_have_int64_t="yes"
14939 echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14942 ac_cv_have_int64_t="no"
14945 rm -f conftest.$ac_objext conftest.$ac_ext
14948 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14949 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14950 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14951 cat >>confdefs.h <<\_ACEOF
14952 #define HAVE_INT64_T 1
14958 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14959 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14960 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14961 echo $ECHO_N "(cached) $ECHO_C" >&6
14964 cat >conftest.$ac_ext <<_ACEOF
14965 #line $LINENO "configure"
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14971 #include <sys/types.h>
14975 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14980 rm -f conftest.$ac_objext
14981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14982 (eval $ac_compile) 2>&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } &&
14986 { ac_try='test -s conftest.$ac_objext'
14987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988 (eval $ac_try) 2>&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; }; then
14992 ac_cv_have_u_intxx_t="yes"
14994 echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14997 ac_cv_have_u_intxx_t="no"
15000 rm -f conftest.$ac_objext conftest.$ac_ext
15003 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
15004 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
15005 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
15006 cat >>confdefs.h <<\_ACEOF
15007 #define HAVE_U_INTXX_T 1
15013 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
15014 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
15015 if test "${ac_cv_have_u_int64_t+set}" = set; then
15016 echo $ECHO_N "(cached) $ECHO_C" >&6
15019 cat >conftest.$ac_ext <<_ACEOF
15020 #line $LINENO "configure"
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h. */
15026 #include <sys/types.h>
15030 u_int64_t a; a = 1;
15035 rm -f conftest.$ac_objext
15036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15037 (eval $ac_compile) 2>&5
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); } &&
15041 { ac_try='test -s conftest.$ac_objext'
15042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15043 (eval $ac_try) 2>&5
15045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15046 (exit $ac_status); }; }; then
15047 ac_cv_have_u_int64_t="yes"
15049 echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15052 ac_cv_have_u_int64_t="no"
15055 rm -f conftest.$ac_objext conftest.$ac_ext
15058 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
15059 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
15060 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
15061 cat >>confdefs.h <<\_ACEOF
15062 #define HAVE_U_INT64_T 1
15068 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
15069 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15071 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15072 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
15073 cat >conftest.$ac_ext <<_ACEOF
15074 #line $LINENO "configure"
15077 cat confdefs.h >>conftest.$ac_ext
15078 cat >>conftest.$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15080 #include <sys/bitypes.h>
15084 int8_t a; int16_t b; int32_t c;
15085 u_int8_t e; u_int16_t f; u_int32_t g;
15086 a = b = c = e = f = g = 1;
15091 rm -f conftest.$ac_objext
15092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15093 (eval $ac_compile) 2>&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); } &&
15097 { ac_try='test -s conftest.$ac_objext'
15098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15099 (eval $ac_try) 2>&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); }; }; then
15103 cat >>confdefs.h <<\_ACEOF
15104 #define HAVE_U_INTXX_T 1
15107 cat >>confdefs.h <<\_ACEOF
15108 #define HAVE_INTXX_T 1
15111 cat >>confdefs.h <<\_ACEOF
15112 #define HAVE_SYS_BITYPES_H 1
15115 echo "$as_me:$LINENO: result: yes" >&5
15116 echo "${ECHO_T}yes" >&6
15118 echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.$ac_ext >&5
15121 echo "$as_me:$LINENO: result: no" >&5
15122 echo "${ECHO_T}no" >&6
15125 rm -f conftest.$ac_objext conftest.$ac_ext
15128 if test -z "$have_u_intxx_t" ; then
15129 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15130 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15131 if test "${ac_cv_have_uintxx_t+set}" = set; then
15132 echo $ECHO_N "(cached) $ECHO_C" >&6
15135 cat >conftest.$ac_ext <<_ACEOF
15136 #line $LINENO "configure"
15139 cat confdefs.h >>conftest.$ac_ext
15140 cat >>conftest.$ac_ext <<_ACEOF
15141 /* end confdefs.h. */
15142 #include <sys/types.h>
15146 uint8_t a; uint16_t b;
15147 uint32_t c; a = b = c = 1;
15152 rm -f conftest.$ac_objext
15153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15154 (eval $ac_compile) 2>&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } &&
15158 { ac_try='test -s conftest.$ac_objext'
15159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15160 (eval $ac_try) 2>&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15164 ac_cv_have_uintxx_t="yes"
15166 echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15169 ac_cv_have_uintxx_t="no"
15172 rm -f conftest.$ac_objext conftest.$ac_ext
15175 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15176 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15177 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15178 cat >>confdefs.h <<\_ACEOF
15179 #define HAVE_UINTXX_T 1
15185 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15186 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15188 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15189 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15190 cat >conftest.$ac_ext <<_ACEOF
15191 #line $LINENO "configure"
15194 cat confdefs.h >>conftest.$ac_ext
15195 cat >>conftest.$ac_ext <<_ACEOF
15196 /* end confdefs.h. */
15197 #include <sys/bitypes.h>
15201 int64_t a; u_int64_t b;
15207 rm -f conftest.$ac_objext
15208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15209 (eval $ac_compile) 2>&5
15211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15212 (exit $ac_status); } &&
15213 { ac_try='test -s conftest.$ac_objext'
15214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15215 (eval $ac_try) 2>&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); }; }; then
15219 cat >>confdefs.h <<\_ACEOF
15220 #define HAVE_U_INT64_T 1
15223 cat >>confdefs.h <<\_ACEOF
15224 #define HAVE_INT64_T 1
15227 echo "$as_me:$LINENO: result: yes" >&5
15228 echo "${ECHO_T}yes" >&6
15230 echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.$ac_ext >&5
15233 echo "$as_me:$LINENO: result: no" >&5
15234 echo "${ECHO_T}no" >&6
15237 rm -f conftest.$ac_objext conftest.$ac_ext
15240 if (test -z "$have_uintxx_t" && \
15241 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15243 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15244 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15245 cat >conftest.$ac_ext <<_ACEOF
15246 #line $LINENO "configure"
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15252 #include <sys/bitypes.h>
15256 uint8_t a; uint16_t b;
15257 uint32_t c; a = b = c = 1;
15262 rm -f conftest.$ac_objext
15263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15264 (eval $ac_compile) 2>&5
15266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } &&
15268 { ac_try='test -s conftest.$ac_objext'
15269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15270 (eval $ac_try) 2>&5
15272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273 (exit $ac_status); }; }; then
15274 cat >>confdefs.h <<\_ACEOF
15275 #define HAVE_UINTXX_T 1
15278 echo "$as_me:$LINENO: result: yes" >&5
15279 echo "${ECHO_T}yes" >&6
15281 echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.$ac_ext >&5
15284 echo "$as_me:$LINENO: result: no" >&5
15285 echo "${ECHO_T}no" >&6
15288 rm -f conftest.$ac_objext conftest.$ac_ext
15324 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15325 echo "$as_me:$LINENO: checking for $ac_func" >&5
15326 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15327 if eval "test \"\${$as_ac_var+set}\" = set"; then
15328 echo $ECHO_N "(cached) $ECHO_C" >&6
15330 cat >conftest.$ac_ext <<_ACEOF
15331 #line $LINENO "configure"
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h. */
15337 /* System header to define __stub macros and hopefully few prototypes,
15338 which can conflict with char $ac_func (); below.
15339 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15340 <limits.h> exists even on freestanding compilers. */
15342 # include <limits.h>
15344 # include <assert.h>
15346 /* Override any gcc2 internal prototype to avoid an error. */
15351 /* We use char because int might match the return type of a gcc2
15352 builtin and then its argument prototype would still apply. */
15354 /* The GNU C library defines this for functions which it implements
15355 to always fail with ENOSYS. Some functions are actually named
15356 something starting with __ and the normal name is an alias. */
15357 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15360 char (*f) () = $ac_func;
15369 return f != $ac_func;
15374 rm -f conftest.$ac_objext conftest$ac_exeext
15375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15376 (eval $ac_link) 2>&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); } &&
15380 { ac_try='test -s conftest$ac_exeext'
15381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15382 (eval $ac_try) 2>&5
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); }; }; then
15386 eval "$as_ac_var=yes"
15388 echo "$as_me: failed program was:" >&5
15389 sed 's/^/| /' conftest.$ac_ext >&5
15391 eval "$as_ac_var=no"
15393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15395 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15396 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15397 if test `eval echo '${'$as_ac_var'}'` = yes; then
15398 cat >>confdefs.h <<_ACEOF
15399 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15403 echo 'configure: cannot find needed function.'; exit 1
15410 for ac_func in fchdir
15412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15413 echo "$as_me:$LINENO: checking for $ac_func" >&5
15414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15415 if eval "test \"\${$as_ac_var+set}\" = set"; then
15416 echo $ECHO_N "(cached) $ECHO_C" >&6
15418 cat >conftest.$ac_ext <<_ACEOF
15419 #line $LINENO "configure"
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h. */
15425 /* System header to define __stub macros and hopefully few prototypes,
15426 which can conflict with char $ac_func (); below.
15427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15428 <limits.h> exists even on freestanding compilers. */
15430 # include <limits.h>
15432 # include <assert.h>
15434 /* Override any gcc2 internal prototype to avoid an error. */
15439 /* We use char because int might match the return type of a gcc2
15440 builtin and then its argument prototype would still apply. */
15442 /* The GNU C library defines this for functions which it implements
15443 to always fail with ENOSYS. Some functions are actually named
15444 something starting with __ and the normal name is an alias. */
15445 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15448 char (*f) () = $ac_func;
15457 return f != $ac_func;
15462 rm -f conftest.$ac_objext conftest$ac_exeext
15463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15464 (eval $ac_link) 2>&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); } &&
15468 { ac_try='test -s conftest$ac_exeext'
15469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15470 (eval $ac_try) 2>&5
15472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15473 (exit $ac_status); }; }; then
15474 eval "$as_ac_var=yes"
15476 echo "$as_me: failed program was:" >&5
15477 sed 's/^/| /' conftest.$ac_ext >&5
15479 eval "$as_ac_var=no"
15481 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15483 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15484 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15485 if test `eval echo '${'$as_ac_var'}'` = yes; then
15486 cat >>confdefs.h <<_ACEOF
15487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15489 cat >>confdefs.h <<\_ACEOF
15490 #define HAVE_FCHDIR 1
15497 for ac_func in strtoll
15499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15500 echo "$as_me:$LINENO: checking for $ac_func" >&5
15501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15502 if eval "test \"\${$as_ac_var+set}\" = set"; then
15503 echo $ECHO_N "(cached) $ECHO_C" >&6
15505 cat >conftest.$ac_ext <<_ACEOF
15506 #line $LINENO "configure"
15509 cat confdefs.h >>conftest.$ac_ext
15510 cat >>conftest.$ac_ext <<_ACEOF
15511 /* end confdefs.h. */
15512 /* System header to define __stub macros and hopefully few prototypes,
15513 which can conflict with char $ac_func (); below.
15514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15515 <limits.h> exists even on freestanding compilers. */
15517 # include <limits.h>
15519 # include <assert.h>
15521 /* Override any gcc2 internal prototype to avoid an error. */
15526 /* We use char because int might match the return type of a gcc2
15527 builtin and then its argument prototype would still apply. */
15529 /* The GNU C library defines this for functions which it implements
15530 to always fail with ENOSYS. Some functions are actually named
15531 something starting with __ and the normal name is an alias. */
15532 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15535 char (*f) () = $ac_func;
15544 return f != $ac_func;
15549 rm -f conftest.$ac_objext conftest$ac_exeext
15550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15551 (eval $ac_link) 2>&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); } &&
15555 { ac_try='test -s conftest$ac_exeext'
15556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557 (eval $ac_try) 2>&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; }; then
15561 eval "$as_ac_var=yes"
15563 echo "$as_me: failed program was:" >&5
15564 sed 's/^/| /' conftest.$ac_ext >&5
15566 eval "$as_ac_var=no"
15568 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15570 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15571 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15572 if test `eval echo '${'$as_ac_var'}'` = yes; then
15573 cat >>confdefs.h <<_ACEOF
15574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15576 cat >>confdefs.h <<\_ACEOF
15577 #define HAVE_STRTOLL 1
15585 for ac_func in chflags
15587 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15588 echo "$as_me:$LINENO: checking for $ac_func" >&5
15589 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15590 if eval "test \"\${$as_ac_var+set}\" = set"; then
15591 echo $ECHO_N "(cached) $ECHO_C" >&6
15593 cat >conftest.$ac_ext <<_ACEOF
15594 #line $LINENO "configure"
15597 cat confdefs.h >>conftest.$ac_ext
15598 cat >>conftest.$ac_ext <<_ACEOF
15599 /* end confdefs.h. */
15600 /* System header to define __stub macros and hopefully few prototypes,
15601 which can conflict with char $ac_func (); below.
15602 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15603 <limits.h> exists even on freestanding compilers. */
15605 # include <limits.h>
15607 # include <assert.h>
15609 /* Override any gcc2 internal prototype to avoid an error. */
15614 /* We use char because int might match the return type of a gcc2
15615 builtin and then its argument prototype would still apply. */
15617 /* The GNU C library defines this for functions which it implements
15618 to always fail with ENOSYS. Some functions are actually named
15619 something starting with __ and the normal name is an alias. */
15620 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15623 char (*f) () = $ac_func;
15632 return f != $ac_func;
15637 rm -f conftest.$ac_objext conftest$ac_exeext
15638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15639 (eval $ac_link) 2>&5
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); } &&
15643 { ac_try='test -s conftest$ac_exeext'
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; }; then
15649 eval "$as_ac_var=yes"
15651 echo "$as_me: failed program was:" >&5
15652 sed 's/^/| /' conftest.$ac_ext >&5
15654 eval "$as_ac_var=no"
15656 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15658 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15659 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15660 if test `eval echo '${'$as_ac_var'}'` = yes; then
15661 cat >>confdefs.h <<_ACEOF
15662 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15673 for ac_func in snprintf vsnprintf gethostid getdomainname
15675 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15676 echo "$as_me:$LINENO: checking for $ac_func" >&5
15677 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15678 if eval "test \"\${$as_ac_var+set}\" = set"; then
15679 echo $ECHO_N "(cached) $ECHO_C" >&6
15681 cat >conftest.$ac_ext <<_ACEOF
15682 #line $LINENO "configure"
15685 cat confdefs.h >>conftest.$ac_ext
15686 cat >>conftest.$ac_ext <<_ACEOF
15687 /* end confdefs.h. */
15688 /* System header to define __stub macros and hopefully few prototypes,
15689 which can conflict with char $ac_func (); below.
15690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15691 <limits.h> exists even on freestanding compilers. */
15693 # include <limits.h>
15695 # include <assert.h>
15697 /* Override any gcc2 internal prototype to avoid an error. */
15702 /* We use char because int might match the return type of a gcc2
15703 builtin and then its argument prototype would still apply. */
15705 /* The GNU C library defines this for functions which it implements
15706 to always fail with ENOSYS. Some functions are actually named
15707 something starting with __ and the normal name is an alias. */
15708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15711 char (*f) () = $ac_func;
15720 return f != $ac_func;
15725 rm -f conftest.$ac_objext conftest$ac_exeext
15726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15727 (eval $ac_link) 2>&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } &&
15731 { ac_try='test -s conftest$ac_exeext'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; }; then
15737 eval "$as_ac_var=yes"
15739 echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15742 eval "$as_ac_var=no"
15744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15747 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15748 if test `eval echo '${'$as_ac_var'}'` = yes; then
15749 cat >>confdefs.h <<_ACEOF
15750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15761 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15764 echo "$as_me:$LINENO: checking for $ac_func" >&5
15765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15766 if eval "test \"\${$as_ac_var+set}\" = set"; then
15767 echo $ECHO_N "(cached) $ECHO_C" >&6
15769 cat >conftest.$ac_ext <<_ACEOF
15770 #line $LINENO "configure"
15773 cat confdefs.h >>conftest.$ac_ext
15774 cat >>conftest.$ac_ext <<_ACEOF
15775 /* end confdefs.h. */
15776 /* System header to define __stub macros and hopefully few prototypes,
15777 which can conflict with char $ac_func (); below.
15778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15779 <limits.h> exists even on freestanding compilers. */
15781 # include <limits.h>
15783 # include <assert.h>
15785 /* Override any gcc2 internal prototype to avoid an error. */
15790 /* We use char because int might match the return type of a gcc2
15791 builtin and then its argument prototype would still apply. */
15793 /* The GNU C library defines this for functions which it implements
15794 to always fail with ENOSYS. Some functions are actually named
15795 something starting with __ and the normal name is an alias. */
15796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15799 char (*f) () = $ac_func;
15808 return f != $ac_func;
15813 rm -f conftest.$ac_objext conftest$ac_exeext
15814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15815 (eval $ac_link) 2>&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } &&
15819 { ac_try='test -s conftest$ac_exeext'
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; }; then
15825 eval "$as_ac_var=yes"
15827 echo "$as_me: failed program was:" >&5
15828 sed 's/^/| /' conftest.$ac_ext >&5
15830 eval "$as_ac_var=no"
15832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15836 if test `eval echo '${'$as_ac_var'}'` = yes; then
15837 cat >>confdefs.h <<_ACEOF
15838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15845 # If resolver functions are not in libc check for -lnsl or -lresolv.
15846 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15847 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15848 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15849 echo $ECHO_N "(cached) $ECHO_C" >&6
15851 cat >conftest.$ac_ext <<_ACEOF
15852 #line $LINENO "configure"
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h. */
15858 /* System header to define __stub macros and hopefully few prototypes,
15859 which can conflict with char gethostbyname_r (); below.
15860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15861 <limits.h> exists even on freestanding compilers. */
15863 # include <limits.h>
15865 # include <assert.h>
15867 /* Override any gcc2 internal prototype to avoid an error. */
15872 /* We use char because int might match the return type of a gcc2
15873 builtin and then its argument prototype would still apply. */
15874 char gethostbyname_r ();
15875 /* The GNU C library defines this for functions which it implements
15876 to always fail with ENOSYS. Some functions are actually named
15877 something starting with __ and the normal name is an alias. */
15878 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15881 char (*f) () = gethostbyname_r;
15890 return f != gethostbyname_r;
15895 rm -f conftest.$ac_objext conftest$ac_exeext
15896 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15897 (eval $ac_link) 2>&5
15899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15900 (exit $ac_status); } &&
15901 { ac_try='test -s conftest$ac_exeext'
15902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15903 (eval $ac_try) 2>&5
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); }; }; then
15907 ac_cv_func_gethostbyname_r=yes
15909 echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.$ac_ext >&5
15912 ac_cv_func_gethostbyname_r=no
15914 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15916 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15917 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15918 if test $ac_cv_func_gethostbyname_r = yes; then
15919 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15920 echo "${ECHO_T}using libc's resolver" >&6
15923 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15924 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15925 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15926 echo $ECHO_N "(cached) $ECHO_C" >&6
15928 ac_check_lib_save_LIBS=$LIBS
15930 cat >conftest.$ac_ext <<_ACEOF
15931 #line $LINENO "configure"
15934 cat confdefs.h >>conftest.$ac_ext
15935 cat >>conftest.$ac_ext <<_ACEOF
15936 /* end confdefs.h. */
15938 /* Override any gcc2 internal prototype to avoid an error. */
15942 /* We use char because int might match the return type of a gcc2
15943 builtin and then its argument prototype would still apply. */
15944 char gethostbyname_r ();
15948 gethostbyname_r ();
15953 rm -f conftest.$ac_objext conftest$ac_exeext
15954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15955 (eval $ac_link) 2>&5
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); } &&
15959 { ac_try='test -s conftest$ac_exeext'
15960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15961 (eval $ac_try) 2>&5
15963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15964 (exit $ac_status); }; }; then
15965 ac_cv_lib_nsl_gethostbyname_r=yes
15967 echo "$as_me: failed program was:" >&5
15968 sed 's/^/| /' conftest.$ac_ext >&5
15970 ac_cv_lib_nsl_gethostbyname_r=no
15972 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15973 LIBS=$ac_check_lib_save_LIBS
15975 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15976 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15977 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15978 cat >>confdefs.h <<_ACEOF
15979 #define HAVE_LIBNSL 1
15987 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15988 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15989 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15992 ac_check_lib_save_LIBS=$LIBS
15993 LIBS="-lresolv $LIBS"
15994 cat >conftest.$ac_ext <<_ACEOF
15995 #line $LINENO "configure"
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h. */
16002 /* Override any gcc2 internal prototype to avoid an error. */
16006 /* We use char because int might match the return type of a gcc2
16007 builtin and then its argument prototype would still apply. */
16008 char gethostbyname_r ();
16012 gethostbyname_r ();
16017 rm -f conftest.$ac_objext conftest$ac_exeext
16018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16019 (eval $ac_link) 2>&5
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); } &&
16023 { ac_try='test -s conftest$ac_exeext'
16024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16025 (eval $ac_try) 2>&5
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); }; }; then
16029 ac_cv_lib_resolv_gethostbyname_r=yes
16031 echo "$as_me: failed program was:" >&5
16032 sed 's/^/| /' conftest.$ac_ext >&5
16034 ac_cv_lib_resolv_gethostbyname_r=no
16036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16037 LIBS=$ac_check_lib_save_LIBS
16039 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
16040 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
16041 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
16042 cat >>confdefs.h <<_ACEOF
16043 #define HAVE_LIBRESOLV 1
16046 LIBS="-lresolv $LIBS"
16054 # Find where sockets are (especially for Solaris)
16055 echo "$as_me:$LINENO: checking for socket" >&5
16056 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16057 if test "${ac_cv_func_socket+set}" = set; then
16058 echo $ECHO_N "(cached) $ECHO_C" >&6
16060 cat >conftest.$ac_ext <<_ACEOF
16061 #line $LINENO "configure"
16064 cat confdefs.h >>conftest.$ac_ext
16065 cat >>conftest.$ac_ext <<_ACEOF
16066 /* end confdefs.h. */
16067 /* System header to define __stub macros and hopefully few prototypes,
16068 which can conflict with char socket (); below.
16069 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16070 <limits.h> exists even on freestanding compilers. */
16072 # include <limits.h>
16074 # include <assert.h>
16076 /* Override any gcc2 internal prototype to avoid an error. */
16081 /* We use char because int might match the return type of a gcc2
16082 builtin and then its argument prototype would still apply. */
16084 /* The GNU C library defines this for functions which it implements
16085 to always fail with ENOSYS. Some functions are actually named
16086 something starting with __ and the normal name is an alias. */
16087 #if defined (__stub_socket) || defined (__stub___socket)
16090 char (*f) () = socket;
16099 return f != socket;
16104 rm -f conftest.$ac_objext conftest$ac_exeext
16105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16106 (eval $ac_link) 2>&5
16108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16109 (exit $ac_status); } &&
16110 { ac_try='test -s conftest$ac_exeext'
16111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16112 (eval $ac_try) 2>&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; }; then
16116 ac_cv_func_socket=yes
16118 echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.$ac_ext >&5
16121 ac_cv_func_socket=no
16123 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16125 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16126 echo "${ECHO_T}$ac_cv_func_socket" >&6
16127 if test $ac_cv_func_socket = yes; then
16128 echo "$as_me:$LINENO: result: using libc's socket" >&5
16129 echo "${ECHO_T}using libc's socket" >&6
16132 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
16133 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
16134 if test "${ac_cv_lib_xnet_socket+set}" = set; then
16135 echo $ECHO_N "(cached) $ECHO_C" >&6
16137 ac_check_lib_save_LIBS=$LIBS
16138 LIBS="-lxnet $LIBS"
16139 cat >conftest.$ac_ext <<_ACEOF
16140 #line $LINENO "configure"
16143 cat confdefs.h >>conftest.$ac_ext
16144 cat >>conftest.$ac_ext <<_ACEOF
16145 /* end confdefs.h. */
16147 /* Override any gcc2 internal prototype to avoid an error. */
16151 /* We use char because int might match the return type of a gcc2
16152 builtin and then its argument prototype would still apply. */
16162 rm -f conftest.$ac_objext conftest$ac_exeext
16163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16164 (eval $ac_link) 2>&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); } &&
16168 { ac_try='test -s conftest$ac_exeext'
16169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16170 (eval $ac_try) 2>&5
16172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173 (exit $ac_status); }; }; then
16174 ac_cv_lib_xnet_socket=yes
16176 echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16179 ac_cv_lib_xnet_socket=no
16181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16182 LIBS=$ac_check_lib_save_LIBS
16184 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16185 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
16186 if test $ac_cv_lib_xnet_socket = yes; then
16187 cat >>confdefs.h <<_ACEOF
16188 #define HAVE_LIBXNET 1
16191 LIBS="-lxnet $LIBS"
16196 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16197 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
16198 if test "${ac_cv_lib_socket_socket+set}" = set; then
16199 echo $ECHO_N "(cached) $ECHO_C" >&6
16201 ac_check_lib_save_LIBS=$LIBS
16202 LIBS="-lsocket $LIBS"
16203 cat >conftest.$ac_ext <<_ACEOF
16204 #line $LINENO "configure"
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16211 /* Override any gcc2 internal prototype to avoid an error. */
16215 /* We use char because int might match the return type of a gcc2
16216 builtin and then its argument prototype would still apply. */
16226 rm -f conftest.$ac_objext conftest$ac_exeext
16227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16228 (eval $ac_link) 2>&5
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } &&
16232 { ac_try='test -s conftest$ac_exeext'
16233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16234 (eval $ac_try) 2>&5
16236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237 (exit $ac_status); }; }; then
16238 ac_cv_lib_socket_socket=yes
16240 echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16243 ac_cv_lib_socket_socket=no
16245 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16246 LIBS=$ac_check_lib_save_LIBS
16248 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16249 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16250 if test $ac_cv_lib_socket_socket = yes; then
16251 cat >>confdefs.h <<_ACEOF
16252 #define HAVE_LIBSOCKET 1
16255 LIBS="-lsocket $LIBS"
16260 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16261 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16262 if test "${ac_cv_lib_inet_socket+set}" = set; then
16263 echo $ECHO_N "(cached) $ECHO_C" >&6
16265 ac_check_lib_save_LIBS=$LIBS
16266 LIBS="-linet $LIBS"
16267 cat >conftest.$ac_ext <<_ACEOF
16268 #line $LINENO "configure"
16271 cat confdefs.h >>conftest.$ac_ext
16272 cat >>conftest.$ac_ext <<_ACEOF
16273 /* end confdefs.h. */
16275 /* Override any gcc2 internal prototype to avoid an error. */
16279 /* We use char because int might match the return type of a gcc2
16280 builtin and then its argument prototype would still apply. */
16290 rm -f conftest.$ac_objext conftest$ac_exeext
16291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16292 (eval $ac_link) 2>&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); } &&
16296 { ac_try='test -s conftest$ac_exeext'
16297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298 (eval $ac_try) 2>&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); }; }; then
16302 ac_cv_lib_inet_socket=yes
16304 echo "$as_me: failed program was:" >&5
16305 sed 's/^/| /' conftest.$ac_ext >&5
16307 ac_cv_lib_inet_socket=no
16309 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16310 LIBS=$ac_check_lib_save_LIBS
16312 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16313 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16314 if test $ac_cv_lib_inet_socket = yes; then
16315 cat >>confdefs.h <<_ACEOF
16316 #define HAVE_LIBINET 1
16319 LIBS="-linet $LIBS"
16327 for ac_func in inet_pton
16329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16330 echo "$as_me:$LINENO: checking for $ac_func" >&5
16331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16332 if eval "test \"\${$as_ac_var+set}\" = set"; then
16333 echo $ECHO_N "(cached) $ECHO_C" >&6
16335 cat >conftest.$ac_ext <<_ACEOF
16336 #line $LINENO "configure"
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h. */
16342 /* System header to define __stub macros and hopefully few prototypes,
16343 which can conflict with char $ac_func (); below.
16344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16345 <limits.h> exists even on freestanding compilers. */
16347 # include <limits.h>
16349 # include <assert.h>
16351 /* Override any gcc2 internal prototype to avoid an error. */
16356 /* We use char because int might match the return type of a gcc2
16357 builtin and then its argument prototype would still apply. */
16359 /* The GNU C library defines this for functions which it implements
16360 to always fail with ENOSYS. Some functions are actually named
16361 something starting with __ and the normal name is an alias. */
16362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16365 char (*f) () = $ac_func;
16374 return f != $ac_func;
16379 rm -f conftest.$ac_objext conftest$ac_exeext
16380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16381 (eval $ac_link) 2>&5
16383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384 (exit $ac_status); } &&
16385 { ac_try='test -s conftest$ac_exeext'
16386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387 (eval $ac_try) 2>&5
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; }; then
16391 eval "$as_ac_var=yes"
16393 echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16396 eval "$as_ac_var=no"
16398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16402 if test `eval echo '${'$as_ac_var'}'` = yes; then
16403 cat >>confdefs.h <<_ACEOF
16404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16406 cat >>confdefs.h <<\_ACEOF
16407 #define HAVE_INET_PTON 1
16414 for ac_func in inet_ntop
16416 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16417 echo "$as_me:$LINENO: checking for $ac_func" >&5
16418 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16419 if eval "test \"\${$as_ac_var+set}\" = set"; then
16420 echo $ECHO_N "(cached) $ECHO_C" >&6
16422 cat >conftest.$ac_ext <<_ACEOF
16423 #line $LINENO "configure"
16426 cat confdefs.h >>conftest.$ac_ext
16427 cat >>conftest.$ac_ext <<_ACEOF
16428 /* end confdefs.h. */
16429 /* System header to define __stub macros and hopefully few prototypes,
16430 which can conflict with char $ac_func (); below.
16431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16432 <limits.h> exists even on freestanding compilers. */
16434 # include <limits.h>
16436 # include <assert.h>
16438 /* Override any gcc2 internal prototype to avoid an error. */
16443 /* We use char because int might match the return type of a gcc2
16444 builtin and then its argument prototype would still apply. */
16446 /* The GNU C library defines this for functions which it implements
16447 to always fail with ENOSYS. Some functions are actually named
16448 something starting with __ and the normal name is an alias. */
16449 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16452 char (*f) () = $ac_func;
16461 return f != $ac_func;
16466 rm -f conftest.$ac_objext conftest$ac_exeext
16467 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16468 (eval $ac_link) 2>&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } &&
16472 { ac_try='test -s conftest$ac_exeext'
16473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16474 (eval $ac_try) 2>&5
16476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16477 (exit $ac_status); }; }; then
16478 eval "$as_ac_var=yes"
16480 echo "$as_me: failed program was:" >&5
16481 sed 's/^/| /' conftest.$ac_ext >&5
16483 eval "$as_ac_var=no"
16485 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16487 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16488 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16489 if test `eval echo '${'$as_ac_var'}'` = yes; then
16490 cat >>confdefs.h <<_ACEOF
16491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16493 cat >>confdefs.h <<\_ACEOF
16494 #define HAVE_INET_NTOP 1
16501 for ac_func in gethostbyname2
16503 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16504 echo "$as_me:$LINENO: checking for $ac_func" >&5
16505 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16506 if eval "test \"\${$as_ac_var+set}\" = set"; then
16507 echo $ECHO_N "(cached) $ECHO_C" >&6
16509 cat >conftest.$ac_ext <<_ACEOF
16510 #line $LINENO "configure"
16513 cat confdefs.h >>conftest.$ac_ext
16514 cat >>conftest.$ac_ext <<_ACEOF
16515 /* end confdefs.h. */
16516 /* System header to define __stub macros and hopefully few prototypes,
16517 which can conflict with char $ac_func (); below.
16518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16519 <limits.h> exists even on freestanding compilers. */
16521 # include <limits.h>
16523 # include <assert.h>
16525 /* Override any gcc2 internal prototype to avoid an error. */
16530 /* We use char because int might match the return type of a gcc2
16531 builtin and then its argument prototype would still apply. */
16533 /* The GNU C library defines this for functions which it implements
16534 to always fail with ENOSYS. Some functions are actually named
16535 something starting with __ and the normal name is an alias. */
16536 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16539 char (*f) () = $ac_func;
16548 return f != $ac_func;
16553 rm -f conftest.$ac_objext conftest$ac_exeext
16554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16555 (eval $ac_link) 2>&5
16557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558 (exit $ac_status); } &&
16559 { ac_try='test -s conftest$ac_exeext'
16560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16561 (eval $ac_try) 2>&5
16563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16564 (exit $ac_status); }; }; then
16565 eval "$as_ac_var=yes"
16567 echo "$as_me: failed program was:" >&5
16568 sed 's/^/| /' conftest.$ac_ext >&5
16570 eval "$as_ac_var=no"
16572 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16574 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16575 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16576 if test `eval echo '${'$as_ac_var'}'` = yes; then
16577 cat >>confdefs.h <<_ACEOF
16578 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16580 cat >>confdefs.h <<\_ACEOF
16581 #define HAVE_GETHOSTBYNAME2 1
16588 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
16589 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
16590 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
16591 echo $ECHO_N "(cached) $ECHO_C" >&6
16593 cat >conftest.$ac_ext <<_ACEOF
16594 #line $LINENO "configure"
16597 cat confdefs.h >>conftest.$ac_ext
16598 cat >>conftest.$ac_ext <<_ACEOF
16599 /* end confdefs.h. */
16600 #include <sys/socket.h>
16604 struct sockaddr s; s.sa_len;
16609 rm -f conftest.$ac_objext
16610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16611 (eval $ac_compile) 2>&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); } &&
16615 { ac_try='test -s conftest.$ac_objext'
16616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16617 (eval $ac_try) 2>&5
16619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16620 (exit $ac_status); }; }; then
16621 ac_cv_struct_sockaddr_sa_len=yes
16623 echo "$as_me: failed program was:" >&5
16624 sed 's/^/| /' conftest.$ac_ext >&5
16626 ac_cv_struct_sockaddr_sa_len=no
16628 rm -f conftest.$ac_objext conftest.$ac_ext
16630 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
16631 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
16633 if test $ac_cv_struct_sockaddr_sa_len = yes; then
16635 cat >>confdefs.h <<\_ACEOF
16636 #define HAVE_SA_LEN 1
16642 echo "$as_me:$LINENO: checking for IPv6 support" >&5
16643 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
16644 if test "${ac_cv_ipv6_support+set}" = set; then
16645 echo $ECHO_N "(cached) $ECHO_C" >&6
16647 cat >conftest.$ac_ext <<_ACEOF
16648 #line $LINENO "configure"
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h. */
16654 #include <sys/types.h>
16655 #include <sys/socket.h>
16656 #include <netinet/in.h>
16660 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
16666 rm -f conftest.$ac_objext conftest$ac_exeext
16667 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16668 (eval $ac_link) 2>&5
16670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671 (exit $ac_status); } &&
16672 { ac_try='test -s conftest$ac_exeext'
16673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16674 (eval $ac_try) 2>&5
16676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16677 (exit $ac_status); }; }; then
16678 ac_cv_ipv6_support=yes
16680 echo "$as_me: failed program was:" >&5
16681 sed 's/^/| /' conftest.$ac_ext >&5
16683 ac_cv_ipv6_support=no
16685 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16687 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
16688 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
16690 if test "$ac_cv_ipv6_support" = yes; then
16692 cat >>confdefs.h <<\_ACEOF
16693 #define HAVE_IPV6 1
16701 for ac_func in strftime
16703 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16704 echo "$as_me:$LINENO: checking for $ac_func" >&5
16705 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16706 if eval "test \"\${$as_ac_var+set}\" = set"; then
16707 echo $ECHO_N "(cached) $ECHO_C" >&6
16709 cat >conftest.$ac_ext <<_ACEOF
16710 #line $LINENO "configure"
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16716 /* System header to define __stub macros and hopefully few prototypes,
16717 which can conflict with char $ac_func (); below.
16718 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16719 <limits.h> exists even on freestanding compilers. */
16721 # include <limits.h>
16723 # include <assert.h>
16725 /* Override any gcc2 internal prototype to avoid an error. */
16730 /* We use char because int might match the return type of a gcc2
16731 builtin and then its argument prototype would still apply. */
16733 /* The GNU C library defines this for functions which it implements
16734 to always fail with ENOSYS. Some functions are actually named
16735 something starting with __ and the normal name is an alias. */
16736 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16739 char (*f) () = $ac_func;
16748 return f != $ac_func;
16753 rm -f conftest.$ac_objext conftest$ac_exeext
16754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16755 (eval $ac_link) 2>&5
16757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758 (exit $ac_status); } &&
16759 { ac_try='test -s conftest$ac_exeext'
16760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16761 (eval $ac_try) 2>&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); }; }; then
16765 eval "$as_ac_var=yes"
16767 echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.$ac_ext >&5
16770 eval "$as_ac_var=no"
16772 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16774 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16775 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16776 if test `eval echo '${'$as_ac_var'}'` = yes; then
16777 cat >>confdefs.h <<_ACEOF
16778 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16782 # strftime is in -lintl on SCO UNIX.
16783 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16784 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16785 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16786 echo $ECHO_N "(cached) $ECHO_C" >&6
16788 ac_check_lib_save_LIBS=$LIBS
16789 LIBS="-lintl $LIBS"
16790 cat >conftest.$ac_ext <<_ACEOF
16791 #line $LINENO "configure"
16794 cat confdefs.h >>conftest.$ac_ext
16795 cat >>conftest.$ac_ext <<_ACEOF
16796 /* end confdefs.h. */
16798 /* Override any gcc2 internal prototype to avoid an error. */
16802 /* We use char because int might match the return type of a gcc2
16803 builtin and then its argument prototype would still apply. */
16813 rm -f conftest.$ac_objext conftest$ac_exeext
16814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16815 (eval $ac_link) 2>&5
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); } &&
16819 { ac_try='test -s conftest$ac_exeext'
16820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16821 (eval $ac_try) 2>&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); }; }; then
16825 ac_cv_lib_intl_strftime=yes
16827 echo "$as_me: failed program was:" >&5
16828 sed 's/^/| /' conftest.$ac_ext >&5
16830 ac_cv_lib_intl_strftime=no
16832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16833 LIBS=$ac_check_lib_save_LIBS
16835 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16836 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16837 if test $ac_cv_lib_intl_strftime = yes; then
16838 cat >>confdefs.h <<\_ACEOF
16839 #define HAVE_STRFTIME 1
16842 LIBS="-lintl $LIBS"
16849 for ac_func in vprintf
16851 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16852 echo "$as_me:$LINENO: checking for $ac_func" >&5
16853 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16854 if eval "test \"\${$as_ac_var+set}\" = set"; then
16855 echo $ECHO_N "(cached) $ECHO_C" >&6
16857 cat >conftest.$ac_ext <<_ACEOF
16858 #line $LINENO "configure"
16861 cat confdefs.h >>conftest.$ac_ext
16862 cat >>conftest.$ac_ext <<_ACEOF
16863 /* end confdefs.h. */
16864 /* System header to define __stub macros and hopefully few prototypes,
16865 which can conflict with char $ac_func (); below.
16866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16867 <limits.h> exists even on freestanding compilers. */
16869 # include <limits.h>
16871 # include <assert.h>
16873 /* Override any gcc2 internal prototype to avoid an error. */
16878 /* We use char because int might match the return type of a gcc2
16879 builtin and then its argument prototype would still apply. */
16881 /* The GNU C library defines this for functions which it implements
16882 to always fail with ENOSYS. Some functions are actually named
16883 something starting with __ and the normal name is an alias. */
16884 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16887 char (*f) () = $ac_func;
16896 return f != $ac_func;
16901 rm -f conftest.$ac_objext conftest$ac_exeext
16902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16903 (eval $ac_link) 2>&5
16905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16906 (exit $ac_status); } &&
16907 { ac_try='test -s conftest$ac_exeext'
16908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16909 (eval $ac_try) 2>&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
16913 eval "$as_ac_var=yes"
16915 echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16918 eval "$as_ac_var=no"
16920 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16922 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16923 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16924 if test `eval echo '${'$as_ac_var'}'` = yes; then
16925 cat >>confdefs.h <<_ACEOF
16926 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16929 echo "$as_me:$LINENO: checking for _doprnt" >&5
16930 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16931 if test "${ac_cv_func__doprnt+set}" = set; then
16932 echo $ECHO_N "(cached) $ECHO_C" >&6
16934 cat >conftest.$ac_ext <<_ACEOF
16935 #line $LINENO "configure"
16938 cat confdefs.h >>conftest.$ac_ext
16939 cat >>conftest.$ac_ext <<_ACEOF
16940 /* end confdefs.h. */
16941 /* System header to define __stub macros and hopefully few prototypes,
16942 which can conflict with char _doprnt (); below.
16943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16944 <limits.h> exists even on freestanding compilers. */
16946 # include <limits.h>
16948 # include <assert.h>
16950 /* Override any gcc2 internal prototype to avoid an error. */
16955 /* We use char because int might match the return type of a gcc2
16956 builtin and then its argument prototype would still apply. */
16958 /* The GNU C library defines this for functions which it implements
16959 to always fail with ENOSYS. Some functions are actually named
16960 something starting with __ and the normal name is an alias. */
16961 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16964 char (*f) () = _doprnt;
16973 return f != _doprnt;
16978 rm -f conftest.$ac_objext conftest$ac_exeext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16980 (eval $ac_link) 2>&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } &&
16984 { ac_try='test -s conftest$ac_exeext'
16985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16986 (eval $ac_try) 2>&5
16988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16989 (exit $ac_status); }; }; then
16990 ac_cv_func__doprnt=yes
16992 echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16995 ac_cv_func__doprnt=no
16997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16999 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17000 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
17001 if test $ac_cv_func__doprnt = yes; then
17003 cat >>confdefs.h <<\_ACEOF
17004 #define HAVE_DOPRNT 1
17013 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17014 # for constant arguments. Useless!
17015 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17016 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17017 if test "${ac_cv_working_alloca_h+set}" = set; then
17018 echo $ECHO_N "(cached) $ECHO_C" >&6
17020 cat >conftest.$ac_ext <<_ACEOF
17021 #line $LINENO "configure"
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h. */
17027 #include <alloca.h>
17031 char *p = (char *) alloca (2 * sizeof (int));
17036 rm -f conftest.$ac_objext conftest$ac_exeext
17037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17038 (eval $ac_link) 2>&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); } &&
17042 { ac_try='test -s conftest$ac_exeext'
17043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17044 (eval $ac_try) 2>&5
17046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17047 (exit $ac_status); }; }; then
17048 ac_cv_working_alloca_h=yes
17050 echo "$as_me: failed program was:" >&5
17051 sed 's/^/| /' conftest.$ac_ext >&5
17053 ac_cv_working_alloca_h=no
17055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17057 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17058 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17059 if test $ac_cv_working_alloca_h = yes; then
17061 cat >>confdefs.h <<\_ACEOF
17062 #define HAVE_ALLOCA_H 1
17067 echo "$as_me:$LINENO: checking for alloca" >&5
17068 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17069 if test "${ac_cv_func_alloca_works+set}" = set; then
17070 echo $ECHO_N "(cached) $ECHO_C" >&6
17072 cat >conftest.$ac_ext <<_ACEOF
17073 #line $LINENO "configure"
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17080 # define alloca __builtin_alloca
17083 # include <malloc.h>
17084 # define alloca _alloca
17087 # include <alloca.h>
17092 # ifndef alloca /* predefined by HP cc +Olibcalls */
17103 char *p = (char *) alloca (1);
17108 rm -f conftest.$ac_objext conftest$ac_exeext
17109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17110 (eval $ac_link) 2>&5
17112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17113 (exit $ac_status); } &&
17114 { ac_try='test -s conftest$ac_exeext'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; }; then
17120 ac_cv_func_alloca_works=yes
17122 echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17125 ac_cv_func_alloca_works=no
17127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17129 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17130 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17132 if test $ac_cv_func_alloca_works = yes; then
17134 cat >>confdefs.h <<\_ACEOF
17135 #define HAVE_ALLOCA 1
17139 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17140 # that cause trouble. Some versions do not even contain alloca or
17141 # contain a buggy version. If you still want to use their alloca,
17142 # use ar to extract alloca.o from them instead of compiling alloca.c.
17144 ALLOCA=alloca.$ac_objext
17146 cat >>confdefs.h <<\_ACEOF
17151 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17152 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17153 if test "${ac_cv_os_cray+set}" = set; then
17154 echo $ECHO_N "(cached) $ECHO_C" >&6
17156 cat >conftest.$ac_ext <<_ACEOF
17157 #line $LINENO "configure"
17160 cat confdefs.h >>conftest.$ac_ext
17161 cat >>conftest.$ac_ext <<_ACEOF
17162 /* end confdefs.h. */
17163 #if defined(CRAY) && ! defined(CRAY2)
17170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17171 $EGREP "webecray" >/dev/null 2>&1; then
17179 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17180 echo "${ECHO_T}$ac_cv_os_cray" >&6
17181 if test $ac_cv_os_cray = yes; then
17182 for ac_func in _getb67 GETB67 getb67; do
17183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17184 echo "$as_me:$LINENO: checking for $ac_func" >&5
17185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17186 if eval "test \"\${$as_ac_var+set}\" = set"; then
17187 echo $ECHO_N "(cached) $ECHO_C" >&6
17189 cat >conftest.$ac_ext <<_ACEOF
17190 #line $LINENO "configure"
17193 cat confdefs.h >>conftest.$ac_ext
17194 cat >>conftest.$ac_ext <<_ACEOF
17195 /* end confdefs.h. */
17196 /* System header to define __stub macros and hopefully few prototypes,
17197 which can conflict with char $ac_func (); below.
17198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17199 <limits.h> exists even on freestanding compilers. */
17201 # include <limits.h>
17203 # include <assert.h>
17205 /* Override any gcc2 internal prototype to avoid an error. */
17210 /* We use char because int might match the return type of a gcc2
17211 builtin and then its argument prototype would still apply. */
17213 /* The GNU C library defines this for functions which it implements
17214 to always fail with ENOSYS. Some functions are actually named
17215 something starting with __ and the normal name is an alias. */
17216 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17219 char (*f) () = $ac_func;
17228 return f != $ac_func;
17233 rm -f conftest.$ac_objext conftest$ac_exeext
17234 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17235 (eval $ac_link) 2>&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); } &&
17239 { ac_try='test -s conftest$ac_exeext'
17240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17241 (eval $ac_try) 2>&5
17243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244 (exit $ac_status); }; }; then
17245 eval "$as_ac_var=yes"
17247 echo "$as_me: failed program was:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17250 eval "$as_ac_var=no"
17252 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17254 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17255 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17256 if test `eval echo '${'$as_ac_var'}'` = yes; then
17258 cat >>confdefs.h <<_ACEOF
17259 #define CRAY_STACKSEG_END $ac_func
17268 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17269 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17270 if test "${ac_cv_c_stack_direction+set}" = set; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17273 if test "$cross_compiling" = yes; then
17274 ac_cv_c_stack_direction=0
17276 cat >conftest.$ac_ext <<_ACEOF
17277 #line $LINENO "configure"
17280 cat confdefs.h >>conftest.$ac_ext
17281 cat >>conftest.$ac_ext <<_ACEOF
17282 /* end confdefs.h. */
17284 find_stack_direction ()
17286 static char *addr = 0;
17291 return find_stack_direction ();
17294 return (&dummy > addr) ? 1 : -1;
17300 exit (find_stack_direction () < 0);
17303 rm -f conftest$ac_exeext
17304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17305 (eval $ac_link) 2>&5
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17310 (eval $ac_try) 2>&5
17312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17313 (exit $ac_status); }; }; then
17314 ac_cv_c_stack_direction=1
17316 echo "$as_me: program exited with status $ac_status" >&5
17317 echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.$ac_ext >&5
17320 ( exit $ac_status )
17321 ac_cv_c_stack_direction=-1
17323 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17326 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17327 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17329 cat >>confdefs.h <<_ACEOF
17330 #define STACK_DIRECTION $ac_cv_c_stack_direction
17336 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17337 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17338 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17339 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17340 echo $ECHO_N "(cached) $ECHO_C" >&6
17342 ac_check_lib_save_LIBS=$LIBS
17344 cat >conftest.$ac_ext <<_ACEOF
17345 #line $LINENO "configure"
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17352 /* Override any gcc2 internal prototype to avoid an error. */
17356 /* We use char because int might match the return type of a gcc2
17357 builtin and then its argument prototype would still apply. */
17367 rm -f conftest.$ac_objext conftest$ac_exeext
17368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17369 (eval $ac_link) 2>&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } &&
17373 { ac_try='test -s conftest$ac_exeext'
17374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375 (eval $ac_try) 2>&5
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); }; }; then
17379 ac_cv_lib_sun_getmntent=yes
17381 echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17384 ac_cv_lib_sun_getmntent=no
17386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17387 LIBS=$ac_check_lib_save_LIBS
17389 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17390 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17391 if test $ac_cv_lib_sun_getmntent = yes; then
17394 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17395 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17396 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17397 echo $ECHO_N "(cached) $ECHO_C" >&6
17399 ac_check_lib_save_LIBS=$LIBS
17401 cat >conftest.$ac_ext <<_ACEOF
17402 #line $LINENO "configure"
17405 cat confdefs.h >>conftest.$ac_ext
17406 cat >>conftest.$ac_ext <<_ACEOF
17407 /* end confdefs.h. */
17409 /* Override any gcc2 internal prototype to avoid an error. */
17413 /* We use char because int might match the return type of a gcc2
17414 builtin and then its argument prototype would still apply. */
17424 rm -f conftest.$ac_objext conftest$ac_exeext
17425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17426 (eval $ac_link) 2>&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } &&
17430 { ac_try='test -s conftest$ac_exeext'
17431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17432 (eval $ac_try) 2>&5
17434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17435 (exit $ac_status); }; }; then
17436 ac_cv_lib_seq_getmntent=yes
17438 echo "$as_me: failed program was:" >&5
17439 sed 's/^/| /' conftest.$ac_ext >&5
17441 ac_cv_lib_seq_getmntent=no
17443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17444 LIBS=$ac_check_lib_save_LIBS
17446 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17447 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17448 if test $ac_cv_lib_seq_getmntent = yes; then
17451 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17452 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17453 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17454 echo $ECHO_N "(cached) $ECHO_C" >&6
17456 ac_check_lib_save_LIBS=$LIBS
17458 cat >conftest.$ac_ext <<_ACEOF
17459 #line $LINENO "configure"
17462 cat confdefs.h >>conftest.$ac_ext
17463 cat >>conftest.$ac_ext <<_ACEOF
17464 /* end confdefs.h. */
17466 /* Override any gcc2 internal prototype to avoid an error. */
17470 /* We use char because int might match the return type of a gcc2
17471 builtin and then its argument prototype would still apply. */
17481 rm -f conftest.$ac_objext conftest$ac_exeext
17482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17483 (eval $ac_link) 2>&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); } &&
17487 { ac_try='test -s conftest$ac_exeext'
17488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17489 (eval $ac_try) 2>&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; }; then
17493 ac_cv_lib_gen_getmntent=yes
17495 echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17498 ac_cv_lib_gen_getmntent=no
17500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17501 LIBS=$ac_check_lib_save_LIBS
17503 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17504 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17505 if test $ac_cv_lib_gen_getmntent = yes; then
17514 for ac_func in getmntent
17516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17517 echo "$as_me:$LINENO: checking for $ac_func" >&5
17518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17519 if eval "test \"\${$as_ac_var+set}\" = set"; then
17520 echo $ECHO_N "(cached) $ECHO_C" >&6
17522 cat >conftest.$ac_ext <<_ACEOF
17523 #line $LINENO "configure"
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h. */
17529 /* System header to define __stub macros and hopefully few prototypes,
17530 which can conflict with char $ac_func (); below.
17531 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17532 <limits.h> exists even on freestanding compilers. */
17534 # include <limits.h>
17536 # include <assert.h>
17538 /* Override any gcc2 internal prototype to avoid an error. */
17543 /* We use char because int might match the return type of a gcc2
17544 builtin and then its argument prototype would still apply. */
17546 /* The GNU C library defines this for functions which it implements
17547 to always fail with ENOSYS. Some functions are actually named
17548 something starting with __ and the normal name is an alias. */
17549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17552 char (*f) () = $ac_func;
17561 return f != $ac_func;
17566 rm -f conftest.$ac_objext conftest$ac_exeext
17567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17568 (eval $ac_link) 2>&5
17570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17571 (exit $ac_status); } &&
17572 { ac_try='test -s conftest$ac_exeext'
17573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17574 (eval $ac_try) 2>&5
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; }; then
17578 eval "$as_ac_var=yes"
17580 echo "$as_me: failed program was:" >&5
17581 sed 's/^/| /' conftest.$ac_ext >&5
17583 eval "$as_ac_var=no"
17585 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17589 if test `eval echo '${'$as_ac_var'}'` = yes; then
17590 cat >>confdefs.h <<_ACEOF
17591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17598 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17599 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17600 if test "${ac_cv_func_closedir_void+set}" = set; then
17601 echo $ECHO_N "(cached) $ECHO_C" >&6
17603 if test "$cross_compiling" = yes; then
17604 ac_cv_func_closedir_void=yes
17606 cat >conftest.$ac_ext <<_ACEOF
17607 #line $LINENO "configure"
17610 cat confdefs.h >>conftest.$ac_ext
17611 cat >>conftest.$ac_ext <<_ACEOF
17612 /* end confdefs.h. */
17613 $ac_includes_default
17614 #include <$ac_header_dirent>
17615 #ifndef __cplusplus
17622 exit (closedir (opendir (".")) != 0);
17627 rm -f conftest$ac_exeext
17628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17629 (eval $ac_link) 2>&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 ac_cv_func_closedir_void=no
17640 echo "$as_me: program exited with status $ac_status" >&5
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17644 ( exit $ac_status )
17645 ac_cv_func_closedir_void=yes
17647 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17650 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17651 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17652 if test $ac_cv_func_closedir_void = yes; then
17654 cat >>confdefs.h <<\_ACEOF
17655 #define CLOSEDIR_VOID 1
17660 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17661 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17662 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17663 echo $ECHO_N "(cached) $ECHO_C" >&6
17665 if test "$cross_compiling" = yes; then
17666 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17667 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17668 { (exit 1); exit 1; }; }
17670 cat >conftest.$ac_ext <<_ACEOF
17671 #line $LINENO "configure"
17674 cat confdefs.h >>conftest.$ac_ext
17675 cat >>conftest.$ac_ext <<_ACEOF
17676 /* end confdefs.h. */
17678 # include <unistd.h>
17684 /* If this system has a BSD-style setpgrp which takes arguments,
17685 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17686 exit successfully. */
17687 exit (setpgrp (1,1) == -1 ? 0 : 1);
17692 rm -f conftest$ac_exeext
17693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17694 (eval $ac_link) 2>&5
17696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699 (eval $ac_try) 2>&5
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); }; }; then
17703 ac_cv_func_setpgrp_void=no
17705 echo "$as_me: program exited with status $ac_status" >&5
17706 echo "$as_me: failed program was:" >&5
17707 sed 's/^/| /' conftest.$ac_ext >&5
17709 ( exit $ac_status )
17710 ac_cv_func_setpgrp_void=yes
17712 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17715 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17716 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17717 if test $ac_cv_func_setpgrp_void = yes; then
17719 cat >>confdefs.h <<\_ACEOF
17720 #define SETPGRP_VOID 1
17724 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17725 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17726 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17727 echo $ECHO_N "(cached) $ECHO_C" >&6
17729 # Some versions of Solaris, SCO, and the GNU C Library
17730 # have a broken or incompatible fnmatch.
17731 # So we run a test program. If we are cross-compiling, take no chance.
17732 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17733 if test "$cross_compiling" = yes; then
17734 ac_cv_func_fnmatch_works=cross
17736 cat >conftest.$ac_ext <<_ACEOF
17737 #line $LINENO "configure"
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h. */
17743 #include <fnmatch.h>
17744 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17745 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17751 (!(y ("a*", "abc", 0)
17752 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17753 && y ("a\\\\bc", "abc", 0)
17754 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17755 && y ("*x", ".x", 0)
17756 && n ("*x", ".x", FNM_PERIOD)
17762 rm -f conftest$ac_exeext
17763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17764 (eval $ac_link) 2>&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769 (eval $ac_try) 2>&5
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; }; then
17773 ac_cv_func_fnmatch_works=yes
17775 echo "$as_me: program exited with status $ac_status" >&5
17776 echo "$as_me: failed program was:" >&5
17777 sed 's/^/| /' conftest.$ac_ext >&5
17779 ( exit $ac_status )
17780 ac_cv_func_fnmatch_works=no
17782 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17785 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17786 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17787 if test $ac_cv_func_fnmatch_works = yes; then
17789 cat >>confdefs.h <<\_ACEOF
17790 #define HAVE_FNMATCH 1
17799 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17800 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17801 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17802 echo $ECHO_N "(cached) $ECHO_C" >&6
17804 ac_check_lib_save_LIBS=$LIBS
17805 LIBS="-lxpg4 $LIBS"
17806 cat >conftest.$ac_ext <<_ACEOF
17807 #line $LINENO "configure"
17810 cat confdefs.h >>conftest.$ac_ext
17811 cat >>conftest.$ac_ext <<_ACEOF
17812 /* end confdefs.h. */
17814 /* Override any gcc2 internal prototype to avoid an error. */
17818 /* We use char because int might match the return type of a gcc2
17819 builtin and then its argument prototype would still apply. */
17829 rm -f conftest.$ac_objext conftest$ac_exeext
17830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17831 (eval $ac_link) 2>&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); } &&
17835 { ac_try='test -s conftest$ac_exeext'
17836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17837 (eval $ac_try) 2>&5
17839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17840 (exit $ac_status); }; }; then
17841 ac_cv_lib_xpg4_setlocale=yes
17843 echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17846 ac_cv_lib_xpg4_setlocale=no
17848 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17849 LIBS=$ac_check_lib_save_LIBS
17851 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17852 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17853 if test $ac_cv_lib_xpg4_setlocale = yes; then
17854 LIBS="$LIBS -lxpg4"
17860 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17861 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17862 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17863 echo $ECHO_N "(cached) $ECHO_C" >&6
17865 ac_check_lib_save_LIBS=$LIBS
17867 cat >conftest.$ac_ext <<_ACEOF
17868 #line $LINENO "configure"
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h. */
17875 /* Override any gcc2 internal prototype to avoid an error. */
17879 /* We use char because int might match the return type of a gcc2
17880 builtin and then its argument prototype would still apply. */
17890 rm -f conftest.$ac_objext conftest$ac_exeext
17891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17892 (eval $ac_link) 2>&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); } &&
17896 { ac_try='test -s conftest$ac_exeext'
17897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17898 (eval $ac_try) 2>&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; }; then
17902 ac_cv_lib_sun_getpwnam=yes
17904 echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17907 ac_cv_lib_sun_getpwnam=no
17909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17910 LIBS=$ac_check_lib_save_LIBS
17912 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17913 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17914 if test $ac_cv_lib_sun_getpwnam = yes; then
17915 cat >>confdefs.h <<_ACEOF
17916 #define HAVE_LIBSUN 1
17925 for ac_header in zlib.h
17927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17928 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17929 echo "$as_me:$LINENO: checking for $ac_header" >&5
17930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17931 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17932 echo $ECHO_N "(cached) $ECHO_C" >&6
17934 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17935 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17937 # Is the header compilable?
17938 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17940 cat >conftest.$ac_ext <<_ACEOF
17941 #line $LINENO "configure"
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h. */
17947 $ac_includes_default
17948 #include <$ac_header>
17950 rm -f conftest.$ac_objext
17951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17952 (eval $ac_compile) 2>&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); } &&
17956 { ac_try='test -s conftest.$ac_objext'
17957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17958 (eval $ac_try) 2>&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); }; }; then
17962 ac_header_compiler=yes
17964 echo "$as_me: failed program was:" >&5
17965 sed 's/^/| /' conftest.$ac_ext >&5
17967 ac_header_compiler=no
17969 rm -f conftest.$ac_objext conftest.$ac_ext
17970 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17971 echo "${ECHO_T}$ac_header_compiler" >&6
17973 # Is the header present?
17974 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17976 cat >conftest.$ac_ext <<_ACEOF
17977 #line $LINENO "configure"
17980 cat confdefs.h >>conftest.$ac_ext
17981 cat >>conftest.$ac_ext <<_ACEOF
17982 /* end confdefs.h. */
17983 #include <$ac_header>
17985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17988 grep -v '^ *+' conftest.er1 >conftest.err
17990 cat conftest.err >&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } >/dev/null; then
17993 if test -s conftest.err; then
17994 ac_cpp_err=$ac_c_preproc_warn_flag
18001 if test -z "$ac_cpp_err"; then
18002 ac_header_preproc=yes
18004 echo "$as_me: failed program was:" >&5
18005 sed 's/^/| /' conftest.$ac_ext >&5
18007 ac_header_preproc=no
18009 rm -f conftest.err conftest.$ac_ext
18010 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18011 echo "${ECHO_T}$ac_header_preproc" >&6
18013 # So? What about this header?
18014 case $ac_header_compiler:$ac_header_preproc in
18016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18022 ## ------------------------------------ ##
18023 ## Report this to bug-autoconf@gnu.org. ##
18024 ## ------------------------------------ ##
18027 sed "s/^/$as_me: WARNING: /" >&2
18030 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18031 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18032 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18033 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18035 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18038 ## ------------------------------------ ##
18039 ## Report this to bug-autoconf@gnu.org. ##
18040 ## ------------------------------------ ##
18043 sed "s/^/$as_me: WARNING: /" >&2
18046 echo "$as_me:$LINENO: checking for $ac_header" >&5
18047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18049 echo $ECHO_N "(cached) $ECHO_C" >&6
18051 eval "$as_ac_Header=$ac_header_preproc"
18053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18058 cat >>confdefs.h <<_ACEOF
18059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18066 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18067 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18068 if test "${ac_cv_lib_z_deflate+set}" = set; then
18069 echo $ECHO_N "(cached) $ECHO_C" >&6
18071 ac_check_lib_save_LIBS=$LIBS
18073 cat >conftest.$ac_ext <<_ACEOF
18074 #line $LINENO "configure"
18077 cat confdefs.h >>conftest.$ac_ext
18078 cat >>conftest.$ac_ext <<_ACEOF
18079 /* end confdefs.h. */
18081 /* Override any gcc2 internal prototype to avoid an error. */
18085 /* We use char because int might match the return type of a gcc2
18086 builtin and then its argument prototype would still apply. */
18096 rm -f conftest.$ac_objext conftest$ac_exeext
18097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18098 (eval $ac_link) 2>&5
18100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101 (exit $ac_status); } &&
18102 { ac_try='test -s conftest$ac_exeext'
18103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18104 (eval $ac_try) 2>&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); }; }; then
18108 ac_cv_lib_z_deflate=yes
18110 echo "$as_me: failed program was:" >&5
18111 sed 's/^/| /' conftest.$ac_ext >&5
18113 ac_cv_lib_z_deflate=no
18115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18116 LIBS=$ac_check_lib_save_LIBS
18118 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18119 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18120 if test $ac_cv_lib_z_deflate = yes; then
18125 if test x$FDLIBS = x-lz; then
18126 cat >>confdefs.h <<\_ACEOF
18127 #define HAVE_LIBZ 1
18133 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18134 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18135 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18136 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18137 echo $ECHO_N "(cached) $ECHO_C" >&6
18139 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18140 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18142 # Is the header compilable?
18143 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18144 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18145 cat >conftest.$ac_ext <<_ACEOF
18146 #line $LINENO "configure"
18149 cat confdefs.h >>conftest.$ac_ext
18150 cat >>conftest.$ac_ext <<_ACEOF
18151 /* end confdefs.h. */
18152 $ac_includes_default
18153 #include <sys/acl.h>
18155 rm -f conftest.$ac_objext
18156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18157 (eval $ac_compile) 2>&5
18159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160 (exit $ac_status); } &&
18161 { ac_try='test -s conftest.$ac_objext'
18162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18163 (eval $ac_try) 2>&5
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); }; }; then
18167 ac_header_compiler=yes
18169 echo "$as_me: failed program was:" >&5
18170 sed 's/^/| /' conftest.$ac_ext >&5
18172 ac_header_compiler=no
18174 rm -f conftest.$ac_objext conftest.$ac_ext
18175 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18176 echo "${ECHO_T}$ac_header_compiler" >&6
18178 # Is the header present?
18179 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18180 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18181 cat >conftest.$ac_ext <<_ACEOF
18182 #line $LINENO "configure"
18185 cat confdefs.h >>conftest.$ac_ext
18186 cat >>conftest.$ac_ext <<_ACEOF
18187 /* end confdefs.h. */
18188 #include <sys/acl.h>
18190 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18191 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18193 grep -v '^ *+' conftest.er1 >conftest.err
18195 cat conftest.err >&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } >/dev/null; then
18198 if test -s conftest.err; then
18199 ac_cpp_err=$ac_c_preproc_warn_flag
18206 if test -z "$ac_cpp_err"; then
18207 ac_header_preproc=yes
18209 echo "$as_me: failed program was:" >&5
18210 sed 's/^/| /' conftest.$ac_ext >&5
18212 ac_header_preproc=no
18214 rm -f conftest.err conftest.$ac_ext
18215 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18216 echo "${ECHO_T}$ac_header_preproc" >&6
18218 # So? What about this header?
18219 case $ac_header_compiler:$ac_header_preproc in
18221 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18222 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18223 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18224 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18227 ## ------------------------------------ ##
18228 ## Report this to bug-autoconf@gnu.org. ##
18229 ## ------------------------------------ ##
18232 sed "s/^/$as_me: WARNING: /" >&2
18235 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18236 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18237 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18238 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18239 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18240 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18243 ## ------------------------------------ ##
18244 ## Report this to bug-autoconf@gnu.org. ##
18245 ## ------------------------------------ ##
18248 sed "s/^/$as_me: WARNING: /" >&2
18251 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18252 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18253 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18254 echo $ECHO_N "(cached) $ECHO_C" >&6
18256 ac_cv_header_sys_acl_h=$ac_header_preproc
18258 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18259 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18264 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18265 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18266 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18267 echo $ECHO_N "(cached) $ECHO_C" >&6
18269 ac_check_lib_save_LIBS=$LIBS
18271 cat >conftest.$ac_ext <<_ACEOF
18272 #line $LINENO "configure"
18275 cat confdefs.h >>conftest.$ac_ext
18276 cat >>conftest.$ac_ext <<_ACEOF
18277 /* end confdefs.h. */
18279 /* Override any gcc2 internal prototype to avoid an error. */
18283 /* We use char because int might match the return type of a gcc2
18284 builtin and then its argument prototype would still apply. */
18285 char acl_get_file ();
18294 rm -f conftest.$ac_objext conftest$ac_exeext
18295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18296 (eval $ac_link) 2>&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); } &&
18300 { ac_try='test -s conftest$ac_exeext'
18301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18302 (eval $ac_try) 2>&5
18304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18305 (exit $ac_status); }; }; then
18306 ac_cv_lib_acl_acl_get_file=yes
18308 echo "$as_me: failed program was:" >&5
18309 sed 's/^/| /' conftest.$ac_ext >&5
18311 ac_cv_lib_acl_acl_get_file=no
18313 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18314 LIBS=$ac_check_lib_save_LIBS
18316 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18317 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18318 if test $ac_cv_lib_acl_acl_get_file = yes; then
18319 FDLIBS="-lacl $FDLIBS"
18323 if test $ac_cv_lib_acl_acl_get_file = yes; then
18324 cat >>confdefs.h <<\_ACEOF
18332 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18333 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18334 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18335 echo $ECHO_N "(cached) $ECHO_C" >&6
18337 ac_check_lib_save_LIBS=$LIBS
18338 LIBS="-lpthread $LIBS"
18339 cat >conftest.$ac_ext <<_ACEOF
18340 #line $LINENO "configure"
18343 cat confdefs.h >>conftest.$ac_ext
18344 cat >>conftest.$ac_ext <<_ACEOF
18345 /* end confdefs.h. */
18347 /* Override any gcc2 internal prototype to avoid an error. */
18351 /* We use char because int might match the return type of a gcc2
18352 builtin and then its argument prototype would still apply. */
18353 char pthread_create ();
18362 rm -f conftest.$ac_objext conftest$ac_exeext
18363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18364 (eval $ac_link) 2>&5
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); } &&
18368 { ac_try='test -s conftest$ac_exeext'
18369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18370 (eval $ac_try) 2>&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); }; }; then
18374 ac_cv_lib_pthread_pthread_create=yes
18376 echo "$as_me: failed program was:" >&5
18377 sed 's/^/| /' conftest.$ac_ext >&5
18379 ac_cv_lib_pthread_pthread_create=no
18381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18382 LIBS=$ac_check_lib_save_LIBS
18384 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18385 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18386 if test $ac_cv_lib_pthread_pthread_create = yes; then
18387 PTHREAD_LIB="-lpthread"
18389 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18390 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18391 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18392 echo $ECHO_N "(cached) $ECHO_C" >&6
18394 ac_check_lib_save_LIBS=$LIBS
18395 LIBS="-lpthreads $LIBS"
18396 cat >conftest.$ac_ext <<_ACEOF
18397 #line $LINENO "configure"
18400 cat confdefs.h >>conftest.$ac_ext
18401 cat >>conftest.$ac_ext <<_ACEOF
18402 /* end confdefs.h. */
18404 /* Override any gcc2 internal prototype to avoid an error. */
18408 /* We use char because int might match the return type of a gcc2
18409 builtin and then its argument prototype would still apply. */
18410 char pthread_create ();
18419 rm -f conftest.$ac_objext conftest$ac_exeext
18420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18421 (eval $ac_link) 2>&5
18423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18424 (exit $ac_status); } &&
18425 { ac_try='test -s conftest$ac_exeext'
18426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18427 (eval $ac_try) 2>&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); }; }; then
18431 ac_cv_lib_pthreads_pthread_create=yes
18433 echo "$as_me: failed program was:" >&5
18434 sed 's/^/| /' conftest.$ac_ext >&5
18436 ac_cv_lib_pthreads_pthread_create=no
18438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18439 LIBS=$ac_check_lib_save_LIBS
18441 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18442 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18443 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18444 PTHREAD_LIB="-lpthreads"
18446 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18447 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18448 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18449 echo $ECHO_N "(cached) $ECHO_C" >&6
18451 ac_check_lib_save_LIBS=$LIBS
18453 cat >conftest.$ac_ext <<_ACEOF
18454 #line $LINENO "configure"
18457 cat confdefs.h >>conftest.$ac_ext
18458 cat >>conftest.$ac_ext <<_ACEOF
18459 /* end confdefs.h. */
18461 /* Override any gcc2 internal prototype to avoid an error. */
18465 /* We use char because int might match the return type of a gcc2
18466 builtin and then its argument prototype would still apply. */
18467 char pthread_create ();
18476 rm -f conftest.$ac_objext conftest$ac_exeext
18477 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18478 (eval $ac_link) 2>&5
18480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18481 (exit $ac_status); } &&
18482 { ac_try='test -s conftest$ac_exeext'
18483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18484 (eval $ac_try) 2>&5
18486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18487 (exit $ac_status); }; }; then
18488 ac_cv_lib_c_r_pthread_create=yes
18490 echo "$as_me: failed program was:" >&5
18491 sed 's/^/| /' conftest.$ac_ext >&5
18493 ac_cv_lib_c_r_pthread_create=no
18495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18496 LIBS=$ac_check_lib_save_LIBS
18498 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18499 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18500 if test $ac_cv_lib_c_r_pthread_create = yes; then
18501 PTHREAD_LIB="-lc_r"
18503 echo "$as_me:$LINENO: checking for pthread_create" >&5
18504 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18505 if test "${ac_cv_func_pthread_create+set}" = set; then
18506 echo $ECHO_N "(cached) $ECHO_C" >&6
18508 cat >conftest.$ac_ext <<_ACEOF
18509 #line $LINENO "configure"
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18515 /* System header to define __stub macros and hopefully few prototypes,
18516 which can conflict with char pthread_create (); below.
18517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18518 <limits.h> exists even on freestanding compilers. */
18520 # include <limits.h>
18522 # include <assert.h>
18524 /* Override any gcc2 internal prototype to avoid an error. */
18529 /* We use char because int might match the return type of a gcc2
18530 builtin and then its argument prototype would still apply. */
18531 char pthread_create ();
18532 /* The GNU C library defines this for functions which it implements
18533 to always fail with ENOSYS. Some functions are actually named
18534 something starting with __ and the normal name is an alias. */
18535 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18538 char (*f) () = pthread_create;
18547 return f != pthread_create;
18552 rm -f conftest.$ac_objext conftest$ac_exeext
18553 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18554 (eval $ac_link) 2>&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); } &&
18558 { ac_try='test -s conftest$ac_exeext'
18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560 (eval $ac_try) 2>&5
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; }; then
18564 ac_cv_func_pthread_create=yes
18566 echo "$as_me: failed program was:" >&5
18567 sed 's/^/| /' conftest.$ac_ext >&5
18569 ac_cv_func_pthread_create=no
18571 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18573 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18574 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18587 cat >>confdefs.h <<\_ACEOF
18593 CFLAGS=${CFLAGS--O}
18594 LDFLAGS=${LDFLAGS--O}
18595 DB_LIBS="${SQL_LFLAGS}"
18597 CPPFLAGS="$CPPFLAGS"
18622 # Finally we set appropriate distribution specific
18623 # variables and defaults
18625 # PFILES are platform specific files
18626 PFILES="platforms/Makefile"
18630 hostname=`uname -n | cut -d '.' -f 1`
18631 case "$DISTNAME" in
18634 PSCMD="ps -e -o pid,comm"
18635 PFILES="${PFILES} \
18636 platforms/aix/Makefile"
18637 TAPEDRIVE="/dev/rmt0.1"
18641 PTHREAD_LIB="-lpthread -lexc"
18642 if test "${CC}" = "gcc" ; then
18649 TAPEDRIVE="/dev/nrmt0"
18652 DISTVER=`uname -a |awk '{print $3}'`
18653 TAPEDRIVE="/dev/nrmt0"
18654 PTHREAD_LIB="-pthread"
18655 CFLAGS="${CFLAGS} -pthread"
18656 PSCMD="ps -x -o pid,command"
18659 PFILES="${PFILES} \
18660 platforms/bsdi/Makefile \
18661 platforms/bsdi/bacula-fd \
18662 platforms/bsdi/bacula-sd \
18663 platforms/bsdi/bacula-dir"
18664 largefile_support="yes"
18667 DISTVER=`uname -a |awk '{print $3}'`
18668 TAPEDRIVE="/dev/nrst0"
18670 WCFLAGS="-mwindows"
18671 WLDFLAGS="-mwindows"
18675 TAPEDRIVE="/dev/nst0"
18676 PSCMD="ps -e -o pid,command"
18678 PFILES="${PFILES} \
18679 platforms/darwin/Makefile"
18682 DISTVER=`cat /etc/debian_version`
18683 TAPEDRIVE="/dev/nrst0"
18684 PSCMD="ps -e -o pid,command"
18687 DISTVER=`uname -a |awk '{print $3}'`
18688 VER=`echo $DISTVER | cut -c 1`
18689 if test x$VER = x4 ; then
18690 PTHREAD_LIB="-pthread"
18691 CFLAGS="${CFLAGS} -pthread"
18695 TAPEDRIVE="/dev/nrsa0"
18696 PSCMD="ps -x -o pid,command"
18697 PFILES="${PFILES} \
18698 platforms/freebsd/Makefile \
18699 platforms/freebsd/bacula-fd \
18700 platforms/freebsd/bacula-sd \
18701 platforms/freebsd/bacula-dir"
18702 largefile_support="yes"
18705 PSCMD="UNIX95=1 ps -e -o pid,comm"
18706 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18708 TAPEDRIVE="/dev/rmt/0hnb"
18712 TAPEDRIVE="/dev/rmt/0cbn"
18713 PSCMD="ps -e -o pid,comm"
18714 PFILES="${PFILES} \
18715 platforms/irix/Makefile \
18716 platforms/irix/bacula-fd \
18717 platforms/irix/bacula-sd \
18718 platforms/irix/bacula-dir"
18721 DISTVER=`uname -a |awk '{print $3}'`
18724 TAPEDRIVE="/dev/nrst0"
18725 PSCMD="ps -a -o pid,command"
18726 PTHREAD_LIB="-pthread"
18727 CFLAGS="${CFLAGS} -pthread"
18730 DISTVER=`uname -a |awk '{print $3}'`
18733 TAPEDRIVE="/dev/nrst0"
18734 PSCMD="ps -a -o pid,command"
18735 PTHREAD_LIB="-pthread"
18736 CFLAGS="${CFLAGS} -pthread"
18737 PFILES="${PFILES} \
18738 platforms/openbsd/Makefile \
18739 platforms/openbsd/bacula-fd \
18740 platforms/openbsd/bacula-sd \
18741 platforms/openbsd/bacula-dir"
18744 if test -f /etc/whitebox-release ; then
18745 f=/etc/whitebox-release
18747 f=/etc/redhat-release
18749 if test `cat $f | grep release |\
18750 cut -f 3 -d ' '`x = "Enterprise"x ; then
18751 DISTVER="Enterprise "`cat $f | grep release |\
18754 DISTVER=`cat /etc/redhat-release | grep release |\
18757 TAPEDRIVE="/dev/nst0"
18758 PSCMD="ps -e -o pid,command"
18759 PFILES="${PFILES} \
18760 platforms/redhat/Makefile \
18761 platforms/redhat/bacula-fd \
18762 platforms/redhat/bacula-sd \
18763 platforms/redhat/bacula-dir \
18764 platforms/redhat/bacula.spec \
18766 hostname=`hostname -s`
18769 DISTVER=`cat /etc/mandrake-release | grep release |\
18771 TAPEDRIVE="/dev/nst0"
18772 PSCMD="ps -e -o pid,command"
18773 PFILES="${PFILES} \
18774 platforms/mandrake/Makefile \
18775 platforms/mandrake/bacula-fd \
18776 platforms/mandrake/bacula-sd \
18777 platforms/mandrake/bacula-dir \
18778 platforms/mandrake/bacula.spec \
18782 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18783 TAPEDRIVE="/dev/nst0"
18784 PSCMD="ps -e -o pid,command"
18785 PFILES="${PFILES} \
18786 platforms/gentoo/Makefile \
18787 platforms/gentoo/bacula-fd \
18788 platforms/gentoo/bacula-sd \
18789 platforms/gentoo/bacula-dir"
18792 DISTVER=`cat /etc/slackware-version`
18793 TAPEDRIVE="/dev/nst0"
18794 PSCMD="ps -e -o pid,command"
18795 PFILES="${PFILES} \
18796 platforms/slackware/Makefile \
18797 platforms/slackware/rc.bacula-fd \
18798 platforms/slackware/rc.bacula-sd \
18799 platforms/slackware/rc.bacula-dir\
18800 platforms/slackware/functions.bacula"
18804 TAPEDRIVE="/dev/rmt/0cbn"
18805 PSCMD="ps -e -o pid,comm"
18806 PFILES="${PFILES} \
18807 platforms/solaris/Makefile \
18808 platforms/solaris/bacula-fd \
18809 platforms/solaris/bacula-sd \
18810 platforms/solaris/bacula-dir"
18811 if test x$DISTVER = x5.6 ; then
18812 cat >>confdefs.h <<\_ACEOF
18813 #define HAVE_OLD_SOCKOPT 1
18819 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18821 TAPEDRIVE="/dev/nst0"
18822 PSCMD="ps -e -o pid,command"
18823 PFILES="${PFILES} \
18824 platforms/suse/Makefile \
18825 platforms/suse/bacula-fd \
18826 platforms/suse/bacula-sd \
18827 platforms/suse/bacula-dir \
18828 platforms/suse/bacula \
18829 platforms/suse/bacula.spec"
18834 TAPEDRIVE="/dev/nst0"
18835 PSCMD="ps -e -o pid,command"
18836 PFILES="${PFILES} \
18837 platforms/suse/Makefile \
18838 platforms/suse/bacula-fd \
18839 platforms/suse/bacula-sd \
18840 platforms/suse/bacula-dir"
18844 TAPEDRIVE="/dev/nst0"
18847 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18853 LIBS="$PTHREAD_LIB $LIBS"
18855 cat >>confdefs.h <<_ACEOF
18859 cat >>confdefs.h <<_ACEOF
18870 MCOMMON=./autoconf/Make.common
18873 if test "x${subsysdir}" = "x${sbindir}" ; then
18876 echo "You have set both --sbindir and --with-subsys-dir"
18877 echo " equal to: ${subsysdir} "
18878 echo "This is not permitted. Please reconfigure."
18880 echo "Aborting configuration ..."
18886 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"
18887 ac_config_commands="$ac_config_commands default"
18888 cat >confcache <<\_ACEOF
18889 # This file is a shell script that caches the results of configure
18890 # tests run on this system so they can be shared between configure
18891 # scripts and configure runs, see configure's option --config-cache.
18892 # It is not useful on other systems. If it contains results you don't
18893 # want to keep, you may remove or edit it.
18895 # config.status only pays attention to the cache file if you give it
18896 # the --recheck option to rerun configure.
18898 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18899 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18900 # following values.
18904 # The following way of writing the cache mishandles newlines in values,
18905 # but we know of no workaround that is simple, portable, and efficient.
18906 # So, don't put newlines in cache variables' values.
18907 # Ultrix sh set writes to stderr and can't be redirected directly,
18908 # and sets the high bit in the cache file unless we assign to the vars.
18911 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18913 # `set' does not quote correctly, so add quotes (double-quote
18914 # substitution turns \\\\ into \\, and sed turns \\ into \).
18917 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18920 # `set' quotes correctly as required by POSIX, so do not add quotes.
18922 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18929 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18931 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18933 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18934 if test -w $cache_file; then
18935 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18936 cat confcache >$cache_file
18938 echo "not updating unwritable cache $cache_file"
18943 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18944 # Let make expand exec_prefix.
18945 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18947 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18948 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18949 # trailing colons and then remove the whole line if VPATH becomes empty
18950 # (actually we leave an empty line to preserve line numbers).
18951 if test "x$srcdir" = x.; then
18952 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18953 s/:*\$(srcdir):*/:/;
18954 s/:*\${srcdir}:*/:/;
18956 s/^\([^=]*=[ ]*\):*/\1/;
18962 DEFS=-DHAVE_CONFIG_H
18966 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18967 # 1. Remove the extension, and $U if already installed.
18968 ac_i=`echo "$ac_i" |
18969 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18971 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18972 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18974 LIBOBJS=$ac_libobjs
18976 LTLIBOBJS=$ac_ltlibobjs
18980 : ${CONFIG_STATUS=./config.status}
18981 ac_clean_files_save=$ac_clean_files
18982 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18983 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18984 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18985 cat >$CONFIG_STATUS <<_ACEOF
18987 # Generated by $as_me.
18988 # Run this file to recreate the current configuration.
18989 # Compiler output produced by configure, useful for debugging
18990 # configure, is in config.log if it exists.
18993 ac_cs_recheck=false
18995 SHELL=\${CONFIG_SHELL-$SHELL}
18998 cat >>$CONFIG_STATUS <<\_ACEOF
18999 ## --------------------- ##
19000 ## M4sh Initialization. ##
19001 ## --------------------- ##
19003 # Be Bourne compatible
19004 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19007 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19008 # is contrary to our usage. Disable this feature.
19009 alias -g '${1+"$@"}'='"$@"'
19010 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19014 # Support unset when possible.
19015 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19022 # Work around bugs in pre-3.0 UWIN ksh.
19023 $as_unset ENV MAIL MAILPATH
19030 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19031 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19032 LC_TELEPHONE LC_TIME
19034 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19035 eval $as_var=C; export $as_var
19041 # Required to use basename.
19042 if expr a : '\(a\)' >/dev/null 2>&1; then
19048 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19049 as_basename=basename
19055 # Name of the executable.
19056 as_me=`$as_basename "$0" ||
19057 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19058 X"$0" : 'X\(//\)$' \| \
19059 X"$0" : 'X\(/\)$' \| \
19060 . : '\(.\)' 2>/dev/null ||
19062 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19063 /^X\/\(\/\/\)$/{ s//\1/; q; }
19064 /^X\/\(\/\).*/{ s//\1/; q; }
19068 # PATH needs CR, and LINENO needs CR and PATH.
19069 # Avoid depending upon Character Ranges.
19070 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19071 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19072 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19073 as_cr_digits='0123456789'
19074 as_cr_alnum=$as_cr_Letters$as_cr_digits
19076 # The user is always right.
19077 if test "${PATH_SEPARATOR+set}" != set; then
19078 echo "#! /bin/sh" >conf$$.sh
19079 echo "exit 0" >>conf$$.sh
19081 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19090 as_lineno_1=$LINENO
19091 as_lineno_2=$LINENO
19092 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19093 test "x$as_lineno_1" != "x$as_lineno_2" &&
19094 test "x$as_lineno_3" = "x$as_lineno_2" || {
19095 # Find who we are. Look in the path if we contain no path at all
19098 *[\\/]* ) as_myself=$0 ;;
19099 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19100 for as_dir in $PATH
19103 test -z "$as_dir" && as_dir=.
19104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19109 # We did not find ourselves, most probably we were run as `sh COMMAND'
19110 # in which case we are not to be found in the path.
19111 if test "x$as_myself" = x; then
19114 if test ! -f "$as_myself"; then
19115 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19116 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19117 { (exit 1); exit 1; }; }
19119 case $CONFIG_SHELL in
19121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19122 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19125 test -z "$as_dir" && as_dir=.
19126 for as_base in sh bash ksh sh5; do
19129 if ("$as_dir/$as_base" -c '
19130 as_lineno_1=$LINENO
19131 as_lineno_2=$LINENO
19132 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19133 test "x$as_lineno_1" != "x$as_lineno_2" &&
19134 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19135 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19136 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19137 CONFIG_SHELL=$as_dir/$as_base
19138 export CONFIG_SHELL
19139 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19147 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19148 # uniformly replaced by the line number. The first 'sed' inserts a
19149 # line-number line before each line; the second 'sed' does the real
19150 # work. The second script uses 'N' to pair each line-number line
19151 # with the numbered line, and appends trailing '-' during
19152 # substitution so that $LINENO is not a special case at line end.
19153 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19154 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19155 sed '=' <$as_myself |
19160 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19163 s,^['$as_cr_digits']*\n,,
19164 ' >$as_me.lineno &&
19165 chmod +x $as_me.lineno ||
19166 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19167 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19168 { (exit 1); exit 1; }; }
19170 # Don't try to exec as it changes $[0], causing all sort of problems
19171 # (the dirname of $[0] is not the place where we might find the
19172 # original and so on. Autoconf is especially sensible to this).
19174 # Exit status is that of the last command.
19179 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19180 *c*,-n*) ECHO_N= ECHO_C='
19182 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19183 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19186 if expr a : '\(a\)' >/dev/null 2>&1; then
19192 rm -f conf$$ conf$$.exe conf$$.file
19194 if ln -s conf$$.file conf$$ 2>/dev/null; then
19195 # We could just check for DJGPP; but this test a) works b) is more generic
19196 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19197 if test -f conf$$.exe; then
19198 # Don't use ln at all; we don't have any links
19203 elif ln conf$$.file conf$$ 2>/dev/null; then
19208 rm -f conf$$ conf$$.exe conf$$.file
19210 if mkdir -p . 2>/dev/null; then
19216 as_executable_p="test -f"
19218 # Sed expression to map a string onto a valid CPP name.
19219 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19221 # Sed expression to map a string onto a valid variable name.
19222 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19226 # We need space, tab and new line, in precisely that order.
19236 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19237 # report actual input values of CONFIG_FILES etc. instead of their
19238 # values after options handling. Logging --version etc. is OK.
19242 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19243 ## Running $as_me. ##
19248 This file was extended by $as_me, which was
19249 generated by GNU Autoconf 2.57. Invocation command line was
19251 CONFIG_FILES = $CONFIG_FILES
19252 CONFIG_HEADERS = $CONFIG_HEADERS
19253 CONFIG_LINKS = $CONFIG_LINKS
19254 CONFIG_COMMANDS = $CONFIG_COMMANDS
19258 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19262 # Files that config.status was made for.
19263 if test -n "$ac_config_files"; then
19264 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19267 if test -n "$ac_config_headers"; then
19268 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19271 if test -n "$ac_config_links"; then
19272 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19275 if test -n "$ac_config_commands"; then
19276 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19279 cat >>$CONFIG_STATUS <<\_ACEOF
19282 \`$as_me' instantiates files from templates according to the
19283 current configuration.
19285 Usage: $0 [OPTIONS] [FILE]...
19287 -h, --help print this help, then exit
19288 -V, --version print version number, then exit
19289 -q, --quiet do not print progress messages
19290 -d, --debug don't remove temporary files
19291 --recheck update $as_me by reconfiguring in the same conditions
19292 --file=FILE[:TEMPLATE]
19293 instantiate the configuration file FILE
19294 --header=FILE[:TEMPLATE]
19295 instantiate the configuration header FILE
19297 Configuration files:
19300 Configuration headers:
19303 Configuration commands:
19306 Report bugs to <bug-autoconf@gnu.org>."
19309 cat >>$CONFIG_STATUS <<_ACEOF
19312 configured by $0, generated by GNU Autoconf 2.57,
19313 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19315 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19316 Free Software Foundation, Inc.
19317 This config.status script is free software; the Free Software Foundation
19318 gives unlimited permission to copy, distribute and modify it."
19323 cat >>$CONFIG_STATUS <<\_ACEOF
19324 # If no file are specified by the user, then we need to provide default
19325 # value. By we need to know if files were specified by the user.
19331 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19332 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19340 *) # This is not an option, so the user has probably given explicit
19343 ac_need_defaults=false;;
19347 # Handling of the options.
19349 cat >>$CONFIG_STATUS <<\_ACEOF
19350 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19352 --version | --vers* | -V )
19353 echo "$ac_cs_version"; exit 0 ;;
19355 # Conflict between --help and --header
19356 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19357 Try \`$0 --help' for more information." >&5
19358 echo "$as_me: error: ambiguous option: $1
19359 Try \`$0 --help' for more information." >&2;}
19360 { (exit 1); exit 1; }; };;
19361 --help | --hel | -h )
19362 echo "$ac_cs_usage"; exit 0 ;;
19363 --debug | --d* | -d )
19365 --file | --fil | --fi | --f )
19367 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19368 ac_need_defaults=false;;
19369 --header | --heade | --head | --hea )
19371 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19372 ac_need_defaults=false;;
19373 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19374 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19377 # This is an error.
19378 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19379 Try \`$0 --help' for more information." >&5
19380 echo "$as_me: error: unrecognized option: $1
19381 Try \`$0 --help' for more information." >&2;}
19382 { (exit 1); exit 1; }; } ;;
19384 *) ac_config_targets="$ac_config_targets $1" ;;
19390 ac_configure_extra_args=
19392 if $ac_cs_silent; then
19394 ac_configure_extra_args="$ac_configure_extra_args --silent"
19398 cat >>$CONFIG_STATUS <<_ACEOF
19399 if \$ac_cs_recheck; then
19400 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19401 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19410 cat >>$CONFIG_STATUS <<\_ACEOF
19411 for ac_config_target in $ac_config_targets
19413 case "$ac_config_target" in
19414 # Handling of arguments.
19415 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19416 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19417 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19418 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19419 "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
19420 "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
19421 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19422 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19423 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19424 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19425 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19426 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19427 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19428 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19429 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19430 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19431 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19432 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19433 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19434 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19435 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19436 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19437 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19438 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19439 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19440 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19441 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19442 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19443 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19444 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19445 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19446 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19447 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19448 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19449 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19450 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19451 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19452 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19453 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19454 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19455 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19456 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19457 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19458 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19459 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19460 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19461 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19462 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19463 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19464 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19465 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19466 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19467 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19468 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19469 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19470 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19471 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19472 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19473 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19474 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19475 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19476 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19477 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19478 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19479 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19480 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19481 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19482 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19483 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19484 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19485 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19486 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19487 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19488 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19489 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19490 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19491 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19492 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19493 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19494 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19495 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19496 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19497 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19498 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19499 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19500 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19501 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19502 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19503 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19504 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19505 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19506 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19507 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19508 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19509 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19510 { (exit 1); exit 1; }; };;
19514 # If the user did not use the arguments to specify the items to instantiate,
19515 # then the envvar interface is used. Set only those that are not.
19516 # We use the long form for the default assignment because of an extremely
19517 # bizarre bug on SunOS 4.1.3.
19518 if $ac_need_defaults; then
19519 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19520 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19521 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19524 # Have a temporary directory for convenience. Make it in the build tree
19525 # simply because there is no reason to put it here, and in addition,
19526 # creating and moving files from /tmp can sometimes cause problems.
19527 # Create a temporary directory, and hook for its removal unless debugging.
19530 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19531 trap '{ (exit 1); exit 1; }' 1 2 13 15
19534 # Create a (secure) tmp directory for tmp files.
19537 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19538 test -n "$tmp" && test -d "$tmp"
19541 tmp=./confstat$$-$RANDOM
19542 (umask 077 && mkdir $tmp)
19545 echo "$me: cannot create a temporary directory in ." >&2
19546 { (exit 1); exit 1; }
19551 cat >>$CONFIG_STATUS <<_ACEOF
19554 # CONFIG_FILES section.
19557 # No need to generate the scripts if there are no CONFIG_FILES.
19558 # This happens for instance when ./config.status config.h
19559 if test -n "\$CONFIG_FILES"; then
19560 # Protect against being on the right side of a sed subst in config.status.
19561 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19562 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19563 s,@SHELL@,$SHELL,;t t
19564 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19565 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19566 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19567 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19568 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19569 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19570 s,@exec_prefix@,$exec_prefix,;t t
19571 s,@prefix@,$prefix,;t t
19572 s,@program_transform_name@,$program_transform_name,;t t
19573 s,@bindir@,$bindir,;t t
19574 s,@sbindir@,$sbindir,;t t
19575 s,@libexecdir@,$libexecdir,;t t
19576 s,@datadir@,$datadir,;t t
19577 s,@sysconfdir@,$sysconfdir,;t t
19578 s,@sharedstatedir@,$sharedstatedir,;t t
19579 s,@localstatedir@,$localstatedir,;t t
19580 s,@libdir@,$libdir,;t t
19581 s,@includedir@,$includedir,;t t
19582 s,@oldincludedir@,$oldincludedir,;t t
19583 s,@infodir@,$infodir,;t t
19584 s,@mandir@,$mandir,;t t
19585 s,@build_alias@,$build_alias,;t t
19586 s,@host_alias@,$host_alias,;t t
19587 s,@target_alias@,$target_alias,;t t
19588 s,@DEFS@,$DEFS,;t t
19589 s,@ECHO_C@,$ECHO_C,;t t
19590 s,@ECHO_N@,$ECHO_N,;t t
19591 s,@ECHO_T@,$ECHO_T,;t t
19592 s,@LIBS@,$LIBS,;t t
19593 s,@BUILD_DIR@,$BUILD_DIR,;t t
19594 s,@TRUEPRG@,$TRUEPRG,;t t
19595 s,@FALSEPRG@,$FALSEPRG,;t t
19596 s,@VERSION@,$VERSION,;t t
19597 s,@DATE@,$DATE,;t t
19598 s,@LSMDATE@,$LSMDATE,;t t
19600 s,@CFLAGS@,$CFLAGS,;t t
19601 s,@LDFLAGS@,$LDFLAGS,;t t
19602 s,@CPPFLAGS@,$CPPFLAGS,;t t
19603 s,@ac_ct_CC@,$ac_ct_CC,;t t
19604 s,@EXEEXT@,$EXEEXT,;t t
19605 s,@OBJEXT@,$OBJEXT,;t t
19607 s,@CXXFLAGS@,$CXXFLAGS,;t t
19608 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19610 s,@EGREP@,$EGREP,;t t
19611 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19612 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19613 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19614 s,@RANLIB@,$RANLIB,;t t
19615 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19621 s,@ECHO@,$ECHO,;t t
19625 s,@OPENSSL@,$OPENSSL,;t t
19627 s,@PKGCONFIG@,$PKGCONFIG,;t t
19628 s,@WXCONFIG@,$WXCONFIG,;t t
19629 s,@ARFLAGS@,$ARFLAGS,;t t
19630 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19631 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19632 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19633 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19634 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19635 s,@build@,$build,;t t
19636 s,@build_cpu@,$build_cpu,;t t
19637 s,@build_vendor@,$build_vendor,;t t
19638 s,@build_os@,$build_os,;t t
19639 s,@host@,$host,;t t
19640 s,@host_cpu@,$host_cpu,;t t
19641 s,@host_vendor@,$host_vendor,;t t
19642 s,@host_os@,$host_os,;t t
19643 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19644 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19645 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19646 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19647 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19648 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19649 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19650 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19651 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19652 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19653 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19654 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19655 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19656 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19657 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19658 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19659 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19660 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19661 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19662 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19663 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19664 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19665 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19666 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19667 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19668 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19669 s,@MSGFMT@,$MSGFMT,;t t
19670 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19671 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19672 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19673 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19674 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19675 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19676 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19677 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19678 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19679 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19680 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19681 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19682 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19683 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19684 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19685 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19686 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19687 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19688 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19689 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19690 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19691 s,@GNOME_DIR@,$GNOME_DIR,;t t
19692 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19693 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19694 s,@WX_DIR@,$WX_DIR,;t t
19695 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
19696 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
19697 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
19698 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19699 s,@STATIC_FD@,$STATIC_FD,;t t
19700 s,@STATIC_SD@,$STATIC_SD,;t t
19701 s,@STATIC_DIR@,$STATIC_DIR,;t t
19702 s,@STATIC_CONS@,$STATIC_CONS,;t t
19703 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19704 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19705 s,@ALL_DIRS@,$ALL_DIRS,;t t
19706 s,@CONS_INC@,$CONS_INC,;t t
19707 s,@CONS_OBJ@,$CONS_OBJ,;t t
19708 s,@CONS_SRC@,$CONS_SRC,;t t
19709 s,@CONS_LIBS@,$CONS_LIBS,;t t
19710 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19711 s,@READLINE_SRC@,$READLINE_SRC,;t t
19712 s,@working_dir@,$working_dir,;t t
19713 s,@scriptdir@,$scriptdir,;t t
19714 s,@dump_email@,$dump_email,;t t
19715 s,@job_email@,$job_email,;t t
19716 s,@smtp_host@,$smtp_host,;t t
19717 s,@piddir@,$piddir,;t t
19718 s,@subsysdir@,$subsysdir,;t t
19719 s,@baseport@,$baseport,;t t
19720 s,@dir_port@,$dir_port,;t t
19721 s,@fd_port@,$fd_port,;t t
19722 s,@sd_port@,$sd_port,;t t
19723 s,@dir_password@,$dir_password,;t t
19724 s,@fd_password@,$fd_password,;t t
19725 s,@sd_password@,$sd_password,;t t
19726 s,@mon_dir_password@,$mon_dir_password,;t t
19727 s,@mon_fd_password@,$mon_fd_password,;t t
19728 s,@mon_sd_password@,$mon_sd_password,;t t
19729 s,@dir_user@,$dir_user,;t t
19730 s,@dir_group@,$dir_group,;t t
19731 s,@sd_user@,$sd_user,;t t
19732 s,@sd_group@,$sd_group,;t t
19733 s,@fd_user@,$fd_user,;t t
19734 s,@fd_group@,$fd_group,;t t
19735 s,@SBINPERM@,$SBINPERM,;t t
19736 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19737 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19738 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19739 s,@cats@,$cats,;t t
19740 s,@DB_NAME@,$DB_NAME,;t t
19741 s,@GETCONF@,$GETCONF,;t t
19742 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19743 s,@X_CFLAGS@,$X_CFLAGS,;t t
19744 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19745 s,@X_LIBS@,$X_LIBS,;t t
19746 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19747 s,@LIBOBJS@,$LIBOBJS,;t t
19748 s,@ALLOCA@,$ALLOCA,;t t
19749 s,@FDLIBS@,$FDLIBS,;t t
19750 s,@DEBUG@,$DEBUG,;t t
19751 s,@DINCLUDE@,$DINCLUDE,;t t
19752 s,@DLIB@,$DLIB,;t t
19753 s,@DB_LIBS@,$DB_LIBS,;t t
19754 s,@WCFLAGS@,$WCFLAGS,;t t
19755 s,@WLDFLAGS@,$WLDFLAGS,;t t
19756 s,@OBJLIST@,$OBJLIST,;t t
19757 s,@hostname@,$hostname,;t t
19758 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19759 s,@PSCMD@,$PSCMD,;t t
19760 s,@WIN32@,$WIN32,;t t
19761 s,@MACOSX@,$MACOSX,;t t
19762 s,@DISTNAME@,$DISTNAME,;t t
19763 s,@DISTVER@,$DISTVER,;t t
19764 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19765 /@MCOMMON@/r $MCOMMON
19771 cat >>$CONFIG_STATUS <<\_ACEOF
19772 # Split the substitutions into bite-sized pieces for seds with
19773 # small command number limits, like on Digital OSF/1 and HP-UX.
19774 ac_max_sed_lines=48
19775 ac_sed_frag=1 # Number of current file.
19776 ac_beg=1 # First line for current file.
19777 ac_end=$ac_max_sed_lines # Line after last line for current file.
19780 while $ac_more_lines; do
19781 if test $ac_beg -gt 1; then
19782 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19784 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19786 if test ! -s $tmp/subs.frag; then
19787 ac_more_lines=false
19789 # The purpose of the label and of the branching condition is to
19790 # speed up the sed processing (if there are no `@' at all, there
19791 # is no need to browse any of the substitutions).
19792 # These are the two extra sed commands mentioned above.
19794 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19795 if test -z "$ac_sed_cmds"; then
19796 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19798 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19800 ac_sed_frag=`expr $ac_sed_frag + 1`
19802 ac_end=`expr $ac_end + $ac_max_sed_lines`
19805 if test -z "$ac_sed_cmds"; then
19808 fi # test -n "$CONFIG_FILES"
19811 cat >>$CONFIG_STATUS <<\_ACEOF
19812 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19813 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19815 - | *:- | *:-:* ) # input from stdin
19817 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19818 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19819 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19820 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19821 * ) ac_file_in=$ac_file.in ;;
19824 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19825 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19826 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19827 X"$ac_file" : 'X\(//\)[^/]' \| \
19828 X"$ac_file" : 'X\(//\)$' \| \
19829 X"$ac_file" : 'X\(/\)' \| \
19830 . : '\(.\)' 2>/dev/null ||
19832 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19833 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19834 /^X\(\/\/\)$/{ s//\1/; q; }
19835 /^X\(\/\).*/{ s//\1/; q; }
19837 { if $as_mkdir_p; then
19842 while test ! -d "$as_dir"; do
19843 as_dirs="$as_dir $as_dirs"
19844 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19845 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19846 X"$as_dir" : 'X\(//\)[^/]' \| \
19847 X"$as_dir" : 'X\(//\)$' \| \
19848 X"$as_dir" : 'X\(/\)' \| \
19849 . : '\(.\)' 2>/dev/null ||
19851 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19852 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19853 /^X\(\/\/\)$/{ s//\1/; q; }
19854 /^X\(\/\).*/{ s//\1/; q; }
19857 test ! -n "$as_dirs" || mkdir $as_dirs
19858 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19859 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19860 { (exit 1); exit 1; }; }; }
19864 if test "$ac_dir" != .; then
19865 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19866 # A "../" for each directory in $ac_dir_suffix.
19867 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19869 ac_dir_suffix= ac_top_builddir=
19873 .) # No --srcdir option. We are building in place.
19875 if test -z "$ac_top_builddir"; then
19878 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19880 [\\/]* | ?:[\\/]* ) # Absolute path.
19881 ac_srcdir=$srcdir$ac_dir_suffix;
19882 ac_top_srcdir=$srcdir ;;
19883 *) # Relative path.
19884 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19885 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19887 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19889 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19890 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19891 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19892 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19896 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19897 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19900 if test x"$ac_file" != x-; then
19901 { echo "$as_me:$LINENO: creating $ac_file" >&5
19902 echo "$as_me: creating $ac_file" >&6;}
19905 # Let's still pretend it is `configure' which instantiates (i.e., don't
19906 # use $as_me), people would be surprised to read:
19907 # /* config.h. Generated by config.status. */
19908 if test x"$ac_file" = x-; then
19911 configure_input="$ac_file. "
19913 configure_input=$configure_input"Generated from `echo $ac_file_in |
19914 sed 's,.*/,,'` by configure."
19916 # First look for the input files in the build tree, otherwise in the
19918 ac_file_inputs=`IFS=:
19919 for f in $ac_file_in; do
19921 -) echo $tmp/stdin ;;
19923 # Absolute (can't be DOS-style, as IFS=:)
19924 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19925 echo "$as_me: error: cannot find input file: $f" >&2;}
19926 { (exit 1); exit 1; }; }
19929 if test -f "$f"; then
19932 elif test -f "$srcdir/$f"; then
19937 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19938 echo "$as_me: error: cannot find input file: $f" >&2;}
19939 { (exit 1); exit 1; }; }
19942 done` || { (exit 1); exit 1; }
19944 cat >>$CONFIG_STATUS <<_ACEOF
19948 cat >>$CONFIG_STATUS <<\_ACEOF
19950 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19951 s,@configure_input@,$configure_input,;t t
19952 s,@srcdir@,$ac_srcdir,;t t
19953 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19954 s,@top_srcdir@,$ac_top_srcdir,;t t
19955 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19956 s,@builddir@,$ac_builddir,;t t
19957 s,@abs_builddir@,$ac_abs_builddir,;t t
19958 s,@top_builddir@,$ac_top_builddir,;t t
19959 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19960 s,@INSTALL@,$ac_INSTALL,;t t
19961 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19963 if test x"$ac_file" != x-; then
19964 mv $tmp/out $ac_file
19972 cat >>$CONFIG_STATUS <<\_ACEOF
19975 # CONFIG_HEADER section.
19978 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19979 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19981 # ac_d sets the value in "#define NAME VALUE" lines.
19982 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19983 ac_dB='[ ].*$,\1#\2'
19986 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19987 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19988 ac_uB='$,\1#\2define\3'
19992 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19993 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19995 - | *:- | *:-:* ) # input from stdin
19997 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19998 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19999 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20000 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20001 * ) ac_file_in=$ac_file.in ;;
20004 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20005 echo "$as_me: creating $ac_file" >&6;}
20007 # First look for the input files in the build tree, otherwise in the
20009 ac_file_inputs=`IFS=:
20010 for f in $ac_file_in; do
20012 -) echo $tmp/stdin ;;
20014 # Absolute (can't be DOS-style, as IFS=:)
20015 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20016 echo "$as_me: error: cannot find input file: $f" >&2;}
20017 { (exit 1); exit 1; }; }
20020 if test -f "$f"; then
20023 elif test -f "$srcdir/$f"; then
20028 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20029 echo "$as_me: error: cannot find input file: $f" >&2;}
20030 { (exit 1); exit 1; }; }
20033 done` || { (exit 1); exit 1; }
20034 # Remove the trailing spaces.
20035 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20039 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20040 # `conftest.undefs', that substitutes the proper values into
20041 # config.h.in to produce config.h. The first handles `#define'
20042 # templates, and the second `#undef' templates.
20043 # And first: Protect against being on the right side of a sed subst in
20044 # config.status. Protect against being in an unquoted here document
20045 # in config.status.
20046 rm -f conftest.defines conftest.undefs
20047 # Using a here document instead of a string reduces the quoting nightmare.
20048 # Putting comments in sed scripts is not portable.
20050 # `end' is used to avoid that the second main sed command (meant for
20051 # 0-ary CPP macros) applies to n-ary macro definitions.
20052 # See the Autoconf documentation for `clear'.
20053 cat >confdef2sed.sed <<\_ACEOF
20058 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20060 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20063 # If some macros were called several times there might be several times
20064 # the same #defines, which is useless. Nevertheless, we may not want to
20065 # sort them, since we want the *last* AC-DEFINE to be honored.
20066 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20067 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20068 rm -f confdef2sed.sed
20070 # This sed command replaces #undef with comments. This is necessary, for
20071 # example, in the case of _POSIX_SOURCE, which is predefined and required
20072 # on some systems where configure will not decide to define it.
20073 cat >>conftest.undefs <<\_ACEOF
20074 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20077 # Break up conftest.defines because some shells have a limit on the size
20078 # of here documents, and old seds have small limits too (100 cmds).
20079 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20080 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20081 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20082 echo ' :' >>$CONFIG_STATUS
20083 rm -f conftest.tail
20084 while grep . conftest.defines >/dev/null
20086 # Write a limited-size here document to $tmp/defines.sed.
20087 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20088 # Speed up: don't consider the non `#define' lines.
20089 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20090 # Work around the forget-to-reset-the-flag bug.
20091 echo 't clr' >>$CONFIG_STATUS
20092 echo ': clr' >>$CONFIG_STATUS
20093 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20095 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20097 mv $tmp/out $tmp/in
20099 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20100 rm -f conftest.defines
20101 mv conftest.tail conftest.defines
20103 rm -f conftest.defines
20104 echo ' fi # grep' >>$CONFIG_STATUS
20105 echo >>$CONFIG_STATUS
20107 # Break up conftest.undefs because some shells have a limit on the size
20108 # of here documents, and old seds have small limits too (100 cmds).
20109 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20110 rm -f conftest.tail
20111 while grep . conftest.undefs >/dev/null
20113 # Write a limited-size here document to $tmp/undefs.sed.
20114 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20115 # Speed up: don't consider the non `#undef'
20116 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20117 # Work around the forget-to-reset-the-flag bug.
20118 echo 't clr' >>$CONFIG_STATUS
20119 echo ': clr' >>$CONFIG_STATUS
20120 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20122 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20124 mv $tmp/out $tmp/in
20126 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20127 rm -f conftest.undefs
20128 mv conftest.tail conftest.undefs
20130 rm -f conftest.undefs
20132 cat >>$CONFIG_STATUS <<\_ACEOF
20133 # Let's still pretend it is `configure' which instantiates (i.e., don't
20134 # use $as_me), people would be surprised to read:
20135 # /* config.h. Generated by config.status. */
20136 if test x"$ac_file" = x-; then
20137 echo "/* Generated by configure. */" >$tmp/config.h
20139 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20141 cat $tmp/in >>$tmp/config.h
20143 if test x"$ac_file" != x-; then
20144 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20145 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20146 echo "$as_me: $ac_file is unchanged" >&6;}
20148 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20149 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20150 X"$ac_file" : 'X\(//\)[^/]' \| \
20151 X"$ac_file" : 'X\(//\)$' \| \
20152 X"$ac_file" : 'X\(/\)' \| \
20153 . : '\(.\)' 2>/dev/null ||
20155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20156 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20157 /^X\(\/\/\)$/{ s//\1/; q; }
20158 /^X\(\/\).*/{ s//\1/; q; }
20160 { if $as_mkdir_p; then
20165 while test ! -d "$as_dir"; do
20166 as_dirs="$as_dir $as_dirs"
20167 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20168 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20169 X"$as_dir" : 'X\(//\)[^/]' \| \
20170 X"$as_dir" : 'X\(//\)$' \| \
20171 X"$as_dir" : 'X\(/\)' \| \
20172 . : '\(.\)' 2>/dev/null ||
20174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20175 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20176 /^X\(\/\/\)$/{ s//\1/; q; }
20177 /^X\(\/\).*/{ s//\1/; q; }
20180 test ! -n "$as_dirs" || mkdir $as_dirs
20181 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20182 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20183 { (exit 1); exit 1; }; }; }
20186 mv $tmp/config.h $ac_file
20190 rm -f $tmp/config.h
20194 cat >>$CONFIG_STATUS <<\_ACEOF
20197 # CONFIG_COMMANDS section.
20199 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20200 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20201 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20202 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20203 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20204 X"$ac_dest" : 'X\(//\)[^/]' \| \
20205 X"$ac_dest" : 'X\(//\)$' \| \
20206 X"$ac_dest" : 'X\(/\)' \| \
20207 . : '\(.\)' 2>/dev/null ||
20209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20210 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20211 /^X\(\/\/\)$/{ s//\1/; q; }
20212 /^X\(\/\).*/{ s//\1/; q; }
20216 if test "$ac_dir" != .; then
20217 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20218 # A "../" for each directory in $ac_dir_suffix.
20219 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20221 ac_dir_suffix= ac_top_builddir=
20225 .) # No --srcdir option. We are building in place.
20227 if test -z "$ac_top_builddir"; then
20230 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20232 [\\/]* | ?:[\\/]* ) # Absolute path.
20233 ac_srcdir=$srcdir$ac_dir_suffix;
20234 ac_top_srcdir=$srcdir ;;
20235 *) # Relative path.
20236 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20237 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20239 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20241 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20242 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20243 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20244 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20247 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20248 echo "$as_me: executing $ac_dest commands" >&6;}
20250 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20256 cat >>$CONFIG_STATUS <<\_ACEOF
20258 { (exit 0); exit 0; }
20260 chmod +x $CONFIG_STATUS
20261 ac_clean_files=$ac_clean_files_save
20264 # configure is writing to config.log, and then calls config.status.
20265 # config.status does its own redirection, appending to config.log.
20266 # Unfortunately, on DOS this fails, as config.log is still kept open
20267 # by configure, so config.status won't be able to write to it; its
20268 # output is simply discarded. So we exec the FD to /dev/null,
20269 # effectively closing config.log, so it can be properly (re)opened and
20270 # appended to by config.status. When coming back to configure, we
20271 # need to make the FD available again.
20272 if test "$no_create" != yes; then
20274 ac_config_status_args=
20275 test "$silent" = yes &&
20276 ac_config_status_args="$ac_config_status_args --quiet"
20278 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20280 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20281 # would make configure fail if this is the last instruction.
20282 $ac_cs_success || { (exit 1); exit 1; }
20287 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20288 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20293 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
20294 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
20296 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
20297 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
20299 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
20300 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
20302 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
20303 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
20305 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
20306 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
20308 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20309 chmod 755 $c/sqlite
20312 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20313 largefile_support="yes"
20317 # A whole lot of hand springs to get the compiler version.
20318 # This is because gcc changed the output in version 3.0
20320 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20321 if test "x${CCVERSION}" = "x" ; then
20322 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20324 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20325 if test x"${CXXVERSION}" = x ; then
20326 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20329 if test "x${subsysdir}" = "x${sbindir}" ; then
20332 echo "You have set --sbindir and --with-subsys-dir"
20333 echo " both equal to: ${subsysdir} "
20334 echo " This is not permitted. Please reconfigure."
20336 echo "Aborting configuration ..."
20342 if test "x${db_name}" = "xInternal" ; then
20345 echo "You have not specified either --enable-client-only or one of the"
20346 echo " supported databases: MySQL, PostgreSQL, or SQLite".
20347 echo " This is not permitted. Please reconfigure."
20349 echo "Aborting the configuration ..."
20356 Configuration on `date`:
20358 Host: $host -- ${DISTNAME} ${DISTVER}
20359 Bacula version: ${VERSION} (${DATE})
20360 Source code location: ${srcdir}
20361 Install binaries: ${sbindir}
20362 Install config files: ${sysconfdir}
20363 Scripts directory: ${scriptdir}
20364 Working directory: ${working_dir}
20365 PID directory: ${piddir}
20366 Subsys directory: ${subsysdir}
20367 C Compiler: ${CC} ${CCVERSION}
20368 C++ Compiler: ${CXX} ${CXXVERSION}
20369 Compiler flags: ${WCFLAGS} ${CFLAGS}
20370 Linker flags: ${WLDFLAGS} ${LDFLAGS}
20372 Statically Linked Tools: ${support_static_tools}
20373 Statically Linked FD: ${support_static_fd}
20374 Statically Linked SD: ${support_static_sd}
20375 Statically Linked DIR: ${support_static_dir}
20376 Statically Linked CONS: ${support_static_cons}
20377 Database type: ${db_name}
20378 Database lib: ${DB_LIBS}
20380 Job Output Email: ${job_email}
20381 Traceback Email: ${dump_email}
20382 SMTP Host Address: ${smtp_host}
20384 Director Port: ${dir_port}
20385 File daemon Port: ${fd_port}
20386 Storage daemon Port: ${sd_port}
20388 Director User: ${dir_user}
20389 Director Group: ${dir_group}
20390 Storage Daemon User: ${sd_user}
20391 Storage DaemonGroup: ${sd_group}
20392 File Daemon User: ${fd_user}
20393 File Daemon Group: ${fd_group}
20395 SQL binaries Directory ${SQL_BINDIR}
20397 Large file support: $largefile_support
20398 Bacula conio support: ${got_conio} ${CONS_LIBS}
20399 readline support: ${got_readline} ${PRTREADLINE_SRC}
20400 TCP Wrappers support: ${TCPW_MSG}
20401 ZLIB support: ${have_zlib}
20402 enable-smartalloc: ${support_smartalloc}
20403 enable-gnome: ${support_gnome} ${gnome_version}
20404 enable-wx-console: ${support_wx_console}
20405 enable-tray-monitor: ${support_tray_monitor}
20406 client-only: ${build_client_only}
20407 ACL support: ${have_acl}
20414 # cweb support: ${got_cweb} ${CWEB_SRC}
20415 # gmp support: ${got_gmp} ${GMP_SRC}