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 CDRECORD 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 CDSTL 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
3738 # Extract the first word of "cdrecord", so it can be a program name with args.
3739 set dummy cdrecord; ac_word=$2
3740 echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_path_CDRECORD+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
3758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3767 CDRECORD=$ac_cv_path_CDRECORD
3769 if test -n "$CDRECORD"; then
3770 echo "$as_me:$LINENO: result: $CDRECORD" >&5
3771 echo "${ECHO_T}$CDRECORD" >&6
3773 echo "$as_me:$LINENO: result: no" >&5
3774 echo "${ECHO_T}no" >&6
3778 test -n "$ARFLAG" || ARFLAGS="cr"
3791 # Make sure we can run config.sub.
3792 $ac_config_sub sun4 >/dev/null 2>&1 ||
3793 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3794 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3795 { (exit 1); exit 1; }; }
3797 echo "$as_me:$LINENO: checking build system type" >&5
3798 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3799 if test "${ac_cv_build+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 ac_cv_build_alias=$build_alias
3803 test -z "$ac_cv_build_alias" &&
3804 ac_cv_build_alias=`$ac_config_guess`
3805 test -z "$ac_cv_build_alias" &&
3806 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3807 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3808 { (exit 1); exit 1; }; }
3809 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3810 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3811 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3812 { (exit 1); exit 1; }; }
3815 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3816 echo "${ECHO_T}$ac_cv_build" >&6
3818 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3819 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3820 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3824 echo "$as_me:$LINENO: checking host system type" >&5
3825 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3826 if test "${ac_cv_host+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 ac_cv_host_alias=$host_alias
3830 test -z "$ac_cv_host_alias" &&
3831 ac_cv_host_alias=$ac_cv_build_alias
3832 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3833 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3834 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3835 { (exit 1); exit 1; }; }
3838 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3839 echo "${ECHO_T}$ac_cv_host" >&6
3841 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3842 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3843 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3847 *cygwin* ) CYGWIN=yes;;
3851 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3857 HAVE_SUN_OS_FALSE='#'
3859 HAVE_SUN_OS_TRUE='#'
3862 cat >>confdefs.h <<\_ACEOF
3863 #define HAVE_SUN_OS 1
3871 HAVE_SUN_OS_FALSE='#'
3873 HAVE_SUN_OS_TRUE='#'
3878 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3884 HAVE_OSF1_OS_FALSE='#'
3886 HAVE_OSF1_OS_TRUE='#'
3889 cat >>confdefs.h <<\_ACEOF
3890 #define HAVE_OSF1_OS 1
3898 HAVE_OSF1_OS_FALSE='#'
3900 HAVE_OSF1_OS_TRUE='#'
3905 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3911 HAVE_AIX_OS_FALSE='#'
3913 HAVE_AIX_OS_TRUE='#'
3916 cat >>confdefs.h <<\_ACEOF
3917 #define HAVE_AIX_OS 1
3925 HAVE_AIX_OS_FALSE='#'
3927 HAVE_AIX_OS_TRUE='#'
3932 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3938 HAVE_HPUX_OS_FALSE='#'
3940 HAVE_HPUX_OS_TRUE='#'
3943 cat >>confdefs.h <<\_ACEOF
3944 #define HAVE_HPUX_OS 1
3952 HAVE_HPUX_OS_FALSE='#'
3954 HAVE_HPUX_OS_TRUE='#'
3959 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3965 HAVE_LINUX_OS_FALSE='#'
3967 HAVE_LINUX_OS_TRUE='#'
3968 HAVE_LINUX_OS_FALSE=
3970 cat >>confdefs.h <<\_ACEOF
3971 #define HAVE_LINUX_OS 1
3979 HAVE_LINUX_OS_FALSE='#'
3981 HAVE_LINUX_OS_TRUE='#'
3982 HAVE_LINUX_OS_FALSE=
3986 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3991 HAVE_FREEBSD_OS_TRUE=
3992 HAVE_FREEBSD_OS_FALSE='#'
3994 HAVE_FREEBSD_OS_TRUE='#'
3995 HAVE_FREEBSD_OS_FALSE=
3997 cat >>confdefs.h <<\_ACEOF
3998 #define HAVE_FREEBSD_OS 1
4005 HAVE_FREEBSD_OS_TRUE=
4006 HAVE_FREEBSD_OS_FALSE='#'
4008 HAVE_FREEBSD_OS_TRUE='#'
4009 HAVE_FREEBSD_OS_FALSE=
4013 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4018 HAVE_NETBSD_OS_TRUE=
4019 HAVE_NETBSD_OS_FALSE='#'
4021 HAVE_NETBSD_OS_TRUE='#'
4022 HAVE_NETBSD_OS_FALSE=
4024 cat >>confdefs.h <<\_ACEOF
4025 #define HAVE_NETBSD_OS 1
4032 HAVE_NETBSD_OS_TRUE=
4033 HAVE_NETBSD_OS_FALSE='#'
4035 HAVE_NETBSD_OS_TRUE='#'
4036 HAVE_NETBSD_OS_FALSE=
4040 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4045 HAVE_OPENBSD_OS_TRUE=
4046 HAVE_OPENBSD_OS_FALSE='#'
4048 HAVE_OPENBSD_OS_TRUE='#'
4049 HAVE_OPENBSD_OS_FALSE=
4051 cat >>confdefs.h <<\_ACEOF
4052 #define HAVE_OPENBSD_OS 1
4059 HAVE_OPENBSD_OS_TRUE=
4060 HAVE_OPENBSD_OS_FALSE='#'
4062 HAVE_OPENBSD_OS_TRUE='#'
4063 HAVE_OPENBSD_OS_FALSE=
4067 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4073 HAVE_BSDI_OS_FALSE='#'
4075 HAVE_BSDI_OS_TRUE='#'
4078 cat >>confdefs.h <<\_ACEOF
4079 #define HAVE_BSDI_OS 1
4087 HAVE_BSDI_OS_FALSE='#'
4089 HAVE_BSDI_OS_TRUE='#'
4094 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4100 HAVE_SGI_OS_FALSE='#'
4102 HAVE_SGI_OS_TRUE='#'
4105 cat >>confdefs.h <<\_ACEOF
4106 #define HAVE_SGI_OS 1
4114 HAVE_SGI_OS_FALSE='#'
4116 HAVE_SGI_OS_TRUE='#'
4121 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4127 HAVE_IRIX_OS_FALSE='#'
4129 HAVE_IRIX_OS_TRUE='#'
4132 cat >>confdefs.h <<\_ACEOF
4133 #define HAVE_IRIX_OS 1
4141 HAVE_IRIX_OS_FALSE='#'
4143 HAVE_IRIX_OS_TRUE='#'
4148 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4153 HAVE_DARWIN_OS_TRUE=
4154 HAVE_DARWIN_OS_FALSE='#'
4156 HAVE_DARWIN_OS_TRUE='#'
4157 HAVE_DARWIN_OS_FALSE=
4159 cat >>confdefs.h <<\_ACEOF
4160 #define HAVE_DARWIN_OS 1
4167 HAVE_DARWIN_OS_TRUE=
4168 HAVE_DARWIN_OS_FALSE='#'
4170 HAVE_DARWIN_OS_TRUE='#'
4171 HAVE_DARWIN_OS_FALSE=
4176 # -----------------------------------------------------------
4177 # ----------------------------------------------------------
4178 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4179 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4180 if test "x$DISTNAME" != "x"
4182 echo "distname set to $DISTNAME"
4183 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4186 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4189 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4192 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4195 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4198 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4201 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4204 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4207 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4210 elif test -f /etc/SuSE-release
4213 elif test -d /etc/SuSEconfig
4216 elif test -f /etc/mandrake-release
4219 elif test -f /etc/whitebox-release
4222 elif test -f /etc/redhat-release
4225 elif test -f /etc/gentoo-release
4228 elif test -f /etc/debian_version
4231 elif test -f /etc/slackware-version
4234 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4237 elif test -f /etc/engarde-version
4240 elif test "$CYGWIN" = yes
4243 cat >>confdefs.h <<\_ACEOF
4244 #define HAVE_CYGWIN 1
4250 echo "$as_me:$LINENO: result: done" >&5
4251 echo "${ECHO_T}done" >&6
4254 # -----------------------------------------------------------
4255 # ----------------------------------------------------------
4260 INSIDE_GNOME_COMMON_TRUE=
4261 INSIDE_GNOME_COMMON_FALSE='#'
4263 INSIDE_GNOME_COMMON_TRUE='#'
4264 INSIDE_GNOME_COMMON_FALSE=
4267 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4269 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4272 # ------------------------------------------------------------------
4273 # If the user has not set --prefix, we set our default to nothing.
4274 # In this case, if the user has not set --sysconfdir, we set it
4275 # to the package default of /etc/bacula. If either --prefix or
4276 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4277 # ------------------------------------------------------------------
4278 if test x${prefix} = xNONE ; then
4279 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4280 sysconfdir=/etc/bacula
4284 sysconfdir=`eval echo ${sysconfdir}`
4286 # -------------------------------------------------------------------------
4287 # If the user has not set --exec-prefix, we default to ${prefix}
4288 # -------------------------------------------------------------------------
4289 if test x${exec_prefix} = xNONE ; then
4290 exec_prefix=${prefix}
4293 # ------------------------------------------------------------------
4294 # If the user has not set --sbindir, we set our default as /sbin
4295 # ------------------------------------------------------------------
4296 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4297 sbindir=${exec_prefix}/sbin
4299 sbindir=`eval echo ${sbindir}`
4301 # ------------------------------------------------------------------
4302 # All list of languages for which a translation exist. Each
4303 # language is separated by a space.
4304 # ------------------------------------------------------------------
4307 for ac_prog in msgfmt
4309 # Extract the first word of "$ac_prog", so it can be a program name with args.
4310 set dummy $ac_prog; ac_word=$2
4311 echo "$as_me:$LINENO: checking for $ac_word" >&5
4312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4313 if test "${ac_cv_path_MSGFMT+set}" = set; then
4314 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4328 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4338 MSGFMT=$ac_cv_path_MSGFMT
4340 if test -n "$MSGFMT"; then
4341 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4342 echo "${ECHO_T}$MSGFMT" >&6
4344 echo "$as_me:$LINENO: result: no" >&5
4345 echo "${ECHO_T}no" >&6
4348 test -n "$MSGFMT" && break
4350 test -n "$MSGFMT" || MSGFMT="no"
4352 if test "$MSGFMT" = "no"
4354 echo 'msgfmt program not found, disabling NLS !'
4356 USE_INCLUDED_LIBINTL=no
4364 support_postgresql=no
4365 support_smartalloc=yes
4366 support_readline=yes
4369 support_wx_console=no
4371 support_static_tools=no
4372 support_static_fd=no
4373 support_static_sd=no
4374 support_static_dir=no
4375 support_static_cons=no
4376 build_client_only=no
4382 # -------------------------------------------
4383 # gnome (default off)
4384 # -------------------------------------------
4385 # Check whether --enable-gnome or --disable-gnome was given.
4386 if test "${enable_gnome+set}" = set; then
4387 enableval="$enable_gnome"
4388 if test x$enableval = xyes; then
4394 if test x$support_gnome = xyes; then
4395 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4397 if test $pkg = 0; then
4398 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4399 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4400 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4401 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4406 GNOME_DIR=src/gnome2-console
4407 gnome_version="Version 2.x"
4420 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4421 if test "${with_gnome_includes+set}" = set; then
4422 withval="$with_gnome_includes"
4424 CFLAGS="$CFLAGS -I$withval"
4429 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4430 if test "${with_gnome_libs+set}" = set; then
4431 withval="$with_gnome_libs"
4433 LDFLAGS="$LDFLAGS -L$withval"
4434 gnome_prefix=$withval
4439 # Check whether --with-gnome or --without-gnome was given.
4440 if test "${with_gnome+set}" = set; then
4441 withval="$with_gnome"
4442 if test x$withval = xyes; then
4446 if test "x$withval" = xno; then
4450 LDFLAGS="$LDFLAGS -L$withval/lib"
4451 CFLAGS="$CFLAGS -I$withval/include"
4452 gnome_prefix=$withval/lib
4459 if test "x$want_gnome" = xyes; then
4461 # Extract the first word of "gnome-config", so it can be a program name with args.
4462 set dummy gnome-config; ac_word=$2
4463 echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4465 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 case $GNOME_CONFIG in
4470 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4491 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4493 if test -n "$GNOME_CONFIG"; then
4494 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4495 echo "${ECHO_T}$GNOME_CONFIG" >&6
4497 echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6
4501 if test "$GNOME_CONFIG" = "no"; then
4502 no_gnome_config="yes"
4504 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4505 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4506 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4507 echo "$as_me:$LINENO: result: yes" >&5
4508 echo "${ECHO_T}yes" >&6
4511 # Extract the first word of "orbit-config", so it can be a program name with args.
4512 set dummy orbit-config; ac_word=$2
4513 echo "$as_me:$LINENO: checking for $ac_word" >&5
4514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4515 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4516 echo $ECHO_N "(cached) $ECHO_C" >&6
4518 case $ORBIT_CONFIG in
4520 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4530 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4541 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4543 if test -n "$ORBIT_CONFIG"; then
4544 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4545 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4547 echo "$as_me:$LINENO: result: no" >&5
4548 echo "${ECHO_T}no" >&6
4551 # Extract the first word of "orbit-idl", so it can be a program name with args.
4552 set dummy orbit-idl; ac_word=$2
4553 echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4555 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4560 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 test -z "$as_dir" && as_dir=.
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4570 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4581 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4583 if test -n "$ORBIT_IDL"; then
4584 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4585 echo "${ECHO_T}$ORBIT_IDL" >&6
4587 echo "$as_me:$LINENO: result: no" >&5
4588 echo "${ECHO_T}no" >&6
4591 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4592 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4593 if test "${gnome_cv_orbit_found+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4598 gnome_cv_orbit_found=no
4600 gnome_cv_orbit_found=yes
4604 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4605 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4608 if test x$gnome_cv_orbit_found = xyes; then
4610 HAVE_ORBIT_FALSE='#'
4615 if test x$gnome_cv_orbit_found = xyes; then
4617 ORBIT_CFLAGS=`orbit-config --cflags client server`
4618 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4622 if test xfail = xfailure; then
4623 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4624 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4625 { (exit 1); exit 1; }; }
4629 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4630 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4631 if test "${gnome_cv_gnorba_found+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 gnome_cv_gnorba_found=no
4636 if test x$gnome_cv_orbit_found = xyes; then
4637 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4638 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4639 if test -n "$GNORBA_LIBS"; then
4640 gnome_cv_gnorba_found=yes
4645 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4646 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4649 if test x$gnome_cv_gnorba_found = xyes; then
4651 HAVE_GNORBA_FALSE='#'
4653 HAVE_GNORBA_TRUE='#'
4656 if test x$gnome_cv_orbit_found = xyes; then
4658 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4659 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4663 if test xfail = xfailure; then
4664 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4665 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4666 { (exit 1); exit 1; }; }
4670 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4671 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4672 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4673 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4674 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4675 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4676 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4679 echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6
4681 no_gnome_config="yes"
4685 if test x$exec_prefix = xNONE; then
4686 if test x$prefix = xNONE; then
4687 gnome_prefix=$ac_default_prefix/lib
4689 gnome_prefix=$prefix/lib
4692 gnome_prefix=`eval echo \`echo $libdir\``
4695 if test "$no_gnome_config" = "yes"; then
4696 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4697 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4698 if test -f $gnome_prefix/gnomeConf.sh; then
4699 echo "$as_me:$LINENO: result: found" >&5
4700 echo "${ECHO_T}found" >&6
4701 echo "loading gnome configuration from" \
4702 "$gnome_prefix/gnomeConf.sh"
4703 . $gnome_prefix/gnomeConf.sh
4706 echo "$as_me:$LINENO: result: not found" >&5
4707 echo "${ECHO_T}not found" >&6
4708 if test xfail = xfail; then
4709 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4710 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4711 { (exit 1); exit 1; }; }
4720 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4721 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4725 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4726 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4727 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4730 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4731 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4732 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4735 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4736 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4737 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4739 echo "$as_me:$LINENO: result: unknown library" >&5
4740 echo "${ECHO_T}unknown library" >&6
4742 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4743 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4748 GNOME_DIR=src/gnome-console
4749 gnome_version="Version 1.4"
4755 # -------------------------------------------
4756 # wx-console (default off)
4757 # -------------------------------------------
4758 # Check whether --enable-wx-console or --disable-wx-console was given.
4759 if test "${enable_wx_console+set}" = set; then
4760 enableval="$enable_wx_console"
4761 if test x$enableval = xyes; then
4762 support_wx_console=yes
4767 if test x$support_wx_console = xyes; then
4768 abc=`$WXCONFIG --cppflags`
4770 if test $pkg = 0; then
4771 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4772 WXCONS_LDFLAGS=`$WXCONFIG --libs`
4775 WX_DIR=src/wx-console
4778 echo "wx-config program not found. wx-console disabled."
4780 support_wx_console=no
4786 # -------------------------------------------
4787 # tray-monitor (default off)
4788 # -------------------------------------------
4789 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4790 if test "${enable_tray_monitor+set}" = set; then
4791 enableval="$enable_tray_monitor"
4792 if test x$enableval = xyes; then
4793 support_tray_monitor=yes
4798 if test x$support_tray_monitor = xyes; then
4799 abc=`$PKGCONFIG --exists gtk+-2.0`
4801 if test $pkg = 0; then
4802 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4803 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4806 TRAY_MONITOR_DIR=src/tray-monitor
4807 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4809 if test $pkg = 0; then
4810 cat >>confdefs.h <<\_ACEOF
4811 #define HAVE_GTK_2_4 1
4819 # -------------------------------------------
4820 # smartalloc (default off)
4821 # -------------------------------------------
4822 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4823 if test "${enable_smartalloc+set}" = set; then
4824 enableval="$enable_smartalloc"
4825 if test x$enableval = xno; then
4826 support_smartalloc=no
4830 if test x$support_smartalloc = xyes; then
4831 cat >>confdefs.h <<\_ACEOF
4832 #define SMARTALLOC 1
4837 # -------------------------------------------
4838 # static-tools (default off)
4839 # -------------------------------------------
4840 # Check whether --enable-static-tools or --disable-static-tools was given.
4841 if test "${enable_static_tools+set}" = set; then
4842 enableval="$enable_static_tools"
4843 if test x$enableval = xyes; then
4844 support_static_tools=yes
4849 if test x$support_static_tools = xyes; then
4850 TTOOL_LDFLAGS="-static"
4854 # -------------------------------------------
4855 # static-fd (default off)
4856 # -------------------------------------------
4857 # Check whether --enable-static-fd or --disable-static-fd was given.
4858 if test "${enable_static_fd+set}" = set; then
4859 enableval="$enable_static_fd"
4860 if test x$enableval = xyes; then
4861 support_static_fd=yes
4866 if test x$support_static_fd = xyes; then
4867 STATIC_FD="static-bacula-fd"
4871 # -------------------------------------------
4872 # static-sd (default off)
4873 # -------------------------------------------
4874 # Check whether --enable-static-sd or --disable-static-sd was given.
4875 if test "${enable_static_sd+set}" = set; then
4876 enableval="$enable_static_sd"
4877 if test x$enableval = xyes; then
4878 support_static_sd=yes
4883 if test x$support_static_sd = xyes; then
4884 STATIC_SD="static-bacula-sd"
4888 # -------------------------------------------
4889 # static-dir (default off)
4890 # -------------------------------------------
4891 # Check whether --enable-static-dir or --disable-static-dir was given.
4892 if test "${enable_static_dir+set}" = set; then
4893 enableval="$enable_static_dir"
4894 if test x$enableval = xyes; then
4895 support_static_dir=yes
4900 if test x$support_static_dir = xyes; then
4901 STATIC_DIR="static-bacula-dir"
4905 # -------------------------------------------
4906 # static-cons (default off)
4907 # -------------------------------------------
4908 # Check whether --enable-static-cons or --disable-static-cons was given.
4909 if test "${enable_static_cons+set}" = set; then
4910 enableval="$enable_static_cons"
4911 if test x$enableval = xyes; then
4912 support_static_cons=yes
4919 if test x$support_static_cons = xyes; then
4920 STATIC_CONS="static-bconsole"
4921 STATIC_GNOME_CONS="static-gnome-console"
4922 STATIC_WX_CONS="static-wx-console"
4928 # -------------------------------------------
4929 # client_only (default off)
4930 # -------------------------------------------
4931 # Check whether --enable-client-only or --disable-client-only was given.
4932 if test "${enable_client_only+set}" = set; then
4933 enableval="$enable_client_only"
4934 if test x$enableval = xyes; then
4935 build_client_only=yes
4940 if test x$build_client_only = xno; then
4947 # ---------------------------------------------------
4948 # Check for conio (Bacula readline substitute)(
4949 # ---------------------------------------------------
4950 # this allows you to turn it completely off
4951 # Check whether --enable-conio or --disable-conio was given.
4952 if test "${enable_conio+set}" = set; then
4953 enableval="$enable_conio"
4954 if test x$enableval = xno; then
4960 if test x$support_conio = xyes; then
4961 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4962 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4963 if test "${ac_cv_header_stdc+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 cat >conftest.$ac_ext <<_ACEOF
4967 #line $LINENO "configure"
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h. */
4986 rm -f conftest.$ac_objext
4987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4988 (eval $ac_compile) 2>&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } &&
4992 { ac_try='test -s conftest.$ac_objext'
4993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); }; }; then
4998 ac_cv_header_stdc=yes
5000 echo "$as_me: failed program was:" >&5
5001 sed 's/^/| /' conftest.$ac_ext >&5
5003 ac_cv_header_stdc=no
5005 rm -f conftest.$ac_objext conftest.$ac_ext
5007 if test $ac_cv_header_stdc = yes; then
5008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5009 cat >conftest.$ac_ext <<_ACEOF
5010 #line $LINENO "configure"
5013 cat confdefs.h >>conftest.$ac_ext
5014 cat >>conftest.$ac_ext <<_ACEOF
5015 /* end confdefs.h. */
5019 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5020 $EGREP "memchr" >/dev/null 2>&1; then
5023 ac_cv_header_stdc=no
5029 if test $ac_cv_header_stdc = yes; then
5030 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5031 cat >conftest.$ac_ext <<_ACEOF
5032 #line $LINENO "configure"
5035 cat confdefs.h >>conftest.$ac_ext
5036 cat >>conftest.$ac_ext <<_ACEOF
5037 /* end confdefs.h. */
5041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5042 $EGREP "free" >/dev/null 2>&1; then
5045 ac_cv_header_stdc=no
5051 if test $ac_cv_header_stdc = yes; then
5052 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5053 if test "$cross_compiling" = yes; then
5056 cat >conftest.$ac_ext <<_ACEOF
5057 #line $LINENO "configure"
5060 cat confdefs.h >>conftest.$ac_ext
5061 cat >>conftest.$ac_ext <<_ACEOF
5062 /* end confdefs.h. */
5064 #if ((' ' & 0x0FF) == 0x020)
5065 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5066 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5068 # define ISLOWER(c) \
5069 (('a' <= (c) && (c) <= 'i') \
5070 || ('j' <= (c) && (c) <= 'r') \
5071 || ('s' <= (c) && (c) <= 'z'))
5072 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5075 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5080 for (i = 0; i < 256; i++)
5081 if (XOR (islower (i), ISLOWER (i))
5082 || toupper (i) != TOUPPER (i))
5087 rm -f conftest$ac_exeext
5088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5089 (eval $ac_link) 2>&5
5091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5092 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); }; }; then
5100 echo "$as_me: program exited with status $ac_status" >&5
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5105 ac_cv_header_stdc=no
5107 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5111 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5112 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5113 if test $ac_cv_header_stdc = yes; then
5115 cat >>confdefs.h <<\_ACEOF
5116 #define STDC_HEADERS 1
5121 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5131 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5132 inttypes.h stdint.h unistd.h
5134 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5135 echo "$as_me:$LINENO: checking for $ac_header" >&5
5136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5137 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5138 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 cat >conftest.$ac_ext <<_ACEOF
5141 #line $LINENO "configure"
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h. */
5147 $ac_includes_default
5149 #include <$ac_header>
5151 rm -f conftest.$ac_objext
5152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5153 (eval $ac_compile) 2>&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } &&
5157 { ac_try='test -s conftest.$ac_objext'
5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; }; then
5163 eval "$as_ac_Header=yes"
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5168 eval "$as_ac_Header=no"
5170 rm -f conftest.$ac_objext conftest.$ac_ext
5172 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5173 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5175 cat >>confdefs.h <<_ACEOF
5176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5184 if test "${ac_cv_header_termcap_h+set}" = set; then
5185 echo "$as_me:$LINENO: checking for termcap.h" >&5
5186 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5187 if test "${ac_cv_header_termcap_h+set}" = set; then
5188 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5191 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5193 # Is the header compilable?
5194 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5195 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5196 cat >conftest.$ac_ext <<_ACEOF
5197 #line $LINENO "configure"
5200 cat confdefs.h >>conftest.$ac_ext
5201 cat >>conftest.$ac_ext <<_ACEOF
5202 /* end confdefs.h. */
5203 $ac_includes_default
5204 #include <termcap.h>
5206 rm -f conftest.$ac_objext
5207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5208 (eval $ac_compile) 2>&5
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); } &&
5212 { ac_try='test -s conftest.$ac_objext'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; }; then
5218 ac_header_compiler=yes
5220 echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5223 ac_header_compiler=no
5225 rm -f conftest.$ac_objext conftest.$ac_ext
5226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5227 echo "${ECHO_T}$ac_header_compiler" >&6
5229 # Is the header present?
5230 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5231 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5232 cat >conftest.$ac_ext <<_ACEOF
5233 #line $LINENO "configure"
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5239 #include <termcap.h>
5241 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5242 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5244 grep -v '^ *+' conftest.er1 >conftest.err
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } >/dev/null; then
5249 if test -s conftest.err; then
5250 ac_cpp_err=$ac_c_preproc_warn_flag
5257 if test -z "$ac_cpp_err"; then
5258 ac_header_preproc=yes
5260 echo "$as_me: failed program was:" >&5
5261 sed 's/^/| /' conftest.$ac_ext >&5
5263 ac_header_preproc=no
5265 rm -f conftest.err conftest.$ac_ext
5266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5267 echo "${ECHO_T}$ac_header_preproc" >&6
5269 # So? What about this header?
5270 case $ac_header_compiler:$ac_header_preproc in
5272 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5273 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5274 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5275 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5278 ## ------------------------------------ ##
5279 ## Report this to bug-autoconf@gnu.org. ##
5280 ## ------------------------------------ ##
5283 sed "s/^/$as_me: WARNING: /" >&2
5286 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5287 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5288 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5289 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5290 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5291 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5294 ## ------------------------------------ ##
5295 ## Report this to bug-autoconf@gnu.org. ##
5296 ## ------------------------------------ ##
5299 sed "s/^/$as_me: WARNING: /" >&2
5302 echo "$as_me:$LINENO: checking for termcap.h" >&5
5303 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5304 if test "${ac_cv_header_termcap_h+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 ac_cv_header_termcap_h=$ac_header_preproc
5309 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5310 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5313 if test $ac_cv_header_termcap_h = yes; then
5314 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5315 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5316 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 ac_check_lib_save_LIBS=$LIBS
5320 LIBS="-ltermcap $LIBS"
5321 cat >conftest.$ac_ext <<_ACEOF
5322 #line $LINENO "configure"
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5329 /* Override any gcc2 internal prototype to avoid an error. */
5333 /* We use char because int might match the return type of a gcc2
5334 builtin and then its argument prototype would still apply. */
5344 rm -f conftest.$ac_objext conftest$ac_exeext
5345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5346 (eval $ac_link) 2>&5
5348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349 (exit $ac_status); } &&
5350 { ac_try='test -s conftest$ac_exeext'
5351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; }; then
5356 ac_cv_lib_termcap_tgetent=yes
5358 echo "$as_me: failed program was:" >&5
5359 sed 's/^/| /' conftest.$ac_ext >&5
5361 ac_cv_lib_termcap_tgetent=no
5363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5364 LIBS=$ac_check_lib_save_LIBS
5366 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5367 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5368 if test $ac_cv_lib_termcap_tgetent = yes; then
5369 CONS_LIBS="-ltermcap"
5375 cat >>confdefs.h <<\_ACEOF
5376 #define HAVE_CONIO 1
5381 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5382 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5383 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 ac_check_lib_save_LIBS=$LIBS
5387 LIBS="-lncurses $LIBS"
5388 cat >conftest.$ac_ext <<_ACEOF
5389 #line $LINENO "configure"
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h. */
5396 /* Override any gcc2 internal prototype to avoid an error. */
5400 /* We use char because int might match the return type of a gcc2
5401 builtin and then its argument prototype would still apply. */
5411 rm -f conftest.$ac_objext conftest$ac_exeext
5412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5413 (eval $ac_link) 2>&5
5415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416 (exit $ac_status); } &&
5417 { ac_try='test -s conftest$ac_exeext'
5418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5422 (exit $ac_status); }; }; then
5423 ac_cv_lib_ncurses_tgetent=yes
5425 echo "$as_me: failed program was:" >&5
5426 sed 's/^/| /' conftest.$ac_ext >&5
5428 ac_cv_lib_ncurses_tgetent=no
5430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5431 LIBS=$ac_check_lib_save_LIBS
5433 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5434 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5435 if test $ac_cv_lib_ncurses_tgetent = yes; then
5436 CONS_LIBS="-lncurses"
5442 cat >>confdefs.h <<\_ACEOF
5443 #define HAVE_CONIO 1
5448 echo " "; echo "Neither termcap nor ncurses library found. CONIO turned off ..."; echo " "
5456 echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5463 # ---------------------------------------------------
5464 # Check for readline support/directory (default off)
5465 # ---------------------------------------------------
5466 # this allows you to turn it completely off
5467 # Check whether --enable-readline or --disable-readline was given.
5468 if test "${enable_readline+set}" = set; then
5469 enableval="$enable_readline"
5470 if test x$enableval = xno; then
5477 if test x$support_readline = xyes; then
5479 # Check whether --with-readline or --without-readline was given.
5480 if test "${with_readline+set}" = set; then
5481 withval="$with_readline"
5483 case "$with_readline" in
5486 if test "$with_readline" != "yes"; then
5487 CONS_INC="-I${with_readline}"
5488 CONS_LDFLAGS="-L$with_readline"
5490 with_readline="/usr/include/readline"
5492 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5494 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5495 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5502 # Is the header compilable?
5503 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5504 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5505 cat >conftest.$ac_ext <<_ACEOF
5506 #line $LINENO "configure"
5509 cat confdefs.h >>conftest.$ac_ext
5510 cat >>conftest.$ac_ext <<_ACEOF
5511 /* end confdefs.h. */
5512 $ac_includes_default
5513 #include <${with_readline}/readline.h>
5515 rm -f conftest.$ac_objext
5516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5517 (eval $ac_compile) 2>&5
5519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520 (exit $ac_status); } &&
5521 { ac_try='test -s conftest.$ac_objext'
5522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); }; }; then
5527 ac_header_compiler=yes
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5532 ac_header_compiler=no
5534 rm -f conftest.$ac_objext conftest.$ac_ext
5535 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5536 echo "${ECHO_T}$ac_header_compiler" >&6
5538 # Is the header present?
5539 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5540 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5541 cat >conftest.$ac_ext <<_ACEOF
5542 #line $LINENO "configure"
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 #include <${with_readline}/readline.h>
5550 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5551 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5553 grep -v '^ *+' conftest.er1 >conftest.err
5555 cat conftest.err >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); } >/dev/null; then
5558 if test -s conftest.err; then
5559 ac_cpp_err=$ac_c_preproc_warn_flag
5566 if test -z "$ac_cpp_err"; then
5567 ac_header_preproc=yes
5569 echo "$as_me: failed program was:" >&5
5570 sed 's/^/| /' conftest.$ac_ext >&5
5572 ac_header_preproc=no
5574 rm -f conftest.err conftest.$ac_ext
5575 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5576 echo "${ECHO_T}$ac_header_preproc" >&6
5578 # So? What about this header?
5579 case $ac_header_compiler:$ac_header_preproc in
5581 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5582 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5583 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5584 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5587 ## ------------------------------------ ##
5588 ## Report this to bug-autoconf@gnu.org. ##
5589 ## ------------------------------------ ##
5592 sed "s/^/$as_me: WARNING: /" >&2
5595 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5596 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5597 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5598 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5599 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5600 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5603 ## ------------------------------------ ##
5604 ## Report this to bug-autoconf@gnu.org. ##
5605 ## ------------------------------------ ##
5608 sed "s/^/$as_me: WARNING: /" >&2
5611 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5612 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5613 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5614 echo $ECHO_N "(cached) $ECHO_C" >&6
5616 eval "$as_ac_Header=$ac_header_preproc"
5618 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5619 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5623 cat >>confdefs.h <<\_ACEOF
5624 #define HAVE_READLINE 1
5627 CONS_LIBS="-lreadline -ltermcap"
5632 echo "readline.h not found. readline turned off ..."
5644 # check for standard readline library
5645 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5646 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5647 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5648 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5652 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5654 # Is the header compilable?
5655 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5656 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5657 cat >conftest.$ac_ext <<_ACEOF
5658 #line $LINENO "configure"
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5664 $ac_includes_default
5665 #include </usr/include/readline/readline.h>
5667 rm -f conftest.$ac_objext
5668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5669 (eval $ac_compile) 2>&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } &&
5673 { ac_try='test -s conftest.$ac_objext'
5674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); }; }; then
5679 ac_header_compiler=yes
5681 echo "$as_me: failed program was:" >&5
5682 sed 's/^/| /' conftest.$ac_ext >&5
5684 ac_header_compiler=no
5686 rm -f conftest.$ac_objext conftest.$ac_ext
5687 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5688 echo "${ECHO_T}$ac_header_compiler" >&6
5690 # Is the header present?
5691 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5692 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5693 cat >conftest.$ac_ext <<_ACEOF
5694 #line $LINENO "configure"
5697 cat confdefs.h >>conftest.$ac_ext
5698 cat >>conftest.$ac_ext <<_ACEOF
5699 /* end confdefs.h. */
5700 #include </usr/include/readline/readline.h>
5702 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5703 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5705 grep -v '^ *+' conftest.er1 >conftest.err
5707 cat conftest.err >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); } >/dev/null; then
5710 if test -s conftest.err; then
5711 ac_cpp_err=$ac_c_preproc_warn_flag
5718 if test -z "$ac_cpp_err"; then
5719 ac_header_preproc=yes
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5724 ac_header_preproc=no
5726 rm -f conftest.err conftest.$ac_ext
5727 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5728 echo "${ECHO_T}$ac_header_preproc" >&6
5730 # So? What about this header?
5731 case $ac_header_compiler:$ac_header_preproc in
5733 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5734 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5735 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5736 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5739 ## ------------------------------------ ##
5740 ## Report this to bug-autoconf@gnu.org. ##
5741 ## ------------------------------------ ##
5744 sed "s/^/$as_me: WARNING: /" >&2
5747 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5748 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5749 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5750 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5751 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5752 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5755 ## ------------------------------------ ##
5756 ## Report this to bug-autoconf@gnu.org. ##
5757 ## ------------------------------------ ##
5760 sed "s/^/$as_me: WARNING: /" >&2
5763 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5764 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5765 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5770 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5771 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5774 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5775 cat >>confdefs.h <<\_ACEOF
5776 #define HAVE_READLINE 1
5780 CONS_INC="-I/usr/include/readline"
5781 CONS_LIBS="-lreadline -ltermcap"
5785 # Did not find standard library, so try Bacula's default
5786 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5788 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5789 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5790 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5794 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5796 # Is the header compilable?
5797 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5798 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5799 cat >conftest.$ac_ext <<_ACEOF
5800 #line $LINENO "configure"
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5806 $ac_includes_default
5807 #include <${TOP_DIR}/depkgs/readline/readline.h>
5809 rm -f conftest.$ac_objext
5810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5811 (eval $ac_compile) 2>&5
5813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5814 (exit $ac_status); } &&
5815 { ac_try='test -s conftest.$ac_objext'
5816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); }; }; then
5821 ac_header_compiler=yes
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5826 ac_header_compiler=no
5828 rm -f conftest.$ac_objext conftest.$ac_ext
5829 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5830 echo "${ECHO_T}$ac_header_compiler" >&6
5832 # Is the header present?
5833 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5834 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5835 cat >conftest.$ac_ext <<_ACEOF
5836 #line $LINENO "configure"
5839 cat confdefs.h >>conftest.$ac_ext
5840 cat >>conftest.$ac_ext <<_ACEOF
5841 /* end confdefs.h. */
5842 #include <${TOP_DIR}/depkgs/readline/readline.h>
5844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5847 grep -v '^ *+' conftest.er1 >conftest.err
5849 cat conftest.err >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } >/dev/null; then
5852 if test -s conftest.err; then
5853 ac_cpp_err=$ac_c_preproc_warn_flag
5860 if test -z "$ac_cpp_err"; then
5861 ac_header_preproc=yes
5863 echo "$as_me: failed program was:" >&5
5864 sed 's/^/| /' conftest.$ac_ext >&5
5866 ac_header_preproc=no
5868 rm -f conftest.err conftest.$ac_ext
5869 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5870 echo "${ECHO_T}$ac_header_preproc" >&6
5872 # So? What about this header?
5873 case $ac_header_compiler:$ac_header_preproc in
5875 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5876 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5877 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5878 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5881 ## ------------------------------------ ##
5882 ## Report this to bug-autoconf@gnu.org. ##
5883 ## ------------------------------------ ##
5886 sed "s/^/$as_me: WARNING: /" >&2
5889 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5890 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5891 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5892 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5893 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5894 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5897 ## ------------------------------------ ##
5898 ## Report this to bug-autoconf@gnu.org. ##
5899 ## ------------------------------------ ##
5902 sed "s/^/$as_me: WARNING: /" >&2
5905 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5906 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5907 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5908 echo $ECHO_N "(cached) $ECHO_C" >&6
5910 eval "$as_ac_Header=$ac_header_preproc"
5912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5913 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5917 cat >>confdefs.h <<\_ACEOF
5918 #define HAVE_READLINE 1
5922 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5923 CONS_LIBS="-lreadline -lhistory -ltermcap"
5924 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5925 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5929 echo "readline.h not found. readline turned off ..."
5955 # Minimal stuff for readline Makefile configuration
5958 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5959 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5960 if test "${ac_cv_header_stat_broken+set}" = set; then
5961 echo $ECHO_N "(cached) $ECHO_C" >&6
5963 cat >conftest.$ac_ext <<_ACEOF
5964 #line $LINENO "configure"
5967 cat confdefs.h >>conftest.$ac_ext
5968 cat >>conftest.$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5970 #include <sys/types.h>
5971 #include <sys/stat.h>
5973 #if defined(S_ISBLK) && defined(S_IFDIR)
5974 # if S_ISBLK (S_IFDIR)
5979 #if defined(S_ISBLK) && defined(S_IFCHR)
5980 # if S_ISBLK (S_IFCHR)
5985 #if defined(S_ISLNK) && defined(S_IFREG)
5986 # if S_ISLNK (S_IFREG)
5991 #if defined(S_ISSOCK) && defined(S_IFREG)
5992 # if S_ISSOCK (S_IFREG)
5998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5999 $EGREP "You lose" >/dev/null 2>&1; then
6000 ac_cv_header_stat_broken=yes
6002 ac_cv_header_stat_broken=no
6007 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6008 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6009 if test $ac_cv_header_stat_broken = yes; then
6011 cat >>confdefs.h <<\_ACEOF
6012 #define STAT_MACROS_BROKEN 1
6023 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6024 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6025 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6026 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6027 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 cat >conftest.$ac_ext <<_ACEOF
6031 #line $LINENO "configure"
6034 cat confdefs.h >>conftest.$ac_ext
6035 cat >>conftest.$ac_ext <<_ACEOF
6036 /* end confdefs.h. */
6037 #include <sys/types.h>
6049 rm -f conftest.$ac_objext
6050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6051 (eval $ac_compile) 2>&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } &&
6055 { ac_try='test -s conftest.$ac_objext'
6056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6060 (exit $ac_status); }; }; then
6061 eval "$as_ac_Header=yes"
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6066 eval "$as_ac_Header=no"
6068 rm -f conftest.$ac_objext conftest.$ac_ext
6070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6073 cat >>confdefs.h <<_ACEOF
6074 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6077 ac_header_dirent=$ac_hdr; break
6081 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6082 if test $ac_header_dirent = dirent.h; then
6083 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6084 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6085 if test "${ac_cv_search_opendir+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 ac_func_search_save_LIBS=$LIBS
6089 ac_cv_search_opendir=no
6090 cat >conftest.$ac_ext <<_ACEOF
6091 #line $LINENO "configure"
6094 cat confdefs.h >>conftest.$ac_ext
6095 cat >>conftest.$ac_ext <<_ACEOF
6096 /* end confdefs.h. */
6098 /* Override any gcc2 internal prototype to avoid an error. */
6102 /* We use char because int might match the return type of a gcc2
6103 builtin and then its argument prototype would still apply. */
6113 rm -f conftest.$ac_objext conftest$ac_exeext
6114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6115 (eval $ac_link) 2>&5
6117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6118 (exit $ac_status); } &&
6119 { ac_try='test -s conftest$ac_exeext'
6120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6124 (exit $ac_status); }; }; then
6125 ac_cv_search_opendir="none required"
6127 echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6131 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6132 if test "$ac_cv_search_opendir" = no; then
6133 for ac_lib in dir; do
6134 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6135 cat >conftest.$ac_ext <<_ACEOF
6136 #line $LINENO "configure"
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6143 /* Override any gcc2 internal prototype to avoid an error. */
6147 /* We use char because int might match the return type of a gcc2
6148 builtin and then its argument prototype would still apply. */
6158 rm -f conftest.$ac_objext conftest$ac_exeext
6159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6160 (eval $ac_link) 2>&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } &&
6164 { ac_try='test -s conftest$ac_exeext'
6165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 ac_cv_search_opendir="-l$ac_lib"
6173 echo "$as_me: failed program was:" >&5
6174 sed 's/^/| /' conftest.$ac_ext >&5
6177 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6180 LIBS=$ac_func_search_save_LIBS
6182 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6183 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6184 if test "$ac_cv_search_opendir" != no; then
6185 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6190 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6191 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6192 if test "${ac_cv_search_opendir+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 ac_func_search_save_LIBS=$LIBS
6196 ac_cv_search_opendir=no
6197 cat >conftest.$ac_ext <<_ACEOF
6198 #line $LINENO "configure"
6201 cat confdefs.h >>conftest.$ac_ext
6202 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h. */
6205 /* Override any gcc2 internal prototype to avoid an error. */
6209 /* We use char because int might match the return type of a gcc2
6210 builtin and then its argument prototype would still apply. */
6220 rm -f conftest.$ac_objext conftest$ac_exeext
6221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6222 (eval $ac_link) 2>&5
6224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6225 (exit $ac_status); } &&
6226 { ac_try='test -s conftest$ac_exeext'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; }; then
6232 ac_cv_search_opendir="none required"
6234 echo "$as_me: failed program was:" >&5
6235 sed 's/^/| /' conftest.$ac_ext >&5
6238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6239 if test "$ac_cv_search_opendir" = no; then
6241 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6242 cat >conftest.$ac_ext <<_ACEOF
6243 #line $LINENO "configure"
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6250 /* Override any gcc2 internal prototype to avoid an error. */
6254 /* We use char because int might match the return type of a gcc2
6255 builtin and then its argument prototype would still apply. */
6265 rm -f conftest.$ac_objext conftest$ac_exeext
6266 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6267 (eval $ac_link) 2>&5
6269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6270 (exit $ac_status); } &&
6271 { ac_try='test -s conftest$ac_exeext'
6272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; }; then
6277 ac_cv_search_opendir="-l$ac_lib"
6280 echo "$as_me: failed program was:" >&5
6281 sed 's/^/| /' conftest.$ac_ext >&5
6284 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6287 LIBS=$ac_func_search_save_LIBS
6289 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6290 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6291 if test "$ac_cv_search_opendir" != no; then
6292 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6306 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6309 echo "$as_me:$LINENO: checking for $ac_func" >&5
6310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6311 if eval "test \"\${$as_ac_var+set}\" = set"; then
6312 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 cat >conftest.$ac_ext <<_ACEOF
6315 #line $LINENO "configure"
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h. */
6321 /* System header to define __stub macros and hopefully few prototypes,
6322 which can conflict with char $ac_func (); below.
6323 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6324 <limits.h> exists even on freestanding compilers. */
6326 # include <limits.h>
6328 # include <assert.h>
6330 /* Override any gcc2 internal prototype to avoid an error. */
6335 /* We use char because int might match the return type of a gcc2
6336 builtin and then its argument prototype would still apply. */
6338 /* The GNU C library defines this for functions which it implements
6339 to always fail with ENOSYS. Some functions are actually named
6340 something starting with __ and the normal name is an alias. */
6341 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6344 char (*f) () = $ac_func;
6353 return f != $ac_func;
6358 rm -f conftest.$ac_objext conftest$ac_exeext
6359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6360 (eval $ac_link) 2>&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } &&
6364 { ac_try='test -s conftest$ac_exeext'
6365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }; }; then
6370 eval "$as_ac_var=yes"
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6375 eval "$as_ac_var=no"
6377 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6380 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6381 if test `eval echo '${'$as_ac_var'}'` = yes; then
6382 cat >>confdefs.h <<_ACEOF
6383 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6391 for ac_func in nanosleep nl_langinfo
6393 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6394 echo "$as_me:$LINENO: checking for $ac_func" >&5
6395 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6396 if eval "test \"\${$as_ac_var+set}\" = set"; then
6397 echo $ECHO_N "(cached) $ECHO_C" >&6
6399 cat >conftest.$ac_ext <<_ACEOF
6400 #line $LINENO "configure"
6403 cat confdefs.h >>conftest.$ac_ext
6404 cat >>conftest.$ac_ext <<_ACEOF
6405 /* end confdefs.h. */
6406 /* System header to define __stub macros and hopefully few prototypes,
6407 which can conflict with char $ac_func (); below.
6408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6409 <limits.h> exists even on freestanding compilers. */
6411 # include <limits.h>
6413 # include <assert.h>
6415 /* Override any gcc2 internal prototype to avoid an error. */
6420 /* We use char because int might match the return type of a gcc2
6421 builtin and then its argument prototype would still apply. */
6423 /* The GNU C library defines this for functions which it implements
6424 to always fail with ENOSYS. Some functions are actually named
6425 something starting with __ and the normal name is an alias. */
6426 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6429 char (*f) () = $ac_func;
6438 return f != $ac_func;
6443 rm -f conftest.$ac_objext conftest$ac_exeext
6444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6445 (eval $ac_link) 2>&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } &&
6449 { ac_try='test -s conftest$ac_exeext'
6450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; }; then
6455 eval "$as_ac_var=yes"
6457 echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6460 eval "$as_ac_var=no"
6462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6464 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6465 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6466 if test `eval echo '${'$as_ac_var'}'` = yes; then
6467 cat >>confdefs.h <<_ACEOF
6468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6475 for ac_header in varargs.h
6477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6478 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6479 echo "$as_me:$LINENO: checking for $ac_header" >&5
6480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6481 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6485 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6487 # Is the header compilable?
6488 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6490 cat >conftest.$ac_ext <<_ACEOF
6491 #line $LINENO "configure"
6494 cat confdefs.h >>conftest.$ac_ext
6495 cat >>conftest.$ac_ext <<_ACEOF
6496 /* end confdefs.h. */
6497 $ac_includes_default
6498 #include <$ac_header>
6500 rm -f conftest.$ac_objext
6501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6502 (eval $ac_compile) 2>&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } &&
6506 { ac_try='test -s conftest.$ac_objext'
6507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; }; then
6512 ac_header_compiler=yes
6514 echo "$as_me: failed program was:" >&5
6515 sed 's/^/| /' conftest.$ac_ext >&5
6517 ac_header_compiler=no
6519 rm -f conftest.$ac_objext conftest.$ac_ext
6520 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6521 echo "${ECHO_T}$ac_header_compiler" >&6
6523 # Is the header present?
6524 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6526 cat >conftest.$ac_ext <<_ACEOF
6527 #line $LINENO "configure"
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6533 #include <$ac_header>
6535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6538 grep -v '^ *+' conftest.er1 >conftest.err
6540 cat conftest.err >&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } >/dev/null; then
6543 if test -s conftest.err; then
6544 ac_cpp_err=$ac_c_preproc_warn_flag
6551 if test -z "$ac_cpp_err"; then
6552 ac_header_preproc=yes
6554 echo "$as_me: failed program was:" >&5
6555 sed 's/^/| /' conftest.$ac_ext >&5
6557 ac_header_preproc=no
6559 rm -f conftest.err conftest.$ac_ext
6560 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6561 echo "${ECHO_T}$ac_header_preproc" >&6
6563 # So? What about this header?
6564 case $ac_header_compiler:$ac_header_preproc in
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6569 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6572 ## ------------------------------------ ##
6573 ## Report this to bug-autoconf@gnu.org. ##
6574 ## ------------------------------------ ##
6577 sed "s/^/$as_me: WARNING: /" >&2
6580 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6581 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6582 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6583 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6588 ## ------------------------------------ ##
6589 ## Report this to bug-autoconf@gnu.org. ##
6590 ## ------------------------------------ ##
6593 sed "s/^/$as_me: WARNING: /" >&2
6596 echo "$as_me:$LINENO: checking for $ac_header" >&5
6597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6599 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 eval "$as_ac_Header=$ac_header_preproc"
6603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6607 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6608 cat >>confdefs.h <<_ACEOF
6609 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6617 # End of readline/conio stuff
6618 # -----------------------------------------------------------------------
6620 # -------------------------------------------
6621 # check for cdrecord writer location
6622 # get scsibus,target,lun
6623 # -------------------------------------------
6625 if test ! x$CDRECORD = x ; then
6626 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
6627 if test x${CDSTL} = x ; then
6628 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
6630 if test x${CDSTL} = x ; then
6637 # ---------------------------------------------------
6638 # Check for GMP support/directory
6639 # ---------------------------------------------------
6643 # [ --with-gmp[=DIR] Specify gmp library directory],
6645 # case "$with_gmp" in
6648 # if test "$with_gmp" != "yes"; then
6649 # GMP_INC="-I$with_gmp"
6651 # GMP_LDFLAGS="-L$with_gmp"
6653 # with_gmp="/usr/include"
6655 # AC_CHECK_HEADER($with_gmp/gmp.h,
6656 # [ AC_MSG_RESULT(yes)
6657 # AC_DEFINE(HAVE_GMP)
6661 # [ AC_MSG_ERROR([*** gmp library missing])
6667 # # check for standard gmp library
6668 # AC_CHECK_HEADER(/usr/include/gmp.h,
6669 # [ AC_MSG_RESULT(yes)
6670 # AC_DEFINE(HAVE_GMP)
6675 # # Did not find standard library, so use our own
6676 # AC_MSG_RESULT(yes)
6677 # AC_DEFINE(HAVE_GMP)
6680 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6682 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6683 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6689 #AC_SUBST(GMP_LDFLAGS)
6693 # -----------------------------------------------------------------------
6696 # ---------------------------------------------------
6697 # Check for CWEB support/directory
6698 # ---------------------------------------------------
6703 # [ --with-cweb[=DIR] Specify cweb library directory],
6705 # case "$with_cweb" in
6708 # if test "$with_cweb" != "yes"; then
6709 # CWEB_INC="-I$with_cweb"
6710 # CWEB_LIBS="-lcweb"
6711 # CWEB_LDFLAGS="-L$with_cweb"
6713 # with_cweb="/usr/include"
6715 # AC_CHECK_HEADER($with_cweb/cweb.h,
6716 # [ AC_MSG_RESULT(yes)
6717 # AC_DEFINE(HAVE_CWEB)
6718 # CWEB_LIBS="-lcweb"
6721 # [ AC_MSG_ERROR([*** cweb library missing])
6727 # # check for standard cweb library
6728 # AC_CHECK_HEADER(/usr/include/cweb.h,
6729 # [ AC_MSG_RESULT(yes)
6730 # AC_DEFINE(HAVE_CWEB)
6733 # CWEB_LIBS="-lcweb"
6735 # # Did not find starndard library, so use our own
6736 # AC_MSG_RESULT(yes)
6737 # AC_DEFINE(HAVE_CWEB)
6740 # CWEB=${TOP_DIR}/depkgs/cweb
6741 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6742 # CWEB_LIBS="-lcweb"
6743 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6744 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6750 #AC_SUBST(CWEB_LIBS)
6751 #AC_SUBST(CWEB_LDFLAGS)
6755 # -----------------------------------------------------------------------
6759 # -----------------------------------------------------------
6760 # Check whether user wants TCP wrappers support (default off)
6761 # -----------------------------------------------------------
6764 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6765 if test "${with_tcp_wrappers+set}" = set; then
6766 withval="$with_tcp_wrappers"
6768 if test "x$withval" != "xno" ; then
6770 LIBS="$saved_LIBS -lwrap"
6771 echo "$as_me:$LINENO: checking for libwrap" >&5
6772 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6773 cat >conftest.$ac_ext <<_ACEOF
6774 #line $LINENO "configure"
6777 cat confdefs.h >>conftest.$ac_ext
6778 cat >>conftest.$ac_ext <<_ACEOF
6779 /* end confdefs.h. */
6781 int deny_severity = 0;
6782 int allow_severity = 0;
6783 struct request_info *req;
6792 rm -f conftest.$ac_objext conftest$ac_exeext
6793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6794 (eval $ac_link) 2>&5
6796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797 (exit $ac_status); } &&
6798 { ac_try='test -s conftest$ac_exeext'
6799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); }; }; then
6805 echo "$as_me:$LINENO: result: yes" >&5
6806 echo "${ECHO_T}yes" >&6
6807 cat >>confdefs.h <<\_ACEOF
6808 #define HAVE_LIBWRAP 1
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6818 LIBS="$saved_LIBS -lwrap -lnsl"
6819 cat >conftest.$ac_ext <<_ACEOF
6820 #line $LINENO "configure"
6823 cat confdefs.h >>conftest.$ac_ext
6824 cat >>conftest.$ac_ext <<_ACEOF
6825 /* end confdefs.h. */
6827 int deny_severity = 0;
6828 int allow_severity = 0;
6829 struct request_info *req;
6838 rm -f conftest.$ac_objext conftest$ac_exeext
6839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6840 (eval $ac_link) 2>&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); } &&
6844 { ac_try='test -s conftest$ac_exeext'
6845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); }; }; then
6851 echo "$as_me:$LINENO: result: yes" >&5
6852 echo "${ECHO_T}yes" >&6
6853 cat >>confdefs.h <<\_ACEOF
6854 #define HAVE_LIBWRAP 1
6860 echo "$as_me: failed program was:" >&5
6861 sed 's/^/| /' conftest.$ac_ext >&5
6863 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6864 echo "$as_me: error: *** libwrap missing" >&2;}
6865 { (exit 1); exit 1; }; }
6868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6877 # ------------------------------------------
6878 # Where to place working dir
6879 # ------------------------------------------
6880 working_dir=`eval echo ${prefix}/var/bacula/working`
6882 # Check whether --with-working-dir or --without-working-dir was given.
6883 if test "${with_working_dir+set}" = set; then
6884 withval="$with_working_dir"
6886 if test "x$withval" != "xno" ; then
6887 working_dir=$withval
6896 # ------------------------------------------
6897 # Where to place scriptdir (script files)
6898 # ------------------------------------------
6899 scriptdir=`eval echo ${sysconfdir}`
6901 # Check whether --with-scriptdir or --without-scriptdir was given.
6902 if test "${with_scriptdir+set}" = set; then
6903 withval="$with_scriptdir"
6905 if test "x$withval" != "xno" ; then
6915 # ------------------------------------------
6916 # Where to send dump email
6917 # ------------------------------------------
6918 dump_email=root@localhost
6920 # Check whether --with-dump-email or --without-dump-email was given.
6921 if test "${with_dump_email+set}" = set; then
6922 withval="$with_dump_email"
6924 if test "x$withval" != "xno" ; then
6933 # ------------------------------------------
6934 # Where to send job email
6935 # ------------------------------------------
6936 job_email=root@localhost
6938 # Check whether --with-job-email or --without-job-email was given.
6939 if test "${with_job_email+set}" = set; then
6940 withval="$with_job_email"
6942 if test "x$withval" != "xno" ; then
6951 # ------------------------------------------
6952 # Where to find smtp host
6953 # ------------------------------------------
6956 # Check whether --with-smtp_host or --without-smtp_host was given.
6957 if test "${with_smtp_host+set}" = set; then
6958 withval="$with_smtp_host"
6960 if test "x$withval" != "xno" ; then
6970 # ------------------------------------
6971 # Where to place pid files
6972 # ------------------------------------
6975 # Check whether --with-pid-dir or --without-pid-dir was given.
6976 if test "${with_pid_dir+set}" = set; then
6977 withval="$with_pid_dir"
6979 if test "x$withval" != "xno" ; then
6986 cat >>confdefs.h <<_ACEOF
6987 #define _PATH_BACULA_PIDDIR "$piddir"
6993 # ------------------------------------
6994 # Where to place subsys "lock file"
6995 # ------------------------------------
6996 subsysdir=/var/run/subsys
6998 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6999 if test "${with_subsys_dir+set}" = set; then
7000 withval="$with_subsys_dir"
7002 if test "x$withval" != "xno" ; then
7013 # ------------------------------------
7014 # Where to start assigning ports
7015 # ------------------------------------
7018 # Check whether --with-baseport or --without-baseport was given.
7019 if test "${with_baseport+set}" = set; then
7020 withval="$with_baseport"
7022 if test "x$withval" != "xno" ; then
7030 dir_port=`expr $baseport`
7031 fd_port=`expr $baseport + 1`
7032 sd_port=`expr $fd_port + 1`
7039 # ------------------------------------------
7040 # Generate passwords
7041 # ------------------------------------------
7044 # Check whether --with-dir-password or --without-dir-password was given.
7045 if test "${with_dir_password+set}" = set; then
7046 withval="$with_dir_password"
7048 if test "x$withval" != "xno" ; then
7049 dir_password=$withval
7055 if test "x$dir_password" = "x" ; then
7056 if test "x$OPENSSL" = "xnone" ; then
7057 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7058 key=`autoconf/randpass 33`
7060 key=`openssl rand -base64 33`
7067 # Check whether --with-fd-password or --without-fd-password was given.
7068 if test "${with_fd_password+set}" = set; then
7069 withval="$with_fd_password"
7071 if test "x$withval" != "xno" ; then
7072 fd_password=$withval
7078 if test "x$fd_password" = "x" ; then
7079 if test "x$OPENSSL" = "xnone" ; then
7080 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7081 key=`autoconf/randpass 37`
7083 key=`openssl rand -base64 33`
7090 # Check whether --with-sd-password or --without-sd-password was given.
7091 if test "${with_sd_password+set}" = set; then
7092 withval="$with_sd_password"
7094 if test "x$withval" != "xno" ; then
7095 sd_password=$withval
7101 if test "x$sd_password" = "x" ; then
7102 if test "x$OPENSSL" = "xnone" ; then
7103 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7104 key=`autoconf/randpass 41`
7106 key=`openssl rand -base64 33`
7113 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
7114 if test "${with_mon_dir_password+set}" = set; then
7115 withval="$with_mon_dir_password"
7117 if test "x$withval" != "xno" ; then
7118 mon_dir_password=$withval
7124 if test "x$mon_dir_password" = "x" ; then
7125 if test "x$OPENSSL" = "xnone" ; then
7126 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7127 key=`autoconf/randpass 33`
7129 key=`openssl rand -base64 33`
7131 mon_dir_password=$key
7136 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
7137 if test "${with_mon_fd_password+set}" = set; then
7138 withval="$with_mon_fd_password"
7140 if test "x$withval" != "xno" ; then
7141 mon_fd_password=$withval
7147 if test "x$mon_fd_password" = "x" ; then
7148 if test "x$OPENSSL" = "xnone" ; then
7149 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7150 key=`autoconf/randpass 37`
7152 key=`openssl rand -base64 33`
7154 mon_fd_password=$key
7159 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
7160 if test "${with_mon_sd_password+set}" = set; then
7161 withval="$with_mon_sd_password"
7163 if test "x$withval" != "xno" ; then
7164 mon_sd_password=$withval
7170 if test "x$mon_sd_password" = "x" ; then
7171 if test "x$OPENSSL" = "xnone" ; then
7172 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7173 key=`autoconf/randpass 41`
7175 key=`openssl rand -base64 33`
7177 mon_sd_password=$key
7188 # Handle users and groups for each daemon
7192 # Check whether --with-dir_user or --without-dir_user was given.
7193 if test "${with_dir_user+set}" = set; then
7194 withval="$with_dir_user"
7196 if test "x$withval" != "x" ; then
7205 # Check whether --with-dir_group or --without-dir_group was given.
7206 if test "${with_dir_group+set}" = set; then
7207 withval="$with_dir_group"
7209 if test "x$withval" != "x" ; then
7218 # Check whether --with-sd_user or --without-sd_user was given.
7219 if test "${with_sd_user+set}" = set; then
7220 withval="$with_sd_user"
7222 if test "x$withval" != "x" ; then
7231 # Check whether --with-sd_group or --without-sd_group was given.
7232 if test "${with_sd_group+set}" = set; then
7233 withval="$with_sd_group"
7235 if test "x$withval" != "x" ; then
7244 # Check whether --with-fd_user or --without-fd_user was given.
7245 if test "${with_fd_user+set}" = set; then
7246 withval="$with_fd_user"
7248 if test "x$withval" != "x" ; then
7257 # Check whether --with-fd_group or --without-fd_group was given.
7258 if test "${with_fd_group+set}" = set; then
7259 withval="$with_fd_group"
7261 if test "x$withval" != "x" ; then
7279 # allow setting default executable permissions
7283 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7284 if test "${with_sbin_perm+set}" = set; then
7285 withval="$with_sbin_perm"
7287 if test "x$withval" != "x" ; then
7296 # ------------------------------------------------
7297 # Bacula check for various SQL database engines
7298 # ------------------------------------------------
7301 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7302 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7304 # Check whether --with-postgresql or --without-postgresql was given.
7305 if test "${with_postgresql+set}" = set; then
7306 withval="$with_postgresql"
7308 if test "$withval" != "no"; then
7309 if test "$db_found" = "yes"; then
7310 echo "$as_me:$LINENO: result: error" >&5
7311 echo "${ECHO_T}error" >&6
7312 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7313 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7314 { (exit 1); exit 1; }; };
7316 if test "$withval" = "yes"; then
7317 if test -f /usr/local/include/libpq-fe.h; then
7318 POSTGRESQL_INCDIR=/usr/local/include
7319 POSTGRESQL_LIBDIR=/usr/local/lib
7320 POSTGRESQL_BINDIR=/usr/local/bin
7321 elif test -f /usr/include/libpq-fe.h; then
7322 POSTGRESQL_INCDIR=/usr/include
7323 POSTGRESQL_LIBDIR=/usr/lib
7324 POSTGRESQL_BINDIR=/usr/bin
7325 elif test -f /usr/include/pgsql/libpq-fe.h; then
7326 POSTGRESQL_INCDIR=/usr/include/pgsql
7327 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7328 POSTGRESQL_BINDIR=/usr/bin
7329 elif test -f /usr/include/postgresql/libpq-fe.h; then
7330 POSTGRESQL_INCDIR=/usr/include/postgresql
7331 POSTGRESQL_LIBDIR=/usr/lib/postgresql
7332 POSTGRESQL_BINDIR=/usr/bin
7334 echo "$as_me:$LINENO: result: no" >&5
7335 echo "${ECHO_T}no" >&6
7336 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7337 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7338 { (exit 1); exit 1; }; }
7340 elif test -f $withval/include/libpq-fe.h; then
7341 POSTGRESQL_INCDIR=$withval/include
7342 POSTGRESQL_LIBDIR=$withval/lib
7343 POSTGRESQL_BINDIR=$withval/bin
7345 echo "$as_me:$LINENO: result: no" >&5
7346 echo "${ECHO_T}no" >&6
7347 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7348 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7349 { (exit 1); exit 1; }; }
7351 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7352 echo "$as_me:$LINENO: checking for crypt" >&5
7353 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7354 if test "${ac_cv_func_crypt+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 cat >conftest.$ac_ext <<_ACEOF
7358 #line $LINENO "configure"
7361 cat confdefs.h >>conftest.$ac_ext
7362 cat >>conftest.$ac_ext <<_ACEOF
7363 /* end confdefs.h. */
7364 /* System header to define __stub macros and hopefully few prototypes,
7365 which can conflict with char crypt (); below.
7366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7367 <limits.h> exists even on freestanding compilers. */
7369 # include <limits.h>
7371 # include <assert.h>
7373 /* Override any gcc2 internal prototype to avoid an error. */
7378 /* We use char because int might match the return type of a gcc2
7379 builtin and then its argument prototype would still apply. */
7381 /* The GNU C library defines this for functions which it implements
7382 to always fail with ENOSYS. Some functions are actually named
7383 something starting with __ and the normal name is an alias. */
7384 #if defined (__stub_crypt) || defined (__stub___crypt)
7387 char (*f) () = crypt;
7401 rm -f conftest.$ac_objext conftest$ac_exeext
7402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7403 (eval $ac_link) 2>&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); } &&
7407 { ac_try='test -s conftest$ac_exeext'
7408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); }; }; then
7413 ac_cv_func_crypt=yes
7415 echo "$as_me: failed program was:" >&5
7416 sed 's/^/| /' conftest.$ac_ext >&5
7420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7422 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7423 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7424 if test $ac_cv_func_crypt = yes; then
7427 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7428 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7429 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 ac_check_lib_save_LIBS=$LIBS
7433 LIBS="-lcrypt $LIBS"
7434 cat >conftest.$ac_ext <<_ACEOF
7435 #line $LINENO "configure"
7438 cat confdefs.h >>conftest.$ac_ext
7439 cat >>conftest.$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7442 /* Override any gcc2 internal prototype to avoid an error. */
7446 /* We use char because int might match the return type of a gcc2
7447 builtin and then its argument prototype would still apply. */
7457 rm -f conftest.$ac_objext conftest$ac_exeext
7458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7459 (eval $ac_link) 2>&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); } &&
7463 { ac_try='test -s conftest$ac_exeext'
7464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468 (exit $ac_status); }; }; then
7469 ac_cv_lib_crypt_crypt=yes
7471 echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.$ac_ext >&5
7474 ac_cv_lib_crypt_crypt=no
7476 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7477 LIBS=$ac_check_lib_save_LIBS
7479 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7480 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7481 if test $ac_cv_lib_crypt_crypt = yes; then
7482 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7487 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7488 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7489 SQL_BINDIR=$POSTGRESQL_BINDIR
7490 cat >>confdefs.h <<\_ACEOF
7491 #define HAVE_POSTGRESQL 1
7494 echo "$as_me:$LINENO: result: yes" >&5
7495 echo "${ECHO_T}yes" >&6
7497 support_postgresql=yes
7501 echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6
7507 echo "$as_me:$LINENO: result: no" >&5
7508 echo "${ECHO_T}no" >&6
7519 echo "$as_me:$LINENO: checking for MySQL support" >&5
7520 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7522 # Check whether --with-mysql or --without-mysql was given.
7523 if test "${with_mysql+set}" = set; then
7524 withval="$with_mysql"
7526 if test "$withval" != "no"; then
7527 if test "$withval" = "yes"; then
7528 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7529 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7530 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7531 MYSQL_BINDIR=/usr/local/mysql/bin
7532 elif test -f /usr/include/mysql/mysql.h; then
7533 MYSQL_INCDIR=/usr/include/mysql
7534 MYSQL_LIBDIR=/usr/lib/mysql
7535 MYSQL_BINDIR=/usr/bin
7536 elif test -f /usr/include/mysql.h; then
7537 MYSQL_INCDIR=/usr/include
7538 MYSQL_LIBDIR=/usr/lib
7539 MYSQL_BINDIR=/usr/bin
7540 elif test -f /usr/local/include/mysql/mysql.h; then
7541 MYSQL_INCDIR=/usr/local/include/mysql
7542 MYSQL_LIBDIR=/usr/local/lib/mysql
7543 MYSQL_BINDIR=/usr/local/bin
7544 elif test -f /usr/local/include/mysql.h; then
7545 MYSQL_INCDIR=/usr/local/include
7546 MYSQL_LIBDIR=/usr/local/lib
7547 MYSQL_BINDIR=/usr/local/bin
7549 echo "$as_me:$LINENO: result: no" >&5
7550 echo "${ECHO_T}no" >&6
7551 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7552 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7553 { (exit 1); exit 1; }; }
7556 if test -f $withval/include/mysql/mysql.h; then
7557 MYSQL_INCDIR=$withval/include/mysql
7558 MYSQL_LIBDIR=$withval/lib/mysql
7559 MYSQL_BINDIR=$withval/bin
7560 elif test -f $withval/include/mysql.h; then
7561 MYSQL_INCDIR=$withval/include
7562 MYSQL_LIBDIR=$withval/lib
7563 MYSQL_BINDIR=$withval/bin
7565 echo "$as_me:$LINENO: result: no" >&5
7566 echo "${ECHO_T}no" >&6
7567 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7568 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7569 { (exit 1); exit 1; }; }
7572 SQL_INCLUDE=-I$MYSQL_INCDIR
7573 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7574 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7575 cat >>confdefs.h <<\_ACEOF
7576 #define HAVE_THREAD_SAFE_MYSQL 1
7580 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7582 SQL_BINDIR=$MYSQL_BINDIR
7584 cat >>confdefs.h <<\_ACEOF
7585 #define HAVE_MYSQL 1
7588 echo "$as_me:$LINENO: result: yes" >&5
7589 echo "${ECHO_T}yes" >&6
7596 echo "$as_me:$LINENO: result: no" >&5
7597 echo "${ECHO_T}no" >&6
7604 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7605 if test "${with_embedded_mysql+set}" = set; then
7606 withval="$with_embedded_mysql"
7608 if test "$withval" != "no"; then
7609 if test "$withval" = "yes"; then
7610 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7611 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7612 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7613 MYSQL_BINDIR=/usr/local/mysql/bin
7614 elif test -f /usr/include/mysql/mysql.h; then
7615 MYSQL_INCDIR=/usr/include/mysql
7616 MYSQL_LIBDIR=/usr/lib/mysql
7617 MYSQL_BINDIR=/usr/bin
7618 elif test -f /usr/include/mysql.h; then
7619 MYSQL_INCDIR=/usr/include
7620 MYSQL_LIBDIR=/usr/lib
7621 MYSQL_BINDIR=/usr/bin
7622 elif test -f /usr/local/include/mysql/mysql.h; then
7623 MYSQL_INCDIR=/usr/local/include/mysql
7624 MYSQL_LIBDIR=/usr/local/lib/mysql
7625 MYSQL_BINDIR=/usr/local/bin
7626 elif test -f /usr/local/include/mysql.h; then
7627 MYSQL_INCDIR=/usr/local/include
7628 MYSQL_LIBDIR=/usr/local/lib
7629 MYSQL_BINDIR=/usr/local/bin
7631 echo "$as_me:$LINENO: result: no" >&5
7632 echo "${ECHO_T}no" >&6
7633 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7634 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7635 { (exit 1); exit 1; }; }
7638 if test -f $withval/include/mysql/mysql.h; then
7639 MYSQL_INCDIR=$withval/include/mysql
7640 MYSQL_LIBDIR=$withval/lib/mysql
7641 MYSQL_BINDIR=$withval/bin
7642 elif test -f $withval/include/mysql.h; then
7643 MYSQL_INCDIR=$withval/include
7644 MYSQL_LIBDIR=$withval/lib
7645 MYSQL_BINDIR=$withval/bin
7647 echo "$as_me:$LINENO: result: no" >&5
7648 echo "${ECHO_T}no" >&6
7649 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7650 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7651 { (exit 1); exit 1; }; }
7654 SQL_INCLUDE=-I$MYSQL_INCDIR
7655 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7656 SQL_BINDIR=$MYSQL_BINDIR
7658 cat >>confdefs.h <<\_ACEOF
7659 #define HAVE_MYSQL 1
7662 cat >>confdefs.h <<\_ACEOF
7663 #define HAVE_EMBEDDED_MYSQL 1
7666 echo "$as_me:$LINENO: result: yes" >&5
7667 echo "${ECHO_T}yes" >&6
7674 echo "$as_me:$LINENO: result: no" >&5
7675 echo "${ECHO_T}no" >&6
7690 echo "$as_me:$LINENO: checking for SQLite support" >&5
7691 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7693 # Check whether --with-sqlite or --without-sqlite was given.
7694 if test "${with_sqlite+set}" = set; then
7695 withval="$with_sqlite"
7697 if test "$withval" != "no"; then
7698 if test "$withval" = "yes"; then
7699 if test -f /usr/local/include/sqlite.h; then
7700 SQLITE_INCDIR=/usr/local/include
7701 SQLITE_LIBDIR=/usr/local/lib
7702 SQLITE_BINDIR=/usr/local/bin
7703 elif test -f /usr/include/sqlite.h; then
7704 SQLITE_INCDIR=/usr/include
7705 SQLITE_LIBDIR=/usr/lib
7706 SQLITE_BINDIR=/usr/bin
7707 elif test -f $prefix/include/sqlite.h; then
7708 SQLITE_INCDIR=$prefix/include
7709 SQLITE_LIBDIR=$prefix/lib
7710 SQLITE_BINDIR=$prefix/bin
7712 echo "$as_me:$LINENO: result: no" >&5
7713 echo "${ECHO_T}no" >&6
7714 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7715 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7716 { (exit 1); exit 1; }; }
7719 if test -f $withval/sqlite.h; then
7720 SQLITE_INCDIR=$withval
7721 SQLITE_LIBDIR=$withval
7722 SQLITE_BINDIR=$withval
7723 elif test -f $withval/include/sqlite.h; then
7724 SQLITE_INCDIR=$withval/include
7725 SQLITE_LIBDIR=$withval/lib
7726 SQLITE_BINDIR=$withval/bin
7728 echo "$as_me:$LINENO: result: no" >&5
7729 echo "${ECHO_T}no" >&6
7730 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7731 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7732 { (exit 1); exit 1; }; }
7735 SQL_INCLUDE=-I$SQLITE_INCDIR
7736 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7737 SQL_BINDIR=$SQLITE_BINDIR
7739 cat >>confdefs.h <<\_ACEOF
7740 #define HAVE_SQLITE 1
7743 echo "$as_me:$LINENO: result: yes" >&5
7744 echo "${ECHO_T}yes" >&6
7751 echo "$as_me:$LINENO: result: no" >&5
7752 echo "${ECHO_T}no" >&6
7757 echo "$as_me:$LINENO: result: no" >&5
7758 echo "${ECHO_T}no" >&6
7770 cat >>confdefs.h <<\_ACEOF
7771 #define PROTOTYPES 1
7775 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
7776 if test -z "$CCOPTS"; then
7777 CCOPTS='-g -O2 -Wall'
7785 largefile_support="no"
7787 # Check whether --enable-largefile or --disable-largefile was given.
7788 if test "${enable_largefile+set}" = set; then
7789 enableval="$enable_largefile"
7792 if test "$enable_largefile" != no; then
7793 if test -n "$ac_tool_prefix"; then
7794 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7795 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7796 echo "$as_me:$LINENO: checking for $ac_word" >&5
7797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7798 if test "${ac_cv_prog_GETCONF+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 if test -n "$GETCONF"; then
7802 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7811 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 GETCONF=$ac_cv_prog_GETCONF
7821 if test -n "$GETCONF"; then
7822 echo "$as_me:$LINENO: result: $GETCONF" >&5
7823 echo "${ECHO_T}$GETCONF" >&6
7825 echo "$as_me:$LINENO: result: no" >&5
7826 echo "${ECHO_T}no" >&6
7830 if test -z "$ac_cv_prog_GETCONF"; then
7831 ac_ct_GETCONF=$GETCONF
7832 # Extract the first word of "getconf", so it can be a program name with args.
7833 set dummy getconf; ac_word=$2
7834 echo "$as_me:$LINENO: checking for $ac_word" >&5
7835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7836 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7837 echo $ECHO_N "(cached) $ECHO_C" >&6
7839 if test -n "$ac_ct_GETCONF"; then
7840 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7849 ac_cv_prog_ac_ct_GETCONF="getconf"
7850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7858 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7859 if test -n "$ac_ct_GETCONF"; then
7860 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7861 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7863 echo "$as_me:$LINENO: result: no" >&5
7864 echo "${ECHO_T}no" >&6
7867 GETCONF=$ac_ct_GETCONF
7869 GETCONF="$ac_cv_prog_GETCONF"
7872 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7873 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7874 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7878 ac_cv_sys_largefile_CFLAGS=no
7880 # IRIX 6.2 and later require cc -n32.
7881 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7882 if test "$GCC" != yes; then
7883 ac_cv_sys_largefile_CFLAGS=-n32
7886 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7887 cat >conftest.$ac_ext <<_ACEOF
7888 #line $LINENO "configure"
7891 cat confdefs.h >>conftest.$ac_ext
7892 cat >>conftest.$ac_ext <<_ACEOF
7893 /* end confdefs.h. */
7903 rm -f conftest.$ac_objext conftest$ac_exeext
7904 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7905 (eval $ac_link) 2>&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } &&
7909 { ac_try='test -s conftest$ac_exeext'
7910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); }; }; then
7917 echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7920 ac_cv_sys_largefile_CFLAGS=no
7922 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7927 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7928 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7929 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7930 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7931 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7932 echo $ECHO_N "(cached) $ECHO_C" >&6
7934 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7935 ac_cv_sys_largefile_LDFLAGS=no
7939 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7940 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7941 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7942 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7943 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7944 echo $ECHO_N "(cached) $ECHO_C" >&6
7946 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7947 ac_cv_sys_largefile_LIBS=no
7951 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7952 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7954 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7957 -D_FILE_OFFSET_BITS=*) ;;
7958 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7959 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7965 '') CPPFLAGS="$ac_flag" ;;
7966 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7974 '') CFLAGS="$ac_flag" ;;
7975 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7980 case "$ac_cv_sys_largefile_LDFLAGS" in
7984 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7985 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7988 case "$ac_cv_sys_largefile_LIBS" in
7992 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7993 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7996 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7997 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7998 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7999 echo $ECHO_N "(cached) $ECHO_C" >&6
8001 ac_cv_sys_file_offset_bits=no
8003 # HP-UX 10.20 and later
8004 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
8005 ac_cv_sys_file_offset_bits=64 ;;
8007 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8009 -D_FILE_OFFSET_BITS)
8010 ac_cv_sys_file_offset_bits=1 ;;
8011 -D_FILE_OFFSET_BITS=*)
8012 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8017 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8018 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8019 if test "$ac_cv_sys_file_offset_bits" != no; then
8021 cat >>confdefs.h <<_ACEOF
8022 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8026 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
8027 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
8028 if test "${ac_cv_sys_largefile_source+set}" = set; then
8029 echo $ECHO_N "(cached) $ECHO_C" >&6
8031 ac_cv_sys_largefile_source=no
8033 # HP-UX 10.20 and later
8034 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
8035 ac_cv_sys_largefile_source=1 ;;
8037 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8039 -D_LARGEFILE_SOURCE)
8040 ac_cv_sys_largefile_source=1 ;;
8041 -D_LARGEFILE_SOURCE=*)
8042 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8047 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8048 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8049 if test "$ac_cv_sys_largefile_source" != no; then
8051 cat >>confdefs.h <<_ACEOF
8052 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8056 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
8057 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
8058 if test "${ac_cv_sys_large_files+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 ac_cv_sys_large_files=no
8064 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
8065 ac_cv_sys_large_files=1 ;;
8067 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8070 ac_cv_sys_large_files=1 ;;
8072 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8077 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8078 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8079 if test "$ac_cv_sys_large_files" != no; then
8081 cat >>confdefs.h <<_ACEOF
8082 #define _LARGE_FILES $ac_cv_sys_large_files
8090 echo "$as_me:$LINENO: checking for X" >&5
8091 echo $ECHO_N "checking for X... $ECHO_C" >&6
8094 # Check whether --with-x or --without-x was given.
8095 if test "${with_x+set}" = set; then
8099 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8100 if test "x$with_x" = xno; then
8101 # The user explicitly disabled X.
8104 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8105 # Both variables are already set.
8108 if test "${ac_cv_have_x+set}" = set; then
8109 echo $ECHO_N "(cached) $ECHO_C" >&6
8111 # One or both of the vars are not set, and there is no cached value.
8112 ac_x_includes=no ac_x_libraries=no
8114 if mkdir conftest.dir; then
8116 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8117 cat >Imakefile <<'_ACEOF'
8119 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8121 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8122 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8123 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8124 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8125 for ac_extension in a so sl; do
8126 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8127 test -f $ac_im_libdir/libX11.$ac_extension; then
8128 ac_im_usrlibdir=$ac_im_libdir; break
8131 # Screen out bogus values from the imake configuration. They are
8132 # bogus both because they are the default anyway, and because
8133 # using them would break gcc on systems where it needs fixed includes.
8134 case $ac_im_incroot in
8136 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8138 case $ac_im_usrlibdir in
8140 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8147 # Standard set of common directories for X headers.
8148 # Check X11 before X11Rn because it is often a symlink to the current release.
8160 /usr/local/X11/include
8161 /usr/local/X11R6/include
8162 /usr/local/X11R5/include
8163 /usr/local/X11R4/include
8165 /usr/local/include/X11
8166 /usr/local/include/X11R6
8167 /usr/local/include/X11R5
8168 /usr/local/include/X11R4
8172 /usr/XFree86/include/X11
8176 /usr/unsupported/include
8178 /usr/local/x11r5/include
8179 /usr/lpp/Xamples/include
8181 /usr/openwin/include
8182 /usr/openwin/share/include'
8184 if test "$ac_x_includes" = no; then
8185 # Guess where to find include files, by looking for Intrinsic.h.
8186 # First, try using that file with no special directory specified.
8187 cat >conftest.$ac_ext <<_ACEOF
8188 #line $LINENO "configure"
8191 cat confdefs.h >>conftest.$ac_ext
8192 cat >>conftest.$ac_ext <<_ACEOF
8193 /* end confdefs.h. */
8194 #include <X11/Intrinsic.h>
8196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8199 grep -v '^ *+' conftest.er1 >conftest.err
8201 cat conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } >/dev/null; then
8204 if test -s conftest.err; then
8205 ac_cpp_err=$ac_c_preproc_warn_flag
8212 if test -z "$ac_cpp_err"; then
8213 # We can compile using X headers with no special include directory.
8216 echo "$as_me: failed program was:" >&5
8217 sed 's/^/| /' conftest.$ac_ext >&5
8219 for ac_dir in $ac_x_header_dirs; do
8220 if test -r "$ac_dir/X11/Intrinsic.h"; then
8221 ac_x_includes=$ac_dir
8226 rm -f conftest.err conftest.$ac_ext
8227 fi # $ac_x_includes = no
8229 if test "$ac_x_libraries" = no; then
8230 # Check for the libraries.
8231 # See if we find them without any special options.
8232 # Don't add to $LIBS permanently.
8235 cat >conftest.$ac_ext <<_ACEOF
8236 #line $LINENO "configure"
8239 cat confdefs.h >>conftest.$ac_ext
8240 cat >>conftest.$ac_ext <<_ACEOF
8241 /* end confdefs.h. */
8242 #include <X11/Intrinsic.h>
8251 rm -f conftest.$ac_objext conftest$ac_exeext
8252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8253 (eval $ac_link) 2>&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 (exit $ac_status); } &&
8257 { ac_try='test -s conftest$ac_exeext'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; }; then
8264 # We can link X programs with no special library path.
8267 echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8271 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8273 # Don't even attempt the hair of trying to link an X program!
8274 for ac_extension in a so sl; do
8275 if test -r $ac_dir/libXt.$ac_extension; then
8276 ac_x_libraries=$ac_dir
8282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8283 fi # $ac_x_libraries = no
8285 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8286 # Didn't find X anywhere. Cache the known absence of X.
8287 ac_cv_have_x="have_x=no"
8289 # Record where we found X for the cache.
8290 ac_cv_have_x="have_x=yes \
8291 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8296 eval "$ac_cv_have_x"
8299 if test "$have_x" != yes; then
8300 echo "$as_me:$LINENO: result: $have_x" >&5
8301 echo "${ECHO_T}$have_x" >&6
8304 # If each of the values was on the command line, it overrides each guess.
8305 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8306 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8307 # Update the cache value to reflect the command line values.
8308 ac_cv_have_x="have_x=yes \
8309 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8310 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8311 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8314 if test "$no_x" = yes; then
8315 # Not all programs may use this symbol, but it does not hurt to define it.
8317 cat >>confdefs.h <<\_ACEOF
8318 #define X_DISPLAY_MISSING 1
8321 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8323 if test -n "$x_includes"; then
8324 X_CFLAGS="$X_CFLAGS -I$x_includes"
8327 # It would also be nice to do this for all -L options, not just this one.
8328 if test -n "$x_libraries"; then
8329 X_LIBS="$X_LIBS -L$x_libraries"
8330 # For Solaris; some versions of Sun CC require a space after -R and
8331 # others require no space. Words are not sufficient . . . .
8332 case `(uname -sr) 2>/dev/null` in
8334 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8335 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8336 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8337 cat >conftest.$ac_ext <<_ACEOF
8338 #line $LINENO "configure"
8341 cat confdefs.h >>conftest.$ac_ext
8342 cat >>conftest.$ac_ext <<_ACEOF
8343 /* end confdefs.h. */
8353 rm -f conftest.$ac_objext conftest$ac_exeext
8354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8355 (eval $ac_link) 2>&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); } &&
8359 { ac_try='test -s conftest$ac_exeext'
8360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; }; then
8367 echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8372 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8373 if test $ac_R_nospace = yes; then
8374 echo "$as_me:$LINENO: result: no" >&5
8375 echo "${ECHO_T}no" >&6
8376 X_LIBS="$X_LIBS -R$x_libraries"
8378 LIBS="$ac_xsave_LIBS -R $x_libraries"
8379 cat >conftest.$ac_ext <<_ACEOF
8380 #line $LINENO "configure"
8383 cat confdefs.h >>conftest.$ac_ext
8384 cat >>conftest.$ac_ext <<_ACEOF
8385 /* end confdefs.h. */
8395 rm -f conftest.$ac_objext conftest$ac_exeext
8396 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8397 (eval $ac_link) 2>&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); } &&
8401 { ac_try='test -s conftest$ac_exeext'
8402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); }; }; then
8409 echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8414 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8415 if test $ac_R_space = yes; then
8416 echo "$as_me:$LINENO: result: yes" >&5
8417 echo "${ECHO_T}yes" >&6
8418 X_LIBS="$X_LIBS -R $x_libraries"
8420 echo "$as_me:$LINENO: result: neither works" >&5
8421 echo "${ECHO_T}neither works" >&6
8428 # Check for system-dependent libraries X programs must link with.
8429 # Do this before checking for the system-independent R6 libraries
8430 # (-lICE), since we may need -lsocket or whatever for X linking.
8432 if test "$ISC" = yes; then
8433 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8435 # Martyn Johnson says this is needed for Ultrix, if the X
8436 # libraries were built with DECnet support. And Karl Berry says
8437 # the Alpha needs dnet_stub (dnet does not exist).
8438 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8439 cat >conftest.$ac_ext <<_ACEOF
8440 #line $LINENO "configure"
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
8445 /* end confdefs.h. */
8447 /* Override any gcc2 internal prototype to avoid an error. */
8451 /* We use char because int might match the return type of a gcc2
8452 builtin and then its argument prototype would still apply. */
8453 char XOpenDisplay ();
8462 rm -f conftest.$ac_objext conftest$ac_exeext
8463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8464 (eval $ac_link) 2>&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } &&
8468 { ac_try='test -s conftest$ac_exeext'
8469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); }; }; then
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.$ac_ext >&5
8479 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8480 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8481 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8482 echo $ECHO_N "(cached) $ECHO_C" >&6
8484 ac_check_lib_save_LIBS=$LIBS
8486 cat >conftest.$ac_ext <<_ACEOF
8487 #line $LINENO "configure"
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h. */
8494 /* Override any gcc2 internal prototype to avoid an error. */
8498 /* We use char because int might match the return type of a gcc2
8499 builtin and then its argument prototype would still apply. */
8509 rm -f conftest.$ac_objext conftest$ac_exeext
8510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8511 (eval $ac_link) 2>&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); } &&
8515 { ac_try='test -s conftest$ac_exeext'
8516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); }; }; then
8521 ac_cv_lib_dnet_dnet_ntoa=yes
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8526 ac_cv_lib_dnet_dnet_ntoa=no
8528 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8529 LIBS=$ac_check_lib_save_LIBS
8531 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8532 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8533 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8534 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8537 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8538 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8539 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8540 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8541 echo $ECHO_N "(cached) $ECHO_C" >&6
8543 ac_check_lib_save_LIBS=$LIBS
8544 LIBS="-ldnet_stub $LIBS"
8545 cat >conftest.$ac_ext <<_ACEOF
8546 #line $LINENO "configure"
8549 cat confdefs.h >>conftest.$ac_ext
8550 cat >>conftest.$ac_ext <<_ACEOF
8551 /* end confdefs.h. */
8553 /* Override any gcc2 internal prototype to avoid an error. */
8557 /* We use char because int might match the return type of a gcc2
8558 builtin and then its argument prototype would still apply. */
8568 rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8570 (eval $ac_link) 2>&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } &&
8574 { ac_try='test -s conftest$ac_exeext'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8580 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8585 ac_cv_lib_dnet_stub_dnet_ntoa=no
8587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8588 LIBS=$ac_check_lib_save_LIBS
8590 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8591 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8592 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8593 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8598 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8599 LIBS="$ac_xsave_LIBS"
8601 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8602 # to get the SysV transport functions.
8603 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8605 # The nsl library prevents programs from opening the X display
8606 # on Irix 5.2, according to T.E. Dickey.
8607 # The functions gethostbyname, getservbyname, and inet_addr are
8608 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8609 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8610 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8611 if test "${ac_cv_func_gethostbyname+set}" = set; then
8612 echo $ECHO_N "(cached) $ECHO_C" >&6
8614 cat >conftest.$ac_ext <<_ACEOF
8615 #line $LINENO "configure"
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8621 /* System header to define __stub macros and hopefully few prototypes,
8622 which can conflict with char gethostbyname (); below.
8623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8624 <limits.h> exists even on freestanding compilers. */
8626 # include <limits.h>
8628 # include <assert.h>
8630 /* Override any gcc2 internal prototype to avoid an error. */
8635 /* We use char because int might match the return type of a gcc2
8636 builtin and then its argument prototype would still apply. */
8637 char gethostbyname ();
8638 /* The GNU C library defines this for functions which it implements
8639 to always fail with ENOSYS. Some functions are actually named
8640 something starting with __ and the normal name is an alias. */
8641 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8644 char (*f) () = gethostbyname;
8653 return f != 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_func_gethostbyname=yes
8672 echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8675 ac_cv_func_gethostbyname=no
8677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8679 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8680 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8682 if test $ac_cv_func_gethostbyname = no; then
8683 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8684 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8685 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8686 echo $ECHO_N "(cached) $ECHO_C" >&6
8688 ac_check_lib_save_LIBS=$LIBS
8690 cat >conftest.$ac_ext <<_ACEOF
8691 #line $LINENO "configure"
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h. */
8698 /* Override any gcc2 internal prototype to avoid an error. */
8702 /* We use char because int might match the return type of a gcc2
8703 builtin and then its argument prototype would still apply. */
8704 char gethostbyname ();
8713 rm -f conftest.$ac_objext conftest$ac_exeext
8714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8715 (eval $ac_link) 2>&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } &&
8719 { ac_try='test -s conftest$ac_exeext'
8720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); }; }; then
8725 ac_cv_lib_nsl_gethostbyname=yes
8727 echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8730 ac_cv_lib_nsl_gethostbyname=no
8732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8733 LIBS=$ac_check_lib_save_LIBS
8735 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8736 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8737 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8738 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8741 if test $ac_cv_lib_nsl_gethostbyname = no; then
8742 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8743 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8744 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8747 ac_check_lib_save_LIBS=$LIBS
8749 cat >conftest.$ac_ext <<_ACEOF
8750 #line $LINENO "configure"
8753 cat confdefs.h >>conftest.$ac_ext
8754 cat >>conftest.$ac_ext <<_ACEOF
8755 /* end confdefs.h. */
8757 /* Override any gcc2 internal prototype to avoid an error. */
8761 /* We use char because int might match the return type of a gcc2
8762 builtin and then its argument prototype would still apply. */
8763 char gethostbyname ();
8772 rm -f conftest.$ac_objext conftest$ac_exeext
8773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8774 (eval $ac_link) 2>&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } &&
8778 { ac_try='test -s conftest$ac_exeext'
8779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); }; }; then
8784 ac_cv_lib_bsd_gethostbyname=yes
8786 echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8789 ac_cv_lib_bsd_gethostbyname=no
8791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8792 LIBS=$ac_check_lib_save_LIBS
8794 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8795 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8796 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8797 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8803 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8804 # socket/setsockopt and other routines are undefined under SCO ODT
8805 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8806 # on later versions), says Simon Leinen: it contains gethostby*
8807 # variants that don't use the name server (or something). -lsocket
8808 # must be given before -lnsl if both are needed. We assume that
8809 # if connect needs -lnsl, so does gethostbyname.
8810 echo "$as_me:$LINENO: checking for connect" >&5
8811 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8812 if test "${ac_cv_func_connect+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 cat >conftest.$ac_ext <<_ACEOF
8816 #line $LINENO "configure"
8819 cat confdefs.h >>conftest.$ac_ext
8820 cat >>conftest.$ac_ext <<_ACEOF
8821 /* end confdefs.h. */
8822 /* System header to define __stub macros and hopefully few prototypes,
8823 which can conflict with char connect (); below.
8824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8825 <limits.h> exists even on freestanding compilers. */
8827 # include <limits.h>
8829 # include <assert.h>
8831 /* Override any gcc2 internal prototype to avoid an error. */
8836 /* We use char because int might match the return type of a gcc2
8837 builtin and then its argument prototype would still apply. */
8839 /* The GNU C library defines this for functions which it implements
8840 to always fail with ENOSYS. Some functions are actually named
8841 something starting with __ and the normal name is an alias. */
8842 #if defined (__stub_connect) || defined (__stub___connect)
8845 char (*f) () = connect;
8854 return f != connect;
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_func_connect=yes
8873 echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8876 ac_cv_func_connect=no
8878 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8880 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8881 echo "${ECHO_T}$ac_cv_func_connect" >&6
8883 if test $ac_cv_func_connect = no; then
8884 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8885 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8886 if test "${ac_cv_lib_socket_connect+set}" = set; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8889 ac_check_lib_save_LIBS=$LIBS
8890 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8891 cat >conftest.$ac_ext <<_ACEOF
8892 #line $LINENO "configure"
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8899 /* Override any gcc2 internal prototype to avoid an error. */
8903 /* We use char because int might match the return type of a gcc2
8904 builtin and then its argument prototype would still apply. */
8914 rm -f conftest.$ac_objext conftest$ac_exeext
8915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916 (eval $ac_link) 2>&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } &&
8920 { ac_try='test -s conftest$ac_exeext'
8921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); }; }; then
8926 ac_cv_lib_socket_connect=yes
8928 echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8931 ac_cv_lib_socket_connect=no
8933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8934 LIBS=$ac_check_lib_save_LIBS
8936 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8937 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8938 if test $ac_cv_lib_socket_connect = yes; then
8939 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8944 # Guillermo Gomez says -lposix is necessary on A/UX.
8945 echo "$as_me:$LINENO: checking for remove" >&5
8946 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8947 if test "${ac_cv_func_remove+set}" = set; then
8948 echo $ECHO_N "(cached) $ECHO_C" >&6
8950 cat >conftest.$ac_ext <<_ACEOF
8951 #line $LINENO "configure"
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8957 /* System header to define __stub macros and hopefully few prototypes,
8958 which can conflict with char remove (); below.
8959 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8960 <limits.h> exists even on freestanding compilers. */
8962 # include <limits.h>
8964 # include <assert.h>
8966 /* Override any gcc2 internal prototype to avoid an error. */
8971 /* We use char because int might match the return type of a gcc2
8972 builtin and then its argument prototype would still apply. */
8974 /* The GNU C library defines this for functions which it implements
8975 to always fail with ENOSYS. Some functions are actually named
8976 something starting with __ and the normal name is an alias. */
8977 #if defined (__stub_remove) || defined (__stub___remove)
8980 char (*f) () = remove;
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_func_remove=yes
9008 echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9011 ac_cv_func_remove=no
9013 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9015 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9016 echo "${ECHO_T}$ac_cv_func_remove" >&6
9018 if test $ac_cv_func_remove = no; then
9019 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9020 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9021 if test "${ac_cv_lib_posix_remove+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9024 ac_check_lib_save_LIBS=$LIBS
9025 LIBS="-lposix $LIBS"
9026 cat >conftest.$ac_ext <<_ACEOF
9027 #line $LINENO "configure"
9030 cat confdefs.h >>conftest.$ac_ext
9031 cat >>conftest.$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9034 /* Override any gcc2 internal prototype to avoid an error. */
9038 /* We use char because int might match the return type of a gcc2
9039 builtin and then its argument prototype would still apply. */
9049 rm -f conftest.$ac_objext conftest$ac_exeext
9050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9051 (eval $ac_link) 2>&5
9053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054 (exit $ac_status); } &&
9055 { ac_try='test -s conftest$ac_exeext'
9056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; }; then
9061 ac_cv_lib_posix_remove=yes
9063 echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9066 ac_cv_lib_posix_remove=no
9068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9069 LIBS=$ac_check_lib_save_LIBS
9071 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9072 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9073 if test $ac_cv_lib_posix_remove = yes; then
9074 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9079 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9080 echo "$as_me:$LINENO: checking for shmat" >&5
9081 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9082 if test "${ac_cv_func_shmat+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9085 cat >conftest.$ac_ext <<_ACEOF
9086 #line $LINENO "configure"
9089 cat confdefs.h >>conftest.$ac_ext
9090 cat >>conftest.$ac_ext <<_ACEOF
9091 /* end confdefs.h. */
9092 /* System header to define __stub macros and hopefully few prototypes,
9093 which can conflict with char shmat (); below.
9094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9095 <limits.h> exists even on freestanding compilers. */
9097 # include <limits.h>
9099 # include <assert.h>
9101 /* Override any gcc2 internal prototype to avoid an error. */
9106 /* We use char because int might match the return type of a gcc2
9107 builtin and then its argument prototype would still apply. */
9109 /* The GNU C library defines this for functions which it implements
9110 to always fail with ENOSYS. Some functions are actually named
9111 something starting with __ and the normal name is an alias. */
9112 #if defined (__stub_shmat) || defined (__stub___shmat)
9115 char (*f) () = shmat;
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_func_shmat=yes
9143 echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9148 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9150 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9151 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9153 if test $ac_cv_func_shmat = no; then
9154 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9155 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9156 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9159 ac_check_lib_save_LIBS=$LIBS
9161 cat >conftest.$ac_ext <<_ACEOF
9162 #line $LINENO "configure"
9165 cat confdefs.h >>conftest.$ac_ext
9166 cat >>conftest.$ac_ext <<_ACEOF
9167 /* end confdefs.h. */
9169 /* Override any gcc2 internal prototype to avoid an error. */
9173 /* We use char because int might match the return type of a gcc2
9174 builtin and then its argument prototype would still apply. */
9184 rm -f conftest.$ac_objext conftest$ac_exeext
9185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9186 (eval $ac_link) 2>&5
9188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9189 (exit $ac_status); } &&
9190 { ac_try='test -s conftest$ac_exeext'
9191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); }; }; then
9196 ac_cv_lib_ipc_shmat=yes
9198 echo "$as_me: failed program was:" >&5
9199 sed 's/^/| /' conftest.$ac_ext >&5
9201 ac_cv_lib_ipc_shmat=no
9203 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9204 LIBS=$ac_check_lib_save_LIBS
9206 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9207 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9208 if test $ac_cv_lib_ipc_shmat = yes; then
9209 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9215 # Check for libraries that X11R6 Xt/Xaw programs need.
9216 ac_save_LDFLAGS=$LDFLAGS
9217 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9218 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9219 # check for ICE first), but we must link in the order -lSM -lICE or
9220 # we get undefined symbols. So assume we have SM if we have ICE.
9221 # These have to be linked with before -lX11, unlike the other
9222 # libraries we check for below, so use a different variable.
9223 # John Interrante, Karl Berry
9224 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9225 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9226 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9227 echo $ECHO_N "(cached) $ECHO_C" >&6
9229 ac_check_lib_save_LIBS=$LIBS
9230 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9231 cat >conftest.$ac_ext <<_ACEOF
9232 #line $LINENO "configure"
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9239 /* Override any gcc2 internal prototype to avoid an error. */
9243 /* We use char because int might match the return type of a gcc2
9244 builtin and then its argument prototype would still apply. */
9245 char IceConnectionNumber ();
9249 IceConnectionNumber ();
9254 rm -f conftest.$ac_objext conftest$ac_exeext
9255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9256 (eval $ac_link) 2>&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } &&
9260 { ac_try='test -s conftest$ac_exeext'
9261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); }; }; then
9266 ac_cv_lib_ICE_IceConnectionNumber=yes
9268 echo "$as_me: failed program was:" >&5
9269 sed 's/^/| /' conftest.$ac_ext >&5
9271 ac_cv_lib_ICE_IceConnectionNumber=no
9273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9274 LIBS=$ac_check_lib_save_LIBS
9276 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9277 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9278 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9279 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9282 LDFLAGS=$ac_save_LDFLAGS
9342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9344 echo "$as_me:$LINENO: checking for $ac_header" >&5
9345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9347 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9352 # Is the header compilable?
9353 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9355 cat >conftest.$ac_ext <<_ACEOF
9356 #line $LINENO "configure"
9359 cat confdefs.h >>conftest.$ac_ext
9360 cat >>conftest.$ac_ext <<_ACEOF
9361 /* end confdefs.h. */
9362 $ac_includes_default
9363 #include <$ac_header>
9365 rm -f conftest.$ac_objext
9366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9367 (eval $ac_compile) 2>&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } &&
9371 { ac_try='test -s conftest.$ac_objext'
9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; }; then
9377 ac_header_compiler=yes
9379 echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9382 ac_header_compiler=no
9384 rm -f conftest.$ac_objext conftest.$ac_ext
9385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9386 echo "${ECHO_T}$ac_header_compiler" >&6
9388 # Is the header present?
9389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9391 cat >conftest.$ac_ext <<_ACEOF
9392 #line $LINENO "configure"
9395 cat confdefs.h >>conftest.$ac_ext
9396 cat >>conftest.$ac_ext <<_ACEOF
9397 /* end confdefs.h. */
9398 #include <$ac_header>
9400 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9401 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9403 grep -v '^ *+' conftest.er1 >conftest.err
9405 cat conftest.err >&5
9406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407 (exit $ac_status); } >/dev/null; then
9408 if test -s conftest.err; then
9409 ac_cpp_err=$ac_c_preproc_warn_flag
9416 if test -z "$ac_cpp_err"; then
9417 ac_header_preproc=yes
9419 echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.$ac_ext >&5
9422 ac_header_preproc=no
9424 rm -f conftest.err conftest.$ac_ext
9425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9426 echo "${ECHO_T}$ac_header_preproc" >&6
9428 # So? What about this header?
9429 case $ac_header_compiler:$ac_header_preproc in
9431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9434 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9437 ## ------------------------------------ ##
9438 ## Report this to bug-autoconf@gnu.org. ##
9439 ## ------------------------------------ ##
9442 sed "s/^/$as_me: WARNING: /" >&2
9445 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9446 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9447 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9448 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9453 ## ------------------------------------ ##
9454 ## Report this to bug-autoconf@gnu.org. ##
9455 ## ------------------------------------ ##
9458 sed "s/^/$as_me: WARNING: /" >&2
9461 echo "$as_me:$LINENO: checking for $ac_header" >&5
9462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9463 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9464 echo $ECHO_N "(cached) $ECHO_C" >&6
9466 eval "$as_ac_Header=$ac_header_preproc"
9468 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9469 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9472 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9473 cat >>confdefs.h <<_ACEOF
9474 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9481 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9482 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9483 if test "${ac_cv_header_stdc+set}" = set; then
9484 echo $ECHO_N "(cached) $ECHO_C" >&6
9486 cat >conftest.$ac_ext <<_ACEOF
9487 #line $LINENO "configure"
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h. */
9506 rm -f conftest.$ac_objext
9507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9508 (eval $ac_compile) 2>&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); } &&
9512 { ac_try='test -s conftest.$ac_objext'
9513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9517 (exit $ac_status); }; }; then
9518 ac_cv_header_stdc=yes
9520 echo "$as_me: failed program was:" >&5
9521 sed 's/^/| /' conftest.$ac_ext >&5
9523 ac_cv_header_stdc=no
9525 rm -f conftest.$ac_objext conftest.$ac_ext
9527 if test $ac_cv_header_stdc = yes; then
9528 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9529 cat >conftest.$ac_ext <<_ACEOF
9530 #line $LINENO "configure"
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h. */
9539 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9540 $EGREP "memchr" >/dev/null 2>&1; then
9543 ac_cv_header_stdc=no
9549 if test $ac_cv_header_stdc = yes; then
9550 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9551 cat >conftest.$ac_ext <<_ACEOF
9552 #line $LINENO "configure"
9555 cat confdefs.h >>conftest.$ac_ext
9556 cat >>conftest.$ac_ext <<_ACEOF
9557 /* end confdefs.h. */
9561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9562 $EGREP "free" >/dev/null 2>&1; then
9565 ac_cv_header_stdc=no
9571 if test $ac_cv_header_stdc = yes; then
9572 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9573 if test "$cross_compiling" = yes; then
9576 cat >conftest.$ac_ext <<_ACEOF
9577 #line $LINENO "configure"
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h. */
9584 #if ((' ' & 0x0FF) == 0x020)
9585 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9586 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9588 # define ISLOWER(c) \
9589 (('a' <= (c) && (c) <= 'i') \
9590 || ('j' <= (c) && (c) <= 'r') \
9591 || ('s' <= (c) && (c) <= 'z'))
9592 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9595 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9600 for (i = 0; i < 256; i++)
9601 if (XOR (islower (i), ISLOWER (i))
9602 || toupper (i) != TOUPPER (i))
9607 rm -f 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); } && { ac_try='./conftest$ac_exeext'
9613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; }; then
9620 echo "$as_me: program exited with status $ac_status" >&5
9621 echo "$as_me: failed program was:" >&5
9622 sed 's/^/| /' conftest.$ac_ext >&5
9625 ac_cv_header_stdc=no
9627 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9631 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9632 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9633 if test $ac_cv_header_stdc = yes; then
9635 cat >>confdefs.h <<\_ACEOF
9636 #define STDC_HEADERS 1
9641 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9642 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9643 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9644 echo $ECHO_N "(cached) $ECHO_C" >&6
9646 cat >conftest.$ac_ext <<_ACEOF
9647 #line $LINENO "configure"
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h. */
9653 #include <sys/types.h>
9657 return makedev(0, 0);
9662 rm -f conftest.$ac_objext conftest$ac_exeext
9663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9664 (eval $ac_link) 2>&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); } &&
9668 { ac_try='test -s conftest$ac_exeext'
9669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673 (exit $ac_status); }; }; then
9674 ac_cv_header_sys_types_h_makedev=yes
9676 echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.$ac_ext >&5
9679 ac_cv_header_sys_types_h_makedev=no
9681 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9684 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9685 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9687 if test $ac_cv_header_sys_types_h_makedev = no; then
9688 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9689 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9690 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9691 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9692 echo $ECHO_N "(cached) $ECHO_C" >&6
9694 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9695 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9697 # Is the header compilable?
9698 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9699 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9700 cat >conftest.$ac_ext <<_ACEOF
9701 #line $LINENO "configure"
9704 cat confdefs.h >>conftest.$ac_ext
9705 cat >>conftest.$ac_ext <<_ACEOF
9706 /* end confdefs.h. */
9707 $ac_includes_default
9708 #include <sys/mkdev.h>
9710 rm -f conftest.$ac_objext
9711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9712 (eval $ac_compile) 2>&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9715 (exit $ac_status); } &&
9716 { ac_try='test -s conftest.$ac_objext'
9717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; }; then
9722 ac_header_compiler=yes
9724 echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.$ac_ext >&5
9727 ac_header_compiler=no
9729 rm -f conftest.$ac_objext conftest.$ac_ext
9730 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9731 echo "${ECHO_T}$ac_header_compiler" >&6
9733 # Is the header present?
9734 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9735 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9736 cat >conftest.$ac_ext <<_ACEOF
9737 #line $LINENO "configure"
9740 cat confdefs.h >>conftest.$ac_ext
9741 cat >>conftest.$ac_ext <<_ACEOF
9742 /* end confdefs.h. */
9743 #include <sys/mkdev.h>
9745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9748 grep -v '^ *+' conftest.er1 >conftest.err
9750 cat conftest.err >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); } >/dev/null; then
9753 if test -s conftest.err; then
9754 ac_cpp_err=$ac_c_preproc_warn_flag
9761 if test -z "$ac_cpp_err"; then
9762 ac_header_preproc=yes
9764 echo "$as_me: failed program was:" >&5
9765 sed 's/^/| /' conftest.$ac_ext >&5
9767 ac_header_preproc=no
9769 rm -f conftest.err conftest.$ac_ext
9770 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9771 echo "${ECHO_T}$ac_header_preproc" >&6
9773 # So? What about this header?
9774 case $ac_header_compiler:$ac_header_preproc in
9776 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9777 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9778 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9779 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9782 ## ------------------------------------ ##
9783 ## Report this to bug-autoconf@gnu.org. ##
9784 ## ------------------------------------ ##
9787 sed "s/^/$as_me: WARNING: /" >&2
9790 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9791 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9792 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9793 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9794 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9795 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9798 ## ------------------------------------ ##
9799 ## Report this to bug-autoconf@gnu.org. ##
9800 ## ------------------------------------ ##
9803 sed "s/^/$as_me: WARNING: /" >&2
9806 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9807 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9808 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9809 echo $ECHO_N "(cached) $ECHO_C" >&6
9811 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9813 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9814 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9817 if test $ac_cv_header_sys_mkdev_h = yes; then
9819 cat >>confdefs.h <<\_ACEOF
9820 #define MAJOR_IN_MKDEV 1
9827 if test $ac_cv_header_sys_mkdev_h = no; then
9828 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9829 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9830 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9831 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9832 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9835 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9837 # Is the header compilable?
9838 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9839 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9840 cat >conftest.$ac_ext <<_ACEOF
9841 #line $LINENO "configure"
9844 cat confdefs.h >>conftest.$ac_ext
9845 cat >>conftest.$ac_ext <<_ACEOF
9846 /* end confdefs.h. */
9847 $ac_includes_default
9848 #include <sys/sysmacros.h>
9850 rm -f conftest.$ac_objext
9851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9852 (eval $ac_compile) 2>&5
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); } &&
9856 { ac_try='test -s conftest.$ac_objext'
9857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); }; }; then
9862 ac_header_compiler=yes
9864 echo "$as_me: failed program was:" >&5
9865 sed 's/^/| /' conftest.$ac_ext >&5
9867 ac_header_compiler=no
9869 rm -f conftest.$ac_objext conftest.$ac_ext
9870 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9871 echo "${ECHO_T}$ac_header_compiler" >&6
9873 # Is the header present?
9874 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9875 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9876 cat >conftest.$ac_ext <<_ACEOF
9877 #line $LINENO "configure"
9880 cat confdefs.h >>conftest.$ac_ext
9881 cat >>conftest.$ac_ext <<_ACEOF
9882 /* end confdefs.h. */
9883 #include <sys/sysmacros.h>
9885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9888 grep -v '^ *+' conftest.er1 >conftest.err
9890 cat conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } >/dev/null; then
9893 if test -s conftest.err; then
9894 ac_cpp_err=$ac_c_preproc_warn_flag
9901 if test -z "$ac_cpp_err"; then
9902 ac_header_preproc=yes
9904 echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9907 ac_header_preproc=no
9909 rm -f conftest.err conftest.$ac_ext
9910 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9911 echo "${ECHO_T}$ac_header_preproc" >&6
9913 # So? What about this header?
9914 case $ac_header_compiler:$ac_header_preproc in
9916 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9917 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9919 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9922 ## ------------------------------------ ##
9923 ## Report this to bug-autoconf@gnu.org. ##
9924 ## ------------------------------------ ##
9927 sed "s/^/$as_me: WARNING: /" >&2
9930 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9931 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9933 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9935 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9938 ## ------------------------------------ ##
9939 ## Report this to bug-autoconf@gnu.org. ##
9940 ## ------------------------------------ ##
9943 sed "s/^/$as_me: WARNING: /" >&2
9946 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9947 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9948 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9951 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9953 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9954 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9957 if test $ac_cv_header_sys_sysmacros_h = yes; then
9959 cat >>confdefs.h <<\_ACEOF
9960 #define MAJOR_IN_SYSMACROS 1
9975 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9976 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9977 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9978 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9980 echo $ECHO_N "(cached) $ECHO_C" >&6
9982 cat >conftest.$ac_ext <<_ACEOF
9983 #line $LINENO "configure"
9986 cat confdefs.h >>conftest.$ac_ext
9987 cat >>conftest.$ac_ext <<_ACEOF
9988 /* end confdefs.h. */
9989 #include <sys/types.h>
10001 rm -f conftest.$ac_objext
10002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10003 (eval $ac_compile) 2>&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } &&
10007 { ac_try='test -s conftest.$ac_objext'
10008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10009 (eval $ac_try) 2>&5
10011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10012 (exit $ac_status); }; }; then
10013 eval "$as_ac_Header=yes"
10015 echo "$as_me: failed program was:" >&5
10016 sed 's/^/| /' conftest.$ac_ext >&5
10018 eval "$as_ac_Header=no"
10020 rm -f conftest.$ac_objext conftest.$ac_ext
10022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10025 cat >>confdefs.h <<_ACEOF
10026 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10029 ac_header_dirent=$ac_hdr; break
10033 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10034 if test $ac_header_dirent = dirent.h; then
10035 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10036 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10037 if test "${ac_cv_search_opendir+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 ac_func_search_save_LIBS=$LIBS
10041 ac_cv_search_opendir=no
10042 cat >conftest.$ac_ext <<_ACEOF
10043 #line $LINENO "configure"
10046 cat confdefs.h >>conftest.$ac_ext
10047 cat >>conftest.$ac_ext <<_ACEOF
10048 /* end confdefs.h. */
10050 /* Override any gcc2 internal prototype to avoid an error. */
10054 /* We use char because int might match the return type of a gcc2
10055 builtin and then its argument prototype would still apply. */
10065 rm -f conftest.$ac_objext conftest$ac_exeext
10066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10067 (eval $ac_link) 2>&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); } &&
10071 { ac_try='test -s conftest$ac_exeext'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; }; then
10077 ac_cv_search_opendir="none required"
10079 echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10083 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10084 if test "$ac_cv_search_opendir" = no; then
10085 for ac_lib in dir; do
10086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10087 cat >conftest.$ac_ext <<_ACEOF
10088 #line $LINENO "configure"
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h. */
10095 /* Override any gcc2 internal prototype to avoid an error. */
10099 /* We use char because int might match the return type of a gcc2
10100 builtin and then its argument prototype would still apply. */
10110 rm -f conftest.$ac_objext conftest$ac_exeext
10111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10112 (eval $ac_link) 2>&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } &&
10116 { ac_try='test -s conftest$ac_exeext'
10117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10118 (eval $ac_try) 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); }; }; then
10122 ac_cv_search_opendir="-l$ac_lib"
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10132 LIBS=$ac_func_search_save_LIBS
10134 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10135 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10136 if test "$ac_cv_search_opendir" != no; then
10137 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10142 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10143 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10144 if test "${ac_cv_search_opendir+set}" = set; then
10145 echo $ECHO_N "(cached) $ECHO_C" >&6
10147 ac_func_search_save_LIBS=$LIBS
10148 ac_cv_search_opendir=no
10149 cat >conftest.$ac_ext <<_ACEOF
10150 #line $LINENO "configure"
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10157 /* Override any gcc2 internal prototype to avoid an error. */
10161 /* We use char because int might match the return type of a gcc2
10162 builtin and then its argument prototype would still apply. */
10172 rm -f conftest.$ac_objext conftest$ac_exeext
10173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10174 (eval $ac_link) 2>&5
10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177 (exit $ac_status); } &&
10178 { ac_try='test -s conftest$ac_exeext'
10179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10180 (eval $ac_try) 2>&5
10182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10183 (exit $ac_status); }; }; then
10184 ac_cv_search_opendir="none required"
10186 echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10191 if test "$ac_cv_search_opendir" = no; then
10192 for ac_lib in x; do
10193 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10194 cat >conftest.$ac_ext <<_ACEOF
10195 #line $LINENO "configure"
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10202 /* Override any gcc2 internal prototype to avoid an error. */
10206 /* We use char because int might match the return type of a gcc2
10207 builtin and then its argument prototype would still apply. */
10217 rm -f conftest.$ac_objext conftest$ac_exeext
10218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10219 (eval $ac_link) 2>&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } &&
10223 { ac_try='test -s conftest$ac_exeext'
10224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10225 (eval $ac_try) 2>&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); }; }; then
10229 ac_cv_search_opendir="-l$ac_lib"
10232 echo "$as_me: failed program was:" >&5
10233 sed 's/^/| /' conftest.$ac_ext >&5
10236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10239 LIBS=$ac_func_search_save_LIBS
10241 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10242 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10243 if test "$ac_cv_search_opendir" != no; then
10244 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10250 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10251 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10252 if test "${ac_cv_header_stat_broken+set}" = set; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 cat >conftest.$ac_ext <<_ACEOF
10256 #line $LINENO "configure"
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10262 #include <sys/types.h>
10263 #include <sys/stat.h>
10265 #if defined(S_ISBLK) && defined(S_IFDIR)
10266 # if S_ISBLK (S_IFDIR)
10271 #if defined(S_ISBLK) && defined(S_IFCHR)
10272 # if S_ISBLK (S_IFCHR)
10277 #if defined(S_ISLNK) && defined(S_IFREG)
10278 # if S_ISLNK (S_IFREG)
10283 #if defined(S_ISSOCK) && defined(S_IFREG)
10284 # if S_ISSOCK (S_IFREG)
10290 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10291 $EGREP "You lose" >/dev/null 2>&1; then
10292 ac_cv_header_stat_broken=yes
10294 ac_cv_header_stat_broken=no
10299 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10300 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10301 if test $ac_cv_header_stat_broken = yes; then
10303 cat >>confdefs.h <<\_ACEOF
10304 #define STAT_MACROS_BROKEN 1
10309 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10310 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10311 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10314 cat >conftest.$ac_ext <<_ACEOF
10315 #line $LINENO "configure"
10318 cat confdefs.h >>conftest.$ac_ext
10319 cat >>conftest.$ac_ext <<_ACEOF
10320 /* end confdefs.h. */
10321 #include <sys/types.h>
10322 #include <sys/wait.h>
10323 #ifndef WEXITSTATUS
10324 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10327 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10335 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10340 rm -f conftest.$ac_objext
10341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10342 (eval $ac_compile) 2>&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } &&
10346 { ac_try='test -s conftest.$ac_objext'
10347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10348 (eval $ac_try) 2>&5
10350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10351 (exit $ac_status); }; }; then
10352 ac_cv_header_sys_wait_h=yes
10354 echo "$as_me: failed program was:" >&5
10355 sed 's/^/| /' conftest.$ac_ext >&5
10357 ac_cv_header_sys_wait_h=no
10359 rm -f conftest.$ac_objext conftest.$ac_ext
10361 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10362 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10363 if test $ac_cv_header_sys_wait_h = yes; then
10365 cat >>confdefs.h <<\_ACEOF
10366 #define HAVE_SYS_WAIT_H 1
10371 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10372 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10373 if test "${ac_cv_header_time+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10376 cat >conftest.$ac_ext <<_ACEOF
10377 #line $LINENO "configure"
10380 cat confdefs.h >>conftest.$ac_ext
10381 cat >>conftest.$ac_ext <<_ACEOF
10382 /* end confdefs.h. */
10383 #include <sys/types.h>
10384 #include <sys/time.h>
10390 if ((struct tm *) 0)
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_header_time=yes
10410 echo "$as_me: failed program was:" >&5
10411 sed 's/^/| /' conftest.$ac_ext >&5
10413 ac_cv_header_time=no
10415 rm -f conftest.$ac_objext conftest.$ac_ext
10417 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10418 echo "${ECHO_T}$ac_cv_header_time" >&6
10419 if test $ac_cv_header_time = yes; then
10421 cat >>confdefs.h <<\_ACEOF
10422 #define TIME_WITH_SYS_TIME 1
10428 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10429 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10430 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10433 cat >conftest.$ac_ext <<_ACEOF
10434 #line $LINENO "configure"
10437 cat confdefs.h >>conftest.$ac_ext
10438 cat >>conftest.$ac_ext <<_ACEOF
10439 /* end confdefs.h. */
10440 $ac_includes_default
10444 static struct stat ac_aggr;
10445 if (ac_aggr.st_blksize)
10451 rm -f conftest.$ac_objext
10452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10453 (eval $ac_compile) 2>&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); } &&
10457 { ac_try='test -s conftest.$ac_objext'
10458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10459 (eval $ac_try) 2>&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); }; }; then
10463 ac_cv_member_struct_stat_st_blksize=yes
10465 echo "$as_me: failed program was:" >&5
10466 sed 's/^/| /' conftest.$ac_ext >&5
10468 cat >conftest.$ac_ext <<_ACEOF
10469 #line $LINENO "configure"
10472 cat confdefs.h >>conftest.$ac_ext
10473 cat >>conftest.$ac_ext <<_ACEOF
10474 /* end confdefs.h. */
10475 $ac_includes_default
10479 static struct stat ac_aggr;
10480 if (sizeof ac_aggr.st_blksize)
10486 rm -f conftest.$ac_objext
10487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10488 (eval $ac_compile) 2>&5
10490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10491 (exit $ac_status); } &&
10492 { ac_try='test -s conftest.$ac_objext'
10493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10494 (eval $ac_try) 2>&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; }; then
10498 ac_cv_member_struct_stat_st_blksize=yes
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10503 ac_cv_member_struct_stat_st_blksize=no
10505 rm -f conftest.$ac_objext conftest.$ac_ext
10507 rm -f conftest.$ac_objext conftest.$ac_ext
10509 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10510 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10511 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10513 cat >>confdefs.h <<_ACEOF
10514 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10518 cat >>confdefs.h <<\_ACEOF
10519 #define HAVE_ST_BLKSIZE 1
10525 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10526 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10527 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10530 cat >conftest.$ac_ext <<_ACEOF
10531 #line $LINENO "configure"
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h. */
10537 $ac_includes_default
10541 static struct stat ac_aggr;
10542 if (ac_aggr.st_blocks)
10548 rm -f conftest.$ac_objext
10549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10550 (eval $ac_compile) 2>&5
10552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10553 (exit $ac_status); } &&
10554 { ac_try='test -s conftest.$ac_objext'
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; }; then
10560 ac_cv_member_struct_stat_st_blocks=yes
10562 echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10565 cat >conftest.$ac_ext <<_ACEOF
10566 #line $LINENO "configure"
10569 cat confdefs.h >>conftest.$ac_ext
10570 cat >>conftest.$ac_ext <<_ACEOF
10571 /* end confdefs.h. */
10572 $ac_includes_default
10576 static struct stat ac_aggr;
10577 if (sizeof ac_aggr.st_blocks)
10583 rm -f conftest.$ac_objext
10584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10585 (eval $ac_compile) 2>&5
10587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588 (exit $ac_status); } &&
10589 { ac_try='test -s conftest.$ac_objext'
10590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10591 (eval $ac_try) 2>&5
10593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10594 (exit $ac_status); }; }; then
10595 ac_cv_member_struct_stat_st_blocks=yes
10597 echo "$as_me: failed program was:" >&5
10598 sed 's/^/| /' conftest.$ac_ext >&5
10600 ac_cv_member_struct_stat_st_blocks=no
10602 rm -f conftest.$ac_objext conftest.$ac_ext
10604 rm -f conftest.$ac_objext conftest.$ac_ext
10606 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10607 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10608 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10610 cat >>confdefs.h <<_ACEOF
10611 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10615 cat >>confdefs.h <<\_ACEOF
10616 #define HAVE_ST_BLOCKS 1
10620 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10624 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10625 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10626 if test "${ac_cv_struct_tm+set}" = set; then
10627 echo $ECHO_N "(cached) $ECHO_C" >&6
10629 cat >conftest.$ac_ext <<_ACEOF
10630 #line $LINENO "configure"
10633 cat confdefs.h >>conftest.$ac_ext
10634 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */
10636 #include <sys/types.h>
10642 struct tm *tp; tp->tm_sec;
10647 rm -f conftest.$ac_objext
10648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10649 (eval $ac_compile) 2>&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); } &&
10653 { ac_try='test -s conftest.$ac_objext'
10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655 (eval $ac_try) 2>&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; }; then
10659 ac_cv_struct_tm=time.h
10661 echo "$as_me: failed program was:" >&5
10662 sed 's/^/| /' conftest.$ac_ext >&5
10664 ac_cv_struct_tm=sys/time.h
10666 rm -f conftest.$ac_objext conftest.$ac_ext
10668 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10669 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10670 if test $ac_cv_struct_tm = sys/time.h; then
10672 cat >>confdefs.h <<\_ACEOF
10673 #define TM_IN_SYS_TIME 1
10678 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10679 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10680 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10683 cat >conftest.$ac_ext <<_ACEOF
10684 #line $LINENO "configure"
10687 cat confdefs.h >>conftest.$ac_ext
10688 cat >>conftest.$ac_ext <<_ACEOF
10689 /* end confdefs.h. */
10690 #include <sys/types.h>
10691 #include <$ac_cv_struct_tm>
10697 static struct tm ac_aggr;
10698 if (ac_aggr.tm_zone)
10704 rm -f conftest.$ac_objext
10705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10706 (eval $ac_compile) 2>&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } &&
10710 { ac_try='test -s conftest.$ac_objext'
10711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712 (eval $ac_try) 2>&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; }; then
10716 ac_cv_member_struct_tm_tm_zone=yes
10718 echo "$as_me: failed program was:" >&5
10719 sed 's/^/| /' conftest.$ac_ext >&5
10721 cat >conftest.$ac_ext <<_ACEOF
10722 #line $LINENO "configure"
10725 cat confdefs.h >>conftest.$ac_ext
10726 cat >>conftest.$ac_ext <<_ACEOF
10727 /* end confdefs.h. */
10728 #include <sys/types.h>
10729 #include <$ac_cv_struct_tm>
10735 static struct tm ac_aggr;
10736 if (sizeof ac_aggr.tm_zone)
10742 rm -f conftest.$ac_objext
10743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10744 (eval $ac_compile) 2>&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); } &&
10748 { ac_try='test -s conftest.$ac_objext'
10749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750 (eval $ac_try) 2>&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; }; then
10754 ac_cv_member_struct_tm_tm_zone=yes
10756 echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10759 ac_cv_member_struct_tm_tm_zone=no
10761 rm -f conftest.$ac_objext conftest.$ac_ext
10763 rm -f conftest.$ac_objext conftest.$ac_ext
10765 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10766 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10767 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10769 cat >>confdefs.h <<_ACEOF
10770 #define HAVE_STRUCT_TM_TM_ZONE 1
10776 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10778 cat >>confdefs.h <<\_ACEOF
10779 #define HAVE_TM_ZONE 1
10783 echo "$as_me:$LINENO: checking for tzname" >&5
10784 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10785 if test "${ac_cv_var_tzname+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10788 cat >conftest.$ac_ext <<_ACEOF
10789 #line $LINENO "configure"
10792 cat confdefs.h >>conftest.$ac_ext
10793 cat >>conftest.$ac_ext <<_ACEOF
10794 /* end confdefs.h. */
10796 #ifndef tzname /* For SGI. */
10797 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10808 rm -f conftest.$ac_objext conftest$ac_exeext
10809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10810 (eval $ac_link) 2>&5
10812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10813 (exit $ac_status); } &&
10814 { ac_try='test -s conftest$ac_exeext'
10815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10816 (eval $ac_try) 2>&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; }; then
10820 ac_cv_var_tzname=yes
10822 echo "$as_me: failed program was:" >&5
10823 sed 's/^/| /' conftest.$ac_ext >&5
10825 ac_cv_var_tzname=no
10827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10829 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10830 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10831 if test $ac_cv_var_tzname = yes; then
10833 cat >>confdefs.h <<\_ACEOF
10834 #define HAVE_TZNAME 1
10841 echo "$as_me:$LINENO: checking for utime.h" >&5
10842 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10843 if test "${ba_cv_header_utime_h+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10846 cat >conftest.$ac_ext <<_ACEOF
10847 #line $LINENO "configure"
10850 cat confdefs.h >>conftest.$ac_ext
10851 cat >>conftest.$ac_ext <<_ACEOF
10852 /* end confdefs.h. */
10854 #include <sys/types.h>
10864 rm -f conftest.$ac_objext
10865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10866 (eval $ac_compile) 2>&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } &&
10870 { ac_try='test -s conftest.$ac_objext'
10871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10872 (eval $ac_try) 2>&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); }; }; then
10876 ba_cv_header_utime_h=yes
10878 echo "$as_me: failed program was:" >&5
10879 sed 's/^/| /' conftest.$ac_ext >&5
10881 ba_cv_header_utime_h=no
10883 rm -f conftest.$ac_objext conftest.$ac_ext
10885 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10886 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10887 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10888 #define HAVE_UTIME_H 1
10892 echo "$as_me:$LINENO: checking for socklen_t" >&5
10893 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10894 if test "${ba_cv_header_socklen_t+set}" = set; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10897 cat >conftest.$ac_ext <<_ACEOF
10898 #line $LINENO "configure"
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h. */
10905 #include <sys/types.h>
10906 #include <sys/socket.h>
10915 rm -f conftest.$ac_objext
10916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10917 (eval $ac_compile) 2>&5
10919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920 (exit $ac_status); } &&
10921 { ac_try='test -s conftest.$ac_objext'
10922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923 (eval $ac_try) 2>&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; }; then
10927 ba_cv_header_socklen_t=yes
10929 echo "$as_me: failed program was:" >&5
10930 sed 's/^/| /' conftest.$ac_ext >&5
10932 ba_cv_header_socklen_t=no
10934 rm -f conftest.$ac_objext conftest.$ac_ext
10936 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10937 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10938 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10939 #define HAVE_SOCKLEN_T 1
10943 echo "$as_me:$LINENO: checking for bigendian" >&5
10944 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10945 if test "${ba_cv_bigendian+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10948 if test "$cross_compiling" = yes; then
10951 cat >conftest.$ac_ext <<_ACEOF
10952 #line $LINENO "configure"
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
10957 /* end confdefs.h. */
10958 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10960 rm -f conftest$ac_exeext
10961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10962 (eval $ac_link) 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10967 (eval $ac_try) 2>&5
10969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10970 (exit $ac_status); }; }; then
10971 ba_cv_bigendian=yes
10973 echo "$as_me: program exited with status $ac_status" >&5
10974 echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10977 ( exit $ac_status )
10980 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10983 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10984 echo "${ECHO_T}$ba_cv_bigendian" >&6
10985 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10986 #define HAVE_BIGENDIAN 1
10991 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10992 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10993 if test "${ac_cv_c_const+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10996 cat >conftest.$ac_ext <<_ACEOF
10997 #line $LINENO "configure"
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h. */
11007 /* FIXME: Include the comments suggested by Paul. */
11008 #ifndef __cplusplus
11009 /* Ultrix mips cc rejects this. */
11010 typedef int charset[2];
11012 /* SunOS 4.1.1 cc rejects this. */
11013 char const *const *ccp;
11015 /* NEC SVR4.0.2 mips cc rejects this. */
11016 struct point {int x, y;};
11017 static struct point const zero = {0,0};
11018 /* AIX XL C 1.02.0.0 rejects this.
11019 It does not let you subtract one const X* pointer from another in
11020 an arm of an if-expression whose if-part is not a constant
11022 const char *g = "string";
11023 ccp = &g + (g ? g-g : 0);
11024 /* HPUX 7.0 cc rejects these. */
11027 ccp = (char const *const *) p;
11028 { /* SCO 3.2v4 cc rejects this. */
11030 char const *s = 0 ? (char *) 0 : (char const *) 0;
11034 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11035 int x[] = {25, 17};
11036 const int *foo = &x[0];
11039 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11040 typedef const int *iptr;
11044 { /* AIX XL C 1.02.0.0 rejects this saying
11045 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11046 struct s { int j; const int *ap[3]; };
11047 struct s *b; b->j = 5;
11049 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11050 const int foo = 10;
11058 rm -f conftest.$ac_objext
11059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11060 (eval $ac_compile) 2>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); } &&
11064 { ac_try='test -s conftest.$ac_objext'
11065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11066 (eval $ac_try) 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; }; then
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11077 rm -f conftest.$ac_objext conftest.$ac_ext
11079 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11080 echo "${ECHO_T}$ac_cv_c_const" >&6
11081 if test $ac_cv_c_const = no; then
11083 cat >>confdefs.h <<\_ACEOF
11091 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11092 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11094 # The order of these tests is important.
11095 cat >conftest.$ac_ext <<_ACEOF
11096 #line $LINENO "configure"
11099 cat confdefs.h >>conftest.$ac_ext
11100 cat >>conftest.$ac_ext <<_ACEOF
11101 /* end confdefs.h. */
11102 #include <sys/statvfs.h>
11103 #include <sys/fstyp.h>
11105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11108 grep -v '^ *+' conftest.er1 >conftest.err
11110 cat conftest.err >&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } >/dev/null; then
11113 if test -s conftest.err; then
11114 ac_cpp_err=$ac_c_preproc_warn_flag
11121 if test -z "$ac_cpp_err"; then
11122 cat >>confdefs.h <<\_ACEOF
11123 #define FSTYPE_STATVFS 1
11127 echo "$as_me: failed program was:" >&5
11128 sed 's/^/| /' conftest.$ac_ext >&5
11132 rm -f conftest.err conftest.$ac_ext
11133 if test $fstype = no; then
11134 cat >conftest.$ac_ext <<_ACEOF
11135 #line $LINENO "configure"
11138 cat confdefs.h >>conftest.$ac_ext
11139 cat >>conftest.$ac_ext <<_ACEOF
11140 /* end confdefs.h. */
11141 #include <sys/statfs.h>
11142 #include <sys/fstyp.h>
11144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11147 grep -v '^ *+' conftest.er1 >conftest.err
11149 cat conftest.err >&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } >/dev/null; then
11152 if test -s conftest.err; then
11153 ac_cpp_err=$ac_c_preproc_warn_flag
11160 if test -z "$ac_cpp_err"; then
11161 cat >>confdefs.h <<\_ACEOF
11162 #define FSTYPE_USG_STATFS 1
11166 echo "$as_me: failed program was:" >&5
11167 sed 's/^/| /' conftest.$ac_ext >&5
11171 rm -f conftest.err conftest.$ac_ext
11173 if test $fstype = no; then
11174 cat >conftest.$ac_ext <<_ACEOF
11175 #line $LINENO "configure"
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h. */
11181 #include <sys/statfs.h>
11182 #include <sys/vmount.h>
11184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11187 grep -v '^ *+' conftest.er1 >conftest.err
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } >/dev/null; then
11192 if test -s conftest.err; then
11193 ac_cpp_err=$ac_c_preproc_warn_flag
11200 if test -z "$ac_cpp_err"; then
11201 cat >>confdefs.h <<\_ACEOF
11202 #define FSTYPE_AIX_STATFS 1
11206 echo "$as_me: failed program was:" >&5
11207 sed 's/^/| /' conftest.$ac_ext >&5
11211 rm -f conftest.err conftest.$ac_ext
11213 if test $fstype = no; then
11214 cat >conftest.$ac_ext <<_ACEOF
11215 #line $LINENO "configure"
11218 cat confdefs.h >>conftest.$ac_ext
11219 cat >>conftest.$ac_ext <<_ACEOF
11220 /* end confdefs.h. */
11221 #include <mntent.h>
11223 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11224 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11226 grep -v '^ *+' conftest.er1 >conftest.err
11228 cat conftest.err >&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } >/dev/null; then
11231 if test -s conftest.err; then
11232 ac_cpp_err=$ac_c_preproc_warn_flag
11239 if test -z "$ac_cpp_err"; then
11240 cat >>confdefs.h <<\_ACEOF
11241 #define FSTYPE_MNTENT 1
11245 echo "$as_me: failed program was:" >&5
11246 sed 's/^/| /' conftest.$ac_ext >&5
11250 rm -f conftest.err conftest.$ac_ext
11252 if test $fstype = no; then
11253 cat >conftest.$ac_ext <<_ACEOF
11254 #line $LINENO "configure"
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
11259 /* end confdefs.h. */
11260 #include <sys/mount.h>
11263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11264 $EGREP "f_type;" >/dev/null 2>&1; then
11265 cat >>confdefs.h <<\_ACEOF
11266 #define FSTYPE_STATFS 1
11273 if test $fstype = no; then
11274 cat >conftest.$ac_ext <<_ACEOF
11275 #line $LINENO "configure"
11278 cat confdefs.h >>conftest.$ac_ext
11279 cat >>conftest.$ac_ext <<_ACEOF
11280 /* end confdefs.h. */
11281 #include <sys/mount.h>
11282 #include <sys/fs_types.h>
11284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11287 grep -v '^ *+' conftest.er1 >conftest.err
11289 cat conftest.err >&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); } >/dev/null; then
11292 if test -s conftest.err; then
11293 ac_cpp_err=$ac_c_preproc_warn_flag
11300 if test -z "$ac_cpp_err"; then
11301 cat >>confdefs.h <<\_ACEOF
11302 #define FSTYPE_GETMNT 1
11306 echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.$ac_ext >&5
11311 rm -f conftest.err conftest.$ac_ext
11313 echo "$as_me:$LINENO: result: $fstype" >&5
11314 echo "${ECHO_T}$fstype" >&6
11316 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11317 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11318 if test "${ac_cv_type_signal+set}" = set; then
11319 echo $ECHO_N "(cached) $ECHO_C" >&6
11321 cat >conftest.$ac_ext <<_ACEOF
11322 #line $LINENO "configure"
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h. */
11328 #include <sys/types.h>
11329 #include <signal.h>
11334 extern "C" void (*signal (int, void (*)(int)))(int);
11336 void (*signal ()) ();
11347 rm -f conftest.$ac_objext
11348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11349 (eval $ac_compile) 2>&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } &&
11353 { ac_try='test -s conftest.$ac_objext'
11354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11355 (eval $ac_try) 2>&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); }; }; then
11359 ac_cv_type_signal=void
11361 echo "$as_me: failed program was:" >&5
11362 sed 's/^/| /' conftest.$ac_ext >&5
11364 ac_cv_type_signal=int
11366 rm -f conftest.$ac_objext conftest.$ac_ext
11368 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11369 echo "${ECHO_T}$ac_cv_type_signal" >&6
11371 cat >>confdefs.h <<_ACEOF
11372 #define RETSIGTYPE $ac_cv_type_signal
11377 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11378 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11379 if test "${bash_cv_signal_vintage+set}" = set; then
11380 echo $ECHO_N "(cached) $ECHO_C" >&6
11383 cat >conftest.$ac_ext <<_ACEOF
11384 #line $LINENO "configure"
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 #include <signal.h>
11396 struct sigaction sa;
11397 sigemptyset(&ss); sigsuspend(&ss);
11398 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11399 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11405 rm -f conftest.$ac_objext conftest$ac_exeext
11406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11407 (eval $ac_link) 2>&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); } &&
11411 { ac_try='test -s conftest$ac_exeext'
11412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11413 (eval $ac_try) 2>&5
11415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11416 (exit $ac_status); }; }; then
11417 bash_cv_signal_vintage=posix
11419 echo "$as_me: failed program was:" >&5
11420 sed 's/^/| /' conftest.$ac_ext >&5
11423 cat >conftest.$ac_ext <<_ACEOF
11424 #line $LINENO "configure"
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430 #include <signal.h>
11435 int mask = sigmask(SIGINT);
11436 sigsetmask(mask); sigblock(mask); sigpause(mask);
11442 rm -f conftest.$ac_objext conftest$ac_exeext
11443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11444 (eval $ac_link) 2>&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } &&
11448 { ac_try='test -s conftest$ac_exeext'
11449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450 (eval $ac_try) 2>&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; }; then
11454 bash_cv_signal_vintage=4.2bsd
11456 echo "$as_me: failed program was:" >&5
11457 sed 's/^/| /' conftest.$ac_ext >&5
11460 cat >conftest.$ac_ext <<_ACEOF
11461 #line $LINENO "configure"
11464 cat confdefs.h >>conftest.$ac_ext
11465 cat >>conftest.$ac_ext <<_ACEOF
11466 /* end confdefs.h. */
11468 #include <signal.h>
11469 RETSIGTYPE foo() { }
11474 int mask = sigmask(SIGINT);
11475 sigset(SIGINT, foo); sigrelse(SIGINT);
11476 sighold(SIGINT); sigpause(SIGINT);
11482 rm -f conftest.$ac_objext conftest$ac_exeext
11483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11484 (eval $ac_link) 2>&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); } &&
11488 { ac_try='test -s conftest$ac_exeext'
11489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11490 (eval $ac_try) 2>&5
11492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11493 (exit $ac_status); }; }; then
11494 bash_cv_signal_vintage=svr3
11496 echo "$as_me: failed program was:" >&5
11497 sed 's/^/| /' conftest.$ac_ext >&5
11499 bash_cv_signal_vintage=v7
11502 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11508 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11512 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11513 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11514 if test "$bash_cv_signal_vintage" = posix; then
11515 cat >>confdefs.h <<\_ACEOF
11516 #define HAVE_POSIX_SIGNALS 1
11519 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11520 cat >>confdefs.h <<\_ACEOF
11521 #define HAVE_BSD_SIGNALS 1
11524 elif test "$bash_cv_signal_vintage" = svr3; then
11525 cat >>confdefs.h <<\_ACEOF
11526 #define HAVE_USG_SIGHOLD 1
11531 echo "$as_me:$LINENO: checking for mode_t" >&5
11532 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11533 if test "${ac_cv_type_mode_t+set}" = set; then
11534 echo $ECHO_N "(cached) $ECHO_C" >&6
11536 cat >conftest.$ac_ext <<_ACEOF
11537 #line $LINENO "configure"
11540 cat confdefs.h >>conftest.$ac_ext
11541 cat >>conftest.$ac_ext <<_ACEOF
11542 /* end confdefs.h. */
11543 $ac_includes_default
11549 if (sizeof (mode_t))
11555 rm -f conftest.$ac_objext
11556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11557 (eval $ac_compile) 2>&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); } &&
11561 { ac_try='test -s conftest.$ac_objext'
11562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11563 (eval $ac_try) 2>&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); }; }; then
11567 ac_cv_type_mode_t=yes
11569 echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572 ac_cv_type_mode_t=no
11574 rm -f conftest.$ac_objext conftest.$ac_ext
11576 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11577 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11578 if test $ac_cv_type_mode_t = yes; then
11582 cat >>confdefs.h <<_ACEOF
11588 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11589 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11590 if test "${ac_cv_type_uid_t+set}" = set; then
11591 echo $ECHO_N "(cached) $ECHO_C" >&6
11593 cat >conftest.$ac_ext <<_ACEOF
11594 #line $LINENO "configure"
11597 cat confdefs.h >>conftest.$ac_ext
11598 cat >>conftest.$ac_ext <<_ACEOF
11599 /* end confdefs.h. */
11600 #include <sys/types.h>
11603 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11604 $EGREP "uid_t" >/dev/null 2>&1; then
11605 ac_cv_type_uid_t=yes
11607 ac_cv_type_uid_t=no
11612 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11613 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11614 if test $ac_cv_type_uid_t = no; then
11616 cat >>confdefs.h <<\_ACEOF
11621 cat >>confdefs.h <<\_ACEOF
11627 echo "$as_me:$LINENO: checking for size_t" >&5
11628 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11629 if test "${ac_cv_type_size_t+set}" = set; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 cat >conftest.$ac_ext <<_ACEOF
11633 #line $LINENO "configure"
11636 cat confdefs.h >>conftest.$ac_ext
11637 cat >>conftest.$ac_ext <<_ACEOF
11638 /* end confdefs.h. */
11639 $ac_includes_default
11645 if (sizeof (size_t))
11651 rm -f conftest.$ac_objext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11653 (eval $ac_compile) 2>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
11657 { ac_try='test -s conftest.$ac_objext'
11658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11659 (eval $ac_try) 2>&5
11661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11662 (exit $ac_status); }; }; then
11663 ac_cv_type_size_t=yes
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11668 ac_cv_type_size_t=no
11670 rm -f conftest.$ac_objext conftest.$ac_ext
11672 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11673 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11674 if test $ac_cv_type_size_t = yes; then
11678 cat >>confdefs.h <<_ACEOF
11679 #define size_t unsigned
11684 echo "$as_me:$LINENO: checking for pid_t" >&5
11685 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11686 if test "${ac_cv_type_pid_t+set}" = set; then
11687 echo $ECHO_N "(cached) $ECHO_C" >&6
11689 cat >conftest.$ac_ext <<_ACEOF
11690 #line $LINENO "configure"
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h. */
11696 $ac_includes_default
11702 if (sizeof (pid_t))
11708 rm -f conftest.$ac_objext
11709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11710 (eval $ac_compile) 2>&5
11712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11713 (exit $ac_status); } &&
11714 { ac_try='test -s conftest.$ac_objext'
11715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11716 (eval $ac_try) 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 ac_cv_type_pid_t=yes
11722 echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11725 ac_cv_type_pid_t=no
11727 rm -f conftest.$ac_objext conftest.$ac_ext
11729 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11730 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11731 if test $ac_cv_type_pid_t = yes; then
11735 cat >>confdefs.h <<_ACEOF
11741 echo "$as_me:$LINENO: checking for off_t" >&5
11742 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11743 if test "${ac_cv_type_off_t+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11746 cat >conftest.$ac_ext <<_ACEOF
11747 #line $LINENO "configure"
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h. */
11753 $ac_includes_default
11759 if (sizeof (off_t))
11765 rm -f conftest.$ac_objext
11766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11767 (eval $ac_compile) 2>&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); } &&
11771 { ac_try='test -s conftest.$ac_objext'
11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773 (eval $ac_try) 2>&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; }; then
11777 ac_cv_type_off_t=yes
11779 echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.$ac_ext >&5
11782 ac_cv_type_off_t=no
11784 rm -f conftest.$ac_objext conftest.$ac_ext
11786 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11787 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11788 if test $ac_cv_type_off_t = yes; then
11792 cat >>confdefs.h <<_ACEOF
11798 echo "$as_me:$LINENO: checking for ino_t" >&5
11799 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11800 if test "${ac_cv_type_ino_t+set}" = set; then
11801 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 cat >conftest.$ac_ext <<_ACEOF
11804 #line $LINENO "configure"
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11810 $ac_includes_default
11816 if (sizeof (ino_t))
11822 rm -f conftest.$ac_objext
11823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11824 (eval $ac_compile) 2>&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } &&
11828 { ac_try='test -s conftest.$ac_objext'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; }; then
11834 ac_cv_type_ino_t=yes
11836 echo "$as_me: failed program was:" >&5
11837 sed 's/^/| /' conftest.$ac_ext >&5
11839 ac_cv_type_ino_t=no
11841 rm -f conftest.$ac_objext conftest.$ac_ext
11843 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11844 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11845 if test $ac_cv_type_ino_t = yes; then
11849 cat >>confdefs.h <<_ACEOF
11850 #define ino_t unsigned long
11855 echo "$as_me:$LINENO: checking for dev_t" >&5
11856 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11857 if test "${ac_cv_type_dev_t+set}" = set; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11860 cat >conftest.$ac_ext <<_ACEOF
11861 #line $LINENO "configure"
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11867 $ac_includes_default
11873 if (sizeof (dev_t))
11879 rm -f conftest.$ac_objext
11880 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11881 (eval $ac_compile) 2>&5
11883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } &&
11885 { ac_try='test -s conftest.$ac_objext'
11886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11887 (eval $ac_try) 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; }; then
11891 ac_cv_type_dev_t=yes
11893 echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.$ac_ext >&5
11896 ac_cv_type_dev_t=no
11898 rm -f conftest.$ac_objext conftest.$ac_ext
11900 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11901 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11902 if test $ac_cv_type_dev_t = yes; then
11906 cat >>confdefs.h <<_ACEOF
11907 #define dev_t unsigned long
11912 echo "$as_me:$LINENO: checking for daddr_t" >&5
11913 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11914 if test "${ac_cv_type_daddr_t+set}" = set; then
11915 echo $ECHO_N "(cached) $ECHO_C" >&6
11917 cat >conftest.$ac_ext <<_ACEOF
11918 #line $LINENO "configure"
11921 cat confdefs.h >>conftest.$ac_ext
11922 cat >>conftest.$ac_ext <<_ACEOF
11923 /* end confdefs.h. */
11924 $ac_includes_default
11930 if (sizeof (daddr_t))
11936 rm -f conftest.$ac_objext
11937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11938 (eval $ac_compile) 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } &&
11942 { ac_try='test -s conftest.$ac_objext'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; }; then
11948 ac_cv_type_daddr_t=yes
11950 echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11953 ac_cv_type_daddr_t=no
11955 rm -f conftest.$ac_objext conftest.$ac_ext
11957 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11958 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11959 if test $ac_cv_type_daddr_t = yes; then
11963 cat >>confdefs.h <<_ACEOF
11964 #define daddr_t long
11969 echo "$as_me:$LINENO: checking for major_t" >&5
11970 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11971 if test "${ac_cv_type_major_t+set}" = set; then
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
11974 cat >conftest.$ac_ext <<_ACEOF
11975 #line $LINENO "configure"
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11981 $ac_includes_default
11987 if (sizeof (major_t))
11993 rm -f conftest.$ac_objext
11994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11995 (eval $ac_compile) 2>&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } &&
11999 { ac_try='test -s conftest.$ac_objext'
12000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12001 (eval $ac_try) 2>&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); }; }; then
12005 ac_cv_type_major_t=yes
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12010 ac_cv_type_major_t=no
12012 rm -f conftest.$ac_objext conftest.$ac_ext
12014 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
12015 echo "${ECHO_T}$ac_cv_type_major_t" >&6
12016 if test $ac_cv_type_major_t = yes; then
12020 cat >>confdefs.h <<_ACEOF
12021 #define major_t int
12026 echo "$as_me:$LINENO: checking for minor_t" >&5
12027 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
12028 if test "${ac_cv_type_minor_t+set}" = set; then
12029 echo $ECHO_N "(cached) $ECHO_C" >&6
12031 cat >conftest.$ac_ext <<_ACEOF
12032 #line $LINENO "configure"
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h. */
12038 $ac_includes_default
12044 if (sizeof (minor_t))
12050 rm -f conftest.$ac_objext
12051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12052 (eval $ac_compile) 2>&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } &&
12056 { ac_try='test -s conftest.$ac_objext'
12057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058 (eval $ac_try) 2>&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; }; then
12062 ac_cv_type_minor_t=yes
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 ac_cv_type_minor_t=no
12069 rm -f conftest.$ac_objext conftest.$ac_ext
12071 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12072 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12073 if test $ac_cv_type_minor_t = yes; then
12077 cat >>confdefs.h <<_ACEOF
12078 #define minor_t int
12083 echo "$as_me:$LINENO: checking for ssize_t" >&5
12084 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12085 if test "${ac_cv_type_ssize_t+set}" = set; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12088 cat >conftest.$ac_ext <<_ACEOF
12089 #line $LINENO "configure"
12092 cat confdefs.h >>conftest.$ac_ext
12093 cat >>conftest.$ac_ext <<_ACEOF
12094 /* end confdefs.h. */
12095 $ac_includes_default
12101 if (sizeof (ssize_t))
12107 rm -f conftest.$ac_objext
12108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12109 (eval $ac_compile) 2>&5
12111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12112 (exit $ac_status); } &&
12113 { ac_try='test -s conftest.$ac_objext'
12114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12115 (eval $ac_try) 2>&5
12117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118 (exit $ac_status); }; }; then
12119 ac_cv_type_ssize_t=yes
12121 echo "$as_me: failed program was:" >&5
12122 sed 's/^/| /' conftest.$ac_ext >&5
12124 ac_cv_type_ssize_t=no
12126 rm -f conftest.$ac_objext conftest.$ac_ext
12128 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12129 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12130 if test $ac_cv_type_ssize_t = yes; then
12134 cat >>confdefs.h <<_ACEOF
12135 #define ssize_t int
12140 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12141 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12142 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12143 echo $ECHO_N "(cached) $ECHO_C" >&6
12145 cat >conftest.$ac_ext <<_ACEOF
12146 #line $LINENO "configure"
12149 cat confdefs.h >>conftest.$ac_ext
12150 cat >>conftest.$ac_ext <<_ACEOF
12151 /* end confdefs.h. */
12152 $ac_includes_default
12156 static struct stat ac_aggr;
12157 if (ac_aggr.st_blocks)
12163 rm -f conftest.$ac_objext
12164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12165 (eval $ac_compile) 2>&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } &&
12169 { ac_try='test -s conftest.$ac_objext'
12170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12171 (eval $ac_try) 2>&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; }; then
12175 ac_cv_member_struct_stat_st_blocks=yes
12177 echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12180 cat >conftest.$ac_ext <<_ACEOF
12181 #line $LINENO "configure"
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12187 $ac_includes_default
12191 static struct stat ac_aggr;
12192 if (sizeof ac_aggr.st_blocks)
12198 rm -f conftest.$ac_objext
12199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12200 (eval $ac_compile) 2>&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } &&
12204 { ac_try='test -s conftest.$ac_objext'
12205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12206 (eval $ac_try) 2>&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); }; }; then
12210 ac_cv_member_struct_stat_st_blocks=yes
12212 echo "$as_me: failed program was:" >&5
12213 sed 's/^/| /' conftest.$ac_ext >&5
12215 ac_cv_member_struct_stat_st_blocks=no
12217 rm -f conftest.$ac_objext conftest.$ac_ext
12219 rm -f conftest.$ac_objext conftest.$ac_ext
12221 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12222 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12223 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12225 cat >>confdefs.h <<_ACEOF
12226 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12230 cat >>confdefs.h <<\_ACEOF
12231 #define HAVE_ST_BLOCKS 1
12235 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12240 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12241 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12242 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12245 cat >conftest.$ac_ext <<_ACEOF
12246 #line $LINENO "configure"
12249 cat confdefs.h >>conftest.$ac_ext
12250 cat >>conftest.$ac_ext <<_ACEOF
12251 /* end confdefs.h. */
12252 $ac_includes_default
12256 static struct stat ac_aggr;
12257 if (ac_aggr.st_rdev)
12263 rm -f conftest.$ac_objext
12264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12265 (eval $ac_compile) 2>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); } &&
12269 { ac_try='test -s conftest.$ac_objext'
12270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271 (eval $ac_try) 2>&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; }; then
12275 ac_cv_member_struct_stat_st_rdev=yes
12277 echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12280 cat >conftest.$ac_ext <<_ACEOF
12281 #line $LINENO "configure"
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h. */
12287 $ac_includes_default
12291 static struct stat ac_aggr;
12292 if (sizeof ac_aggr.st_rdev)
12298 rm -f conftest.$ac_objext
12299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12300 (eval $ac_compile) 2>&5
12302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12303 (exit $ac_status); } &&
12304 { ac_try='test -s conftest.$ac_objext'
12305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12306 (eval $ac_try) 2>&5
12308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12309 (exit $ac_status); }; }; then
12310 ac_cv_member_struct_stat_st_rdev=yes
12312 echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.$ac_ext >&5
12315 ac_cv_member_struct_stat_st_rdev=no
12317 rm -f conftest.$ac_objext conftest.$ac_ext
12319 rm -f conftest.$ac_objext conftest.$ac_ext
12321 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12322 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12323 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12325 cat >>confdefs.h <<_ACEOF
12326 #define HAVE_STRUCT_STAT_ST_RDEV 1
12330 cat >>confdefs.h <<\_ACEOF
12331 #define HAVE_ST_RDEV 1
12337 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12338 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12339 if test "${ac_cv_struct_tm+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12342 cat >conftest.$ac_ext <<_ACEOF
12343 #line $LINENO "configure"
12346 cat confdefs.h >>conftest.$ac_ext
12347 cat >>conftest.$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12349 #include <sys/types.h>
12355 struct tm *tp; tp->tm_sec;
12360 rm -f conftest.$ac_objext
12361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12362 (eval $ac_compile) 2>&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
12366 { ac_try='test -s conftest.$ac_objext'
12367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368 (eval $ac_try) 2>&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; }; then
12372 ac_cv_struct_tm=time.h
12374 echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.$ac_ext >&5
12377 ac_cv_struct_tm=sys/time.h
12379 rm -f conftest.$ac_objext conftest.$ac_ext
12381 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12382 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12383 if test $ac_cv_struct_tm = sys/time.h; then
12385 cat >>confdefs.h <<\_ACEOF
12386 #define TM_IN_SYS_TIME 1
12391 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12392 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12393 if test "${ac_cv_c_const+set}" = set; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12396 cat >conftest.$ac_ext <<_ACEOF
12397 #line $LINENO "configure"
12400 cat confdefs.h >>conftest.$ac_ext
12401 cat >>conftest.$ac_ext <<_ACEOF
12402 /* end confdefs.h. */
12407 /* FIXME: Include the comments suggested by Paul. */
12408 #ifndef __cplusplus
12409 /* Ultrix mips cc rejects this. */
12410 typedef int charset[2];
12412 /* SunOS 4.1.1 cc rejects this. */
12413 char const *const *ccp;
12415 /* NEC SVR4.0.2 mips cc rejects this. */
12416 struct point {int x, y;};
12417 static struct point const zero = {0,0};
12418 /* AIX XL C 1.02.0.0 rejects this.
12419 It does not let you subtract one const X* pointer from another in
12420 an arm of an if-expression whose if-part is not a constant
12422 const char *g = "string";
12423 ccp = &g + (g ? g-g : 0);
12424 /* HPUX 7.0 cc rejects these. */
12427 ccp = (char const *const *) p;
12428 { /* SCO 3.2v4 cc rejects this. */
12430 char const *s = 0 ? (char *) 0 : (char const *) 0;
12434 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12435 int x[] = {25, 17};
12436 const int *foo = &x[0];
12439 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12440 typedef const int *iptr;
12444 { /* AIX XL C 1.02.0.0 rejects this saying
12445 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12446 struct s { int j; const int *ap[3]; };
12447 struct s *b; b->j = 5;
12449 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12450 const int foo = 10;
12458 rm -f conftest.$ac_objext
12459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12460 (eval $ac_compile) 2>&5
12462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12463 (exit $ac_status); } &&
12464 { ac_try='test -s conftest.$ac_objext'
12465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12466 (eval $ac_try) 2>&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 (exit $ac_status); }; }; then
12472 echo "$as_me: failed program was:" >&5
12473 sed 's/^/| /' conftest.$ac_ext >&5
12477 rm -f conftest.$ac_objext conftest.$ac_ext
12479 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12480 echo "${ECHO_T}$ac_cv_c_const" >&6
12481 if test $ac_cv_c_const = no; then
12483 cat >>confdefs.h <<\_ACEOF
12491 echo "$as_me:$LINENO: checking for char" >&5
12492 echo $ECHO_N "checking for char... $ECHO_C" >&6
12493 if test "${ac_cv_type_char+set}" = set; then
12494 echo $ECHO_N "(cached) $ECHO_C" >&6
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
12515 rm -f conftest.$ac_objext
12516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12517 (eval $ac_compile) 2>&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } &&
12521 { ac_try='test -s conftest.$ac_objext'
12522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12523 (eval $ac_try) 2>&5
12525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12526 (exit $ac_status); }; }; then
12527 ac_cv_type_char=yes
12529 echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12534 rm -f conftest.$ac_objext conftest.$ac_ext
12536 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12537 echo "${ECHO_T}$ac_cv_type_char" >&6
12539 echo "$as_me:$LINENO: checking size of char" >&5
12540 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12541 if test "${ac_cv_sizeof_char+set}" = set; then
12542 echo $ECHO_N "(cached) $ECHO_C" >&6
12544 if test "$ac_cv_type_char" = yes; then
12545 # The cast to unsigned long works around a bug in the HP C Compiler
12546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12548 # This bug is HP SR number 8606223364.
12549 if test "$cross_compiling" = yes; then
12550 # Depending upon the size, compute the lo and hi bounds.
12551 cat >conftest.$ac_ext <<_ACEOF
12552 #line $LINENO "configure"
12555 cat confdefs.h >>conftest.$ac_ext
12556 cat >>conftest.$ac_ext <<_ACEOF
12557 /* end confdefs.h. */
12558 $ac_includes_default
12562 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12569 rm -f conftest.$ac_objext
12570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12571 (eval $ac_compile) 2>&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); } &&
12575 { ac_try='test -s conftest.$ac_objext'
12576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12577 (eval $ac_try) 2>&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); }; }; then
12583 cat >conftest.$ac_ext <<_ACEOF
12584 #line $LINENO "configure"
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h. */
12590 $ac_includes_default
12594 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12601 rm -f conftest.$ac_objext
12602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12603 (eval $ac_compile) 2>&5
12605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12606 (exit $ac_status); } &&
12607 { ac_try='test -s conftest.$ac_objext'
12608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12609 (eval $ac_try) 2>&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); }; }; then
12613 ac_hi=$ac_mid; break
12615 echo "$as_me: failed program was:" >&5
12616 sed 's/^/| /' conftest.$ac_ext >&5
12618 ac_lo=`expr $ac_mid + 1`
12619 if test $ac_lo -le $ac_mid; then
12623 ac_mid=`expr 2 '*' $ac_mid + 1`
12625 rm -f conftest.$ac_objext conftest.$ac_ext
12628 echo "$as_me: failed program was:" >&5
12629 sed 's/^/| /' conftest.$ac_ext >&5
12631 cat >conftest.$ac_ext <<_ACEOF
12632 #line $LINENO "configure"
12635 cat confdefs.h >>conftest.$ac_ext
12636 cat >>conftest.$ac_ext <<_ACEOF
12637 /* end confdefs.h. */
12638 $ac_includes_default
12642 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12649 rm -f conftest.$ac_objext
12650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12651 (eval $ac_compile) 2>&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); } &&
12655 { ac_try='test -s conftest.$ac_objext'
12656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12657 (eval $ac_try) 2>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; }; then
12663 cat >conftest.$ac_ext <<_ACEOF
12664 #line $LINENO "configure"
12667 cat confdefs.h >>conftest.$ac_ext
12668 cat >>conftest.$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12670 $ac_includes_default
12674 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12681 rm -f conftest.$ac_objext
12682 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12683 (eval $ac_compile) 2>&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } &&
12687 { ac_try='test -s conftest.$ac_objext'
12688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12689 (eval $ac_try) 2>&5
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); }; }; then
12693 ac_lo=$ac_mid; break
12695 echo "$as_me: failed program was:" >&5
12696 sed 's/^/| /' conftest.$ac_ext >&5
12698 ac_hi=`expr '(' $ac_mid ')' - 1`
12699 if test $ac_mid -le $ac_hi; then
12703 ac_mid=`expr 2 '*' $ac_mid`
12705 rm -f conftest.$ac_objext conftest.$ac_ext
12708 echo "$as_me: failed program was:" >&5
12709 sed 's/^/| /' conftest.$ac_ext >&5
12713 rm -f conftest.$ac_objext conftest.$ac_ext
12715 rm -f conftest.$ac_objext conftest.$ac_ext
12716 # Binary search between lo and hi bounds.
12717 while test "x$ac_lo" != "x$ac_hi"; do
12718 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
12730 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12737 rm -f conftest.$ac_objext
12738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12739 (eval $ac_compile) 2>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); } &&
12743 { ac_try='test -s conftest.$ac_objext'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; }; then
12751 echo "$as_me: failed program was:" >&5
12752 sed 's/^/| /' conftest.$ac_ext >&5
12754 ac_lo=`expr '(' $ac_mid ')' + 1`
12756 rm -f conftest.$ac_objext conftest.$ac_ext
12759 ?*) ac_cv_sizeof_char=$ac_lo;;
12760 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12761 See \`config.log' for more details." >&5
12762 echo "$as_me: error: cannot compute sizeof (char), 77
12763 See \`config.log' for more details." >&2;}
12764 { (exit 1); exit 1; }; } ;;
12767 if test "$cross_compiling" = yes; then
12768 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12769 See \`config.log' for more details." >&5
12770 echo "$as_me: error: cannot run test program while cross compiling
12771 See \`config.log' for more details." >&2;}
12772 { (exit 1); exit 1; }; }
12774 cat >conftest.$ac_ext <<_ACEOF
12775 #line $LINENO "configure"
12778 cat confdefs.h >>conftest.$ac_ext
12779 cat >>conftest.$ac_ext <<_ACEOF
12780 /* end confdefs.h. */
12781 $ac_includes_default
12782 long longval () { return (long) (sizeof (char)); }
12783 unsigned long ulongval () { return (long) (sizeof (char)); }
12785 #include <stdlib.h>
12790 FILE *f = fopen ("conftest.val", "w");
12793 if (((long) (sizeof (char))) < 0)
12795 long i = longval ();
12796 if (i != ((long) (sizeof (char))))
12798 fprintf (f, "%ld\n", i);
12802 unsigned long i = ulongval ();
12803 if (i != ((long) (sizeof (char))))
12805 fprintf (f, "%lu\n", i);
12807 exit (ferror (f) || fclose (f) != 0);
12813 rm -f conftest$ac_exeext
12814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12815 (eval $ac_link) 2>&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12820 (eval $ac_try) 2>&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 (exit $ac_status); }; }; then
12824 ac_cv_sizeof_char=`cat conftest.val`
12826 echo "$as_me: program exited with status $ac_status" >&5
12827 echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12830 ( exit $ac_status )
12831 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12832 See \`config.log' for more details." >&5
12833 echo "$as_me: error: cannot compute sizeof (char), 77
12834 See \`config.log' for more details." >&2;}
12835 { (exit 1); exit 1; }; }
12837 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12842 ac_cv_sizeof_char=0
12845 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12846 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12847 cat >>confdefs.h <<_ACEOF
12848 #define SIZEOF_CHAR $ac_cv_sizeof_char
12852 echo "$as_me:$LINENO: checking for short int" >&5
12853 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12854 if test "${ac_cv_type_short_int+set}" = set; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
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 if ((short int *) 0)
12870 if (sizeof (short int))
12876 rm -f conftest.$ac_objext
12877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12878 (eval $ac_compile) 2>&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } &&
12882 { ac_try='test -s conftest.$ac_objext'
12883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12884 (eval $ac_try) 2>&5
12886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12887 (exit $ac_status); }; }; then
12888 ac_cv_type_short_int=yes
12890 echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.$ac_ext >&5
12893 ac_cv_type_short_int=no
12895 rm -f conftest.$ac_objext conftest.$ac_ext
12897 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12898 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12900 echo "$as_me:$LINENO: checking size of short int" >&5
12901 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12902 if test "${ac_cv_sizeof_short_int+set}" = set; then
12903 echo $ECHO_N "(cached) $ECHO_C" >&6
12905 if test "$ac_cv_type_short_int" = yes; then
12906 # The cast to unsigned long works around a bug in the HP C Compiler
12907 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12908 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12909 # This bug is HP SR number 8606223364.
12910 if test "$cross_compiling" = yes; then
12911 # Depending upon the size, compute the lo and hi bounds.
12912 cat >conftest.$ac_ext <<_ACEOF
12913 #line $LINENO "configure"
12916 cat confdefs.h >>conftest.$ac_ext
12917 cat >>conftest.$ac_ext <<_ACEOF
12918 /* end confdefs.h. */
12919 $ac_includes_default
12923 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12930 rm -f conftest.$ac_objext
12931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12932 (eval $ac_compile) 2>&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); } &&
12936 { ac_try='test -s conftest.$ac_objext'
12937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12938 (eval $ac_try) 2>&5
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); }; }; then
12944 cat >conftest.$ac_ext <<_ACEOF
12945 #line $LINENO "configure"
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h. */
12951 $ac_includes_default
12955 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12962 rm -f conftest.$ac_objext
12963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12964 (eval $ac_compile) 2>&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } &&
12968 { ac_try='test -s conftest.$ac_objext'
12969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970 (eval $ac_try) 2>&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; }; then
12974 ac_hi=$ac_mid; break
12976 echo "$as_me: failed program was:" >&5
12977 sed 's/^/| /' conftest.$ac_ext >&5
12979 ac_lo=`expr $ac_mid + 1`
12980 if test $ac_lo -le $ac_mid; then
12984 ac_mid=`expr 2 '*' $ac_mid + 1`
12986 rm -f conftest.$ac_objext conftest.$ac_ext
12989 echo "$as_me: failed program was:" >&5
12990 sed 's/^/| /' conftest.$ac_ext >&5
12992 cat >conftest.$ac_ext <<_ACEOF
12993 #line $LINENO "configure"
12996 cat confdefs.h >>conftest.$ac_ext
12997 cat >>conftest.$ac_ext <<_ACEOF
12998 /* end confdefs.h. */
12999 $ac_includes_default
13003 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
13010 rm -f conftest.$ac_objext
13011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13012 (eval $ac_compile) 2>&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); } &&
13016 { ac_try='test -s conftest.$ac_objext'
13017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13018 (eval $ac_try) 2>&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); }; }; then
13024 cat >conftest.$ac_ext <<_ACEOF
13025 #line $LINENO "configure"
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h. */
13031 $ac_includes_default
13035 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
13042 rm -f conftest.$ac_objext
13043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13044 (eval $ac_compile) 2>&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); } &&
13048 { ac_try='test -s conftest.$ac_objext'
13049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13050 (eval $ac_try) 2>&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); }; }; then
13054 ac_lo=$ac_mid; break
13056 echo "$as_me: failed program was:" >&5
13057 sed 's/^/| /' conftest.$ac_ext >&5
13059 ac_hi=`expr '(' $ac_mid ')' - 1`
13060 if test $ac_mid -le $ac_hi; then
13064 ac_mid=`expr 2 '*' $ac_mid`
13066 rm -f conftest.$ac_objext conftest.$ac_ext
13069 echo "$as_me: failed program was:" >&5
13070 sed 's/^/| /' conftest.$ac_ext >&5
13074 rm -f conftest.$ac_objext conftest.$ac_ext
13076 rm -f conftest.$ac_objext conftest.$ac_ext
13077 # Binary search between lo and hi bounds.
13078 while test "x$ac_lo" != "x$ac_hi"; do
13079 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
13091 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13098 rm -f conftest.$ac_objext
13099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13100 (eval $ac_compile) 2>&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } &&
13104 { ac_try='test -s conftest.$ac_objext'
13105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13106 (eval $ac_try) 2>&5
13108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13109 (exit $ac_status); }; }; then
13112 echo "$as_me: failed program was:" >&5
13113 sed 's/^/| /' conftest.$ac_ext >&5
13115 ac_lo=`expr '(' $ac_mid ')' + 1`
13117 rm -f conftest.$ac_objext conftest.$ac_ext
13120 ?*) ac_cv_sizeof_short_int=$ac_lo;;
13121 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13122 See \`config.log' for more details." >&5
13123 echo "$as_me: error: cannot compute sizeof (short int), 77
13124 See \`config.log' for more details." >&2;}
13125 { (exit 1); exit 1; }; } ;;
13128 if test "$cross_compiling" = yes; then
13129 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13130 See \`config.log' for more details." >&5
13131 echo "$as_me: error: cannot run test program while cross compiling
13132 See \`config.log' for more details." >&2;}
13133 { (exit 1); exit 1; }; }
13135 cat >conftest.$ac_ext <<_ACEOF
13136 #line $LINENO "configure"
13139 cat confdefs.h >>conftest.$ac_ext
13140 cat >>conftest.$ac_ext <<_ACEOF
13141 /* end confdefs.h. */
13142 $ac_includes_default
13143 long longval () { return (long) (sizeof (short int)); }
13144 unsigned long ulongval () { return (long) (sizeof (short int)); }
13146 #include <stdlib.h>
13151 FILE *f = fopen ("conftest.val", "w");
13154 if (((long) (sizeof (short int))) < 0)
13156 long i = longval ();
13157 if (i != ((long) (sizeof (short int))))
13159 fprintf (f, "%ld\n", i);
13163 unsigned long i = ulongval ();
13164 if (i != ((long) (sizeof (short int))))
13166 fprintf (f, "%lu\n", i);
13168 exit (ferror (f) || fclose (f) != 0);
13174 rm -f conftest$ac_exeext
13175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13176 (eval $ac_link) 2>&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13181 (eval $ac_try) 2>&5
13183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); }; }; then
13185 ac_cv_sizeof_short_int=`cat conftest.val`
13187 echo "$as_me: program exited with status $ac_status" >&5
13188 echo "$as_me: failed program was:" >&5
13189 sed 's/^/| /' conftest.$ac_ext >&5
13191 ( exit $ac_status )
13192 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13193 See \`config.log' for more details." >&5
13194 echo "$as_me: error: cannot compute sizeof (short int), 77
13195 See \`config.log' for more details." >&2;}
13196 { (exit 1); exit 1; }; }
13198 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13203 ac_cv_sizeof_short_int=0
13206 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13207 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13208 cat >>confdefs.h <<_ACEOF
13209 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13213 echo "$as_me:$LINENO: checking for int" >&5
13214 echo $ECHO_N "checking for int... $ECHO_C" >&6
13215 if test "${ac_cv_type_int+set}" = set; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
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
13237 rm -f conftest.$ac_objext
13238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13239 (eval $ac_compile) 2>&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } &&
13243 { ac_try='test -s conftest.$ac_objext'
13244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13245 (eval $ac_try) 2>&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); }; }; then
13251 echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13256 rm -f conftest.$ac_objext conftest.$ac_ext
13258 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13259 echo "${ECHO_T}$ac_cv_type_int" >&6
13261 echo "$as_me:$LINENO: checking size of int" >&5
13262 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13263 if test "${ac_cv_sizeof_int+set}" = set; then
13264 echo $ECHO_N "(cached) $ECHO_C" >&6
13266 if test "$ac_cv_type_int" = yes; then
13267 # The cast to unsigned long works around a bug in the HP C Compiler
13268 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13269 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13270 # This bug is HP SR number 8606223364.
13271 if test "$cross_compiling" = yes; then
13272 # Depending upon the size, compute the lo and hi bounds.
13273 cat >conftest.$ac_ext <<_ACEOF
13274 #line $LINENO "configure"
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h. */
13280 $ac_includes_default
13284 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13291 rm -f conftest.$ac_objext
13292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13293 (eval $ac_compile) 2>&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } &&
13297 { ac_try='test -s conftest.$ac_objext'
13298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13299 (eval $ac_try) 2>&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); }; }; then
13305 cat >conftest.$ac_ext <<_ACEOF
13306 #line $LINENO "configure"
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h. */
13312 $ac_includes_default
13316 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13323 rm -f conftest.$ac_objext
13324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13325 (eval $ac_compile) 2>&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } &&
13329 { ac_try='test -s conftest.$ac_objext'
13330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13331 (eval $ac_try) 2>&5
13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13334 (exit $ac_status); }; }; then
13335 ac_hi=$ac_mid; break
13337 echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13340 ac_lo=`expr $ac_mid + 1`
13341 if test $ac_lo -le $ac_mid; then
13345 ac_mid=`expr 2 '*' $ac_mid + 1`
13347 rm -f conftest.$ac_objext conftest.$ac_ext
13350 echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13353 cat >conftest.$ac_ext <<_ACEOF
13354 #line $LINENO "configure"
13357 cat confdefs.h >>conftest.$ac_ext
13358 cat >>conftest.$ac_ext <<_ACEOF
13359 /* end confdefs.h. */
13360 $ac_includes_default
13364 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13371 rm -f conftest.$ac_objext
13372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13373 (eval $ac_compile) 2>&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } &&
13377 { ac_try='test -s conftest.$ac_objext'
13378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379 (eval $ac_try) 2>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; }; then
13385 cat >conftest.$ac_ext <<_ACEOF
13386 #line $LINENO "configure"
13389 cat confdefs.h >>conftest.$ac_ext
13390 cat >>conftest.$ac_ext <<_ACEOF
13391 /* end confdefs.h. */
13392 $ac_includes_default
13396 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13403 rm -f conftest.$ac_objext
13404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13405 (eval $ac_compile) 2>&5
13407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13408 (exit $ac_status); } &&
13409 { ac_try='test -s conftest.$ac_objext'
13410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13411 (eval $ac_try) 2>&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); }; }; then
13415 ac_lo=$ac_mid; break
13417 echo "$as_me: failed program was:" >&5
13418 sed 's/^/| /' conftest.$ac_ext >&5
13420 ac_hi=`expr '(' $ac_mid ')' - 1`
13421 if test $ac_mid -le $ac_hi; then
13425 ac_mid=`expr 2 '*' $ac_mid`
13427 rm -f conftest.$ac_objext conftest.$ac_ext
13430 echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13435 rm -f conftest.$ac_objext conftest.$ac_ext
13437 rm -f conftest.$ac_objext conftest.$ac_ext
13438 # Binary search between lo and hi bounds.
13439 while test "x$ac_lo" != "x$ac_hi"; do
13440 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
13452 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13459 rm -f conftest.$ac_objext
13460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13461 (eval $ac_compile) 2>&5
13463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13464 (exit $ac_status); } &&
13465 { ac_try='test -s conftest.$ac_objext'
13466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13467 (eval $ac_try) 2>&5
13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470 (exit $ac_status); }; }; then
13473 echo "$as_me: failed program was:" >&5
13474 sed 's/^/| /' conftest.$ac_ext >&5
13476 ac_lo=`expr '(' $ac_mid ')' + 1`
13478 rm -f conftest.$ac_objext conftest.$ac_ext
13481 ?*) ac_cv_sizeof_int=$ac_lo;;
13482 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13483 See \`config.log' for more details." >&5
13484 echo "$as_me: error: cannot compute sizeof (int), 77
13485 See \`config.log' for more details." >&2;}
13486 { (exit 1); exit 1; }; } ;;
13489 if test "$cross_compiling" = yes; then
13490 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13491 See \`config.log' for more details." >&5
13492 echo "$as_me: error: cannot run test program while cross compiling
13493 See \`config.log' for more details." >&2;}
13494 { (exit 1); exit 1; }; }
13496 cat >conftest.$ac_ext <<_ACEOF
13497 #line $LINENO "configure"
13500 cat confdefs.h >>conftest.$ac_ext
13501 cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h. */
13503 $ac_includes_default
13504 long longval () { return (long) (sizeof (int)); }
13505 unsigned long ulongval () { return (long) (sizeof (int)); }
13507 #include <stdlib.h>
13512 FILE *f = fopen ("conftest.val", "w");
13515 if (((long) (sizeof (int))) < 0)
13517 long i = longval ();
13518 if (i != ((long) (sizeof (int))))
13520 fprintf (f, "%ld\n", i);
13524 unsigned long i = ulongval ();
13525 if (i != ((long) (sizeof (int))))
13527 fprintf (f, "%lu\n", i);
13529 exit (ferror (f) || fclose (f) != 0);
13535 rm -f conftest$ac_exeext
13536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13537 (eval $ac_link) 2>&5
13539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13542 (eval $ac_try) 2>&5
13544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13545 (exit $ac_status); }; }; then
13546 ac_cv_sizeof_int=`cat conftest.val`
13548 echo "$as_me: program exited with status $ac_status" >&5
13549 echo "$as_me: failed program was:" >&5
13550 sed 's/^/| /' conftest.$ac_ext >&5
13552 ( exit $ac_status )
13553 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13554 See \`config.log' for more details." >&5
13555 echo "$as_me: error: cannot compute sizeof (int), 77
13556 See \`config.log' for more details." >&2;}
13557 { (exit 1); exit 1; }; }
13559 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13567 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13568 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13569 cat >>confdefs.h <<_ACEOF
13570 #define SIZEOF_INT $ac_cv_sizeof_int
13574 echo "$as_me:$LINENO: checking for long int" >&5
13575 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13576 if test "${ac_cv_type_long_int+set}" = set; then
13577 echo $ECHO_N "(cached) $ECHO_C" >&6
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 if ((long int *) 0)
13592 if (sizeof (long int))
13598 rm -f conftest.$ac_objext
13599 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13600 (eval $ac_compile) 2>&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } &&
13604 { ac_try='test -s conftest.$ac_objext'
13605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13606 (eval $ac_try) 2>&5
13608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13609 (exit $ac_status); }; }; then
13610 ac_cv_type_long_int=yes
13612 echo "$as_me: failed program was:" >&5
13613 sed 's/^/| /' conftest.$ac_ext >&5
13615 ac_cv_type_long_int=no
13617 rm -f conftest.$ac_objext conftest.$ac_ext
13619 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13620 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13622 echo "$as_me:$LINENO: checking size of long int" >&5
13623 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13624 if test "${ac_cv_sizeof_long_int+set}" = set; then
13625 echo $ECHO_N "(cached) $ECHO_C" >&6
13627 if test "$ac_cv_type_long_int" = yes; then
13628 # The cast to unsigned long works around a bug in the HP C Compiler
13629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13631 # This bug is HP SR number 8606223364.
13632 if test "$cross_compiling" = yes; then
13633 # Depending upon the size, compute the lo and hi bounds.
13634 cat >conftest.$ac_ext <<_ACEOF
13635 #line $LINENO "configure"
13638 cat confdefs.h >>conftest.$ac_ext
13639 cat >>conftest.$ac_ext <<_ACEOF
13640 /* end confdefs.h. */
13641 $ac_includes_default
13645 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13652 rm -f conftest.$ac_objext
13653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13654 (eval $ac_compile) 2>&5
13656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13657 (exit $ac_status); } &&
13658 { ac_try='test -s conftest.$ac_objext'
13659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13660 (eval $ac_try) 2>&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); }; }; then
13666 cat >conftest.$ac_ext <<_ACEOF
13667 #line $LINENO "configure"
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13673 $ac_includes_default
13677 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13684 rm -f conftest.$ac_objext
13685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13686 (eval $ac_compile) 2>&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } &&
13690 { ac_try='test -s conftest.$ac_objext'
13691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13692 (eval $ac_try) 2>&5
13694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13695 (exit $ac_status); }; }; then
13696 ac_hi=$ac_mid; break
13698 echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13701 ac_lo=`expr $ac_mid + 1`
13702 if test $ac_lo -le $ac_mid; then
13706 ac_mid=`expr 2 '*' $ac_mid + 1`
13708 rm -f conftest.$ac_objext conftest.$ac_ext
13711 echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13714 cat >conftest.$ac_ext <<_ACEOF
13715 #line $LINENO "configure"
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13721 $ac_includes_default
13725 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13732 rm -f conftest.$ac_objext
13733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13734 (eval $ac_compile) 2>&5
13736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13737 (exit $ac_status); } &&
13738 { ac_try='test -s conftest.$ac_objext'
13739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13740 (eval $ac_try) 2>&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); }; }; then
13746 cat >conftest.$ac_ext <<_ACEOF
13747 #line $LINENO "configure"
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h. */
13753 $ac_includes_default
13757 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13764 rm -f conftest.$ac_objext
13765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13766 (eval $ac_compile) 2>&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } &&
13770 { ac_try='test -s conftest.$ac_objext'
13771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13772 (eval $ac_try) 2>&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); }; }; then
13776 ac_lo=$ac_mid; break
13778 echo "$as_me: failed program was:" >&5
13779 sed 's/^/| /' conftest.$ac_ext >&5
13781 ac_hi=`expr '(' $ac_mid ')' - 1`
13782 if test $ac_mid -le $ac_hi; then
13786 ac_mid=`expr 2 '*' $ac_mid`
13788 rm -f conftest.$ac_objext conftest.$ac_ext
13791 echo "$as_me: failed program was:" >&5
13792 sed 's/^/| /' conftest.$ac_ext >&5
13796 rm -f conftest.$ac_objext conftest.$ac_ext
13798 rm -f conftest.$ac_objext conftest.$ac_ext
13799 # Binary search between lo and hi bounds.
13800 while test "x$ac_lo" != "x$ac_hi"; do
13801 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
13813 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13820 rm -f conftest.$ac_objext
13821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13822 (eval $ac_compile) 2>&5
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); } &&
13826 { ac_try='test -s conftest.$ac_objext'
13827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13828 (eval $ac_try) 2>&5
13830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13831 (exit $ac_status); }; }; then
13834 echo "$as_me: failed program was:" >&5
13835 sed 's/^/| /' conftest.$ac_ext >&5
13837 ac_lo=`expr '(' $ac_mid ')' + 1`
13839 rm -f conftest.$ac_objext conftest.$ac_ext
13842 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13843 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13844 See \`config.log' for more details." >&5
13845 echo "$as_me: error: cannot compute sizeof (long int), 77
13846 See \`config.log' for more details." >&2;}
13847 { (exit 1); exit 1; }; } ;;
13850 if test "$cross_compiling" = yes; then
13851 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13852 See \`config.log' for more details." >&5
13853 echo "$as_me: error: cannot run test program while cross compiling
13854 See \`config.log' for more details." >&2;}
13855 { (exit 1); exit 1; }; }
13857 cat >conftest.$ac_ext <<_ACEOF
13858 #line $LINENO "configure"
13861 cat confdefs.h >>conftest.$ac_ext
13862 cat >>conftest.$ac_ext <<_ACEOF
13863 /* end confdefs.h. */
13864 $ac_includes_default
13865 long longval () { return (long) (sizeof (long int)); }
13866 unsigned long ulongval () { return (long) (sizeof (long int)); }
13868 #include <stdlib.h>
13873 FILE *f = fopen ("conftest.val", "w");
13876 if (((long) (sizeof (long int))) < 0)
13878 long i = longval ();
13879 if (i != ((long) (sizeof (long int))))
13881 fprintf (f, "%ld\n", i);
13885 unsigned long i = ulongval ();
13886 if (i != ((long) (sizeof (long int))))
13888 fprintf (f, "%lu\n", i);
13890 exit (ferror (f) || fclose (f) != 0);
13896 rm -f conftest$ac_exeext
13897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13898 (eval $ac_link) 2>&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13903 (eval $ac_try) 2>&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); }; }; then
13907 ac_cv_sizeof_long_int=`cat conftest.val`
13909 echo "$as_me: program exited with status $ac_status" >&5
13910 echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13913 ( exit $ac_status )
13914 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13915 See \`config.log' for more details." >&5
13916 echo "$as_me: error: cannot compute sizeof (long int), 77
13917 See \`config.log' for more details." >&2;}
13918 { (exit 1); exit 1; }; }
13920 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13925 ac_cv_sizeof_long_int=0
13928 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13929 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13930 cat >>confdefs.h <<_ACEOF
13931 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13935 echo "$as_me:$LINENO: checking for long long int" >&5
13936 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13937 if test "${ac_cv_type_long_long_int+set}" = set; then
13938 echo $ECHO_N "(cached) $ECHO_C" >&6
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 if ((long long int *) 0)
13953 if (sizeof (long long int))
13959 rm -f conftest.$ac_objext
13960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13961 (eval $ac_compile) 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } &&
13965 { ac_try='test -s conftest.$ac_objext'
13966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13967 (eval $ac_try) 2>&5
13969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13970 (exit $ac_status); }; }; then
13971 ac_cv_type_long_long_int=yes
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13976 ac_cv_type_long_long_int=no
13978 rm -f conftest.$ac_objext conftest.$ac_ext
13980 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13981 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13983 echo "$as_me:$LINENO: checking size of long long int" >&5
13984 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13985 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13986 echo $ECHO_N "(cached) $ECHO_C" >&6
13988 if test "$ac_cv_type_long_long_int" = yes; then
13989 # The cast to unsigned long works around a bug in the HP C Compiler
13990 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13991 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13992 # This bug is HP SR number 8606223364.
13993 if test "$cross_compiling" = yes; then
13994 # Depending upon the size, compute the lo and hi bounds.
13995 cat >conftest.$ac_ext <<_ACEOF
13996 #line $LINENO "configure"
13999 cat confdefs.h >>conftest.$ac_ext
14000 cat >>conftest.$ac_ext <<_ACEOF
14001 /* end confdefs.h. */
14002 $ac_includes_default
14006 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
14013 rm -f conftest.$ac_objext
14014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14015 (eval $ac_compile) 2>&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); } &&
14019 { ac_try='test -s conftest.$ac_objext'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
14027 cat >conftest.$ac_ext <<_ACEOF
14028 #line $LINENO "configure"
14031 cat confdefs.h >>conftest.$ac_ext
14032 cat >>conftest.$ac_ext <<_ACEOF
14033 /* end confdefs.h. */
14034 $ac_includes_default
14038 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14045 rm -f conftest.$ac_objext
14046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14047 (eval $ac_compile) 2>&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); } &&
14051 { ac_try='test -s conftest.$ac_objext'
14052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053 (eval $ac_try) 2>&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; }; then
14057 ac_hi=$ac_mid; break
14059 echo "$as_me: failed program was:" >&5
14060 sed 's/^/| /' conftest.$ac_ext >&5
14062 ac_lo=`expr $ac_mid + 1`
14063 if test $ac_lo -le $ac_mid; then
14067 ac_mid=`expr 2 '*' $ac_mid + 1`
14069 rm -f conftest.$ac_objext conftest.$ac_ext
14072 echo "$as_me: failed program was:" >&5
14073 sed 's/^/| /' conftest.$ac_ext >&5
14075 cat >conftest.$ac_ext <<_ACEOF
14076 #line $LINENO "configure"
14079 cat confdefs.h >>conftest.$ac_ext
14080 cat >>conftest.$ac_ext <<_ACEOF
14081 /* end confdefs.h. */
14082 $ac_includes_default
14086 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
14093 rm -f conftest.$ac_objext
14094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14095 (eval $ac_compile) 2>&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } &&
14099 { ac_try='test -s conftest.$ac_objext'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
14107 cat >conftest.$ac_ext <<_ACEOF
14108 #line $LINENO "configure"
14111 cat confdefs.h >>conftest.$ac_ext
14112 cat >>conftest.$ac_ext <<_ACEOF
14113 /* end confdefs.h. */
14114 $ac_includes_default
14118 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
14125 rm -f conftest.$ac_objext
14126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14127 (eval $ac_compile) 2>&5
14129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14130 (exit $ac_status); } &&
14131 { ac_try='test -s conftest.$ac_objext'
14132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14133 (eval $ac_try) 2>&5
14135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14136 (exit $ac_status); }; }; then
14137 ac_lo=$ac_mid; break
14139 echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14142 ac_hi=`expr '(' $ac_mid ')' - 1`
14143 if test $ac_mid -le $ac_hi; then
14147 ac_mid=`expr 2 '*' $ac_mid`
14149 rm -f conftest.$ac_objext conftest.$ac_ext
14152 echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14157 rm -f conftest.$ac_objext conftest.$ac_ext
14159 rm -f conftest.$ac_objext conftest.$ac_ext
14160 # Binary search between lo and hi bounds.
14161 while test "x$ac_lo" != "x$ac_hi"; do
14162 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
14174 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14181 rm -f conftest.$ac_objext
14182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14183 (eval $ac_compile) 2>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } &&
14187 { ac_try='test -s conftest.$ac_objext'
14188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14189 (eval $ac_try) 2>&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); }; }; then
14195 echo "$as_me: failed program was:" >&5
14196 sed 's/^/| /' conftest.$ac_ext >&5
14198 ac_lo=`expr '(' $ac_mid ')' + 1`
14200 rm -f conftest.$ac_objext conftest.$ac_ext
14203 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14204 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14205 See \`config.log' for more details." >&5
14206 echo "$as_me: error: cannot compute sizeof (long long int), 77
14207 See \`config.log' for more details." >&2;}
14208 { (exit 1); exit 1; }; } ;;
14211 if test "$cross_compiling" = yes; then
14212 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14213 See \`config.log' for more details." >&5
14214 echo "$as_me: error: cannot run test program while cross compiling
14215 See \`config.log' for more details." >&2;}
14216 { (exit 1); exit 1; }; }
14218 cat >conftest.$ac_ext <<_ACEOF
14219 #line $LINENO "configure"
14222 cat confdefs.h >>conftest.$ac_ext
14223 cat >>conftest.$ac_ext <<_ACEOF
14224 /* end confdefs.h. */
14225 $ac_includes_default
14226 long longval () { return (long) (sizeof (long long int)); }
14227 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14229 #include <stdlib.h>
14234 FILE *f = fopen ("conftest.val", "w");
14237 if (((long) (sizeof (long long int))) < 0)
14239 long i = longval ();
14240 if (i != ((long) (sizeof (long long int))))
14242 fprintf (f, "%ld\n", i);
14246 unsigned long i = ulongval ();
14247 if (i != ((long) (sizeof (long long int))))
14249 fprintf (f, "%lu\n", i);
14251 exit (ferror (f) || fclose (f) != 0);
14257 rm -f conftest$ac_exeext
14258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14259 (eval $ac_link) 2>&5
14261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14264 (eval $ac_try) 2>&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); }; }; then
14268 ac_cv_sizeof_long_long_int=`cat conftest.val`
14270 echo "$as_me: program exited with status $ac_status" >&5
14271 echo "$as_me: failed program was:" >&5
14272 sed 's/^/| /' conftest.$ac_ext >&5
14274 ( exit $ac_status )
14275 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14276 See \`config.log' for more details." >&5
14277 echo "$as_me: error: cannot compute sizeof (long long int), 77
14278 See \`config.log' for more details." >&2;}
14279 { (exit 1); exit 1; }; }
14281 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14286 ac_cv_sizeof_long_long_int=0
14289 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14290 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14291 cat >>confdefs.h <<_ACEOF
14292 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14296 echo "$as_me:$LINENO: checking for int *" >&5
14297 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14298 if test "${ac_cv_type_int_p+set}" = set; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
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
14314 if (sizeof (int *))
14320 rm -f conftest.$ac_objext
14321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14322 (eval $ac_compile) 2>&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } &&
14326 { ac_try='test -s conftest.$ac_objext'
14327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14328 (eval $ac_try) 2>&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); }; }; then
14332 ac_cv_type_int_p=yes
14334 echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14337 ac_cv_type_int_p=no
14339 rm -f conftest.$ac_objext conftest.$ac_ext
14341 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14342 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14344 echo "$as_me:$LINENO: checking size of int *" >&5
14345 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14346 if test "${ac_cv_sizeof_int_p+set}" = set; then
14347 echo $ECHO_N "(cached) $ECHO_C" >&6
14349 if test "$ac_cv_type_int_p" = yes; then
14350 # The cast to unsigned long works around a bug in the HP C Compiler
14351 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14352 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14353 # This bug is HP SR number 8606223364.
14354 if test "$cross_compiling" = yes; then
14355 # Depending upon the size, compute the lo and hi bounds.
14356 cat >conftest.$ac_ext <<_ACEOF
14357 #line $LINENO "configure"
14360 cat confdefs.h >>conftest.$ac_ext
14361 cat >>conftest.$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14363 $ac_includes_default
14367 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14374 rm -f conftest.$ac_objext
14375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14376 (eval $ac_compile) 2>&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } &&
14380 { ac_try='test -s conftest.$ac_objext'
14381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14382 (eval $ac_try) 2>&5
14384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14385 (exit $ac_status); }; }; then
14388 cat >conftest.$ac_ext <<_ACEOF
14389 #line $LINENO "configure"
14392 cat confdefs.h >>conftest.$ac_ext
14393 cat >>conftest.$ac_ext <<_ACEOF
14394 /* end confdefs.h. */
14395 $ac_includes_default
14399 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14406 rm -f conftest.$ac_objext
14407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14408 (eval $ac_compile) 2>&5
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); } &&
14412 { ac_try='test -s conftest.$ac_objext'
14413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14414 (eval $ac_try) 2>&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); }; }; then
14418 ac_hi=$ac_mid; break
14420 echo "$as_me: failed program was:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14423 ac_lo=`expr $ac_mid + 1`
14424 if test $ac_lo -le $ac_mid; then
14428 ac_mid=`expr 2 '*' $ac_mid + 1`
14430 rm -f conftest.$ac_objext conftest.$ac_ext
14433 echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14436 cat >conftest.$ac_ext <<_ACEOF
14437 #line $LINENO "configure"
14440 cat confdefs.h >>conftest.$ac_ext
14441 cat >>conftest.$ac_ext <<_ACEOF
14442 /* end confdefs.h. */
14443 $ac_includes_default
14447 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14454 rm -f conftest.$ac_objext
14455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14456 (eval $ac_compile) 2>&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } &&
14460 { ac_try='test -s conftest.$ac_objext'
14461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14462 (eval $ac_try) 2>&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
14468 cat >conftest.$ac_ext <<_ACEOF
14469 #line $LINENO "configure"
14472 cat confdefs.h >>conftest.$ac_ext
14473 cat >>conftest.$ac_ext <<_ACEOF
14474 /* end confdefs.h. */
14475 $ac_includes_default
14479 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14486 rm -f conftest.$ac_objext
14487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14488 (eval $ac_compile) 2>&5
14490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14491 (exit $ac_status); } &&
14492 { ac_try='test -s conftest.$ac_objext'
14493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14494 (eval $ac_try) 2>&5
14496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); }; }; then
14498 ac_lo=$ac_mid; break
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14503 ac_hi=`expr '(' $ac_mid ')' - 1`
14504 if test $ac_mid -le $ac_hi; then
14508 ac_mid=`expr 2 '*' $ac_mid`
14510 rm -f conftest.$ac_objext conftest.$ac_ext
14513 echo "$as_me: failed program was:" >&5
14514 sed 's/^/| /' conftest.$ac_ext >&5
14518 rm -f conftest.$ac_objext conftest.$ac_ext
14520 rm -f conftest.$ac_objext conftest.$ac_ext
14521 # Binary search between lo and hi bounds.
14522 while test "x$ac_lo" != "x$ac_hi"; do
14523 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
14535 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14542 rm -f conftest.$ac_objext
14543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14544 (eval $ac_compile) 2>&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); } &&
14548 { ac_try='test -s conftest.$ac_objext'
14549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14550 (eval $ac_try) 2>&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
14556 echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14559 ac_lo=`expr '(' $ac_mid ')' + 1`
14561 rm -f conftest.$ac_objext conftest.$ac_ext
14564 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14565 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14566 See \`config.log' for more details." >&5
14567 echo "$as_me: error: cannot compute sizeof (int *), 77
14568 See \`config.log' for more details." >&2;}
14569 { (exit 1); exit 1; }; } ;;
14572 if test "$cross_compiling" = yes; then
14573 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14574 See \`config.log' for more details." >&5
14575 echo "$as_me: error: cannot run test program while cross compiling
14576 See \`config.log' for more details." >&2;}
14577 { (exit 1); exit 1; }; }
14579 cat >conftest.$ac_ext <<_ACEOF
14580 #line $LINENO "configure"
14583 cat confdefs.h >>conftest.$ac_ext
14584 cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h. */
14586 $ac_includes_default
14587 long longval () { return (long) (sizeof (int *)); }
14588 unsigned long ulongval () { return (long) (sizeof (int *)); }
14590 #include <stdlib.h>
14595 FILE *f = fopen ("conftest.val", "w");
14598 if (((long) (sizeof (int *))) < 0)
14600 long i = longval ();
14601 if (i != ((long) (sizeof (int *))))
14603 fprintf (f, "%ld\n", i);
14607 unsigned long i = ulongval ();
14608 if (i != ((long) (sizeof (int *))))
14610 fprintf (f, "%lu\n", i);
14612 exit (ferror (f) || fclose (f) != 0);
14618 rm -f conftest$ac_exeext
14619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14620 (eval $ac_link) 2>&5
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625 (eval $ac_try) 2>&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; }; then
14629 ac_cv_sizeof_int_p=`cat conftest.val`
14631 echo "$as_me: program exited with status $ac_status" >&5
14632 echo "$as_me: failed program was:" >&5
14633 sed 's/^/| /' conftest.$ac_ext >&5
14635 ( exit $ac_status )
14636 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14637 See \`config.log' for more details." >&5
14638 echo "$as_me: error: cannot compute sizeof (int *), 77
14639 See \`config.log' for more details." >&2;}
14640 { (exit 1); exit 1; }; }
14642 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14647 ac_cv_sizeof_int_p=0
14650 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14651 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14652 cat >>confdefs.h <<_ACEOF
14653 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14658 # Check for sys/types.h types
14659 echo "$as_me:$LINENO: checking for u_int type" >&5
14660 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14661 if test "${ac_cv_have_u_int+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_u_int="yes"
14695 echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14698 ac_cv_have_u_int="no"
14701 rm -f conftest.$ac_objext conftest.$ac_ext
14704 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14705 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14706 if test "x$ac_cv_have_u_int" = "xyes" ; then
14707 cat >>confdefs.h <<\_ACEOF
14708 #define HAVE_U_INT 1
14714 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14715 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14716 if test "${ac_cv_have_intmax_t+set}" = set; then
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14720 cat >conftest.$ac_ext <<_ACEOF
14721 #line $LINENO "configure"
14724 cat confdefs.h >>conftest.$ac_ext
14725 cat >>conftest.$ac_ext <<_ACEOF
14726 /* end confdefs.h. */
14727 #include <sys/types.h>
14736 rm -f conftest.$ac_objext
14737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14738 (eval $ac_compile) 2>&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); } &&
14742 { ac_try='test -s conftest.$ac_objext'
14743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14744 (eval $ac_try) 2>&5
14746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14747 (exit $ac_status); }; }; then
14748 ac_cv_have_intmax_t="yes"
14750 echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14754 cat >conftest.$ac_ext <<_ACEOF
14755 #line $LINENO "configure"
14758 cat confdefs.h >>conftest.$ac_ext
14759 cat >>conftest.$ac_ext <<_ACEOF
14760 /* end confdefs.h. */
14761 #include <stdint.h>
14770 rm -f conftest.$ac_objext
14771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14772 (eval $ac_compile) 2>&5
14774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14775 (exit $ac_status); } &&
14776 { ac_try='test -s conftest.$ac_objext'
14777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14778 (eval $ac_try) 2>&5
14780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14781 (exit $ac_status); }; }; then
14782 ac_cv_have_intmax_t="yes"
14784 echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14787 ac_cv_have_intmax_t="no"
14790 rm -f conftest.$ac_objext conftest.$ac_ext
14794 rm -f conftest.$ac_objext conftest.$ac_ext
14798 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14799 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14800 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14801 cat >>confdefs.h <<\_ACEOF
14802 #define HAVE_INTMAX_T 1
14809 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14810 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14811 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14812 echo $ECHO_N "(cached) $ECHO_C" >&6
14815 cat >conftest.$ac_ext <<_ACEOF
14816 #line $LINENO "configure"
14819 cat confdefs.h >>conftest.$ac_ext
14820 cat >>conftest.$ac_ext <<_ACEOF
14821 /* end confdefs.h. */
14822 #include <sys/types.h>
14826 u_intmax_t a; a = 1;
14831 rm -f conftest.$ac_objext
14832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14833 (eval $ac_compile) 2>&5
14835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14836 (exit $ac_status); } &&
14837 { ac_try='test -s conftest.$ac_objext'
14838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14839 (eval $ac_try) 2>&5
14841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14842 (exit $ac_status); }; }; then
14843 ac_cv_have_u_intmax_t="yes"
14845 echo "$as_me: failed program was:" >&5
14846 sed 's/^/| /' conftest.$ac_ext >&5
14849 cat >conftest.$ac_ext <<_ACEOF
14850 #line $LINENO "configure"
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h. */
14856 #include <stdint.h>
14860 u_intmax_t a; a = 1;
14865 rm -f conftest.$ac_objext
14866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14867 (eval $ac_compile) 2>&5
14869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14870 (exit $ac_status); } &&
14871 { ac_try='test -s conftest.$ac_objext'
14872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873 (eval $ac_try) 2>&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; }; then
14877 ac_cv_have_u_intmax_t="yes"
14879 echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.$ac_ext >&5
14882 ac_cv_have_u_intmax_t="no"
14885 rm -f conftest.$ac_objext conftest.$ac_ext
14889 rm -f conftest.$ac_objext conftest.$ac_ext
14892 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14893 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14894 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14895 cat >>confdefs.h <<\_ACEOF
14896 #define HAVE_U_INTMAX_T 1
14903 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14904 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14905 if test "${ac_cv_have_intxx_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>
14920 int8_t a; int16_t b; int32_t c; a = b = c = 1;
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_intxx_t="yes"
14939 echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14942 ac_cv_have_intxx_t="no"
14945 rm -f conftest.$ac_objext conftest.$ac_ext
14948 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14949 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14950 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14951 cat >>confdefs.h <<\_ACEOF
14952 #define HAVE_INTXX_T 1
14958 echo "$as_me:$LINENO: checking for int64_t type" >&5
14959 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14960 if test "${ac_cv_have_int64_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>
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_int64_t="yes"
14994 echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14997 ac_cv_have_int64_t="no"
15000 rm -f conftest.$ac_objext conftest.$ac_ext
15003 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
15004 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
15005 if test "x$ac_cv_have_int64_t" = "xyes" ; then
15006 cat >>confdefs.h <<\_ACEOF
15007 #define HAVE_INT64_T 1
15013 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
15014 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
15015 if test "${ac_cv_have_u_intxx_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_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 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_intxx_t="yes"
15049 echo "$as_me: failed program was:" >&5
15050 sed 's/^/| /' conftest.$ac_ext >&5
15052 ac_cv_have_u_intxx_t="no"
15055 rm -f conftest.$ac_objext conftest.$ac_ext
15058 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
15059 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
15060 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
15061 cat >>confdefs.h <<\_ACEOF
15062 #define HAVE_U_INTXX_T 1
15068 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
15069 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
15070 if test "${ac_cv_have_u_int64_t+set}" = set; then
15071 echo $ECHO_N "(cached) $ECHO_C" >&6
15074 cat >conftest.$ac_ext <<_ACEOF
15075 #line $LINENO "configure"
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
15080 /* end confdefs.h. */
15081 #include <sys/types.h>
15085 u_int64_t a; a = 1;
15090 rm -f conftest.$ac_objext
15091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15092 (eval $ac_compile) 2>&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } &&
15096 { ac_try='test -s conftest.$ac_objext'
15097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
15102 ac_cv_have_u_int64_t="yes"
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15107 ac_cv_have_u_int64_t="no"
15110 rm -f conftest.$ac_objext conftest.$ac_ext
15113 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
15114 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
15115 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
15116 cat >>confdefs.h <<\_ACEOF
15117 #define HAVE_U_INT64_T 1
15123 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
15124 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15126 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15127 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
15128 cat >conftest.$ac_ext <<_ACEOF
15129 #line $LINENO "configure"
15132 cat confdefs.h >>conftest.$ac_ext
15133 cat >>conftest.$ac_ext <<_ACEOF
15134 /* end confdefs.h. */
15135 #include <sys/bitypes.h>
15139 int8_t a; int16_t b; int32_t c;
15140 u_int8_t e; u_int16_t f; u_int32_t g;
15141 a = b = c = e = f = g = 1;
15146 rm -f conftest.$ac_objext
15147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15148 (eval $ac_compile) 2>&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } &&
15152 { ac_try='test -s conftest.$ac_objext'
15153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15154 (eval $ac_try) 2>&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; }; then
15158 cat >>confdefs.h <<\_ACEOF
15159 #define HAVE_U_INTXX_T 1
15162 cat >>confdefs.h <<\_ACEOF
15163 #define HAVE_INTXX_T 1
15166 cat >>confdefs.h <<\_ACEOF
15167 #define HAVE_SYS_BITYPES_H 1
15170 echo "$as_me:$LINENO: result: yes" >&5
15171 echo "${ECHO_T}yes" >&6
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15176 echo "$as_me:$LINENO: result: no" >&5
15177 echo "${ECHO_T}no" >&6
15180 rm -f conftest.$ac_objext conftest.$ac_ext
15183 if test -z "$have_u_intxx_t" ; then
15184 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15185 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15186 if test "${ac_cv_have_uintxx_t+set}" = set; then
15187 echo $ECHO_N "(cached) $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/types.h>
15201 uint8_t a; uint16_t b;
15202 uint32_t c; a = b = c = 1;
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 ac_cv_have_uintxx_t="yes"
15221 echo "$as_me: failed program was:" >&5
15222 sed 's/^/| /' conftest.$ac_ext >&5
15224 ac_cv_have_uintxx_t="no"
15227 rm -f conftest.$ac_objext conftest.$ac_ext
15230 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15231 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15232 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15233 cat >>confdefs.h <<\_ACEOF
15234 #define HAVE_UINTXX_T 1
15240 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15241 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15243 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15244 echo $ECHO_N "checking for int64_t and u_int64_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 int64_t a; u_int64_t b;
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_U_INT64_T 1
15278 cat >>confdefs.h <<\_ACEOF
15279 #define HAVE_INT64_T 1
15282 echo "$as_me:$LINENO: result: yes" >&5
15283 echo "${ECHO_T}yes" >&6
15285 echo "$as_me: failed program was:" >&5
15286 sed 's/^/| /' conftest.$ac_ext >&5
15288 echo "$as_me:$LINENO: result: no" >&5
15289 echo "${ECHO_T}no" >&6
15292 rm -f conftest.$ac_objext conftest.$ac_ext
15295 if (test -z "$have_uintxx_t" && \
15296 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15298 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15299 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15300 cat >conftest.$ac_ext <<_ACEOF
15301 #line $LINENO "configure"
15304 cat confdefs.h >>conftest.$ac_ext
15305 cat >>conftest.$ac_ext <<_ACEOF
15306 /* end confdefs.h. */
15307 #include <sys/bitypes.h>
15311 uint8_t a; uint16_t b;
15312 uint32_t c; a = b = c = 1;
15317 rm -f conftest.$ac_objext
15318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15319 (eval $ac_compile) 2>&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } &&
15323 { ac_try='test -s conftest.$ac_objext'
15324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15325 (eval $ac_try) 2>&5
15327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15328 (exit $ac_status); }; }; then
15329 cat >>confdefs.h <<\_ACEOF
15330 #define HAVE_UINTXX_T 1
15333 echo "$as_me:$LINENO: result: yes" >&5
15334 echo "${ECHO_T}yes" >&6
15336 echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15339 echo "$as_me:$LINENO: result: no" >&5
15340 echo "${ECHO_T}no" >&6
15343 rm -f conftest.$ac_objext conftest.$ac_ext
15379 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15380 echo "$as_me:$LINENO: checking for $ac_func" >&5
15381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15382 if eval "test \"\${$as_ac_var+set}\" = set"; then
15383 echo $ECHO_N "(cached) $ECHO_C" >&6
15385 cat >conftest.$ac_ext <<_ACEOF
15386 #line $LINENO "configure"
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h. */
15392 /* System header to define __stub macros and hopefully few prototypes,
15393 which can conflict with char $ac_func (); below.
15394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15395 <limits.h> exists even on freestanding compilers. */
15397 # include <limits.h>
15399 # include <assert.h>
15401 /* Override any gcc2 internal prototype to avoid an error. */
15406 /* We use char because int might match the return type of a gcc2
15407 builtin and then its argument prototype would still apply. */
15409 /* The GNU C library defines this for functions which it implements
15410 to always fail with ENOSYS. Some functions are actually named
15411 something starting with __ and the normal name is an alias. */
15412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15415 char (*f) () = $ac_func;
15424 return f != $ac_func;
15429 rm -f conftest.$ac_objext conftest$ac_exeext
15430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15431 (eval $ac_link) 2>&5
15433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434 (exit $ac_status); } &&
15435 { ac_try='test -s conftest$ac_exeext'
15436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15437 (eval $ac_try) 2>&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); }; }; then
15441 eval "$as_ac_var=yes"
15443 echo "$as_me: failed program was:" >&5
15444 sed 's/^/| /' conftest.$ac_ext >&5
15446 eval "$as_ac_var=no"
15448 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15451 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15452 if test `eval echo '${'$as_ac_var'}'` = yes; then
15453 cat >>confdefs.h <<_ACEOF
15454 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15458 echo 'configure: cannot find needed function.'; exit 1
15465 for ac_func in fchdir
15467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15468 echo "$as_me:$LINENO: checking for $ac_func" >&5
15469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15470 if eval "test \"\${$as_ac_var+set}\" = set"; then
15471 echo $ECHO_N "(cached) $ECHO_C" >&6
15473 cat >conftest.$ac_ext <<_ACEOF
15474 #line $LINENO "configure"
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 /* System header to define __stub macros and hopefully few prototypes,
15481 which can conflict with char $ac_func (); below.
15482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15483 <limits.h> exists even on freestanding compilers. */
15485 # include <limits.h>
15487 # include <assert.h>
15489 /* Override any gcc2 internal prototype to avoid an error. */
15494 /* We use char because int might match the return type of a gcc2
15495 builtin and then its argument prototype would still apply. */
15497 /* The GNU C library defines this for functions which it implements
15498 to always fail with ENOSYS. Some functions are actually named
15499 something starting with __ and the normal name is an alias. */
15500 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15503 char (*f) () = $ac_func;
15512 return f != $ac_func;
15517 rm -f conftest.$ac_objext conftest$ac_exeext
15518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15519 (eval $ac_link) 2>&5
15521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522 (exit $ac_status); } &&
15523 { ac_try='test -s conftest$ac_exeext'
15524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15525 (eval $ac_try) 2>&5
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; }; then
15529 eval "$as_ac_var=yes"
15531 echo "$as_me: failed program was:" >&5
15532 sed 's/^/| /' conftest.$ac_ext >&5
15534 eval "$as_ac_var=no"
15536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15538 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15539 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15540 if test `eval echo '${'$as_ac_var'}'` = yes; then
15541 cat >>confdefs.h <<_ACEOF
15542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15544 cat >>confdefs.h <<\_ACEOF
15545 #define HAVE_FCHDIR 1
15552 for ac_func in strtoll
15554 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15555 echo "$as_me:$LINENO: checking for $ac_func" >&5
15556 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15557 if eval "test \"\${$as_ac_var+set}\" = set"; then
15558 echo $ECHO_N "(cached) $ECHO_C" >&6
15560 cat >conftest.$ac_ext <<_ACEOF
15561 #line $LINENO "configure"
15564 cat confdefs.h >>conftest.$ac_ext
15565 cat >>conftest.$ac_ext <<_ACEOF
15566 /* end confdefs.h. */
15567 /* System header to define __stub macros and hopefully few prototypes,
15568 which can conflict with char $ac_func (); below.
15569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15570 <limits.h> exists even on freestanding compilers. */
15572 # include <limits.h>
15574 # include <assert.h>
15576 /* Override any gcc2 internal prototype to avoid an error. */
15581 /* We use char because int might match the return type of a gcc2
15582 builtin and then its argument prototype would still apply. */
15584 /* The GNU C library defines this for functions which it implements
15585 to always fail with ENOSYS. Some functions are actually named
15586 something starting with __ and the normal name is an alias. */
15587 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15590 char (*f) () = $ac_func;
15599 return f != $ac_func;
15604 rm -f conftest.$ac_objext conftest$ac_exeext
15605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15606 (eval $ac_link) 2>&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); } &&
15610 { ac_try='test -s conftest$ac_exeext'
15611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612 (eval $ac_try) 2>&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); }; }; then
15616 eval "$as_ac_var=yes"
15618 echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15621 eval "$as_ac_var=no"
15623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15625 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15626 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15627 if test `eval echo '${'$as_ac_var'}'` = yes; then
15628 cat >>confdefs.h <<_ACEOF
15629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15631 cat >>confdefs.h <<\_ACEOF
15632 #define HAVE_STRTOLL 1
15640 for ac_func in chflags
15642 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15643 echo "$as_me:$LINENO: checking for $ac_func" >&5
15644 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15645 if eval "test \"\${$as_ac_var+set}\" = set"; then
15646 echo $ECHO_N "(cached) $ECHO_C" >&6
15648 cat >conftest.$ac_ext <<_ACEOF
15649 #line $LINENO "configure"
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h. */
15655 /* System header to define __stub macros and hopefully few prototypes,
15656 which can conflict with char $ac_func (); below.
15657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15658 <limits.h> exists even on freestanding compilers. */
15660 # include <limits.h>
15662 # include <assert.h>
15664 /* Override any gcc2 internal prototype to avoid an error. */
15669 /* We use char because int might match the return type of a gcc2
15670 builtin and then its argument prototype would still apply. */
15672 /* The GNU C library defines this for functions which it implements
15673 to always fail with ENOSYS. Some functions are actually named
15674 something starting with __ and the normal name is an alias. */
15675 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15678 char (*f) () = $ac_func;
15687 return f != $ac_func;
15692 rm -f conftest.$ac_objext conftest$ac_exeext
15693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15694 (eval $ac_link) 2>&5
15696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15697 (exit $ac_status); } &&
15698 { ac_try='test -s conftest$ac_exeext'
15699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15700 (eval $ac_try) 2>&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; }; then
15704 eval "$as_ac_var=yes"
15706 echo "$as_me: failed program was:" >&5
15707 sed 's/^/| /' conftest.$ac_ext >&5
15709 eval "$as_ac_var=no"
15711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15715 if test `eval echo '${'$as_ac_var'}'` = yes; then
15716 cat >>confdefs.h <<_ACEOF
15717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15728 for ac_func in snprintf vsnprintf gethostid getdomainname
15730 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15731 echo "$as_me:$LINENO: checking for $ac_func" >&5
15732 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15733 if eval "test \"\${$as_ac_var+set}\" = set"; then
15734 echo $ECHO_N "(cached) $ECHO_C" >&6
15736 cat >conftest.$ac_ext <<_ACEOF
15737 #line $LINENO "configure"
15740 cat confdefs.h >>conftest.$ac_ext
15741 cat >>conftest.$ac_ext <<_ACEOF
15742 /* end confdefs.h. */
15743 /* System header to define __stub macros and hopefully few prototypes,
15744 which can conflict with char $ac_func (); below.
15745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15746 <limits.h> exists even on freestanding compilers. */
15748 # include <limits.h>
15750 # include <assert.h>
15752 /* Override any gcc2 internal prototype to avoid an error. */
15757 /* We use char because int might match the return type of a gcc2
15758 builtin and then its argument prototype would still apply. */
15760 /* The GNU C library defines this for functions which it implements
15761 to always fail with ENOSYS. Some functions are actually named
15762 something starting with __ and the normal name is an alias. */
15763 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15766 char (*f) () = $ac_func;
15775 return f != $ac_func;
15780 rm -f conftest.$ac_objext conftest$ac_exeext
15781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15782 (eval $ac_link) 2>&5
15784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15785 (exit $ac_status); } &&
15786 { ac_try='test -s conftest$ac_exeext'
15787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15788 (eval $ac_try) 2>&5
15790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15791 (exit $ac_status); }; }; then
15792 eval "$as_ac_var=yes"
15794 echo "$as_me: failed program was:" >&5
15795 sed 's/^/| /' conftest.$ac_ext >&5
15797 eval "$as_ac_var=no"
15799 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15801 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15802 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15803 if test `eval echo '${'$as_ac_var'}'` = yes; then
15804 cat >>confdefs.h <<_ACEOF
15805 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15816 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15818 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15819 echo "$as_me:$LINENO: checking for $ac_func" >&5
15820 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15821 if eval "test \"\${$as_ac_var+set}\" = set"; then
15822 echo $ECHO_N "(cached) $ECHO_C" >&6
15824 cat >conftest.$ac_ext <<_ACEOF
15825 #line $LINENO "configure"
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15831 /* System header to define __stub macros and hopefully few prototypes,
15832 which can conflict with char $ac_func (); below.
15833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15834 <limits.h> exists even on freestanding compilers. */
15836 # include <limits.h>
15838 # include <assert.h>
15840 /* Override any gcc2 internal prototype to avoid an error. */
15845 /* We use char because int might match the return type of a gcc2
15846 builtin and then its argument prototype would still apply. */
15848 /* The GNU C library defines this for functions which it implements
15849 to always fail with ENOSYS. Some functions are actually named
15850 something starting with __ and the normal name is an alias. */
15851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15854 char (*f) () = $ac_func;
15863 return f != $ac_func;
15868 rm -f conftest.$ac_objext conftest$ac_exeext
15869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15870 (eval $ac_link) 2>&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } &&
15874 { ac_try='test -s conftest$ac_exeext'
15875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876 (eval $ac_try) 2>&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); }; }; then
15880 eval "$as_ac_var=yes"
15882 echo "$as_me: failed program was:" >&5
15883 sed 's/^/| /' conftest.$ac_ext >&5
15885 eval "$as_ac_var=no"
15887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15889 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15890 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15891 if test `eval echo '${'$as_ac_var'}'` = yes; then
15892 cat >>confdefs.h <<_ACEOF
15893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15900 # If resolver functions are not in libc check for -lnsl or -lresolv.
15901 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15902 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15903 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15904 echo $ECHO_N "(cached) $ECHO_C" >&6
15906 cat >conftest.$ac_ext <<_ACEOF
15907 #line $LINENO "configure"
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h. */
15913 /* System header to define __stub macros and hopefully few prototypes,
15914 which can conflict with char gethostbyname_r (); below.
15915 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15916 <limits.h> exists even on freestanding compilers. */
15918 # include <limits.h>
15920 # include <assert.h>
15922 /* Override any gcc2 internal prototype to avoid an error. */
15927 /* We use char because int might match the return type of a gcc2
15928 builtin and then its argument prototype would still apply. */
15929 char gethostbyname_r ();
15930 /* The GNU C library defines this for functions which it implements
15931 to always fail with ENOSYS. Some functions are actually named
15932 something starting with __ and the normal name is an alias. */
15933 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15936 char (*f) () = gethostbyname_r;
15945 return f != gethostbyname_r;
15950 rm -f conftest.$ac_objext conftest$ac_exeext
15951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15952 (eval $ac_link) 2>&5
15954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15955 (exit $ac_status); } &&
15956 { ac_try='test -s conftest$ac_exeext'
15957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15958 (eval $ac_try) 2>&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); }; }; then
15962 ac_cv_func_gethostbyname_r=yes
15964 echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.$ac_ext >&5
15967 ac_cv_func_gethostbyname_r=no
15969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15971 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15972 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15973 if test $ac_cv_func_gethostbyname_r = yes; then
15974 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15975 echo "${ECHO_T}using libc's resolver" >&6
15978 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15979 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15980 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6
15983 ac_check_lib_save_LIBS=$LIBS
15985 cat >conftest.$ac_ext <<_ACEOF
15986 #line $LINENO "configure"
15989 cat confdefs.h >>conftest.$ac_ext
15990 cat >>conftest.$ac_ext <<_ACEOF
15991 /* end confdefs.h. */
15993 /* Override any gcc2 internal prototype to avoid an error. */
15997 /* We use char because int might match the return type of a gcc2
15998 builtin and then its argument prototype would still apply. */
15999 char gethostbyname_r ();
16003 gethostbyname_r ();
16008 rm -f conftest.$ac_objext conftest$ac_exeext
16009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16010 (eval $ac_link) 2>&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); } &&
16014 { ac_try='test -s conftest$ac_exeext'
16015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16016 (eval $ac_try) 2>&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); }; }; then
16020 ac_cv_lib_nsl_gethostbyname_r=yes
16022 echo "$as_me: failed program was:" >&5
16023 sed 's/^/| /' conftest.$ac_ext >&5
16025 ac_cv_lib_nsl_gethostbyname_r=no
16027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16028 LIBS=$ac_check_lib_save_LIBS
16030 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
16031 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
16032 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
16033 cat >>confdefs.h <<_ACEOF
16034 #define HAVE_LIBNSL 1
16042 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
16043 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
16044 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
16045 echo $ECHO_N "(cached) $ECHO_C" >&6
16047 ac_check_lib_save_LIBS=$LIBS
16048 LIBS="-lresolv $LIBS"
16049 cat >conftest.$ac_ext <<_ACEOF
16050 #line $LINENO "configure"
16053 cat confdefs.h >>conftest.$ac_ext
16054 cat >>conftest.$ac_ext <<_ACEOF
16055 /* end confdefs.h. */
16057 /* Override any gcc2 internal prototype to avoid an error. */
16061 /* We use char because int might match the return type of a gcc2
16062 builtin and then its argument prototype would still apply. */
16063 char gethostbyname_r ();
16067 gethostbyname_r ();
16072 rm -f conftest.$ac_objext conftest$ac_exeext
16073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16074 (eval $ac_link) 2>&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } &&
16078 { ac_try='test -s conftest$ac_exeext'
16079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16080 (eval $ac_try) 2>&5
16082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083 (exit $ac_status); }; }; then
16084 ac_cv_lib_resolv_gethostbyname_r=yes
16086 echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16089 ac_cv_lib_resolv_gethostbyname_r=no
16091 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16092 LIBS=$ac_check_lib_save_LIBS
16094 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
16095 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
16096 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
16097 cat >>confdefs.h <<_ACEOF
16098 #define HAVE_LIBRESOLV 1
16101 LIBS="-lresolv $LIBS"
16109 # Find where sockets are (especially for Solaris)
16110 echo "$as_me:$LINENO: checking for socket" >&5
16111 echo $ECHO_N "checking for socket... $ECHO_C" >&6
16112 if test "${ac_cv_func_socket+set}" = set; then
16113 echo $ECHO_N "(cached) $ECHO_C" >&6
16115 cat >conftest.$ac_ext <<_ACEOF
16116 #line $LINENO "configure"
16119 cat confdefs.h >>conftest.$ac_ext
16120 cat >>conftest.$ac_ext <<_ACEOF
16121 /* end confdefs.h. */
16122 /* System header to define __stub macros and hopefully few prototypes,
16123 which can conflict with char socket (); below.
16124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16125 <limits.h> exists even on freestanding compilers. */
16127 # include <limits.h>
16129 # include <assert.h>
16131 /* Override any gcc2 internal prototype to avoid an error. */
16136 /* We use char because int might match the return type of a gcc2
16137 builtin and then its argument prototype would still apply. */
16139 /* The GNU C library defines this for functions which it implements
16140 to always fail with ENOSYS. Some functions are actually named
16141 something starting with __ and the normal name is an alias. */
16142 #if defined (__stub_socket) || defined (__stub___socket)
16145 char (*f) () = socket;
16154 return f != socket;
16159 rm -f conftest.$ac_objext conftest$ac_exeext
16160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16161 (eval $ac_link) 2>&5
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); } &&
16165 { ac_try='test -s conftest$ac_exeext'
16166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16167 (eval $ac_try) 2>&5
16169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16170 (exit $ac_status); }; }; then
16171 ac_cv_func_socket=yes
16173 echo "$as_me: failed program was:" >&5
16174 sed 's/^/| /' conftest.$ac_ext >&5
16176 ac_cv_func_socket=no
16178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16180 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
16181 echo "${ECHO_T}$ac_cv_func_socket" >&6
16182 if test $ac_cv_func_socket = yes; then
16183 echo "$as_me:$LINENO: result: using libc's socket" >&5
16184 echo "${ECHO_T}using libc's socket" >&6
16187 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
16188 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
16189 if test "${ac_cv_lib_xnet_socket+set}" = set; then
16190 echo $ECHO_N "(cached) $ECHO_C" >&6
16192 ac_check_lib_save_LIBS=$LIBS
16193 LIBS="-lxnet $LIBS"
16194 cat >conftest.$ac_ext <<_ACEOF
16195 #line $LINENO "configure"
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h. */
16202 /* Override any gcc2 internal prototype to avoid an error. */
16206 /* We use char because int might match the return type of a gcc2
16207 builtin and then its argument prototype would still apply. */
16217 rm -f conftest.$ac_objext conftest$ac_exeext
16218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16219 (eval $ac_link) 2>&5
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); } &&
16223 { ac_try='test -s conftest$ac_exeext'
16224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16225 (eval $ac_try) 2>&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); }; }; then
16229 ac_cv_lib_xnet_socket=yes
16231 echo "$as_me: failed program was:" >&5
16232 sed 's/^/| /' conftest.$ac_ext >&5
16234 ac_cv_lib_xnet_socket=no
16236 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16237 LIBS=$ac_check_lib_save_LIBS
16239 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
16240 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
16241 if test $ac_cv_lib_xnet_socket = yes; then
16242 cat >>confdefs.h <<_ACEOF
16243 #define HAVE_LIBXNET 1
16246 LIBS="-lxnet $LIBS"
16251 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
16252 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
16253 if test "${ac_cv_lib_socket_socket+set}" = set; then
16254 echo $ECHO_N "(cached) $ECHO_C" >&6
16256 ac_check_lib_save_LIBS=$LIBS
16257 LIBS="-lsocket $LIBS"
16258 cat >conftest.$ac_ext <<_ACEOF
16259 #line $LINENO "configure"
16262 cat confdefs.h >>conftest.$ac_ext
16263 cat >>conftest.$ac_ext <<_ACEOF
16264 /* end confdefs.h. */
16266 /* Override any gcc2 internal prototype to avoid an error. */
16270 /* We use char because int might match the return type of a gcc2
16271 builtin and then its argument prototype would still apply. */
16281 rm -f conftest.$ac_objext conftest$ac_exeext
16282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16283 (eval $ac_link) 2>&5
16285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16286 (exit $ac_status); } &&
16287 { ac_try='test -s conftest$ac_exeext'
16288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289 (eval $ac_try) 2>&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; }; then
16293 ac_cv_lib_socket_socket=yes
16295 echo "$as_me: failed program was:" >&5
16296 sed 's/^/| /' conftest.$ac_ext >&5
16298 ac_cv_lib_socket_socket=no
16300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16301 LIBS=$ac_check_lib_save_LIBS
16303 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
16304 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
16305 if test $ac_cv_lib_socket_socket = yes; then
16306 cat >>confdefs.h <<_ACEOF
16307 #define HAVE_LIBSOCKET 1
16310 LIBS="-lsocket $LIBS"
16315 echo "$as_me:$LINENO: checking for socket in -linet" >&5
16316 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
16317 if test "${ac_cv_lib_inet_socket+set}" = set; then
16318 echo $ECHO_N "(cached) $ECHO_C" >&6
16320 ac_check_lib_save_LIBS=$LIBS
16321 LIBS="-linet $LIBS"
16322 cat >conftest.$ac_ext <<_ACEOF
16323 #line $LINENO "configure"
16326 cat confdefs.h >>conftest.$ac_ext
16327 cat >>conftest.$ac_ext <<_ACEOF
16328 /* end confdefs.h. */
16330 /* Override any gcc2 internal prototype to avoid an error. */
16334 /* We use char because int might match the return type of a gcc2
16335 builtin and then its argument prototype would still apply. */
16345 rm -f conftest.$ac_objext conftest$ac_exeext
16346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16347 (eval $ac_link) 2>&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); } &&
16351 { ac_try='test -s conftest$ac_exeext'
16352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; }; then
16357 ac_cv_lib_inet_socket=yes
16359 echo "$as_me: failed program was:" >&5
16360 sed 's/^/| /' conftest.$ac_ext >&5
16362 ac_cv_lib_inet_socket=no
16364 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16365 LIBS=$ac_check_lib_save_LIBS
16367 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16368 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
16369 if test $ac_cv_lib_inet_socket = yes; then
16370 cat >>confdefs.h <<_ACEOF
16371 #define HAVE_LIBINET 1
16374 LIBS="-linet $LIBS"
16382 for ac_func in inet_pton
16384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16385 echo "$as_me:$LINENO: checking for $ac_func" >&5
16386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16387 if eval "test \"\${$as_ac_var+set}\" = set"; then
16388 echo $ECHO_N "(cached) $ECHO_C" >&6
16390 cat >conftest.$ac_ext <<_ACEOF
16391 #line $LINENO "configure"
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h. */
16397 /* System header to define __stub macros and hopefully few prototypes,
16398 which can conflict with char $ac_func (); below.
16399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16400 <limits.h> exists even on freestanding compilers. */
16402 # include <limits.h>
16404 # include <assert.h>
16406 /* Override any gcc2 internal prototype to avoid an error. */
16411 /* We use char because int might match the return type of a gcc2
16412 builtin and then its argument prototype would still apply. */
16414 /* The GNU C library defines this for functions which it implements
16415 to always fail with ENOSYS. Some functions are actually named
16416 something starting with __ and the normal name is an alias. */
16417 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16420 char (*f) () = $ac_func;
16429 return f != $ac_func;
16434 rm -f conftest.$ac_objext conftest$ac_exeext
16435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16436 (eval $ac_link) 2>&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } &&
16440 { ac_try='test -s conftest$ac_exeext'
16441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16442 (eval $ac_try) 2>&5
16444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16445 (exit $ac_status); }; }; then
16446 eval "$as_ac_var=yes"
16448 echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16451 eval "$as_ac_var=no"
16453 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16456 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16457 if test `eval echo '${'$as_ac_var'}'` = yes; then
16458 cat >>confdefs.h <<_ACEOF
16459 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16461 cat >>confdefs.h <<\_ACEOF
16462 #define HAVE_INET_PTON 1
16469 for ac_func in inet_ntop
16471 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16472 echo "$as_me:$LINENO: checking for $ac_func" >&5
16473 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16474 if eval "test \"\${$as_ac_var+set}\" = set"; then
16475 echo $ECHO_N "(cached) $ECHO_C" >&6
16477 cat >conftest.$ac_ext <<_ACEOF
16478 #line $LINENO "configure"
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h. */
16484 /* System header to define __stub macros and hopefully few prototypes,
16485 which can conflict with char $ac_func (); below.
16486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16487 <limits.h> exists even on freestanding compilers. */
16489 # include <limits.h>
16491 # include <assert.h>
16493 /* Override any gcc2 internal prototype to avoid an error. */
16498 /* We use char because int might match the return type of a gcc2
16499 builtin and then its argument prototype would still apply. */
16501 /* The GNU C library defines this for functions which it implements
16502 to always fail with ENOSYS. Some functions are actually named
16503 something starting with __ and the normal name is an alias. */
16504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16507 char (*f) () = $ac_func;
16516 return f != $ac_func;
16521 rm -f conftest.$ac_objext conftest$ac_exeext
16522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16523 (eval $ac_link) 2>&5
16525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16526 (exit $ac_status); } &&
16527 { ac_try='test -s conftest$ac_exeext'
16528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16529 (eval $ac_try) 2>&5
16531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16532 (exit $ac_status); }; }; then
16533 eval "$as_ac_var=yes"
16535 echo "$as_me: failed program was:" >&5
16536 sed 's/^/| /' conftest.$ac_ext >&5
16538 eval "$as_ac_var=no"
16540 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16542 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16543 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16544 if test `eval echo '${'$as_ac_var'}'` = yes; then
16545 cat >>confdefs.h <<_ACEOF
16546 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16548 cat >>confdefs.h <<\_ACEOF
16549 #define HAVE_INET_NTOP 1
16556 for ac_func in gethostbyname2
16558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16559 echo "$as_me:$LINENO: checking for $ac_func" >&5
16560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16561 if eval "test \"\${$as_ac_var+set}\" = set"; then
16562 echo $ECHO_N "(cached) $ECHO_C" >&6
16564 cat >conftest.$ac_ext <<_ACEOF
16565 #line $LINENO "configure"
16568 cat confdefs.h >>conftest.$ac_ext
16569 cat >>conftest.$ac_ext <<_ACEOF
16570 /* end confdefs.h. */
16571 /* System header to define __stub macros and hopefully few prototypes,
16572 which can conflict with char $ac_func (); below.
16573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16574 <limits.h> exists even on freestanding compilers. */
16576 # include <limits.h>
16578 # include <assert.h>
16580 /* Override any gcc2 internal prototype to avoid an error. */
16585 /* We use char because int might match the return type of a gcc2
16586 builtin and then its argument prototype would still apply. */
16588 /* The GNU C library defines this for functions which it implements
16589 to always fail with ENOSYS. Some functions are actually named
16590 something starting with __ and the normal name is an alias. */
16591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16594 char (*f) () = $ac_func;
16603 return f != $ac_func;
16608 rm -f conftest.$ac_objext conftest$ac_exeext
16609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16610 (eval $ac_link) 2>&5
16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); } &&
16614 { ac_try='test -s conftest$ac_exeext'
16615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16616 (eval $ac_try) 2>&5
16618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16619 (exit $ac_status); }; }; then
16620 eval "$as_ac_var=yes"
16622 echo "$as_me: failed program was:" >&5
16623 sed 's/^/| /' conftest.$ac_ext >&5
16625 eval "$as_ac_var=no"
16627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16630 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16631 if test `eval echo '${'$as_ac_var'}'` = yes; then
16632 cat >>confdefs.h <<_ACEOF
16633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16635 cat >>confdefs.h <<\_ACEOF
16636 #define HAVE_GETHOSTBYNAME2 1
16643 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
16644 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
16645 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
16646 echo $ECHO_N "(cached) $ECHO_C" >&6
16648 cat >conftest.$ac_ext <<_ACEOF
16649 #line $LINENO "configure"
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h. */
16655 #include <sys/socket.h>
16659 struct sockaddr s; s.sa_len;
16664 rm -f conftest.$ac_objext
16665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16666 (eval $ac_compile) 2>&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); } &&
16670 { ac_try='test -s conftest.$ac_objext'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 ac_cv_struct_sockaddr_sa_len=yes
16678 echo "$as_me: failed program was:" >&5
16679 sed 's/^/| /' conftest.$ac_ext >&5
16681 ac_cv_struct_sockaddr_sa_len=no
16683 rm -f conftest.$ac_objext conftest.$ac_ext
16685 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
16686 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
16688 if test $ac_cv_struct_sockaddr_sa_len = yes; then
16690 cat >>confdefs.h <<\_ACEOF
16691 #define HAVE_SA_LEN 1
16697 echo "$as_me:$LINENO: checking for IPv6 support" >&5
16698 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
16699 if test "${ac_cv_ipv6_support+set}" = set; then
16700 echo $ECHO_N "(cached) $ECHO_C" >&6
16702 cat >conftest.$ac_ext <<_ACEOF
16703 #line $LINENO "configure"
16706 cat confdefs.h >>conftest.$ac_ext
16707 cat >>conftest.$ac_ext <<_ACEOF
16708 /* end confdefs.h. */
16709 #include <sys/types.h>
16710 #include <sys/socket.h>
16711 #include <netinet/in.h>
16715 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
16721 rm -f conftest.$ac_objext conftest$ac_exeext
16722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16723 (eval $ac_link) 2>&5
16725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16726 (exit $ac_status); } &&
16727 { ac_try='test -s conftest$ac_exeext'
16728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16729 (eval $ac_try) 2>&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); }; }; then
16733 ac_cv_ipv6_support=yes
16735 echo "$as_me: failed program was:" >&5
16736 sed 's/^/| /' conftest.$ac_ext >&5
16738 ac_cv_ipv6_support=no
16740 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16742 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
16743 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
16745 if test "$ac_cv_ipv6_support" = yes; then
16747 cat >>confdefs.h <<\_ACEOF
16748 #define HAVE_IPV6 1
16756 for ac_func in strftime
16758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16759 echo "$as_me:$LINENO: checking for $ac_func" >&5
16760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16761 if eval "test \"\${$as_ac_var+set}\" = set"; then
16762 echo $ECHO_N "(cached) $ECHO_C" >&6
16764 cat >conftest.$ac_ext <<_ACEOF
16765 #line $LINENO "configure"
16768 cat confdefs.h >>conftest.$ac_ext
16769 cat >>conftest.$ac_ext <<_ACEOF
16770 /* end confdefs.h. */
16771 /* System header to define __stub macros and hopefully few prototypes,
16772 which can conflict with char $ac_func (); below.
16773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16774 <limits.h> exists even on freestanding compilers. */
16776 # include <limits.h>
16778 # include <assert.h>
16780 /* Override any gcc2 internal prototype to avoid an error. */
16785 /* We use char because int might match the return type of a gcc2
16786 builtin and then its argument prototype would still apply. */
16788 /* The GNU C library defines this for functions which it implements
16789 to always fail with ENOSYS. Some functions are actually named
16790 something starting with __ and the normal name is an alias. */
16791 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16794 char (*f) () = $ac_func;
16803 return f != $ac_func;
16808 rm -f conftest.$ac_objext conftest$ac_exeext
16809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16810 (eval $ac_link) 2>&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); } &&
16814 { ac_try='test -s conftest$ac_exeext'
16815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16816 (eval $ac_try) 2>&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); }; }; then
16820 eval "$as_ac_var=yes"
16822 echo "$as_me: failed program was:" >&5
16823 sed 's/^/| /' conftest.$ac_ext >&5
16825 eval "$as_ac_var=no"
16827 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16829 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16830 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16831 if test `eval echo '${'$as_ac_var'}'` = yes; then
16832 cat >>confdefs.h <<_ACEOF
16833 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16837 # strftime is in -lintl on SCO UNIX.
16838 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16839 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16840 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16841 echo $ECHO_N "(cached) $ECHO_C" >&6
16843 ac_check_lib_save_LIBS=$LIBS
16844 LIBS="-lintl $LIBS"
16845 cat >conftest.$ac_ext <<_ACEOF
16846 #line $LINENO "configure"
16849 cat confdefs.h >>conftest.$ac_ext
16850 cat >>conftest.$ac_ext <<_ACEOF
16851 /* end confdefs.h. */
16853 /* Override any gcc2 internal prototype to avoid an error. */
16857 /* We use char because int might match the return type of a gcc2
16858 builtin and then its argument prototype would still apply. */
16868 rm -f conftest.$ac_objext conftest$ac_exeext
16869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16870 (eval $ac_link) 2>&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); } &&
16874 { ac_try='test -s conftest$ac_exeext'
16875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16876 (eval $ac_try) 2>&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; }; then
16880 ac_cv_lib_intl_strftime=yes
16882 echo "$as_me: failed program was:" >&5
16883 sed 's/^/| /' conftest.$ac_ext >&5
16885 ac_cv_lib_intl_strftime=no
16887 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16888 LIBS=$ac_check_lib_save_LIBS
16890 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16891 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16892 if test $ac_cv_lib_intl_strftime = yes; then
16893 cat >>confdefs.h <<\_ACEOF
16894 #define HAVE_STRFTIME 1
16897 LIBS="-lintl $LIBS"
16904 for ac_func in vprintf
16906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16907 echo "$as_me:$LINENO: checking for $ac_func" >&5
16908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16909 if eval "test \"\${$as_ac_var+set}\" = set"; then
16910 echo $ECHO_N "(cached) $ECHO_C" >&6
16912 cat >conftest.$ac_ext <<_ACEOF
16913 #line $LINENO "configure"
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h. */
16919 /* System header to define __stub macros and hopefully few prototypes,
16920 which can conflict with char $ac_func (); below.
16921 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16922 <limits.h> exists even on freestanding compilers. */
16924 # include <limits.h>
16926 # include <assert.h>
16928 /* Override any gcc2 internal prototype to avoid an error. */
16933 /* We use char because int might match the return type of a gcc2
16934 builtin and then its argument prototype would still apply. */
16936 /* The GNU C library defines this for functions which it implements
16937 to always fail with ENOSYS. Some functions are actually named
16938 something starting with __ and the normal name is an alias. */
16939 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16942 char (*f) () = $ac_func;
16951 return f != $ac_func;
16956 rm -f conftest.$ac_objext conftest$ac_exeext
16957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16958 (eval $ac_link) 2>&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } &&
16962 { ac_try='test -s conftest$ac_exeext'
16963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16964 (eval $ac_try) 2>&5
16966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967 (exit $ac_status); }; }; then
16968 eval "$as_ac_var=yes"
16970 echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16973 eval "$as_ac_var=no"
16975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16977 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16978 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16979 if test `eval echo '${'$as_ac_var'}'` = yes; then
16980 cat >>confdefs.h <<_ACEOF
16981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16984 echo "$as_me:$LINENO: checking for _doprnt" >&5
16985 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16986 if test "${ac_cv_func__doprnt+set}" = set; then
16987 echo $ECHO_N "(cached) $ECHO_C" >&6
16989 cat >conftest.$ac_ext <<_ACEOF
16990 #line $LINENO "configure"
16993 cat confdefs.h >>conftest.$ac_ext
16994 cat >>conftest.$ac_ext <<_ACEOF
16995 /* end confdefs.h. */
16996 /* System header to define __stub macros and hopefully few prototypes,
16997 which can conflict with char _doprnt (); below.
16998 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16999 <limits.h> exists even on freestanding compilers. */
17001 # include <limits.h>
17003 # include <assert.h>
17005 /* Override any gcc2 internal prototype to avoid an error. */
17010 /* We use char because int might match the return type of a gcc2
17011 builtin and then its argument prototype would still apply. */
17013 /* The GNU C library defines this for functions which it implements
17014 to always fail with ENOSYS. Some functions are actually named
17015 something starting with __ and the normal name is an alias. */
17016 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17019 char (*f) () = _doprnt;
17028 return f != _doprnt;
17033 rm -f conftest.$ac_objext conftest$ac_exeext
17034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17035 (eval $ac_link) 2>&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } &&
17039 { ac_try='test -s conftest$ac_exeext'
17040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041 (eval $ac_try) 2>&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; }; then
17045 ac_cv_func__doprnt=yes
17047 echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.$ac_ext >&5
17050 ac_cv_func__doprnt=no
17052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17054 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17055 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
17056 if test $ac_cv_func__doprnt = yes; then
17058 cat >>confdefs.h <<\_ACEOF
17059 #define HAVE_DOPRNT 1
17068 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17069 # for constant arguments. Useless!
17070 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17071 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17072 if test "${ac_cv_working_alloca_h+set}" = set; then
17073 echo $ECHO_N "(cached) $ECHO_C" >&6
17075 cat >conftest.$ac_ext <<_ACEOF
17076 #line $LINENO "configure"
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17082 #include <alloca.h>
17086 char *p = (char *) alloca (2 * sizeof (int));
17091 rm -f conftest.$ac_objext conftest$ac_exeext
17092 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17093 (eval $ac_link) 2>&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); } &&
17097 { ac_try='test -s conftest$ac_exeext'
17098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099 (eval $ac_try) 2>&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; }; then
17103 ac_cv_working_alloca_h=yes
17105 echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17108 ac_cv_working_alloca_h=no
17110 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17112 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17113 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17114 if test $ac_cv_working_alloca_h = yes; then
17116 cat >>confdefs.h <<\_ACEOF
17117 #define HAVE_ALLOCA_H 1
17122 echo "$as_me:$LINENO: checking for alloca" >&5
17123 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17124 if test "${ac_cv_func_alloca_works+set}" = set; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17127 cat >conftest.$ac_ext <<_ACEOF
17128 #line $LINENO "configure"
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h. */
17135 # define alloca __builtin_alloca
17138 # include <malloc.h>
17139 # define alloca _alloca
17142 # include <alloca.h>
17147 # ifndef alloca /* predefined by HP cc +Olibcalls */
17158 char *p = (char *) alloca (1);
17163 rm -f conftest.$ac_objext conftest$ac_exeext
17164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17165 (eval $ac_link) 2>&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } &&
17169 { ac_try='test -s conftest$ac_exeext'
17170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; }; then
17175 ac_cv_func_alloca_works=yes
17177 echo "$as_me: failed program was:" >&5
17178 sed 's/^/| /' conftest.$ac_ext >&5
17180 ac_cv_func_alloca_works=no
17182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17184 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17185 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17187 if test $ac_cv_func_alloca_works = yes; then
17189 cat >>confdefs.h <<\_ACEOF
17190 #define HAVE_ALLOCA 1
17194 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17195 # that cause trouble. Some versions do not even contain alloca or
17196 # contain a buggy version. If you still want to use their alloca,
17197 # use ar to extract alloca.o from them instead of compiling alloca.c.
17199 ALLOCA=alloca.$ac_objext
17201 cat >>confdefs.h <<\_ACEOF
17206 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17207 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17208 if test "${ac_cv_os_cray+set}" = set; then
17209 echo $ECHO_N "(cached) $ECHO_C" >&6
17211 cat >conftest.$ac_ext <<_ACEOF
17212 #line $LINENO "configure"
17215 cat confdefs.h >>conftest.$ac_ext
17216 cat >>conftest.$ac_ext <<_ACEOF
17217 /* end confdefs.h. */
17218 #if defined(CRAY) && ! defined(CRAY2)
17225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17226 $EGREP "webecray" >/dev/null 2>&1; then
17234 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17235 echo "${ECHO_T}$ac_cv_os_cray" >&6
17236 if test $ac_cv_os_cray = yes; then
17237 for ac_func in _getb67 GETB67 getb67; do
17238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17239 echo "$as_me:$LINENO: checking for $ac_func" >&5
17240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17241 if eval "test \"\${$as_ac_var+set}\" = set"; then
17242 echo $ECHO_N "(cached) $ECHO_C" >&6
17244 cat >conftest.$ac_ext <<_ACEOF
17245 #line $LINENO "configure"
17248 cat confdefs.h >>conftest.$ac_ext
17249 cat >>conftest.$ac_ext <<_ACEOF
17250 /* end confdefs.h. */
17251 /* System header to define __stub macros and hopefully few prototypes,
17252 which can conflict with char $ac_func (); below.
17253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17254 <limits.h> exists even on freestanding compilers. */
17256 # include <limits.h>
17258 # include <assert.h>
17260 /* Override any gcc2 internal prototype to avoid an error. */
17265 /* We use char because int might match the return type of a gcc2
17266 builtin and then its argument prototype would still apply. */
17268 /* The GNU C library defines this for functions which it implements
17269 to always fail with ENOSYS. Some functions are actually named
17270 something starting with __ and the normal name is an alias. */
17271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17274 char (*f) () = $ac_func;
17283 return f != $ac_func;
17288 rm -f conftest.$ac_objext conftest$ac_exeext
17289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17290 (eval $ac_link) 2>&5
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); } &&
17294 { ac_try='test -s conftest$ac_exeext'
17295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17296 (eval $ac_try) 2>&5
17298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17299 (exit $ac_status); }; }; then
17300 eval "$as_ac_var=yes"
17302 echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.$ac_ext >&5
17305 eval "$as_ac_var=no"
17307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17311 if test `eval echo '${'$as_ac_var'}'` = yes; then
17313 cat >>confdefs.h <<_ACEOF
17314 #define CRAY_STACKSEG_END $ac_func
17323 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17324 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17325 if test "${ac_cv_c_stack_direction+set}" = set; then
17326 echo $ECHO_N "(cached) $ECHO_C" >&6
17328 if test "$cross_compiling" = yes; then
17329 ac_cv_c_stack_direction=0
17331 cat >conftest.$ac_ext <<_ACEOF
17332 #line $LINENO "configure"
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h. */
17339 find_stack_direction ()
17341 static char *addr = 0;
17346 return find_stack_direction ();
17349 return (&dummy > addr) ? 1 : -1;
17355 exit (find_stack_direction () < 0);
17358 rm -f conftest$ac_exeext
17359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17360 (eval $ac_link) 2>&5
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365 (eval $ac_try) 2>&5
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); }; }; then
17369 ac_cv_c_stack_direction=1
17371 echo "$as_me: program exited with status $ac_status" >&5
17372 echo "$as_me: failed program was:" >&5
17373 sed 's/^/| /' conftest.$ac_ext >&5
17375 ( exit $ac_status )
17376 ac_cv_c_stack_direction=-1
17378 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17381 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17382 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17384 cat >>confdefs.h <<_ACEOF
17385 #define STACK_DIRECTION $ac_cv_c_stack_direction
17391 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17392 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17393 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17394 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17395 echo $ECHO_N "(cached) $ECHO_C" >&6
17397 ac_check_lib_save_LIBS=$LIBS
17399 cat >conftest.$ac_ext <<_ACEOF
17400 #line $LINENO "configure"
17403 cat confdefs.h >>conftest.$ac_ext
17404 cat >>conftest.$ac_ext <<_ACEOF
17405 /* end confdefs.h. */
17407 /* Override any gcc2 internal prototype to avoid an error. */
17411 /* We use char because int might match the return type of a gcc2
17412 builtin and then its argument prototype would still apply. */
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17424 (eval $ac_link) 2>&5
17426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427 (exit $ac_status); } &&
17428 { ac_try='test -s conftest$ac_exeext'
17429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17430 (eval $ac_try) 2>&5
17432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); }; }; then
17434 ac_cv_lib_sun_getmntent=yes
17436 echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17439 ac_cv_lib_sun_getmntent=no
17441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17442 LIBS=$ac_check_lib_save_LIBS
17444 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17445 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17446 if test $ac_cv_lib_sun_getmntent = yes; then
17449 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17450 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17451 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17452 echo $ECHO_N "(cached) $ECHO_C" >&6
17454 ac_check_lib_save_LIBS=$LIBS
17456 cat >conftest.$ac_ext <<_ACEOF
17457 #line $LINENO "configure"
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17464 /* Override any gcc2 internal prototype to avoid an error. */
17468 /* We use char because int might match the return type of a gcc2
17469 builtin and then its argument prototype would still apply. */
17479 rm -f conftest.$ac_objext conftest$ac_exeext
17480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17481 (eval $ac_link) 2>&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } &&
17485 { ac_try='test -s conftest$ac_exeext'
17486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17487 (eval $ac_try) 2>&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; }; then
17491 ac_cv_lib_seq_getmntent=yes
17493 echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17496 ac_cv_lib_seq_getmntent=no
17498 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17499 LIBS=$ac_check_lib_save_LIBS
17501 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17502 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17503 if test $ac_cv_lib_seq_getmntent = yes; then
17506 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17507 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17508 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17509 echo $ECHO_N "(cached) $ECHO_C" >&6
17511 ac_check_lib_save_LIBS=$LIBS
17513 cat >conftest.$ac_ext <<_ACEOF
17514 #line $LINENO "configure"
17517 cat confdefs.h >>conftest.$ac_ext
17518 cat >>conftest.$ac_ext <<_ACEOF
17519 /* end confdefs.h. */
17521 /* Override any gcc2 internal prototype to avoid an error. */
17525 /* We use char because int might match the return type of a gcc2
17526 builtin and then its argument prototype would still apply. */
17536 rm -f conftest.$ac_objext conftest$ac_exeext
17537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17538 (eval $ac_link) 2>&5
17540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); } &&
17542 { ac_try='test -s conftest$ac_exeext'
17543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544 (eval $ac_try) 2>&5
17546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547 (exit $ac_status); }; }; then
17548 ac_cv_lib_gen_getmntent=yes
17550 echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17553 ac_cv_lib_gen_getmntent=no
17555 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17556 LIBS=$ac_check_lib_save_LIBS
17558 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17559 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17560 if test $ac_cv_lib_gen_getmntent = yes; then
17569 for ac_func in getmntent
17571 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17572 echo "$as_me:$LINENO: checking for $ac_func" >&5
17573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17574 if eval "test \"\${$as_ac_var+set}\" = set"; then
17575 echo $ECHO_N "(cached) $ECHO_C" >&6
17577 cat >conftest.$ac_ext <<_ACEOF
17578 #line $LINENO "configure"
17581 cat confdefs.h >>conftest.$ac_ext
17582 cat >>conftest.$ac_ext <<_ACEOF
17583 /* end confdefs.h. */
17584 /* System header to define __stub macros and hopefully few prototypes,
17585 which can conflict with char $ac_func (); below.
17586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17587 <limits.h> exists even on freestanding compilers. */
17589 # include <limits.h>
17591 # include <assert.h>
17593 /* Override any gcc2 internal prototype to avoid an error. */
17598 /* We use char because int might match the return type of a gcc2
17599 builtin and then its argument prototype would still apply. */
17601 /* The GNU C library defines this for functions which it implements
17602 to always fail with ENOSYS. Some functions are actually named
17603 something starting with __ and the normal name is an alias. */
17604 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17607 char (*f) () = $ac_func;
17616 return f != $ac_func;
17621 rm -f conftest.$ac_objext conftest$ac_exeext
17622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17623 (eval $ac_link) 2>&5
17625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17626 (exit $ac_status); } &&
17627 { ac_try='test -s conftest$ac_exeext'
17628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629 (eval $ac_try) 2>&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; }; then
17633 eval "$as_ac_var=yes"
17635 echo "$as_me: failed program was:" >&5
17636 sed 's/^/| /' conftest.$ac_ext >&5
17638 eval "$as_ac_var=no"
17640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17642 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17643 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17644 if test `eval echo '${'$as_ac_var'}'` = yes; then
17645 cat >>confdefs.h <<_ACEOF
17646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17653 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
17654 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
17655 if test "${ac_cv_func_closedir_void+set}" = set; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17658 if test "$cross_compiling" = yes; then
17659 ac_cv_func_closedir_void=yes
17661 cat >conftest.$ac_ext <<_ACEOF
17662 #line $LINENO "configure"
17665 cat confdefs.h >>conftest.$ac_ext
17666 cat >>conftest.$ac_ext <<_ACEOF
17667 /* end confdefs.h. */
17668 $ac_includes_default
17669 #include <$ac_header_dirent>
17670 #ifndef __cplusplus
17677 exit (closedir (opendir (".")) != 0);
17682 rm -f conftest$ac_exeext
17683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17684 (eval $ac_link) 2>&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17689 (eval $ac_try) 2>&5
17691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); }; }; then
17693 ac_cv_func_closedir_void=no
17695 echo "$as_me: program exited with status $ac_status" >&5
17696 echo "$as_me: failed program was:" >&5
17697 sed 's/^/| /' conftest.$ac_ext >&5
17699 ( exit $ac_status )
17700 ac_cv_func_closedir_void=yes
17702 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17705 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17706 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17707 if test $ac_cv_func_closedir_void = yes; then
17709 cat >>confdefs.h <<\_ACEOF
17710 #define CLOSEDIR_VOID 1
17715 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17716 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17717 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17718 echo $ECHO_N "(cached) $ECHO_C" >&6
17720 if test "$cross_compiling" = yes; then
17721 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17722 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17723 { (exit 1); exit 1; }; }
17725 cat >conftest.$ac_ext <<_ACEOF
17726 #line $LINENO "configure"
17729 cat confdefs.h >>conftest.$ac_ext
17730 cat >>conftest.$ac_ext <<_ACEOF
17731 /* end confdefs.h. */
17733 # include <unistd.h>
17739 /* If this system has a BSD-style setpgrp which takes arguments,
17740 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17741 exit successfully. */
17742 exit (setpgrp (1,1) == -1 ? 0 : 1);
17747 rm -f conftest$ac_exeext
17748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17749 (eval $ac_link) 2>&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17754 (eval $ac_try) 2>&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
17758 ac_cv_func_setpgrp_void=no
17760 echo "$as_me: program exited with status $ac_status" >&5
17761 echo "$as_me: failed program was:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17764 ( exit $ac_status )
17765 ac_cv_func_setpgrp_void=yes
17767 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17770 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17771 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17772 if test $ac_cv_func_setpgrp_void = yes; then
17774 cat >>confdefs.h <<\_ACEOF
17775 #define SETPGRP_VOID 1
17779 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17780 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17781 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17782 echo $ECHO_N "(cached) $ECHO_C" >&6
17784 # Some versions of Solaris, SCO, and the GNU C Library
17785 # have a broken or incompatible fnmatch.
17786 # So we run a test program. If we are cross-compiling, take no chance.
17787 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17788 if test "$cross_compiling" = yes; then
17789 ac_cv_func_fnmatch_works=cross
17791 cat >conftest.$ac_ext <<_ACEOF
17792 #line $LINENO "configure"
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h. */
17798 #include <fnmatch.h>
17799 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17800 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17806 (!(y ("a*", "abc", 0)
17807 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17808 && y ("a\\\\bc", "abc", 0)
17809 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17810 && y ("*x", ".x", 0)
17811 && n ("*x", ".x", FNM_PERIOD)
17817 rm -f conftest$ac_exeext
17818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17819 (eval $ac_link) 2>&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17824 (eval $ac_try) 2>&5
17826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); }; }; then
17828 ac_cv_func_fnmatch_works=yes
17830 echo "$as_me: program exited with status $ac_status" >&5
17831 echo "$as_me: failed program was:" >&5
17832 sed 's/^/| /' conftest.$ac_ext >&5
17834 ( exit $ac_status )
17835 ac_cv_func_fnmatch_works=no
17837 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17840 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17841 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17842 if test $ac_cv_func_fnmatch_works = yes; then
17844 cat >>confdefs.h <<\_ACEOF
17845 #define HAVE_FNMATCH 1
17854 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17855 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17856 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17857 echo $ECHO_N "(cached) $ECHO_C" >&6
17859 ac_check_lib_save_LIBS=$LIBS
17860 LIBS="-lxpg4 $LIBS"
17861 cat >conftest.$ac_ext <<_ACEOF
17862 #line $LINENO "configure"
17865 cat confdefs.h >>conftest.$ac_ext
17866 cat >>conftest.$ac_ext <<_ACEOF
17867 /* end confdefs.h. */
17869 /* Override any gcc2 internal prototype to avoid an error. */
17873 /* We use char because int might match the return type of a gcc2
17874 builtin and then its argument prototype would still apply. */
17884 rm -f conftest.$ac_objext conftest$ac_exeext
17885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17886 (eval $ac_link) 2>&5
17888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889 (exit $ac_status); } &&
17890 { ac_try='test -s conftest$ac_exeext'
17891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17892 (eval $ac_try) 2>&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 ac_cv_lib_xpg4_setlocale=yes
17898 echo "$as_me: failed program was:" >&5
17899 sed 's/^/| /' conftest.$ac_ext >&5
17901 ac_cv_lib_xpg4_setlocale=no
17903 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17904 LIBS=$ac_check_lib_save_LIBS
17906 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17907 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17908 if test $ac_cv_lib_xpg4_setlocale = yes; then
17909 LIBS="$LIBS -lxpg4"
17915 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17916 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17917 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17918 echo $ECHO_N "(cached) $ECHO_C" >&6
17920 ac_check_lib_save_LIBS=$LIBS
17922 cat >conftest.$ac_ext <<_ACEOF
17923 #line $LINENO "configure"
17926 cat confdefs.h >>conftest.$ac_ext
17927 cat >>conftest.$ac_ext <<_ACEOF
17928 /* end confdefs.h. */
17930 /* Override any gcc2 internal prototype to avoid an error. */
17934 /* We use char because int might match the return type of a gcc2
17935 builtin and then its argument prototype would still apply. */
17945 rm -f conftest.$ac_objext conftest$ac_exeext
17946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17947 (eval $ac_link) 2>&5
17949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17950 (exit $ac_status); } &&
17951 { ac_try='test -s conftest$ac_exeext'
17952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17953 (eval $ac_try) 2>&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); }; }; then
17957 ac_cv_lib_sun_getpwnam=yes
17959 echo "$as_me: failed program was:" >&5
17960 sed 's/^/| /' conftest.$ac_ext >&5
17962 ac_cv_lib_sun_getpwnam=no
17964 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17965 LIBS=$ac_check_lib_save_LIBS
17967 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17968 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17969 if test $ac_cv_lib_sun_getpwnam = yes; then
17970 cat >>confdefs.h <<_ACEOF
17971 #define HAVE_LIBSUN 1
17980 for ac_header in zlib.h
17982 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17983 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17984 echo "$as_me:$LINENO: checking for $ac_header" >&5
17985 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17987 echo $ECHO_N "(cached) $ECHO_C" >&6
17989 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17990 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17992 # Is the header compilable?
17993 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17994 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17995 cat >conftest.$ac_ext <<_ACEOF
17996 #line $LINENO "configure"
17999 cat confdefs.h >>conftest.$ac_ext
18000 cat >>conftest.$ac_ext <<_ACEOF
18001 /* end confdefs.h. */
18002 $ac_includes_default
18003 #include <$ac_header>
18005 rm -f conftest.$ac_objext
18006 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18007 (eval $ac_compile) 2>&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); } &&
18011 { ac_try='test -s conftest.$ac_objext'
18012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18013 (eval $ac_try) 2>&5
18015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18016 (exit $ac_status); }; }; then
18017 ac_header_compiler=yes
18019 echo "$as_me: failed program was:" >&5
18020 sed 's/^/| /' conftest.$ac_ext >&5
18022 ac_header_compiler=no
18024 rm -f conftest.$ac_objext conftest.$ac_ext
18025 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18026 echo "${ECHO_T}$ac_header_compiler" >&6
18028 # Is the header present?
18029 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18031 cat >conftest.$ac_ext <<_ACEOF
18032 #line $LINENO "configure"
18035 cat confdefs.h >>conftest.$ac_ext
18036 cat >>conftest.$ac_ext <<_ACEOF
18037 /* end confdefs.h. */
18038 #include <$ac_header>
18040 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18043 grep -v '^ *+' conftest.er1 >conftest.err
18045 cat conftest.err >&5
18046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18047 (exit $ac_status); } >/dev/null; then
18048 if test -s conftest.err; then
18049 ac_cpp_err=$ac_c_preproc_warn_flag
18056 if test -z "$ac_cpp_err"; then
18057 ac_header_preproc=yes
18059 echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18062 ac_header_preproc=no
18064 rm -f conftest.err conftest.$ac_ext
18065 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18066 echo "${ECHO_T}$ac_header_preproc" >&6
18068 # So? What about this header?
18069 case $ac_header_compiler:$ac_header_preproc in
18071 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18072 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18077 ## ------------------------------------ ##
18078 ## Report this to bug-autoconf@gnu.org. ##
18079 ## ------------------------------------ ##
18082 sed "s/^/$as_me: WARNING: /" >&2
18085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18093 ## ------------------------------------ ##
18094 ## Report this to bug-autoconf@gnu.org. ##
18095 ## ------------------------------------ ##
18098 sed "s/^/$as_me: WARNING: /" >&2
18101 echo "$as_me:$LINENO: checking for $ac_header" >&5
18102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18103 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18104 echo $ECHO_N "(cached) $ECHO_C" >&6
18106 eval "$as_ac_Header=$ac_header_preproc"
18108 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18109 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18112 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18113 cat >>confdefs.h <<_ACEOF
18114 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18121 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18122 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18123 if test "${ac_cv_lib_z_deflate+set}" = set; then
18124 echo $ECHO_N "(cached) $ECHO_C" >&6
18126 ac_check_lib_save_LIBS=$LIBS
18128 cat >conftest.$ac_ext <<_ACEOF
18129 #line $LINENO "configure"
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h. */
18136 /* Override any gcc2 internal prototype to avoid an error. */
18140 /* We use char because int might match the return type of a gcc2
18141 builtin and then its argument prototype would still apply. */
18151 rm -f conftest.$ac_objext conftest$ac_exeext
18152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18153 (eval $ac_link) 2>&5
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } &&
18157 { ac_try='test -s conftest$ac_exeext'
18158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18159 (eval $ac_try) 2>&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; }; then
18163 ac_cv_lib_z_deflate=yes
18165 echo "$as_me: failed program was:" >&5
18166 sed 's/^/| /' conftest.$ac_ext >&5
18168 ac_cv_lib_z_deflate=no
18170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18171 LIBS=$ac_check_lib_save_LIBS
18173 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18174 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18175 if test $ac_cv_lib_z_deflate = yes; then
18180 if test x$FDLIBS = x-lz; then
18181 cat >>confdefs.h <<\_ACEOF
18182 #define HAVE_LIBZ 1
18188 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18189 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18190 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18191 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18192 echo $ECHO_N "(cached) $ECHO_C" >&6
18194 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18195 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18197 # Is the header compilable?
18198 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18199 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18200 cat >conftest.$ac_ext <<_ACEOF
18201 #line $LINENO "configure"
18204 cat confdefs.h >>conftest.$ac_ext
18205 cat >>conftest.$ac_ext <<_ACEOF
18206 /* end confdefs.h. */
18207 $ac_includes_default
18208 #include <sys/acl.h>
18210 rm -f conftest.$ac_objext
18211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18212 (eval $ac_compile) 2>&5
18214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18215 (exit $ac_status); } &&
18216 { ac_try='test -s conftest.$ac_objext'
18217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18218 (eval $ac_try) 2>&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; }; then
18222 ac_header_compiler=yes
18224 echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.$ac_ext >&5
18227 ac_header_compiler=no
18229 rm -f conftest.$ac_objext conftest.$ac_ext
18230 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18231 echo "${ECHO_T}$ac_header_compiler" >&6
18233 # Is the header present?
18234 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18235 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18236 cat >conftest.$ac_ext <<_ACEOF
18237 #line $LINENO "configure"
18240 cat confdefs.h >>conftest.$ac_ext
18241 cat >>conftest.$ac_ext <<_ACEOF
18242 /* end confdefs.h. */
18243 #include <sys/acl.h>
18245 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18246 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18248 grep -v '^ *+' conftest.er1 >conftest.err
18250 cat conftest.err >&5
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); } >/dev/null; then
18253 if test -s conftest.err; then
18254 ac_cpp_err=$ac_c_preproc_warn_flag
18261 if test -z "$ac_cpp_err"; then
18262 ac_header_preproc=yes
18264 echo "$as_me: failed program was:" >&5
18265 sed 's/^/| /' conftest.$ac_ext >&5
18267 ac_header_preproc=no
18269 rm -f conftest.err conftest.$ac_ext
18270 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18271 echo "${ECHO_T}$ac_header_preproc" >&6
18273 # So? What about this header?
18274 case $ac_header_compiler:$ac_header_preproc in
18276 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18277 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18278 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18279 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18282 ## ------------------------------------ ##
18283 ## Report this to bug-autoconf@gnu.org. ##
18284 ## ------------------------------------ ##
18287 sed "s/^/$as_me: WARNING: /" >&2
18290 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18291 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18292 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18293 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18294 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18295 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18298 ## ------------------------------------ ##
18299 ## Report this to bug-autoconf@gnu.org. ##
18300 ## ------------------------------------ ##
18303 sed "s/^/$as_me: WARNING: /" >&2
18306 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18307 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18308 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18309 echo $ECHO_N "(cached) $ECHO_C" >&6
18311 ac_cv_header_sys_acl_h=$ac_header_preproc
18313 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18314 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18319 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18320 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18321 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18322 echo $ECHO_N "(cached) $ECHO_C" >&6
18324 ac_check_lib_save_LIBS=$LIBS
18326 cat >conftest.$ac_ext <<_ACEOF
18327 #line $LINENO "configure"
18330 cat confdefs.h >>conftest.$ac_ext
18331 cat >>conftest.$ac_ext <<_ACEOF
18332 /* end confdefs.h. */
18334 /* Override any gcc2 internal prototype to avoid an error. */
18338 /* We use char because int might match the return type of a gcc2
18339 builtin and then its argument prototype would still apply. */
18340 char acl_get_file ();
18349 rm -f conftest.$ac_objext conftest$ac_exeext
18350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18351 (eval $ac_link) 2>&5
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); } &&
18355 { ac_try='test -s conftest$ac_exeext'
18356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18357 (eval $ac_try) 2>&5
18359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18360 (exit $ac_status); }; }; then
18361 ac_cv_lib_acl_acl_get_file=yes
18363 echo "$as_me: failed program was:" >&5
18364 sed 's/^/| /' conftest.$ac_ext >&5
18366 ac_cv_lib_acl_acl_get_file=no
18368 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18369 LIBS=$ac_check_lib_save_LIBS
18371 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18372 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18373 if test $ac_cv_lib_acl_acl_get_file = yes; then
18374 FDLIBS="-lacl $FDLIBS"
18378 if test $ac_cv_lib_acl_acl_get_file = yes; then
18379 cat >>confdefs.h <<\_ACEOF
18387 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18388 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18389 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18390 echo $ECHO_N "(cached) $ECHO_C" >&6
18392 ac_check_lib_save_LIBS=$LIBS
18393 LIBS="-lpthread $LIBS"
18394 cat >conftest.$ac_ext <<_ACEOF
18395 #line $LINENO "configure"
18398 cat confdefs.h >>conftest.$ac_ext
18399 cat >>conftest.$ac_ext <<_ACEOF
18400 /* end confdefs.h. */
18402 /* Override any gcc2 internal prototype to avoid an error. */
18406 /* We use char because int might match the return type of a gcc2
18407 builtin and then its argument prototype would still apply. */
18408 char pthread_create ();
18417 rm -f conftest.$ac_objext conftest$ac_exeext
18418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18419 (eval $ac_link) 2>&5
18421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18422 (exit $ac_status); } &&
18423 { ac_try='test -s conftest$ac_exeext'
18424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18425 (eval $ac_try) 2>&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; }; then
18429 ac_cv_lib_pthread_pthread_create=yes
18431 echo "$as_me: failed program was:" >&5
18432 sed 's/^/| /' conftest.$ac_ext >&5
18434 ac_cv_lib_pthread_pthread_create=no
18436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18437 LIBS=$ac_check_lib_save_LIBS
18439 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18440 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18441 if test $ac_cv_lib_pthread_pthread_create = yes; then
18442 PTHREAD_LIB="-lpthread"
18444 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18445 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18446 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18447 echo $ECHO_N "(cached) $ECHO_C" >&6
18449 ac_check_lib_save_LIBS=$LIBS
18450 LIBS="-lpthreads $LIBS"
18451 cat >conftest.$ac_ext <<_ACEOF
18452 #line $LINENO "configure"
18455 cat confdefs.h >>conftest.$ac_ext
18456 cat >>conftest.$ac_ext <<_ACEOF
18457 /* end confdefs.h. */
18459 /* Override any gcc2 internal prototype to avoid an error. */
18463 /* We use char because int might match the return type of a gcc2
18464 builtin and then its argument prototype would still apply. */
18465 char pthread_create ();
18474 rm -f conftest.$ac_objext conftest$ac_exeext
18475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18476 (eval $ac_link) 2>&5
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); } &&
18480 { ac_try='test -s conftest$ac_exeext'
18481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18482 (eval $ac_try) 2>&5
18484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18485 (exit $ac_status); }; }; then
18486 ac_cv_lib_pthreads_pthread_create=yes
18488 echo "$as_me: failed program was:" >&5
18489 sed 's/^/| /' conftest.$ac_ext >&5
18491 ac_cv_lib_pthreads_pthread_create=no
18493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18494 LIBS=$ac_check_lib_save_LIBS
18496 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18497 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18498 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18499 PTHREAD_LIB="-lpthreads"
18501 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18502 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18503 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18504 echo $ECHO_N "(cached) $ECHO_C" >&6
18506 ac_check_lib_save_LIBS=$LIBS
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. */
18516 /* Override any gcc2 internal prototype to avoid an error. */
18520 /* We use char because int might match the return type of a gcc2
18521 builtin and then its argument prototype would still apply. */
18522 char pthread_create ();
18531 rm -f conftest.$ac_objext conftest$ac_exeext
18532 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18533 (eval $ac_link) 2>&5
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); } &&
18537 { ac_try='test -s conftest$ac_exeext'
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
18543 ac_cv_lib_c_r_pthread_create=yes
18545 echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.$ac_ext >&5
18548 ac_cv_lib_c_r_pthread_create=no
18550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18551 LIBS=$ac_check_lib_save_LIBS
18553 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18554 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18555 if test $ac_cv_lib_c_r_pthread_create = yes; then
18556 PTHREAD_LIB="-lc_r"
18558 echo "$as_me:$LINENO: checking for pthread_create" >&5
18559 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18560 if test "${ac_cv_func_pthread_create+set}" = set; then
18561 echo $ECHO_N "(cached) $ECHO_C" >&6
18563 cat >conftest.$ac_ext <<_ACEOF
18564 #line $LINENO "configure"
18567 cat confdefs.h >>conftest.$ac_ext
18568 cat >>conftest.$ac_ext <<_ACEOF
18569 /* end confdefs.h. */
18570 /* System header to define __stub macros and hopefully few prototypes,
18571 which can conflict with char pthread_create (); below.
18572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18573 <limits.h> exists even on freestanding compilers. */
18575 # include <limits.h>
18577 # include <assert.h>
18579 /* Override any gcc2 internal prototype to avoid an error. */
18584 /* We use char because int might match the return type of a gcc2
18585 builtin and then its argument prototype would still apply. */
18586 char pthread_create ();
18587 /* The GNU C library defines this for functions which it implements
18588 to always fail with ENOSYS. Some functions are actually named
18589 something starting with __ and the normal name is an alias. */
18590 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
18593 char (*f) () = pthread_create;
18602 return f != pthread_create;
18607 rm -f conftest.$ac_objext conftest$ac_exeext
18608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18609 (eval $ac_link) 2>&5
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); } &&
18613 { ac_try='test -s conftest$ac_exeext'
18614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18615 (eval $ac_try) 2>&5
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); }; }; then
18619 ac_cv_func_pthread_create=yes
18621 echo "$as_me: failed program was:" >&5
18622 sed 's/^/| /' conftest.$ac_ext >&5
18624 ac_cv_func_pthread_create=no
18626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18628 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
18629 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
18642 cat >>confdefs.h <<\_ACEOF
18648 CFLAGS=${CFLAGS--O}
18649 LDFLAGS=${LDFLAGS--O}
18650 DB_LIBS="${SQL_LFLAGS}"
18652 CPPFLAGS="$CPPFLAGS"
18677 # Finally we set appropriate distribution specific
18678 # variables and defaults
18680 # PFILES are platform specific files
18681 PFILES="platforms/Makefile"
18685 hostname=`uname -n | cut -d '.' -f 1`
18686 case "$DISTNAME" in
18689 PSCMD="ps -e -o pid,comm"
18690 PFILES="${PFILES} \
18691 platforms/aix/Makefile"
18692 TAPEDRIVE="/dev/rmt0.1"
18696 PTHREAD_LIB="-lpthread -lexc"
18697 if test "${CC}" = "gcc" ; then
18704 TAPEDRIVE="/dev/nrmt0"
18707 DISTVER=`uname -a |awk '{print $3}'`
18708 TAPEDRIVE="/dev/nrmt0"
18709 PTHREAD_LIB="-pthread"
18710 CFLAGS="${CFLAGS} -pthread"
18711 PSCMD="ps -x -o pid,command"
18714 PFILES="${PFILES} \
18715 platforms/bsdi/Makefile \
18716 platforms/bsdi/bacula-fd \
18717 platforms/bsdi/bacula-sd \
18718 platforms/bsdi/bacula-dir"
18719 largefile_support="yes"
18722 DISTVER=`uname -a |awk '{print $3}'`
18723 TAPEDRIVE="/dev/nrst0"
18725 WCFLAGS="-mwindows"
18726 WLDFLAGS="-mwindows"
18730 TAPEDRIVE="/dev/nst0"
18731 PSCMD="ps -e -o pid,command"
18733 PFILES="${PFILES} \
18734 platforms/darwin/Makefile"
18737 DISTVER=`cat /etc/debian_version`
18738 TAPEDRIVE="/dev/nrst0"
18739 PSCMD="ps -e -o pid,command"
18742 DISTVER=`uname -a |awk '{print $3}'`
18743 VER=`echo $DISTVER | cut -c 1`
18744 if test x$VER = x4 ; then
18745 PTHREAD_LIB="-pthread"
18746 CFLAGS="${CFLAGS} -pthread"
18750 TAPEDRIVE="/dev/nrsa0"
18751 PSCMD="ps -x -o pid,command"
18752 PFILES="${PFILES} \
18753 platforms/freebsd/Makefile \
18754 platforms/freebsd/bacula-fd \
18755 platforms/freebsd/bacula-sd \
18756 platforms/freebsd/bacula-dir"
18757 largefile_support="yes"
18760 PSCMD="UNIX95=1 ps -e -o pid,comm"
18761 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
18763 TAPEDRIVE="/dev/rmt/0hnb"
18767 TAPEDRIVE="/dev/rmt/0cbn"
18768 PSCMD="ps -e -o pid,comm"
18769 PFILES="${PFILES} \
18770 platforms/irix/Makefile \
18771 platforms/irix/bacula-fd \
18772 platforms/irix/bacula-sd \
18773 platforms/irix/bacula-dir"
18776 DISTVER=`uname -a |awk '{print $3}'`
18779 TAPEDRIVE="/dev/nrst0"
18780 PSCMD="ps -a -o pid,command"
18781 PTHREAD_LIB="-pthread"
18782 CFLAGS="${CFLAGS} -pthread"
18785 DISTVER=`uname -a |awk '{print $3}'`
18788 TAPEDRIVE="/dev/nrst0"
18789 PSCMD="ps -a -o pid,command"
18790 PTHREAD_LIB="-pthread"
18791 CFLAGS="${CFLAGS} -pthread"
18792 PFILES="${PFILES} \
18793 platforms/openbsd/Makefile \
18794 platforms/openbsd/bacula-fd \
18795 platforms/openbsd/bacula-sd \
18796 platforms/openbsd/bacula-dir"
18799 if test -f /etc/whitebox-release ; then
18800 f=/etc/whitebox-release
18802 f=/etc/redhat-release
18804 if test `cat $f | grep release |\
18805 cut -f 3 -d ' '`x = "Enterprise"x ; then
18806 DISTVER="Enterprise "`cat $f | grep release |\
18809 DISTVER=`cat /etc/redhat-release | grep release |\
18812 TAPEDRIVE="/dev/nst0"
18813 PSCMD="ps -e -o pid,command"
18814 PFILES="${PFILES} \
18815 platforms/redhat/Makefile \
18816 platforms/redhat/bacula-fd \
18817 platforms/redhat/bacula-sd \
18818 platforms/redhat/bacula-dir \
18819 platforms/redhat/bacula.spec \
18821 hostname=`hostname -s`
18824 DISTVER=`cat /etc/mandrake-release | grep release |\
18826 TAPEDRIVE="/dev/nst0"
18827 PSCMD="ps -e -o pid,command"
18828 PFILES="${PFILES} \
18829 platforms/mandrake/Makefile \
18830 platforms/mandrake/bacula-fd \
18831 platforms/mandrake/bacula-sd \
18832 platforms/mandrake/bacula-dir \
18833 platforms/mandrake/bacula.spec \
18837 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
18838 TAPEDRIVE="/dev/nst0"
18839 PSCMD="ps -e -o pid,command"
18840 PFILES="${PFILES} \
18841 platforms/gentoo/Makefile \
18842 platforms/gentoo/bacula-fd \
18843 platforms/gentoo/bacula-sd \
18844 platforms/gentoo/bacula-dir"
18847 DISTVER=`cat /etc/slackware-version`
18848 TAPEDRIVE="/dev/nst0"
18849 PSCMD="ps -e -o pid,command"
18850 PFILES="${PFILES} \
18851 platforms/slackware/Makefile \
18852 platforms/slackware/rc.bacula-fd \
18853 platforms/slackware/rc.bacula-sd \
18854 platforms/slackware/rc.bacula-dir\
18855 platforms/slackware/functions.bacula"
18859 TAPEDRIVE="/dev/rmt/0cbn"
18860 PSCMD="ps -e -o pid,comm"
18861 PFILES="${PFILES} \
18862 platforms/solaris/Makefile \
18863 platforms/solaris/bacula-fd \
18864 platforms/solaris/bacula-sd \
18865 platforms/solaris/bacula-dir"
18866 if test x$DISTVER = x5.6 ; then
18867 cat >>confdefs.h <<\_ACEOF
18868 #define HAVE_OLD_SOCKOPT 1
18874 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
18876 TAPEDRIVE="/dev/nst0"
18877 PSCMD="ps -e -o pid,command"
18878 PFILES="${PFILES} \
18879 platforms/suse/Makefile \
18880 platforms/suse/bacula-fd \
18881 platforms/suse/bacula-sd \
18882 platforms/suse/bacula-dir \
18883 platforms/suse/bacula \
18884 platforms/suse/bacula.spec"
18889 TAPEDRIVE="/dev/nst0"
18890 PSCMD="ps -e -o pid,command"
18891 PFILES="${PFILES} \
18892 platforms/suse/Makefile \
18893 platforms/suse/bacula-fd \
18894 platforms/suse/bacula-sd \
18895 platforms/suse/bacula-dir"
18899 TAPEDRIVE="/dev/nst0"
18902 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18908 LIBS="$PTHREAD_LIB $LIBS"
18910 cat >>confdefs.h <<_ACEOF
18914 cat >>confdefs.h <<_ACEOF
18925 MCOMMON=./autoconf/Make.common
18928 if test "x${subsysdir}" = "x${sbindir}" ; then
18931 echo "You have set both --sbindir and --with-subsys-dir"
18932 echo " equal to: ${subsysdir} "
18933 echo "This is not permitted. Please reconfigure."
18935 echo "Aborting configuration ..."
18941 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"
18942 ac_config_commands="$ac_config_commands default"
18943 cat >confcache <<\_ACEOF
18944 # This file is a shell script that caches the results of configure
18945 # tests run on this system so they can be shared between configure
18946 # scripts and configure runs, see configure's option --config-cache.
18947 # It is not useful on other systems. If it contains results you don't
18948 # want to keep, you may remove or edit it.
18950 # config.status only pays attention to the cache file if you give it
18951 # the --recheck option to rerun configure.
18953 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18954 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18955 # following values.
18959 # The following way of writing the cache mishandles newlines in values,
18960 # but we know of no workaround that is simple, portable, and efficient.
18961 # So, don't put newlines in cache variables' values.
18962 # Ultrix sh set writes to stderr and can't be redirected directly,
18963 # and sets the high bit in the cache file unless we assign to the vars.
18966 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18968 # `set' does not quote correctly, so add quotes (double-quote
18969 # substitution turns \\\\ into \\, and sed turns \\ into \).
18972 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18975 # `set' quotes correctly as required by POSIX, so do not add quotes.
18977 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18986 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18988 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18989 if test -w $cache_file; then
18990 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18991 cat confcache >$cache_file
18993 echo "not updating unwritable cache $cache_file"
18998 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18999 # Let make expand exec_prefix.
19000 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19002 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19003 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19004 # trailing colons and then remove the whole line if VPATH becomes empty
19005 # (actually we leave an empty line to preserve line numbers).
19006 if test "x$srcdir" = x.; then
19007 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19008 s/:*\$(srcdir):*/:/;
19009 s/:*\${srcdir}:*/:/;
19011 s/^\([^=]*=[ ]*\):*/\1/;
19017 DEFS=-DHAVE_CONFIG_H
19021 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19022 # 1. Remove the extension, and $U if already installed.
19023 ac_i=`echo "$ac_i" |
19024 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19026 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19027 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19029 LIBOBJS=$ac_libobjs
19031 LTLIBOBJS=$ac_ltlibobjs
19035 : ${CONFIG_STATUS=./config.status}
19036 ac_clean_files_save=$ac_clean_files
19037 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19038 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19039 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19040 cat >$CONFIG_STATUS <<_ACEOF
19042 # Generated by $as_me.
19043 # Run this file to recreate the current configuration.
19044 # Compiler output produced by configure, useful for debugging
19045 # configure, is in config.log if it exists.
19048 ac_cs_recheck=false
19050 SHELL=\${CONFIG_SHELL-$SHELL}
19053 cat >>$CONFIG_STATUS <<\_ACEOF
19054 ## --------------------- ##
19055 ## M4sh Initialization. ##
19056 ## --------------------- ##
19058 # Be Bourne compatible
19059 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19062 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19063 # is contrary to our usage. Disable this feature.
19064 alias -g '${1+"$@"}'='"$@"'
19065 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19069 # Support unset when possible.
19070 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19077 # Work around bugs in pre-3.0 UWIN ksh.
19078 $as_unset ENV MAIL MAILPATH
19085 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19086 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19087 LC_TELEPHONE LC_TIME
19089 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19090 eval $as_var=C; export $as_var
19096 # Required to use basename.
19097 if expr a : '\(a\)' >/dev/null 2>&1; then
19103 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19104 as_basename=basename
19110 # Name of the executable.
19111 as_me=`$as_basename "$0" ||
19112 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19113 X"$0" : 'X\(//\)$' \| \
19114 X"$0" : 'X\(/\)$' \| \
19115 . : '\(.\)' 2>/dev/null ||
19117 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19118 /^X\/\(\/\/\)$/{ s//\1/; q; }
19119 /^X\/\(\/\).*/{ s//\1/; q; }
19123 # PATH needs CR, and LINENO needs CR and PATH.
19124 # Avoid depending upon Character Ranges.
19125 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19126 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19127 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19128 as_cr_digits='0123456789'
19129 as_cr_alnum=$as_cr_Letters$as_cr_digits
19131 # The user is always right.
19132 if test "${PATH_SEPARATOR+set}" != set; then
19133 echo "#! /bin/sh" >conf$$.sh
19134 echo "exit 0" >>conf$$.sh
19136 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19145 as_lineno_1=$LINENO
19146 as_lineno_2=$LINENO
19147 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19148 test "x$as_lineno_1" != "x$as_lineno_2" &&
19149 test "x$as_lineno_3" = "x$as_lineno_2" || {
19150 # Find who we are. Look in the path if we contain no path at all
19153 *[\\/]* ) as_myself=$0 ;;
19154 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19155 for as_dir in $PATH
19158 test -z "$as_dir" && as_dir=.
19159 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19164 # We did not find ourselves, most probably we were run as `sh COMMAND'
19165 # in which case we are not to be found in the path.
19166 if test "x$as_myself" = x; then
19169 if test ! -f "$as_myself"; then
19170 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19171 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19172 { (exit 1); exit 1; }; }
19174 case $CONFIG_SHELL in
19176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19177 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19180 test -z "$as_dir" && as_dir=.
19181 for as_base in sh bash ksh sh5; do
19184 if ("$as_dir/$as_base" -c '
19185 as_lineno_1=$LINENO
19186 as_lineno_2=$LINENO
19187 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19188 test "x$as_lineno_1" != "x$as_lineno_2" &&
19189 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19190 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19191 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19192 CONFIG_SHELL=$as_dir/$as_base
19193 export CONFIG_SHELL
19194 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19202 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19203 # uniformly replaced by the line number. The first 'sed' inserts a
19204 # line-number line before each line; the second 'sed' does the real
19205 # work. The second script uses 'N' to pair each line-number line
19206 # with the numbered line, and appends trailing '-' during
19207 # substitution so that $LINENO is not a special case at line end.
19208 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19209 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19210 sed '=' <$as_myself |
19215 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19218 s,^['$as_cr_digits']*\n,,
19219 ' >$as_me.lineno &&
19220 chmod +x $as_me.lineno ||
19221 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19222 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19223 { (exit 1); exit 1; }; }
19225 # Don't try to exec as it changes $[0], causing all sort of problems
19226 # (the dirname of $[0] is not the place where we might find the
19227 # original and so on. Autoconf is especially sensible to this).
19229 # Exit status is that of the last command.
19234 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19235 *c*,-n*) ECHO_N= ECHO_C='
19237 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19238 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19241 if expr a : '\(a\)' >/dev/null 2>&1; then
19247 rm -f conf$$ conf$$.exe conf$$.file
19249 if ln -s conf$$.file conf$$ 2>/dev/null; then
19250 # We could just check for DJGPP; but this test a) works b) is more generic
19251 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19252 if test -f conf$$.exe; then
19253 # Don't use ln at all; we don't have any links
19258 elif ln conf$$.file conf$$ 2>/dev/null; then
19263 rm -f conf$$ conf$$.exe conf$$.file
19265 if mkdir -p . 2>/dev/null; then
19271 as_executable_p="test -f"
19273 # Sed expression to map a string onto a valid CPP name.
19274 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19276 # Sed expression to map a string onto a valid variable name.
19277 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19281 # We need space, tab and new line, in precisely that order.
19291 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19292 # report actual input values of CONFIG_FILES etc. instead of their
19293 # values after options handling. Logging --version etc. is OK.
19297 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19298 ## Running $as_me. ##
19303 This file was extended by $as_me, which was
19304 generated by GNU Autoconf 2.57. Invocation command line was
19306 CONFIG_FILES = $CONFIG_FILES
19307 CONFIG_HEADERS = $CONFIG_HEADERS
19308 CONFIG_LINKS = $CONFIG_LINKS
19309 CONFIG_COMMANDS = $CONFIG_COMMANDS
19313 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19317 # Files that config.status was made for.
19318 if test -n "$ac_config_files"; then
19319 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19322 if test -n "$ac_config_headers"; then
19323 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19326 if test -n "$ac_config_links"; then
19327 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19330 if test -n "$ac_config_commands"; then
19331 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19334 cat >>$CONFIG_STATUS <<\_ACEOF
19337 \`$as_me' instantiates files from templates according to the
19338 current configuration.
19340 Usage: $0 [OPTIONS] [FILE]...
19342 -h, --help print this help, then exit
19343 -V, --version print version number, then exit
19344 -q, --quiet do not print progress messages
19345 -d, --debug don't remove temporary files
19346 --recheck update $as_me by reconfiguring in the same conditions
19347 --file=FILE[:TEMPLATE]
19348 instantiate the configuration file FILE
19349 --header=FILE[:TEMPLATE]
19350 instantiate the configuration header FILE
19352 Configuration files:
19355 Configuration headers:
19358 Configuration commands:
19361 Report bugs to <bug-autoconf@gnu.org>."
19364 cat >>$CONFIG_STATUS <<_ACEOF
19367 configured by $0, generated by GNU Autoconf 2.57,
19368 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19370 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19371 Free Software Foundation, Inc.
19372 This config.status script is free software; the Free Software Foundation
19373 gives unlimited permission to copy, distribute and modify it."
19378 cat >>$CONFIG_STATUS <<\_ACEOF
19379 # If no file are specified by the user, then we need to provide default
19380 # value. By we need to know if files were specified by the user.
19386 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19387 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19395 *) # This is not an option, so the user has probably given explicit
19398 ac_need_defaults=false;;
19402 # Handling of the options.
19404 cat >>$CONFIG_STATUS <<\_ACEOF
19405 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19407 --version | --vers* | -V )
19408 echo "$ac_cs_version"; exit 0 ;;
19410 # Conflict between --help and --header
19411 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19412 Try \`$0 --help' for more information." >&5
19413 echo "$as_me: error: ambiguous option: $1
19414 Try \`$0 --help' for more information." >&2;}
19415 { (exit 1); exit 1; }; };;
19416 --help | --hel | -h )
19417 echo "$ac_cs_usage"; exit 0 ;;
19418 --debug | --d* | -d )
19420 --file | --fil | --fi | --f )
19422 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19423 ac_need_defaults=false;;
19424 --header | --heade | --head | --hea )
19426 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19427 ac_need_defaults=false;;
19428 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19429 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19432 # This is an error.
19433 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19434 Try \`$0 --help' for more information." >&5
19435 echo "$as_me: error: unrecognized option: $1
19436 Try \`$0 --help' for more information." >&2;}
19437 { (exit 1); exit 1; }; } ;;
19439 *) ac_config_targets="$ac_config_targets $1" ;;
19445 ac_configure_extra_args=
19447 if $ac_cs_silent; then
19449 ac_configure_extra_args="$ac_configure_extra_args --silent"
19453 cat >>$CONFIG_STATUS <<_ACEOF
19454 if \$ac_cs_recheck; then
19455 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19456 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19465 cat >>$CONFIG_STATUS <<\_ACEOF
19466 for ac_config_target in $ac_config_targets
19468 case "$ac_config_target" in
19469 # Handling of arguments.
19470 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19471 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19472 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19473 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19474 "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
19475 "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
19476 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19477 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19478 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19479 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19480 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19481 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19482 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19483 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19484 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19485 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19486 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19487 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19488 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19489 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19490 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19491 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19492 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19493 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19494 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19495 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19496 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19497 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19498 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19499 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19500 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19501 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19502 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19503 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19504 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19505 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19506 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19507 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19508 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19509 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19510 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19511 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19512 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19513 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19514 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19515 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19516 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19517 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19518 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19519 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19520 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19521 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19522 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19523 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19524 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19525 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19526 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19527 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19528 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19529 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19530 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19531 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19532 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19533 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19534 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19535 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19536 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19537 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19538 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19539 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19540 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19541 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19542 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19543 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19544 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19545 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19546 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19547 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19548 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19549 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19550 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19551 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19552 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19553 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19554 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19555 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19556 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19557 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19558 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19559 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19560 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19561 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19562 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19563 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19564 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19565 { (exit 1); exit 1; }; };;
19569 # If the user did not use the arguments to specify the items to instantiate,
19570 # then the envvar interface is used. Set only those that are not.
19571 # We use the long form for the default assignment because of an extremely
19572 # bizarre bug on SunOS 4.1.3.
19573 if $ac_need_defaults; then
19574 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19575 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19576 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19579 # Have a temporary directory for convenience. Make it in the build tree
19580 # simply because there is no reason to put it here, and in addition,
19581 # creating and moving files from /tmp can sometimes cause problems.
19582 # Create a temporary directory, and hook for its removal unless debugging.
19585 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19586 trap '{ (exit 1); exit 1; }' 1 2 13 15
19589 # Create a (secure) tmp directory for tmp files.
19592 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19593 test -n "$tmp" && test -d "$tmp"
19596 tmp=./confstat$$-$RANDOM
19597 (umask 077 && mkdir $tmp)
19600 echo "$me: cannot create a temporary directory in ." >&2
19601 { (exit 1); exit 1; }
19606 cat >>$CONFIG_STATUS <<_ACEOF
19609 # CONFIG_FILES section.
19612 # No need to generate the scripts if there are no CONFIG_FILES.
19613 # This happens for instance when ./config.status config.h
19614 if test -n "\$CONFIG_FILES"; then
19615 # Protect against being on the right side of a sed subst in config.status.
19616 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19617 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19618 s,@SHELL@,$SHELL,;t t
19619 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19620 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19621 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19622 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19623 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19624 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19625 s,@exec_prefix@,$exec_prefix,;t t
19626 s,@prefix@,$prefix,;t t
19627 s,@program_transform_name@,$program_transform_name,;t t
19628 s,@bindir@,$bindir,;t t
19629 s,@sbindir@,$sbindir,;t t
19630 s,@libexecdir@,$libexecdir,;t t
19631 s,@datadir@,$datadir,;t t
19632 s,@sysconfdir@,$sysconfdir,;t t
19633 s,@sharedstatedir@,$sharedstatedir,;t t
19634 s,@localstatedir@,$localstatedir,;t t
19635 s,@libdir@,$libdir,;t t
19636 s,@includedir@,$includedir,;t t
19637 s,@oldincludedir@,$oldincludedir,;t t
19638 s,@infodir@,$infodir,;t t
19639 s,@mandir@,$mandir,;t t
19640 s,@build_alias@,$build_alias,;t t
19641 s,@host_alias@,$host_alias,;t t
19642 s,@target_alias@,$target_alias,;t t
19643 s,@DEFS@,$DEFS,;t t
19644 s,@ECHO_C@,$ECHO_C,;t t
19645 s,@ECHO_N@,$ECHO_N,;t t
19646 s,@ECHO_T@,$ECHO_T,;t t
19647 s,@LIBS@,$LIBS,;t t
19648 s,@BUILD_DIR@,$BUILD_DIR,;t t
19649 s,@TRUEPRG@,$TRUEPRG,;t t
19650 s,@FALSEPRG@,$FALSEPRG,;t t
19651 s,@VERSION@,$VERSION,;t t
19652 s,@DATE@,$DATE,;t t
19653 s,@LSMDATE@,$LSMDATE,;t t
19655 s,@CFLAGS@,$CFLAGS,;t t
19656 s,@LDFLAGS@,$LDFLAGS,;t t
19657 s,@CPPFLAGS@,$CPPFLAGS,;t t
19658 s,@ac_ct_CC@,$ac_ct_CC,;t t
19659 s,@EXEEXT@,$EXEEXT,;t t
19660 s,@OBJEXT@,$OBJEXT,;t t
19662 s,@CXXFLAGS@,$CXXFLAGS,;t t
19663 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19665 s,@EGREP@,$EGREP,;t t
19666 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19667 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19668 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19669 s,@RANLIB@,$RANLIB,;t t
19670 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19676 s,@ECHO@,$ECHO,;t t
19680 s,@OPENSSL@,$OPENSSL,;t t
19682 s,@PKGCONFIG@,$PKGCONFIG,;t t
19683 s,@WXCONFIG@,$WXCONFIG,;t t
19684 s,@CDRECORD@,$CDRECORD,;t t
19685 s,@ARFLAGS@,$ARFLAGS,;t t
19686 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
19687 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
19688 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
19689 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
19690 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
19691 s,@build@,$build,;t t
19692 s,@build_cpu@,$build_cpu,;t t
19693 s,@build_vendor@,$build_vendor,;t t
19694 s,@build_os@,$build_os,;t t
19695 s,@host@,$host,;t t
19696 s,@host_cpu@,$host_cpu,;t t
19697 s,@host_vendor@,$host_vendor,;t t
19698 s,@host_os@,$host_os,;t t
19699 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
19700 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
19701 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
19702 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
19703 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
19704 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
19705 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
19706 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
19707 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
19708 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
19709 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
19710 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
19711 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
19712 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
19713 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
19714 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
19715 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
19716 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
19717 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
19718 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
19719 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
19720 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
19721 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
19722 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
19723 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
19724 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
19725 s,@MSGFMT@,$MSGFMT,;t t
19726 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
19727 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
19728 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
19729 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
19730 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
19731 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
19732 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
19733 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
19734 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
19735 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
19736 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
19737 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
19738 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
19739 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
19740 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
19741 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
19742 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
19743 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
19744 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
19745 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
19746 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
19747 s,@GNOME_DIR@,$GNOME_DIR,;t t
19748 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
19749 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
19750 s,@WX_DIR@,$WX_DIR,;t t
19751 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
19752 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
19753 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
19754 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
19755 s,@STATIC_FD@,$STATIC_FD,;t t
19756 s,@STATIC_SD@,$STATIC_SD,;t t
19757 s,@STATIC_DIR@,$STATIC_DIR,;t t
19758 s,@STATIC_CONS@,$STATIC_CONS,;t t
19759 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
19760 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
19761 s,@ALL_DIRS@,$ALL_DIRS,;t t
19762 s,@CONS_INC@,$CONS_INC,;t t
19763 s,@CONS_OBJ@,$CONS_OBJ,;t t
19764 s,@CONS_SRC@,$CONS_SRC,;t t
19765 s,@CONS_LIBS@,$CONS_LIBS,;t t
19766 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
19767 s,@READLINE_SRC@,$READLINE_SRC,;t t
19768 s,@CDSTL@,$CDSTL,;t t
19769 s,@working_dir@,$working_dir,;t t
19770 s,@scriptdir@,$scriptdir,;t t
19771 s,@dump_email@,$dump_email,;t t
19772 s,@job_email@,$job_email,;t t
19773 s,@smtp_host@,$smtp_host,;t t
19774 s,@piddir@,$piddir,;t t
19775 s,@subsysdir@,$subsysdir,;t t
19776 s,@baseport@,$baseport,;t t
19777 s,@dir_port@,$dir_port,;t t
19778 s,@fd_port@,$fd_port,;t t
19779 s,@sd_port@,$sd_port,;t t
19780 s,@dir_password@,$dir_password,;t t
19781 s,@fd_password@,$fd_password,;t t
19782 s,@sd_password@,$sd_password,;t t
19783 s,@mon_dir_password@,$mon_dir_password,;t t
19784 s,@mon_fd_password@,$mon_fd_password,;t t
19785 s,@mon_sd_password@,$mon_sd_password,;t t
19786 s,@dir_user@,$dir_user,;t t
19787 s,@dir_group@,$dir_group,;t t
19788 s,@sd_user@,$sd_user,;t t
19789 s,@sd_group@,$sd_group,;t t
19790 s,@fd_user@,$fd_user,;t t
19791 s,@fd_group@,$fd_group,;t t
19792 s,@SBINPERM@,$SBINPERM,;t t
19793 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
19794 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
19795 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
19796 s,@cats@,$cats,;t t
19797 s,@DB_NAME@,$DB_NAME,;t t
19798 s,@GETCONF@,$GETCONF,;t t
19799 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
19800 s,@X_CFLAGS@,$X_CFLAGS,;t t
19801 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
19802 s,@X_LIBS@,$X_LIBS,;t t
19803 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
19804 s,@LIBOBJS@,$LIBOBJS,;t t
19805 s,@ALLOCA@,$ALLOCA,;t t
19806 s,@FDLIBS@,$FDLIBS,;t t
19807 s,@DEBUG@,$DEBUG,;t t
19808 s,@DINCLUDE@,$DINCLUDE,;t t
19809 s,@DLIB@,$DLIB,;t t
19810 s,@DB_LIBS@,$DB_LIBS,;t t
19811 s,@WCFLAGS@,$WCFLAGS,;t t
19812 s,@WLDFLAGS@,$WLDFLAGS,;t t
19813 s,@OBJLIST@,$OBJLIST,;t t
19814 s,@hostname@,$hostname,;t t
19815 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
19816 s,@PSCMD@,$PSCMD,;t t
19817 s,@WIN32@,$WIN32,;t t
19818 s,@MACOSX@,$MACOSX,;t t
19819 s,@DISTNAME@,$DISTNAME,;t t
19820 s,@DISTVER@,$DISTVER,;t t
19821 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19822 /@MCOMMON@/r $MCOMMON
19828 cat >>$CONFIG_STATUS <<\_ACEOF
19829 # Split the substitutions into bite-sized pieces for seds with
19830 # small command number limits, like on Digital OSF/1 and HP-UX.
19831 ac_max_sed_lines=48
19832 ac_sed_frag=1 # Number of current file.
19833 ac_beg=1 # First line for current file.
19834 ac_end=$ac_max_sed_lines # Line after last line for current file.
19837 while $ac_more_lines; do
19838 if test $ac_beg -gt 1; then
19839 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19841 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19843 if test ! -s $tmp/subs.frag; then
19844 ac_more_lines=false
19846 # The purpose of the label and of the branching condition is to
19847 # speed up the sed processing (if there are no `@' at all, there
19848 # is no need to browse any of the substitutions).
19849 # These are the two extra sed commands mentioned above.
19851 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19852 if test -z "$ac_sed_cmds"; then
19853 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19855 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19857 ac_sed_frag=`expr $ac_sed_frag + 1`
19859 ac_end=`expr $ac_end + $ac_max_sed_lines`
19862 if test -z "$ac_sed_cmds"; then
19865 fi # test -n "$CONFIG_FILES"
19868 cat >>$CONFIG_STATUS <<\_ACEOF
19869 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19870 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19872 - | *:- | *:-:* ) # input from stdin
19874 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19875 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19876 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19877 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19878 * ) ac_file_in=$ac_file.in ;;
19881 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19882 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19883 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19884 X"$ac_file" : 'X\(//\)[^/]' \| \
19885 X"$ac_file" : 'X\(//\)$' \| \
19886 X"$ac_file" : 'X\(/\)' \| \
19887 . : '\(.\)' 2>/dev/null ||
19889 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19890 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19891 /^X\(\/\/\)$/{ s//\1/; q; }
19892 /^X\(\/\).*/{ s//\1/; q; }
19894 { if $as_mkdir_p; then
19899 while test ! -d "$as_dir"; do
19900 as_dirs="$as_dir $as_dirs"
19901 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19903 X"$as_dir" : 'X\(//\)[^/]' \| \
19904 X"$as_dir" : 'X\(//\)$' \| \
19905 X"$as_dir" : 'X\(/\)' \| \
19906 . : '\(.\)' 2>/dev/null ||
19908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19909 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19910 /^X\(\/\/\)$/{ s//\1/; q; }
19911 /^X\(\/\).*/{ s//\1/; q; }
19914 test ! -n "$as_dirs" || mkdir $as_dirs
19915 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19916 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19917 { (exit 1); exit 1; }; }; }
19921 if test "$ac_dir" != .; then
19922 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19923 # A "../" for each directory in $ac_dir_suffix.
19924 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19926 ac_dir_suffix= ac_top_builddir=
19930 .) # No --srcdir option. We are building in place.
19932 if test -z "$ac_top_builddir"; then
19935 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19937 [\\/]* | ?:[\\/]* ) # Absolute path.
19938 ac_srcdir=$srcdir$ac_dir_suffix;
19939 ac_top_srcdir=$srcdir ;;
19940 *) # Relative path.
19941 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19942 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19944 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19946 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19947 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19948 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19949 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19953 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19954 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19957 if test x"$ac_file" != x-; then
19958 { echo "$as_me:$LINENO: creating $ac_file" >&5
19959 echo "$as_me: creating $ac_file" >&6;}
19962 # Let's still pretend it is `configure' which instantiates (i.e., don't
19963 # use $as_me), people would be surprised to read:
19964 # /* config.h. Generated by config.status. */
19965 if test x"$ac_file" = x-; then
19968 configure_input="$ac_file. "
19970 configure_input=$configure_input"Generated from `echo $ac_file_in |
19971 sed 's,.*/,,'` by configure."
19973 # First look for the input files in the build tree, otherwise in the
19975 ac_file_inputs=`IFS=:
19976 for f in $ac_file_in; do
19978 -) echo $tmp/stdin ;;
19980 # Absolute (can't be DOS-style, as IFS=:)
19981 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19982 echo "$as_me: error: cannot find input file: $f" >&2;}
19983 { (exit 1); exit 1; }; }
19986 if test -f "$f"; then
19989 elif test -f "$srcdir/$f"; then
19994 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19995 echo "$as_me: error: cannot find input file: $f" >&2;}
19996 { (exit 1); exit 1; }; }
19999 done` || { (exit 1); exit 1; }
20001 cat >>$CONFIG_STATUS <<_ACEOF
20005 cat >>$CONFIG_STATUS <<\_ACEOF
20007 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20008 s,@configure_input@,$configure_input,;t t
20009 s,@srcdir@,$ac_srcdir,;t t
20010 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20011 s,@top_srcdir@,$ac_top_srcdir,;t t
20012 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20013 s,@builddir@,$ac_builddir,;t t
20014 s,@abs_builddir@,$ac_abs_builddir,;t t
20015 s,@top_builddir@,$ac_top_builddir,;t t
20016 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20017 s,@INSTALL@,$ac_INSTALL,;t t
20018 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20020 if test x"$ac_file" != x-; then
20021 mv $tmp/out $ac_file
20029 cat >>$CONFIG_STATUS <<\_ACEOF
20032 # CONFIG_HEADER section.
20035 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20036 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20038 # ac_d sets the value in "#define NAME VALUE" lines.
20039 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20040 ac_dB='[ ].*$,\1#\2'
20043 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20044 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20045 ac_uB='$,\1#\2define\3'
20049 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20050 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20052 - | *:- | *:-:* ) # input from stdin
20054 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20055 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20056 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20057 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20058 * ) ac_file_in=$ac_file.in ;;
20061 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20062 echo "$as_me: creating $ac_file" >&6;}
20064 # First look for the input files in the build tree, otherwise in the
20066 ac_file_inputs=`IFS=:
20067 for f in $ac_file_in; do
20069 -) echo $tmp/stdin ;;
20071 # Absolute (can't be DOS-style, as IFS=:)
20072 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20073 echo "$as_me: error: cannot find input file: $f" >&2;}
20074 { (exit 1); exit 1; }; }
20077 if test -f "$f"; then
20080 elif test -f "$srcdir/$f"; then
20085 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20086 echo "$as_me: error: cannot find input file: $f" >&2;}
20087 { (exit 1); exit 1; }; }
20090 done` || { (exit 1); exit 1; }
20091 # Remove the trailing spaces.
20092 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20096 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20097 # `conftest.undefs', that substitutes the proper values into
20098 # config.h.in to produce config.h. The first handles `#define'
20099 # templates, and the second `#undef' templates.
20100 # And first: Protect against being on the right side of a sed subst in
20101 # config.status. Protect against being in an unquoted here document
20102 # in config.status.
20103 rm -f conftest.defines conftest.undefs
20104 # Using a here document instead of a string reduces the quoting nightmare.
20105 # Putting comments in sed scripts is not portable.
20107 # `end' is used to avoid that the second main sed command (meant for
20108 # 0-ary CPP macros) applies to n-ary macro definitions.
20109 # See the Autoconf documentation for `clear'.
20110 cat >confdef2sed.sed <<\_ACEOF
20115 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20117 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20120 # If some macros were called several times there might be several times
20121 # the same #defines, which is useless. Nevertheless, we may not want to
20122 # sort them, since we want the *last* AC-DEFINE to be honored.
20123 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20124 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20125 rm -f confdef2sed.sed
20127 # This sed command replaces #undef with comments. This is necessary, for
20128 # example, in the case of _POSIX_SOURCE, which is predefined and required
20129 # on some systems where configure will not decide to define it.
20130 cat >>conftest.undefs <<\_ACEOF
20131 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20134 # Break up conftest.defines because some shells have a limit on the size
20135 # of here documents, and old seds have small limits too (100 cmds).
20136 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20137 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20138 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20139 echo ' :' >>$CONFIG_STATUS
20140 rm -f conftest.tail
20141 while grep . conftest.defines >/dev/null
20143 # Write a limited-size here document to $tmp/defines.sed.
20144 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20145 # Speed up: don't consider the non `#define' lines.
20146 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20147 # Work around the forget-to-reset-the-flag bug.
20148 echo 't clr' >>$CONFIG_STATUS
20149 echo ': clr' >>$CONFIG_STATUS
20150 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20152 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20154 mv $tmp/out $tmp/in
20156 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20157 rm -f conftest.defines
20158 mv conftest.tail conftest.defines
20160 rm -f conftest.defines
20161 echo ' fi # grep' >>$CONFIG_STATUS
20162 echo >>$CONFIG_STATUS
20164 # Break up conftest.undefs because some shells have a limit on the size
20165 # of here documents, and old seds have small limits too (100 cmds).
20166 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20167 rm -f conftest.tail
20168 while grep . conftest.undefs >/dev/null
20170 # Write a limited-size here document to $tmp/undefs.sed.
20171 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20172 # Speed up: don't consider the non `#undef'
20173 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20174 # Work around the forget-to-reset-the-flag bug.
20175 echo 't clr' >>$CONFIG_STATUS
20176 echo ': clr' >>$CONFIG_STATUS
20177 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20179 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20181 mv $tmp/out $tmp/in
20183 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20184 rm -f conftest.undefs
20185 mv conftest.tail conftest.undefs
20187 rm -f conftest.undefs
20189 cat >>$CONFIG_STATUS <<\_ACEOF
20190 # Let's still pretend it is `configure' which instantiates (i.e., don't
20191 # use $as_me), people would be surprised to read:
20192 # /* config.h. Generated by config.status. */
20193 if test x"$ac_file" = x-; then
20194 echo "/* Generated by configure. */" >$tmp/config.h
20196 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20198 cat $tmp/in >>$tmp/config.h
20200 if test x"$ac_file" != x-; then
20201 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20202 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20203 echo "$as_me: $ac_file is unchanged" >&6;}
20205 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20206 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20207 X"$ac_file" : 'X\(//\)[^/]' \| \
20208 X"$ac_file" : 'X\(//\)$' \| \
20209 X"$ac_file" : 'X\(/\)' \| \
20210 . : '\(.\)' 2>/dev/null ||
20212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20213 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20214 /^X\(\/\/\)$/{ s//\1/; q; }
20215 /^X\(\/\).*/{ s//\1/; q; }
20217 { if $as_mkdir_p; then
20222 while test ! -d "$as_dir"; do
20223 as_dirs="$as_dir $as_dirs"
20224 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20225 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20226 X"$as_dir" : 'X\(//\)[^/]' \| \
20227 X"$as_dir" : 'X\(//\)$' \| \
20228 X"$as_dir" : 'X\(/\)' \| \
20229 . : '\(.\)' 2>/dev/null ||
20231 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20232 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20233 /^X\(\/\/\)$/{ s//\1/; q; }
20234 /^X\(\/\).*/{ s//\1/; q; }
20237 test ! -n "$as_dirs" || mkdir $as_dirs
20238 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20239 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20240 { (exit 1); exit 1; }; }; }
20243 mv $tmp/config.h $ac_file
20247 rm -f $tmp/config.h
20251 cat >>$CONFIG_STATUS <<\_ACEOF
20254 # CONFIG_COMMANDS section.
20256 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20257 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20258 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20259 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20260 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20261 X"$ac_dest" : 'X\(//\)[^/]' \| \
20262 X"$ac_dest" : 'X\(//\)$' \| \
20263 X"$ac_dest" : 'X\(/\)' \| \
20264 . : '\(.\)' 2>/dev/null ||
20266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20267 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20268 /^X\(\/\/\)$/{ s//\1/; q; }
20269 /^X\(\/\).*/{ s//\1/; q; }
20273 if test "$ac_dir" != .; then
20274 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20275 # A "../" for each directory in $ac_dir_suffix.
20276 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20278 ac_dir_suffix= ac_top_builddir=
20282 .) # No --srcdir option. We are building in place.
20284 if test -z "$ac_top_builddir"; then
20287 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20289 [\\/]* | ?:[\\/]* ) # Absolute path.
20290 ac_srcdir=$srcdir$ac_dir_suffix;
20291 ac_top_srcdir=$srcdir ;;
20292 *) # Relative path.
20293 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20294 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20296 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20298 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20299 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20300 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20301 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20304 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20305 echo "$as_me: executing $ac_dest commands" >&6;}
20307 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20313 cat >>$CONFIG_STATUS <<\_ACEOF
20315 { (exit 0); exit 0; }
20317 chmod +x $CONFIG_STATUS
20318 ac_clean_files=$ac_clean_files_save
20321 # configure is writing to config.log, and then calls config.status.
20322 # config.status does its own redirection, appending to config.log.
20323 # Unfortunately, on DOS this fails, as config.log is still kept open
20324 # by configure, so config.status won't be able to write to it; its
20325 # output is simply discarded. So we exec the FD to /dev/null,
20326 # effectively closing config.log, so it can be properly (re)opened and
20327 # appended to by config.status. When coming back to configure, we
20328 # need to make the FD available again.
20329 if test "$no_create" != yes; then
20331 ac_config_status_args=
20332 test "$silent" = yes &&
20333 ac_config_status_args="$ac_config_status_args --quiet"
20335 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20337 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20338 # would make configure fail if this is the last instruction.
20339 $ac_cs_success || { (exit 1); exit 1; }
20344 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20345 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20350 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
20351 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
20353 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
20354 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
20356 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
20357 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
20359 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
20360 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
20362 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
20363 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
20365 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20366 chmod 755 $c/sqlite
20369 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20370 largefile_support="yes"
20374 # A whole lot of hand springs to get the compiler version.
20375 # This is because gcc changed the output in version 3.0
20377 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20378 if test "x${CCVERSION}" = "x" ; then
20379 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20381 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20382 if test x"${CXXVERSION}" = x ; then
20383 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20386 if test "x${subsysdir}" = "x${sbindir}" ; then
20389 echo "You have set --sbindir and --with-subsys-dir"
20390 echo " both equal to: ${subsysdir} "
20391 echo " This is not permitted. Please reconfigure."
20393 echo "Aborting configuration ..."
20399 if test "x${db_name}" = "xInternal" ; then
20402 echo "You have not specified either --enable-client-only or one of the"
20403 echo " supported databases: MySQL, PostgreSQL, or SQLite".
20404 echo " This is not permitted. Please reconfigure."
20406 echo "Aborting the configuration ..."
20413 Configuration on `date`:
20415 Host: $host -- ${DISTNAME} ${DISTVER}
20416 Bacula version: ${VERSION} (${DATE})
20417 Source code location: ${srcdir}
20418 Install binaries: ${sbindir}
20419 Install config files: ${sysconfdir}
20420 Scripts directory: ${scriptdir}
20421 Working directory: ${working_dir}
20422 PID directory: ${piddir}
20423 Subsys directory: ${subsysdir}
20424 C Compiler: ${CC} ${CCVERSION}
20425 C++ Compiler: ${CXX} ${CXXVERSION}
20426 Compiler flags: ${WCFLAGS} ${CFLAGS}
20427 Linker flags: ${WLDFLAGS} ${LDFLAGS}
20429 Statically Linked Tools: ${support_static_tools}
20430 Statically Linked FD: ${support_static_fd}
20431 Statically Linked SD: ${support_static_sd}
20432 Statically Linked DIR: ${support_static_dir}
20433 Statically Linked CONS: ${support_static_cons}
20434 Database type: ${db_name}
20435 Database lib: ${DB_LIBS}
20437 Job Output Email: ${job_email}
20438 Traceback Email: ${dump_email}
20439 SMTP Host Address: ${smtp_host}
20441 Director Port: ${dir_port}
20442 File daemon Port: ${fd_port}
20443 Storage daemon Port: ${sd_port}
20445 Director User: ${dir_user}
20446 Director Group: ${dir_group}
20447 Storage Daemon User: ${sd_user}
20448 Storage DaemonGroup: ${sd_group}
20449 File Daemon User: ${fd_user}
20450 File Daemon Group: ${fd_group}
20452 SQL binaries Directory ${SQL_BINDIR}
20454 Large file support: $largefile_support
20455 Bacula conio support: ${got_conio} ${CONS_LIBS}
20456 readline support: ${got_readline} ${PRTREADLINE_SRC}
20457 TCP Wrappers support: ${TCPW_MSG}
20458 ZLIB support: ${have_zlib}
20459 enable-smartalloc: ${support_smartalloc}
20460 enable-gnome: ${support_gnome} ${gnome_version}
20461 enable-wx-console: ${support_wx_console}
20462 enable-tray-monitor: ${support_tray_monitor}
20463 client-only: ${build_client_only}
20464 ACL support: ${have_acl}
20471 # cweb support: ${got_cweb} ${CWEB_SRC}
20472 # gmp support: ${got_gmp} ${GMP_SRC}