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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS 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 TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS ALL_DIRS CONS_INC CONS_LIBS CONS_LDFLAGS READLINE_SRC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password dir_user dir_group sd_user sd_group fd_user fd_group 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 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-smartalloc enable smartalloc debugging support disabled
860 --enable-static-tools enable static tape tools disabled
861 --enable-static-fd enable static File daemon disabled
862 --enable-static-sd enable static Storage daemon disabled
863 --enable-static-dir enable static Director disabled
864 --enable-static-cons enable static Console disabled
865 --enable-client-only build client (File daemon) only disabled
866 --disable-readline disable readline support enabled
868 --disable-largefile omit support for large files
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-gnome-includes Specify location of GNOME headers
874 --with-gnome-libs Specify location of GNOME libs
875 --with-gnome Specify prefix for GNOME files
876 --with-readline=DIR specify readline library directory
877 --with-tcp-wrappers=DIR enable tcpwrappers support
878 --with-working-dir=PATH specify path of Bacula working directory
879 --with-scriptdir=PATH specify path of Bacula scripts directory
880 --with-dump-email=EMAIL dump email address
881 --with-job-email=EMAIL job output email address
882 --with-smtp-host=HOST SMTP mail host address
883 --with-pid-dir=PATH specify location of Bacula pid files
884 --with-subsys-dir=PATH specify location of Bacula subsys file
885 --with-baseport=PORT specify base port address for daemons
886 --with-dir-password=PASSWORD specify Director's password
887 --with-fd-password=PASSWORD specify Client's password
888 --with-sd-password=PASSWORD specify Storage daemon's password
889 --with-dir-user=USER specify user for Director daemon
890 --with-dir-group=GROUP specify group for Director daemon
891 --with-sd-user=USER specify user for Storage daemon
892 --with-sd-group=GROUP specify group for Storage daemon
893 --with-fd-user=USER specify user for File daemon
894 --with-fd-group=GROUP specify group for File daemon
896 Which DBMS do you want to use (please select only one):
897 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
898 install directory, default is to search through
899 a number of common places for the MySQL files.
901 Which DBMS do you want to use (please select only one):
902 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
903 install directory, default is to search through
904 a number of common places for the MySQL files.
906 Which DBMS do you want to use (please select only one):
907 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
908 install directory, default is to search through
909 a number of common places for the SQLite files.
910 --with-x use the X Window System
912 Some influential environment variables:
913 CC C compiler command
914 CFLAGS C compiler flags
915 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
916 nonstandard directory <lib dir>
917 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
918 headers in a nonstandard directory <include dir>
919 CXX C++ compiler command
920 CXXFLAGS C++ compiler flags
923 Use these variables to override the choices made by `configure' or to help
924 it to find libraries and programs with nonstandard names/locations.
929 if test "$ac_init_help" = "recursive"; then
930 # If there are subdirs, report their specific --help.
932 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
933 test -d $ac_dir || continue
936 if test "$ac_dir" != .; then
937 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
938 # A "../" for each directory in $ac_dir_suffix.
939 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
941 ac_dir_suffix= ac_top_builddir=
945 .) # No --srcdir option. We are building in place.
947 if test -z "$ac_top_builddir"; then
950 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
952 [\\/]* | ?:[\\/]* ) # Absolute path.
953 ac_srcdir=$srcdir$ac_dir_suffix;
954 ac_top_srcdir=$srcdir ;;
956 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
957 ac_top_srcdir=$ac_top_builddir$srcdir ;;
959 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
961 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
962 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
963 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
964 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
967 # Check for guested configure; otherwise get Cygnus style configure.
968 if test -f $ac_srcdir/configure.gnu; then
970 $SHELL $ac_srcdir/configure.gnu --help=recursive
971 elif test -f $ac_srcdir/configure; then
973 $SHELL $ac_srcdir/configure --help=recursive
974 elif test -f $ac_srcdir/configure.ac ||
975 test -f $ac_srcdir/configure.in; then
979 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
985 test -n "$ac_init_help" && exit 0
986 if $ac_init_version; then
989 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
990 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1001 It was created by $as_me, which was
1002 generated by GNU Autoconf 2.57. Invocation command line was
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1022 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1023 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1026 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1027 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1028 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036 test -z "$as_dir" && as_dir=.
1037 echo "PATH: $as_dir"
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Strip out --silent because we don't want to record it for future runs.
1055 # Also quote any args containing shell meta-characters.
1056 # Make two passes to allow for proper duplicate-argument suppression.
1061 ac_must_keep_next=false
1067 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1071 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078 if test $ac_must_keep_next = true; then
1079 ac_must_keep_next=false # Got value, back to normal.
1082 *=* | --config-cache | -C | -disable-* | --disable-* \
1083 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085 | -with-* | --with-* | -without-* | --without-* | --x)
1086 case "$ac_configure_args0 " in
1087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090 -* ) ac_must_keep_next=true ;;
1093 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094 # Get rid of the leading space.
1100 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103 # When interrupted or exit'd, cleanup temporary files, and complete
1104 # config.log. We remove comments because anyway the quotes in there
1105 # would cause problems or look ugly.
1106 # WARNING: Be sure not to use single quotes in there, as some shells,
1107 # such as our DU 5.0 friend, will then `close' the trap.
1108 trap 'exit_status=$?
1109 # Save into config.log some information that might help in debugging.
1114 ## ---------------- ##
1115 ## Cache variables. ##
1116 ## ---------------- ##
1119 # The following way of writing the cache mishandles newlines in values,
1122 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137 ## ----------------- ##
1138 ## Output variables. ##
1139 ## ----------------- ##
1142 for ac_var in $ac_subst_vars
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1149 if test -n "$ac_subst_files"; then
1156 for ac_var in $ac_subst_files
1158 eval ac_val=$`echo $ac_var`
1159 echo "$ac_var='"'"'$ac_val'"'"'"
1164 if test -s confdefs.h; then
1171 sed "/^$/d" confdefs.h | sort
1174 test "$ac_signal" != 0 &&
1175 echo "$as_me: caught signal $ac_signal"
1176 echo "$as_me: exit $exit_status"
1178 rm -f core core.* *.core &&
1179 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182 for ac_signal in 1 2 13 15; do
1183 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1188 rm -rf conftest* confdefs.h
1189 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192 # Predefined preprocessor variables.
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_NAME "$PACKAGE_NAME"
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_STRING "$PACKAGE_STRING"
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219 # Let the site file select an alternate cache file if it wants to.
1220 # Prefer explicitly selected file to automatically selected ones.
1221 if test -z "$CONFIG_SITE"; then
1222 if test "x$prefix" != xNONE; then
1223 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1228 for ac_site_file in $CONFIG_SITE; do
1229 if test -r "$ac_site_file"; then
1230 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1231 echo "$as_me: loading site script $ac_site_file" >&6;}
1232 sed 's/^/| /' "$ac_site_file" >&5
1237 if test -r "$cache_file"; then
1238 # Some versions of bash will fail to source /dev/null (special
1239 # files actually), so we avoid doing that.
1240 if test -f "$cache_file"; then
1241 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1242 echo "$as_me: loading cache $cache_file" >&6;}
1244 [\\/]* | ?:[\\/]* ) . $cache_file;;
1245 *) . ./$cache_file;;
1249 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1250 echo "$as_me: creating cache $cache_file" >&6;}
1254 # Check that the precious variables saved in the cache have kept the same
1256 ac_cache_corrupted=false
1257 for ac_var in `(set) 2>&1 |
1258 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260 eval ac_new_set=\$ac_env_${ac_var}_set
1261 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262 eval ac_new_val="\$ac_env_${ac_var}_value"
1263 case $ac_old_set,$ac_new_set in
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1274 if test "x$ac_old_val" != "x$ac_new_val"; then
1275 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1276 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1277 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1278 echo "$as_me: former value: $ac_old_val" >&2;}
1279 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1280 echo "$as_me: current value: $ac_new_val" >&2;}
1281 ac_cache_corrupted=:
1284 # Pass precious variables to config.status.
1285 if test "$ac_new_set" = set; then
1287 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289 *) ac_arg=$ac_var=$ac_new_val ;;
1291 case " $ac_configure_args " in
1292 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1293 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297 if $ac_cache_corrupted; then
1298 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1299 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1300 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1301 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302 { (exit 1); exit 1; }; }
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1335 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1336 if test -f $ac_dir/install-sh; then
1338 ac_install_sh="$ac_aux_dir/install-sh -c"
1340 elif test -f $ac_dir/install.sh; then
1342 ac_install_sh="$ac_aux_dir/install.sh -c"
1344 elif test -f $ac_dir/shtool; then
1346 ac_install_sh="$ac_aux_dir/shtool install -c"
1350 if test -z "$ac_aux_dir"; then
1351 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1352 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1353 { (exit 1); exit 1; }; }
1355 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1356 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1357 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1359 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1367 # Extract the first word of "$ac_prog", so it can be a program name with args.
1368 set dummy $ac_prog; ac_word=$2
1369 echo "$as_me:$LINENO: checking for $ac_word" >&5
1370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1371 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1372 echo $ECHO_N "(cached) $ECHO_C" >&6
1376 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383 test -z "$as_dir" && as_dir=.
1384 for ac_exec_ext in '' $ac_executable_extensions; do
1385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1386 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1396 TRUEPRG=$ac_cv_path_TRUEPRG
1398 if test -n "$TRUEPRG"; then
1399 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1400 echo "${ECHO_T}$TRUEPRG" >&6
1402 echo "$as_me:$LINENO: result: no" >&5
1403 echo "${ECHO_T}no" >&6
1406 test -n "$TRUEPRG" && break
1408 test -n "$TRUEPRG" || TRUEPRG=":"
1410 for ac_prog in false
1412 # Extract the first word of "$ac_prog", so it can be a program name with args.
1413 set dummy $ac_prog; ac_word=$2
1414 echo "$as_me:$LINENO: checking for $ac_word" >&5
1415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1416 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1421 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428 test -z "$as_dir" && as_dir=.
1429 for ac_exec_ext in '' $ac_executable_extensions; do
1430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1431 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1441 FALSEPRG=$ac_cv_path_FALSEPRG
1443 if test -n "$FALSEPRG"; then
1444 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1445 echo "${ECHO_T}$FALSEPRG" >&6
1447 echo "$as_me:$LINENO: result: no" >&5
1448 echo "${ECHO_T}no" >&6
1451 test -n "$FALSEPRG" && break
1453 test -n "$FALSEPRG" || FALSEPRG=":"
1456 # Make sure we can run config.sub.
1457 $ac_config_sub sun4 >/dev/null 2>&1 ||
1458 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1459 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1460 { (exit 1); exit 1; }; }
1462 echo "$as_me:$LINENO: checking build system type" >&5
1463 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1464 if test "${ac_cv_build+set}" = set; then
1465 echo $ECHO_N "(cached) $ECHO_C" >&6
1467 ac_cv_build_alias=$build_alias
1468 test -z "$ac_cv_build_alias" &&
1469 ac_cv_build_alias=`$ac_config_guess`
1470 test -z "$ac_cv_build_alias" &&
1471 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1472 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1473 { (exit 1); exit 1; }; }
1474 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1475 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1476 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1477 { (exit 1); exit 1; }; }
1480 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1481 echo "${ECHO_T}$ac_cv_build" >&6
1483 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1484 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1485 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1488 echo "$as_me:$LINENO: checking host system type" >&5
1489 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1490 if test "${ac_cv_host+set}" = set; then
1491 echo $ECHO_N "(cached) $ECHO_C" >&6
1493 ac_cv_host_alias=$host_alias
1494 test -z "$ac_cv_host_alias" &&
1495 ac_cv_host_alias=$ac_cv_build_alias
1496 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1497 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1498 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1499 { (exit 1); exit 1; }; }
1502 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1503 echo "${ECHO_T}$ac_cv_host" >&6
1505 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1506 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1507 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1511 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1512 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1513 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1514 echo "configuring for bacula $VERSION ($DATE)"
1519 ac_cpp='$CPP $CPPFLAGS'
1520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523 if test -n "$ac_tool_prefix"; then
1524 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1525 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1526 echo "$as_me:$LINENO: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_CC+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 if test -n "$CC"; then
1532 ac_cv_prog_CC="$CC" # Let the user override the test.
1534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538 test -z "$as_dir" && as_dir=.
1539 for ac_exec_ext in '' $ac_executable_extensions; do
1540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1541 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1551 if test -n "$CC"; then
1552 echo "$as_me:$LINENO: result: $CC" >&5
1553 echo "${ECHO_T}$CC" >&6
1555 echo "$as_me:$LINENO: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1560 if test -z "$ac_cv_prog_CC"; then
1562 # Extract the first word of "gcc", so it can be a program name with args.
1563 set dummy gcc; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1569 if test -n "$ac_ct_CC"; then
1570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 test -z "$as_dir" && as_dir=.
1577 for ac_exec_ext in '' $ac_executable_extensions; do
1578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579 ac_cv_prog_ac_ct_CC="gcc"
1580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1589 if test -n "$ac_ct_CC"; then
1590 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1591 echo "${ECHO_T}$ac_ct_CC" >&6
1593 echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1602 if test -z "$CC"; then
1603 if test -n "$ac_tool_prefix"; then
1604 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1605 set dummy ${ac_tool_prefix}cc; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_CC+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 if test -n "$CC"; then
1612 ac_cv_prog_CC="$CC" # Let the user override the test.
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 test -z "$as_dir" && as_dir=.
1619 for ac_exec_ext in '' $ac_executable_extensions; do
1620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621 ac_cv_prog_CC="${ac_tool_prefix}cc"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1631 if test -n "$CC"; then
1632 echo "$as_me:$LINENO: result: $CC" >&5
1633 echo "${ECHO_T}$CC" >&6
1635 echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1640 if test -z "$ac_cv_prog_CC"; then
1642 # Extract the first word of "cc", so it can be a program name with args.
1643 set dummy cc; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 if test -n "$ac_ct_CC"; then
1650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 test -z "$as_dir" && as_dir=.
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659 ac_cv_prog_ac_ct_CC="cc"
1660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1669 if test -n "$ac_ct_CC"; then
1670 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1671 echo "${ECHO_T}$ac_ct_CC" >&6
1673 echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1683 if test -z "$CC"; then
1684 # Extract the first word of "cc", so it can be a program name with args.
1685 set dummy cc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 if test -n "$CC"; then
1692 ac_cv_prog_CC="$CC" # Let the user override the test.
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1703 ac_prog_rejected=yes
1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 if test $ac_prog_rejected = yes; then
1714 # We found a bogon in the path, so make sure we never use it.
1715 set dummy $ac_cv_prog_CC
1717 if test $# != 0; then
1718 # We chose a different compiler from the bogus one.
1719 # However, it has the same basename, so the bogon will be chosen
1720 # first if we set CC to just the basename; use the full file name.
1722 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1728 if test -n "$CC"; then
1729 echo "$as_me:$LINENO: result: $CC" >&5
1730 echo "${ECHO_T}$CC" >&6
1732 echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1737 if test -z "$CC"; then
1738 if test -n "$ac_tool_prefix"; then
1741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_CC+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 if test -n "$CC"; then
1749 ac_cv_prog_CC="$CC" # Let the user override the test.
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 test -z "$as_dir" && as_dir=.
1756 for ac_exec_ext in '' $ac_executable_extensions; do
1757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768 if test -n "$CC"; then
1769 echo "$as_me:$LINENO: result: $CC" >&5
1770 echo "${ECHO_T}$CC" >&6
1772 echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1776 test -n "$CC" && break
1779 if test -z "$CC"; then
1783 # Extract the first word of "$ac_prog", so it can be a program name with args.
1784 set dummy $ac_prog; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 if test -n "$ac_ct_CC"; then
1791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 test -z "$as_dir" && as_dir=.
1798 for ac_exec_ext in '' $ac_executable_extensions; do
1799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800 ac_cv_prog_ac_ct_CC="$ac_prog"
1801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1810 if test -n "$ac_ct_CC"; then
1811 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1812 echo "${ECHO_T}$ac_ct_CC" >&6
1814 echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1818 test -n "$ac_ct_CC" && break
1827 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: no acceptable C compiler found in \$PATH
1830 See \`config.log' for more details." >&2;}
1831 { (exit 1); exit 1; }; }
1833 # Provide some information about the compiler.
1834 echo "$as_me:$LINENO:" \
1835 "checking for C compiler version" >&5
1836 ac_compiler=`set X $ac_compile; echo $2`
1837 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1838 (eval $ac_compiler --version </dev/null >&5) 2>&5
1840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841 (exit $ac_status); }
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1843 (eval $ac_compiler -v </dev/null >&5) 2>&5
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1848 (eval $ac_compiler -V </dev/null >&5) 2>&5
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }
1853 cat >conftest.$ac_ext <<_ACEOF
1854 #line $LINENO "configure"
1857 cat confdefs.h >>conftest.$ac_ext
1858 cat >>conftest.$ac_ext <<_ACEOF
1859 /* end confdefs.h. */
1869 ac_clean_files_save=$ac_clean_files
1870 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1871 # Try to create an executable without -o first, disregard a.out.
1872 # It will help us diagnose broken compilers, and finding out an intuition
1874 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1875 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1876 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1877 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1878 (eval $ac_link_default) 2>&5
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); }; then
1882 # Find the output, starting from the most likely. This scheme is
1883 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1886 # Be careful to initialize this variable, since it used to be cached.
1887 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1889 # b.out is created by i960 compilers.
1890 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1892 test -f "$ac_file" || continue
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1897 # This is the source file.
1900 # We found the default executable, but exeext='' is most
1904 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1905 # FIXME: I believe we export ac_cv_exeext for Libtool,
1906 # but it would be cool to find out if it's true. Does anybody
1907 # maintain Libtool? --akim.
1915 echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1918 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&2;}
1922 { (exit 77); exit 77; }; }
1925 ac_exeext=$ac_cv_exeext
1926 echo "$as_me:$LINENO: result: $ac_file" >&5
1927 echo "${ECHO_T}$ac_file" >&6
1929 # Check the compiler produces executables we can run. If not, either
1930 # the compiler is broken, or we cross compile.
1931 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1932 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1933 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1934 # If not cross compiling, check that we can run a simple program.
1935 if test "$cross_compiling" != yes; then
1936 if { ac_try='./$ac_file'
1937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; }; then
1944 if test "$cross_compiling" = maybe; then
1947 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1948 If you meant to cross compile, use \`--host'.
1949 See \`config.log' for more details." >&5
1950 echo "$as_me: error: cannot run C compiled programs.
1951 If you meant to cross compile, use \`--host'.
1952 See \`config.log' for more details." >&2;}
1953 { (exit 1); exit 1; }; }
1957 echo "$as_me:$LINENO: result: yes" >&5
1958 echo "${ECHO_T}yes" >&6
1960 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1961 ac_clean_files=$ac_clean_files_save
1962 # Check the compiler produces executables we can run. If not, either
1963 # the compiler is broken, or we cross compile.
1964 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1965 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1966 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1967 echo "${ECHO_T}$cross_compiling" >&6
1969 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1970 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1972 (eval $ac_link) 2>&5
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975 (exit $ac_status); }; then
1976 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1977 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1978 # work properly (i.e., refer to `conftest.exe'), while it won't with
1980 for ac_file in conftest.exe conftest conftest.*; do
1981 test -f "$ac_file" || continue
1983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1991 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1992 See \`config.log' for more details." >&5
1993 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&2;}
1995 { (exit 1); exit 1; }; }
1998 rm -f conftest$ac_cv_exeext
1999 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2000 echo "${ECHO_T}$ac_cv_exeext" >&6
2002 rm -f conftest.$ac_ext
2003 EXEEXT=$ac_cv_exeext
2005 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2006 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2007 if test "${ac_cv_objext+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 cat >conftest.$ac_ext <<_ACEOF
2011 #line $LINENO "configure"
2014 cat confdefs.h >>conftest.$ac_ext
2015 cat >>conftest.$ac_ext <<_ACEOF
2016 /* end confdefs.h. */
2026 rm -f conftest.o conftest.obj
2027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028 (eval $ac_compile) 2>&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; then
2032 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2035 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2040 echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2043 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2044 See \`config.log' for more details." >&5
2045 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2046 See \`config.log' for more details." >&2;}
2047 { (exit 1); exit 1; }; }
2050 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2052 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2053 echo "${ECHO_T}$ac_cv_objext" >&6
2054 OBJEXT=$ac_cv_objext
2056 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2057 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2058 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 cat >conftest.$ac_ext <<_ACEOF
2062 #line $LINENO "configure"
2065 cat confdefs.h >>conftest.$ac_ext
2066 cat >>conftest.$ac_ext <<_ACEOF
2067 /* end confdefs.h. */
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082 (eval $ac_compile) 2>&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); } &&
2086 { ac_try='test -s conftest.$ac_objext'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; }; then
2094 echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2099 rm -f conftest.$ac_objext conftest.$ac_ext
2100 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2103 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2104 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2105 GCC=`test $ac_compiler_gnu = yes && echo yes`
2106 ac_test_CFLAGS=${CFLAGS+set}
2107 ac_save_CFLAGS=$CFLAGS
2109 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2110 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2111 if test "${ac_cv_prog_cc_g+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 cat >conftest.$ac_ext <<_ACEOF
2115 #line $LINENO "configure"
2118 cat confdefs.h >>conftest.$ac_ext
2119 cat >>conftest.$ac_ext <<_ACEOF
2120 /* end confdefs.h. */
2130 rm -f conftest.$ac_objext
2131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2132 (eval $ac_compile) 2>&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); } &&
2136 { ac_try='test -s conftest.$ac_objext'
2137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; }; then
2144 echo "$as_me: failed program was:" >&5
2145 sed 's/^/| /' conftest.$ac_ext >&5
2149 rm -f conftest.$ac_objext conftest.$ac_ext
2151 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2152 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2153 if test "$ac_test_CFLAGS" = set; then
2154 CFLAGS=$ac_save_CFLAGS
2155 elif test $ac_cv_prog_cc_g = yes; then
2156 if test "$GCC" = yes; then
2162 if test "$GCC" = yes; then
2168 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2169 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2170 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 ac_cv_prog_cc_stdc=no
2175 cat >conftest.$ac_ext <<_ACEOF
2176 #line $LINENO "configure"
2179 cat confdefs.h >>conftest.$ac_ext
2180 cat >>conftest.$ac_ext <<_ACEOF
2181 /* end confdefs.h. */
2184 #include <sys/types.h>
2185 #include <sys/stat.h>
2186 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2187 struct buf { int x; };
2188 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2189 static char *e (p, i)
2195 static char *f (char * (*g) (char **, int), char **p, ...)
2200 s = g (p, va_arg (v,int));
2204 int test (int i, double x);
2205 struct s1 {int (*f) (int a);};
2206 struct s2 {int (*f) (double a);};
2207 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2213 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2218 # Don't try gcc -ansi; that turns off useful extensions and
2219 # breaks some systems' header files.
2220 # AIX -qlanglvl=ansi
2221 # Ultrix and OSF/1 -std1
2222 # HP-UX 10.20 and later -Ae
2223 # HP-UX older versions -Aa -D_HPUX_SOURCE
2224 # SVR4 -Xc -D__EXTENSIONS__
2225 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2227 CC="$ac_save_CC $ac_arg"
2228 rm -f conftest.$ac_objext
2229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2230 (eval $ac_compile) 2>&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); } &&
2234 { ac_try='test -s conftest.$ac_objext'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2240 ac_cv_prog_cc_stdc=$ac_arg
2243 echo "$as_me: failed program was:" >&5
2244 sed 's/^/| /' conftest.$ac_ext >&5
2247 rm -f conftest.$ac_objext
2249 rm -f conftest.$ac_ext conftest.$ac_objext
2254 case "x$ac_cv_prog_cc_stdc" in
2256 echo "$as_me:$LINENO: result: none needed" >&5
2257 echo "${ECHO_T}none needed" >&6 ;;
2259 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2260 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2261 CC="$CC $ac_cv_prog_cc_stdc" ;;
2264 # Some people use a C++ compiler to compile C. Since we use `exit',
2265 # in C++ we need to declare it. In case someone uses the same compiler
2266 # for both compiling C and C++ we need to have the C++ compiler decide
2267 # the declaration of exit, since it's the most demanding environment.
2268 cat >conftest.$ac_ext <<_ACEOF
2273 rm -f conftest.$ac_objext
2274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2275 (eval $ac_compile) 2>&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); } &&
2279 { ac_try='test -s conftest.$ac_objext'
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; }; then
2285 for ac_declaration in \
2287 '#include <stdlib.h>' \
2288 'extern "C" void std::exit (int) throw (); using std::exit;' \
2289 'extern "C" void std::exit (int); using std::exit;' \
2290 'extern "C" void exit (int) throw ();' \
2291 'extern "C" void exit (int);' \
2294 cat >conftest.$ac_ext <<_ACEOF
2295 #line $LINENO "configure"
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); } &&
2317 { ac_try='test -s conftest.$ac_objext'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2330 rm -f conftest.$ac_objext conftest.$ac_ext
2331 cat >conftest.$ac_ext <<_ACEOF
2332 #line $LINENO "configure"
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2347 rm -f conftest.$ac_objext
2348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349 (eval $ac_compile) 2>&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } &&
2353 { ac_try='test -s conftest.$ac_objext'
2354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; }; then
2361 echo "$as_me: failed program was:" >&5
2362 sed 's/^/| /' conftest.$ac_ext >&5
2365 rm -f conftest.$ac_objext conftest.$ac_ext
2368 if test -n "$ac_declaration"; then
2369 echo '#ifdef __cplusplus' >>confdefs.h
2370 echo $ac_declaration >>confdefs.h
2371 echo '#endif' >>confdefs.h
2375 echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2379 rm -f conftest.$ac_objext conftest.$ac_ext
2381 ac_cpp='$CPP $CPPFLAGS'
2382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387 ac_cpp='$CXXCPP $CPPFLAGS'
2388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2391 if test -n "$ac_tool_prefix"; then
2392 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2396 echo "$as_me:$LINENO: checking for $ac_word" >&5
2397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2398 if test "${ac_cv_prog_CXX+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2401 if test -n "$CXX"; then
2402 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 test -z "$as_dir" && as_dir=.
2409 for ac_exec_ext in '' $ac_executable_extensions; do
2410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2411 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2421 if test -n "$CXX"; then
2422 echo "$as_me:$LINENO: result: $CXX" >&5
2423 echo "${ECHO_T}$CXX" >&6
2425 echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6
2429 test -n "$CXX" && break
2432 if test -z "$CXX"; then
2434 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2436 # Extract the first word of "$ac_prog", so it can be a program name with args.
2437 set dummy $ac_prog; ac_word=$2
2438 echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2440 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 if test -n "$ac_ct_CXX"; then
2444 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2453 ac_cv_prog_ac_ct_CXX="$ac_prog"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2463 if test -n "$ac_ct_CXX"; then
2464 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2465 echo "${ECHO_T}$ac_ct_CXX" >&6
2467 echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6
2471 test -n "$ac_ct_CXX" && break
2473 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2479 # Provide some information about the compiler.
2480 echo "$as_me:$LINENO:" \
2481 "checking for C++ compiler version" >&5
2482 ac_compiler=`set X $ac_compile; echo $2`
2483 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2484 (eval $ac_compiler --version </dev/null >&5) 2>&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }
2488 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2489 (eval $ac_compiler -v </dev/null >&5) 2>&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }
2493 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2494 (eval $ac_compiler -V </dev/null >&5) 2>&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }
2499 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2500 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2501 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 cat >conftest.$ac_ext <<_ACEOF
2505 #line $LINENO "configure"
2508 cat confdefs.h >>conftest.$ac_ext
2509 cat >>conftest.$ac_ext <<_ACEOF
2510 /* end confdefs.h. */
2523 rm -f conftest.$ac_objext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2525 (eval $ac_compile) 2>&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -s conftest.$ac_objext'
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; }; then
2537 echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2542 rm -f conftest.$ac_objext conftest.$ac_ext
2543 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2546 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2547 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2548 GXX=`test $ac_compiler_gnu = yes && echo yes`
2549 ac_test_CXXFLAGS=${CXXFLAGS+set}
2550 ac_save_CXXFLAGS=$CXXFLAGS
2552 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2553 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2554 if test "${ac_cv_prog_cxx_g+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 cat >conftest.$ac_ext <<_ACEOF
2558 #line $LINENO "configure"
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h. */
2573 rm -f conftest.$ac_objext
2574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2575 (eval $ac_compile) 2>&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
2579 { ac_try='test -s conftest.$ac_objext'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; }; then
2585 ac_cv_prog_cxx_g=yes
2587 echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2592 rm -f conftest.$ac_objext conftest.$ac_ext
2594 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2595 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2596 if test "$ac_test_CXXFLAGS" = set; then
2597 CXXFLAGS=$ac_save_CXXFLAGS
2598 elif test $ac_cv_prog_cxx_g = yes; then
2599 if test "$GXX" = yes; then
2605 if test "$GXX" = yes; then
2611 for ac_declaration in \
2613 '#include <stdlib.h>' \
2614 'extern "C" void std::exit (int) throw (); using std::exit;' \
2615 'extern "C" void std::exit (int); using std::exit;' \
2616 'extern "C" void exit (int) throw ();' \
2617 'extern "C" void exit (int);' \
2620 cat >conftest.$ac_ext <<_ACEOF
2621 #line $LINENO "configure"
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h. */
2637 rm -f conftest.$ac_objext
2638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639 (eval $ac_compile) 2>&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2656 rm -f conftest.$ac_objext conftest.$ac_ext
2657 cat >conftest.$ac_ext <<_ACEOF
2658 #line $LINENO "configure"
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h. */
2673 rm -f conftest.$ac_objext
2674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675 (eval $ac_compile) 2>&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
2679 { ac_try='test -s conftest.$ac_objext'
2680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; }; then
2687 echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2691 rm -f conftest.$ac_objext conftest.$ac_ext
2694 if test -n "$ac_declaration"; then
2695 echo '#ifdef __cplusplus' >>confdefs.h
2696 echo $ac_declaration >>confdefs.h
2697 echo '#endif' >>confdefs.h
2701 ac_cpp='$CPP $CPPFLAGS'
2702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2706 if test "x$CC" != xcc; then
2707 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2708 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2710 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2711 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2713 set dummy $CC; ac_cc=`echo $2 |
2714 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2715 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 cat >conftest.$ac_ext <<_ACEOF
2719 #line $LINENO "configure"
2722 cat confdefs.h >>conftest.$ac_ext
2723 cat >>conftest.$ac_ext <<_ACEOF
2724 /* end confdefs.h. */
2734 # Make sure it works both with $CC and with simple cc.
2735 # We do the test twice because some compilers refuse to overwrite an
2736 # existing .o file with -o, though they will create one.
2737 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2738 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } &&
2743 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); };
2749 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2750 if test "x$CC" != xcc; then
2751 # Test first that cc exists at all.
2752 if { ac_try='cc -c conftest.$ac_ext >&5'
2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; }; then
2758 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2759 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); } &&
2764 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); };
2773 # cc exists but doesn't like -o.
2774 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2779 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2784 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2785 echo "$as_me:$LINENO: result: yes" >&5
2786 echo "${ECHO_T}yes" >&6
2788 echo "$as_me:$LINENO: result: no" >&5
2789 echo "${ECHO_T}no" >&6
2791 cat >>confdefs.h <<\_ACEOF
2792 #define NO_MINUS_C_MINUS_O 1
2798 ac_cpp='$CPP $CPPFLAGS'
2799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2802 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2803 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2804 # On Suns, sometimes $CPP names a directory.
2805 if test -n "$CPP" && test -d "$CPP"; then
2808 if test -z "$CPP"; then
2809 if test "${ac_cv_prog_CPP+set}" = set; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 # Double quotes because CPP needs to be expanded
2813 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2816 for ac_c_preproc_warn_flag in '' yes
2818 # Use a header file that comes with gcc, so configuring glibc
2819 # with a fresh cross-compiler works.
2820 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2821 # <limits.h> exists even on freestanding compilers.
2822 # On the NeXT, cc -E runs the code through the compiler's parser,
2823 # not just through cpp. "Syntax error" is here to catch this case.
2824 cat >conftest.$ac_ext <<_ACEOF
2825 #line $LINENO "configure"
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h. */
2832 # include <limits.h>
2834 # include <assert.h>
2838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2841 grep -v '^ *+' conftest.er1 >conftest.err
2843 cat conftest.err >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } >/dev/null; then
2846 if test -s conftest.err; then
2847 ac_cpp_err=$ac_c_preproc_warn_flag
2854 if test -z "$ac_cpp_err"; then
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2860 # Broken: fails on valid input.
2863 rm -f conftest.err conftest.$ac_ext
2865 # OK, works on sane cases. Now check whether non-existent headers
2866 # can be detected and how.
2867 cat >conftest.$ac_ext <<_ACEOF
2868 #line $LINENO "configure"
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2874 #include <ac_nonexistent.h>
2876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2879 grep -v '^ *+' conftest.er1 >conftest.err
2881 cat conftest.err >&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } >/dev/null; then
2884 if test -s conftest.err; then
2885 ac_cpp_err=$ac_c_preproc_warn_flag
2892 if test -z "$ac_cpp_err"; then
2893 # Broken: success on invalid input.
2896 echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.$ac_ext >&5
2899 # Passes both tests.
2903 rm -f conftest.err conftest.$ac_ext
2906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2907 rm -f conftest.err conftest.$ac_ext
2908 if $ac_preproc_ok; then
2920 echo "$as_me:$LINENO: result: $CPP" >&5
2921 echo "${ECHO_T}$CPP" >&6
2923 for ac_c_preproc_warn_flag in '' yes
2925 # Use a header file that comes with gcc, so configuring glibc
2926 # with a fresh cross-compiler works.
2927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2928 # <limits.h> exists even on freestanding compilers.
2929 # On the NeXT, cc -E runs the code through the compiler's parser,
2930 # not just through cpp. "Syntax error" is here to catch this case.
2931 cat >conftest.$ac_ext <<_ACEOF
2932 #line $LINENO "configure"
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h. */
2939 # include <limits.h>
2941 # include <assert.h>
2945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2948 grep -v '^ *+' conftest.er1 >conftest.err
2950 cat conftest.err >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } >/dev/null; then
2953 if test -s conftest.err; then
2954 ac_cpp_err=$ac_c_preproc_warn_flag
2961 if test -z "$ac_cpp_err"; then
2964 echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2967 # Broken: fails on valid input.
2970 rm -f conftest.err conftest.$ac_ext
2972 # OK, works on sane cases. Now check whether non-existent headers
2973 # can be detected and how.
2974 cat >conftest.$ac_ext <<_ACEOF
2975 #line $LINENO "configure"
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h. */
2981 #include <ac_nonexistent.h>
2983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2986 grep -v '^ *+' conftest.er1 >conftest.err
2988 cat conftest.err >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } >/dev/null; then
2991 if test -s conftest.err; then
2992 ac_cpp_err=$ac_c_preproc_warn_flag
2999 if test -z "$ac_cpp_err"; then
3000 # Broken: success on invalid input.
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 # Passes both tests.
3010 rm -f conftest.err conftest.$ac_ext
3013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3014 rm -f conftest.err conftest.$ac_ext
3015 if $ac_preproc_ok; then
3018 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3019 See \`config.log' for more details." >&5
3020 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3021 See \`config.log' for more details." >&2;}
3022 { (exit 1); exit 1; }; }
3026 ac_cpp='$CPP $CPPFLAGS'
3027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032 echo "$as_me:$LINENO: checking for egrep" >&5
3033 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3034 if test "${ac_cv_prog_egrep+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3038 then ac_cv_prog_egrep='grep -E'
3039 else ac_cv_prog_egrep='egrep'
3042 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3043 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3044 EGREP=$ac_cv_prog_egrep
3047 if test $ac_cv_c_compiler_gnu = yes; then
3048 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3049 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3050 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3053 ac_pattern="Autoconf.*'x'"
3054 cat >conftest.$ac_ext <<_ACEOF
3055 #line $LINENO "configure"
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3065 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3066 ac_cv_prog_gcc_traditional=yes
3068 ac_cv_prog_gcc_traditional=no
3073 if test $ac_cv_prog_gcc_traditional = no; then
3074 cat >conftest.$ac_ext <<_ACEOF
3075 #line $LINENO "configure"
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3085 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3086 ac_cv_prog_gcc_traditional=yes
3092 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3093 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3094 if test $ac_cv_prog_gcc_traditional = yes; then
3095 CC="$CC -traditional"
3101 cat >>confdefs.h <<\_ACEOF
3107 # Find a good install program. We prefer a C program (faster),
3108 # so one script is as good as another. But avoid the broken or
3109 # incompatible versions:
3110 # SysV /etc/install, /usr/sbin/install
3111 # SunOS /usr/etc/install
3112 # IRIX /sbin/install
3114 # AmigaOS /C/install, which installs bootblocks on floppy discs
3115 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3116 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3117 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3118 # ./install, which can be erroneously created by make from ./install.sh.
3119 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3120 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3121 if test -z "$INSTALL"; then
3122 if test "${ac_cv_path_install+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 test -z "$as_dir" && as_dir=.
3130 # Account for people who put trailing slashes in PATH elements.
3132 ./ | .// | /cC/* | \
3133 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3136 # OSF1 and SCO ODT 3.0 have their own names for install.
3137 # Don't use installbsd from OSF since it installs stuff as root
3139 for ac_prog in ginstall scoinst install; do
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3142 if test $ac_prog = install &&
3143 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3144 # AIX install. It has an incompatible calling convention.
3146 elif test $ac_prog = install &&
3147 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3148 # program-specific install script used by HP pwplus--don't use.
3151 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3163 if test "${ac_cv_path_install+set}" = set; then
3164 INSTALL=$ac_cv_path_install
3166 # As a last resort, use the slow shell script. We don't cache a
3167 # path for INSTALL within a source directory, because that will
3168 # break other packages using the cache if that directory is
3169 # removed, or if the path is relative.
3170 INSTALL=$ac_install_sh
3173 echo "$as_me:$LINENO: result: $INSTALL" >&5
3174 echo "${ECHO_T}$INSTALL" >&6
3176 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3177 # It thinks the first close brace ends the variable substitution.
3178 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3180 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3182 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3184 if test -n "$ac_tool_prefix"; then
3185 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3186 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3187 echo "$as_me:$LINENO: checking for $ac_word" >&5
3188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3189 if test "${ac_cv_prog_RANLIB+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 if test -n "$RANLIB"; then
3193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3202 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 RANLIB=$ac_cv_prog_RANLIB
3212 if test -n "$RANLIB"; then
3213 echo "$as_me:$LINENO: result: $RANLIB" >&5
3214 echo "${ECHO_T}$RANLIB" >&6
3216 echo "$as_me:$LINENO: result: no" >&5
3217 echo "${ECHO_T}no" >&6
3221 if test -z "$ac_cv_prog_RANLIB"; then
3222 ac_ct_RANLIB=$RANLIB
3223 # Extract the first word of "ranlib", so it can be a program name with args.
3224 set dummy ranlib; ac_word=$2
3225 echo "$as_me:$LINENO: checking for $ac_word" >&5
3226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3227 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 if test -n "$ac_ct_RANLIB"; then
3231 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 test -z "$as_dir" && as_dir=.
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240 ac_cv_prog_ac_ct_RANLIB="ranlib"
3241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3250 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3251 if test -n "$ac_ct_RANLIB"; then
3252 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3253 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3255 echo "$as_me:$LINENO: result: no" >&5
3256 echo "${ECHO_T}no" >&6
3259 RANLIB=$ac_ct_RANLIB
3261 RANLIB="$ac_cv_prog_RANLIB"
3264 # Extract the first word of "mv", so it can be a program name with args.
3265 set dummy mv; ac_word=$2
3266 echo "$as_me:$LINENO: checking for $ac_word" >&5
3267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3268 if test "${ac_cv_path_MV+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3296 if test -n "$MV"; then
3297 echo "$as_me:$LINENO: result: $MV" >&5
3298 echo "${ECHO_T}$MV" >&6
3300 echo "$as_me:$LINENO: result: no" >&5
3301 echo "${ECHO_T}no" >&6
3304 # Extract the first word of "rm", so it can be a program name with args.
3305 set dummy rm; ac_word=$2
3306 echo "$as_me:$LINENO: checking for $ac_word" >&5
3307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3308 if test "${ac_cv_path_RM+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3336 if test -n "$RM"; then
3337 echo "$as_me:$LINENO: result: $RM" >&5
3338 echo "${ECHO_T}$RM" >&6
3340 echo "$as_me:$LINENO: result: no" >&5
3341 echo "${ECHO_T}no" >&6
3344 # Extract the first word of "cp", so it can be a program name with args.
3345 set dummy cp; ac_word=$2
3346 echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3348 if test "${ac_cv_path_CP+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 test -z "$as_dir" && as_dir=.
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3363 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3376 if test -n "$CP"; then
3377 echo "$as_me:$LINENO: result: $CP" >&5
3378 echo "${ECHO_T}$CP" >&6
3380 echo "$as_me:$LINENO: result: no" >&5
3381 echo "${ECHO_T}no" >&6
3384 # Extract the first word of "sed", so it can be a program name with args.
3385 set dummy sed; ac_word=$2
3386 echo "$as_me:$LINENO: checking for $ac_word" >&5
3387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3388 if test "${ac_cv_path_SED+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 test -z "$as_dir" && as_dir=.
3401 for ac_exec_ext in '' $ac_executable_extensions; do
3402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3403 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3416 if test -n "$SED"; then
3417 echo "$as_me:$LINENO: result: $SED" >&5
3418 echo "${ECHO_T}$SED" >&6
3420 echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3424 # Extract the first word of "awk", so it can be a program name with args.
3425 set dummy awk; ac_word=$2
3426 echo "$as_me:$LINENO: checking for $ac_word" >&5
3427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3428 if test "${ac_cv_path_AWK+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3456 if test -n "$AWK"; then
3457 echo "$as_me:$LINENO: result: $AWK" >&5
3458 echo "${ECHO_T}$AWK" >&6
3460 echo "$as_me:$LINENO: result: no" >&5
3461 echo "${ECHO_T}no" >&6
3464 # Extract the first word of "echo", so it can be a program name with args.
3465 set dummy echo; ac_word=$2
3466 echo "$as_me:$LINENO: checking for $ac_word" >&5
3467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3468 if test "${ac_cv_path_ECHO+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3494 ECHO=$ac_cv_path_ECHO
3496 if test -n "$ECHO"; then
3497 echo "$as_me:$LINENO: result: $ECHO" >&5
3498 echo "${ECHO_T}$ECHO" >&6
3500 echo "$as_me:$LINENO: result: no" >&5
3501 echo "${ECHO_T}no" >&6
3504 # Extract the first word of "cmp", so it can be a program name with args.
3505 set dummy cmp; ac_word=$2
3506 echo "$as_me:$LINENO: checking for $ac_word" >&5
3507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3508 if test "${ac_cv_path_CMP+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3513 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3536 if test -n "$CMP"; then
3537 echo "$as_me:$LINENO: result: $CMP" >&5
3538 echo "${ECHO_T}$CMP" >&6
3540 echo "$as_me:$LINENO: result: no" >&5
3541 echo "${ECHO_T}no" >&6
3544 # Extract the first word of "tbl", so it can be a program name with args.
3545 set dummy tbl; ac_word=$2
3546 echo "$as_me:$LINENO: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3548 if test "${ac_cv_path_TBL+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3563 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3576 if test -n "$TBL"; then
3577 echo "$as_me:$LINENO: result: $TBL" >&5
3578 echo "${ECHO_T}$TBL" >&6
3580 echo "$as_me:$LINENO: result: no" >&5
3581 echo "${ECHO_T}no" >&6
3584 # Extract the first word of "ar", so it can be a program name with args.
3585 set dummy ar; ac_word=$2
3586 echo "$as_me:$LINENO: checking for $ac_word" >&5
3587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3588 if test "${ac_cv_path_AR+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3603 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3616 if test -n "$AR"; then
3617 echo "$as_me:$LINENO: result: $AR" >&5
3618 echo "${ECHO_T}$AR" >&6
3620 echo "$as_me:$LINENO: result: no" >&5
3621 echo "${ECHO_T}no" >&6
3624 # Extract the first word of "ranlib", so it can be a program name with args.
3625 set dummy ranlib; ac_word=$2
3626 echo "$as_me:$LINENO: checking for $ac_word" >&5
3627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3628 if test "${ac_cv_path_RANLIB+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3650 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3654 RANLIB=$ac_cv_path_RANLIB
3656 if test -n "$RANLIB"; then
3657 echo "$as_me:$LINENO: result: $RANLIB" >&5
3658 echo "${ECHO_T}$RANLIB" >&6
3660 echo "$as_me:$LINENO: result: no" >&5
3661 echo "${ECHO_T}no" >&6
3664 # Extract the first word of "openssl", so it can be a program name with args.
3665 set dummy openssl; ac_word=$2
3666 echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3668 if test "${ac_cv_path_OPENSSL+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3683 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3690 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3694 OPENSSL=$ac_cv_path_OPENSSL
3696 if test -n "$OPENSSL"; then
3697 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3698 echo "${ECHO_T}$OPENSSL" >&6
3700 echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6
3704 # Extract the first word of "mtx", so it can be a program name with args.
3705 set dummy mtx; ac_word=$2
3706 echo "$as_me:$LINENO: checking for $ac_word" >&5
3707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3708 if test "${ac_cv_path_MTX+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3730 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3736 if test -n "$MTX"; then
3737 echo "$as_me:$LINENO: result: $MTX" >&5
3738 echo "${ECHO_T}$MTX" >&6
3740 echo "$as_me:$LINENO: result: no" >&5
3741 echo "${ECHO_T}no" >&6
3744 # Extract the first word of "pkg-config", so it can be a program name with args.
3745 set dummy pkg-config; ac_word=$2
3746 echo "$as_me:$LINENO: checking for $ac_word" >&5
3747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3748 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 test -z "$as_dir" && as_dir=.
3761 for ac_exec_ext in '' $ac_executable_extensions; do
3762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3763 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3774 PKGCONFIG=$ac_cv_path_PKGCONFIG
3776 if test -n "$PKGCONFIG"; then
3777 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3778 echo "${ECHO_T}$PKGCONFIG" >&6
3780 echo "$as_me:$LINENO: result: no" >&5
3781 echo "${ECHO_T}no" >&6
3785 test -n "$ARFLAG" || ARFLAGS="cr"
3798 echo "$as_me:$LINENO: checking for Operating System" >&5
3799 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3802 *cygwin* ) CYGWIN=yes;;
3806 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3812 HAVE_SUN_OS_FALSE='#'
3814 HAVE_SUN_OS_TRUE='#'
3817 cat >>confdefs.h <<\_ACEOF
3818 #define HAVE_SUN_OS 1
3826 HAVE_SUN_OS_FALSE='#'
3828 HAVE_SUN_OS_TRUE='#'
3833 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3839 HAVE_OSF1_OS_FALSE='#'
3841 HAVE_OSF1_OS_TRUE='#'
3844 cat >>confdefs.h <<\_ACEOF
3845 #define HAVE_OSF1_OS 1
3853 HAVE_OSF1_OS_FALSE='#'
3855 HAVE_OSF1_OS_TRUE='#'
3860 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3866 HAVE_AIX_OS_FALSE='#'
3868 HAVE_AIX_OS_TRUE='#'
3871 cat >>confdefs.h <<\_ACEOF
3872 #define HAVE_AIX_OS 1
3880 HAVE_AIX_OS_FALSE='#'
3882 HAVE_AIX_OS_TRUE='#'
3887 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3893 HAVE_HPUX_OS_FALSE='#'
3895 HAVE_HPUX_OS_TRUE='#'
3898 cat >>confdefs.h <<\_ACEOF
3899 #define HAVE_HPUX_OS 1
3907 HAVE_HPUX_OS_FALSE='#'
3909 HAVE_HPUX_OS_TRUE='#'
3914 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3920 HAVE_LINUX_OS_FALSE='#'
3922 HAVE_LINUX_OS_TRUE='#'
3923 HAVE_LINUX_OS_FALSE=
3925 cat >>confdefs.h <<\_ACEOF
3926 #define HAVE_LINUX_OS 1
3934 HAVE_LINUX_OS_FALSE='#'
3936 HAVE_LINUX_OS_TRUE='#'
3937 HAVE_LINUX_OS_FALSE=
3941 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3946 HAVE_FREEBSD_OS_TRUE=
3947 HAVE_FREEBSD_OS_FALSE='#'
3949 HAVE_FREEBSD_OS_TRUE='#'
3950 HAVE_FREEBSD_OS_FALSE=
3952 cat >>confdefs.h <<\_ACEOF
3953 #define HAVE_FREEBSD_OS 1
3960 HAVE_FREEBSD_OS_TRUE=
3961 HAVE_FREEBSD_OS_FALSE='#'
3963 HAVE_FREEBSD_OS_TRUE='#'
3964 HAVE_FREEBSD_OS_FALSE=
3968 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3973 HAVE_NETBSD_OS_TRUE=
3974 HAVE_NETBSD_OS_FALSE='#'
3976 HAVE_NETBSD_OS_TRUE='#'
3977 HAVE_NETBSD_OS_FALSE=
3979 cat >>confdefs.h <<\_ACEOF
3980 #define HAVE_NETBSD_OS 1
3987 HAVE_NETBSD_OS_TRUE=
3988 HAVE_NETBSD_OS_FALSE='#'
3990 HAVE_NETBSD_OS_TRUE='#'
3991 HAVE_NETBSD_OS_FALSE=
3995 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4000 HAVE_OPENBSD_OS_TRUE=
4001 HAVE_OPENBSD_OS_FALSE='#'
4003 HAVE_OPENBSD_OS_TRUE='#'
4004 HAVE_OPENBSD_OS_FALSE=
4006 cat >>confdefs.h <<\_ACEOF
4007 #define HAVE_OPENBSD_OS 1
4014 HAVE_OPENBSD_OS_TRUE=
4015 HAVE_OPENBSD_OS_FALSE='#'
4017 HAVE_OPENBSD_OS_TRUE='#'
4018 HAVE_OPENBSD_OS_FALSE=
4022 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4028 HAVE_BSDI_OS_FALSE='#'
4030 HAVE_BSDI_OS_TRUE='#'
4033 cat >>confdefs.h <<\_ACEOF
4034 #define HAVE_BSDI_OS 1
4042 HAVE_BSDI_OS_FALSE='#'
4044 HAVE_BSDI_OS_TRUE='#'
4049 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4055 HAVE_SGI_OS_FALSE='#'
4057 HAVE_SGI_OS_TRUE='#'
4060 cat >>confdefs.h <<\_ACEOF
4061 #define HAVE_SGI_OS 1
4069 HAVE_SGI_OS_FALSE='#'
4071 HAVE_SGI_OS_TRUE='#'
4076 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4082 HAVE_IRIX_OS_FALSE='#'
4084 HAVE_IRIX_OS_TRUE='#'
4087 cat >>confdefs.h <<\_ACEOF
4088 #define HAVE_IRIX_OS 1
4096 HAVE_IRIX_OS_FALSE='#'
4098 HAVE_IRIX_OS_TRUE='#'
4103 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4108 HAVE_DARWIN_OS_TRUE=
4109 HAVE_DARWIN_OS_FALSE='#'
4111 HAVE_DARWIN_OS_TRUE='#'
4112 HAVE_DARWIN_OS_FALSE=
4114 cat >>confdefs.h <<\_ACEOF
4115 #define HAVE_DARWIN_OS 1
4122 HAVE_DARWIN_OS_TRUE=
4123 HAVE_DARWIN_OS_FALSE='#'
4125 HAVE_DARWIN_OS_TRUE='#'
4126 HAVE_DARWIN_OS_FALSE=
4130 echo "$as_me:$LINENO: result: \" \"" >&5
4131 echo "${ECHO_T}\" \"" >&6
4134 # -----------------------------------------------------------
4135 # ----------------------------------------------------------
4136 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4137 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4138 if test "x$DISTNAME" != "x"
4140 echo "distname set to $DISTNAME"
4141 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4162 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4165 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4168 elif test -f /etc/SuSE-release
4171 elif test -d /etc/SuSEconfig
4174 elif test -f /etc/mandrake-release
4177 elif test -f /etc/redhat-release
4180 elif test -f /etc/gentoo-release
4183 elif test -f /etc/debian_version
4186 elif test -f /etc/slackware-version
4189 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4192 elif test -f /etc/engarde-version
4195 elif test "$CYGWIN" = yes
4198 cat >>confdefs.h <<\_ACEOF
4199 #define HAVE_CYGWIN 1
4205 echo "$as_me:$LINENO: result: \" \"" >&5
4206 echo "${ECHO_T}\" \"" >&6
4209 # -----------------------------------------------------------
4210 # ----------------------------------------------------------
4215 INSIDE_GNOME_COMMON_TRUE=
4216 INSIDE_GNOME_COMMON_FALSE='#'
4218 INSIDE_GNOME_COMMON_TRUE='#'
4219 INSIDE_GNOME_COMMON_FALSE=
4222 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4224 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4227 # ------------------------------------------------------------------
4228 # If the user has not set --prefix, we set our default to nothing.
4229 # In this case, if the user has not set --sysconfdir, we set it
4230 # to the package default of /etc/bacula. If either --prefix or
4231 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4232 # ------------------------------------------------------------------
4233 if test x${prefix} = xNONE ; then
4234 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4235 sysconfdir=/etc/bacula
4239 sysconfdir=`eval echo ${sysconfdir}`
4241 # -------------------------------------------------------------------------
4242 # If the user has not set --exec-prefix, we default to ${prefix}
4243 # -------------------------------------------------------------------------
4244 if test x${exec_prefix} = xNONE ; then
4245 exec_prefix=${prefix}
4248 # ------------------------------------------------------------------
4249 # If the user has not set --sbindir, we set our default as /sbin
4250 # ------------------------------------------------------------------
4251 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4252 sbindir=${exec_prefix}/sbin
4254 sbindir=`eval echo ${sbindir}`
4256 # ------------------------------------------------------------------
4257 # All list of languages for which a translation exist. Each
4258 # language is separated by a space.
4259 # ------------------------------------------------------------------
4262 for ac_prog in msgfmt
4264 # Extract the first word of "$ac_prog", so it can be a program name with args.
4265 set dummy $ac_prog; ac_word=$2
4266 echo "$as_me:$LINENO: checking for $ac_word" >&5
4267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4268 if test "${ac_cv_path_MSGFMT+set}" = set; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4283 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 MSGFMT=$ac_cv_path_MSGFMT
4295 if test -n "$MSGFMT"; then
4296 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4297 echo "${ECHO_T}$MSGFMT" >&6
4299 echo "$as_me:$LINENO: result: no" >&5
4300 echo "${ECHO_T}no" >&6
4303 test -n "$MSGFMT" && break
4305 test -n "$MSGFMT" || MSGFMT="no"
4307 if test "$MSGFMT" = "no"
4309 echo 'msgfmt program not found, disabling NLS !'
4311 USE_INCLUDED_LIBINTL=no
4319 support_smartalloc=yes
4320 support_readline=yes
4322 support_static_tools=no
4323 support_static_fd=no
4324 support_static_sd=no
4325 support_static_dir=no
4326 support_static_cons=no
4327 build_client_only=no
4333 # -------------------------------------------
4334 # gnome (default off)
4335 # -------------------------------------------
4336 # Check whether --enable-gnome or --disable-gnome was given.
4337 if test "${enable_gnome+set}" = set; then
4338 enableval="$enable_gnome"
4339 if test x$enableval = xyes; then
4345 if test x$support_gnome = xyes; then
4346 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4348 if test $pkg = 0; then
4349 GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4350 GNOMEUI_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4351 GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4352 GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4357 GNOME_DIR=src/gnome2-console
4358 gnome_version="version 2.x"
4371 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4372 if test "${with_gnome_includes+set}" = set; then
4373 withval="$with_gnome_includes"
4375 CFLAGS="$CFLAGS -I$withval"
4380 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4381 if test "${with_gnome_libs+set}" = set; then
4382 withval="$with_gnome_libs"
4384 LDFLAGS="$LDFLAGS -L$withval"
4385 gnome_prefix=$withval
4390 # Check whether --with-gnome or --without-gnome was given.
4391 if test "${with_gnome+set}" = set; then
4392 withval="$with_gnome"
4393 if test x$withval = xyes; then
4397 if test "x$withval" = xno; then
4401 LDFLAGS="$LDFLAGS -L$withval/lib"
4402 CFLAGS="$CFLAGS -I$withval/include"
4403 gnome_prefix=$withval/lib
4410 if test "x$want_gnome" = xyes; then
4412 # Extract the first word of "gnome-config", so it can be a program name with args.
4413 set dummy gnome-config; ac_word=$2
4414 echo "$as_me:$LINENO: checking for $ac_word" >&5
4415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4416 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4419 case $GNOME_CONFIG in
4421 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4442 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4444 if test -n "$GNOME_CONFIG"; then
4445 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4446 echo "${ECHO_T}$GNOME_CONFIG" >&6
4448 echo "$as_me:$LINENO: result: no" >&5
4449 echo "${ECHO_T}no" >&6
4452 if test "$GNOME_CONFIG" = "no"; then
4453 no_gnome_config="yes"
4455 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4456 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4457 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4458 echo "$as_me:$LINENO: result: yes" >&5
4459 echo "${ECHO_T}yes" >&6
4462 # Extract the first word of "orbit-config", so it can be a program name with args.
4463 set dummy orbit-config; ac_word=$2
4464 echo "$as_me:$LINENO: checking for $ac_word" >&5
4465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4466 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 case $ORBIT_CONFIG in
4471 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 test -z "$as_dir" && as_dir=.
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4481 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4488 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4492 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4494 if test -n "$ORBIT_CONFIG"; then
4495 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4496 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4498 echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6
4502 # Extract the first word of "orbit-idl", so it can be a program name with args.
4503 set dummy orbit-idl; ac_word=$2
4504 echo "$as_me:$LINENO: checking for $ac_word" >&5
4505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4506 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4507 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518 test -z "$as_dir" && as_dir=.
4519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4521 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4532 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4534 if test -n "$ORBIT_IDL"; then
4535 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4536 echo "${ECHO_T}$ORBIT_IDL" >&6
4538 echo "$as_me:$LINENO: result: no" >&5
4539 echo "${ECHO_T}no" >&6
4542 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4543 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4544 if test "${gnome_cv_orbit_found+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4549 gnome_cv_orbit_found=no
4551 gnome_cv_orbit_found=yes
4555 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4556 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4559 if test x$gnome_cv_orbit_found = xyes; then
4561 HAVE_ORBIT_FALSE='#'
4566 if test x$gnome_cv_orbit_found = xyes; then
4568 ORBIT_CFLAGS=`orbit-config --cflags client server`
4569 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4573 if test xfail = xfailure; then
4574 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4575 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4576 { (exit 1); exit 1; }; }
4580 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4581 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4582 if test "${gnome_cv_gnorba_found+set}" = set; then
4583 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 gnome_cv_gnorba_found=no
4587 if test x$gnome_cv_orbit_found = xyes; then
4588 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4589 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4590 if test -n "$GNORBA_LIBS"; then
4591 gnome_cv_gnorba_found=yes
4596 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4597 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4600 if test x$gnome_cv_gnorba_found = xyes; then
4602 HAVE_GNORBA_FALSE='#'
4604 HAVE_GNORBA_TRUE='#'
4607 if test x$gnome_cv_orbit_found = xyes; then
4609 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4610 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4614 if test xfail = xfailure; then
4615 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4616 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4617 { (exit 1); exit 1; }; }
4621 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4622 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4623 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4624 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4625 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4626 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4627 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4630 echo "$as_me:$LINENO: result: no" >&5
4631 echo "${ECHO_T}no" >&6
4632 no_gnome_config="yes"
4636 if test x$exec_prefix = xNONE; then
4637 if test x$prefix = xNONE; then
4638 gnome_prefix=$ac_default_prefix/lib
4640 gnome_prefix=$prefix/lib
4643 gnome_prefix=`eval echo \`echo $libdir\``
4646 if test "$no_gnome_config" = "yes"; then
4647 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4648 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4649 if test -f $gnome_prefix/gnomeConf.sh; then
4650 echo "$as_me:$LINENO: result: found" >&5
4651 echo "${ECHO_T}found" >&6
4652 echo "loading gnome configuration from" \
4653 "$gnome_prefix/gnomeConf.sh"
4654 . $gnome_prefix/gnomeConf.sh
4657 echo "$as_me:$LINENO: result: not found" >&5
4658 echo "${ECHO_T}not found" >&6
4659 if test xfail = xfail; then
4660 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4661 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4662 { (exit 1); exit 1; }; }
4671 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4672 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4676 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4677 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4678 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4681 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4682 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4683 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4686 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4687 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4688 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4690 echo "$as_me:$LINENO: result: unknown library" >&5
4691 echo "${ECHO_T}unknown library" >&6
4693 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4694 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4699 GNOME_DIR=src/gnome-console
4700 gnome_version="version 1.4"
4706 # -------------------------------------------
4707 # smartalloc (default off)
4708 # -------------------------------------------
4709 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4710 if test "${enable_smartalloc+set}" = set; then
4711 enableval="$enable_smartalloc"
4712 if test x$enableval = xno; then
4713 support_smartalloc=no
4717 if test x$support_smartalloc = xyes; then
4718 cat >>confdefs.h <<\_ACEOF
4719 #define SMARTALLOC 1
4724 # -------------------------------------------
4725 # static-tools (default off)
4726 # -------------------------------------------
4727 # Check whether --enable-static-tools or --disable-static-tools was given.
4728 if test "${enable_static_tools+set}" = set; then
4729 enableval="$enable_static_tools"
4730 if test x$enableval = xyes; then
4731 support_static_tools=yes
4736 if test x$support_static_tools = xyes; then
4737 TTOOL_LDFLAGS="-static"
4741 # -------------------------------------------
4742 # static-fd (default off)
4743 # -------------------------------------------
4744 # Check whether --enable-static-fd or --disable-static-fd was given.
4745 if test "${enable_static_fd+set}" = set; then
4746 enableval="$enable_static_fd"
4747 if test x$enableval = xyes; then
4748 support_static_fd=yes
4753 if test x$support_static_fd = xyes; then
4754 STATIC_FD="static-bacula-fd"
4758 # -------------------------------------------
4759 # static-sd (default off)
4760 # -------------------------------------------
4761 # Check whether --enable-static-sd or --disable-static-sd was given.
4762 if test "${enable_static_sd+set}" = set; then
4763 enableval="$enable_static_sd"
4764 if test x$enableval = xyes; then
4765 support_static_sd=yes
4770 if test x$support_static_sd = xyes; then
4771 STATIC_SD="static-bacula-sd"
4775 # -------------------------------------------
4776 # static-dir (default off)
4777 # -------------------------------------------
4778 # Check whether --enable-static-dir or --disable-static-dir was given.
4779 if test "${enable_static_dir+set}" = set; then
4780 enableval="$enable_static_dir"
4781 if test x$enableval = xyes; then
4782 support_static_dir=yes
4787 if test x$support_static_dir = xyes; then
4788 STATIC_DIR="static-bacula-dir"
4792 # -------------------------------------------
4793 # static-cons (default off)
4794 # -------------------------------------------
4795 # Check whether --enable-static-cons or --disable-static-cons was given.
4796 if test "${enable_static_cons+set}" = set; then
4797 enableval="$enable_static_cons"
4798 if test x$enableval = xyes; then
4799 support_static_cons=yes
4805 if test x$support_static_cons = xyes; then
4806 STATIC_CONS="static-console"
4807 STATIC_GNOME_CONS="static-gnome-console"
4812 # -------------------------------------------
4813 # client_only (default off)
4814 # -------------------------------------------
4815 # Check whether --enable-client-only or --disable-client-only was given.
4816 if test "${enable_client_only+set}" = set; then
4817 enableval="$enable_client_only"
4818 if test x$enableval = xyes; then
4819 build_client_only=yes
4822 if test x$build_client_only = xno; then
4829 # ---------------------------------------------------
4830 # Check for readline support/directory (default on)
4831 # ---------------------------------------------------
4832 # this allows you to turn it completely off
4833 # Check whether --enable-readline or --disable-readline was given.
4834 if test "${enable_readline+set}" = set; then
4835 enableval="$enable_readline"
4836 if test x$enableval = xno; then
4843 if test x$support_readline = xyes; then
4844 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4845 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4846 if test "${ac_cv_header_stdc+set}" = set; then
4847 echo $ECHO_N "(cached) $ECHO_C" >&6
4849 cat >conftest.$ac_ext <<_ACEOF
4850 #line $LINENO "configure"
4853 cat confdefs.h >>conftest.$ac_ext
4854 cat >>conftest.$ac_ext <<_ACEOF
4855 /* end confdefs.h. */
4869 rm -f conftest.$ac_objext
4870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4871 (eval $ac_compile) 2>&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } &&
4875 { ac_try='test -s conftest.$ac_objext'
4876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); }; }; then
4881 ac_cv_header_stdc=yes
4883 echo "$as_me: failed program was:" >&5
4884 sed 's/^/| /' conftest.$ac_ext >&5
4886 ac_cv_header_stdc=no
4888 rm -f conftest.$ac_objext conftest.$ac_ext
4890 if test $ac_cv_header_stdc = yes; then
4891 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4892 cat >conftest.$ac_ext <<_ACEOF
4893 #line $LINENO "configure"
4896 cat confdefs.h >>conftest.$ac_ext
4897 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h. */
4902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4903 $EGREP "memchr" >/dev/null 2>&1; then
4906 ac_cv_header_stdc=no
4912 if test $ac_cv_header_stdc = yes; then
4913 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4914 cat >conftest.$ac_ext <<_ACEOF
4915 #line $LINENO "configure"
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4925 $EGREP "free" >/dev/null 2>&1; then
4928 ac_cv_header_stdc=no
4934 if test $ac_cv_header_stdc = yes; then
4935 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4936 if test "$cross_compiling" = yes; then
4939 cat >conftest.$ac_ext <<_ACEOF
4940 #line $LINENO "configure"
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4947 #if ((' ' & 0x0FF) == 0x020)
4948 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4949 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4951 # define ISLOWER(c) \
4952 (('a' <= (c) && (c) <= 'i') \
4953 || ('j' <= (c) && (c) <= 'r') \
4954 || ('s' <= (c) && (c) <= 'z'))
4955 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4958 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4963 for (i = 0; i < 256; i++)
4964 if (XOR (islower (i), ISLOWER (i))
4965 || toupper (i) != TOUPPER (i))
4970 rm -f conftest$ac_exeext
4971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4972 (eval $ac_link) 2>&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); }; }; then
4983 echo "$as_me: program exited with status $ac_status" >&5
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.$ac_ext >&5
4988 ac_cv_header_stdc=no
4990 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4994 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4995 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4996 if test $ac_cv_header_stdc = yes; then
4998 cat >>confdefs.h <<\_ACEOF
4999 #define STDC_HEADERS 1
5004 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5014 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5015 inttypes.h stdint.h unistd.h
5017 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5018 echo "$as_me:$LINENO: checking for $ac_header" >&5
5019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5021 echo $ECHO_N "(cached) $ECHO_C" >&6
5023 cat >conftest.$ac_ext <<_ACEOF
5024 #line $LINENO "configure"
5027 cat confdefs.h >>conftest.$ac_ext
5028 cat >>conftest.$ac_ext <<_ACEOF
5029 /* end confdefs.h. */
5030 $ac_includes_default
5032 #include <$ac_header>
5034 rm -f conftest.$ac_objext
5035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5036 (eval $ac_compile) 2>&5
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); } &&
5040 { ac_try='test -s conftest.$ac_objext'
5041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); }; }; then
5046 eval "$as_ac_Header=yes"
5048 echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5051 eval "$as_ac_Header=no"
5053 rm -f conftest.$ac_objext conftest.$ac_ext
5055 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5056 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5058 cat >>confdefs.h <<_ACEOF
5059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5068 # Check whether --with-readline or --without-readline was given.
5069 if test "${with_readline+set}" = set; then
5070 withval="$with_readline"
5072 case "$with_readline" in
5075 if test "$with_readline" != "yes"; then
5076 CONS_INC="-I${with_readline}"
5077 CONS_LDFLAGS="-L$with_readline"
5079 with_readline="/usr/include/readline"
5081 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5083 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5084 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5085 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5088 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5089 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5091 # Is the header compilable?
5092 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5093 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5094 cat >conftest.$ac_ext <<_ACEOF
5095 #line $LINENO "configure"
5098 cat confdefs.h >>conftest.$ac_ext
5099 cat >>conftest.$ac_ext <<_ACEOF
5100 /* end confdefs.h. */
5101 $ac_includes_default
5102 #include <${with_readline}/readline.h>
5104 rm -f conftest.$ac_objext
5105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5106 (eval $ac_compile) 2>&5
5108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } &&
5110 { ac_try='test -s conftest.$ac_objext'
5111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); }; }; then
5116 ac_header_compiler=yes
5118 echo "$as_me: failed program was:" >&5
5119 sed 's/^/| /' conftest.$ac_ext >&5
5121 ac_header_compiler=no
5123 rm -f conftest.$ac_objext conftest.$ac_ext
5124 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5125 echo "${ECHO_T}$ac_header_compiler" >&6
5127 # Is the header present?
5128 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5129 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5130 cat >conftest.$ac_ext <<_ACEOF
5131 #line $LINENO "configure"
5134 cat confdefs.h >>conftest.$ac_ext
5135 cat >>conftest.$ac_ext <<_ACEOF
5136 /* end confdefs.h. */
5137 #include <${with_readline}/readline.h>
5139 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5140 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5142 grep -v '^ *+' conftest.er1 >conftest.err
5144 cat conftest.err >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); } >/dev/null; then
5147 if test -s conftest.err; then
5148 ac_cpp_err=$ac_c_preproc_warn_flag
5155 if test -z "$ac_cpp_err"; then
5156 ac_header_preproc=yes
5158 echo "$as_me: failed program was:" >&5
5159 sed 's/^/| /' conftest.$ac_ext >&5
5161 ac_header_preproc=no
5163 rm -f conftest.err conftest.$ac_ext
5164 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5165 echo "${ECHO_T}$ac_header_preproc" >&6
5167 # So? What about this header?
5168 case $ac_header_compiler:$ac_header_preproc in
5170 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5171 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5172 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5173 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5176 ## ------------------------------------ ##
5177 ## Report this to bug-autoconf@gnu.org. ##
5178 ## ------------------------------------ ##
5181 sed "s/^/$as_me: WARNING: /" >&2
5184 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5185 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5186 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5187 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5188 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5189 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5192 ## ------------------------------------ ##
5193 ## Report this to bug-autoconf@gnu.org. ##
5194 ## ------------------------------------ ##
5197 sed "s/^/$as_me: WARNING: /" >&2
5200 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5201 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 eval "$as_ac_Header=$ac_header_preproc"
5207 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5208 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5212 cat >>confdefs.h <<\_ACEOF
5213 #define HAVE_READLINE 1
5216 CONS_LIBS="-lreadline -ltermcap"
5220 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5221 echo "$as_me: error: *** readline library missing" >&2;}
5222 { (exit 1); exit 1; }; }
5233 # check for standard readline library
5234 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5235 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5236 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5237 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5241 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5243 # Is the header compilable?
5244 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5245 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5246 cat >conftest.$ac_ext <<_ACEOF
5247 #line $LINENO "configure"
5250 cat confdefs.h >>conftest.$ac_ext
5251 cat >>conftest.$ac_ext <<_ACEOF
5252 /* end confdefs.h. */
5253 $ac_includes_default
5254 #include </usr/include/readline/readline.h>
5256 rm -f conftest.$ac_objext
5257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5258 (eval $ac_compile) 2>&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } &&
5262 { ac_try='test -s conftest.$ac_objext'
5263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; }; then
5268 ac_header_compiler=yes
5270 echo "$as_me: failed program was:" >&5
5271 sed 's/^/| /' conftest.$ac_ext >&5
5273 ac_header_compiler=no
5275 rm -f conftest.$ac_objext conftest.$ac_ext
5276 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5277 echo "${ECHO_T}$ac_header_compiler" >&6
5279 # Is the header present?
5280 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5281 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5282 cat >conftest.$ac_ext <<_ACEOF
5283 #line $LINENO "configure"
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h. */
5289 #include </usr/include/readline/readline.h>
5291 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5292 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5294 grep -v '^ *+' conftest.er1 >conftest.err
5296 cat conftest.err >&5
5297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5298 (exit $ac_status); } >/dev/null; then
5299 if test -s conftest.err; then
5300 ac_cpp_err=$ac_c_preproc_warn_flag
5307 if test -z "$ac_cpp_err"; then
5308 ac_header_preproc=yes
5310 echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5313 ac_header_preproc=no
5315 rm -f conftest.err conftest.$ac_ext
5316 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5317 echo "${ECHO_T}$ac_header_preproc" >&6
5319 # So? What about this header?
5320 case $ac_header_compiler:$ac_header_preproc in
5322 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5323 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5324 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5325 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5328 ## ------------------------------------ ##
5329 ## Report this to bug-autoconf@gnu.org. ##
5330 ## ------------------------------------ ##
5333 sed "s/^/$as_me: WARNING: /" >&2
5336 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5337 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5338 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5339 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5340 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5341 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5344 ## ------------------------------------ ##
5345 ## Report this to bug-autoconf@gnu.org. ##
5346 ## ------------------------------------ ##
5349 sed "s/^/$as_me: WARNING: /" >&2
5352 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5353 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5354 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5359 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5360 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5363 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5364 cat >>confdefs.h <<\_ACEOF
5365 #define HAVE_READLINE 1
5369 CONS_INC="-I/usr/include/readline"
5370 CONS_LIBS="-lreadline -ltermcap"
5374 # Did not find standard library, so try Bacula's default
5375 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5377 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5378 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5379 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5382 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5383 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5385 # Is the header compilable?
5386 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5387 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
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. */
5395 $ac_includes_default
5396 #include <${TOP_DIR}/depkgs/readline/readline.h>
5398 rm -f conftest.$ac_objext
5399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5400 (eval $ac_compile) 2>&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } &&
5404 { ac_try='test -s conftest.$ac_objext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 ac_header_compiler=yes
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5415 ac_header_compiler=no
5417 rm -f conftest.$ac_objext conftest.$ac_ext
5418 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5419 echo "${ECHO_T}$ac_header_compiler" >&6
5421 # Is the header present?
5422 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5423 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5424 cat >conftest.$ac_ext <<_ACEOF
5425 #line $LINENO "configure"
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5431 #include <${TOP_DIR}/depkgs/readline/readline.h>
5433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5436 grep -v '^ *+' conftest.er1 >conftest.err
5438 cat conftest.err >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } >/dev/null; then
5441 if test -s conftest.err; then
5442 ac_cpp_err=$ac_c_preproc_warn_flag
5449 if test -z "$ac_cpp_err"; then
5450 ac_header_preproc=yes
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.$ac_ext >&5
5455 ac_header_preproc=no
5457 rm -f conftest.err conftest.$ac_ext
5458 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5459 echo "${ECHO_T}$ac_header_preproc" >&6
5461 # So? What about this header?
5462 case $ac_header_compiler:$ac_header_preproc in
5464 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5465 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5466 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5467 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5470 ## ------------------------------------ ##
5471 ## Report this to bug-autoconf@gnu.org. ##
5472 ## ------------------------------------ ##
5475 sed "s/^/$as_me: WARNING: /" >&2
5478 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5479 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5480 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5481 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5482 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5483 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5486 ## ------------------------------------ ##
5487 ## Report this to bug-autoconf@gnu.org. ##
5488 ## ------------------------------------ ##
5491 sed "s/^/$as_me: WARNING: /" >&2
5494 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5495 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/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 eval "$as_ac_Header=$ac_header_preproc"
5501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5506 cat >>confdefs.h <<\_ACEOF
5507 #define HAVE_READLINE 1
5511 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5512 CONS_LIBS="-lreadline -lhistory -ltermcap"
5513 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5514 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5517 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5518 echo "$as_me: error: *** readline library missing" >&2;}
5519 { (exit 1); exit 1; }; }
5539 # Minimal stuff for readline Makefile configuration
5543 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5544 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5545 if test "${ac_cv_header_stat_broken+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 cat >conftest.$ac_ext <<_ACEOF
5549 #line $LINENO "configure"
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h. */
5555 #include <sys/types.h>
5556 #include <sys/stat.h>
5558 #if defined(S_ISBLK) && defined(S_IFDIR)
5559 # if S_ISBLK (S_IFDIR)
5564 #if defined(S_ISBLK) && defined(S_IFCHR)
5565 # if S_ISBLK (S_IFCHR)
5570 #if defined(S_ISLNK) && defined(S_IFREG)
5571 # if S_ISLNK (S_IFREG)
5576 #if defined(S_ISSOCK) && defined(S_IFREG)
5577 # if S_ISSOCK (S_IFREG)
5583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5584 $EGREP "You lose" >/dev/null 2>&1; then
5585 ac_cv_header_stat_broken=yes
5587 ac_cv_header_stat_broken=no
5592 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5593 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5594 if test $ac_cv_header_stat_broken = yes; then
5596 cat >>confdefs.h <<\_ACEOF
5597 #define STAT_MACROS_BROKEN 1
5608 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5609 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5610 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5611 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5612 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5613 echo $ECHO_N "(cached) $ECHO_C" >&6
5615 cat >conftest.$ac_ext <<_ACEOF
5616 #line $LINENO "configure"
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5622 #include <sys/types.h>
5634 rm -f conftest.$ac_objext
5635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5636 (eval $ac_compile) 2>&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } &&
5640 { ac_try='test -s conftest.$ac_objext'
5641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5645 (exit $ac_status); }; }; then
5646 eval "$as_ac_Header=yes"
5648 echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.$ac_ext >&5
5651 eval "$as_ac_Header=no"
5653 rm -f conftest.$ac_objext conftest.$ac_ext
5655 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5656 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5658 cat >>confdefs.h <<_ACEOF
5659 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5662 ac_header_dirent=$ac_hdr; break
5666 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5667 if test $ac_header_dirent = dirent.h; then
5668 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5669 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5670 if test "${ac_cv_search_opendir+set}" = set; then
5671 echo $ECHO_N "(cached) $ECHO_C" >&6
5673 ac_func_search_save_LIBS=$LIBS
5674 ac_cv_search_opendir=no
5675 cat >conftest.$ac_ext <<_ACEOF
5676 #line $LINENO "configure"
5679 cat confdefs.h >>conftest.$ac_ext
5680 cat >>conftest.$ac_ext <<_ACEOF
5681 /* end confdefs.h. */
5683 /* Override any gcc2 internal prototype to avoid an error. */
5687 /* We use char because int might match the return type of a gcc2
5688 builtin and then its argument prototype would still apply. */
5698 rm -f conftest.$ac_objext conftest$ac_exeext
5699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5700 (eval $ac_link) 2>&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } &&
5704 { ac_try='test -s conftest$ac_exeext'
5705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5709 (exit $ac_status); }; }; then
5710 ac_cv_search_opendir="none required"
5712 echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.$ac_ext >&5
5716 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5717 if test "$ac_cv_search_opendir" = no; then
5718 for ac_lib in dir; do
5719 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5720 cat >conftest.$ac_ext <<_ACEOF
5721 #line $LINENO "configure"
5724 cat confdefs.h >>conftest.$ac_ext
5725 cat >>conftest.$ac_ext <<_ACEOF
5726 /* end confdefs.h. */
5728 /* Override any gcc2 internal prototype to avoid an error. */
5732 /* We use char because int might match the return type of a gcc2
5733 builtin and then its argument prototype would still apply. */
5743 rm -f conftest.$ac_objext conftest$ac_exeext
5744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5745 (eval $ac_link) 2>&5
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); } &&
5749 { ac_try='test -s conftest$ac_exeext'
5750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5754 (exit $ac_status); }; }; then
5755 ac_cv_search_opendir="-l$ac_lib"
5758 echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.$ac_ext >&5
5762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5765 LIBS=$ac_func_search_save_LIBS
5767 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5768 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5769 if test "$ac_cv_search_opendir" != no; then
5770 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5775 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5776 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5777 if test "${ac_cv_search_opendir+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 ac_func_search_save_LIBS=$LIBS
5781 ac_cv_search_opendir=no
5782 cat >conftest.$ac_ext <<_ACEOF
5783 #line $LINENO "configure"
5786 cat confdefs.h >>conftest.$ac_ext
5787 cat >>conftest.$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5790 /* Override any gcc2 internal prototype to avoid an error. */
5794 /* We use char because int might match the return type of a gcc2
5795 builtin and then its argument prototype would still apply. */
5805 rm -f conftest.$ac_objext conftest$ac_exeext
5806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5807 (eval $ac_link) 2>&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } &&
5811 { ac_try='test -s conftest$ac_exeext'
5812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); }; }; then
5817 ac_cv_search_opendir="none required"
5819 echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5824 if test "$ac_cv_search_opendir" = no; then
5826 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5827 cat >conftest.$ac_ext <<_ACEOF
5828 #line $LINENO "configure"
5831 cat confdefs.h >>conftest.$ac_ext
5832 cat >>conftest.$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5835 /* Override any gcc2 internal prototype to avoid an error. */
5839 /* We use char because int might match the return type of a gcc2
5840 builtin and then its argument prototype would still apply. */
5850 rm -f conftest.$ac_objext conftest$ac_exeext
5851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5852 (eval $ac_link) 2>&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } &&
5856 { ac_try='test -s conftest$ac_exeext'
5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; }; then
5862 ac_cv_search_opendir="-l$ac_lib"
5865 echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5869 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5872 LIBS=$ac_func_search_save_LIBS
5874 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5875 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5876 if test "$ac_cv_search_opendir" != no; then
5877 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5892 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
5894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5895 echo "$as_me:$LINENO: checking for $ac_func" >&5
5896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5897 if eval "test \"\${$as_ac_var+set}\" = set"; then
5898 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 cat >conftest.$ac_ext <<_ACEOF
5901 #line $LINENO "configure"
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5907 /* System header to define __stub macros and hopefully few prototypes,
5908 which can conflict with char $ac_func (); below.
5909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5910 <limits.h> exists even on freestanding compilers. */
5912 # include <limits.h>
5914 # include <assert.h>
5916 /* Override any gcc2 internal prototype to avoid an error. */
5921 /* We use char because int might match the return type of a gcc2
5922 builtin and then its argument prototype would still apply. */
5924 /* The GNU C library defines this for functions which it implements
5925 to always fail with ENOSYS. Some functions are actually named
5926 something starting with __ and the normal name is an alias. */
5927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5930 char (*f) () = $ac_func;
5939 return f != $ac_func;
5944 rm -f conftest.$ac_objext conftest$ac_exeext
5945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5946 (eval $ac_link) 2>&5
5948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5949 (exit $ac_status); } &&
5950 { ac_try='test -s conftest$ac_exeext'
5951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; }; then
5956 eval "$as_ac_var=yes"
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5961 eval "$as_ac_var=no"
5963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5967 if test `eval echo '${'$as_ac_var'}'` = yes; then
5968 cat >>confdefs.h <<_ACEOF
5969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5976 for ac_func in nanosleep
5978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5979 echo "$as_me:$LINENO: checking for $ac_func" >&5
5980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5981 if eval "test \"\${$as_ac_var+set}\" = set"; then
5982 echo $ECHO_N "(cached) $ECHO_C" >&6
5984 cat >conftest.$ac_ext <<_ACEOF
5985 #line $LINENO "configure"
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
5991 /* System header to define __stub macros and hopefully few prototypes,
5992 which can conflict with char $ac_func (); below.
5993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5994 <limits.h> exists even on freestanding compilers. */
5996 # include <limits.h>
5998 # include <assert.h>
6000 /* Override any gcc2 internal prototype to avoid an error. */
6005 /* We use char because int might match the return type of a gcc2
6006 builtin and then its argument prototype would still apply. */
6008 /* The GNU C library defines this for functions which it implements
6009 to always fail with ENOSYS. Some functions are actually named
6010 something starting with __ and the normal name is an alias. */
6011 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6014 char (*f) () = $ac_func;
6023 return f != $ac_func;
6028 rm -f conftest.$ac_objext conftest$ac_exeext
6029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6030 (eval $ac_link) 2>&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); } &&
6034 { ac_try='test -s conftest$ac_exeext'
6035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); }; }; then
6040 eval "$as_ac_var=yes"
6042 echo "$as_me: failed program was:" >&5
6043 sed 's/^/| /' conftest.$ac_ext >&5
6045 eval "$as_ac_var=no"
6047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6050 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6051 if test `eval echo '${'$as_ac_var'}'` = yes; then
6052 cat >>confdefs.h <<_ACEOF
6053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6061 for ac_header in varargs.h
6063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6065 echo "$as_me:$LINENO: checking for $ac_header" >&5
6066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6068 echo $ECHO_N "(cached) $ECHO_C" >&6
6070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6073 # Is the header compilable?
6074 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6076 cat >conftest.$ac_ext <<_ACEOF
6077 #line $LINENO "configure"
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6083 $ac_includes_default
6084 #include <$ac_header>
6086 rm -f conftest.$ac_objext
6087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6088 (eval $ac_compile) 2>&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try='test -s conftest.$ac_objext'
6093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6098 ac_header_compiler=yes
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6103 ac_header_compiler=no
6105 rm -f conftest.$ac_objext conftest.$ac_ext
6106 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6107 echo "${ECHO_T}$ac_header_compiler" >&6
6109 # Is the header present?
6110 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6111 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6112 cat >conftest.$ac_ext <<_ACEOF
6113 #line $LINENO "configure"
6116 cat confdefs.h >>conftest.$ac_ext
6117 cat >>conftest.$ac_ext <<_ACEOF
6118 /* end confdefs.h. */
6119 #include <$ac_header>
6121 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6122 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6124 grep -v '^ *+' conftest.er1 >conftest.err
6126 cat conftest.err >&5
6127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6128 (exit $ac_status); } >/dev/null; then
6129 if test -s conftest.err; then
6130 ac_cpp_err=$ac_c_preproc_warn_flag
6137 if test -z "$ac_cpp_err"; then
6138 ac_header_preproc=yes
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6143 ac_header_preproc=no
6145 rm -f conftest.err conftest.$ac_ext
6146 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6147 echo "${ECHO_T}$ac_header_preproc" >&6
6149 # So? What about this header?
6150 case $ac_header_compiler:$ac_header_preproc in
6152 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6153 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6158 ## ------------------------------------ ##
6159 ## Report this to bug-autoconf@gnu.org. ##
6160 ## ------------------------------------ ##
6163 sed "s/^/$as_me: WARNING: /" >&2
6166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6174 ## ------------------------------------ ##
6175 ## Report this to bug-autoconf@gnu.org. ##
6176 ## ------------------------------------ ##
6179 sed "s/^/$as_me: WARNING: /" >&2
6182 echo "$as_me:$LINENO: checking for $ac_header" >&5
6183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6184 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 eval "$as_ac_Header=$ac_header_preproc"
6189 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6190 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6193 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6194 cat >>confdefs.h <<_ACEOF
6195 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6203 # End of readline stuff
6204 # -----------------------------------------------------------------------
6207 # ---------------------------------------------------
6208 # Check for GMP support/directory
6209 # ---------------------------------------------------
6213 # [ --with-gmp[=DIR] Specify gmp library directory],
6215 # case "$with_gmp" in
6218 # if test "$with_gmp" != "yes"; then
6219 # GMP_INC="-I$with_gmp"
6221 # GMP_LDFLAGS="-L$with_gmp"
6223 # with_gmp="/usr/include"
6225 # AC_CHECK_HEADER($with_gmp/gmp.h,
6226 # [ AC_MSG_RESULT(yes)
6227 # AC_DEFINE(HAVE_GMP)
6231 # [ AC_MSG_ERROR([*** gmp library missing])
6237 # # check for standard gmp library
6238 # AC_CHECK_HEADER(/usr/include/gmp.h,
6239 # [ AC_MSG_RESULT(yes)
6240 # AC_DEFINE(HAVE_GMP)
6245 # # Did not find standard library, so use our own
6246 # AC_MSG_RESULT(yes)
6247 # AC_DEFINE(HAVE_GMP)
6250 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6252 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6253 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6259 #AC_SUBST(GMP_LDFLAGS)
6263 # -----------------------------------------------------------------------
6266 # ---------------------------------------------------
6267 # Check for CWEB support/directory
6268 # ---------------------------------------------------
6273 # [ --with-cweb[=DIR] Specify cweb library directory],
6275 # case "$with_cweb" in
6278 # if test "$with_cweb" != "yes"; then
6279 # CWEB_INC="-I$with_cweb"
6280 # CWEB_LIBS="-lcweb"
6281 # CWEB_LDFLAGS="-L$with_cweb"
6283 # with_cweb="/usr/include"
6285 # AC_CHECK_HEADER($with_cweb/cweb.h,
6286 # [ AC_MSG_RESULT(yes)
6287 # AC_DEFINE(HAVE_CWEB)
6288 # CWEB_LIBS="-lcweb"
6291 # [ AC_MSG_ERROR([*** cweb library missing])
6297 # # check for standard cweb library
6298 # AC_CHECK_HEADER(/usr/include/cweb.h,
6299 # [ AC_MSG_RESULT(yes)
6300 # AC_DEFINE(HAVE_CWEB)
6303 # CWEB_LIBS="-lcweb"
6305 # # Did not find starndard library, so use our own
6306 # AC_MSG_RESULT(yes)
6307 # AC_DEFINE(HAVE_CWEB)
6310 # CWEB=${TOP_DIR}/depkgs/cweb
6311 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6312 # CWEB_LIBS="-lcweb"
6313 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6314 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6320 #AC_SUBST(CWEB_LIBS)
6321 #AC_SUBST(CWEB_LDFLAGS)
6325 # -----------------------------------------------------------------------
6329 # -----------------------------------------------------------
6330 # Check whether user wants TCP wrappers support (default off)
6331 # -----------------------------------------------------------
6334 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6335 if test "${with_tcp_wrappers+set}" = set; then
6336 withval="$with_tcp_wrappers"
6338 if test "x$withval" != "xno" ; then
6340 LIBS="$saved_LIBS -lwrap"
6341 echo "$as_me:$LINENO: checking for libwrap" >&5
6342 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6343 cat >conftest.$ac_ext <<_ACEOF
6344 #line $LINENO "configure"
6347 cat confdefs.h >>conftest.$ac_ext
6348 cat >>conftest.$ac_ext <<_ACEOF
6349 /* end confdefs.h. */
6351 int deny_severity = 0;
6352 int allow_severity = 0;
6353 struct request_info *req;
6362 rm -f conftest.$ac_objext conftest$ac_exeext
6363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6364 (eval $ac_link) 2>&5
6366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6367 (exit $ac_status); } &&
6368 { ac_try='test -s conftest$ac_exeext'
6369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); }; }; then
6375 echo "$as_me:$LINENO: result: yes" >&5
6376 echo "${ECHO_T}yes" >&6
6377 cat >>confdefs.h <<\_ACEOF
6378 #define HAVE_LIBWRAP 1
6384 echo "$as_me: failed program was:" >&5
6385 sed 's/^/| /' conftest.$ac_ext >&5
6388 LIBS="$saved_LIBS -lwrap -lnsl"
6389 cat >conftest.$ac_ext <<_ACEOF
6390 #line $LINENO "configure"
6393 cat confdefs.h >>conftest.$ac_ext
6394 cat >>conftest.$ac_ext <<_ACEOF
6395 /* end confdefs.h. */
6397 int deny_severity = 0;
6398 int allow_severity = 0;
6399 struct request_info *req;
6408 rm -f conftest.$ac_objext conftest$ac_exeext
6409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6410 (eval $ac_link) 2>&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } &&
6414 { ac_try='test -s conftest$ac_exeext'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; }; then
6421 echo "$as_me:$LINENO: result: yes" >&5
6422 echo "${ECHO_T}yes" >&6
6423 cat >>confdefs.h <<\_ACEOF
6424 #define HAVE_LIBWRAP 1
6430 echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6433 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6434 echo "$as_me: error: *** libwrap missing" >&2;}
6435 { (exit 1); exit 1; }; }
6438 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6447 # ------------------------------------------
6448 # Where to place working dir
6449 # ------------------------------------------
6450 working_dir=`eval echo ${sysconfdir}/working`
6452 # Check whether --with-working-dir or --without-working-dir was given.
6453 if test "${with_working_dir+set}" = set; then
6454 withval="$with_working_dir"
6456 if test "x$withval" != "xno" ; then
6457 working_dir=$withval
6466 # ------------------------------------------
6467 # Where to place scriptdir (script files)
6468 # ------------------------------------------
6469 scriptdir=`eval echo ${sysconfdir}`
6471 # Check whether --with-scriptdir or --without-scriptdir was given.
6472 if test "${with_scriptdir+set}" = set; then
6473 withval="$with_scriptdir"
6475 if test "x$withval" != "xno" ; then
6485 # ------------------------------------------
6486 # Where to send dump email
6487 # ------------------------------------------
6488 dump_email=root@localhost
6490 # Check whether --with-dump-email or --without-dump-email was given.
6491 if test "${with_dump_email+set}" = set; then
6492 withval="$with_dump_email"
6494 if test "x$withval" != "xno" ; then
6503 # ------------------------------------------
6504 # Where to send job email
6505 # ------------------------------------------
6506 job_email=root@localhost
6508 # Check whether --with-job-email or --without-job-email was given.
6509 if test "${with_job_email+set}" = set; then
6510 withval="$with_job_email"
6512 if test "x$withval" != "xno" ; then
6521 # ------------------------------------------
6522 # Where to find smtp host
6523 # ------------------------------------------
6526 # Check whether --with-smtp_host or --without-smtp_host was given.
6527 if test "${with_smtp_host+set}" = set; then
6528 withval="$with_smtp_host"
6530 if test "x$withval" != "xno" ; then
6540 # ------------------------------------
6541 # Where to place pid files
6542 # ------------------------------------
6545 # Check whether --with-pid-dir or --without-pid-dir was given.
6546 if test "${with_pid_dir+set}" = set; then
6547 withval="$with_pid_dir"
6549 if test "x$withval" != "xno" ; then
6556 cat >>confdefs.h <<_ACEOF
6557 #define _PATH_BACULA_PIDDIR "$piddir"
6563 # ------------------------------------
6564 # Where to place subsys "lock file"
6565 # ------------------------------------
6566 subsysdir=/var/run/subsys
6568 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6569 if test "${with_subsys_dir+set}" = set; then
6570 withval="$with_subsys_dir"
6572 if test "x$withval" != "xno" ; then
6583 # ------------------------------------
6584 # Where to start assigning ports
6585 # ------------------------------------
6588 # Check whether --with-baseport or --without-baseport was given.
6589 if test "${with_baseport+set}" = set; then
6590 withval="$with_baseport"
6592 if test "x$withval" != "xno" ; then
6600 dir_port=`expr $baseport`
6601 fd_port=`expr $baseport + 1`
6602 sd_port=`expr $fd_port + 1`
6609 # ------------------------------------------
6610 # Generate passwords
6611 # ------------------------------------------
6614 # Check whether --with-dir-password or --without-dir-password was given.
6615 if test "${with_dir_password+set}" = set; then
6616 withval="$with_dir_password"
6618 if test "x$withval" != "xno" ; then
6619 dir_password=$withval
6625 if test "x$dir_password" = "x" ; then
6626 if test "x$OPENSSL" = "xnone" ; then
6627 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6628 key=`autoconf/randpass 33`
6630 key=`openssl rand -base64 33`
6637 # Check whether --with-fd-password or --without-fd-password was given.
6638 if test "${with_fd_password+set}" = set; then
6639 withval="$with_fd_password"
6641 if test "x$withval" != "xno" ; then
6642 fd_password=$withval
6648 if test "x$fd_password" = "x" ; then
6649 if test "x$OPENSSL" = "xnone" ; then
6650 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6651 key=`autoconf/randpass 37`
6653 key=`openssl rand -base64 33`
6660 # Check whether --with-sd-password or --without-sd-password was given.
6661 if test "${with_sd_password+set}" = set; then
6662 withval="$with_sd_password"
6664 if test "x$withval" != "xno" ; then
6665 sd_password=$withval
6671 if test "x$sd_password" = "x" ; then
6672 if test "x$OPENSSL" = "xnone" ; then
6673 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6674 key=`autoconf/randpass 41`
6676 key=`openssl rand -base64 33`
6688 # Handle users and groups for each daemon
6692 # Check whether --with-dir_user or --without-dir_user was given.
6693 if test "${with_dir_user+set}" = set; then
6694 withval="$with_dir_user"
6696 if test "x$withval" != "x" ; then
6705 # Check whether --with-dir_group or --without-dir_group was given.
6706 if test "${with_dir_group+set}" = set; then
6707 withval="$with_dir_group"
6709 if test "x$withval" != "x" ; then
6718 # Check whether --with-sd_user or --without-sd_user was given.
6719 if test "${with_sd_user+set}" = set; then
6720 withval="$with_sd_user"
6722 if test "x$withval" != "x" ; then
6731 # Check whether --with-sd_group or --without-sd_group was given.
6732 if test "${with_sd_group+set}" = set; then
6733 withval="$with_sd_group"
6735 if test "x$withval" != "x" ; then
6744 # Check whether --with-fd_user or --without-fd_user was given.
6745 if test "${with_fd_user+set}" = set; then
6746 withval="$with_fd_user"
6748 if test "x$withval" != "x" ; then
6757 # Check whether --with-fd_group or --without-fd_group was given.
6758 if test "${with_fd_group+set}" = set; then
6759 withval="$with_fd_group"
6761 if test "x$withval" != "x" ; then
6778 # ------------------------------------------------
6779 # Bacula check for various SQL database engines
6780 # ------------------------------------------------
6783 echo "$as_me:$LINENO: checking for MySQL support" >&5
6784 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
6786 # Check whether --with-mysql or --without-mysql was given.
6787 if test "${with_mysql+set}" = set; then
6788 withval="$with_mysql"
6790 if test "$withval" != "no"; then
6791 if test "$withval" = "yes"; then
6792 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6793 MYSQL_INCDIR=/usr/local/mysql/include/mysql
6794 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6795 MYSQL_BINDIR=/usr/local/mysql/bin
6796 elif test -f /usr/include/mysql/mysql.h; then
6797 MYSQL_INCDIR=/usr/include/mysql
6798 MYSQL_LIBDIR=/usr/lib/mysql
6799 MYSQL_BINDIR=/usr/bin
6800 elif test -f /usr/include/mysql.h; then
6801 MYSQL_INCDIR=/usr/include
6802 MYSQL_LIBDIR=/usr/lib
6803 MYSQL_BINDIR=/usr/bin
6804 elif test -f /usr/local/include/mysql/mysql.h; then
6805 MYSQL_INCDIR=/usr/local/include/mysql
6806 MYSQL_LIBDIR=/usr/local/lib/mysql
6807 MYSQL_BINDIR=/usr/local/bin
6808 elif test -f /usr/local/include/mysql.h; then
6809 MYSQL_INCDIR=/usr/local/include
6810 MYSQL_LIBDIR=/usr/local/lib
6811 MYSQL_BINDIR=/usr/local/bin
6813 echo "$as_me:$LINENO: result: no" >&5
6814 echo "${ECHO_T}no" >&6
6815 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6816 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6817 { (exit 1); exit 1; }; }
6820 if test -f $withval/include/mysql/mysql.h; then
6821 MYSQL_INCDIR=$withval/include/mysql
6822 MYSQL_LIBDIR=$withval/lib/mysql
6823 MYSQL_BINDIR=$withval/bin
6824 elif test -f $withval/include/mysql.h; then
6825 MYSQL_INCDIR=$withval/include
6826 MYSQL_LIBDIR=$withval/lib
6827 MYSQL_BINDIR=$withval/bin
6829 echo "$as_me:$LINENO: result: no" >&5
6830 echo "${ECHO_T}no" >&6
6831 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6832 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6833 { (exit 1); exit 1; }; }
6836 SQL_INCLUDE=-I$MYSQL_INCDIR
6837 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
6838 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
6839 cat >>confdefs.h <<\_ACEOF
6840 #define HAVE_THREAD_SAFE_MYSQL 1
6844 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
6846 SQL_BINDIR=$MYSQL_BINDIR
6848 cat >>confdefs.h <<\_ACEOF
6849 #define HAVE_MYSQL 1
6852 echo "$as_me:$LINENO: result: yes" >&5
6853 echo "${ECHO_T}yes" >&6
6860 echo "$as_me:$LINENO: result: no" >&5
6861 echo "${ECHO_T}no" >&6
6866 echo "$as_me:$LINENO: result: no" >&5
6867 echo "${ECHO_T}no" >&6
6872 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
6873 if test "${with_embedded_mysql+set}" = set; then
6874 withval="$with_embedded_mysql"
6876 if test "$withval" != "no"; then
6877 if test "$withval" = "yes"; then
6878 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6879 MYSQL_INCDIR=/usr/local/mysql/include/mysql
6880 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6881 MYSQL_BINDIR=/usr/local/mysql/bin
6882 elif test -f /usr/include/mysql/mysql.h; then
6883 MYSQL_INCDIR=/usr/include/mysql
6884 MYSQL_LIBDIR=/usr/lib/mysql
6885 MYSQL_BINDIR=/usr/bin
6886 elif test -f /usr/include/mysql.h; then
6887 MYSQL_INCDIR=/usr/include
6888 MYSQL_LIBDIR=/usr/lib
6889 MYSQL_BINDIR=/usr/bin
6890 elif test -f /usr/local/include/mysql/mysql.h; then
6891 MYSQL_INCDIR=/usr/local/include/mysql
6892 MYSQL_LIBDIR=/usr/local/lib/mysql
6893 MYSQL_BINDIR=/usr/local/bin
6894 elif test -f /usr/local/include/mysql.h; then
6895 MYSQL_INCDIR=/usr/local/include
6896 MYSQL_LIBDIR=/usr/local/lib
6897 MYSQL_BINDIR=/usr/local/bin
6899 echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6
6901 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6902 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6903 { (exit 1); exit 1; }; }
6906 if test -f $withval/include/mysql/mysql.h; then
6907 MYSQL_INCDIR=$withval/include/mysql
6908 MYSQL_LIBDIR=$withval/lib/mysql
6909 MYSQL_BINDIR=$withval/bin
6910 elif test -f $withval/include/mysql.h; then
6911 MYSQL_INCDIR=$withval/include
6912 MYSQL_LIBDIR=$withval/lib
6913 MYSQL_BINDIR=$withval/bin
6915 echo "$as_me:$LINENO: result: no" >&5
6916 echo "${ECHO_T}no" >&6
6917 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6918 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6919 { (exit 1); exit 1; }; }
6922 SQL_INCLUDE=-I$MYSQL_INCDIR
6923 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
6924 SQL_BINDIR=$MYSQL_BINDIR
6926 cat >>confdefs.h <<\_ACEOF
6927 #define HAVE_MYSQL 1
6930 cat >>confdefs.h <<\_ACEOF
6931 #define HAVE_EMBEDDED_MYSQL 1
6934 echo "$as_me:$LINENO: result: yes" >&5
6935 echo "${ECHO_T}yes" >&6
6942 echo "$as_me:$LINENO: result: no" >&5
6943 echo "${ECHO_T}no" >&6
6948 echo "$as_me:$LINENO: result: no" >&5
6949 echo "${ECHO_T}no" >&6
6961 # ------------------------------------------------
6962 # Bacula check for various SQL database engines
6963 # ------------------------------------------------
6966 echo "$as_me:$LINENO: checking for SQLite support" >&5
6967 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
6969 # Check whether --with-sqlite or --without-sqlite was given.
6970 if test "${with_sqlite+set}" = set; then
6971 withval="$with_sqlite"
6973 if test "$withval" != "no"; then
6974 if test "$withval" = "yes"; then
6975 if test -f /usr/local/include/sqlite.h; then
6976 SQLITE_INCDIR=/usr/local/include
6977 SQLITE_LIBDIR=/usr/local/lib
6978 SQLITE_BINDIR=/usr/local/bin
6979 elif test -f /usr/include/sqlite.h; then
6980 SQLITE_INCDIR=/usr/include
6981 SQLITE_LIBDIR=/usr/lib
6982 SQLITE_BINDIR=/usr/bin
6984 echo "$as_me:$LINENO: result: no" >&5
6985 echo "${ECHO_T}no" >&6
6986 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
6987 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
6988 { (exit 1); exit 1; }; }
6991 if test -f $withval/sqlite.h; then
6992 SQLITE_INCDIR=$withval
6993 SQLITE_LIBDIR=$withval
6994 SQLITE_BINDIR=$withval
6996 echo "$as_me:$LINENO: result: no" >&5
6997 echo "${ECHO_T}no" >&6
6998 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
6999 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7000 { (exit 1); exit 1; }; }
7003 SQL_INCLUDE=-I$SQLITE_INCDIR
7004 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7005 SQL_BINDIR=$SQLITE_BINDIR
7007 cat >>confdefs.h <<\_ACEOF
7008 #define HAVE_SQLITE 1
7011 echo "$as_me:$LINENO: result: yes" >&5
7012 echo "${ECHO_T}yes" >&6
7019 echo "$as_me:$LINENO: result: no" >&5
7020 echo "${ECHO_T}no" >&6
7025 echo "$as_me:$LINENO: result: no" >&5
7026 echo "${ECHO_T}no" >&6
7038 cat >>confdefs.h <<\_ACEOF
7039 #define PROTOTYPES 1
7043 if test -z "$CFLAGS"; then
7044 if test -z "$CCOPTS"; then
7053 largefile_support="no"
7055 # Check whether --enable-largefile or --disable-largefile was given.
7056 if test "${enable_largefile+set}" = set; then
7057 enableval="$enable_largefile"
7060 if test "$enable_largefile" != no; then
7061 if test -n "$ac_tool_prefix"; then
7062 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7063 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7064 echo "$as_me:$LINENO: checking for $ac_word" >&5
7065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7066 if test "${ac_cv_prog_GETCONF+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7069 if test -n "$GETCONF"; then
7070 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 GETCONF=$ac_cv_prog_GETCONF
7089 if test -n "$GETCONF"; then
7090 echo "$as_me:$LINENO: result: $GETCONF" >&5
7091 echo "${ECHO_T}$GETCONF" >&6
7093 echo "$as_me:$LINENO: result: no" >&5
7094 echo "${ECHO_T}no" >&6
7098 if test -z "$ac_cv_prog_GETCONF"; then
7099 ac_ct_GETCONF=$GETCONF
7100 # Extract the first word of "getconf", so it can be a program name with args.
7101 set dummy getconf; ac_word=$2
7102 echo "$as_me:$LINENO: checking for $ac_word" >&5
7103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7104 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7105 echo $ECHO_N "(cached) $ECHO_C" >&6
7107 if test -n "$ac_ct_GETCONF"; then
7108 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 test -z "$as_dir" && as_dir=.
7115 for ac_exec_ext in '' $ac_executable_extensions; do
7116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7117 ac_cv_prog_ac_ct_GETCONF="getconf"
7118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7127 if test -n "$ac_ct_GETCONF"; then
7128 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7129 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7131 echo "$as_me:$LINENO: result: no" >&5
7132 echo "${ECHO_T}no" >&6
7135 GETCONF=$ac_ct_GETCONF
7137 GETCONF="$ac_cv_prog_GETCONF"
7140 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7141 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7142 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7146 ac_cv_sys_largefile_CFLAGS=no
7148 # IRIX 6.2 and later require cc -n32.
7149 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7150 if test "$GCC" != yes; then
7151 ac_cv_sys_largefile_CFLAGS=-n32
7154 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7155 cat >conftest.$ac_ext <<_ACEOF
7156 #line $LINENO "configure"
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7171 rm -f conftest.$ac_objext conftest$ac_exeext
7172 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7173 (eval $ac_link) 2>&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } &&
7177 { ac_try='test -s conftest$ac_exeext'
7178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182 (exit $ac_status); }; }; then
7185 echo "$as_me: failed program was:" >&5
7186 sed 's/^/| /' conftest.$ac_ext >&5
7188 ac_cv_sys_largefile_CFLAGS=no
7190 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7195 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7196 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7197 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7198 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7199 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7203 ac_cv_sys_largefile_LDFLAGS=no
7207 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7208 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7209 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7210 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7211 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7212 echo $ECHO_N "(cached) $ECHO_C" >&6
7214 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7215 ac_cv_sys_largefile_LIBS=no
7219 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7220 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7222 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7225 -D_FILE_OFFSET_BITS=*) ;;
7226 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7227 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7233 '') CPPFLAGS="$ac_flag" ;;
7234 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7242 '') CFLAGS="$ac_flag" ;;
7243 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7248 case "$ac_cv_sys_largefile_LDFLAGS" in
7252 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7253 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7256 case "$ac_cv_sys_largefile_LIBS" in
7260 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7261 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7264 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7265 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7266 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7267 echo $ECHO_N "(cached) $ECHO_C" >&6
7269 ac_cv_sys_file_offset_bits=no
7271 # HP-UX 10.20 and later
7272 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7273 ac_cv_sys_file_offset_bits=64 ;;
7275 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7277 -D_FILE_OFFSET_BITS)
7278 ac_cv_sys_file_offset_bits=1 ;;
7279 -D_FILE_OFFSET_BITS=*)
7280 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7285 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7286 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7287 if test "$ac_cv_sys_file_offset_bits" != no; then
7289 cat >>confdefs.h <<_ACEOF
7290 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7294 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7295 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7296 if test "${ac_cv_sys_largefile_source+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 ac_cv_sys_largefile_source=no
7301 # HP-UX 10.20 and later
7302 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7303 ac_cv_sys_largefile_source=1 ;;
7305 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7307 -D_LARGEFILE_SOURCE)
7308 ac_cv_sys_largefile_source=1 ;;
7309 -D_LARGEFILE_SOURCE=*)
7310 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7315 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7316 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7317 if test "$ac_cv_sys_largefile_source" != no; then
7319 cat >>confdefs.h <<_ACEOF
7320 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7324 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7325 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7326 if test "${ac_cv_sys_large_files+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 ac_cv_sys_large_files=no
7332 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7333 ac_cv_sys_large_files=1 ;;
7335 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7338 ac_cv_sys_large_files=1 ;;
7340 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7345 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7346 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7347 if test "$ac_cv_sys_large_files" != no; then
7349 cat >>confdefs.h <<_ACEOF
7350 #define _LARGE_FILES $ac_cv_sys_large_files
7358 echo "$as_me:$LINENO: checking for X" >&5
7359 echo $ECHO_N "checking for X... $ECHO_C" >&6
7362 # Check whether --with-x or --without-x was given.
7363 if test "${with_x+set}" = set; then
7367 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7368 if test "x$with_x" = xno; then
7369 # The user explicitly disabled X.
7372 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7373 # Both variables are already set.
7376 if test "${ac_cv_have_x+set}" = set; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 # One or both of the vars are not set, and there is no cached value.
7380 ac_x_includes=no ac_x_libraries=no
7382 if mkdir conftest.dir; then
7384 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7385 cat >Imakefile <<'_ACEOF'
7387 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7389 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7390 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7391 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7392 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7393 for ac_extension in a so sl; do
7394 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7395 test -f $ac_im_libdir/libX11.$ac_extension; then
7396 ac_im_usrlibdir=$ac_im_libdir; break
7399 # Screen out bogus values from the imake configuration. They are
7400 # bogus both because they are the default anyway, and because
7401 # using them would break gcc on systems where it needs fixed includes.
7402 case $ac_im_incroot in
7404 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7406 case $ac_im_usrlibdir in
7408 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7415 # Standard set of common directories for X headers.
7416 # Check X11 before X11Rn because it is often a symlink to the current release.
7428 /usr/local/X11/include
7429 /usr/local/X11R6/include
7430 /usr/local/X11R5/include
7431 /usr/local/X11R4/include
7433 /usr/local/include/X11
7434 /usr/local/include/X11R6
7435 /usr/local/include/X11R5
7436 /usr/local/include/X11R4
7440 /usr/XFree86/include/X11
7444 /usr/unsupported/include
7446 /usr/local/x11r5/include
7447 /usr/lpp/Xamples/include
7449 /usr/openwin/include
7450 /usr/openwin/share/include'
7452 if test "$ac_x_includes" = no; then
7453 # Guess where to find include files, by looking for Intrinsic.h.
7454 # First, try using that file with no special directory specified.
7455 cat >conftest.$ac_ext <<_ACEOF
7456 #line $LINENO "configure"
7459 cat confdefs.h >>conftest.$ac_ext
7460 cat >>conftest.$ac_ext <<_ACEOF
7461 /* end confdefs.h. */
7462 #include <X11/Intrinsic.h>
7464 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7465 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7467 grep -v '^ *+' conftest.er1 >conftest.err
7469 cat conftest.err >&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } >/dev/null; then
7472 if test -s conftest.err; then
7473 ac_cpp_err=$ac_c_preproc_warn_flag
7480 if test -z "$ac_cpp_err"; then
7481 # We can compile using X headers with no special include directory.
7484 echo "$as_me: failed program was:" >&5
7485 sed 's/^/| /' conftest.$ac_ext >&5
7487 for ac_dir in $ac_x_header_dirs; do
7488 if test -r "$ac_dir/X11/Intrinsic.h"; then
7489 ac_x_includes=$ac_dir
7494 rm -f conftest.err conftest.$ac_ext
7495 fi # $ac_x_includes = no
7497 if test "$ac_x_libraries" = no; then
7498 # Check for the libraries.
7499 # See if we find them without any special options.
7500 # Don't add to $LIBS permanently.
7503 cat >conftest.$ac_ext <<_ACEOF
7504 #line $LINENO "configure"
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510 #include <X11/Intrinsic.h>
7519 rm -f conftest.$ac_objext conftest$ac_exeext
7520 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7521 (eval $ac_link) 2>&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); } &&
7525 { ac_try='test -s conftest$ac_exeext'
7526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); }; }; then
7532 # We can link X programs with no special library path.
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7539 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7541 # Don't even attempt the hair of trying to link an X program!
7542 for ac_extension in a so sl; do
7543 if test -r $ac_dir/libXt.$ac_extension; then
7544 ac_x_libraries=$ac_dir
7550 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7551 fi # $ac_x_libraries = no
7553 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7554 # Didn't find X anywhere. Cache the known absence of X.
7555 ac_cv_have_x="have_x=no"
7557 # Record where we found X for the cache.
7558 ac_cv_have_x="have_x=yes \
7559 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7564 eval "$ac_cv_have_x"
7567 if test "$have_x" != yes; then
7568 echo "$as_me:$LINENO: result: $have_x" >&5
7569 echo "${ECHO_T}$have_x" >&6
7572 # If each of the values was on the command line, it overrides each guess.
7573 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7574 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7575 # Update the cache value to reflect the command line values.
7576 ac_cv_have_x="have_x=yes \
7577 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7578 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7579 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7582 if test "$no_x" = yes; then
7583 # Not all programs may use this symbol, but it does not hurt to define it.
7585 cat >>confdefs.h <<\_ACEOF
7586 #define X_DISPLAY_MISSING 1
7589 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7591 if test -n "$x_includes"; then
7592 X_CFLAGS="$X_CFLAGS -I$x_includes"
7595 # It would also be nice to do this for all -L options, not just this one.
7596 if test -n "$x_libraries"; then
7597 X_LIBS="$X_LIBS -L$x_libraries"
7598 # For Solaris; some versions of Sun CC require a space after -R and
7599 # others require no space. Words are not sufficient . . . .
7600 case `(uname -sr) 2>/dev/null` in
7602 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7603 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7604 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7605 cat >conftest.$ac_ext <<_ACEOF
7606 #line $LINENO "configure"
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h. */
7621 rm -f conftest.$ac_objext conftest$ac_exeext
7622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7623 (eval $ac_link) 2>&5
7625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7626 (exit $ac_status); } &&
7627 { ac_try='test -s conftest$ac_exeext'
7628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; }; then
7635 echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7640 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7641 if test $ac_R_nospace = yes; then
7642 echo "$as_me:$LINENO: result: no" >&5
7643 echo "${ECHO_T}no" >&6
7644 X_LIBS="$X_LIBS -R$x_libraries"
7646 LIBS="$ac_xsave_LIBS -R $x_libraries"
7647 cat >conftest.$ac_ext <<_ACEOF
7648 #line $LINENO "configure"
7651 cat confdefs.h >>conftest.$ac_ext
7652 cat >>conftest.$ac_ext <<_ACEOF
7653 /* end confdefs.h. */
7663 rm -f conftest.$ac_objext conftest$ac_exeext
7664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7665 (eval $ac_link) 2>&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } &&
7669 { ac_try='test -s conftest$ac_exeext'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; }; then
7677 echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7683 if test $ac_R_space = yes; then
7684 echo "$as_me:$LINENO: result: yes" >&5
7685 echo "${ECHO_T}yes" >&6
7686 X_LIBS="$X_LIBS -R $x_libraries"
7688 echo "$as_me:$LINENO: result: neither works" >&5
7689 echo "${ECHO_T}neither works" >&6
7696 # Check for system-dependent libraries X programs must link with.
7697 # Do this before checking for the system-independent R6 libraries
7698 # (-lICE), since we may need -lsocket or whatever for X linking.
7700 if test "$ISC" = yes; then
7701 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7703 # Martyn Johnson says this is needed for Ultrix, if the X
7704 # libraries were built with DECnet support. And Karl Berry says
7705 # the Alpha needs dnet_stub (dnet does not exist).
7706 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7707 cat >conftest.$ac_ext <<_ACEOF
7708 #line $LINENO "configure"
7711 cat confdefs.h >>conftest.$ac_ext
7712 cat >>conftest.$ac_ext <<_ACEOF
7713 /* end confdefs.h. */
7715 /* Override any gcc2 internal prototype to avoid an error. */
7719 /* We use char because int might match the return type of a gcc2
7720 builtin and then its argument prototype would still apply. */
7721 char XOpenDisplay ();
7730 rm -f conftest.$ac_objext conftest$ac_exeext
7731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7732 (eval $ac_link) 2>&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } &&
7736 { ac_try='test -s conftest$ac_exeext'
7737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); }; }; then
7744 echo "$as_me: failed program was:" >&5
7745 sed 's/^/| /' conftest.$ac_ext >&5
7747 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7748 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7749 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 ac_check_lib_save_LIBS=$LIBS
7754 cat >conftest.$ac_ext <<_ACEOF
7755 #line $LINENO "configure"
7758 cat confdefs.h >>conftest.$ac_ext
7759 cat >>conftest.$ac_ext <<_ACEOF
7760 /* end confdefs.h. */
7762 /* Override any gcc2 internal prototype to avoid an error. */
7766 /* We use char because int might match the return type of a gcc2
7767 builtin and then its argument prototype would still apply. */
7777 rm -f conftest.$ac_objext conftest$ac_exeext
7778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7779 (eval $ac_link) 2>&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } &&
7783 { ac_try='test -s conftest$ac_exeext'
7784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7788 (exit $ac_status); }; }; then
7789 ac_cv_lib_dnet_dnet_ntoa=yes
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7794 ac_cv_lib_dnet_dnet_ntoa=no
7796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7797 LIBS=$ac_check_lib_save_LIBS
7799 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7800 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7801 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7802 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7805 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7806 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7807 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7808 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 ac_check_lib_save_LIBS=$LIBS
7812 LIBS="-ldnet_stub $LIBS"
7813 cat >conftest.$ac_ext <<_ACEOF
7814 #line $LINENO "configure"
7817 cat confdefs.h >>conftest.$ac_ext
7818 cat >>conftest.$ac_ext <<_ACEOF
7819 /* end confdefs.h. */
7821 /* Override any gcc2 internal prototype to avoid an error. */
7825 /* We use char because int might match the return type of a gcc2
7826 builtin and then its argument prototype would still apply. */
7836 rm -f conftest.$ac_objext conftest$ac_exeext
7837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7838 (eval $ac_link) 2>&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } &&
7842 { ac_try='test -s conftest$ac_exeext'
7843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7847 (exit $ac_status); }; }; then
7848 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7853 ac_cv_lib_dnet_stub_dnet_ntoa=no
7855 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7856 LIBS=$ac_check_lib_save_LIBS
7858 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7859 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7860 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7861 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7867 LIBS="$ac_xsave_LIBS"
7869 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7870 # to get the SysV transport functions.
7871 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7873 # The nsl library prevents programs from opening the X display
7874 # on Irix 5.2, according to T.E. Dickey.
7875 # The functions gethostbyname, getservbyname, and inet_addr are
7876 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7877 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7878 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7879 if test "${ac_cv_func_gethostbyname+set}" = set; then
7880 echo $ECHO_N "(cached) $ECHO_C" >&6
7882 cat >conftest.$ac_ext <<_ACEOF
7883 #line $LINENO "configure"
7886 cat confdefs.h >>conftest.$ac_ext
7887 cat >>conftest.$ac_ext <<_ACEOF
7888 /* end confdefs.h. */
7889 /* System header to define __stub macros and hopefully few prototypes,
7890 which can conflict with char gethostbyname (); below.
7891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7892 <limits.h> exists even on freestanding compilers. */
7894 # include <limits.h>
7896 # include <assert.h>
7898 /* Override any gcc2 internal prototype to avoid an error. */
7903 /* We use char because int might match the return type of a gcc2
7904 builtin and then its argument prototype would still apply. */
7905 char gethostbyname ();
7906 /* The GNU C library defines this for functions which it implements
7907 to always fail with ENOSYS. Some functions are actually named
7908 something starting with __ and the normal name is an alias. */
7909 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7912 char (*f) () = gethostbyname;
7921 return f != gethostbyname;
7926 rm -f conftest.$ac_objext conftest$ac_exeext
7927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7928 (eval $ac_link) 2>&5
7930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7931 (exit $ac_status); } &&
7932 { ac_try='test -s conftest$ac_exeext'
7933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); }; }; then
7938 ac_cv_func_gethostbyname=yes
7940 echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.$ac_ext >&5
7943 ac_cv_func_gethostbyname=no
7945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7947 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7948 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7950 if test $ac_cv_func_gethostbyname = no; then
7951 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7952 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7953 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7956 ac_check_lib_save_LIBS=$LIBS
7958 cat >conftest.$ac_ext <<_ACEOF
7959 #line $LINENO "configure"
7962 cat confdefs.h >>conftest.$ac_ext
7963 cat >>conftest.$ac_ext <<_ACEOF
7964 /* end confdefs.h. */
7966 /* Override any gcc2 internal prototype to avoid an error. */
7970 /* We use char because int might match the return type of a gcc2
7971 builtin and then its argument prototype would still apply. */
7972 char gethostbyname ();
7981 rm -f conftest.$ac_objext conftest$ac_exeext
7982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7983 (eval $ac_link) 2>&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } &&
7987 { ac_try='test -s conftest$ac_exeext'
7988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; }; then
7993 ac_cv_lib_nsl_gethostbyname=yes
7995 echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7998 ac_cv_lib_nsl_gethostbyname=no
8000 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8001 LIBS=$ac_check_lib_save_LIBS
8003 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8004 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8005 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8006 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8009 if test $ac_cv_lib_nsl_gethostbyname = no; then
8010 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8011 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8012 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8013 echo $ECHO_N "(cached) $ECHO_C" >&6
8015 ac_check_lib_save_LIBS=$LIBS
8017 cat >conftest.$ac_ext <<_ACEOF
8018 #line $LINENO "configure"
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8025 /* Override any gcc2 internal prototype to avoid an error. */
8029 /* We use char because int might match the return type of a gcc2
8030 builtin and then its argument prototype would still apply. */
8031 char gethostbyname ();
8040 rm -f conftest.$ac_objext conftest$ac_exeext
8041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8042 (eval $ac_link) 2>&5
8044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8045 (exit $ac_status); } &&
8046 { ac_try='test -s conftest$ac_exeext'
8047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); }; }; then
8052 ac_cv_lib_bsd_gethostbyname=yes
8054 echo "$as_me: failed program was:" >&5
8055 sed 's/^/| /' conftest.$ac_ext >&5
8057 ac_cv_lib_bsd_gethostbyname=no
8059 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8060 LIBS=$ac_check_lib_save_LIBS
8062 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8063 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8064 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8065 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8071 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8072 # socket/setsockopt and other routines are undefined under SCO ODT
8073 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8074 # on later versions), says Simon Leinen: it contains gethostby*
8075 # variants that don't use the name server (or something). -lsocket
8076 # must be given before -lnsl if both are needed. We assume that
8077 # if connect needs -lnsl, so does gethostbyname.
8078 echo "$as_me:$LINENO: checking for connect" >&5
8079 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8080 if test "${ac_cv_func_connect+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8083 cat >conftest.$ac_ext <<_ACEOF
8084 #line $LINENO "configure"
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8090 /* System header to define __stub macros and hopefully few prototypes,
8091 which can conflict with char connect (); below.
8092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8093 <limits.h> exists even on freestanding compilers. */
8095 # include <limits.h>
8097 # include <assert.h>
8099 /* Override any gcc2 internal prototype to avoid an error. */
8104 /* We use char because int might match the return type of a gcc2
8105 builtin and then its argument prototype would still apply. */
8107 /* The GNU C library defines this for functions which it implements
8108 to always fail with ENOSYS. Some functions are actually named
8109 something starting with __ and the normal name is an alias. */
8110 #if defined (__stub_connect) || defined (__stub___connect)
8113 char (*f) () = connect;
8122 return f != connect;
8127 rm -f conftest.$ac_objext conftest$ac_exeext
8128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8129 (eval $ac_link) 2>&5
8131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8132 (exit $ac_status); } &&
8133 { ac_try='test -s conftest$ac_exeext'
8134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8138 (exit $ac_status); }; }; then
8139 ac_cv_func_connect=yes
8141 echo "$as_me: failed program was:" >&5
8142 sed 's/^/| /' conftest.$ac_ext >&5
8144 ac_cv_func_connect=no
8146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8148 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8149 echo "${ECHO_T}$ac_cv_func_connect" >&6
8151 if test $ac_cv_func_connect = no; then
8152 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8153 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8154 if test "${ac_cv_lib_socket_connect+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 ac_check_lib_save_LIBS=$LIBS
8158 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8159 cat >conftest.$ac_ext <<_ACEOF
8160 #line $LINENO "configure"
8163 cat confdefs.h >>conftest.$ac_ext
8164 cat >>conftest.$ac_ext <<_ACEOF
8165 /* end confdefs.h. */
8167 /* Override any gcc2 internal prototype to avoid an error. */
8171 /* We use char because int might match the return type of a gcc2
8172 builtin and then its argument prototype would still apply. */
8182 rm -f conftest.$ac_objext conftest$ac_exeext
8183 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8184 (eval $ac_link) 2>&5
8186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8187 (exit $ac_status); } &&
8188 { ac_try='test -s conftest$ac_exeext'
8189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8193 (exit $ac_status); }; }; then
8194 ac_cv_lib_socket_connect=yes
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8199 ac_cv_lib_socket_connect=no
8201 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8202 LIBS=$ac_check_lib_save_LIBS
8204 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8205 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8206 if test $ac_cv_lib_socket_connect = yes; then
8207 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8212 # Guillermo Gomez says -lposix is necessary on A/UX.
8213 echo "$as_me:$LINENO: checking for remove" >&5
8214 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8215 if test "${ac_cv_func_remove+set}" = set; then
8216 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 cat >conftest.$ac_ext <<_ACEOF
8219 #line $LINENO "configure"
8222 cat confdefs.h >>conftest.$ac_ext
8223 cat >>conftest.$ac_ext <<_ACEOF
8224 /* end confdefs.h. */
8225 /* System header to define __stub macros and hopefully few prototypes,
8226 which can conflict with char remove (); below.
8227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8228 <limits.h> exists even on freestanding compilers. */
8230 # include <limits.h>
8232 # include <assert.h>
8234 /* Override any gcc2 internal prototype to avoid an error. */
8239 /* We use char because int might match the return type of a gcc2
8240 builtin and then its argument prototype would still apply. */
8242 /* The GNU C library defines this for functions which it implements
8243 to always fail with ENOSYS. Some functions are actually named
8244 something starting with __ and the normal name is an alias. */
8245 #if defined (__stub_remove) || defined (__stub___remove)
8248 char (*f) () = remove;
8262 rm -f conftest.$ac_objext conftest$ac_exeext
8263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8264 (eval $ac_link) 2>&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); } &&
8268 { ac_try='test -s conftest$ac_exeext'
8269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); }; }; then
8274 ac_cv_func_remove=yes
8276 echo "$as_me: failed program was:" >&5
8277 sed 's/^/| /' conftest.$ac_ext >&5
8279 ac_cv_func_remove=no
8281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8283 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8284 echo "${ECHO_T}$ac_cv_func_remove" >&6
8286 if test $ac_cv_func_remove = no; then
8287 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8288 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8289 if test "${ac_cv_lib_posix_remove+set}" = set; then
8290 echo $ECHO_N "(cached) $ECHO_C" >&6
8292 ac_check_lib_save_LIBS=$LIBS
8293 LIBS="-lposix $LIBS"
8294 cat >conftest.$ac_ext <<_ACEOF
8295 #line $LINENO "configure"
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h. */
8302 /* Override any gcc2 internal prototype to avoid an error. */
8306 /* We use char because int might match the return type of a gcc2
8307 builtin and then its argument prototype would still apply. */
8317 rm -f conftest.$ac_objext conftest$ac_exeext
8318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8319 (eval $ac_link) 2>&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } &&
8323 { ac_try='test -s conftest$ac_exeext'
8324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); }; }; then
8329 ac_cv_lib_posix_remove=yes
8331 echo "$as_me: failed program was:" >&5
8332 sed 's/^/| /' conftest.$ac_ext >&5
8334 ac_cv_lib_posix_remove=no
8336 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8337 LIBS=$ac_check_lib_save_LIBS
8339 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8340 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8341 if test $ac_cv_lib_posix_remove = yes; then
8342 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8347 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8348 echo "$as_me:$LINENO: checking for shmat" >&5
8349 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8350 if test "${ac_cv_func_shmat+set}" = set; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8353 cat >conftest.$ac_ext <<_ACEOF
8354 #line $LINENO "configure"
8357 cat confdefs.h >>conftest.$ac_ext
8358 cat >>conftest.$ac_ext <<_ACEOF
8359 /* end confdefs.h. */
8360 /* System header to define __stub macros and hopefully few prototypes,
8361 which can conflict with char shmat (); below.
8362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8363 <limits.h> exists even on freestanding compilers. */
8365 # include <limits.h>
8367 # include <assert.h>
8369 /* Override any gcc2 internal prototype to avoid an error. */
8374 /* We use char because int might match the return type of a gcc2
8375 builtin and then its argument prototype would still apply. */
8377 /* The GNU C library defines this for functions which it implements
8378 to always fail with ENOSYS. Some functions are actually named
8379 something starting with __ and the normal name is an alias. */
8380 #if defined (__stub_shmat) || defined (__stub___shmat)
8383 char (*f) () = shmat;
8397 rm -f conftest.$ac_objext conftest$ac_exeext
8398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8399 (eval $ac_link) 2>&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } &&
8403 { ac_try='test -s conftest$ac_exeext'
8404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; }; then
8409 ac_cv_func_shmat=yes
8411 echo "$as_me: failed program was:" >&5
8412 sed 's/^/| /' conftest.$ac_ext >&5
8416 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8418 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8419 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8421 if test $ac_cv_func_shmat = no; then
8422 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8423 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8424 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8427 ac_check_lib_save_LIBS=$LIBS
8429 cat >conftest.$ac_ext <<_ACEOF
8430 #line $LINENO "configure"
8433 cat confdefs.h >>conftest.$ac_ext
8434 cat >>conftest.$ac_ext <<_ACEOF
8435 /* end confdefs.h. */
8437 /* Override any gcc2 internal prototype to avoid an error. */
8441 /* We use char because int might match the return type of a gcc2
8442 builtin and then its argument prototype would still apply. */
8452 rm -f conftest.$ac_objext conftest$ac_exeext
8453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8454 (eval $ac_link) 2>&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); } &&
8458 { ac_try='test -s conftest$ac_exeext'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; }; then
8464 ac_cv_lib_ipc_shmat=yes
8466 echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8469 ac_cv_lib_ipc_shmat=no
8471 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8472 LIBS=$ac_check_lib_save_LIBS
8474 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8475 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8476 if test $ac_cv_lib_ipc_shmat = yes; then
8477 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8483 # Check for libraries that X11R6 Xt/Xaw programs need.
8484 ac_save_LDFLAGS=$LDFLAGS
8485 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8486 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8487 # check for ICE first), but we must link in the order -lSM -lICE or
8488 # we get undefined symbols. So assume we have SM if we have ICE.
8489 # These have to be linked with before -lX11, unlike the other
8490 # libraries we check for below, so use a different variable.
8491 # John Interrante, Karl Berry
8492 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8493 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8494 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8495 echo $ECHO_N "(cached) $ECHO_C" >&6
8497 ac_check_lib_save_LIBS=$LIBS
8498 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8499 cat >conftest.$ac_ext <<_ACEOF
8500 #line $LINENO "configure"
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8507 /* Override any gcc2 internal prototype to avoid an error. */
8511 /* We use char because int might match the return type of a gcc2
8512 builtin and then its argument prototype would still apply. */
8513 char IceConnectionNumber ();
8517 IceConnectionNumber ();
8522 rm -f conftest.$ac_objext conftest$ac_exeext
8523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8524 (eval $ac_link) 2>&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); } &&
8528 { ac_try='test -s conftest$ac_exeext'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8534 ac_cv_lib_ICE_IceConnectionNumber=yes
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8539 ac_cv_lib_ICE_IceConnectionNumber=no
8541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8542 LIBS=$ac_check_lib_save_LIBS
8544 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8545 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8546 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8547 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8550 LDFLAGS=$ac_save_LDFLAGS
8602 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8604 echo "$as_me:$LINENO: checking for $ac_header" >&5
8605 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8607 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8612 # Is the header compilable?
8613 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8614 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8615 cat >conftest.$ac_ext <<_ACEOF
8616 #line $LINENO "configure"
8619 cat confdefs.h >>conftest.$ac_ext
8620 cat >>conftest.$ac_ext <<_ACEOF
8621 /* end confdefs.h. */
8622 $ac_includes_default
8623 #include <$ac_header>
8625 rm -f conftest.$ac_objext
8626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8627 (eval $ac_compile) 2>&5
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); } &&
8631 { ac_try='test -s conftest.$ac_objext'
8632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8637 ac_header_compiler=yes
8639 echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8642 ac_header_compiler=no
8644 rm -f conftest.$ac_objext conftest.$ac_ext
8645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8646 echo "${ECHO_T}$ac_header_compiler" >&6
8648 # Is the header present?
8649 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8651 cat >conftest.$ac_ext <<_ACEOF
8652 #line $LINENO "configure"
8655 cat confdefs.h >>conftest.$ac_ext
8656 cat >>conftest.$ac_ext <<_ACEOF
8657 /* end confdefs.h. */
8658 #include <$ac_header>
8660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8663 grep -v '^ *+' conftest.er1 >conftest.err
8665 cat conftest.err >&5
8666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667 (exit $ac_status); } >/dev/null; then
8668 if test -s conftest.err; then
8669 ac_cpp_err=$ac_c_preproc_warn_flag
8676 if test -z "$ac_cpp_err"; then
8677 ac_header_preproc=yes
8679 echo "$as_me: failed program was:" >&5
8680 sed 's/^/| /' conftest.$ac_ext >&5
8682 ac_header_preproc=no
8684 rm -f conftest.err conftest.$ac_ext
8685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8686 echo "${ECHO_T}$ac_header_preproc" >&6
8688 # So? What about this header?
8689 case $ac_header_compiler:$ac_header_preproc in
8691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8692 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8697 ## ------------------------------------ ##
8698 ## Report this to bug-autoconf@gnu.org. ##
8699 ## ------------------------------------ ##
8702 sed "s/^/$as_me: WARNING: /" >&2
8705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8710 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8713 ## ------------------------------------ ##
8714 ## Report this to bug-autoconf@gnu.org. ##
8715 ## ------------------------------------ ##
8718 sed "s/^/$as_me: WARNING: /" >&2
8721 echo "$as_me:$LINENO: checking for $ac_header" >&5
8722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8724 echo $ECHO_N "(cached) $ECHO_C" >&6
8726 eval "$as_ac_Header=$ac_header_preproc"
8728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8733 cat >>confdefs.h <<_ACEOF
8734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8741 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8742 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8743 if test "${ac_cv_header_stdc+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 cat >conftest.$ac_ext <<_ACEOF
8747 #line $LINENO "configure"
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8766 rm -f conftest.$ac_objext
8767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8768 (eval $ac_compile) 2>&5
8770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8771 (exit $ac_status); } &&
8772 { ac_try='test -s conftest.$ac_objext'
8773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; }; then
8778 ac_cv_header_stdc=yes
8780 echo "$as_me: failed program was:" >&5
8781 sed 's/^/| /' conftest.$ac_ext >&5
8783 ac_cv_header_stdc=no
8785 rm -f conftest.$ac_objext conftest.$ac_ext
8787 if test $ac_cv_header_stdc = yes; then
8788 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8789 cat >conftest.$ac_ext <<_ACEOF
8790 #line $LINENO "configure"
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h. */
8799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8800 $EGREP "memchr" >/dev/null 2>&1; then
8803 ac_cv_header_stdc=no
8809 if test $ac_cv_header_stdc = yes; then
8810 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8811 cat >conftest.$ac_ext <<_ACEOF
8812 #line $LINENO "configure"
8815 cat confdefs.h >>conftest.$ac_ext
8816 cat >>conftest.$ac_ext <<_ACEOF
8817 /* end confdefs.h. */
8821 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8822 $EGREP "free" >/dev/null 2>&1; then
8825 ac_cv_header_stdc=no
8831 if test $ac_cv_header_stdc = yes; then
8832 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8833 if test "$cross_compiling" = yes; then
8836 cat >conftest.$ac_ext <<_ACEOF
8837 #line $LINENO "configure"
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h. */
8844 #if ((' ' & 0x0FF) == 0x020)
8845 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8846 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8848 # define ISLOWER(c) \
8849 (('a' <= (c) && (c) <= 'i') \
8850 || ('j' <= (c) && (c) <= 'r') \
8851 || ('s' <= (c) && (c) <= 'z'))
8852 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8855 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8860 for (i = 0; i < 256; i++)
8861 if (XOR (islower (i), ISLOWER (i))
8862 || toupper (i) != TOUPPER (i))
8867 rm -f conftest$ac_exeext
8868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8869 (eval $ac_link) 2>&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877 (exit $ac_status); }; }; then
8880 echo "$as_me: program exited with status $ac_status" >&5
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8885 ac_cv_header_stdc=no
8887 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8891 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8892 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8893 if test $ac_cv_header_stdc = yes; then
8895 cat >>confdefs.h <<\_ACEOF
8896 #define STDC_HEADERS 1
8901 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
8902 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
8903 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
8904 echo $ECHO_N "(cached) $ECHO_C" >&6
8906 cat >conftest.$ac_ext <<_ACEOF
8907 #line $LINENO "configure"
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8913 #include <sys/types.h>
8917 return makedev(0, 0);
8922 rm -f conftest.$ac_objext conftest$ac_exeext
8923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8924 (eval $ac_link) 2>&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } &&
8928 { ac_try='test -s conftest$ac_exeext'
8929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8933 (exit $ac_status); }; }; then
8934 ac_cv_header_sys_types_h_makedev=yes
8936 echo "$as_me: failed program was:" >&5
8937 sed 's/^/| /' conftest.$ac_ext >&5
8939 ac_cv_header_sys_types_h_makedev=no
8941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8944 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
8945 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
8947 if test $ac_cv_header_sys_types_h_makedev = no; then
8948 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8949 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8950 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
8951 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8954 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8955 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
8957 # Is the header compilable?
8958 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
8959 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
8960 cat >conftest.$ac_ext <<_ACEOF
8961 #line $LINENO "configure"
8964 cat confdefs.h >>conftest.$ac_ext
8965 cat >>conftest.$ac_ext <<_ACEOF
8966 /* end confdefs.h. */
8967 $ac_includes_default
8968 #include <sys/mkdev.h>
8970 rm -f conftest.$ac_objext
8971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8972 (eval $ac_compile) 2>&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } &&
8976 { ac_try='test -s conftest.$ac_objext'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; }; then
8982 ac_header_compiler=yes
8984 echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8987 ac_header_compiler=no
8989 rm -f conftest.$ac_objext conftest.$ac_ext
8990 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8991 echo "${ECHO_T}$ac_header_compiler" >&6
8993 # Is the header present?
8994 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
8995 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
8996 cat >conftest.$ac_ext <<_ACEOF
8997 #line $LINENO "configure"
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h. */
9003 #include <sys/mkdev.h>
9005 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9006 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9008 grep -v '^ *+' conftest.er1 >conftest.err
9010 cat conftest.err >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } >/dev/null; then
9013 if test -s conftest.err; then
9014 ac_cpp_err=$ac_c_preproc_warn_flag
9021 if test -z "$ac_cpp_err"; then
9022 ac_header_preproc=yes
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9027 ac_header_preproc=no
9029 rm -f conftest.err conftest.$ac_ext
9030 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9031 echo "${ECHO_T}$ac_header_preproc" >&6
9033 # So? What about this header?
9034 case $ac_header_compiler:$ac_header_preproc in
9036 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9037 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9038 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9039 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9042 ## ------------------------------------ ##
9043 ## Report this to bug-autoconf@gnu.org. ##
9044 ## ------------------------------------ ##
9047 sed "s/^/$as_me: WARNING: /" >&2
9050 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9051 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9052 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9053 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9054 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9055 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9058 ## ------------------------------------ ##
9059 ## Report this to bug-autoconf@gnu.org. ##
9060 ## ------------------------------------ ##
9063 sed "s/^/$as_me: WARNING: /" >&2
9066 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9067 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9068 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9069 echo $ECHO_N "(cached) $ECHO_C" >&6
9071 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9073 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9074 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9077 if test $ac_cv_header_sys_mkdev_h = yes; then
9079 cat >>confdefs.h <<\_ACEOF
9080 #define MAJOR_IN_MKDEV 1
9087 if test $ac_cv_header_sys_mkdev_h = no; then
9088 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9089 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9090 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9091 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9094 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9095 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9097 # Is the header compilable?
9098 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9099 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9100 cat >conftest.$ac_ext <<_ACEOF
9101 #line $LINENO "configure"
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h. */
9107 $ac_includes_default
9108 #include <sys/sysmacros.h>
9110 rm -f conftest.$ac_objext
9111 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9112 (eval $ac_compile) 2>&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); } &&
9116 { ac_try='test -s conftest.$ac_objext'
9117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; }; then
9122 ac_header_compiler=yes
9124 echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9127 ac_header_compiler=no
9129 rm -f conftest.$ac_objext conftest.$ac_ext
9130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9131 echo "${ECHO_T}$ac_header_compiler" >&6
9133 # Is the header present?
9134 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9135 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9136 cat >conftest.$ac_ext <<_ACEOF
9137 #line $LINENO "configure"
9140 cat confdefs.h >>conftest.$ac_ext
9141 cat >>conftest.$ac_ext <<_ACEOF
9142 /* end confdefs.h. */
9143 #include <sys/sysmacros.h>
9145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9146 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9148 grep -v '^ *+' conftest.er1 >conftest.err
9150 cat conftest.err >&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } >/dev/null; then
9153 if test -s conftest.err; then
9154 ac_cpp_err=$ac_c_preproc_warn_flag
9161 if test -z "$ac_cpp_err"; then
9162 ac_header_preproc=yes
9164 echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9167 ac_header_preproc=no
9169 rm -f conftest.err conftest.$ac_ext
9170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9171 echo "${ECHO_T}$ac_header_preproc" >&6
9173 # So? What about this header?
9174 case $ac_header_compiler:$ac_header_preproc in
9176 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9177 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9178 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9179 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9182 ## ------------------------------------ ##
9183 ## Report this to bug-autoconf@gnu.org. ##
9184 ## ------------------------------------ ##
9187 sed "s/^/$as_me: WARNING: /" >&2
9190 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9191 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9192 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9193 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9195 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9198 ## ------------------------------------ ##
9199 ## Report this to bug-autoconf@gnu.org. ##
9200 ## ------------------------------------ ##
9203 sed "s/^/$as_me: WARNING: /" >&2
9206 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9207 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9208 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9213 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9214 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9217 if test $ac_cv_header_sys_sysmacros_h = yes; then
9219 cat >>confdefs.h <<\_ACEOF
9220 #define MAJOR_IN_SYSMACROS 1
9235 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9236 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9237 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9238 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9239 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
9242 cat >conftest.$ac_ext <<_ACEOF
9243 #line $LINENO "configure"
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9249 #include <sys/types.h>
9261 rm -f conftest.$ac_objext
9262 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9263 (eval $ac_compile) 2>&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); } &&
9267 { ac_try='test -s conftest.$ac_objext'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; }; then
9273 eval "$as_ac_Header=yes"
9275 echo "$as_me: failed program was:" >&5
9276 sed 's/^/| /' conftest.$ac_ext >&5
9278 eval "$as_ac_Header=no"
9280 rm -f conftest.$ac_objext conftest.$ac_ext
9282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9285 cat >>confdefs.h <<_ACEOF
9286 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9289 ac_header_dirent=$ac_hdr; break
9293 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9294 if test $ac_header_dirent = dirent.h; then
9295 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9296 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9297 if test "${ac_cv_search_opendir+set}" = set; then
9298 echo $ECHO_N "(cached) $ECHO_C" >&6
9300 ac_func_search_save_LIBS=$LIBS
9301 ac_cv_search_opendir=no
9302 cat >conftest.$ac_ext <<_ACEOF
9303 #line $LINENO "configure"
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9310 /* Override any gcc2 internal prototype to avoid an error. */
9314 /* We use char because int might match the return type of a gcc2
9315 builtin and then its argument prototype would still apply. */
9325 rm -f conftest.$ac_objext conftest$ac_exeext
9326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9327 (eval $ac_link) 2>&5
9329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9330 (exit $ac_status); } &&
9331 { ac_try='test -s conftest$ac_exeext'
9332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); }; }; then
9337 ac_cv_search_opendir="none required"
9339 echo "$as_me: failed program was:" >&5
9340 sed 's/^/| /' conftest.$ac_ext >&5
9343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9344 if test "$ac_cv_search_opendir" = no; then
9345 for ac_lib in dir; do
9346 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9347 cat >conftest.$ac_ext <<_ACEOF
9348 #line $LINENO "configure"
9351 cat confdefs.h >>conftest.$ac_ext
9352 cat >>conftest.$ac_ext <<_ACEOF
9353 /* end confdefs.h. */
9355 /* Override any gcc2 internal prototype to avoid an error. */
9359 /* We use char because int might match the return type of a gcc2
9360 builtin and then its argument prototype would still apply. */
9370 rm -f conftest.$ac_objext conftest$ac_exeext
9371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9372 (eval $ac_link) 2>&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); } &&
9376 { ac_try='test -s conftest$ac_exeext'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; }; then
9382 ac_cv_search_opendir="-l$ac_lib"
9385 echo "$as_me: failed program was:" >&5
9386 sed 's/^/| /' conftest.$ac_ext >&5
9389 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9392 LIBS=$ac_func_search_save_LIBS
9394 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9395 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9396 if test "$ac_cv_search_opendir" != no; then
9397 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9402 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9403 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9404 if test "${ac_cv_search_opendir+set}" = set; then
9405 echo $ECHO_N "(cached) $ECHO_C" >&6
9407 ac_func_search_save_LIBS=$LIBS
9408 ac_cv_search_opendir=no
9409 cat >conftest.$ac_ext <<_ACEOF
9410 #line $LINENO "configure"
9413 cat confdefs.h >>conftest.$ac_ext
9414 cat >>conftest.$ac_ext <<_ACEOF
9415 /* end confdefs.h. */
9417 /* Override any gcc2 internal prototype to avoid an error. */
9421 /* We use char because int might match the return type of a gcc2
9422 builtin and then its argument prototype would still apply. */
9432 rm -f conftest.$ac_objext conftest$ac_exeext
9433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9434 (eval $ac_link) 2>&5
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); } &&
9438 { ac_try='test -s conftest$ac_exeext'
9439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); }; }; then
9444 ac_cv_search_opendir="none required"
9446 echo "$as_me: failed program was:" >&5
9447 sed 's/^/| /' conftest.$ac_ext >&5
9450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9451 if test "$ac_cv_search_opendir" = no; then
9453 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9454 cat >conftest.$ac_ext <<_ACEOF
9455 #line $LINENO "configure"
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9462 /* Override any gcc2 internal prototype to avoid an error. */
9466 /* We use char because int might match the return type of a gcc2
9467 builtin and then its argument prototype would still apply. */
9477 rm -f conftest.$ac_objext conftest$ac_exeext
9478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9479 (eval $ac_link) 2>&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } &&
9483 { ac_try='test -s conftest$ac_exeext'
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; }; then
9489 ac_cv_search_opendir="-l$ac_lib"
9492 echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9499 LIBS=$ac_func_search_save_LIBS
9501 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9502 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9503 if test "$ac_cv_search_opendir" != no; then
9504 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9510 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9511 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9512 if test "${ac_cv_header_stat_broken+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 cat >conftest.$ac_ext <<_ACEOF
9516 #line $LINENO "configure"
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h. */
9522 #include <sys/types.h>
9523 #include <sys/stat.h>
9525 #if defined(S_ISBLK) && defined(S_IFDIR)
9526 # if S_ISBLK (S_IFDIR)
9531 #if defined(S_ISBLK) && defined(S_IFCHR)
9532 # if S_ISBLK (S_IFCHR)
9537 #if defined(S_ISLNK) && defined(S_IFREG)
9538 # if S_ISLNK (S_IFREG)
9543 #if defined(S_ISSOCK) && defined(S_IFREG)
9544 # if S_ISSOCK (S_IFREG)
9550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9551 $EGREP "You lose" >/dev/null 2>&1; then
9552 ac_cv_header_stat_broken=yes
9554 ac_cv_header_stat_broken=no
9559 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9560 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
9561 if test $ac_cv_header_stat_broken = yes; then
9563 cat >>confdefs.h <<\_ACEOF
9564 #define STAT_MACROS_BROKEN 1
9569 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9570 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9571 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9574 cat >conftest.$ac_ext <<_ACEOF
9575 #line $LINENO "configure"
9578 cat confdefs.h >>conftest.$ac_ext
9579 cat >>conftest.$ac_ext <<_ACEOF
9580 /* end confdefs.h. */
9581 #include <sys/types.h>
9582 #include <sys/wait.h>
9584 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9587 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9595 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9600 rm -f conftest.$ac_objext
9601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9602 (eval $ac_compile) 2>&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); } &&
9606 { ac_try='test -s conftest.$ac_objext'
9607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); }; }; then
9612 ac_cv_header_sys_wait_h=yes
9614 echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9617 ac_cv_header_sys_wait_h=no
9619 rm -f conftest.$ac_objext conftest.$ac_ext
9621 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9622 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9623 if test $ac_cv_header_sys_wait_h = yes; then
9625 cat >>confdefs.h <<\_ACEOF
9626 #define HAVE_SYS_WAIT_H 1
9631 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9632 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9633 if test "${ac_cv_header_time+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 cat >conftest.$ac_ext <<_ACEOF
9637 #line $LINENO "configure"
9640 cat confdefs.h >>conftest.$ac_ext
9641 cat >>conftest.$ac_ext <<_ACEOF
9642 /* end confdefs.h. */
9643 #include <sys/types.h>
9644 #include <sys/time.h>
9650 if ((struct tm *) 0)
9656 rm -f conftest.$ac_objext
9657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9658 (eval $ac_compile) 2>&5
9660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661 (exit $ac_status); } &&
9662 { ac_try='test -s conftest.$ac_objext'
9663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 (exit $ac_status); }; }; then
9668 ac_cv_header_time=yes
9670 echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9673 ac_cv_header_time=no
9675 rm -f conftest.$ac_objext conftest.$ac_ext
9677 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9678 echo "${ECHO_T}$ac_cv_header_time" >&6
9679 if test $ac_cv_header_time = yes; then
9681 cat >>confdefs.h <<\_ACEOF
9682 #define TIME_WITH_SYS_TIME 1
9688 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
9689 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
9690 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9693 cat >conftest.$ac_ext <<_ACEOF
9694 #line $LINENO "configure"
9697 cat confdefs.h >>conftest.$ac_ext
9698 cat >>conftest.$ac_ext <<_ACEOF
9699 /* end confdefs.h. */
9700 $ac_includes_default
9704 static struct stat ac_aggr;
9705 if (ac_aggr.st_blksize)
9711 rm -f conftest.$ac_objext
9712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9713 (eval $ac_compile) 2>&5
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); } &&
9717 { ac_try='test -s conftest.$ac_objext'
9718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); }; }; then
9723 ac_cv_member_struct_stat_st_blksize=yes
9725 echo "$as_me: failed program was:" >&5
9726 sed 's/^/| /' conftest.$ac_ext >&5
9728 cat >conftest.$ac_ext <<_ACEOF
9729 #line $LINENO "configure"
9732 cat confdefs.h >>conftest.$ac_ext
9733 cat >>conftest.$ac_ext <<_ACEOF
9734 /* end confdefs.h. */
9735 $ac_includes_default
9739 static struct stat ac_aggr;
9740 if (sizeof ac_aggr.st_blksize)
9746 rm -f conftest.$ac_objext
9747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9748 (eval $ac_compile) 2>&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } &&
9752 { ac_try='test -s conftest.$ac_objext'
9753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9757 (exit $ac_status); }; }; then
9758 ac_cv_member_struct_stat_st_blksize=yes
9760 echo "$as_me: failed program was:" >&5
9761 sed 's/^/| /' conftest.$ac_ext >&5
9763 ac_cv_member_struct_stat_st_blksize=no
9765 rm -f conftest.$ac_objext conftest.$ac_ext
9767 rm -f conftest.$ac_objext conftest.$ac_ext
9769 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
9770 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
9771 if test $ac_cv_member_struct_stat_st_blksize = yes; then
9773 cat >>confdefs.h <<_ACEOF
9774 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9778 cat >>confdefs.h <<\_ACEOF
9779 #define HAVE_ST_BLKSIZE 1
9785 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
9786 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
9787 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
9788 echo $ECHO_N "(cached) $ECHO_C" >&6
9790 cat >conftest.$ac_ext <<_ACEOF
9791 #line $LINENO "configure"
9794 cat confdefs.h >>conftest.$ac_ext
9795 cat >>conftest.$ac_ext <<_ACEOF
9796 /* end confdefs.h. */
9797 $ac_includes_default
9801 static struct stat ac_aggr;
9802 if (ac_aggr.st_blocks)
9808 rm -f conftest.$ac_objext
9809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9810 (eval $ac_compile) 2>&5
9812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9813 (exit $ac_status); } &&
9814 { ac_try='test -s conftest.$ac_objext'
9815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9819 (exit $ac_status); }; }; then
9820 ac_cv_member_struct_stat_st_blocks=yes
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9825 cat >conftest.$ac_ext <<_ACEOF
9826 #line $LINENO "configure"
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9832 $ac_includes_default
9836 static struct stat ac_aggr;
9837 if (sizeof ac_aggr.st_blocks)
9843 rm -f conftest.$ac_objext
9844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9845 (eval $ac_compile) 2>&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } &&
9849 { ac_try='test -s conftest.$ac_objext'
9850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854 (exit $ac_status); }; }; then
9855 ac_cv_member_struct_stat_st_blocks=yes
9857 echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9860 ac_cv_member_struct_stat_st_blocks=no
9862 rm -f conftest.$ac_objext conftest.$ac_ext
9864 rm -f conftest.$ac_objext conftest.$ac_ext
9866 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
9867 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
9868 if test $ac_cv_member_struct_stat_st_blocks = yes; then
9870 cat >>confdefs.h <<_ACEOF
9871 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9875 cat >>confdefs.h <<\_ACEOF
9876 #define HAVE_ST_BLOCKS 1
9880 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
9884 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9885 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9886 if test "${ac_cv_struct_tm+set}" = set; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 cat >conftest.$ac_ext <<_ACEOF
9890 #line $LINENO "configure"
9893 cat confdefs.h >>conftest.$ac_ext
9894 cat >>conftest.$ac_ext <<_ACEOF
9895 /* end confdefs.h. */
9896 #include <sys/types.h>
9902 struct tm *tp; tp->tm_sec;
9907 rm -f conftest.$ac_objext
9908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9909 (eval $ac_compile) 2>&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); } &&
9913 { ac_try='test -s conftest.$ac_objext'
9914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); }; }; then
9919 ac_cv_struct_tm=time.h
9921 echo "$as_me: failed program was:" >&5
9922 sed 's/^/| /' conftest.$ac_ext >&5
9924 ac_cv_struct_tm=sys/time.h
9926 rm -f conftest.$ac_objext conftest.$ac_ext
9928 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9929 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9930 if test $ac_cv_struct_tm = sys/time.h; then
9932 cat >>confdefs.h <<\_ACEOF
9933 #define TM_IN_SYS_TIME 1
9938 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9939 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9940 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9941 echo $ECHO_N "(cached) $ECHO_C" >&6
9943 cat >conftest.$ac_ext <<_ACEOF
9944 #line $LINENO "configure"
9947 cat confdefs.h >>conftest.$ac_ext
9948 cat >>conftest.$ac_ext <<_ACEOF
9949 /* end confdefs.h. */
9950 #include <sys/types.h>
9951 #include <$ac_cv_struct_tm>
9957 static struct tm ac_aggr;
9958 if (ac_aggr.tm_zone)
9964 rm -f conftest.$ac_objext
9965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9966 (eval $ac_compile) 2>&5
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } &&
9970 { ac_try='test -s conftest.$ac_objext'
9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; }; then
9976 ac_cv_member_struct_tm_tm_zone=yes
9978 echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9981 cat >conftest.$ac_ext <<_ACEOF
9982 #line $LINENO "configure"
9985 cat confdefs.h >>conftest.$ac_ext
9986 cat >>conftest.$ac_ext <<_ACEOF
9987 /* end confdefs.h. */
9988 #include <sys/types.h>
9989 #include <$ac_cv_struct_tm>
9995 static struct tm ac_aggr;
9996 if (sizeof ac_aggr.tm_zone)
10002 rm -f conftest.$ac_objext
10003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10004 (eval $ac_compile) 2>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); } &&
10008 { ac_try='test -s conftest.$ac_objext'
10009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10010 (eval $ac_try) 2>&5
10012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10013 (exit $ac_status); }; }; then
10014 ac_cv_member_struct_tm_tm_zone=yes
10016 echo "$as_me: failed program was:" >&5
10017 sed 's/^/| /' conftest.$ac_ext >&5
10019 ac_cv_member_struct_tm_tm_zone=no
10021 rm -f conftest.$ac_objext conftest.$ac_ext
10023 rm -f conftest.$ac_objext conftest.$ac_ext
10025 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10026 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10027 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10029 cat >>confdefs.h <<_ACEOF
10030 #define HAVE_STRUCT_TM_TM_ZONE 1
10036 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10038 cat >>confdefs.h <<\_ACEOF
10039 #define HAVE_TM_ZONE 1
10043 echo "$as_me:$LINENO: checking for tzname" >&5
10044 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10045 if test "${ac_cv_var_tzname+set}" = set; then
10046 echo $ECHO_N "(cached) $ECHO_C" >&6
10048 cat >conftest.$ac_ext <<_ACEOF
10049 #line $LINENO "configure"
10052 cat confdefs.h >>conftest.$ac_ext
10053 cat >>conftest.$ac_ext <<_ACEOF
10054 /* end confdefs.h. */
10056 #ifndef tzname /* For SGI. */
10057 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10068 rm -f conftest.$ac_objext conftest$ac_exeext
10069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10070 (eval $ac_link) 2>&5
10072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10073 (exit $ac_status); } &&
10074 { ac_try='test -s conftest$ac_exeext'
10075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10076 (eval $ac_try) 2>&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; }; then
10080 ac_cv_var_tzname=yes
10082 echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10085 ac_cv_var_tzname=no
10087 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10089 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10090 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10091 if test $ac_cv_var_tzname = yes; then
10093 cat >>confdefs.h <<\_ACEOF
10094 #define HAVE_TZNAME 1
10101 echo "$as_me:$LINENO: checking for utime.h" >&5
10102 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10103 if test "${ba_cv_header_utime_h+set}" = set; then
10104 echo $ECHO_N "(cached) $ECHO_C" >&6
10106 cat >conftest.$ac_ext <<_ACEOF
10107 #line $LINENO "configure"
10110 cat confdefs.h >>conftest.$ac_ext
10111 cat >>conftest.$ac_ext <<_ACEOF
10112 /* end confdefs.h. */
10114 #include <sys/types.h>
10124 rm -f conftest.$ac_objext
10125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10126 (eval $ac_compile) 2>&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 (exit $ac_status); } &&
10130 { ac_try='test -s conftest.$ac_objext'
10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; }; then
10136 ba_cv_header_utime_h=yes
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.$ac_ext >&5
10141 ba_cv_header_utime_h=no
10143 rm -f conftest.$ac_objext conftest.$ac_ext
10145 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10146 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10147 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10148 #define HAVE_UTIME_H 1
10152 echo "$as_me:$LINENO: checking for socklen_t" >&5
10153 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10154 if test "${ba_cv_header_socklen_t+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 cat >conftest.$ac_ext <<_ACEOF
10158 #line $LINENO "configure"
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10165 #include <sys/types.h>
10166 #include <sys/socket.h>
10175 rm -f conftest.$ac_objext
10176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10177 (eval $ac_compile) 2>&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } &&
10181 { ac_try='test -s conftest.$ac_objext'
10182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10183 (eval $ac_try) 2>&5
10185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186 (exit $ac_status); }; }; then
10187 ba_cv_header_socklen_t=yes
10189 echo "$as_me: failed program was:" >&5
10190 sed 's/^/| /' conftest.$ac_ext >&5
10192 ba_cv_header_socklen_t=no
10194 rm -f conftest.$ac_objext conftest.$ac_ext
10196 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10197 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10198 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10199 #define HAVE_SOCKLEN_T 1
10203 echo "$as_me:$LINENO: checking for bigendian" >&5
10204 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10205 if test "${ba_cv_bigendian+set}" = set; then
10206 echo $ECHO_N "(cached) $ECHO_C" >&6
10208 if test "$cross_compiling" = yes; then
10211 cat >conftest.$ac_ext <<_ACEOF
10212 #line $LINENO "configure"
10215 cat confdefs.h >>conftest.$ac_ext
10216 cat >>conftest.$ac_ext <<_ACEOF
10217 /* end confdefs.h. */
10218 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10220 rm -f conftest$ac_exeext
10221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10222 (eval $ac_link) 2>&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10227 (eval $ac_try) 2>&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); }; }; then
10231 ba_cv_bigendian=yes
10233 echo "$as_me: program exited with status $ac_status" >&5
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10237 ( exit $ac_status )
10240 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10243 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10244 echo "${ECHO_T}$ba_cv_bigendian" >&6
10245 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10246 #define HAVE_BIGENDIAN 1
10251 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10252 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10253 if test "${ac_cv_c_const+set}" = set; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10256 cat >conftest.$ac_ext <<_ACEOF
10257 #line $LINENO "configure"
10260 cat confdefs.h >>conftest.$ac_ext
10261 cat >>conftest.$ac_ext <<_ACEOF
10262 /* end confdefs.h. */
10267 /* FIXME: Include the comments suggested by Paul. */
10268 #ifndef __cplusplus
10269 /* Ultrix mips cc rejects this. */
10270 typedef int charset[2];
10272 /* SunOS 4.1.1 cc rejects this. */
10273 char const *const *ccp;
10275 /* NEC SVR4.0.2 mips cc rejects this. */
10276 struct point {int x, y;};
10277 static struct point const zero = {0,0};
10278 /* AIX XL C 1.02.0.0 rejects this.
10279 It does not let you subtract one const X* pointer from another in
10280 an arm of an if-expression whose if-part is not a constant
10282 const char *g = "string";
10283 ccp = &g + (g ? g-g : 0);
10284 /* HPUX 7.0 cc rejects these. */
10287 ccp = (char const *const *) p;
10288 { /* SCO 3.2v4 cc rejects this. */
10290 char const *s = 0 ? (char *) 0 : (char const *) 0;
10294 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10295 int x[] = {25, 17};
10296 const int *foo = &x[0];
10299 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10300 typedef const int *iptr;
10304 { /* AIX XL C 1.02.0.0 rejects this saying
10305 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10306 struct s { int j; const int *ap[3]; };
10307 struct s *b; b->j = 5;
10309 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10310 const int foo = 10;
10318 rm -f conftest.$ac_objext
10319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10320 (eval $ac_compile) 2>&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } &&
10324 { ac_try='test -s conftest.$ac_objext'
10325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326 (eval $ac_try) 2>&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); }; }; then
10332 echo "$as_me: failed program was:" >&5
10333 sed 's/^/| /' conftest.$ac_ext >&5
10337 rm -f conftest.$ac_objext conftest.$ac_ext
10339 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10340 echo "${ECHO_T}$ac_cv_c_const" >&6
10341 if test $ac_cv_c_const = no; then
10343 cat >>confdefs.h <<\_ACEOF
10351 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10352 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10354 # The order of these tests is important.
10355 cat >conftest.$ac_ext <<_ACEOF
10356 #line $LINENO "configure"
10359 cat confdefs.h >>conftest.$ac_ext
10360 cat >>conftest.$ac_ext <<_ACEOF
10361 /* end confdefs.h. */
10362 #include <sys/statvfs.h>
10363 #include <sys/fstyp.h>
10365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10368 grep -v '^ *+' conftest.er1 >conftest.err
10370 cat conftest.err >&5
10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10372 (exit $ac_status); } >/dev/null; then
10373 if test -s conftest.err; then
10374 ac_cpp_err=$ac_c_preproc_warn_flag
10381 if test -z "$ac_cpp_err"; then
10382 cat >>confdefs.h <<\_ACEOF
10383 #define FSTYPE_STATVFS 1
10387 echo "$as_me: failed program was:" >&5
10388 sed 's/^/| /' conftest.$ac_ext >&5
10392 rm -f conftest.err conftest.$ac_ext
10393 if test $fstype = no; then
10394 cat >conftest.$ac_ext <<_ACEOF
10395 #line $LINENO "configure"
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h. */
10401 #include <sys/statfs.h>
10402 #include <sys/fstyp.h>
10404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10405 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10407 grep -v '^ *+' conftest.er1 >conftest.err
10409 cat conftest.err >&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } >/dev/null; then
10412 if test -s conftest.err; then
10413 ac_cpp_err=$ac_c_preproc_warn_flag
10420 if test -z "$ac_cpp_err"; then
10421 cat >>confdefs.h <<\_ACEOF
10422 #define FSTYPE_USG_STATFS 1
10426 echo "$as_me: failed program was:" >&5
10427 sed 's/^/| /' conftest.$ac_ext >&5
10431 rm -f conftest.err conftest.$ac_ext
10433 if test $fstype = no; then
10434 cat >conftest.$ac_ext <<_ACEOF
10435 #line $LINENO "configure"
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10441 #include <sys/statfs.h>
10442 #include <sys/vmount.h>
10444 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10445 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10447 grep -v '^ *+' conftest.er1 >conftest.err
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } >/dev/null; then
10452 if test -s conftest.err; then
10453 ac_cpp_err=$ac_c_preproc_warn_flag
10460 if test -z "$ac_cpp_err"; then
10461 cat >>confdefs.h <<\_ACEOF
10462 #define FSTYPE_AIX_STATFS 1
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.$ac_ext >&5
10471 rm -f conftest.err conftest.$ac_ext
10473 if test $fstype = no; then
10474 cat >conftest.$ac_ext <<_ACEOF
10475 #line $LINENO "configure"
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h. */
10481 #include <mntent.h>
10483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10486 grep -v '^ *+' conftest.er1 >conftest.err
10488 cat conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } >/dev/null; then
10491 if test -s conftest.err; then
10492 ac_cpp_err=$ac_c_preproc_warn_flag
10499 if test -z "$ac_cpp_err"; then
10500 cat >>confdefs.h <<\_ACEOF
10501 #define FSTYPE_MNTENT 1
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10510 rm -f conftest.err conftest.$ac_ext
10512 if test $fstype = no; then
10513 cat >conftest.$ac_ext <<_ACEOF
10514 #line $LINENO "configure"
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10520 #include <sys/mount.h>
10523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10524 $EGREP "f_type;" >/dev/null 2>&1; then
10525 cat >>confdefs.h <<\_ACEOF
10526 #define FSTYPE_STATFS 1
10533 if test $fstype = no; then
10534 cat >conftest.$ac_ext <<_ACEOF
10535 #line $LINENO "configure"
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10541 #include <sys/mount.h>
10542 #include <sys/fs_types.h>
10544 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10545 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10547 grep -v '^ *+' conftest.er1 >conftest.err
10549 cat conftest.err >&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); } >/dev/null; then
10552 if test -s conftest.err; then
10553 ac_cpp_err=$ac_c_preproc_warn_flag
10560 if test -z "$ac_cpp_err"; then
10561 cat >>confdefs.h <<\_ACEOF
10562 #define FSTYPE_GETMNT 1
10566 echo "$as_me: failed program was:" >&5
10567 sed 's/^/| /' conftest.$ac_ext >&5
10571 rm -f conftest.err conftest.$ac_ext
10573 echo "$as_me:$LINENO: result: $fstype" >&5
10574 echo "${ECHO_T}$fstype" >&6
10576 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10577 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10578 if test "${ac_cv_type_signal+set}" = set; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10581 cat >conftest.$ac_ext <<_ACEOF
10582 #line $LINENO "configure"
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10588 #include <sys/types.h>
10589 #include <signal.h>
10594 extern "C" void (*signal (int, void (*)(int)))(int);
10596 void (*signal ()) ();
10607 rm -f conftest.$ac_objext
10608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10609 (eval $ac_compile) 2>&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } &&
10613 { ac_try='test -s conftest.$ac_objext'
10614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10615 (eval $ac_try) 2>&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); }; }; then
10619 ac_cv_type_signal=void
10621 echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10624 ac_cv_type_signal=int
10626 rm -f conftest.$ac_objext conftest.$ac_ext
10628 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10629 echo "${ECHO_T}$ac_cv_type_signal" >&6
10631 cat >>confdefs.h <<_ACEOF
10632 #define RETSIGTYPE $ac_cv_type_signal
10637 echo "$as_me:$LINENO: checking for type of signal functions" >&5
10638 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
10639 if test "${bash_cv_signal_vintage+set}" = set; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 cat >conftest.$ac_ext <<_ACEOF
10644 #line $LINENO "configure"
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10650 #include <signal.h>
10656 struct sigaction sa;
10657 sigemptyset(&ss); sigsuspend(&ss);
10658 sigaction(SIGINT, &sa, (struct sigaction *) 0);
10659 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
10665 rm -f conftest.$ac_objext conftest$ac_exeext
10666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10667 (eval $ac_link) 2>&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } &&
10671 { ac_try='test -s conftest$ac_exeext'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; }; then
10677 bash_cv_signal_vintage=posix
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
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 <signal.h>
10695 int mask = sigmask(SIGINT);
10696 sigsetmask(mask); sigblock(mask); sigpause(mask);
10702 rm -f conftest.$ac_objext conftest$ac_exeext
10703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10704 (eval $ac_link) 2>&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } &&
10708 { ac_try='test -s conftest$ac_exeext'
10709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10710 (eval $ac_try) 2>&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); }; }; then
10714 bash_cv_signal_vintage=4.2bsd
10716 echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.$ac_ext >&5
10720 cat >conftest.$ac_ext <<_ACEOF
10721 #line $LINENO "configure"
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h. */
10728 #include <signal.h>
10729 RETSIGTYPE foo() { }
10734 int mask = sigmask(SIGINT);
10735 sigset(SIGINT, foo); sigrelse(SIGINT);
10736 sighold(SIGINT); sigpause(SIGINT);
10742 rm -f conftest.$ac_objext conftest$ac_exeext
10743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10744 (eval $ac_link) 2>&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); } &&
10748 { ac_try='test -s conftest$ac_exeext'
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 bash_cv_signal_vintage=svr3
10756 echo "$as_me: failed program was:" >&5
10757 sed 's/^/| /' conftest.$ac_ext >&5
10759 bash_cv_signal_vintage=v7
10762 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10765 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10772 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
10773 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
10774 if test "$bash_cv_signal_vintage" = posix; then
10775 cat >>confdefs.h <<\_ACEOF
10776 #define HAVE_POSIX_SIGNALS 1
10779 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
10780 cat >>confdefs.h <<\_ACEOF
10781 #define HAVE_BSD_SIGNALS 1
10784 elif test "$bash_cv_signal_vintage" = svr3; then
10785 cat >>confdefs.h <<\_ACEOF
10786 #define HAVE_USG_SIGHOLD 1
10791 echo "$as_me:$LINENO: checking for mode_t" >&5
10792 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10793 if test "${ac_cv_type_mode_t+set}" = set; then
10794 echo $ECHO_N "(cached) $ECHO_C" >&6
10796 cat >conftest.$ac_ext <<_ACEOF
10797 #line $LINENO "configure"
10800 cat confdefs.h >>conftest.$ac_ext
10801 cat >>conftest.$ac_ext <<_ACEOF
10802 /* end confdefs.h. */
10803 $ac_includes_default
10809 if (sizeof (mode_t))
10815 rm -f conftest.$ac_objext
10816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10817 (eval $ac_compile) 2>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } &&
10821 { ac_try='test -s conftest.$ac_objext'
10822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10823 (eval $ac_try) 2>&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 (exit $ac_status); }; }; then
10827 ac_cv_type_mode_t=yes
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10832 ac_cv_type_mode_t=no
10834 rm -f conftest.$ac_objext conftest.$ac_ext
10836 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10837 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10838 if test $ac_cv_type_mode_t = yes; then
10842 cat >>confdefs.h <<_ACEOF
10848 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10849 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10850 if test "${ac_cv_type_uid_t+set}" = set; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10853 cat >conftest.$ac_ext <<_ACEOF
10854 #line $LINENO "configure"
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h. */
10860 #include <sys/types.h>
10863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10864 $EGREP "uid_t" >/dev/null 2>&1; then
10865 ac_cv_type_uid_t=yes
10867 ac_cv_type_uid_t=no
10872 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10873 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10874 if test $ac_cv_type_uid_t = no; then
10876 cat >>confdefs.h <<\_ACEOF
10881 cat >>confdefs.h <<\_ACEOF
10887 echo "$as_me:$LINENO: checking for size_t" >&5
10888 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10889 if test "${ac_cv_type_size_t+set}" = set; then
10890 echo $ECHO_N "(cached) $ECHO_C" >&6
10892 cat >conftest.$ac_ext <<_ACEOF
10893 #line $LINENO "configure"
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h. */
10899 $ac_includes_default
10905 if (sizeof (size_t))
10911 rm -f conftest.$ac_objext
10912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10913 (eval $ac_compile) 2>&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } &&
10917 { ac_try='test -s conftest.$ac_objext'
10918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919 (eval $ac_try) 2>&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; }; then
10923 ac_cv_type_size_t=yes
10925 echo "$as_me: failed program was:" >&5
10926 sed 's/^/| /' conftest.$ac_ext >&5
10928 ac_cv_type_size_t=no
10930 rm -f conftest.$ac_objext conftest.$ac_ext
10932 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10933 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10934 if test $ac_cv_type_size_t = yes; then
10938 cat >>confdefs.h <<_ACEOF
10939 #define size_t unsigned
10944 echo "$as_me:$LINENO: checking for pid_t" >&5
10945 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10946 if test "${ac_cv_type_pid_t+set}" = set; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 cat >conftest.$ac_ext <<_ACEOF
10950 #line $LINENO "configure"
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10956 $ac_includes_default
10962 if (sizeof (pid_t))
10968 rm -f conftest.$ac_objext
10969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10970 (eval $ac_compile) 2>&5
10972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } &&
10974 { ac_try='test -s conftest.$ac_objext'
10975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10976 (eval $ac_try) 2>&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); }; }; then
10980 ac_cv_type_pid_t=yes
10982 echo "$as_me: failed program was:" >&5
10983 sed 's/^/| /' conftest.$ac_ext >&5
10985 ac_cv_type_pid_t=no
10987 rm -f conftest.$ac_objext conftest.$ac_ext
10989 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10990 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10991 if test $ac_cv_type_pid_t = yes; then
10995 cat >>confdefs.h <<_ACEOF
11001 echo "$as_me:$LINENO: checking for off_t" >&5
11002 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11003 if test "${ac_cv_type_off_t+set}" = set; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11006 cat >conftest.$ac_ext <<_ACEOF
11007 #line $LINENO "configure"
11010 cat confdefs.h >>conftest.$ac_ext
11011 cat >>conftest.$ac_ext <<_ACEOF
11012 /* end confdefs.h. */
11013 $ac_includes_default
11019 if (sizeof (off_t))
11025 rm -f conftest.$ac_objext
11026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11027 (eval $ac_compile) 2>&5
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); } &&
11031 { ac_try='test -s conftest.$ac_objext'
11032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11033 (eval $ac_try) 2>&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); }; }; then
11037 ac_cv_type_off_t=yes
11039 echo "$as_me: failed program was:" >&5
11040 sed 's/^/| /' conftest.$ac_ext >&5
11042 ac_cv_type_off_t=no
11044 rm -f conftest.$ac_objext conftest.$ac_ext
11046 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11047 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11048 if test $ac_cv_type_off_t = yes; then
11052 cat >>confdefs.h <<_ACEOF
11058 echo "$as_me:$LINENO: checking for ino_t" >&5
11059 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11060 if test "${ac_cv_type_ino_t+set}" = set; then
11061 echo $ECHO_N "(cached) $ECHO_C" >&6
11063 cat >conftest.$ac_ext <<_ACEOF
11064 #line $LINENO "configure"
11067 cat confdefs.h >>conftest.$ac_ext
11068 cat >>conftest.$ac_ext <<_ACEOF
11069 /* end confdefs.h. */
11070 $ac_includes_default
11076 if (sizeof (ino_t))
11082 rm -f conftest.$ac_objext
11083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11084 (eval $ac_compile) 2>&5
11086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11087 (exit $ac_status); } &&
11088 { ac_try='test -s conftest.$ac_objext'
11089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11090 (eval $ac_try) 2>&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); }; }; then
11094 ac_cv_type_ino_t=yes
11096 echo "$as_me: failed program was:" >&5
11097 sed 's/^/| /' conftest.$ac_ext >&5
11099 ac_cv_type_ino_t=no
11101 rm -f conftest.$ac_objext conftest.$ac_ext
11103 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11104 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11105 if test $ac_cv_type_ino_t = yes; then
11109 cat >>confdefs.h <<_ACEOF
11110 #define ino_t unsigned long
11115 echo "$as_me:$LINENO: checking for dev_t" >&5
11116 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11117 if test "${ac_cv_type_dev_t+set}" = set; then
11118 echo $ECHO_N "(cached) $ECHO_C" >&6
11120 cat >conftest.$ac_ext <<_ACEOF
11121 #line $LINENO "configure"
11124 cat confdefs.h >>conftest.$ac_ext
11125 cat >>conftest.$ac_ext <<_ACEOF
11126 /* end confdefs.h. */
11127 $ac_includes_default
11133 if (sizeof (dev_t))
11139 rm -f conftest.$ac_objext
11140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11141 (eval $ac_compile) 2>&5
11143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11144 (exit $ac_status); } &&
11145 { ac_try='test -s conftest.$ac_objext'
11146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11147 (eval $ac_try) 2>&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); }; }; then
11151 ac_cv_type_dev_t=yes
11153 echo "$as_me: failed program was:" >&5
11154 sed 's/^/| /' conftest.$ac_ext >&5
11156 ac_cv_type_dev_t=no
11158 rm -f conftest.$ac_objext conftest.$ac_ext
11160 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11161 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11162 if test $ac_cv_type_dev_t = yes; then
11166 cat >>confdefs.h <<_ACEOF
11167 #define dev_t unsigned long
11172 echo "$as_me:$LINENO: checking for daddr_t" >&5
11173 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11174 if test "${ac_cv_type_daddr_t+set}" = set; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 cat >conftest.$ac_ext <<_ACEOF
11178 #line $LINENO "configure"
11181 cat confdefs.h >>conftest.$ac_ext
11182 cat >>conftest.$ac_ext <<_ACEOF
11183 /* end confdefs.h. */
11184 $ac_includes_default
11190 if (sizeof (daddr_t))
11196 rm -f conftest.$ac_objext
11197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11198 (eval $ac_compile) 2>&5
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); } &&
11202 { ac_try='test -s conftest.$ac_objext'
11203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204 (eval $ac_try) 2>&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); }; }; then
11208 ac_cv_type_daddr_t=yes
11210 echo "$as_me: failed program was:" >&5
11211 sed 's/^/| /' conftest.$ac_ext >&5
11213 ac_cv_type_daddr_t=no
11215 rm -f conftest.$ac_objext conftest.$ac_ext
11217 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11218 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11219 if test $ac_cv_type_daddr_t = yes; then
11223 cat >>confdefs.h <<_ACEOF
11224 #define daddr_t long
11229 echo "$as_me:$LINENO: checking for major_t" >&5
11230 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11231 if test "${ac_cv_type_major_t+set}" = set; then
11232 echo $ECHO_N "(cached) $ECHO_C" >&6
11234 cat >conftest.$ac_ext <<_ACEOF
11235 #line $LINENO "configure"
11238 cat confdefs.h >>conftest.$ac_ext
11239 cat >>conftest.$ac_ext <<_ACEOF
11240 /* end confdefs.h. */
11241 $ac_includes_default
11247 if (sizeof (major_t))
11253 rm -f conftest.$ac_objext
11254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11255 (eval $ac_compile) 2>&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); } &&
11259 { ac_try='test -s conftest.$ac_objext'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; }; then
11265 ac_cv_type_major_t=yes
11267 echo "$as_me: failed program was:" >&5
11268 sed 's/^/| /' conftest.$ac_ext >&5
11270 ac_cv_type_major_t=no
11272 rm -f conftest.$ac_objext conftest.$ac_ext
11274 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11275 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11276 if test $ac_cv_type_major_t = yes; then
11280 cat >>confdefs.h <<_ACEOF
11281 #define major_t int
11286 echo "$as_me:$LINENO: checking for minor_t" >&5
11287 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11288 if test "${ac_cv_type_minor_t+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11291 cat >conftest.$ac_ext <<_ACEOF
11292 #line $LINENO "configure"
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11298 $ac_includes_default
11304 if (sizeof (minor_t))
11310 rm -f conftest.$ac_objext
11311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11312 (eval $ac_compile) 2>&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } &&
11316 { ac_try='test -s conftest.$ac_objext'
11317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11318 (eval $ac_try) 2>&5
11320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11321 (exit $ac_status); }; }; then
11322 ac_cv_type_minor_t=yes
11324 echo "$as_me: failed program was:" >&5
11325 sed 's/^/| /' conftest.$ac_ext >&5
11327 ac_cv_type_minor_t=no
11329 rm -f conftest.$ac_objext conftest.$ac_ext
11331 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11332 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11333 if test $ac_cv_type_minor_t = yes; then
11337 cat >>confdefs.h <<_ACEOF
11338 #define minor_t int
11343 echo "$as_me:$LINENO: checking for ssize_t" >&5
11344 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11345 if test "${ac_cv_type_ssize_t+set}" = set; then
11346 echo $ECHO_N "(cached) $ECHO_C" >&6
11348 cat >conftest.$ac_ext <<_ACEOF
11349 #line $LINENO "configure"
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11355 $ac_includes_default
11361 if (sizeof (ssize_t))
11367 rm -f conftest.$ac_objext
11368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11369 (eval $ac_compile) 2>&5
11371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11372 (exit $ac_status); } &&
11373 { ac_try='test -s conftest.$ac_objext'
11374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11375 (eval $ac_try) 2>&5
11377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11378 (exit $ac_status); }; }; then
11379 ac_cv_type_ssize_t=yes
11381 echo "$as_me: failed program was:" >&5
11382 sed 's/^/| /' conftest.$ac_ext >&5
11384 ac_cv_type_ssize_t=no
11386 rm -f conftest.$ac_objext conftest.$ac_ext
11388 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11389 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11390 if test $ac_cv_type_ssize_t = yes; then
11394 cat >>confdefs.h <<_ACEOF
11395 #define ssize_t int
11400 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11401 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11402 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11405 cat >conftest.$ac_ext <<_ACEOF
11406 #line $LINENO "configure"
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11412 $ac_includes_default
11416 static struct stat ac_aggr;
11417 if (ac_aggr.st_blocks)
11423 rm -f conftest.$ac_objext
11424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11425 (eval $ac_compile) 2>&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } &&
11429 { ac_try='test -s conftest.$ac_objext'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; }; then
11435 ac_cv_member_struct_stat_st_blocks=yes
11437 echo "$as_me: failed program was:" >&5
11438 sed 's/^/| /' conftest.$ac_ext >&5
11440 cat >conftest.$ac_ext <<_ACEOF
11441 #line $LINENO "configure"
11444 cat confdefs.h >>conftest.$ac_ext
11445 cat >>conftest.$ac_ext <<_ACEOF
11446 /* end confdefs.h. */
11447 $ac_includes_default
11451 static struct stat ac_aggr;
11452 if (sizeof ac_aggr.st_blocks)
11458 rm -f conftest.$ac_objext
11459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11460 (eval $ac_compile) 2>&5
11462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11463 (exit $ac_status); } &&
11464 { ac_try='test -s conftest.$ac_objext'
11465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11466 (eval $ac_try) 2>&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); }; }; then
11470 ac_cv_member_struct_stat_st_blocks=yes
11472 echo "$as_me: failed program was:" >&5
11473 sed 's/^/| /' conftest.$ac_ext >&5
11475 ac_cv_member_struct_stat_st_blocks=no
11477 rm -f conftest.$ac_objext conftest.$ac_ext
11479 rm -f conftest.$ac_objext conftest.$ac_ext
11481 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11482 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11483 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11485 cat >>confdefs.h <<_ACEOF
11486 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11490 cat >>confdefs.h <<\_ACEOF
11491 #define HAVE_ST_BLOCKS 1
11495 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11500 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11501 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11502 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11503 echo $ECHO_N "(cached) $ECHO_C" >&6
11505 cat >conftest.$ac_ext <<_ACEOF
11506 #line $LINENO "configure"
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h. */
11512 $ac_includes_default
11516 static struct stat ac_aggr;
11517 if (ac_aggr.st_rdev)
11523 rm -f conftest.$ac_objext
11524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11525 (eval $ac_compile) 2>&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } &&
11529 { ac_try='test -s conftest.$ac_objext'
11530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11531 (eval $ac_try) 2>&5
11533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11534 (exit $ac_status); }; }; then
11535 ac_cv_member_struct_stat_st_rdev=yes
11537 echo "$as_me: failed program was:" >&5
11538 sed 's/^/| /' conftest.$ac_ext >&5
11540 cat >conftest.$ac_ext <<_ACEOF
11541 #line $LINENO "configure"
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11547 $ac_includes_default
11551 static struct stat ac_aggr;
11552 if (sizeof ac_aggr.st_rdev)
11558 rm -f conftest.$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560 (eval $ac_compile) 2>&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } &&
11564 { ac_try='test -s conftest.$ac_objext'
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; }; then
11570 ac_cv_member_struct_stat_st_rdev=yes
11572 echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11575 ac_cv_member_struct_stat_st_rdev=no
11577 rm -f conftest.$ac_objext conftest.$ac_ext
11579 rm -f conftest.$ac_objext conftest.$ac_ext
11581 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
11582 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
11583 if test $ac_cv_member_struct_stat_st_rdev = yes; then
11585 cat >>confdefs.h <<_ACEOF
11586 #define HAVE_STRUCT_STAT_ST_RDEV 1
11590 cat >>confdefs.h <<\_ACEOF
11591 #define HAVE_ST_RDEV 1
11597 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11598 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11599 if test "${ac_cv_struct_tm+set}" = set; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11602 cat >conftest.$ac_ext <<_ACEOF
11603 #line $LINENO "configure"
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11609 #include <sys/types.h>
11615 struct tm *tp; tp->tm_sec;
11620 rm -f conftest.$ac_objext
11621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11622 (eval $ac_compile) 2>&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } &&
11626 { ac_try='test -s conftest.$ac_objext'
11627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11628 (eval $ac_try) 2>&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; }; then
11632 ac_cv_struct_tm=time.h
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11637 ac_cv_struct_tm=sys/time.h
11639 rm -f conftest.$ac_objext conftest.$ac_ext
11641 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11642 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11643 if test $ac_cv_struct_tm = sys/time.h; then
11645 cat >>confdefs.h <<\_ACEOF
11646 #define TM_IN_SYS_TIME 1
11651 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11652 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11653 if test "${ac_cv_c_const+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11656 cat >conftest.$ac_ext <<_ACEOF
11657 #line $LINENO "configure"
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11667 /* FIXME: Include the comments suggested by Paul. */
11668 #ifndef __cplusplus
11669 /* Ultrix mips cc rejects this. */
11670 typedef int charset[2];
11672 /* SunOS 4.1.1 cc rejects this. */
11673 char const *const *ccp;
11675 /* NEC SVR4.0.2 mips cc rejects this. */
11676 struct point {int x, y;};
11677 static struct point const zero = {0,0};
11678 /* AIX XL C 1.02.0.0 rejects this.
11679 It does not let you subtract one const X* pointer from another in
11680 an arm of an if-expression whose if-part is not a constant
11682 const char *g = "string";
11683 ccp = &g + (g ? g-g : 0);
11684 /* HPUX 7.0 cc rejects these. */
11687 ccp = (char const *const *) p;
11688 { /* SCO 3.2v4 cc rejects this. */
11690 char const *s = 0 ? (char *) 0 : (char const *) 0;
11694 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11695 int x[] = {25, 17};
11696 const int *foo = &x[0];
11699 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11700 typedef const int *iptr;
11704 { /* AIX XL C 1.02.0.0 rejects this saying
11705 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11706 struct s { int j; const int *ap[3]; };
11707 struct s *b; b->j = 5;
11709 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11710 const int foo = 10;
11718 rm -f conftest.$ac_objext
11719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11720 (eval $ac_compile) 2>&5
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } &&
11724 { ac_try='test -s conftest.$ac_objext'
11725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11726 (eval $ac_try) 2>&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; }; then
11732 echo "$as_me: failed program was:" >&5
11733 sed 's/^/| /' conftest.$ac_ext >&5
11737 rm -f conftest.$ac_objext conftest.$ac_ext
11739 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11740 echo "${ECHO_T}$ac_cv_c_const" >&6
11741 if test $ac_cv_c_const = no; then
11743 cat >>confdefs.h <<\_ACEOF
11751 echo "$as_me:$LINENO: checking for char" >&5
11752 echo $ECHO_N "checking for char... $ECHO_C" >&6
11753 if test "${ac_cv_type_char+set}" = set; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11756 cat >conftest.$ac_ext <<_ACEOF
11757 #line $LINENO "configure"
11760 cat confdefs.h >>conftest.$ac_ext
11761 cat >>conftest.$ac_ext <<_ACEOF
11762 /* end confdefs.h. */
11763 $ac_includes_default
11775 rm -f conftest.$ac_objext
11776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11777 (eval $ac_compile) 2>&5
11779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11780 (exit $ac_status); } &&
11781 { ac_try='test -s conftest.$ac_objext'
11782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11783 (eval $ac_try) 2>&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); }; }; then
11787 ac_cv_type_char=yes
11789 echo "$as_me: failed program was:" >&5
11790 sed 's/^/| /' conftest.$ac_ext >&5
11794 rm -f conftest.$ac_objext conftest.$ac_ext
11796 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11797 echo "${ECHO_T}$ac_cv_type_char" >&6
11799 echo "$as_me:$LINENO: checking size of char" >&5
11800 echo $ECHO_N "checking size of char... $ECHO_C" >&6
11801 if test "${ac_cv_sizeof_char+set}" = set; then
11802 echo $ECHO_N "(cached) $ECHO_C" >&6
11804 if test "$ac_cv_type_char" = yes; then
11805 # The cast to unsigned long works around a bug in the HP C Compiler
11806 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11807 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11808 # This bug is HP SR number 8606223364.
11809 if test "$cross_compiling" = yes; then
11810 # Depending upon the size, compute the lo and hi bounds.
11811 cat >conftest.$ac_ext <<_ACEOF
11812 #line $LINENO "configure"
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h. */
11818 $ac_includes_default
11822 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11829 rm -f conftest.$ac_objext
11830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11831 (eval $ac_compile) 2>&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } &&
11835 { ac_try='test -s conftest.$ac_objext'
11836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837 (eval $ac_try) 2>&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; }; then
11843 cat >conftest.$ac_ext <<_ACEOF
11844 #line $LINENO "configure"
11847 cat confdefs.h >>conftest.$ac_ext
11848 cat >>conftest.$ac_ext <<_ACEOF
11849 /* end confdefs.h. */
11850 $ac_includes_default
11854 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11861 rm -f conftest.$ac_objext
11862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11863 (eval $ac_compile) 2>&5
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); } &&
11867 { ac_try='test -s conftest.$ac_objext'
11868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869 (eval $ac_try) 2>&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; }; then
11873 ac_hi=$ac_mid; break
11875 echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11878 ac_lo=`expr $ac_mid + 1`
11879 if test $ac_lo -le $ac_mid; then
11883 ac_mid=`expr 2 '*' $ac_mid + 1`
11885 rm -f conftest.$ac_objext conftest.$ac_ext
11888 echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11891 cat >conftest.$ac_ext <<_ACEOF
11892 #line $LINENO "configure"
11895 cat confdefs.h >>conftest.$ac_ext
11896 cat >>conftest.$ac_ext <<_ACEOF
11897 /* end confdefs.h. */
11898 $ac_includes_default
11902 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11909 rm -f conftest.$ac_objext
11910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11911 (eval $ac_compile) 2>&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); } &&
11915 { ac_try='test -s conftest.$ac_objext'
11916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11917 (eval $ac_try) 2>&5
11919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); }; }; then
11923 cat >conftest.$ac_ext <<_ACEOF
11924 #line $LINENO "configure"
11927 cat confdefs.h >>conftest.$ac_ext
11928 cat >>conftest.$ac_ext <<_ACEOF
11929 /* end confdefs.h. */
11930 $ac_includes_default
11934 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11941 rm -f conftest.$ac_objext
11942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11943 (eval $ac_compile) 2>&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
11947 { ac_try='test -s conftest.$ac_objext'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; }; then
11953 ac_lo=$ac_mid; break
11955 echo "$as_me: failed program was:" >&5
11956 sed 's/^/| /' conftest.$ac_ext >&5
11958 ac_hi=`expr '(' $ac_mid ')' - 1`
11959 if test $ac_mid -le $ac_hi; then
11963 ac_mid=`expr 2 '*' $ac_mid`
11965 rm -f conftest.$ac_objext conftest.$ac_ext
11968 echo "$as_me: failed program was:" >&5
11969 sed 's/^/| /' conftest.$ac_ext >&5
11973 rm -f conftest.$ac_objext conftest.$ac_ext
11975 rm -f conftest.$ac_objext conftest.$ac_ext
11976 # Binary search between lo and hi bounds.
11977 while test "x$ac_lo" != "x$ac_hi"; do
11978 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11979 cat >conftest.$ac_ext <<_ACEOF
11980 #line $LINENO "configure"
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11986 $ac_includes_default
11990 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11997 rm -f conftest.$ac_objext
11998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11999 (eval $ac_compile) 2>&5
12001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002 (exit $ac_status); } &&
12003 { ac_try='test -s conftest.$ac_objext'
12004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12005 (eval $ac_try) 2>&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); }; }; then
12011 echo "$as_me: failed program was:" >&5
12012 sed 's/^/| /' conftest.$ac_ext >&5
12014 ac_lo=`expr '(' $ac_mid ')' + 1`
12016 rm -f conftest.$ac_objext conftest.$ac_ext
12019 ?*) ac_cv_sizeof_char=$ac_lo;;
12020 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12021 See \`config.log' for more details." >&5
12022 echo "$as_me: error: cannot compute sizeof (char), 77
12023 See \`config.log' for more details." >&2;}
12024 { (exit 1); exit 1; }; } ;;
12027 if test "$cross_compiling" = yes; then
12028 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12029 See \`config.log' for more details." >&5
12030 echo "$as_me: error: cannot run test program while cross compiling
12031 See \`config.log' for more details." >&2;}
12032 { (exit 1); exit 1; }; }
12034 cat >conftest.$ac_ext <<_ACEOF
12035 #line $LINENO "configure"
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12041 $ac_includes_default
12042 long longval () { return (long) (sizeof (char)); }
12043 unsigned long ulongval () { return (long) (sizeof (char)); }
12045 #include <stdlib.h>
12050 FILE *f = fopen ("conftest.val", "w");
12053 if (((long) (sizeof (char))) < 0)
12055 long i = longval ();
12056 if (i != ((long) (sizeof (char))))
12058 fprintf (f, "%ld\n", i);
12062 unsigned long i = ulongval ();
12063 if (i != ((long) (sizeof (char))))
12065 fprintf (f, "%lu\n", i);
12067 exit (ferror (f) || fclose (f) != 0);
12073 rm -f conftest$ac_exeext
12074 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12075 (eval $ac_link) 2>&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12080 (eval $ac_try) 2>&5
12082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12083 (exit $ac_status); }; }; then
12084 ac_cv_sizeof_char=`cat conftest.val`
12086 echo "$as_me: program exited with status $ac_status" >&5
12087 echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.$ac_ext >&5
12090 ( exit $ac_status )
12091 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12092 See \`config.log' for more details." >&5
12093 echo "$as_me: error: cannot compute sizeof (char), 77
12094 See \`config.log' for more details." >&2;}
12095 { (exit 1); exit 1; }; }
12097 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12102 ac_cv_sizeof_char=0
12105 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12106 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12107 cat >>confdefs.h <<_ACEOF
12108 #define SIZEOF_CHAR $ac_cv_sizeof_char
12112 echo "$as_me:$LINENO: checking for short int" >&5
12113 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12114 if test "${ac_cv_type_short_int+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12117 cat >conftest.$ac_ext <<_ACEOF
12118 #line $LINENO "configure"
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h. */
12124 $ac_includes_default
12128 if ((short int *) 0)
12130 if (sizeof (short int))
12136 rm -f conftest.$ac_objext
12137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12138 (eval $ac_compile) 2>&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } &&
12142 { ac_try='test -s conftest.$ac_objext'
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
12148 ac_cv_type_short_int=yes
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12153 ac_cv_type_short_int=no
12155 rm -f conftest.$ac_objext conftest.$ac_ext
12157 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12158 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12160 echo "$as_me:$LINENO: checking size of short int" >&5
12161 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12162 if test "${ac_cv_sizeof_short_int+set}" = set; then
12163 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 if test "$ac_cv_type_short_int" = yes; then
12166 # The cast to unsigned long works around a bug in the HP C Compiler
12167 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12168 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12169 # This bug is HP SR number 8606223364.
12170 if test "$cross_compiling" = yes; then
12171 # Depending upon the size, compute the lo and hi bounds.
12172 cat >conftest.$ac_ext <<_ACEOF
12173 #line $LINENO "configure"
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12179 $ac_includes_default
12183 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12190 rm -f conftest.$ac_objext
12191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12192 (eval $ac_compile) 2>&5
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } &&
12196 { ac_try='test -s conftest.$ac_objext'
12197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12198 (eval $ac_try) 2>&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); }; }; then
12204 cat >conftest.$ac_ext <<_ACEOF
12205 #line $LINENO "configure"
12208 cat confdefs.h >>conftest.$ac_ext
12209 cat >>conftest.$ac_ext <<_ACEOF
12210 /* end confdefs.h. */
12211 $ac_includes_default
12215 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12222 rm -f conftest.$ac_objext
12223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12224 (eval $ac_compile) 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } &&
12228 { ac_try='test -s conftest.$ac_objext'
12229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230 (eval $ac_try) 2>&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
12234 ac_hi=$ac_mid; break
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12239 ac_lo=`expr $ac_mid + 1`
12240 if test $ac_lo -le $ac_mid; then
12244 ac_mid=`expr 2 '*' $ac_mid + 1`
12246 rm -f conftest.$ac_objext conftest.$ac_ext
12249 echo "$as_me: failed program was:" >&5
12250 sed 's/^/| /' conftest.$ac_ext >&5
12252 cat >conftest.$ac_ext <<_ACEOF
12253 #line $LINENO "configure"
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12259 $ac_includes_default
12263 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12270 rm -f conftest.$ac_objext
12271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12272 (eval $ac_compile) 2>&5
12274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12275 (exit $ac_status); } &&
12276 { ac_try='test -s conftest.$ac_objext'
12277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12278 (eval $ac_try) 2>&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; }; then
12284 cat >conftest.$ac_ext <<_ACEOF
12285 #line $LINENO "configure"
12288 cat confdefs.h >>conftest.$ac_ext
12289 cat >>conftest.$ac_ext <<_ACEOF
12290 /* end confdefs.h. */
12291 $ac_includes_default
12295 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12302 rm -f conftest.$ac_objext
12303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12304 (eval $ac_compile) 2>&5
12306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12307 (exit $ac_status); } &&
12308 { ac_try='test -s conftest.$ac_objext'
12309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12310 (eval $ac_try) 2>&5
12312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12313 (exit $ac_status); }; }; then
12314 ac_lo=$ac_mid; break
12316 echo "$as_me: failed program was:" >&5
12317 sed 's/^/| /' conftest.$ac_ext >&5
12319 ac_hi=`expr '(' $ac_mid ')' - 1`
12320 if test $ac_mid -le $ac_hi; then
12324 ac_mid=`expr 2 '*' $ac_mid`
12326 rm -f conftest.$ac_objext conftest.$ac_ext
12329 echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12334 rm -f conftest.$ac_objext conftest.$ac_ext
12336 rm -f conftest.$ac_objext conftest.$ac_ext
12337 # Binary search between lo and hi bounds.
12338 while test "x$ac_lo" != "x$ac_hi"; do
12339 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12340 cat >conftest.$ac_ext <<_ACEOF
12341 #line $LINENO "configure"
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 $ac_includes_default
12351 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12358 rm -f conftest.$ac_objext
12359 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12360 (eval $ac_compile) 2>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } &&
12364 { ac_try='test -s conftest.$ac_objext'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12375 ac_lo=`expr '(' $ac_mid ')' + 1`
12377 rm -f conftest.$ac_objext conftest.$ac_ext
12380 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12381 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12382 See \`config.log' for more details." >&5
12383 echo "$as_me: error: cannot compute sizeof (short int), 77
12384 See \`config.log' for more details." >&2;}
12385 { (exit 1); exit 1; }; } ;;
12388 if test "$cross_compiling" = yes; then
12389 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12390 See \`config.log' for more details." >&5
12391 echo "$as_me: error: cannot run test program while cross compiling
12392 See \`config.log' for more details." >&2;}
12393 { (exit 1); exit 1; }; }
12395 cat >conftest.$ac_ext <<_ACEOF
12396 #line $LINENO "configure"
12399 cat confdefs.h >>conftest.$ac_ext
12400 cat >>conftest.$ac_ext <<_ACEOF
12401 /* end confdefs.h. */
12402 $ac_includes_default
12403 long longval () { return (long) (sizeof (short int)); }
12404 unsigned long ulongval () { return (long) (sizeof (short int)); }
12406 #include <stdlib.h>
12411 FILE *f = fopen ("conftest.val", "w");
12414 if (((long) (sizeof (short int))) < 0)
12416 long i = longval ();
12417 if (i != ((long) (sizeof (short int))))
12419 fprintf (f, "%ld\n", i);
12423 unsigned long i = ulongval ();
12424 if (i != ((long) (sizeof (short int))))
12426 fprintf (f, "%lu\n", i);
12428 exit (ferror (f) || fclose (f) != 0);
12434 rm -f conftest$ac_exeext
12435 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12436 (eval $ac_link) 2>&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12441 (eval $ac_try) 2>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); }; }; then
12445 ac_cv_sizeof_short_int=`cat conftest.val`
12447 echo "$as_me: program exited with status $ac_status" >&5
12448 echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.$ac_ext >&5
12451 ( exit $ac_status )
12452 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12453 See \`config.log' for more details." >&5
12454 echo "$as_me: error: cannot compute sizeof (short int), 77
12455 See \`config.log' for more details." >&2;}
12456 { (exit 1); exit 1; }; }
12458 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12463 ac_cv_sizeof_short_int=0
12466 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12467 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12468 cat >>confdefs.h <<_ACEOF
12469 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12473 echo "$as_me:$LINENO: checking for int" >&5
12474 echo $ECHO_N "checking for int... $ECHO_C" >&6
12475 if test "${ac_cv_type_int+set}" = set; then
12476 echo $ECHO_N "(cached) $ECHO_C" >&6
12478 cat >conftest.$ac_ext <<_ACEOF
12479 #line $LINENO "configure"
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12485 $ac_includes_default
12497 rm -f conftest.$ac_objext
12498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12499 (eval $ac_compile) 2>&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } &&
12503 { ac_try='test -s conftest.$ac_objext'
12504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12505 (eval $ac_try) 2>&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); }; }; then
12511 echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12516 rm -f conftest.$ac_objext conftest.$ac_ext
12518 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12519 echo "${ECHO_T}$ac_cv_type_int" >&6
12521 echo "$as_me:$LINENO: checking size of int" >&5
12522 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12523 if test "${ac_cv_sizeof_int+set}" = set; then
12524 echo $ECHO_N "(cached) $ECHO_C" >&6
12526 if test "$ac_cv_type_int" = yes; then
12527 # The cast to unsigned long works around a bug in the HP C Compiler
12528 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12529 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12530 # This bug is HP SR number 8606223364.
12531 if test "$cross_compiling" = yes; then
12532 # Depending upon the size, compute the lo and hi bounds.
12533 cat >conftest.$ac_ext <<_ACEOF
12534 #line $LINENO "configure"
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12540 $ac_includes_default
12544 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12551 rm -f conftest.$ac_objext
12552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12553 (eval $ac_compile) 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } &&
12557 { ac_try='test -s conftest.$ac_objext'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12565 cat >conftest.$ac_ext <<_ACEOF
12566 #line $LINENO "configure"
12569 cat confdefs.h >>conftest.$ac_ext
12570 cat >>conftest.$ac_ext <<_ACEOF
12571 /* end confdefs.h. */
12572 $ac_includes_default
12576 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12583 rm -f conftest.$ac_objext
12584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12585 (eval $ac_compile) 2>&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); } &&
12589 { ac_try='test -s conftest.$ac_objext'
12590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12591 (eval $ac_try) 2>&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); }; }; then
12595 ac_hi=$ac_mid; break
12597 echo "$as_me: failed program was:" >&5
12598 sed 's/^/| /' conftest.$ac_ext >&5
12600 ac_lo=`expr $ac_mid + 1`
12601 if test $ac_lo -le $ac_mid; then
12605 ac_mid=`expr 2 '*' $ac_mid + 1`
12607 rm -f conftest.$ac_objext conftest.$ac_ext
12610 echo "$as_me: failed program was:" >&5
12611 sed 's/^/| /' conftest.$ac_ext >&5
12613 cat >conftest.$ac_ext <<_ACEOF
12614 #line $LINENO "configure"
12617 cat confdefs.h >>conftest.$ac_ext
12618 cat >>conftest.$ac_ext <<_ACEOF
12619 /* end confdefs.h. */
12620 $ac_includes_default
12624 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12631 rm -f conftest.$ac_objext
12632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12633 (eval $ac_compile) 2>&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); } &&
12637 { ac_try='test -s conftest.$ac_objext'
12638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12639 (eval $ac_try) 2>&5
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); }; }; then
12645 cat >conftest.$ac_ext <<_ACEOF
12646 #line $LINENO "configure"
12649 cat confdefs.h >>conftest.$ac_ext
12650 cat >>conftest.$ac_ext <<_ACEOF
12651 /* end confdefs.h. */
12652 $ac_includes_default
12656 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12663 rm -f conftest.$ac_objext
12664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12665 (eval $ac_compile) 2>&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); } &&
12669 { ac_try='test -s conftest.$ac_objext'
12670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12671 (eval $ac_try) 2>&5
12673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12674 (exit $ac_status); }; }; then
12675 ac_lo=$ac_mid; break
12677 echo "$as_me: failed program was:" >&5
12678 sed 's/^/| /' conftest.$ac_ext >&5
12680 ac_hi=`expr '(' $ac_mid ')' - 1`
12681 if test $ac_mid -le $ac_hi; then
12685 ac_mid=`expr 2 '*' $ac_mid`
12687 rm -f conftest.$ac_objext conftest.$ac_ext
12690 echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12695 rm -f conftest.$ac_objext conftest.$ac_ext
12697 rm -f conftest.$ac_objext conftest.$ac_ext
12698 # Binary search between lo and hi bounds.
12699 while test "x$ac_lo" != "x$ac_hi"; do
12700 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12701 cat >conftest.$ac_ext <<_ACEOF
12702 #line $LINENO "configure"
12705 cat confdefs.h >>conftest.$ac_ext
12706 cat >>conftest.$ac_ext <<_ACEOF
12707 /* end confdefs.h. */
12708 $ac_includes_default
12712 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12719 rm -f conftest.$ac_objext
12720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12721 (eval $ac_compile) 2>&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } &&
12725 { ac_try='test -s conftest.$ac_objext'
12726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12727 (eval $ac_try) 2>&5
12729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12730 (exit $ac_status); }; }; then
12733 echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.$ac_ext >&5
12736 ac_lo=`expr '(' $ac_mid ')' + 1`
12738 rm -f conftest.$ac_objext conftest.$ac_ext
12741 ?*) ac_cv_sizeof_int=$ac_lo;;
12742 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12743 See \`config.log' for more details." >&5
12744 echo "$as_me: error: cannot compute sizeof (int), 77
12745 See \`config.log' for more details." >&2;}
12746 { (exit 1); exit 1; }; } ;;
12749 if test "$cross_compiling" = yes; then
12750 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12751 See \`config.log' for more details." >&5
12752 echo "$as_me: error: cannot run test program while cross compiling
12753 See \`config.log' for more details." >&2;}
12754 { (exit 1); exit 1; }; }
12756 cat >conftest.$ac_ext <<_ACEOF
12757 #line $LINENO "configure"
12760 cat confdefs.h >>conftest.$ac_ext
12761 cat >>conftest.$ac_ext <<_ACEOF
12762 /* end confdefs.h. */
12763 $ac_includes_default
12764 long longval () { return (long) (sizeof (int)); }
12765 unsigned long ulongval () { return (long) (sizeof (int)); }
12767 #include <stdlib.h>
12772 FILE *f = fopen ("conftest.val", "w");
12775 if (((long) (sizeof (int))) < 0)
12777 long i = longval ();
12778 if (i != ((long) (sizeof (int))))
12780 fprintf (f, "%ld\n", i);
12784 unsigned long i = ulongval ();
12785 if (i != ((long) (sizeof (int))))
12787 fprintf (f, "%lu\n", i);
12789 exit (ferror (f) || fclose (f) != 0);
12795 rm -f conftest$ac_exeext
12796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12797 (eval $ac_link) 2>&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12802 (eval $ac_try) 2>&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); }; }; then
12806 ac_cv_sizeof_int=`cat conftest.val`
12808 echo "$as_me: program exited with status $ac_status" >&5
12809 echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12812 ( exit $ac_status )
12813 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12814 See \`config.log' for more details." >&5
12815 echo "$as_me: error: cannot compute sizeof (int), 77
12816 See \`config.log' for more details." >&2;}
12817 { (exit 1); exit 1; }; }
12819 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12827 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12828 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12829 cat >>confdefs.h <<_ACEOF
12830 #define SIZEOF_INT $ac_cv_sizeof_int
12834 echo "$as_me:$LINENO: checking for long int" >&5
12835 echo $ECHO_N "checking for long int... $ECHO_C" >&6
12836 if test "${ac_cv_type_long_int+set}" = set; then
12837 echo $ECHO_N "(cached) $ECHO_C" >&6
12839 cat >conftest.$ac_ext <<_ACEOF
12840 #line $LINENO "configure"
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h. */
12846 $ac_includes_default
12850 if ((long int *) 0)
12852 if (sizeof (long int))
12858 rm -f conftest.$ac_objext
12859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12860 (eval $ac_compile) 2>&5
12862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863 (exit $ac_status); } &&
12864 { ac_try='test -s conftest.$ac_objext'
12865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12866 (eval $ac_try) 2>&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869 (exit $ac_status); }; }; then
12870 ac_cv_type_long_int=yes
12872 echo "$as_me: failed program was:" >&5
12873 sed 's/^/| /' conftest.$ac_ext >&5
12875 ac_cv_type_long_int=no
12877 rm -f conftest.$ac_objext conftest.$ac_ext
12879 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
12880 echo "${ECHO_T}$ac_cv_type_long_int" >&6
12882 echo "$as_me:$LINENO: checking size of long int" >&5
12883 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
12884 if test "${ac_cv_sizeof_long_int+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12887 if test "$ac_cv_type_long_int" = yes; then
12888 # The cast to unsigned long works around a bug in the HP C Compiler
12889 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12890 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12891 # This bug is HP SR number 8606223364.
12892 if test "$cross_compiling" = yes; then
12893 # Depending upon the size, compute the lo and hi bounds.
12894 cat >conftest.$ac_ext <<_ACEOF
12895 #line $LINENO "configure"
12898 cat confdefs.h >>conftest.$ac_ext
12899 cat >>conftest.$ac_ext <<_ACEOF
12900 /* end confdefs.h. */
12901 $ac_includes_default
12905 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
12912 rm -f conftest.$ac_objext
12913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12914 (eval $ac_compile) 2>&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); } &&
12918 { ac_try='test -s conftest.$ac_objext'
12919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12920 (eval $ac_try) 2>&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); }; }; then
12926 cat >conftest.$ac_ext <<_ACEOF
12927 #line $LINENO "configure"
12930 cat confdefs.h >>conftest.$ac_ext
12931 cat >>conftest.$ac_ext <<_ACEOF
12932 /* end confdefs.h. */
12933 $ac_includes_default
12937 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
12944 rm -f conftest.$ac_objext
12945 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12946 (eval $ac_compile) 2>&5
12948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949 (exit $ac_status); } &&
12950 { ac_try='test -s conftest.$ac_objext'
12951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12952 (eval $ac_try) 2>&5
12954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12955 (exit $ac_status); }; }; then
12956 ac_hi=$ac_mid; break
12958 echo "$as_me: failed program was:" >&5
12959 sed 's/^/| /' conftest.$ac_ext >&5
12961 ac_lo=`expr $ac_mid + 1`
12962 if test $ac_lo -le $ac_mid; then
12966 ac_mid=`expr 2 '*' $ac_mid + 1`
12968 rm -f conftest.$ac_objext conftest.$ac_ext
12971 echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12974 cat >conftest.$ac_ext <<_ACEOF
12975 #line $LINENO "configure"
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h. */
12981 $ac_includes_default
12985 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
12992 rm -f conftest.$ac_objext
12993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12994 (eval $ac_compile) 2>&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } &&
12998 { ac_try='test -s conftest.$ac_objext'
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000 (eval $ac_try) 2>&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }; then
13006 cat >conftest.$ac_ext <<_ACEOF
13007 #line $LINENO "configure"
13010 cat confdefs.h >>conftest.$ac_ext
13011 cat >>conftest.$ac_ext <<_ACEOF
13012 /* end confdefs.h. */
13013 $ac_includes_default
13017 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13024 rm -f conftest.$ac_objext
13025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13026 (eval $ac_compile) 2>&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } &&
13030 { ac_try='test -s conftest.$ac_objext'
13031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13032 (eval $ac_try) 2>&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; }; then
13036 ac_lo=$ac_mid; break
13038 echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.$ac_ext >&5
13041 ac_hi=`expr '(' $ac_mid ')' - 1`
13042 if test $ac_mid -le $ac_hi; then
13046 ac_mid=`expr 2 '*' $ac_mid`
13048 rm -f conftest.$ac_objext conftest.$ac_ext
13051 echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13056 rm -f conftest.$ac_objext conftest.$ac_ext
13058 rm -f conftest.$ac_objext conftest.$ac_ext
13059 # Binary search between lo and hi bounds.
13060 while test "x$ac_lo" != "x$ac_hi"; do
13061 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13062 cat >conftest.$ac_ext <<_ACEOF
13063 #line $LINENO "configure"
13066 cat confdefs.h >>conftest.$ac_ext
13067 cat >>conftest.$ac_ext <<_ACEOF
13068 /* end confdefs.h. */
13069 $ac_includes_default
13073 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13080 rm -f conftest.$ac_objext
13081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13082 (eval $ac_compile) 2>&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } &&
13086 { ac_try='test -s conftest.$ac_objext'
13087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13088 (eval $ac_try) 2>&5
13090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13091 (exit $ac_status); }; }; then
13094 echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.$ac_ext >&5
13097 ac_lo=`expr '(' $ac_mid ')' + 1`
13099 rm -f conftest.$ac_objext conftest.$ac_ext
13102 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13103 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13104 See \`config.log' for more details." >&5
13105 echo "$as_me: error: cannot compute sizeof (long int), 77
13106 See \`config.log' for more details." >&2;}
13107 { (exit 1); exit 1; }; } ;;
13110 if test "$cross_compiling" = yes; then
13111 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13112 See \`config.log' for more details." >&5
13113 echo "$as_me: error: cannot run test program while cross compiling
13114 See \`config.log' for more details." >&2;}
13115 { (exit 1); exit 1; }; }
13117 cat >conftest.$ac_ext <<_ACEOF
13118 #line $LINENO "configure"
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13124 $ac_includes_default
13125 long longval () { return (long) (sizeof (long int)); }
13126 unsigned long ulongval () { return (long) (sizeof (long int)); }
13128 #include <stdlib.h>
13133 FILE *f = fopen ("conftest.val", "w");
13136 if (((long) (sizeof (long int))) < 0)
13138 long i = longval ();
13139 if (i != ((long) (sizeof (long int))))
13141 fprintf (f, "%ld\n", i);
13145 unsigned long i = ulongval ();
13146 if (i != ((long) (sizeof (long int))))
13148 fprintf (f, "%lu\n", i);
13150 exit (ferror (f) || fclose (f) != 0);
13156 rm -f conftest$ac_exeext
13157 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13158 (eval $ac_link) 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163 (eval $ac_try) 2>&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; }; then
13167 ac_cv_sizeof_long_int=`cat conftest.val`
13169 echo "$as_me: program exited with status $ac_status" >&5
13170 echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13173 ( exit $ac_status )
13174 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13175 See \`config.log' for more details." >&5
13176 echo "$as_me: error: cannot compute sizeof (long int), 77
13177 See \`config.log' for more details." >&2;}
13178 { (exit 1); exit 1; }; }
13180 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13185 ac_cv_sizeof_long_int=0
13188 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13189 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13190 cat >>confdefs.h <<_ACEOF
13191 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13195 echo "$as_me:$LINENO: checking for long long int" >&5
13196 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13197 if test "${ac_cv_type_long_long_int+set}" = set; then
13198 echo $ECHO_N "(cached) $ECHO_C" >&6
13200 cat >conftest.$ac_ext <<_ACEOF
13201 #line $LINENO "configure"
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h. */
13207 $ac_includes_default
13211 if ((long long int *) 0)
13213 if (sizeof (long long int))
13219 rm -f conftest.$ac_objext
13220 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13221 (eval $ac_compile) 2>&5
13223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13224 (exit $ac_status); } &&
13225 { ac_try='test -s conftest.$ac_objext'
13226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13227 (eval $ac_try) 2>&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); }; }; then
13231 ac_cv_type_long_long_int=yes
13233 echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13236 ac_cv_type_long_long_int=no
13238 rm -f conftest.$ac_objext conftest.$ac_ext
13240 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13241 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13243 echo "$as_me:$LINENO: checking size of long long int" >&5
13244 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13245 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13246 echo $ECHO_N "(cached) $ECHO_C" >&6
13248 if test "$ac_cv_type_long_long_int" = yes; then
13249 # The cast to unsigned long works around a bug in the HP C Compiler
13250 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13251 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13252 # This bug is HP SR number 8606223364.
13253 if test "$cross_compiling" = yes; then
13254 # Depending upon the size, compute the lo and hi bounds.
13255 cat >conftest.$ac_ext <<_ACEOF
13256 #line $LINENO "configure"
13259 cat confdefs.h >>conftest.$ac_ext
13260 cat >>conftest.$ac_ext <<_ACEOF
13261 /* end confdefs.h. */
13262 $ac_includes_default
13266 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13273 rm -f conftest.$ac_objext
13274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13275 (eval $ac_compile) 2>&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); } &&
13279 { ac_try='test -s conftest.$ac_objext'
13280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281 (eval $ac_try) 2>&5
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; }; then
13287 cat >conftest.$ac_ext <<_ACEOF
13288 #line $LINENO "configure"
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h. */
13294 $ac_includes_default
13298 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13305 rm -f conftest.$ac_objext
13306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13307 (eval $ac_compile) 2>&5
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); } &&
13311 { ac_try='test -s conftest.$ac_objext'
13312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13313 (eval $ac_try) 2>&5
13315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316 (exit $ac_status); }; }; then
13317 ac_hi=$ac_mid; break
13319 echo "$as_me: failed program was:" >&5
13320 sed 's/^/| /' conftest.$ac_ext >&5
13322 ac_lo=`expr $ac_mid + 1`
13323 if test $ac_lo -le $ac_mid; then
13327 ac_mid=`expr 2 '*' $ac_mid + 1`
13329 rm -f conftest.$ac_objext conftest.$ac_ext
13332 echo "$as_me: failed program was:" >&5
13333 sed 's/^/| /' conftest.$ac_ext >&5
13335 cat >conftest.$ac_ext <<_ACEOF
13336 #line $LINENO "configure"
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13342 $ac_includes_default
13346 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13353 rm -f conftest.$ac_objext
13354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13355 (eval $ac_compile) 2>&5
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); } &&
13359 { ac_try='test -s conftest.$ac_objext'
13360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13361 (eval $ac_try) 2>&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); }; }; then
13367 cat >conftest.$ac_ext <<_ACEOF
13368 #line $LINENO "configure"
13371 cat confdefs.h >>conftest.$ac_ext
13372 cat >>conftest.$ac_ext <<_ACEOF
13373 /* end confdefs.h. */
13374 $ac_includes_default
13378 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13385 rm -f conftest.$ac_objext
13386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13387 (eval $ac_compile) 2>&5
13389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13390 (exit $ac_status); } &&
13391 { ac_try='test -s conftest.$ac_objext'
13392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13393 (eval $ac_try) 2>&5
13395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13396 (exit $ac_status); }; }; then
13397 ac_lo=$ac_mid; break
13399 echo "$as_me: failed program was:" >&5
13400 sed 's/^/| /' conftest.$ac_ext >&5
13402 ac_hi=`expr '(' $ac_mid ')' - 1`
13403 if test $ac_mid -le $ac_hi; then
13407 ac_mid=`expr 2 '*' $ac_mid`
13409 rm -f conftest.$ac_objext conftest.$ac_ext
13412 echo "$as_me: failed program was:" >&5
13413 sed 's/^/| /' conftest.$ac_ext >&5
13417 rm -f conftest.$ac_objext conftest.$ac_ext
13419 rm -f conftest.$ac_objext conftest.$ac_ext
13420 # Binary search between lo and hi bounds.
13421 while test "x$ac_lo" != "x$ac_hi"; do
13422 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13423 cat >conftest.$ac_ext <<_ACEOF
13424 #line $LINENO "configure"
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13430 $ac_includes_default
13434 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13441 rm -f conftest.$ac_objext
13442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13443 (eval $ac_compile) 2>&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } &&
13447 { ac_try='test -s conftest.$ac_objext'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; }; then
13455 echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.$ac_ext >&5
13458 ac_lo=`expr '(' $ac_mid ')' + 1`
13460 rm -f conftest.$ac_objext conftest.$ac_ext
13463 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13464 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13465 See \`config.log' for more details." >&5
13466 echo "$as_me: error: cannot compute sizeof (long long int), 77
13467 See \`config.log' for more details." >&2;}
13468 { (exit 1); exit 1; }; } ;;
13471 if test "$cross_compiling" = yes; then
13472 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13473 See \`config.log' for more details." >&5
13474 echo "$as_me: error: cannot run test program while cross compiling
13475 See \`config.log' for more details." >&2;}
13476 { (exit 1); exit 1; }; }
13478 cat >conftest.$ac_ext <<_ACEOF
13479 #line $LINENO "configure"
13482 cat confdefs.h >>conftest.$ac_ext
13483 cat >>conftest.$ac_ext <<_ACEOF
13484 /* end confdefs.h. */
13485 $ac_includes_default
13486 long longval () { return (long) (sizeof (long long int)); }
13487 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13489 #include <stdlib.h>
13494 FILE *f = fopen ("conftest.val", "w");
13497 if (((long) (sizeof (long long int))) < 0)
13499 long i = longval ();
13500 if (i != ((long) (sizeof (long long int))))
13502 fprintf (f, "%ld\n", i);
13506 unsigned long i = ulongval ();
13507 if (i != ((long) (sizeof (long long int))))
13509 fprintf (f, "%lu\n", i);
13511 exit (ferror (f) || fclose (f) != 0);
13517 rm -f conftest$ac_exeext
13518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13519 (eval $ac_link) 2>&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13524 (eval $ac_try) 2>&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; }; then
13528 ac_cv_sizeof_long_long_int=`cat conftest.val`
13530 echo "$as_me: program exited with status $ac_status" >&5
13531 echo "$as_me: failed program was:" >&5
13532 sed 's/^/| /' conftest.$ac_ext >&5
13534 ( exit $ac_status )
13535 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13536 See \`config.log' for more details." >&5
13537 echo "$as_me: error: cannot compute sizeof (long long int), 77
13538 See \`config.log' for more details." >&2;}
13539 { (exit 1); exit 1; }; }
13541 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13546 ac_cv_sizeof_long_long_int=0
13549 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13550 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13551 cat >>confdefs.h <<_ACEOF
13552 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13556 echo "$as_me:$LINENO: checking for int *" >&5
13557 echo $ECHO_N "checking for int *... $ECHO_C" >&6
13558 if test "${ac_cv_type_int_p+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 cat >conftest.$ac_ext <<_ACEOF
13562 #line $LINENO "configure"
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h. */
13568 $ac_includes_default
13574 if (sizeof (int *))
13580 rm -f conftest.$ac_objext
13581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13582 (eval $ac_compile) 2>&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } &&
13586 { ac_try='test -s conftest.$ac_objext'
13587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13588 (eval $ac_try) 2>&5
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13591 (exit $ac_status); }; }; then
13592 ac_cv_type_int_p=yes
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13597 ac_cv_type_int_p=no
13599 rm -f conftest.$ac_objext conftest.$ac_ext
13601 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13602 echo "${ECHO_T}$ac_cv_type_int_p" >&6
13604 echo "$as_me:$LINENO: checking size of int *" >&5
13605 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13606 if test "${ac_cv_sizeof_int_p+set}" = set; then
13607 echo $ECHO_N "(cached) $ECHO_C" >&6
13609 if test "$ac_cv_type_int_p" = yes; then
13610 # The cast to unsigned long works around a bug in the HP C Compiler
13611 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13612 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13613 # This bug is HP SR number 8606223364.
13614 if test "$cross_compiling" = yes; then
13615 # Depending upon the size, compute the lo and hi bounds.
13616 cat >conftest.$ac_ext <<_ACEOF
13617 #line $LINENO "configure"
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h. */
13623 $ac_includes_default
13627 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13634 rm -f conftest.$ac_objext
13635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13636 (eval $ac_compile) 2>&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } &&
13640 { ac_try='test -s conftest.$ac_objext'
13641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13642 (eval $ac_try) 2>&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); }; }; then
13648 cat >conftest.$ac_ext <<_ACEOF
13649 #line $LINENO "configure"
13652 cat confdefs.h >>conftest.$ac_ext
13653 cat >>conftest.$ac_ext <<_ACEOF
13654 /* end confdefs.h. */
13655 $ac_includes_default
13659 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13666 rm -f conftest.$ac_objext
13667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13668 (eval $ac_compile) 2>&5
13670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13671 (exit $ac_status); } &&
13672 { ac_try='test -s conftest.$ac_objext'
13673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674 (eval $ac_try) 2>&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; }; then
13678 ac_hi=$ac_mid; break
13680 echo "$as_me: failed program was:" >&5
13681 sed 's/^/| /' conftest.$ac_ext >&5
13683 ac_lo=`expr $ac_mid + 1`
13684 if test $ac_lo -le $ac_mid; then
13688 ac_mid=`expr 2 '*' $ac_mid + 1`
13690 rm -f conftest.$ac_objext conftest.$ac_ext
13693 echo "$as_me: failed program was:" >&5
13694 sed 's/^/| /' conftest.$ac_ext >&5
13696 cat >conftest.$ac_ext <<_ACEOF
13697 #line $LINENO "configure"
13700 cat confdefs.h >>conftest.$ac_ext
13701 cat >>conftest.$ac_ext <<_ACEOF
13702 /* end confdefs.h. */
13703 $ac_includes_default
13707 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13714 rm -f conftest.$ac_objext
13715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13716 (eval $ac_compile) 2>&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } &&
13720 { ac_try='test -s conftest.$ac_objext'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13728 cat >conftest.$ac_ext <<_ACEOF
13729 #line $LINENO "configure"
13732 cat confdefs.h >>conftest.$ac_ext
13733 cat >>conftest.$ac_ext <<_ACEOF
13734 /* end confdefs.h. */
13735 $ac_includes_default
13739 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13746 rm -f conftest.$ac_objext
13747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13748 (eval $ac_compile) 2>&5
13750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13751 (exit $ac_status); } &&
13752 { ac_try='test -s conftest.$ac_objext'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; }; then
13758 ac_lo=$ac_mid; break
13760 echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.$ac_ext >&5
13763 ac_hi=`expr '(' $ac_mid ')' - 1`
13764 if test $ac_mid -le $ac_hi; then
13768 ac_mid=`expr 2 '*' $ac_mid`
13770 rm -f conftest.$ac_objext conftest.$ac_ext
13773 echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13778 rm -f conftest.$ac_objext conftest.$ac_ext
13780 rm -f conftest.$ac_objext conftest.$ac_ext
13781 # Binary search between lo and hi bounds.
13782 while test "x$ac_lo" != "x$ac_hi"; do
13783 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13784 cat >conftest.$ac_ext <<_ACEOF
13785 #line $LINENO "configure"
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h. */
13791 $ac_includes_default
13795 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13802 rm -f conftest.$ac_objext
13803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13804 (eval $ac_compile) 2>&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 (exit $ac_status); } &&
13808 { ac_try='test -s conftest.$ac_objext'
13809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810 (eval $ac_try) 2>&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); }; }; then
13816 echo "$as_me: failed program was:" >&5
13817 sed 's/^/| /' conftest.$ac_ext >&5
13819 ac_lo=`expr '(' $ac_mid ')' + 1`
13821 rm -f conftest.$ac_objext conftest.$ac_ext
13824 ?*) ac_cv_sizeof_int_p=$ac_lo;;
13825 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13826 See \`config.log' for more details." >&5
13827 echo "$as_me: error: cannot compute sizeof (int *), 77
13828 See \`config.log' for more details." >&2;}
13829 { (exit 1); exit 1; }; } ;;
13832 if test "$cross_compiling" = yes; then
13833 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13834 See \`config.log' for more details." >&5
13835 echo "$as_me: error: cannot run test program while cross compiling
13836 See \`config.log' for more details." >&2;}
13837 { (exit 1); exit 1; }; }
13839 cat >conftest.$ac_ext <<_ACEOF
13840 #line $LINENO "configure"
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13846 $ac_includes_default
13847 long longval () { return (long) (sizeof (int *)); }
13848 unsigned long ulongval () { return (long) (sizeof (int *)); }
13850 #include <stdlib.h>
13855 FILE *f = fopen ("conftest.val", "w");
13858 if (((long) (sizeof (int *))) < 0)
13860 long i = longval ();
13861 if (i != ((long) (sizeof (int *))))
13863 fprintf (f, "%ld\n", i);
13867 unsigned long i = ulongval ();
13868 if (i != ((long) (sizeof (int *))))
13870 fprintf (f, "%lu\n", i);
13872 exit (ferror (f) || fclose (f) != 0);
13878 rm -f conftest$ac_exeext
13879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13880 (eval $ac_link) 2>&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13885 (eval $ac_try) 2>&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); }; }; then
13889 ac_cv_sizeof_int_p=`cat conftest.val`
13891 echo "$as_me: program exited with status $ac_status" >&5
13892 echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13895 ( exit $ac_status )
13896 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13897 See \`config.log' for more details." >&5
13898 echo "$as_me: error: cannot compute sizeof (int *), 77
13899 See \`config.log' for more details." >&2;}
13900 { (exit 1); exit 1; }; }
13902 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13907 ac_cv_sizeof_int_p=0
13910 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
13911 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
13912 cat >>confdefs.h <<_ACEOF
13913 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
13918 # Check for sys/types.h types
13919 echo "$as_me:$LINENO: checking for u_int type" >&5
13920 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
13921 if test "${ac_cv_have_u_int+set}" = set; then
13922 echo $ECHO_N "(cached) $ECHO_C" >&6
13925 cat >conftest.$ac_ext <<_ACEOF
13926 #line $LINENO "configure"
13929 cat confdefs.h >>conftest.$ac_ext
13930 cat >>conftest.$ac_ext <<_ACEOF
13931 /* end confdefs.h. */
13932 #include <sys/types.h>
13941 rm -f conftest.$ac_objext
13942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13943 (eval $ac_compile) 2>&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } &&
13947 { ac_try='test -s conftest.$ac_objext'
13948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949 (eval $ac_try) 2>&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; }; then
13953 ac_cv_have_u_int="yes"
13955 echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13958 ac_cv_have_u_int="no"
13961 rm -f conftest.$ac_objext conftest.$ac_ext
13964 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
13965 echo "${ECHO_T}$ac_cv_have_u_int" >&6
13966 if test "x$ac_cv_have_u_int" = "xyes" ; then
13967 cat >>confdefs.h <<\_ACEOF
13968 #define HAVE_U_INT 1
13974 echo "$as_me:$LINENO: checking for intmax_t type" >&5
13975 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
13976 if test "${ac_cv_have_intmax_t+set}" = set; then
13977 echo $ECHO_N "(cached) $ECHO_C" >&6
13980 cat >conftest.$ac_ext <<_ACEOF
13981 #line $LINENO "configure"
13984 cat confdefs.h >>conftest.$ac_ext
13985 cat >>conftest.$ac_ext <<_ACEOF
13986 /* end confdefs.h. */
13987 #include <sys/types.h>
13996 rm -f conftest.$ac_objext
13997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13998 (eval $ac_compile) 2>&5
14000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14001 (exit $ac_status); } &&
14002 { ac_try='test -s conftest.$ac_objext'
14003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14004 (eval $ac_try) 2>&5
14006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007 (exit $ac_status); }; }; then
14008 ac_cv_have_intmax_t="yes"
14010 echo "$as_me: failed program was:" >&5
14011 sed 's/^/| /' conftest.$ac_ext >&5
14014 cat >conftest.$ac_ext <<_ACEOF
14015 #line $LINENO "configure"
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h. */
14021 #include <stdint.h>
14030 rm -f conftest.$ac_objext
14031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14032 (eval $ac_compile) 2>&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } &&
14036 { ac_try='test -s conftest.$ac_objext'
14037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14038 (eval $ac_try) 2>&5
14040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041 (exit $ac_status); }; }; then
14042 ac_cv_have_intmax_t="yes"
14044 echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14047 ac_cv_have_intmax_t="no"
14050 rm -f conftest.$ac_objext conftest.$ac_ext
14054 rm -f conftest.$ac_objext conftest.$ac_ext
14058 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14059 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14060 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14061 cat >>confdefs.h <<\_ACEOF
14062 #define HAVE_INTMAX_T 1
14069 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14070 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14071 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
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 #include <sys/types.h>
14086 u_intmax_t a; a = 1;
14091 rm -f conftest.$ac_objext
14092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14093 (eval $ac_compile) 2>&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } &&
14097 { ac_try='test -s conftest.$ac_objext'
14098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14099 (eval $ac_try) 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }; then
14103 ac_cv_have_u_intmax_t="yes"
14105 echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.$ac_ext >&5
14109 cat >conftest.$ac_ext <<_ACEOF
14110 #line $LINENO "configure"
14113 cat confdefs.h >>conftest.$ac_ext
14114 cat >>conftest.$ac_ext <<_ACEOF
14115 /* end confdefs.h. */
14116 #include <stdint.h>
14120 u_intmax_t a; a = 1;
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_cv_have_u_intmax_t="yes"
14139 echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.$ac_ext >&5
14142 ac_cv_have_u_intmax_t="no"
14145 rm -f conftest.$ac_objext conftest.$ac_ext
14149 rm -f conftest.$ac_objext conftest.$ac_ext
14152 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14153 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14154 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14155 cat >>confdefs.h <<\_ACEOF
14156 #define HAVE_U_INTMAX_T 1
14163 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14164 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14165 if test "${ac_cv_have_intxx_t+set}" = set; then
14166 echo $ECHO_N "(cached) $ECHO_C" >&6
14169 cat >conftest.$ac_ext <<_ACEOF
14170 #line $LINENO "configure"
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h. */
14176 #include <sys/types.h>
14180 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14185 rm -f conftest.$ac_objext
14186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14187 (eval $ac_compile) 2>&5
14189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14190 (exit $ac_status); } &&
14191 { ac_try='test -s conftest.$ac_objext'
14192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14193 (eval $ac_try) 2>&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; }; then
14197 ac_cv_have_intxx_t="yes"
14199 echo "$as_me: failed program was:" >&5
14200 sed 's/^/| /' conftest.$ac_ext >&5
14202 ac_cv_have_intxx_t="no"
14205 rm -f conftest.$ac_objext conftest.$ac_ext
14208 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14209 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14210 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14211 cat >>confdefs.h <<\_ACEOF
14212 #define HAVE_INTXX_T 1
14218 echo "$as_me:$LINENO: checking for int64_t type" >&5
14219 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14220 if test "${ac_cv_have_int64_t+set}" = set; then
14221 echo $ECHO_N "(cached) $ECHO_C" >&6
14224 cat >conftest.$ac_ext <<_ACEOF
14225 #line $LINENO "configure"
14228 cat confdefs.h >>conftest.$ac_ext
14229 cat >>conftest.$ac_ext <<_ACEOF
14230 /* end confdefs.h. */
14231 #include <sys/types.h>
14240 rm -f conftest.$ac_objext
14241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14242 (eval $ac_compile) 2>&5
14244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245 (exit $ac_status); } &&
14246 { ac_try='test -s conftest.$ac_objext'
14247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14248 (eval $ac_try) 2>&5
14250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); }; }; then
14252 ac_cv_have_int64_t="yes"
14254 echo "$as_me: failed program was:" >&5
14255 sed 's/^/| /' conftest.$ac_ext >&5
14257 ac_cv_have_int64_t="no"
14260 rm -f conftest.$ac_objext conftest.$ac_ext
14263 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14264 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14265 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14266 cat >>confdefs.h <<\_ACEOF
14267 #define HAVE_INT64_T 1
14273 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14274 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14275 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
14279 cat >conftest.$ac_ext <<_ACEOF
14280 #line $LINENO "configure"
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h. */
14286 #include <sys/types.h>
14290 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14295 rm -f conftest.$ac_objext
14296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14297 (eval $ac_compile) 2>&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); } &&
14301 { ac_try='test -s conftest.$ac_objext'
14302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14303 (eval $ac_try) 2>&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; }; then
14307 ac_cv_have_u_intxx_t="yes"
14309 echo "$as_me: failed program was:" >&5
14310 sed 's/^/| /' conftest.$ac_ext >&5
14312 ac_cv_have_u_intxx_t="no"
14315 rm -f conftest.$ac_objext conftest.$ac_ext
14318 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14319 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14320 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14321 cat >>confdefs.h <<\_ACEOF
14322 #define HAVE_U_INTXX_T 1
14328 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14329 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14330 if test "${ac_cv_have_u_int64_t+set}" = set; then
14331 echo $ECHO_N "(cached) $ECHO_C" >&6
14334 cat >conftest.$ac_ext <<_ACEOF
14335 #line $LINENO "configure"
14338 cat confdefs.h >>conftest.$ac_ext
14339 cat >>conftest.$ac_ext <<_ACEOF
14340 /* end confdefs.h. */
14341 #include <sys/types.h>
14345 u_int64_t a; a = 1;
14350 rm -f conftest.$ac_objext
14351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14352 (eval $ac_compile) 2>&5
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); } &&
14356 { ac_try='test -s conftest.$ac_objext'
14357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358 (eval $ac_try) 2>&5
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; }; then
14362 ac_cv_have_u_int64_t="yes"
14364 echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.$ac_ext >&5
14367 ac_cv_have_u_int64_t="no"
14370 rm -f conftest.$ac_objext conftest.$ac_ext
14373 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14374 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14375 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14376 cat >>confdefs.h <<\_ACEOF
14377 #define HAVE_U_INT64_T 1
14383 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14384 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14386 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14387 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
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 #include <sys/bitypes.h>
14399 int8_t a; int16_t b; int32_t c;
14400 u_int8_t e; u_int16_t f; u_int32_t g;
14401 a = b = c = e = f = g = 1;
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 cat >>confdefs.h <<\_ACEOF
14419 #define HAVE_U_INTXX_T 1
14422 cat >>confdefs.h <<\_ACEOF
14423 #define HAVE_INTXX_T 1
14426 cat >>confdefs.h <<\_ACEOF
14427 #define HAVE_SYS_BITYPES_H 1
14430 echo "$as_me:$LINENO: result: yes" >&5
14431 echo "${ECHO_T}yes" >&6
14433 echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14436 echo "$as_me:$LINENO: result: no" >&5
14437 echo "${ECHO_T}no" >&6
14440 rm -f conftest.$ac_objext conftest.$ac_ext
14443 if test -z "$have_u_intxx_t" ; then
14444 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14445 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14446 if test "${ac_cv_have_uintxx_t+set}" = set; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14450 cat >conftest.$ac_ext <<_ACEOF
14451 #line $LINENO "configure"
14454 cat confdefs.h >>conftest.$ac_ext
14455 cat >>conftest.$ac_ext <<_ACEOF
14456 /* end confdefs.h. */
14457 #include <sys/types.h>
14461 uint8_t a; uint16_t b;
14462 uint32_t c; a = b = c = 1;
14467 rm -f conftest.$ac_objext
14468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14469 (eval $ac_compile) 2>&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); } &&
14473 { ac_try='test -s conftest.$ac_objext'
14474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14475 (eval $ac_try) 2>&5
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); }; }; then
14479 ac_cv_have_uintxx_t="yes"
14481 echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.$ac_ext >&5
14484 ac_cv_have_uintxx_t="no"
14487 rm -f conftest.$ac_objext conftest.$ac_ext
14490 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14491 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14492 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14493 cat >>confdefs.h <<\_ACEOF
14494 #define HAVE_UINTXX_T 1
14530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14531 echo "$as_me:$LINENO: checking for $ac_func" >&5
14532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14533 if eval "test \"\${$as_ac_var+set}\" = set"; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14536 cat >conftest.$ac_ext <<_ACEOF
14537 #line $LINENO "configure"
14540 cat confdefs.h >>conftest.$ac_ext
14541 cat >>conftest.$ac_ext <<_ACEOF
14542 /* end confdefs.h. */
14543 /* System header to define __stub macros and hopefully few prototypes,
14544 which can conflict with char $ac_func (); below.
14545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14546 <limits.h> exists even on freestanding compilers. */
14548 # include <limits.h>
14550 # include <assert.h>
14552 /* Override any gcc2 internal prototype to avoid an error. */
14557 /* We use char because int might match the return type of a gcc2
14558 builtin and then its argument prototype would still apply. */
14560 /* The GNU C library defines this for functions which it implements
14561 to always fail with ENOSYS. Some functions are actually named
14562 something starting with __ and the normal name is an alias. */
14563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14566 char (*f) () = $ac_func;
14575 return f != $ac_func;
14580 rm -f conftest.$ac_objext conftest$ac_exeext
14581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14582 (eval $ac_link) 2>&5
14584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14585 (exit $ac_status); } &&
14586 { ac_try='test -s conftest$ac_exeext'
14587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14588 (eval $ac_try) 2>&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); }; }; then
14592 eval "$as_ac_var=yes"
14594 echo "$as_me: failed program was:" >&5
14595 sed 's/^/| /' conftest.$ac_ext >&5
14597 eval "$as_ac_var=no"
14599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14603 if test `eval echo '${'$as_ac_var'}'` = yes; then
14604 cat >>confdefs.h <<_ACEOF
14605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14609 echo 'configure: cannot find needed function.'; exit 1
14616 for ac_func in fchdir
14618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14619 echo "$as_me:$LINENO: checking for $ac_func" >&5
14620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14621 if eval "test \"\${$as_ac_var+set}\" = set"; then
14622 echo $ECHO_N "(cached) $ECHO_C" >&6
14624 cat >conftest.$ac_ext <<_ACEOF
14625 #line $LINENO "configure"
14628 cat confdefs.h >>conftest.$ac_ext
14629 cat >>conftest.$ac_ext <<_ACEOF
14630 /* end confdefs.h. */
14631 /* System header to define __stub macros and hopefully few prototypes,
14632 which can conflict with char $ac_func (); below.
14633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14634 <limits.h> exists even on freestanding compilers. */
14636 # include <limits.h>
14638 # include <assert.h>
14640 /* Override any gcc2 internal prototype to avoid an error. */
14645 /* We use char because int might match the return type of a gcc2
14646 builtin and then its argument prototype would still apply. */
14648 /* The GNU C library defines this for functions which it implements
14649 to always fail with ENOSYS. Some functions are actually named
14650 something starting with __ and the normal name is an alias. */
14651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14654 char (*f) () = $ac_func;
14663 return f != $ac_func;
14668 rm -f conftest.$ac_objext conftest$ac_exeext
14669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14670 (eval $ac_link) 2>&5
14672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14673 (exit $ac_status); } &&
14674 { ac_try='test -s conftest$ac_exeext'
14675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14676 (eval $ac_try) 2>&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); }; }; then
14680 eval "$as_ac_var=yes"
14682 echo "$as_me: failed program was:" >&5
14683 sed 's/^/| /' conftest.$ac_ext >&5
14685 eval "$as_ac_var=no"
14687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14691 if test `eval echo '${'$as_ac_var'}'` = yes; then
14692 cat >>confdefs.h <<_ACEOF
14693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14695 cat >>confdefs.h <<\_ACEOF
14696 #define HAVE_FCHDIR 1
14703 for ac_func in strtoll
14705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14706 echo "$as_me:$LINENO: checking for $ac_func" >&5
14707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14708 if eval "test \"\${$as_ac_var+set}\" = set"; then
14709 echo $ECHO_N "(cached) $ECHO_C" >&6
14711 cat >conftest.$ac_ext <<_ACEOF
14712 #line $LINENO "configure"
14715 cat confdefs.h >>conftest.$ac_ext
14716 cat >>conftest.$ac_ext <<_ACEOF
14717 /* end confdefs.h. */
14718 /* System header to define __stub macros and hopefully few prototypes,
14719 which can conflict with char $ac_func (); below.
14720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14721 <limits.h> exists even on freestanding compilers. */
14723 # include <limits.h>
14725 # include <assert.h>
14727 /* Override any gcc2 internal prototype to avoid an error. */
14732 /* We use char because int might match the return type of a gcc2
14733 builtin and then its argument prototype would still apply. */
14735 /* The GNU C library defines this for functions which it implements
14736 to always fail with ENOSYS. Some functions are actually named
14737 something starting with __ and the normal name is an alias. */
14738 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14741 char (*f) () = $ac_func;
14750 return f != $ac_func;
14755 rm -f conftest.$ac_objext conftest$ac_exeext
14756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14757 (eval $ac_link) 2>&5
14759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14760 (exit $ac_status); } &&
14761 { ac_try='test -s conftest$ac_exeext'
14762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14763 (eval $ac_try) 2>&5
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); }; }; then
14767 eval "$as_ac_var=yes"
14769 echo "$as_me: failed program was:" >&5
14770 sed 's/^/| /' conftest.$ac_ext >&5
14772 eval "$as_ac_var=no"
14774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14777 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14778 if test `eval echo '${'$as_ac_var'}'` = yes; then
14779 cat >>confdefs.h <<_ACEOF
14780 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14782 cat >>confdefs.h <<\_ACEOF
14783 #define HAVE_STRTOLL 1
14791 for ac_func in chflags
14793 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14794 echo "$as_me:$LINENO: checking for $ac_func" >&5
14795 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14796 if eval "test \"\${$as_ac_var+set}\" = set"; then
14797 echo $ECHO_N "(cached) $ECHO_C" >&6
14799 cat >conftest.$ac_ext <<_ACEOF
14800 #line $LINENO "configure"
14803 cat confdefs.h >>conftest.$ac_ext
14804 cat >>conftest.$ac_ext <<_ACEOF
14805 /* end confdefs.h. */
14806 /* System header to define __stub macros and hopefully few prototypes,
14807 which can conflict with char $ac_func (); below.
14808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14809 <limits.h> exists even on freestanding compilers. */
14811 # include <limits.h>
14813 # include <assert.h>
14815 /* Override any gcc2 internal prototype to avoid an error. */
14820 /* We use char because int might match the return type of a gcc2
14821 builtin and then its argument prototype would still apply. */
14823 /* The GNU C library defines this for functions which it implements
14824 to always fail with ENOSYS. Some functions are actually named
14825 something starting with __ and the normal name is an alias. */
14826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14829 char (*f) () = $ac_func;
14838 return f != $ac_func;
14843 rm -f conftest.$ac_objext conftest$ac_exeext
14844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14845 (eval $ac_link) 2>&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); } &&
14849 { ac_try='test -s conftest$ac_exeext'
14850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14851 (eval $ac_try) 2>&5
14853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14854 (exit $ac_status); }; }; then
14855 eval "$as_ac_var=yes"
14857 echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.$ac_ext >&5
14860 eval "$as_ac_var=no"
14862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14866 if test `eval echo '${'$as_ac_var'}'` = yes; then
14867 cat >>confdefs.h <<_ACEOF
14868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14879 for ac_func in snprintf vsnprintf gethostid getdomainname
14881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14882 echo "$as_me:$LINENO: checking for $ac_func" >&5
14883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14884 if eval "test \"\${$as_ac_var+set}\" = set"; then
14885 echo $ECHO_N "(cached) $ECHO_C" >&6
14887 cat >conftest.$ac_ext <<_ACEOF
14888 #line $LINENO "configure"
14891 cat confdefs.h >>conftest.$ac_ext
14892 cat >>conftest.$ac_ext <<_ACEOF
14893 /* end confdefs.h. */
14894 /* System header to define __stub macros and hopefully few prototypes,
14895 which can conflict with char $ac_func (); below.
14896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14897 <limits.h> exists even on freestanding compilers. */
14899 # include <limits.h>
14901 # include <assert.h>
14903 /* Override any gcc2 internal prototype to avoid an error. */
14908 /* We use char because int might match the return type of a gcc2
14909 builtin and then its argument prototype would still apply. */
14911 /* The GNU C library defines this for functions which it implements
14912 to always fail with ENOSYS. Some functions are actually named
14913 something starting with __ and the normal name is an alias. */
14914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14917 char (*f) () = $ac_func;
14926 return f != $ac_func;
14931 rm -f conftest.$ac_objext conftest$ac_exeext
14932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14933 (eval $ac_link) 2>&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } &&
14937 { ac_try='test -s conftest$ac_exeext'
14938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14939 (eval $ac_try) 2>&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 (exit $ac_status); }; }; then
14943 eval "$as_ac_var=yes"
14945 echo "$as_me: failed program was:" >&5
14946 sed 's/^/| /' conftest.$ac_ext >&5
14948 eval "$as_ac_var=no"
14950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14954 if test `eval echo '${'$as_ac_var'}'` = yes; then
14955 cat >>confdefs.h <<_ACEOF
14956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14967 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
14969 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14970 echo "$as_me:$LINENO: checking for $ac_func" >&5
14971 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14972 if eval "test \"\${$as_ac_var+set}\" = set"; then
14973 echo $ECHO_N "(cached) $ECHO_C" >&6
14975 cat >conftest.$ac_ext <<_ACEOF
14976 #line $LINENO "configure"
14979 cat confdefs.h >>conftest.$ac_ext
14980 cat >>conftest.$ac_ext <<_ACEOF
14981 /* end confdefs.h. */
14982 /* System header to define __stub macros and hopefully few prototypes,
14983 which can conflict with char $ac_func (); below.
14984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14985 <limits.h> exists even on freestanding compilers. */
14987 # include <limits.h>
14989 # include <assert.h>
14991 /* Override any gcc2 internal prototype to avoid an error. */
14996 /* We use char because int might match the return type of a gcc2
14997 builtin and then its argument prototype would still apply. */
14999 /* The GNU C library defines this for functions which it implements
15000 to always fail with ENOSYS. Some functions are actually named
15001 something starting with __ and the normal name is an alias. */
15002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15005 char (*f) () = $ac_func;
15014 return f != $ac_func;
15019 rm -f conftest.$ac_objext conftest$ac_exeext
15020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15021 (eval $ac_link) 2>&5
15023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15024 (exit $ac_status); } &&
15025 { ac_try='test -s conftest$ac_exeext'
15026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15027 (eval $ac_try) 2>&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); }; }; then
15031 eval "$as_ac_var=yes"
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15036 eval "$as_ac_var=no"
15038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15040 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15041 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15042 if test `eval echo '${'$as_ac_var'}'` = yes; then
15043 cat >>confdefs.h <<_ACEOF
15044 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15051 # If resolver functions are not in libc check for -lnsl or -lresolv.
15052 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15053 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15054 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15055 echo $ECHO_N "(cached) $ECHO_C" >&6
15057 cat >conftest.$ac_ext <<_ACEOF
15058 #line $LINENO "configure"
15061 cat confdefs.h >>conftest.$ac_ext
15062 cat >>conftest.$ac_ext <<_ACEOF
15063 /* end confdefs.h. */
15064 /* System header to define __stub macros and hopefully few prototypes,
15065 which can conflict with char gethostbyname_r (); below.
15066 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15067 <limits.h> exists even on freestanding compilers. */
15069 # include <limits.h>
15071 # include <assert.h>
15073 /* Override any gcc2 internal prototype to avoid an error. */
15078 /* We use char because int might match the return type of a gcc2
15079 builtin and then its argument prototype would still apply. */
15080 char gethostbyname_r ();
15081 /* The GNU C library defines this for functions which it implements
15082 to always fail with ENOSYS. Some functions are actually named
15083 something starting with __ and the normal name is an alias. */
15084 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15087 char (*f) () = gethostbyname_r;
15096 return f != gethostbyname_r;
15101 rm -f conftest.$ac_objext conftest$ac_exeext
15102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15103 (eval $ac_link) 2>&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 (exit $ac_status); } &&
15107 { ac_try='test -s conftest$ac_exeext'
15108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109 (eval $ac_try) 2>&5
15111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112 (exit $ac_status); }; }; then
15113 ac_cv_func_gethostbyname_r=yes
15115 echo "$as_me: failed program was:" >&5
15116 sed 's/^/| /' conftest.$ac_ext >&5
15118 ac_cv_func_gethostbyname_r=no
15120 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15122 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15123 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15124 if test $ac_cv_func_gethostbyname_r = yes; then
15125 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15126 echo "${ECHO_T}using libc's resolver" >&6
15129 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15130 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15131 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15132 echo $ECHO_N "(cached) $ECHO_C" >&6
15134 ac_check_lib_save_LIBS=$LIBS
15136 cat >conftest.$ac_ext <<_ACEOF
15137 #line $LINENO "configure"
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h. */
15144 /* Override any gcc2 internal prototype to avoid an error. */
15148 /* We use char because int might match the return type of a gcc2
15149 builtin and then its argument prototype would still apply. */
15150 char gethostbyname_r ();
15154 gethostbyname_r ();
15159 rm -f conftest.$ac_objext conftest$ac_exeext
15160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15161 (eval $ac_link) 2>&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } &&
15165 { ac_try='test -s conftest$ac_exeext'
15166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15167 (eval $ac_try) 2>&5
15169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15170 (exit $ac_status); }; }; then
15171 ac_cv_lib_nsl_gethostbyname_r=yes
15173 echo "$as_me: failed program was:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15176 ac_cv_lib_nsl_gethostbyname_r=no
15178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15179 LIBS=$ac_check_lib_save_LIBS
15181 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15182 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15183 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15184 cat >>confdefs.h <<_ACEOF
15185 #define HAVE_LIBNSL 1
15193 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15194 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15195 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15196 echo $ECHO_N "(cached) $ECHO_C" >&6
15198 ac_check_lib_save_LIBS=$LIBS
15199 LIBS="-lresolv $LIBS"
15200 cat >conftest.$ac_ext <<_ACEOF
15201 #line $LINENO "configure"
15204 cat confdefs.h >>conftest.$ac_ext
15205 cat >>conftest.$ac_ext <<_ACEOF
15206 /* end confdefs.h. */
15208 /* Override any gcc2 internal prototype to avoid an error. */
15212 /* We use char because int might match the return type of a gcc2
15213 builtin and then its argument prototype would still apply. */
15214 char gethostbyname_r ();
15218 gethostbyname_r ();
15223 rm -f conftest.$ac_objext conftest$ac_exeext
15224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15225 (eval $ac_link) 2>&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } &&
15229 { ac_try='test -s conftest$ac_exeext'
15230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15231 (eval $ac_try) 2>&5
15233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15234 (exit $ac_status); }; }; then
15235 ac_cv_lib_resolv_gethostbyname_r=yes
15237 echo "$as_me: failed program was:" >&5
15238 sed 's/^/| /' conftest.$ac_ext >&5
15240 ac_cv_lib_resolv_gethostbyname_r=no
15242 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15243 LIBS=$ac_check_lib_save_LIBS
15245 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15246 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15247 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15248 cat >>confdefs.h <<_ACEOF
15249 #define HAVE_LIBRESOLV 1
15252 LIBS="-lresolv $LIBS"
15260 # Find where sockets are (especially for Solaris)
15261 echo "$as_me:$LINENO: checking for socket" >&5
15262 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15263 if test "${ac_cv_func_socket+set}" = set; then
15264 echo $ECHO_N "(cached) $ECHO_C" >&6
15266 cat >conftest.$ac_ext <<_ACEOF
15267 #line $LINENO "configure"
15270 cat confdefs.h >>conftest.$ac_ext
15271 cat >>conftest.$ac_ext <<_ACEOF
15272 /* end confdefs.h. */
15273 /* System header to define __stub macros and hopefully few prototypes,
15274 which can conflict with char socket (); below.
15275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15276 <limits.h> exists even on freestanding compilers. */
15278 # include <limits.h>
15280 # include <assert.h>
15282 /* Override any gcc2 internal prototype to avoid an error. */
15287 /* We use char because int might match the return type of a gcc2
15288 builtin and then its argument prototype would still apply. */
15290 /* The GNU C library defines this for functions which it implements
15291 to always fail with ENOSYS. Some functions are actually named
15292 something starting with __ and the normal name is an alias. */
15293 #if defined (__stub_socket) || defined (__stub___socket)
15296 char (*f) () = socket;
15305 return f != socket;
15310 rm -f conftest.$ac_objext conftest$ac_exeext
15311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15312 (eval $ac_link) 2>&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } &&
15316 { ac_try='test -s conftest$ac_exeext'
15317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15318 (eval $ac_try) 2>&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); }; }; then
15322 ac_cv_func_socket=yes
15324 echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15327 ac_cv_func_socket=no
15329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15331 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15332 echo "${ECHO_T}$ac_cv_func_socket" >&6
15333 if test $ac_cv_func_socket = yes; then
15334 echo "$as_me:$LINENO: result: using libc's socket" >&5
15335 echo "${ECHO_T}using libc's socket" >&6
15338 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15339 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15340 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15341 echo $ECHO_N "(cached) $ECHO_C" >&6
15343 ac_check_lib_save_LIBS=$LIBS
15344 LIBS="-lxnet $LIBS"
15345 cat >conftest.$ac_ext <<_ACEOF
15346 #line $LINENO "configure"
15349 cat confdefs.h >>conftest.$ac_ext
15350 cat >>conftest.$ac_ext <<_ACEOF
15351 /* end confdefs.h. */
15353 /* Override any gcc2 internal prototype to avoid an error. */
15357 /* We use char because int might match the return type of a gcc2
15358 builtin and then its argument prototype would still apply. */
15368 rm -f conftest.$ac_objext conftest$ac_exeext
15369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15370 (eval $ac_link) 2>&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } &&
15374 { ac_try='test -s conftest$ac_exeext'
15375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15376 (eval $ac_try) 2>&5
15378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15379 (exit $ac_status); }; }; then
15380 ac_cv_lib_xnet_socket=yes
15382 echo "$as_me: failed program was:" >&5
15383 sed 's/^/| /' conftest.$ac_ext >&5
15385 ac_cv_lib_xnet_socket=no
15387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15388 LIBS=$ac_check_lib_save_LIBS
15390 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15391 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15392 if test $ac_cv_lib_xnet_socket = yes; then
15393 cat >>confdefs.h <<_ACEOF
15394 #define HAVE_LIBXNET 1
15397 LIBS="-lxnet $LIBS"
15402 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15403 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15404 if test "${ac_cv_lib_socket_socket+set}" = set; then
15405 echo $ECHO_N "(cached) $ECHO_C" >&6
15407 ac_check_lib_save_LIBS=$LIBS
15408 LIBS="-lsocket $LIBS"
15409 cat >conftest.$ac_ext <<_ACEOF
15410 #line $LINENO "configure"
15413 cat confdefs.h >>conftest.$ac_ext
15414 cat >>conftest.$ac_ext <<_ACEOF
15415 /* end confdefs.h. */
15417 /* Override any gcc2 internal prototype to avoid an error. */
15421 /* We use char because int might match the return type of a gcc2
15422 builtin and then its argument prototype would still apply. */
15432 rm -f conftest.$ac_objext conftest$ac_exeext
15433 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15434 (eval $ac_link) 2>&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } &&
15438 { ac_try='test -s conftest$ac_exeext'
15439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15440 (eval $ac_try) 2>&5
15442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); }; }; then
15444 ac_cv_lib_socket_socket=yes
15446 echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15449 ac_cv_lib_socket_socket=no
15451 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15452 LIBS=$ac_check_lib_save_LIBS
15454 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15455 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15456 if test $ac_cv_lib_socket_socket = yes; then
15457 cat >>confdefs.h <<_ACEOF
15458 #define HAVE_LIBSOCKET 1
15461 LIBS="-lsocket $LIBS"
15466 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15467 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15468 if test "${ac_cv_lib_inet_socket+set}" = set; then
15469 echo $ECHO_N "(cached) $ECHO_C" >&6
15471 ac_check_lib_save_LIBS=$LIBS
15472 LIBS="-linet $LIBS"
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. */
15481 /* Override any gcc2 internal prototype to avoid an error. */
15485 /* We use char because int might match the return type of a gcc2
15486 builtin and then its argument prototype would still apply. */
15496 rm -f conftest.$ac_objext conftest$ac_exeext
15497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15498 (eval $ac_link) 2>&5
15500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501 (exit $ac_status); } &&
15502 { ac_try='test -s conftest$ac_exeext'
15503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504 (eval $ac_try) 2>&5
15506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507 (exit $ac_status); }; }; then
15508 ac_cv_lib_inet_socket=yes
15510 echo "$as_me: failed program was:" >&5
15511 sed 's/^/| /' conftest.$ac_ext >&5
15513 ac_cv_lib_inet_socket=no
15515 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15516 LIBS=$ac_check_lib_save_LIBS
15518 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15519 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15520 if test $ac_cv_lib_inet_socket = yes; then
15521 cat >>confdefs.h <<_ACEOF
15522 #define HAVE_LIBINET 1
15525 LIBS="-linet $LIBS"
15533 for ac_func in inet_pton
15535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15536 echo "$as_me:$LINENO: checking for $ac_func" >&5
15537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15538 if eval "test \"\${$as_ac_var+set}\" = set"; then
15539 echo $ECHO_N "(cached) $ECHO_C" >&6
15541 cat >conftest.$ac_ext <<_ACEOF
15542 #line $LINENO "configure"
15545 cat confdefs.h >>conftest.$ac_ext
15546 cat >>conftest.$ac_ext <<_ACEOF
15547 /* end confdefs.h. */
15548 /* System header to define __stub macros and hopefully few prototypes,
15549 which can conflict with char $ac_func (); below.
15550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15551 <limits.h> exists even on freestanding compilers. */
15553 # include <limits.h>
15555 # include <assert.h>
15557 /* Override any gcc2 internal prototype to avoid an error. */
15562 /* We use char because int might match the return type of a gcc2
15563 builtin and then its argument prototype would still apply. */
15565 /* The GNU C library defines this for functions which it implements
15566 to always fail with ENOSYS. Some functions are actually named
15567 something starting with __ and the normal name is an alias. */
15568 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15571 char (*f) () = $ac_func;
15580 return f != $ac_func;
15585 rm -f conftest.$ac_objext conftest$ac_exeext
15586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15587 (eval $ac_link) 2>&5
15589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590 (exit $ac_status); } &&
15591 { ac_try='test -s conftest$ac_exeext'
15592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15593 (eval $ac_try) 2>&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); }; }; then
15597 eval "$as_ac_var=yes"
15599 echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15602 eval "$as_ac_var=no"
15604 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15606 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15607 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15608 if test `eval echo '${'$as_ac_var'}'` = yes; then
15609 cat >>confdefs.h <<_ACEOF
15610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15612 cat >>confdefs.h <<\_ACEOF
15613 #define HAVE_INET_PTON 1
15621 for ac_func in strftime
15623 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15624 echo "$as_me:$LINENO: checking for $ac_func" >&5
15625 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15626 if eval "test \"\${$as_ac_var+set}\" = set"; then
15627 echo $ECHO_N "(cached) $ECHO_C" >&6
15629 cat >conftest.$ac_ext <<_ACEOF
15630 #line $LINENO "configure"
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15636 /* System header to define __stub macros and hopefully few prototypes,
15637 which can conflict with char $ac_func (); below.
15638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15639 <limits.h> exists even on freestanding compilers. */
15641 # include <limits.h>
15643 # include <assert.h>
15645 /* Override any gcc2 internal prototype to avoid an error. */
15650 /* We use char because int might match the return type of a gcc2
15651 builtin and then its argument prototype would still apply. */
15653 /* The GNU C library defines this for functions which it implements
15654 to always fail with ENOSYS. Some functions are actually named
15655 something starting with __ and the normal name is an alias. */
15656 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15659 char (*f) () = $ac_func;
15668 return f != $ac_func;
15673 rm -f conftest.$ac_objext conftest$ac_exeext
15674 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15675 (eval $ac_link) 2>&5
15677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15678 (exit $ac_status); } &&
15679 { ac_try='test -s conftest$ac_exeext'
15680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15681 (eval $ac_try) 2>&5
15683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684 (exit $ac_status); }; }; then
15685 eval "$as_ac_var=yes"
15687 echo "$as_me: failed program was:" >&5
15688 sed 's/^/| /' conftest.$ac_ext >&5
15690 eval "$as_ac_var=no"
15692 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15694 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15695 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15696 if test `eval echo '${'$as_ac_var'}'` = yes; then
15697 cat >>confdefs.h <<_ACEOF
15698 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15702 # strftime is in -lintl on SCO UNIX.
15703 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15704 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
15705 if test "${ac_cv_lib_intl_strftime+set}" = set; then
15706 echo $ECHO_N "(cached) $ECHO_C" >&6
15708 ac_check_lib_save_LIBS=$LIBS
15709 LIBS="-lintl $LIBS"
15710 cat >conftest.$ac_ext <<_ACEOF
15711 #line $LINENO "configure"
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15718 /* Override any gcc2 internal prototype to avoid an error. */
15722 /* We use char because int might match the return type of a gcc2
15723 builtin and then its argument prototype would still apply. */
15733 rm -f conftest.$ac_objext conftest$ac_exeext
15734 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15735 (eval $ac_link) 2>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } &&
15739 { ac_try='test -s conftest$ac_exeext'
15740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15741 (eval $ac_try) 2>&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); }; }; then
15745 ac_cv_lib_intl_strftime=yes
15747 echo "$as_me: failed program was:" >&5
15748 sed 's/^/| /' conftest.$ac_ext >&5
15750 ac_cv_lib_intl_strftime=no
15752 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15753 LIBS=$ac_check_lib_save_LIBS
15755 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
15756 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
15757 if test $ac_cv_lib_intl_strftime = yes; then
15758 cat >>confdefs.h <<\_ACEOF
15759 #define HAVE_STRFTIME 1
15762 LIBS="-lintl $LIBS"
15769 for ac_func in vprintf
15771 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15772 echo "$as_me:$LINENO: checking for $ac_func" >&5
15773 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15774 if eval "test \"\${$as_ac_var+set}\" = set"; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15777 cat >conftest.$ac_ext <<_ACEOF
15778 #line $LINENO "configure"
15781 cat confdefs.h >>conftest.$ac_ext
15782 cat >>conftest.$ac_ext <<_ACEOF
15783 /* end confdefs.h. */
15784 /* System header to define __stub macros and hopefully few prototypes,
15785 which can conflict with char $ac_func (); below.
15786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15787 <limits.h> exists even on freestanding compilers. */
15789 # include <limits.h>
15791 # include <assert.h>
15793 /* Override any gcc2 internal prototype to avoid an error. */
15798 /* We use char because int might match the return type of a gcc2
15799 builtin and then its argument prototype would still apply. */
15801 /* The GNU C library defines this for functions which it implements
15802 to always fail with ENOSYS. Some functions are actually named
15803 something starting with __ and the normal name is an alias. */
15804 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15807 char (*f) () = $ac_func;
15816 return f != $ac_func;
15821 rm -f conftest.$ac_objext conftest$ac_exeext
15822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15823 (eval $ac_link) 2>&5
15825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15826 (exit $ac_status); } &&
15827 { ac_try='test -s conftest$ac_exeext'
15828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15829 (eval $ac_try) 2>&5
15831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15832 (exit $ac_status); }; }; then
15833 eval "$as_ac_var=yes"
15835 echo "$as_me: failed program was:" >&5
15836 sed 's/^/| /' conftest.$ac_ext >&5
15838 eval "$as_ac_var=no"
15840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15842 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15843 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15844 if test `eval echo '${'$as_ac_var'}'` = yes; then
15845 cat >>confdefs.h <<_ACEOF
15846 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15849 echo "$as_me:$LINENO: checking for _doprnt" >&5
15850 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
15851 if test "${ac_cv_func__doprnt+set}" = set; then
15852 echo $ECHO_N "(cached) $ECHO_C" >&6
15854 cat >conftest.$ac_ext <<_ACEOF
15855 #line $LINENO "configure"
15858 cat confdefs.h >>conftest.$ac_ext
15859 cat >>conftest.$ac_ext <<_ACEOF
15860 /* end confdefs.h. */
15861 /* System header to define __stub macros and hopefully few prototypes,
15862 which can conflict with char _doprnt (); below.
15863 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15864 <limits.h> exists even on freestanding compilers. */
15866 # include <limits.h>
15868 # include <assert.h>
15870 /* Override any gcc2 internal prototype to avoid an error. */
15875 /* We use char because int might match the return type of a gcc2
15876 builtin and then its argument prototype would still apply. */
15878 /* The GNU C library defines this for functions which it implements
15879 to always fail with ENOSYS. Some functions are actually named
15880 something starting with __ and the normal name is an alias. */
15881 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15884 char (*f) () = _doprnt;
15893 return f != _doprnt;
15898 rm -f conftest.$ac_objext conftest$ac_exeext
15899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15900 (eval $ac_link) 2>&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); } &&
15904 { ac_try='test -s conftest$ac_exeext'
15905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15906 (eval $ac_try) 2>&5
15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15909 (exit $ac_status); }; }; then
15910 ac_cv_func__doprnt=yes
15912 echo "$as_me: failed program was:" >&5
15913 sed 's/^/| /' conftest.$ac_ext >&5
15915 ac_cv_func__doprnt=no
15917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15919 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15920 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
15921 if test $ac_cv_func__doprnt = yes; then
15923 cat >>confdefs.h <<\_ACEOF
15924 #define HAVE_DOPRNT 1
15933 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15934 # for constant arguments. Useless!
15935 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15936 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15937 if test "${ac_cv_working_alloca_h+set}" = set; then
15938 echo $ECHO_N "(cached) $ECHO_C" >&6
15940 cat >conftest.$ac_ext <<_ACEOF
15941 #line $LINENO "configure"
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h. */
15947 #include <alloca.h>
15951 char *p = (char *) alloca (2 * sizeof (int));
15956 rm -f conftest.$ac_objext conftest$ac_exeext
15957 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15958 (eval $ac_link) 2>&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); } &&
15962 { ac_try='test -s conftest$ac_exeext'
15963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964 (eval $ac_try) 2>&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 ac_cv_working_alloca_h=yes
15970 echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.$ac_ext >&5
15973 ac_cv_working_alloca_h=no
15975 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15977 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15978 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15979 if test $ac_cv_working_alloca_h = yes; then
15981 cat >>confdefs.h <<\_ACEOF
15982 #define HAVE_ALLOCA_H 1
15987 echo "$as_me:$LINENO: checking for alloca" >&5
15988 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15989 if test "${ac_cv_func_alloca_works+set}" = set; then
15990 echo $ECHO_N "(cached) $ECHO_C" >&6
15992 cat >conftest.$ac_ext <<_ACEOF
15993 #line $LINENO "configure"
15996 cat confdefs.h >>conftest.$ac_ext
15997 cat >>conftest.$ac_ext <<_ACEOF
15998 /* end confdefs.h. */
16000 # define alloca __builtin_alloca
16003 # include <malloc.h>
16004 # define alloca _alloca
16007 # include <alloca.h>
16012 # ifndef alloca /* predefined by HP cc +Olibcalls */
16023 char *p = (char *) alloca (1);
16028 rm -f conftest.$ac_objext conftest$ac_exeext
16029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16030 (eval $ac_link) 2>&5
16032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16033 (exit $ac_status); } &&
16034 { ac_try='test -s conftest$ac_exeext'
16035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16036 (eval $ac_try) 2>&5
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; }; then
16040 ac_cv_func_alloca_works=yes
16042 echo "$as_me: failed program was:" >&5
16043 sed 's/^/| /' conftest.$ac_ext >&5
16045 ac_cv_func_alloca_works=no
16047 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16049 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16050 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16052 if test $ac_cv_func_alloca_works = yes; then
16054 cat >>confdefs.h <<\_ACEOF
16055 #define HAVE_ALLOCA 1
16059 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16060 # that cause trouble. Some versions do not even contain alloca or
16061 # contain a buggy version. If you still want to use their alloca,
16062 # use ar to extract alloca.o from them instead of compiling alloca.c.
16064 ALLOCA=alloca.$ac_objext
16066 cat >>confdefs.h <<\_ACEOF
16071 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16072 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16073 if test "${ac_cv_os_cray+set}" = set; then
16074 echo $ECHO_N "(cached) $ECHO_C" >&6
16076 cat >conftest.$ac_ext <<_ACEOF
16077 #line $LINENO "configure"
16080 cat confdefs.h >>conftest.$ac_ext
16081 cat >>conftest.$ac_ext <<_ACEOF
16082 /* end confdefs.h. */
16083 #if defined(CRAY) && ! defined(CRAY2)
16090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16091 $EGREP "webecray" >/dev/null 2>&1; then
16099 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16100 echo "${ECHO_T}$ac_cv_os_cray" >&6
16101 if test $ac_cv_os_cray = yes; then
16102 for ac_func in _getb67 GETB67 getb67; do
16103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16104 echo "$as_me:$LINENO: checking for $ac_func" >&5
16105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16106 if eval "test \"\${$as_ac_var+set}\" = set"; then
16107 echo $ECHO_N "(cached) $ECHO_C" >&6
16109 cat >conftest.$ac_ext <<_ACEOF
16110 #line $LINENO "configure"
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16116 /* System header to define __stub macros and hopefully few prototypes,
16117 which can conflict with char $ac_func (); below.
16118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16119 <limits.h> exists even on freestanding compilers. */
16121 # include <limits.h>
16123 # include <assert.h>
16125 /* Override any gcc2 internal prototype to avoid an error. */
16130 /* We use char because int might match the return type of a gcc2
16131 builtin and then its argument prototype would still apply. */
16133 /* The GNU C library defines this for functions which it implements
16134 to always fail with ENOSYS. Some functions are actually named
16135 something starting with __ and the normal name is an alias. */
16136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16139 char (*f) () = $ac_func;
16148 return f != $ac_func;
16153 rm -f conftest.$ac_objext conftest$ac_exeext
16154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16155 (eval $ac_link) 2>&5
16157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16158 (exit $ac_status); } &&
16159 { ac_try='test -s conftest$ac_exeext'
16160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16161 (eval $ac_try) 2>&5
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); }; }; then
16165 eval "$as_ac_var=yes"
16167 echo "$as_me: failed program was:" >&5
16168 sed 's/^/| /' conftest.$ac_ext >&5
16170 eval "$as_ac_var=no"
16172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16175 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16176 if test `eval echo '${'$as_ac_var'}'` = yes; then
16178 cat >>confdefs.h <<_ACEOF
16179 #define CRAY_STACKSEG_END $ac_func
16188 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16189 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16190 if test "${ac_cv_c_stack_direction+set}" = set; then
16191 echo $ECHO_N "(cached) $ECHO_C" >&6
16193 if test "$cross_compiling" = yes; then
16194 ac_cv_c_stack_direction=0
16196 cat >conftest.$ac_ext <<_ACEOF
16197 #line $LINENO "configure"
16200 cat confdefs.h >>conftest.$ac_ext
16201 cat >>conftest.$ac_ext <<_ACEOF
16202 /* end confdefs.h. */
16204 find_stack_direction ()
16206 static char *addr = 0;
16211 return find_stack_direction ();
16214 return (&dummy > addr) ? 1 : -1;
16220 exit (find_stack_direction () < 0);
16223 rm -f conftest$ac_exeext
16224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16225 (eval $ac_link) 2>&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16230 (eval $ac_try) 2>&5
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); }; }; then
16234 ac_cv_c_stack_direction=1
16236 echo "$as_me: program exited with status $ac_status" >&5
16237 echo "$as_me: failed program was:" >&5
16238 sed 's/^/| /' conftest.$ac_ext >&5
16240 ( exit $ac_status )
16241 ac_cv_c_stack_direction=-1
16243 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16246 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16247 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16249 cat >>confdefs.h <<_ACEOF
16250 #define STACK_DIRECTION $ac_cv_c_stack_direction
16256 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16257 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16258 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16259 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16260 echo $ECHO_N "(cached) $ECHO_C" >&6
16262 ac_check_lib_save_LIBS=$LIBS
16264 cat >conftest.$ac_ext <<_ACEOF
16265 #line $LINENO "configure"
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h. */
16272 /* Override any gcc2 internal prototype to avoid an error. */
16276 /* We use char because int might match the return type of a gcc2
16277 builtin and then its argument prototype would still apply. */
16287 rm -f conftest.$ac_objext conftest$ac_exeext
16288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16289 (eval $ac_link) 2>&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); } &&
16293 { ac_try='test -s conftest$ac_exeext'
16294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16295 (eval $ac_try) 2>&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); }; }; then
16299 ac_cv_lib_sun_getmntent=yes
16301 echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16304 ac_cv_lib_sun_getmntent=no
16306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16307 LIBS=$ac_check_lib_save_LIBS
16309 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16310 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16311 if test $ac_cv_lib_sun_getmntent = yes; then
16314 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16315 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16316 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16317 echo $ECHO_N "(cached) $ECHO_C" >&6
16319 ac_check_lib_save_LIBS=$LIBS
16321 cat >conftest.$ac_ext <<_ACEOF
16322 #line $LINENO "configure"
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h. */
16329 /* Override any gcc2 internal prototype to avoid an error. */
16333 /* We use char because int might match the return type of a gcc2
16334 builtin and then its argument prototype would still apply. */
16344 rm -f conftest.$ac_objext conftest$ac_exeext
16345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16346 (eval $ac_link) 2>&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } &&
16350 { ac_try='test -s conftest$ac_exeext'
16351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16352 (eval $ac_try) 2>&5
16354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16355 (exit $ac_status); }; }; then
16356 ac_cv_lib_seq_getmntent=yes
16358 echo "$as_me: failed program was:" >&5
16359 sed 's/^/| /' conftest.$ac_ext >&5
16361 ac_cv_lib_seq_getmntent=no
16363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16364 LIBS=$ac_check_lib_save_LIBS
16366 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16367 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16368 if test $ac_cv_lib_seq_getmntent = yes; then
16371 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16372 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16373 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16374 echo $ECHO_N "(cached) $ECHO_C" >&6
16376 ac_check_lib_save_LIBS=$LIBS
16378 cat >conftest.$ac_ext <<_ACEOF
16379 #line $LINENO "configure"
16382 cat confdefs.h >>conftest.$ac_ext
16383 cat >>conftest.$ac_ext <<_ACEOF
16384 /* end confdefs.h. */
16386 /* Override any gcc2 internal prototype to avoid an error. */
16390 /* We use char because int might match the return type of a gcc2
16391 builtin and then its argument prototype would still apply. */
16401 rm -f conftest.$ac_objext conftest$ac_exeext
16402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16403 (eval $ac_link) 2>&5
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); } &&
16407 { ac_try='test -s conftest$ac_exeext'
16408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409 (eval $ac_try) 2>&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; }; then
16413 ac_cv_lib_gen_getmntent=yes
16415 echo "$as_me: failed program was:" >&5
16416 sed 's/^/| /' conftest.$ac_ext >&5
16418 ac_cv_lib_gen_getmntent=no
16420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16421 LIBS=$ac_check_lib_save_LIBS
16423 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16424 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16425 if test $ac_cv_lib_gen_getmntent = yes; then
16434 for ac_func in getmntent
16436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16437 echo "$as_me:$LINENO: checking for $ac_func" >&5
16438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16439 if eval "test \"\${$as_ac_var+set}\" = set"; then
16440 echo $ECHO_N "(cached) $ECHO_C" >&6
16442 cat >conftest.$ac_ext <<_ACEOF
16443 #line $LINENO "configure"
16446 cat confdefs.h >>conftest.$ac_ext
16447 cat >>conftest.$ac_ext <<_ACEOF
16448 /* end confdefs.h. */
16449 /* System header to define __stub macros and hopefully few prototypes,
16450 which can conflict with char $ac_func (); below.
16451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16452 <limits.h> exists even on freestanding compilers. */
16454 # include <limits.h>
16456 # include <assert.h>
16458 /* Override any gcc2 internal prototype to avoid an error. */
16463 /* We use char because int might match the return type of a gcc2
16464 builtin and then its argument prototype would still apply. */
16466 /* The GNU C library defines this for functions which it implements
16467 to always fail with ENOSYS. Some functions are actually named
16468 something starting with __ and the normal name is an alias. */
16469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16472 char (*f) () = $ac_func;
16481 return f != $ac_func;
16486 rm -f conftest.$ac_objext conftest$ac_exeext
16487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16488 (eval $ac_link) 2>&5
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); } &&
16492 { ac_try='test -s conftest$ac_exeext'
16493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16494 (eval $ac_try) 2>&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); }; }; then
16498 eval "$as_ac_var=yes"
16500 echo "$as_me: failed program was:" >&5
16501 sed 's/^/| /' conftest.$ac_ext >&5
16503 eval "$as_ac_var=no"
16505 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16507 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16508 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16509 if test `eval echo '${'$as_ac_var'}'` = yes; then
16510 cat >>confdefs.h <<_ACEOF
16511 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16518 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16519 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16520 if test "${ac_cv_func_closedir_void+set}" = set; then
16521 echo $ECHO_N "(cached) $ECHO_C" >&6
16523 if test "$cross_compiling" = yes; then
16524 ac_cv_func_closedir_void=yes
16526 cat >conftest.$ac_ext <<_ACEOF
16527 #line $LINENO "configure"
16530 cat confdefs.h >>conftest.$ac_ext
16531 cat >>conftest.$ac_ext <<_ACEOF
16532 /* end confdefs.h. */
16533 $ac_includes_default
16534 #include <$ac_header_dirent>
16535 #ifndef __cplusplus
16542 exit (closedir (opendir (".")) != 0);
16547 rm -f conftest$ac_exeext
16548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16549 (eval $ac_link) 2>&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16554 (eval $ac_try) 2>&5
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); }; }; then
16558 ac_cv_func_closedir_void=no
16560 echo "$as_me: program exited with status $ac_status" >&5
16561 echo "$as_me: failed program was:" >&5
16562 sed 's/^/| /' conftest.$ac_ext >&5
16564 ( exit $ac_status )
16565 ac_cv_func_closedir_void=yes
16567 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16570 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
16571 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
16572 if test $ac_cv_func_closedir_void = yes; then
16574 cat >>confdefs.h <<\_ACEOF
16575 #define CLOSEDIR_VOID 1
16580 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16581 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16582 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16583 echo $ECHO_N "(cached) $ECHO_C" >&6
16585 if test "$cross_compiling" = yes; then
16586 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16587 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16588 { (exit 1); exit 1; }; }
16590 cat >conftest.$ac_ext <<_ACEOF
16591 #line $LINENO "configure"
16594 cat confdefs.h >>conftest.$ac_ext
16595 cat >>conftest.$ac_ext <<_ACEOF
16596 /* end confdefs.h. */
16598 # include <unistd.h>
16604 /* If this system has a BSD-style setpgrp which takes arguments,
16605 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16606 exit successfully. */
16607 exit (setpgrp (1,1) == -1 ? 0 : 1);
16612 rm -f conftest$ac_exeext
16613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16614 (eval $ac_link) 2>&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16619 (eval $ac_try) 2>&5
16621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16622 (exit $ac_status); }; }; then
16623 ac_cv_func_setpgrp_void=no
16625 echo "$as_me: program exited with status $ac_status" >&5
16626 echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16629 ( exit $ac_status )
16630 ac_cv_func_setpgrp_void=yes
16632 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16635 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16636 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16637 if test $ac_cv_func_setpgrp_void = yes; then
16639 cat >>confdefs.h <<\_ACEOF
16640 #define SETPGRP_VOID 1
16644 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
16645 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
16646 if test "${ac_cv_func_fnmatch_works+set}" = set; then
16647 echo $ECHO_N "(cached) $ECHO_C" >&6
16649 # Some versions of Solaris, SCO, and the GNU C Library
16650 # have a broken or incompatible fnmatch.
16651 # So we run a test program. If we are cross-compiling, take no chance.
16652 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
16653 if test "$cross_compiling" = yes; then
16654 ac_cv_func_fnmatch_works=cross
16656 cat >conftest.$ac_ext <<_ACEOF
16657 #line $LINENO "configure"
16660 cat confdefs.h >>conftest.$ac_ext
16661 cat >>conftest.$ac_ext <<_ACEOF
16662 /* end confdefs.h. */
16663 #include <fnmatch.h>
16664 # define y(a, b, c) (fnmatch (a, b, c) == 0)
16665 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
16671 (!(y ("a*", "abc", 0)
16672 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
16673 && y ("a\\\\bc", "abc", 0)
16674 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
16675 && y ("*x", ".x", 0)
16676 && n ("*x", ".x", FNM_PERIOD)
16682 rm -f conftest$ac_exeext
16683 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16684 (eval $ac_link) 2>&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16689 (eval $ac_try) 2>&5
16691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692 (exit $ac_status); }; }; then
16693 ac_cv_func_fnmatch_works=yes
16695 echo "$as_me: program exited with status $ac_status" >&5
16696 echo "$as_me: failed program was:" >&5
16697 sed 's/^/| /' conftest.$ac_ext >&5
16699 ( exit $ac_status )
16700 ac_cv_func_fnmatch_works=no
16702 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16705 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
16706 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
16707 if test $ac_cv_func_fnmatch_works = yes; then
16709 cat >>confdefs.h <<\_ACEOF
16710 #define HAVE_FNMATCH 1
16719 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16720 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16721 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16724 ac_check_lib_save_LIBS=$LIBS
16725 LIBS="-lxpg4 $LIBS"
16726 cat >conftest.$ac_ext <<_ACEOF
16727 #line $LINENO "configure"
16730 cat confdefs.h >>conftest.$ac_ext
16731 cat >>conftest.$ac_ext <<_ACEOF
16732 /* end confdefs.h. */
16734 /* Override any gcc2 internal prototype to avoid an error. */
16738 /* We use char because int might match the return type of a gcc2
16739 builtin and then its argument prototype would still apply. */
16749 rm -f conftest.$ac_objext conftest$ac_exeext
16750 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16751 (eval $ac_link) 2>&5
16753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16754 (exit $ac_status); } &&
16755 { ac_try='test -s conftest$ac_exeext'
16756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16757 (eval $ac_try) 2>&5
16759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; }; then
16761 ac_cv_lib_xpg4_setlocale=yes
16763 echo "$as_me: failed program was:" >&5
16764 sed 's/^/| /' conftest.$ac_ext >&5
16766 ac_cv_lib_xpg4_setlocale=no
16768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16769 LIBS=$ac_check_lib_save_LIBS
16771 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
16772 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16773 if test $ac_cv_lib_xpg4_setlocale = yes; then
16774 LIBS="$LIBS -lxpg4"
16780 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
16781 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
16782 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
16783 echo $ECHO_N "(cached) $ECHO_C" >&6
16785 ac_check_lib_save_LIBS=$LIBS
16787 cat >conftest.$ac_ext <<_ACEOF
16788 #line $LINENO "configure"
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16795 /* Override any gcc2 internal prototype to avoid an error. */
16799 /* We use char because int might match the return type of a gcc2
16800 builtin and then its argument prototype would still apply. */
16810 rm -f conftest.$ac_objext conftest$ac_exeext
16811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16812 (eval $ac_link) 2>&5
16814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16815 (exit $ac_status); } &&
16816 { ac_try='test -s conftest$ac_exeext'
16817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16818 (eval $ac_try) 2>&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; }; then
16822 ac_cv_lib_sun_getpwnam=yes
16824 echo "$as_me: failed program was:" >&5
16825 sed 's/^/| /' conftest.$ac_ext >&5
16827 ac_cv_lib_sun_getpwnam=no
16829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16830 LIBS=$ac_check_lib_save_LIBS
16832 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
16833 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
16834 if test $ac_cv_lib_sun_getpwnam = yes; then
16835 cat >>confdefs.h <<_ACEOF
16836 #define HAVE_LIBSUN 1
16845 for ac_header in zlib.h
16847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16849 echo "$as_me:$LINENO: checking for $ac_header" >&5
16850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16852 echo $ECHO_N "(cached) $ECHO_C" >&6
16854 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16855 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16857 # Is the header compilable?
16858 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16859 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16860 cat >conftest.$ac_ext <<_ACEOF
16861 #line $LINENO "configure"
16864 cat confdefs.h >>conftest.$ac_ext
16865 cat >>conftest.$ac_ext <<_ACEOF
16866 /* end confdefs.h. */
16867 $ac_includes_default
16868 #include <$ac_header>
16870 rm -f conftest.$ac_objext
16871 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16872 (eval $ac_compile) 2>&5
16874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16875 (exit $ac_status); } &&
16876 { ac_try='test -s conftest.$ac_objext'
16877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16878 (eval $ac_try) 2>&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; }; then
16882 ac_header_compiler=yes
16884 echo "$as_me: failed program was:" >&5
16885 sed 's/^/| /' conftest.$ac_ext >&5
16887 ac_header_compiler=no
16889 rm -f conftest.$ac_objext conftest.$ac_ext
16890 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16891 echo "${ECHO_T}$ac_header_compiler" >&6
16893 # Is the header present?
16894 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16896 cat >conftest.$ac_ext <<_ACEOF
16897 #line $LINENO "configure"
16900 cat confdefs.h >>conftest.$ac_ext
16901 cat >>conftest.$ac_ext <<_ACEOF
16902 /* end confdefs.h. */
16903 #include <$ac_header>
16905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16908 grep -v '^ *+' conftest.er1 >conftest.err
16910 cat conftest.err >&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); } >/dev/null; then
16913 if test -s conftest.err; then
16914 ac_cpp_err=$ac_c_preproc_warn_flag
16921 if test -z "$ac_cpp_err"; then
16922 ac_header_preproc=yes
16924 echo "$as_me: failed program was:" >&5
16925 sed 's/^/| /' conftest.$ac_ext >&5
16927 ac_header_preproc=no
16929 rm -f conftest.err conftest.$ac_ext
16930 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16931 echo "${ECHO_T}$ac_header_preproc" >&6
16933 # So? What about this header?
16934 case $ac_header_compiler:$ac_header_preproc in
16936 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16937 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16938 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16942 ## ------------------------------------ ##
16943 ## Report this to bug-autoconf@gnu.org. ##
16944 ## ------------------------------------ ##
16947 sed "s/^/$as_me: WARNING: /" >&2
16950 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16951 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16952 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16953 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16954 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16955 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16958 ## ------------------------------------ ##
16959 ## Report this to bug-autoconf@gnu.org. ##
16960 ## ------------------------------------ ##
16963 sed "s/^/$as_me: WARNING: /" >&2
16966 echo "$as_me:$LINENO: checking for $ac_header" >&5
16967 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16968 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16969 echo $ECHO_N "(cached) $ECHO_C" >&6
16971 eval "$as_ac_Header=$ac_header_preproc"
16973 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16974 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16978 cat >>confdefs.h <<_ACEOF
16979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16986 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
16987 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
16988 if test "${ac_cv_lib_z_deflate+set}" = set; then
16989 echo $ECHO_N "(cached) $ECHO_C" >&6
16991 ac_check_lib_save_LIBS=$LIBS
16993 cat >conftest.$ac_ext <<_ACEOF
16994 #line $LINENO "configure"
16997 cat confdefs.h >>conftest.$ac_ext
16998 cat >>conftest.$ac_ext <<_ACEOF
16999 /* end confdefs.h. */
17001 /* Override any gcc2 internal prototype to avoid an error. */
17005 /* We use char because int might match the return type of a gcc2
17006 builtin and then its argument prototype would still apply. */
17016 rm -f conftest.$ac_objext conftest$ac_exeext
17017 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17018 (eval $ac_link) 2>&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
17022 { ac_try='test -s conftest$ac_exeext'
17023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17024 (eval $ac_try) 2>&5
17026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17027 (exit $ac_status); }; }; then
17028 ac_cv_lib_z_deflate=yes
17030 echo "$as_me: failed program was:" >&5
17031 sed 's/^/| /' conftest.$ac_ext >&5
17033 ac_cv_lib_z_deflate=no
17035 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17036 LIBS=$ac_check_lib_save_LIBS
17038 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17039 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17040 if test $ac_cv_lib_z_deflate = yes; then
17045 if test x$FDLIBS = x-lz; then
17046 cat >>confdefs.h <<\_ACEOF
17047 #define HAVE_LIBZ 1
17054 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17055 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17056 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17057 echo $ECHO_N "(cached) $ECHO_C" >&6
17059 ac_check_lib_save_LIBS=$LIBS
17060 LIBS="-lpthread $LIBS"
17061 cat >conftest.$ac_ext <<_ACEOF
17062 #line $LINENO "configure"
17065 cat confdefs.h >>conftest.$ac_ext
17066 cat >>conftest.$ac_ext <<_ACEOF
17067 /* end confdefs.h. */
17069 /* Override any gcc2 internal prototype to avoid an error. */
17073 /* We use char because int might match the return type of a gcc2
17074 builtin and then its argument prototype would still apply. */
17075 char pthread_create ();
17084 rm -f conftest.$ac_objext conftest$ac_exeext
17085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17086 (eval $ac_link) 2>&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); } &&
17090 { ac_try='test -s conftest$ac_exeext'
17091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17092 (eval $ac_try) 2>&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); }; }; then
17096 ac_cv_lib_pthread_pthread_create=yes
17098 echo "$as_me: failed program was:" >&5
17099 sed 's/^/| /' conftest.$ac_ext >&5
17101 ac_cv_lib_pthread_pthread_create=no
17103 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17104 LIBS=$ac_check_lib_save_LIBS
17106 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17107 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17108 if test $ac_cv_lib_pthread_pthread_create = yes; then
17109 PTHREAD_LIB="-lpthread"
17111 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17112 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17113 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17114 echo $ECHO_N "(cached) $ECHO_C" >&6
17116 ac_check_lib_save_LIBS=$LIBS
17117 LIBS="-lpthreads $LIBS"
17118 cat >conftest.$ac_ext <<_ACEOF
17119 #line $LINENO "configure"
17122 cat confdefs.h >>conftest.$ac_ext
17123 cat >>conftest.$ac_ext <<_ACEOF
17124 /* end confdefs.h. */
17126 /* Override any gcc2 internal prototype to avoid an error. */
17130 /* We use char because int might match the return type of a gcc2
17131 builtin and then its argument prototype would still apply. */
17132 char pthread_create ();
17141 rm -f conftest.$ac_objext conftest$ac_exeext
17142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17143 (eval $ac_link) 2>&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); } &&
17147 { ac_try='test -s conftest$ac_exeext'
17148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149 (eval $ac_try) 2>&5
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; }; then
17153 ac_cv_lib_pthreads_pthread_create=yes
17155 echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17158 ac_cv_lib_pthreads_pthread_create=no
17160 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17161 LIBS=$ac_check_lib_save_LIBS
17163 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17164 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17165 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17166 PTHREAD_LIB="-lpthreads"
17168 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17169 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17170 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17171 echo $ECHO_N "(cached) $ECHO_C" >&6
17173 ac_check_lib_save_LIBS=$LIBS
17175 cat >conftest.$ac_ext <<_ACEOF
17176 #line $LINENO "configure"
17179 cat confdefs.h >>conftest.$ac_ext
17180 cat >>conftest.$ac_ext <<_ACEOF
17181 /* end confdefs.h. */
17183 /* Override any gcc2 internal prototype to avoid an error. */
17187 /* We use char because int might match the return type of a gcc2
17188 builtin and then its argument prototype would still apply. */
17189 char pthread_create ();
17198 rm -f conftest.$ac_objext conftest$ac_exeext
17199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17200 (eval $ac_link) 2>&5
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); } &&
17204 { ac_try='test -s conftest$ac_exeext'
17205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206 (eval $ac_try) 2>&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; }; then
17210 ac_cv_lib_c_r_pthread_create=yes
17212 echo "$as_me: failed program was:" >&5
17213 sed 's/^/| /' conftest.$ac_ext >&5
17215 ac_cv_lib_c_r_pthread_create=no
17217 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17218 LIBS=$ac_check_lib_save_LIBS
17220 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17221 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17222 if test $ac_cv_lib_c_r_pthread_create = yes; then
17223 PTHREAD_LIB="-lc_r"
17225 echo "$as_me:$LINENO: checking for pthread_create" >&5
17226 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17227 if test "${ac_cv_func_pthread_create+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17230 cat >conftest.$ac_ext <<_ACEOF
17231 #line $LINENO "configure"
17234 cat confdefs.h >>conftest.$ac_ext
17235 cat >>conftest.$ac_ext <<_ACEOF
17236 /* end confdefs.h. */
17237 /* System header to define __stub macros and hopefully few prototypes,
17238 which can conflict with char pthread_create (); below.
17239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17240 <limits.h> exists even on freestanding compilers. */
17242 # include <limits.h>
17244 # include <assert.h>
17246 /* Override any gcc2 internal prototype to avoid an error. */
17251 /* We use char because int might match the return type of a gcc2
17252 builtin and then its argument prototype would still apply. */
17253 char pthread_create ();
17254 /* The GNU C library defines this for functions which it implements
17255 to always fail with ENOSYS. Some functions are actually named
17256 something starting with __ and the normal name is an alias. */
17257 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17260 char (*f) () = pthread_create;
17269 return f != pthread_create;
17274 rm -f conftest.$ac_objext conftest$ac_exeext
17275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17276 (eval $ac_link) 2>&5
17278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279 (exit $ac_status); } &&
17280 { ac_try='test -s conftest$ac_exeext'
17281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17282 (eval $ac_try) 2>&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); }; }; then
17286 ac_cv_func_pthread_create=yes
17288 echo "$as_me: failed program was:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17291 ac_cv_func_pthread_create=no
17293 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17295 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17296 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17309 cat >>confdefs.h <<\_ACEOF
17315 CFLAGS=${CFLAGS--O}
17316 LDFLAGS=${LDFLAGS--O}
17317 DB_LIBS="${SQL_LFLAGS}"
17319 CPPFLAGS="$CPPFLAGS"
17344 # Finally we set appropriate distribution specific
17345 # variables and defaults
17347 # PFILES are platform specific files
17348 PFILES="platforms/Makefile"
17351 hostname=`uname -n`
17352 case "$DISTNAME" in
17355 PSCMD="ps -e -o pid,comm"
17356 PFILES="${PFILES} \
17357 platforms/aix/Makefile"
17358 TAPEDRIVE="/dev/rmt0.1"
17362 PTHREAD_LIB="-lpthread -lexc"
17363 if test "${CC}" = "gcc" ; then
17370 TAPEDRIVE="/dev/nrmt0"
17373 DISTVER=`uname -a |awk '{print $3}'`
17374 TAPEDRIVE="/dev/nrmt0"
17375 PTHREAD_LIB="-pthread"
17376 CFLAGS="${CFLAGS} -pthread"
17377 PSCMD="ps -x -o pid,command"
17380 PFILES="${PFILES} \
17381 platforms/bsdi/Makefile \
17382 platforms/bsdi/bacula-fd \
17383 platforms/bsdi/bacula-sd \
17384 platforms/bsdi/bacula-dir"
17385 hostname=`hostname -s`
17386 largefile_support="yes"
17389 DISTVER=`uname -a |awk '{print $3}'`
17390 TAPEDRIVE="/dev/nrst0"
17392 WCFLAGS="-mwindows"
17393 WLDFLAGS="-mwindows"
17397 TAPEDRIVE="/dev/nst0"
17398 PSCMD="ps -e -o pid,command"
17399 hostname=`hostname -s`
17400 PFILES="${PFILES} \
17401 platforms/darwin/Makefile"
17404 DISTVER=`cat /etc/debian_version`
17405 TAPEDRIVE="/dev/nrst0"
17406 PSCMD="ps -e -o pid,command"
17407 hostname=`hostname -s`
17410 DISTVER=`uname -a |awk '{print $3}'`
17411 VER=`echo $DISTVER | cut -c 1`
17412 if test x$VER = x4 ; then
17413 PTHREAD_LIB="-pthread"
17414 CFLAGS="${CFLAGS} -pthread"
17418 TAPEDRIVE="/dev/nrsa0"
17419 PSCMD="ps -x -o pid,command"
17420 PFILES="${PFILES} \
17421 platforms/freebsd/Makefile \
17422 platforms/freebsd/bacula-fd \
17423 platforms/freebsd/bacula-sd \
17424 platforms/freebsd/bacula-dir"
17425 hostname=`hostname -s`
17426 largefile_support="yes"
17430 TAPEDRIVE="/dev/rmt/0hnb"
17434 TAPEDRIVE="/dev/rmt/0cbn"
17435 PSCMD="ps -e -o pid,comm"
17436 PFILES="${PFILES} \
17437 platforms/irix/Makefile \
17438 platforms/irix/bacula-fd \
17439 platforms/irix/bacula-sd \
17440 platforms/irix/bacula-dir"
17443 DISTVER=`uname -a |awk '{print $3}'`
17446 TAPEDRIVE="/dev/nrst0"
17447 PSCMD="ps -a -o pid,command"
17448 PTHREAD_LIB="-pthread"
17449 CFLAGS="${CFLAGS} -pthread"
17452 DISTVER=`uname -a |awk '{print $3}'`
17455 TAPEDRIVE="/dev/nrst0"
17456 PSCMD="ps -a -o pid,command"
17457 PTHREAD_LIB="-pthread"
17458 CFLAGS="${CFLAGS} -pthread"
17459 PFILES="${PFILES} \
17460 platforms/openbsd/Makefile \
17461 platforms/openbsd/bacula-fd \
17462 platforms/openbsd/bacula-sd \
17463 platforms/openbsd/bacula-dir"
17466 DISTVER=`cat /etc/redhat-release | grep release |\
17468 TAPEDRIVE="/dev/nst0"
17469 PSCMD="ps -e -o pid,command"
17470 PFILES="${PFILES} \
17471 platforms/redhat/Makefile \
17472 platforms/redhat/bacula-fd \
17473 platforms/redhat/bacula-sd \
17474 platforms/redhat/bacula-dir \
17475 platforms/redhat/bacula.spec \
17477 hostname=`hostname -s`
17480 DISTVER=`cat /etc/mandrake-release | grep release |\
17482 TAPEDRIVE="/dev/nst0"
17483 PSCMD="ps -e -o pid,command"
17484 PFILES="${PFILES} \
17485 platforms/mandrake/Makefile \
17486 platforms/mandrake/bacula-fd \
17487 platforms/mandrake/bacula-sd \
17488 platforms/mandrake/bacula-dir \
17489 platforms/mandrake/bacula.spec \
17491 hostname=`hostname -s`
17494 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17495 TAPEDRIVE="/dev/nst0"
17496 PSCMD="ps -e -o pid,command"
17497 PFILES="${PFILES} \
17498 platforms/gentoo/Makefile \
17499 platforms/gentoo/bacula-fd \
17500 platforms/gentoo/bacula-sd \
17501 platforms/gentoo/bacula-dir"
17502 hostname=`hostname -s`
17506 DISTVER=`cat /etc/slackware-version`
17507 TAPEDRIVE="/dev/nst0"
17508 PSCMD="ps -e -o pid,command"
17509 hostname=`hostname -s`
17513 TAPEDRIVE="/dev/rmt/0cbn"
17514 PSCMD="ps -e -o pid,comm"
17515 PFILES="${PFILES} \
17516 platforms/solaris/Makefile \
17517 platforms/solaris/bacula-fd \
17518 platforms/solaris/bacula-sd \
17519 platforms/solaris/bacula-dir"
17520 if test x$DISTVER = x5.6 ; then
17521 cat >>confdefs.h <<\_ACEOF
17522 #define HAVE_OLD_SOCKOPT 1
17528 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17530 TAPEDRIVE="/dev/nst0"
17531 PSCMD="ps -e -o pid,command"
17532 hostname=`hostname -s`
17533 PFILES="${PFILES} \
17534 platforms/suse/Makefile \
17535 platforms/suse/bacula-fd \
17536 platforms/suse/bacula-sd \
17537 platforms/suse/bacula-dir"
17542 TAPEDRIVE="/dev/nst0"
17543 PSCMD="ps -e -o pid,command"
17544 hostname=`hostname -s`
17545 PFILES="${PFILES} \
17546 platforms/suse/Makefile \
17547 platforms/suse/bacula-fd \
17548 platforms/suse/bacula-sd \
17549 platforms/suse/bacula-dir"
17553 TAPEDRIVE="/dev/nst0"
17556 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
17562 LIBS="$PTHREAD_LIB $LIBS"
17564 cat >>confdefs.h <<_ACEOF
17568 cat >>confdefs.h <<_ACEOF
17578 MCOMMON=./autoconf/Make.common
17581 if test "x${subsysdir}" = "x${sbindir}" ; then
17584 echo "You have set both --sbindir and --with-subsys-dir"
17585 echo " equal to: ${subsysdir} "
17586 echo "This is not permitted. Please reconfigure."
17588 echo "Aborting configuration ..."
17594 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/console scripts/gconsole scripts/bacula scripts/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/console.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/tconsole/Makefile 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/make_mysql_tables src/cats/drop_mysql_tables src/cats/update_mysql_tables src/cats/create_mysql_database src/cats/grant_mysql_privileges src/cats/make_sqlite_tables src/cats/drop_sqlite_tables src/cats/update_sqlite_tables src/cats/create_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/make_bdb_tables src/cats/drop_bdb_tables src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/update_bacula_tables src/findlib/Makefile src/tools/Makefile $PFILES"
17595 ac_config_commands="$ac_config_commands default"
17596 cat >confcache <<\_ACEOF
17597 # This file is a shell script that caches the results of configure
17598 # tests run on this system so they can be shared between configure
17599 # scripts and configure runs, see configure's option --config-cache.
17600 # It is not useful on other systems. If it contains results you don't
17601 # want to keep, you may remove or edit it.
17603 # config.status only pays attention to the cache file if you give it
17604 # the --recheck option to rerun configure.
17606 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17607 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17608 # following values.
17612 # The following way of writing the cache mishandles newlines in values,
17613 # but we know of no workaround that is simple, portable, and efficient.
17614 # So, don't put newlines in cache variables' values.
17615 # Ultrix sh set writes to stderr and can't be redirected directly,
17616 # and sets the high bit in the cache file unless we assign to the vars.
17619 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17621 # `set' does not quote correctly, so add quotes (double-quote
17622 # substitution turns \\\\ into \\, and sed turns \\ into \).
17625 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17628 # `set' quotes correctly as required by POSIX, so do not add quotes.
17630 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17637 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17639 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17641 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17642 if test -w $cache_file; then
17643 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17644 cat confcache >$cache_file
17646 echo "not updating unwritable cache $cache_file"
17651 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17652 # Let make expand exec_prefix.
17653 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17655 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17656 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17657 # trailing colons and then remove the whole line if VPATH becomes empty
17658 # (actually we leave an empty line to preserve line numbers).
17659 if test "x$srcdir" = x.; then
17660 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17661 s/:*\$(srcdir):*/:/;
17662 s/:*\${srcdir}:*/:/;
17664 s/^\([^=]*=[ ]*\):*/\1/;
17670 DEFS=-DHAVE_CONFIG_H
17674 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17675 # 1. Remove the extension, and $U if already installed.
17676 ac_i=`echo "$ac_i" |
17677 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17679 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17680 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17682 LIBOBJS=$ac_libobjs
17684 LTLIBOBJS=$ac_ltlibobjs
17688 : ${CONFIG_STATUS=./config.status}
17689 ac_clean_files_save=$ac_clean_files
17690 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17691 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17692 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17693 cat >$CONFIG_STATUS <<_ACEOF
17695 # Generated by $as_me.
17696 # Run this file to recreate the current configuration.
17697 # Compiler output produced by configure, useful for debugging
17698 # configure, is in config.log if it exists.
17701 ac_cs_recheck=false
17703 SHELL=\${CONFIG_SHELL-$SHELL}
17706 cat >>$CONFIG_STATUS <<\_ACEOF
17707 ## --------------------- ##
17708 ## M4sh Initialization. ##
17709 ## --------------------- ##
17711 # Be Bourne compatible
17712 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17715 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17716 # is contrary to our usage. Disable this feature.
17717 alias -g '${1+"$@"}'='"$@"'
17718 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17722 # Support unset when possible.
17723 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17730 # Work around bugs in pre-3.0 UWIN ksh.
17731 $as_unset ENV MAIL MAILPATH
17738 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17739 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17740 LC_TELEPHONE LC_TIME
17742 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17743 eval $as_var=C; export $as_var
17749 # Required to use basename.
17750 if expr a : '\(a\)' >/dev/null 2>&1; then
17756 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17757 as_basename=basename
17763 # Name of the executable.
17764 as_me=`$as_basename "$0" ||
17765 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17766 X"$0" : 'X\(//\)$' \| \
17767 X"$0" : 'X\(/\)$' \| \
17768 . : '\(.\)' 2>/dev/null ||
17770 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17771 /^X\/\(\/\/\)$/{ s//\1/; q; }
17772 /^X\/\(\/\).*/{ s//\1/; q; }
17776 # PATH needs CR, and LINENO needs CR and PATH.
17777 # Avoid depending upon Character Ranges.
17778 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17779 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17780 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17781 as_cr_digits='0123456789'
17782 as_cr_alnum=$as_cr_Letters$as_cr_digits
17784 # The user is always right.
17785 if test "${PATH_SEPARATOR+set}" != set; then
17786 echo "#! /bin/sh" >conf$$.sh
17787 echo "exit 0" >>conf$$.sh
17789 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17798 as_lineno_1=$LINENO
17799 as_lineno_2=$LINENO
17800 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17801 test "x$as_lineno_1" != "x$as_lineno_2" &&
17802 test "x$as_lineno_3" = "x$as_lineno_2" || {
17803 # Find who we are. Look in the path if we contain no path at all
17806 *[\\/]* ) as_myself=$0 ;;
17807 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17808 for as_dir in $PATH
17811 test -z "$as_dir" && as_dir=.
17812 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17817 # We did not find ourselves, most probably we were run as `sh COMMAND'
17818 # in which case we are not to be found in the path.
17819 if test "x$as_myself" = x; then
17822 if test ! -f "$as_myself"; then
17823 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17824 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17825 { (exit 1); exit 1; }; }
17827 case $CONFIG_SHELL in
17829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17830 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17833 test -z "$as_dir" && as_dir=.
17834 for as_base in sh bash ksh sh5; do
17837 if ("$as_dir/$as_base" -c '
17838 as_lineno_1=$LINENO
17839 as_lineno_2=$LINENO
17840 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17841 test "x$as_lineno_1" != "x$as_lineno_2" &&
17842 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17843 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17844 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17845 CONFIG_SHELL=$as_dir/$as_base
17846 export CONFIG_SHELL
17847 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17855 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17856 # uniformly replaced by the line number. The first 'sed' inserts a
17857 # line-number line before each line; the second 'sed' does the real
17858 # work. The second script uses 'N' to pair each line-number line
17859 # with the numbered line, and appends trailing '-' during
17860 # substitution so that $LINENO is not a special case at line end.
17861 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17862 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17863 sed '=' <$as_myself |
17868 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17871 s,^['$as_cr_digits']*\n,,
17872 ' >$as_me.lineno &&
17873 chmod +x $as_me.lineno ||
17874 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17875 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17876 { (exit 1); exit 1; }; }
17878 # Don't try to exec as it changes $[0], causing all sort of problems
17879 # (the dirname of $[0] is not the place where we might find the
17880 # original and so on. Autoconf is especially sensible to this).
17882 # Exit status is that of the last command.
17887 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17888 *c*,-n*) ECHO_N= ECHO_C='
17890 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17891 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17894 if expr a : '\(a\)' >/dev/null 2>&1; then
17900 rm -f conf$$ conf$$.exe conf$$.file
17902 if ln -s conf$$.file conf$$ 2>/dev/null; then
17903 # We could just check for DJGPP; but this test a) works b) is more generic
17904 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17905 if test -f conf$$.exe; then
17906 # Don't use ln at all; we don't have any links
17911 elif ln conf$$.file conf$$ 2>/dev/null; then
17916 rm -f conf$$ conf$$.exe conf$$.file
17918 if mkdir -p . 2>/dev/null; then
17924 as_executable_p="test -f"
17926 # Sed expression to map a string onto a valid CPP name.
17927 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17929 # Sed expression to map a string onto a valid variable name.
17930 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17934 # We need space, tab and new line, in precisely that order.
17944 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17945 # report actual input values of CONFIG_FILES etc. instead of their
17946 # values after options handling. Logging --version etc. is OK.
17950 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17951 ## Running $as_me. ##
17956 This file was extended by $as_me, which was
17957 generated by GNU Autoconf 2.57. Invocation command line was
17959 CONFIG_FILES = $CONFIG_FILES
17960 CONFIG_HEADERS = $CONFIG_HEADERS
17961 CONFIG_LINKS = $CONFIG_LINKS
17962 CONFIG_COMMANDS = $CONFIG_COMMANDS
17966 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17970 # Files that config.status was made for.
17971 if test -n "$ac_config_files"; then
17972 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17975 if test -n "$ac_config_headers"; then
17976 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17979 if test -n "$ac_config_links"; then
17980 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17983 if test -n "$ac_config_commands"; then
17984 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17987 cat >>$CONFIG_STATUS <<\_ACEOF
17990 \`$as_me' instantiates files from templates according to the
17991 current configuration.
17993 Usage: $0 [OPTIONS] [FILE]...
17995 -h, --help print this help, then exit
17996 -V, --version print version number, then exit
17997 -q, --quiet do not print progress messages
17998 -d, --debug don't remove temporary files
17999 --recheck update $as_me by reconfiguring in the same conditions
18000 --file=FILE[:TEMPLATE]
18001 instantiate the configuration file FILE
18002 --header=FILE[:TEMPLATE]
18003 instantiate the configuration header FILE
18005 Configuration files:
18008 Configuration headers:
18011 Configuration commands:
18014 Report bugs to <bug-autoconf@gnu.org>."
18017 cat >>$CONFIG_STATUS <<_ACEOF
18020 configured by $0, generated by GNU Autoconf 2.57,
18021 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18023 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18024 Free Software Foundation, Inc.
18025 This config.status script is free software; the Free Software Foundation
18026 gives unlimited permission to copy, distribute and modify it."
18031 cat >>$CONFIG_STATUS <<\_ACEOF
18032 # If no file are specified by the user, then we need to provide default
18033 # value. By we need to know if files were specified by the user.
18039 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18040 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18048 *) # This is not an option, so the user has probably given explicit
18051 ac_need_defaults=false;;
18055 # Handling of the options.
18057 cat >>$CONFIG_STATUS <<\_ACEOF
18058 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18060 --version | --vers* | -V )
18061 echo "$ac_cs_version"; exit 0 ;;
18063 # Conflict between --help and --header
18064 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18065 Try \`$0 --help' for more information." >&5
18066 echo "$as_me: error: ambiguous option: $1
18067 Try \`$0 --help' for more information." >&2;}
18068 { (exit 1); exit 1; }; };;
18069 --help | --hel | -h )
18070 echo "$ac_cs_usage"; exit 0 ;;
18071 --debug | --d* | -d )
18073 --file | --fil | --fi | --f )
18075 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18076 ac_need_defaults=false;;
18077 --header | --heade | --head | --hea )
18079 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18080 ac_need_defaults=false;;
18081 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18082 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18085 # This is an error.
18086 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18087 Try \`$0 --help' for more information." >&5
18088 echo "$as_me: error: unrecognized option: $1
18089 Try \`$0 --help' for more information." >&2;}
18090 { (exit 1); exit 1; }; } ;;
18092 *) ac_config_targets="$ac_config_targets $1" ;;
18098 ac_configure_extra_args=
18100 if $ac_cs_silent; then
18102 ac_configure_extra_args="$ac_configure_extra_args --silent"
18106 cat >>$CONFIG_STATUS <<_ACEOF
18107 if \$ac_cs_recheck; then
18108 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18109 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18118 cat >>$CONFIG_STATUS <<\_ACEOF
18119 for ac_config_target in $ac_config_targets
18121 case "$ac_config_target" in
18122 # Handling of arguments.
18123 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18124 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18125 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18126 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18127 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18128 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18129 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18130 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18131 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18132 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18133 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18134 "scripts/console" ) CONFIG_FILES="$CONFIG_FILES scripts/console" ;;
18135 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18136 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18137 "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18138 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18139 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18140 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18141 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18142 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18143 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18144 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18145 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18146 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18147 "src/console/console.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/console.conf" ;;
18148 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18149 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18150 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18151 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18152 "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18153 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18154 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18155 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18156 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18157 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18158 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18159 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18160 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18161 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18162 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18163 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18164 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18165 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18166 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18167 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18168 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18169 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18170 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18171 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18172 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18173 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18174 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18175 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18176 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18177 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18178 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18179 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18180 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18181 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18182 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18183 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18184 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18185 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18186 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18187 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18188 { (exit 1); exit 1; }; };;
18192 # If the user did not use the arguments to specify the items to instantiate,
18193 # then the envvar interface is used. Set only those that are not.
18194 # We use the long form for the default assignment because of an extremely
18195 # bizarre bug on SunOS 4.1.3.
18196 if $ac_need_defaults; then
18197 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18198 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18199 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18202 # Have a temporary directory for convenience. Make it in the build tree
18203 # simply because there is no reason to put it here, and in addition,
18204 # creating and moving files from /tmp can sometimes cause problems.
18205 # Create a temporary directory, and hook for its removal unless debugging.
18208 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18209 trap '{ (exit 1); exit 1; }' 1 2 13 15
18212 # Create a (secure) tmp directory for tmp files.
18215 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18216 test -n "$tmp" && test -d "$tmp"
18219 tmp=./confstat$$-$RANDOM
18220 (umask 077 && mkdir $tmp)
18223 echo "$me: cannot create a temporary directory in ." >&2
18224 { (exit 1); exit 1; }
18229 cat >>$CONFIG_STATUS <<_ACEOF
18232 # CONFIG_FILES section.
18235 # No need to generate the scripts if there are no CONFIG_FILES.
18236 # This happens for instance when ./config.status config.h
18237 if test -n "\$CONFIG_FILES"; then
18238 # Protect against being on the right side of a sed subst in config.status.
18239 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18240 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18241 s,@SHELL@,$SHELL,;t t
18242 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18243 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18244 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18245 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18246 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18247 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18248 s,@exec_prefix@,$exec_prefix,;t t
18249 s,@prefix@,$prefix,;t t
18250 s,@program_transform_name@,$program_transform_name,;t t
18251 s,@bindir@,$bindir,;t t
18252 s,@sbindir@,$sbindir,;t t
18253 s,@libexecdir@,$libexecdir,;t t
18254 s,@datadir@,$datadir,;t t
18255 s,@sysconfdir@,$sysconfdir,;t t
18256 s,@sharedstatedir@,$sharedstatedir,;t t
18257 s,@localstatedir@,$localstatedir,;t t
18258 s,@libdir@,$libdir,;t t
18259 s,@includedir@,$includedir,;t t
18260 s,@oldincludedir@,$oldincludedir,;t t
18261 s,@infodir@,$infodir,;t t
18262 s,@mandir@,$mandir,;t t
18263 s,@build_alias@,$build_alias,;t t
18264 s,@host_alias@,$host_alias,;t t
18265 s,@target_alias@,$target_alias,;t t
18266 s,@DEFS@,$DEFS,;t t
18267 s,@ECHO_C@,$ECHO_C,;t t
18268 s,@ECHO_N@,$ECHO_N,;t t
18269 s,@ECHO_T@,$ECHO_T,;t t
18270 s,@LIBS@,$LIBS,;t t
18271 s,@BUILD_DIR@,$BUILD_DIR,;t t
18272 s,@TRUEPRG@,$TRUEPRG,;t t
18273 s,@FALSEPRG@,$FALSEPRG,;t t
18274 s,@build@,$build,;t t
18275 s,@build_cpu@,$build_cpu,;t t
18276 s,@build_vendor@,$build_vendor,;t t
18277 s,@build_os@,$build_os,;t t
18278 s,@host@,$host,;t t
18279 s,@host_cpu@,$host_cpu,;t t
18280 s,@host_vendor@,$host_vendor,;t t
18281 s,@host_os@,$host_os,;t t
18282 s,@VERSION@,$VERSION,;t t
18283 s,@DATE@,$DATE,;t t
18284 s,@LSMDATE@,$LSMDATE,;t t
18286 s,@CFLAGS@,$CFLAGS,;t t
18287 s,@LDFLAGS@,$LDFLAGS,;t t
18288 s,@CPPFLAGS@,$CPPFLAGS,;t t
18289 s,@ac_ct_CC@,$ac_ct_CC,;t t
18290 s,@EXEEXT@,$EXEEXT,;t t
18291 s,@OBJEXT@,$OBJEXT,;t t
18293 s,@CXXFLAGS@,$CXXFLAGS,;t t
18294 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18296 s,@EGREP@,$EGREP,;t t
18297 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18298 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18299 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18300 s,@RANLIB@,$RANLIB,;t t
18301 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18307 s,@ECHO@,$ECHO,;t t
18311 s,@OPENSSL@,$OPENSSL,;t t
18313 s,@PKGCONFIG@,$PKGCONFIG,;t t
18314 s,@ARFLAGS@,$ARFLAGS,;t t
18315 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18316 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18317 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18318 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18319 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18320 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18321 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18322 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18323 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18324 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18325 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18326 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18327 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18328 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18329 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18330 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18331 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18332 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18333 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18334 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18335 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18336 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18337 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18338 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18339 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18340 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18341 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18342 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18343 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18344 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18345 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18346 s,@MSGFMT@,$MSGFMT,;t t
18347 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18348 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18349 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18350 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18351 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18352 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18353 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18354 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18355 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18356 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18357 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18358 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18359 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18360 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18361 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18362 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18363 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18364 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18365 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18366 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18367 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18368 s,@GNOME_DIR@,$GNOME_DIR,;t t
18369 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18370 s,@STATIC_FD@,$STATIC_FD,;t t
18371 s,@STATIC_SD@,$STATIC_SD,;t t
18372 s,@STATIC_DIR@,$STATIC_DIR,;t t
18373 s,@STATIC_CONS@,$STATIC_CONS,;t t
18374 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
18375 s,@ALL_DIRS@,$ALL_DIRS,;t t
18376 s,@CONS_INC@,$CONS_INC,;t t
18377 s,@CONS_LIBS@,$CONS_LIBS,;t t
18378 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18379 s,@READLINE_SRC@,$READLINE_SRC,;t t
18380 s,@working_dir@,$working_dir,;t t
18381 s,@scriptdir@,$scriptdir,;t t
18382 s,@dump_email@,$dump_email,;t t
18383 s,@job_email@,$job_email,;t t
18384 s,@smtp_host@,$smtp_host,;t t
18385 s,@piddir@,$piddir,;t t
18386 s,@subsysdir@,$subsysdir,;t t
18387 s,@baseport@,$baseport,;t t
18388 s,@dir_port@,$dir_port,;t t
18389 s,@fd_port@,$fd_port,;t t
18390 s,@sd_port@,$sd_port,;t t
18391 s,@dir_password@,$dir_password,;t t
18392 s,@fd_password@,$fd_password,;t t
18393 s,@sd_password@,$sd_password,;t t
18394 s,@dir_user@,$dir_user,;t t
18395 s,@dir_group@,$dir_group,;t t
18396 s,@sd_user@,$sd_user,;t t
18397 s,@sd_group@,$sd_group,;t t
18398 s,@fd_user@,$fd_user,;t t
18399 s,@fd_group@,$fd_group,;t t
18400 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18401 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18402 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18403 s,@cats@,$cats,;t t
18404 s,@DB_NAME@,$DB_NAME,;t t
18405 s,@GETCONF@,$GETCONF,;t t
18406 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18407 s,@X_CFLAGS@,$X_CFLAGS,;t t
18408 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18409 s,@X_LIBS@,$X_LIBS,;t t
18410 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18411 s,@LIBOBJS@,$LIBOBJS,;t t
18412 s,@ALLOCA@,$ALLOCA,;t t
18413 s,@FDLIBS@,$FDLIBS,;t t
18414 s,@DEBUG@,$DEBUG,;t t
18415 s,@DINCLUDE@,$DINCLUDE,;t t
18416 s,@DLIB@,$DLIB,;t t
18417 s,@DB_LIBS@,$DB_LIBS,;t t
18418 s,@WCFLAGS@,$WCFLAGS,;t t
18419 s,@WLDFLAGS@,$WLDFLAGS,;t t
18420 s,@OBJLIST@,$OBJLIST,;t t
18421 s,@hostname@,$hostname,;t t
18422 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18423 s,@PSCMD@,$PSCMD,;t t
18424 s,@WIN32@,$WIN32,;t t
18425 s,@DISTNAME@,$DISTNAME,;t t
18426 s,@DISTVER@,$DISTVER,;t t
18427 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18428 /@MCOMMON@/r $MCOMMON
18434 cat >>$CONFIG_STATUS <<\_ACEOF
18435 # Split the substitutions into bite-sized pieces for seds with
18436 # small command number limits, like on Digital OSF/1 and HP-UX.
18437 ac_max_sed_lines=48
18438 ac_sed_frag=1 # Number of current file.
18439 ac_beg=1 # First line for current file.
18440 ac_end=$ac_max_sed_lines # Line after last line for current file.
18443 while $ac_more_lines; do
18444 if test $ac_beg -gt 1; then
18445 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18447 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18449 if test ! -s $tmp/subs.frag; then
18450 ac_more_lines=false
18452 # The purpose of the label and of the branching condition is to
18453 # speed up the sed processing (if there are no `@' at all, there
18454 # is no need to browse any of the substitutions).
18455 # These are the two extra sed commands mentioned above.
18457 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18458 if test -z "$ac_sed_cmds"; then
18459 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18461 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18463 ac_sed_frag=`expr $ac_sed_frag + 1`
18465 ac_end=`expr $ac_end + $ac_max_sed_lines`
18468 if test -z "$ac_sed_cmds"; then
18471 fi # test -n "$CONFIG_FILES"
18474 cat >>$CONFIG_STATUS <<\_ACEOF
18475 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18476 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18478 - | *:- | *:-:* ) # input from stdin
18480 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18481 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18482 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18483 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18484 * ) ac_file_in=$ac_file.in ;;
18487 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18488 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18489 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18490 X"$ac_file" : 'X\(//\)[^/]' \| \
18491 X"$ac_file" : 'X\(//\)$' \| \
18492 X"$ac_file" : 'X\(/\)' \| \
18493 . : '\(.\)' 2>/dev/null ||
18495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18496 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18497 /^X\(\/\/\)$/{ s//\1/; q; }
18498 /^X\(\/\).*/{ s//\1/; q; }
18500 { if $as_mkdir_p; then
18505 while test ! -d "$as_dir"; do
18506 as_dirs="$as_dir $as_dirs"
18507 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18508 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18509 X"$as_dir" : 'X\(//\)[^/]' \| \
18510 X"$as_dir" : 'X\(//\)$' \| \
18511 X"$as_dir" : 'X\(/\)' \| \
18512 . : '\(.\)' 2>/dev/null ||
18514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18515 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18516 /^X\(\/\/\)$/{ s//\1/; q; }
18517 /^X\(\/\).*/{ s//\1/; q; }
18520 test ! -n "$as_dirs" || mkdir $as_dirs
18521 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18522 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18523 { (exit 1); exit 1; }; }; }
18527 if test "$ac_dir" != .; then
18528 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18529 # A "../" for each directory in $ac_dir_suffix.
18530 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18532 ac_dir_suffix= ac_top_builddir=
18536 .) # No --srcdir option. We are building in place.
18538 if test -z "$ac_top_builddir"; then
18541 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18543 [\\/]* | ?:[\\/]* ) # Absolute path.
18544 ac_srcdir=$srcdir$ac_dir_suffix;
18545 ac_top_srcdir=$srcdir ;;
18546 *) # Relative path.
18547 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18548 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18550 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18552 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18553 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18554 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18555 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18559 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18560 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18563 if test x"$ac_file" != x-; then
18564 { echo "$as_me:$LINENO: creating $ac_file" >&5
18565 echo "$as_me: creating $ac_file" >&6;}
18568 # Let's still pretend it is `configure' which instantiates (i.e., don't
18569 # use $as_me), people would be surprised to read:
18570 # /* config.h. Generated by config.status. */
18571 if test x"$ac_file" = x-; then
18574 configure_input="$ac_file. "
18576 configure_input=$configure_input"Generated from `echo $ac_file_in |
18577 sed 's,.*/,,'` by configure."
18579 # First look for the input files in the build tree, otherwise in the
18581 ac_file_inputs=`IFS=:
18582 for f in $ac_file_in; do
18584 -) echo $tmp/stdin ;;
18586 # Absolute (can't be DOS-style, as IFS=:)
18587 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18588 echo "$as_me: error: cannot find input file: $f" >&2;}
18589 { (exit 1); exit 1; }; }
18592 if test -f "$f"; then
18595 elif test -f "$srcdir/$f"; then
18600 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18601 echo "$as_me: error: cannot find input file: $f" >&2;}
18602 { (exit 1); exit 1; }; }
18605 done` || { (exit 1); exit 1; }
18607 cat >>$CONFIG_STATUS <<_ACEOF
18611 cat >>$CONFIG_STATUS <<\_ACEOF
18613 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18614 s,@configure_input@,$configure_input,;t t
18615 s,@srcdir@,$ac_srcdir,;t t
18616 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18617 s,@top_srcdir@,$ac_top_srcdir,;t t
18618 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18619 s,@builddir@,$ac_builddir,;t t
18620 s,@abs_builddir@,$ac_abs_builddir,;t t
18621 s,@top_builddir@,$ac_top_builddir,;t t
18622 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18623 s,@INSTALL@,$ac_INSTALL,;t t
18624 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18626 if test x"$ac_file" != x-; then
18627 mv $tmp/out $ac_file
18635 cat >>$CONFIG_STATUS <<\_ACEOF
18638 # CONFIG_HEADER section.
18641 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18642 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18644 # ac_d sets the value in "#define NAME VALUE" lines.
18645 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18646 ac_dB='[ ].*$,\1#\2'
18649 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18650 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18651 ac_uB='$,\1#\2define\3'
18655 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18656 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18658 - | *:- | *:-:* ) # input from stdin
18660 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18661 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18662 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18663 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18664 * ) ac_file_in=$ac_file.in ;;
18667 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18668 echo "$as_me: creating $ac_file" >&6;}
18670 # First look for the input files in the build tree, otherwise in the
18672 ac_file_inputs=`IFS=:
18673 for f in $ac_file_in; do
18675 -) echo $tmp/stdin ;;
18677 # Absolute (can't be DOS-style, as IFS=:)
18678 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18679 echo "$as_me: error: cannot find input file: $f" >&2;}
18680 { (exit 1); exit 1; }; }
18683 if test -f "$f"; then
18686 elif test -f "$srcdir/$f"; then
18691 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18692 echo "$as_me: error: cannot find input file: $f" >&2;}
18693 { (exit 1); exit 1; }; }
18696 done` || { (exit 1); exit 1; }
18697 # Remove the trailing spaces.
18698 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18702 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18703 # `conftest.undefs', that substitutes the proper values into
18704 # config.h.in to produce config.h. The first handles `#define'
18705 # templates, and the second `#undef' templates.
18706 # And first: Protect against being on the right side of a sed subst in
18707 # config.status. Protect against being in an unquoted here document
18708 # in config.status.
18709 rm -f conftest.defines conftest.undefs
18710 # Using a here document instead of a string reduces the quoting nightmare.
18711 # Putting comments in sed scripts is not portable.
18713 # `end' is used to avoid that the second main sed command (meant for
18714 # 0-ary CPP macros) applies to n-ary macro definitions.
18715 # See the Autoconf documentation for `clear'.
18716 cat >confdef2sed.sed <<\_ACEOF
18721 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18723 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18726 # If some macros were called several times there might be several times
18727 # the same #defines, which is useless. Nevertheless, we may not want to
18728 # sort them, since we want the *last* AC-DEFINE to be honored.
18729 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18730 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18731 rm -f confdef2sed.sed
18733 # This sed command replaces #undef with comments. This is necessary, for
18734 # example, in the case of _POSIX_SOURCE, which is predefined and required
18735 # on some systems where configure will not decide to define it.
18736 cat >>conftest.undefs <<\_ACEOF
18737 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18740 # Break up conftest.defines because some shells have a limit on the size
18741 # of here documents, and old seds have small limits too (100 cmds).
18742 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18743 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18744 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18745 echo ' :' >>$CONFIG_STATUS
18746 rm -f conftest.tail
18747 while grep . conftest.defines >/dev/null
18749 # Write a limited-size here document to $tmp/defines.sed.
18750 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18751 # Speed up: don't consider the non `#define' lines.
18752 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18753 # Work around the forget-to-reset-the-flag bug.
18754 echo 't clr' >>$CONFIG_STATUS
18755 echo ': clr' >>$CONFIG_STATUS
18756 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18758 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18760 mv $tmp/out $tmp/in
18762 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18763 rm -f conftest.defines
18764 mv conftest.tail conftest.defines
18766 rm -f conftest.defines
18767 echo ' fi # grep' >>$CONFIG_STATUS
18768 echo >>$CONFIG_STATUS
18770 # Break up conftest.undefs because some shells have a limit on the size
18771 # of here documents, and old seds have small limits too (100 cmds).
18772 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18773 rm -f conftest.tail
18774 while grep . conftest.undefs >/dev/null
18776 # Write a limited-size here document to $tmp/undefs.sed.
18777 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18778 # Speed up: don't consider the non `#undef'
18779 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18780 # Work around the forget-to-reset-the-flag bug.
18781 echo 't clr' >>$CONFIG_STATUS
18782 echo ': clr' >>$CONFIG_STATUS
18783 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18785 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18787 mv $tmp/out $tmp/in
18789 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18790 rm -f conftest.undefs
18791 mv conftest.tail conftest.undefs
18793 rm -f conftest.undefs
18795 cat >>$CONFIG_STATUS <<\_ACEOF
18796 # Let's still pretend it is `configure' which instantiates (i.e., don't
18797 # use $as_me), people would be surprised to read:
18798 # /* config.h. Generated by config.status. */
18799 if test x"$ac_file" = x-; then
18800 echo "/* Generated by configure. */" >$tmp/config.h
18802 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18804 cat $tmp/in >>$tmp/config.h
18806 if test x"$ac_file" != x-; then
18807 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18808 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18809 echo "$as_me: $ac_file is unchanged" >&6;}
18811 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18812 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18813 X"$ac_file" : 'X\(//\)[^/]' \| \
18814 X"$ac_file" : 'X\(//\)$' \| \
18815 X"$ac_file" : 'X\(/\)' \| \
18816 . : '\(.\)' 2>/dev/null ||
18818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18819 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18820 /^X\(\/\/\)$/{ s//\1/; q; }
18821 /^X\(\/\).*/{ s//\1/; q; }
18823 { if $as_mkdir_p; then
18828 while test ! -d "$as_dir"; do
18829 as_dirs="$as_dir $as_dirs"
18830 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18831 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18832 X"$as_dir" : 'X\(//\)[^/]' \| \
18833 X"$as_dir" : 'X\(//\)$' \| \
18834 X"$as_dir" : 'X\(/\)' \| \
18835 . : '\(.\)' 2>/dev/null ||
18837 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18838 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18839 /^X\(\/\/\)$/{ s//\1/; q; }
18840 /^X\(\/\).*/{ s//\1/; q; }
18843 test ! -n "$as_dirs" || mkdir $as_dirs
18844 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18845 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18846 { (exit 1); exit 1; }; }; }
18849 mv $tmp/config.h $ac_file
18853 rm -f $tmp/config.h
18857 cat >>$CONFIG_STATUS <<\_ACEOF
18860 # CONFIG_COMMANDS section.
18862 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18863 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18864 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18865 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18866 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18867 X"$ac_dest" : 'X\(//\)[^/]' \| \
18868 X"$ac_dest" : 'X\(//\)$' \| \
18869 X"$ac_dest" : 'X\(/\)' \| \
18870 . : '\(.\)' 2>/dev/null ||
18872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18874 /^X\(\/\/\)$/{ s//\1/; q; }
18875 /^X\(\/\).*/{ s//\1/; q; }
18879 if test "$ac_dir" != .; then
18880 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18881 # A "../" for each directory in $ac_dir_suffix.
18882 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18884 ac_dir_suffix= ac_top_builddir=
18888 .) # No --srcdir option. We are building in place.
18890 if test -z "$ac_top_builddir"; then
18893 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18895 [\\/]* | ?:[\\/]* ) # Absolute path.
18896 ac_srcdir=$srcdir$ac_dir_suffix;
18897 ac_top_srcdir=$srcdir ;;
18898 *) # Relative path.
18899 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18900 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18902 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18904 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18905 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18906 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18907 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18910 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18911 echo "$as_me: executing $ac_dest commands" >&6;}
18913 default ) (echo "Doing make of dependencies"; make depend;)
18919 cat >>$CONFIG_STATUS <<\_ACEOF
18921 { (exit 0); exit 0; }
18923 chmod +x $CONFIG_STATUS
18924 ac_clean_files=$ac_clean_files_save
18927 # configure is writing to config.log, and then calls config.status.
18928 # config.status does its own redirection, appending to config.log.
18929 # Unfortunately, on DOS this fails, as config.log is still kept open
18930 # by configure, so config.status won't be able to write to it; its
18931 # output is simply discarded. So we exec the FD to /dev/null,
18932 # effectively closing config.log, so it can be properly (re)opened and
18933 # appended to by config.status. When coming back to configure, we
18934 # need to make the FD available again.
18935 if test "$no_create" != yes; then
18937 ac_config_status_args=
18938 test "$silent" = yes &&
18939 ac_config_status_args="$ac_config_status_args --quiet"
18941 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18943 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18944 # would make configure fail if this is the last instruction.
18945 $ac_cs_success || { (exit 1); exit 1; }
18950 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
18951 chmod 755 console gconsole mtx-changer
18953 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
18954 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
18955 chmod 755 src/cats/create_mysql_database
18956 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
18957 chmod 755 src/cats/grant_mysql_privileges
18958 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
18959 chmod 755 src/cats/update_sqlite_tables
18960 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
18961 chmod 755 src/cats/update_mysql_tables
18962 chmod 755 src/cats/update_bacula_tables src/cats/update_mysql_tables
18963 chmod 755 src/cats/create_sqlite_database
18964 chmod 755 src/cats/sqlite
18965 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
18966 chmod 755 src/cats/create_bdb_database
18968 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
18969 largefile_support="yes"
18973 # A whole lot of hand springs to get the compiler version.
18974 # This is because gcc changed the output in version 3.0
18976 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18977 if test "x${CCVERSION}" = "x" ; then
18978 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18980 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18981 if test x"${CXXVERSION}" = x ; then
18982 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18985 if test "x${subsysdir}" = "x${sbindir}" ; then
18988 echo "You have set --sbindir and --with-subsys-dir"
18989 echo " both equal to: ${subsysdir} "
18990 echo " This is not permitted. Please reconfigure."
18991 echo "Aborting configuration ..."
18998 Configuration on `date`:
19000 Host: $host -- ${DISTNAME} ${DISTVER}
19001 Bacula version: ${VERSION} (${DATE})
19002 Source code location: ${srcdir}
19003 Install binaries: ${sbindir}
19004 Install config files: ${sysconfdir}
19005 Scripts directory: ${scriptdir}
19006 Working directory: ${working_dir}
19007 PID directory: ${piddir}
19008 Subsys directory: ${subsysdir}
19009 C Compiler: ${CC} ${CCVERSION}
19010 C++ Compiler: ${CXX} ${CXXVERSION}
19011 Compiler flags: ${WCFLAGS} ${CFLAGS}
19012 Linker flags: ${WLDFLAGS} ${LDFLAGS}
19014 Statically Linked Tools: ${support_static_tools}
19015 Statically Linked FD: ${support_static_fd}
19016 Statically Linked SD: ${support_static_sd}
19017 Statically Linked DIR: ${support_static_dir}
19018 Statically Linked CONS: ${support_static_cons}
19019 Database type: ${db_name}
19020 Database lib: ${DB_LIBS}
19022 Job Output Email: ${job_email}
19023 Traceback Email: ${dump_email}
19024 SMTP Host Address: ${smtp_host}
19026 Director Port: ${dir_port}
19027 File daemon Port: ${fd_port}
19028 Storage daemon Port: ${sd_port}
19030 Director User: ${dir_user}
19031 Director Group: ${dir_group}
19032 Storage Daemon User: ${dir_user}
19033 Storage DaemonGroup: ${dir_group}
19034 File Daemon User: ${dir_user}
19035 File Daemon Group: ${dir_group}
19037 SQL binaries Directory ${SQL_BINDIR}
19039 Large file support: $largefile_support
19040 readline support: ${got_readline} ${PRTREADLINE_SRC}
19041 TCP Wrappers support: ${TCPW_MSG}
19042 ZLIB support: ${have_zlib}
19043 enable-smartalloc: ${support_smartalloc}
19044 enable-gnome: ${support_gnome} ${gnome_version}
19045 client-only: ${build_client_only}
19052 # cweb support: ${got_cweb} ${CWEB_SRC}
19053 # gmp support: ${got_gmp} ${GMP_SRC}