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 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 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
890 Which DBMS do you want to use (please select only one):
891 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
892 install directory, default is to search through
893 a number of common places for the MySQL files.
895 Which DBMS do you want to use (please select only one):
896 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
897 install directory, default is to search through
898 a number of common places for the MySQL files.
900 Which DBMS do you want to use (please select only one):
901 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
902 install directory, default is to search through
903 a number of common places for the SQLite files.
904 --with-x use the X Window System
906 Some influential environment variables:
907 CC C compiler command
908 CFLAGS C compiler flags
909 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
910 nonstandard directory <lib dir>
911 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
912 headers in a nonstandard directory <include dir>
913 CXX C++ compiler command
914 CXXFLAGS C++ compiler flags
917 Use these variables to override the choices made by `configure' or to help
918 it to find libraries and programs with nonstandard names/locations.
923 if test "$ac_init_help" = "recursive"; then
924 # If there are subdirs, report their specific --help.
926 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
927 test -d $ac_dir || continue
930 if test "$ac_dir" != .; then
931 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
932 # A "../" for each directory in $ac_dir_suffix.
933 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
935 ac_dir_suffix= ac_top_builddir=
939 .) # No --srcdir option. We are building in place.
941 if test -z "$ac_top_builddir"; then
944 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
946 [\\/]* | ?:[\\/]* ) # Absolute path.
947 ac_srcdir=$srcdir$ac_dir_suffix;
948 ac_top_srcdir=$srcdir ;;
950 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
951 ac_top_srcdir=$ac_top_builddir$srcdir ;;
953 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
955 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
956 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
957 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
958 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
961 # Check for guested configure; otherwise get Cygnus style configure.
962 if test -f $ac_srcdir/configure.gnu; then
964 $SHELL $ac_srcdir/configure.gnu --help=recursive
965 elif test -f $ac_srcdir/configure; then
967 $SHELL $ac_srcdir/configure --help=recursive
968 elif test -f $ac_srcdir/configure.ac ||
969 test -f $ac_srcdir/configure.in; then
973 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
979 test -n "$ac_init_help" && exit 0
980 if $ac_init_version; then
983 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
984 Free Software Foundation, Inc.
985 This configure script is free software; the Free Software Foundation
986 gives unlimited permission to copy, distribute and modify it.
992 This file contains any messages produced by compilers while
993 running configure, to aid debugging if configure makes a mistake.
995 It was created by $as_me, which was
996 generated by GNU Autoconf 2.57. Invocation command line was
1007 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1013 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1014 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1016 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1017 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1018 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1019 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1020 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1021 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1022 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1046 # Keep a trace of the command line.
1047 # Strip out --no-create and --no-recursion so they do not pile up.
1048 # Strip out --silent because we don't want to record it for future runs.
1049 # Also quote any args containing shell meta-characters.
1050 # Make two passes to allow for proper duplicate-argument suppression.
1055 ac_must_keep_next=false
1061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1063 | -silent | --silent | --silen | --sile | --sil)
1065 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1066 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1069 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1071 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1072 if test $ac_must_keep_next = true; then
1073 ac_must_keep_next=false # Got value, back to normal.
1076 *=* | --config-cache | -C | -disable-* | --disable-* \
1077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1079 | -with-* | --with-* | -without-* | --without-* | --x)
1080 case "$ac_configure_args0 " in
1081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1084 -* ) ac_must_keep_next=true ;;
1087 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1088 # Get rid of the leading space.
1094 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1095 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1097 # When interrupted or exit'd, cleanup temporary files, and complete
1098 # config.log. We remove comments because anyway the quotes in there
1099 # would cause problems or look ugly.
1100 # WARNING: Be sure not to use single quotes in there, as some shells,
1101 # such as our DU 5.0 friend, will then `close' the trap.
1102 trap 'exit_status=$?
1103 # Save into config.log some information that might help in debugging.
1108 ## ---------------- ##
1109 ## Cache variables. ##
1110 ## ---------------- ##
1113 # The following way of writing the cache mishandles newlines in values,
1116 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1119 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1120 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1124 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1131 ## ----------------- ##
1132 ## Output variables. ##
1133 ## ----------------- ##
1136 for ac_var in $ac_subst_vars
1138 eval ac_val=$`echo $ac_var`
1139 echo "$ac_var='"'"'$ac_val'"'"'"
1143 if test -n "$ac_subst_files"; then
1150 for ac_var in $ac_subst_files
1152 eval ac_val=$`echo $ac_var`
1153 echo "$ac_var='"'"'$ac_val'"'"'"
1158 if test -s confdefs.h; then
1165 sed "/^$/d" confdefs.h | sort
1168 test "$ac_signal" != 0 &&
1169 echo "$as_me: caught signal $ac_signal"
1170 echo "$as_me: exit $exit_status"
1172 rm -f core core.* *.core &&
1173 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1176 for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1181 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1182 rm -rf conftest* confdefs.h
1183 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1186 # Predefined preprocessor variables.
1188 cat >>confdefs.h <<_ACEOF
1189 #define PACKAGE_NAME "$PACKAGE_NAME"
1193 cat >>confdefs.h <<_ACEOF
1194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1198 cat >>confdefs.h <<_ACEOF
1199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1203 cat >>confdefs.h <<_ACEOF
1204 #define PACKAGE_STRING "$PACKAGE_STRING"
1208 cat >>confdefs.h <<_ACEOF
1209 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1213 # Let the site file select an alternate cache file if it wants to.
1214 # Prefer explicitly selected file to automatically selected ones.
1215 if test -z "$CONFIG_SITE"; then
1216 if test "x$prefix" != xNONE; then
1217 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1219 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1222 for ac_site_file in $CONFIG_SITE; do
1223 if test -r "$ac_site_file"; then
1224 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1225 echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's/^/| /' "$ac_site_file" >&5
1231 if test -r "$cache_file"; then
1232 # Some versions of bash will fail to source /dev/null (special
1233 # files actually), so we avoid doing that.
1234 if test -f "$cache_file"; then
1235 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1236 echo "$as_me: loading cache $cache_file" >&6;}
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244 echo "$as_me: creating cache $cache_file" >&6;}
1248 # Check that the precious variables saved in the cache have kept the same
1250 ac_cache_corrupted=false
1251 for ac_var in `(set) 2>&1 |
1252 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1253 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1254 eval ac_new_set=\$ac_env_${ac_var}_set
1255 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1256 eval ac_new_val="\$ac_env_${ac_var}_value"
1257 case $ac_old_set,$ac_new_set in
1259 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1260 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1261 ac_cache_corrupted=: ;;
1263 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1264 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1265 ac_cache_corrupted=: ;;
1268 if test "x$ac_old_val" != "x$ac_new_val"; then
1269 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1270 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272 echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274 echo "$as_me: current value: $ac_new_val" >&2;}
1275 ac_cache_corrupted=:
1278 # Pass precious variables to config.status.
1279 if test "$ac_new_set" = set; then
1281 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1282 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1283 *) ac_arg=$ac_var=$ac_new_val ;;
1285 case " $ac_configure_args " in
1286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1287 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1291 if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1294 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1295 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1300 ac_cpp='$CPP $CPPFLAGS'
1301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1329 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1330 if test -f $ac_dir/install-sh; then
1332 ac_install_sh="$ac_aux_dir/install-sh -c"
1334 elif test -f $ac_dir/install.sh; then
1336 ac_install_sh="$ac_aux_dir/install.sh -c"
1338 elif test -f $ac_dir/shtool; then
1340 ac_install_sh="$ac_aux_dir/shtool install -c"
1344 if test -z "$ac_aux_dir"; then
1345 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1346 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1347 { (exit 1); exit 1; }; }
1349 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1350 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1351 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1353 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1361 # Extract the first word of "$ac_prog", so it can be a program name with args.
1362 set dummy $ac_prog; ac_word=$2
1363 echo "$as_me:$LINENO: checking for $ac_word" >&5
1364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1365 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1366 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1377 test -z "$as_dir" && as_dir=.
1378 for ac_exec_ext in '' $ac_executable_extensions; do
1379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1380 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1390 TRUEPRG=$ac_cv_path_TRUEPRG
1392 if test -n "$TRUEPRG"; then
1393 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1394 echo "${ECHO_T}$TRUEPRG" >&6
1396 echo "$as_me:$LINENO: result: no" >&5
1397 echo "${ECHO_T}no" >&6
1400 test -n "$TRUEPRG" && break
1402 test -n "$TRUEPRG" || TRUEPRG=":"
1404 for ac_prog in false
1406 # Extract the first word of "$ac_prog", so it can be a program name with args.
1407 set dummy $ac_prog; ac_word=$2
1408 echo "$as_me:$LINENO: checking for $ac_word" >&5
1409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1410 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1411 echo $ECHO_N "(cached) $ECHO_C" >&6
1415 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1422 test -z "$as_dir" && as_dir=.
1423 for ac_exec_ext in '' $ac_executable_extensions; do
1424 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1425 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1435 FALSEPRG=$ac_cv_path_FALSEPRG
1437 if test -n "$FALSEPRG"; then
1438 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1439 echo "${ECHO_T}$FALSEPRG" >&6
1441 echo "$as_me:$LINENO: result: no" >&5
1442 echo "${ECHO_T}no" >&6
1445 test -n "$FALSEPRG" && break
1447 test -n "$FALSEPRG" || FALSEPRG=":"
1450 # Make sure we can run config.sub.
1451 $ac_config_sub sun4 >/dev/null 2>&1 ||
1452 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1453 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1454 { (exit 1); exit 1; }; }
1456 echo "$as_me:$LINENO: checking build system type" >&5
1457 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1458 if test "${ac_cv_build+set}" = set; then
1459 echo $ECHO_N "(cached) $ECHO_C" >&6
1461 ac_cv_build_alias=$build_alias
1462 test -z "$ac_cv_build_alias" &&
1463 ac_cv_build_alias=`$ac_config_guess`
1464 test -z "$ac_cv_build_alias" &&
1465 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1466 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1467 { (exit 1); exit 1; }; }
1468 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1469 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1470 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1471 { (exit 1); exit 1; }; }
1474 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1475 echo "${ECHO_T}$ac_cv_build" >&6
1477 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1478 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1479 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1482 echo "$as_me:$LINENO: checking host system type" >&5
1483 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1484 if test "${ac_cv_host+set}" = set; then
1485 echo $ECHO_N "(cached) $ECHO_C" >&6
1487 ac_cv_host_alias=$host_alias
1488 test -z "$ac_cv_host_alias" &&
1489 ac_cv_host_alias=$ac_cv_build_alias
1490 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1491 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1492 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1493 { (exit 1); exit 1; }; }
1496 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1497 echo "${ECHO_T}$ac_cv_host" >&6
1499 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1500 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1501 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1505 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1506 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1507 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1508 echo "configuring for bacula $VERSION ($DATE)"
1513 ac_cpp='$CPP $CPPFLAGS'
1514 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1515 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1516 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1517 if test -n "$ac_tool_prefix"; then
1518 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1519 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1520 echo "$as_me:$LINENO: checking for $ac_word" >&5
1521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522 if test "${ac_cv_prog_CC+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1525 if test -n "$CC"; then
1526 ac_cv_prog_CC="$CC" # Let the user override the test.
1528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1532 test -z "$as_dir" && as_dir=.
1533 for ac_exec_ext in '' $ac_executable_extensions; do
1534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1535 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1545 if test -n "$CC"; then
1546 echo "$as_me:$LINENO: result: $CC" >&5
1547 echo "${ECHO_T}$CC" >&6
1549 echo "$as_me:$LINENO: result: no" >&5
1550 echo "${ECHO_T}no" >&6
1554 if test -z "$ac_cv_prog_CC"; then
1556 # Extract the first word of "gcc", so it can be a program name with args.
1557 set dummy gcc; ac_word=$2
1558 echo "$as_me:$LINENO: checking for $ac_word" >&5
1559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1560 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1561 echo $ECHO_N "(cached) $ECHO_C" >&6
1563 if test -n "$ac_ct_CC"; then
1564 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1570 test -z "$as_dir" && as_dir=.
1571 for ac_exec_ext in '' $ac_executable_extensions; do
1572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1573 ac_cv_prog_ac_ct_CC="gcc"
1574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1582 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1583 if test -n "$ac_ct_CC"; then
1584 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1585 echo "${ECHO_T}$ac_ct_CC" >&6
1587 echo "$as_me:$LINENO: result: no" >&5
1588 echo "${ECHO_T}no" >&6
1596 if test -z "$CC"; then
1597 if test -n "$ac_tool_prefix"; then
1598 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1599 set dummy ${ac_tool_prefix}cc; ac_word=$2
1600 echo "$as_me:$LINENO: checking for $ac_word" >&5
1601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1602 if test "${ac_cv_prog_CC+set}" = set; then
1603 echo $ECHO_N "(cached) $ECHO_C" >&6
1605 if test -n "$CC"; then
1606 ac_cv_prog_CC="$CC" # Let the user override the test.
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 test -z "$as_dir" && as_dir=.
1613 for ac_exec_ext in '' $ac_executable_extensions; do
1614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1615 ac_cv_prog_CC="${ac_tool_prefix}cc"
1616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1625 if test -n "$CC"; then
1626 echo "$as_me:$LINENO: result: $CC" >&5
1627 echo "${ECHO_T}$CC" >&6
1629 echo "$as_me:$LINENO: result: no" >&5
1630 echo "${ECHO_T}no" >&6
1634 if test -z "$ac_cv_prog_CC"; then
1636 # Extract the first word of "cc", so it can be a program name with args.
1637 set dummy cc; ac_word=$2
1638 echo "$as_me:$LINENO: checking for $ac_word" >&5
1639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1640 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1641 echo $ECHO_N "(cached) $ECHO_C" >&6
1643 if test -n "$ac_ct_CC"; then
1644 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 test -z "$as_dir" && as_dir=.
1651 for ac_exec_ext in '' $ac_executable_extensions; do
1652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1653 ac_cv_prog_ac_ct_CC="cc"
1654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1663 if test -n "$ac_ct_CC"; then
1664 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1665 echo "${ECHO_T}$ac_ct_CC" >&6
1667 echo "$as_me:$LINENO: result: no" >&5
1668 echo "${ECHO_T}no" >&6
1677 if test -z "$CC"; then
1678 # Extract the first word of "cc", so it can be a program name with args.
1679 set dummy cc; ac_word=$2
1680 echo "$as_me:$LINENO: checking for $ac_word" >&5
1681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1682 if test "${ac_cv_prog_CC+set}" = set; then
1683 echo $ECHO_N "(cached) $ECHO_C" >&6
1685 if test -n "$CC"; then
1686 ac_cv_prog_CC="$CC" # Let the user override the test.
1689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1693 test -z "$as_dir" && as_dir=.
1694 for ac_exec_ext in '' $ac_executable_extensions; do
1695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1696 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1697 ac_prog_rejected=yes
1701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1707 if test $ac_prog_rejected = yes; then
1708 # We found a bogon in the path, so make sure we never use it.
1709 set dummy $ac_cv_prog_CC
1711 if test $# != 0; then
1712 # We chose a different compiler from the bogus one.
1713 # However, it has the same basename, so the bogon will be chosen
1714 # first if we set CC to just the basename; use the full file name.
1716 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1722 if test -n "$CC"; then
1723 echo "$as_me:$LINENO: result: $CC" >&5
1724 echo "${ECHO_T}$CC" >&6
1726 echo "$as_me:$LINENO: result: no" >&5
1727 echo "${ECHO_T}no" >&6
1731 if test -z "$CC"; then
1732 if test -n "$ac_tool_prefix"; then
1735 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1736 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1737 echo "$as_me:$LINENO: checking for $ac_word" >&5
1738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1739 if test "${ac_cv_prog_CC+set}" = set; then
1740 echo $ECHO_N "(cached) $ECHO_C" >&6
1742 if test -n "$CC"; then
1743 ac_cv_prog_CC="$CC" # Let the user override the test.
1745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749 test -z "$as_dir" && as_dir=.
1750 for ac_exec_ext in '' $ac_executable_extensions; do
1751 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1752 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1753 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1762 if test -n "$CC"; then
1763 echo "$as_me:$LINENO: result: $CC" >&5
1764 echo "${ECHO_T}$CC" >&6
1766 echo "$as_me:$LINENO: result: no" >&5
1767 echo "${ECHO_T}no" >&6
1770 test -n "$CC" && break
1773 if test -z "$CC"; then
1777 # Extract the first word of "$ac_prog", so it can be a program name with args.
1778 set dummy $ac_prog; ac_word=$2
1779 echo "$as_me:$LINENO: checking for $ac_word" >&5
1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1781 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1782 echo $ECHO_N "(cached) $ECHO_C" >&6
1784 if test -n "$ac_ct_CC"; then
1785 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1791 test -z "$as_dir" && as_dir=.
1792 for ac_exec_ext in '' $ac_executable_extensions; do
1793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1794 ac_cv_prog_ac_ct_CC="$ac_prog"
1795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1804 if test -n "$ac_ct_CC"; then
1805 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1806 echo "${ECHO_T}$ac_ct_CC" >&6
1808 echo "$as_me:$LINENO: result: no" >&5
1809 echo "${ECHO_T}no" >&6
1812 test -n "$ac_ct_CC" && break
1821 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1822 See \`config.log' for more details." >&5
1823 echo "$as_me: error: no acceptable C compiler found in \$PATH
1824 See \`config.log' for more details." >&2;}
1825 { (exit 1); exit 1; }; }
1827 # Provide some information about the compiler.
1828 echo "$as_me:$LINENO:" \
1829 "checking for C compiler version" >&5
1830 ac_compiler=`set X $ac_compile; echo $2`
1831 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1832 (eval $ac_compiler --version </dev/null >&5) 2>&5
1834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835 (exit $ac_status); }
1836 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1837 (eval $ac_compiler -v </dev/null >&5) 2>&5
1839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840 (exit $ac_status); }
1841 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1842 (eval $ac_compiler -V </dev/null >&5) 2>&5
1844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845 (exit $ac_status); }
1847 cat >conftest.$ac_ext <<_ACEOF
1848 #line $LINENO "configure"
1851 cat confdefs.h >>conftest.$ac_ext
1852 cat >>conftest.$ac_ext <<_ACEOF
1853 /* end confdefs.h. */
1863 ac_clean_files_save=$ac_clean_files
1864 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1865 # Try to create an executable without -o first, disregard a.out.
1866 # It will help us diagnose broken compilers, and finding out an intuition
1868 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1869 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1870 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1871 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1872 (eval $ac_link_default) 2>&5
1874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1875 (exit $ac_status); }; then
1876 # Find the output, starting from the most likely. This scheme is
1877 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1880 # Be careful to initialize this variable, since it used to be cached.
1881 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1883 # b.out is created by i960 compilers.
1884 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1886 test -f "$ac_file" || continue
1888 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1891 # This is the source file.
1894 # We found the default executable, but exeext='' is most
1898 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1899 # FIXME: I believe we export ac_cv_exeext for Libtool,
1900 # but it would be cool to find out if it's true. Does anybody
1901 # maintain Libtool? --akim.
1909 echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1912 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1913 See \`config.log' for more details." >&5
1914 echo "$as_me: error: C compiler cannot create executables
1915 See \`config.log' for more details." >&2;}
1916 { (exit 77); exit 77; }; }
1919 ac_exeext=$ac_cv_exeext
1920 echo "$as_me:$LINENO: result: $ac_file" >&5
1921 echo "${ECHO_T}$ac_file" >&6
1923 # Check the compiler produces executables we can run. If not, either
1924 # the compiler is broken, or we cross compile.
1925 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1926 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1927 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1928 # If not cross compiling, check that we can run a simple program.
1929 if test "$cross_compiling" != yes; then
1930 if { ac_try='./$ac_file'
1931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1935 (exit $ac_status); }; }; then
1938 if test "$cross_compiling" = maybe; then
1941 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1942 If you meant to cross compile, use \`--host'.
1943 See \`config.log' for more details." >&5
1944 echo "$as_me: error: cannot run C compiled programs.
1945 If you meant to cross compile, use \`--host'.
1946 See \`config.log' for more details." >&2;}
1947 { (exit 1); exit 1; }; }
1951 echo "$as_me:$LINENO: result: yes" >&5
1952 echo "${ECHO_T}yes" >&6
1954 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1955 ac_clean_files=$ac_clean_files_save
1956 # Check the compiler produces executables we can run. If not, either
1957 # the compiler is broken, or we cross compile.
1958 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1959 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1960 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1961 echo "${ECHO_T}$cross_compiling" >&6
1963 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1964 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1966 (eval $ac_link) 2>&5
1968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969 (exit $ac_status); }; then
1970 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1971 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1972 # work properly (i.e., refer to `conftest.exe'), while it won't with
1974 for ac_file in conftest.exe conftest conftest.*; do
1975 test -f "$ac_file" || continue
1977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1978 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1985 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1986 See \`config.log' for more details." >&5
1987 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1988 See \`config.log' for more details." >&2;}
1989 { (exit 1); exit 1; }; }
1992 rm -f conftest$ac_cv_exeext
1993 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1994 echo "${ECHO_T}$ac_cv_exeext" >&6
1996 rm -f conftest.$ac_ext
1997 EXEEXT=$ac_cv_exeext
1999 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2000 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2001 if test "${ac_cv_objext+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2004 cat >conftest.$ac_ext <<_ACEOF
2005 #line $LINENO "configure"
2008 cat confdefs.h >>conftest.$ac_ext
2009 cat >>conftest.$ac_ext <<_ACEOF
2010 /* end confdefs.h. */
2020 rm -f conftest.o conftest.obj
2021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2022 (eval $ac_compile) 2>&5
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }; then
2026 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2028 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2029 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2034 echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2037 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2038 See \`config.log' for more details." >&5
2039 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2040 See \`config.log' for more details." >&2;}
2041 { (exit 1); exit 1; }; }
2044 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2046 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2047 echo "${ECHO_T}$ac_cv_objext" >&6
2048 OBJEXT=$ac_cv_objext
2050 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2051 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2052 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2053 echo $ECHO_N "(cached) $ECHO_C" >&6
2055 cat >conftest.$ac_ext <<_ACEOF
2056 #line $LINENO "configure"
2059 cat confdefs.h >>conftest.$ac_ext
2060 cat >>conftest.$ac_ext <<_ACEOF
2061 /* end confdefs.h. */
2074 rm -f conftest.$ac_objext
2075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2076 (eval $ac_compile) 2>&5
2078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079 (exit $ac_status); } &&
2080 { ac_try='test -s conftest.$ac_objext'
2081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }; }; then
2088 echo "$as_me: failed program was:" >&5
2089 sed 's/^/| /' conftest.$ac_ext >&5
2093 rm -f conftest.$ac_objext conftest.$ac_ext
2094 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2097 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2098 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2099 GCC=`test $ac_compiler_gnu = yes && echo yes`
2100 ac_test_CFLAGS=${CFLAGS+set}
2101 ac_save_CFLAGS=$CFLAGS
2103 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2104 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2105 if test "${ac_cv_prog_cc_g+set}" = set; then
2106 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 cat >conftest.$ac_ext <<_ACEOF
2109 #line $LINENO "configure"
2112 cat confdefs.h >>conftest.$ac_ext
2113 cat >>conftest.$ac_ext <<_ACEOF
2114 /* end confdefs.h. */
2124 rm -f conftest.$ac_objext
2125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2126 (eval $ac_compile) 2>&5
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); } &&
2130 { ac_try='test -s conftest.$ac_objext'
2131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); }; }; then
2138 echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2143 rm -f conftest.$ac_objext conftest.$ac_ext
2145 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2146 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2147 if test "$ac_test_CFLAGS" = set; then
2148 CFLAGS=$ac_save_CFLAGS
2149 elif test $ac_cv_prog_cc_g = yes; then
2150 if test "$GCC" = yes; then
2156 if test "$GCC" = yes; then
2162 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2163 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2164 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 ac_cv_prog_cc_stdc=no
2169 cat >conftest.$ac_ext <<_ACEOF
2170 #line $LINENO "configure"
2173 cat confdefs.h >>conftest.$ac_ext
2174 cat >>conftest.$ac_ext <<_ACEOF
2175 /* end confdefs.h. */
2178 #include <sys/types.h>
2179 #include <sys/stat.h>
2180 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2181 struct buf { int x; };
2182 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2183 static char *e (p, i)
2189 static char *f (char * (*g) (char **, int), char **p, ...)
2194 s = g (p, va_arg (v,int));
2198 int test (int i, double x);
2199 struct s1 {int (*f) (int a);};
2200 struct s2 {int (*f) (double a);};
2201 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2207 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2212 # Don't try gcc -ansi; that turns off useful extensions and
2213 # breaks some systems' header files.
2214 # AIX -qlanglvl=ansi
2215 # Ultrix and OSF/1 -std1
2216 # HP-UX 10.20 and later -Ae
2217 # HP-UX older versions -Aa -D_HPUX_SOURCE
2218 # SVR4 -Xc -D__EXTENSIONS__
2219 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2221 CC="$ac_save_CC $ac_arg"
2222 rm -f conftest.$ac_objext
2223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2224 (eval $ac_compile) 2>&5
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } &&
2228 { ac_try='test -s conftest.$ac_objext'
2229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); }; }; then
2234 ac_cv_prog_cc_stdc=$ac_arg
2237 echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2241 rm -f conftest.$ac_objext
2243 rm -f conftest.$ac_ext conftest.$ac_objext
2248 case "x$ac_cv_prog_cc_stdc" in
2250 echo "$as_me:$LINENO: result: none needed" >&5
2251 echo "${ECHO_T}none needed" >&6 ;;
2253 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2254 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2255 CC="$CC $ac_cv_prog_cc_stdc" ;;
2258 # Some people use a C++ compiler to compile C. Since we use `exit',
2259 # in C++ we need to declare it. In case someone uses the same compiler
2260 # for both compiling C and C++ we need to have the C++ compiler decide
2261 # the declaration of exit, since it's the most demanding environment.
2262 cat >conftest.$ac_ext <<_ACEOF
2267 rm -f conftest.$ac_objext
2268 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2269 (eval $ac_compile) 2>&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); } &&
2273 { ac_try='test -s conftest.$ac_objext'
2274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
2279 for ac_declaration in \
2281 '#include <stdlib.h>' \
2282 'extern "C" void std::exit (int) throw (); using std::exit;' \
2283 'extern "C" void std::exit (int); using std::exit;' \
2284 'extern "C" void exit (int) throw ();' \
2285 'extern "C" void exit (int);' \
2288 cat >conftest.$ac_ext <<_ACEOF
2289 #line $LINENO "configure"
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h. */
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>&5
2309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2310 (exit $ac_status); } &&
2311 { ac_try='test -s conftest.$ac_objext'
2312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); }; }; then
2319 echo "$as_me: failed program was:" >&5
2320 sed 's/^/| /' conftest.$ac_ext >&5
2324 rm -f conftest.$ac_objext conftest.$ac_ext
2325 cat >conftest.$ac_ext <<_ACEOF
2326 #line $LINENO "configure"
2329 cat confdefs.h >>conftest.$ac_ext
2330 cat >>conftest.$ac_ext <<_ACEOF
2331 /* end confdefs.h. */
2341 rm -f conftest.$ac_objext
2342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2343 (eval $ac_compile) 2>&5
2345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2346 (exit $ac_status); } &&
2347 { ac_try='test -s conftest.$ac_objext'
2348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); }; }; then
2355 echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2359 rm -f conftest.$ac_objext conftest.$ac_ext
2362 if test -n "$ac_declaration"; then
2363 echo '#ifdef __cplusplus' >>confdefs.h
2364 echo $ac_declaration >>confdefs.h
2365 echo '#endif' >>confdefs.h
2369 echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2373 rm -f conftest.$ac_objext conftest.$ac_ext
2375 ac_cpp='$CPP $CPPFLAGS'
2376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2381 ac_cpp='$CXXCPP $CPPFLAGS'
2382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2385 if test -n "$ac_tool_prefix"; then
2386 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2390 echo "$as_me:$LINENO: checking for $ac_word" >&5
2391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2392 if test "${ac_cv_prog_CXX+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2395 if test -n "$CXX"; then
2396 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 test -z "$as_dir" && as_dir=.
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2405 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2415 if test -n "$CXX"; then
2416 echo "$as_me:$LINENO: result: $CXX" >&5
2417 echo "${ECHO_T}$CXX" >&6
2419 echo "$as_me:$LINENO: result: no" >&5
2420 echo "${ECHO_T}no" >&6
2423 test -n "$CXX" && break
2426 if test -z "$CXX"; then
2428 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2430 # Extract the first word of "$ac_prog", so it can be a program name with args.
2431 set dummy $ac_prog; ac_word=$2
2432 echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2434 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2437 if test -n "$ac_ct_CXX"; then
2438 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2447 ac_cv_prog_ac_ct_CXX="$ac_prog"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2457 if test -n "$ac_ct_CXX"; then
2458 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2459 echo "${ECHO_T}$ac_ct_CXX" >&6
2461 echo "$as_me:$LINENO: result: no" >&5
2462 echo "${ECHO_T}no" >&6
2465 test -n "$ac_ct_CXX" && break
2467 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2473 # Provide some information about the compiler.
2474 echo "$as_me:$LINENO:" \
2475 "checking for C++ compiler version" >&5
2476 ac_compiler=`set X $ac_compile; echo $2`
2477 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2478 (eval $ac_compiler --version </dev/null >&5) 2>&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }
2482 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2483 (eval $ac_compiler -v </dev/null >&5) 2>&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }
2487 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2488 (eval $ac_compiler -V </dev/null >&5) 2>&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); }
2493 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2494 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2495 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2498 cat >conftest.$ac_ext <<_ACEOF
2499 #line $LINENO "configure"
2502 cat confdefs.h >>conftest.$ac_ext
2503 cat >>conftest.$ac_ext <<_ACEOF
2504 /* end confdefs.h. */
2517 rm -f conftest.$ac_objext
2518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2519 (eval $ac_compile) 2>&5
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); } &&
2523 { ac_try='test -s conftest.$ac_objext'
2524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; }; then
2531 echo "$as_me: failed program was:" >&5
2532 sed 's/^/| /' conftest.$ac_ext >&5
2536 rm -f conftest.$ac_objext conftest.$ac_ext
2537 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2540 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2541 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2542 GXX=`test $ac_compiler_gnu = yes && echo yes`
2543 ac_test_CXXFLAGS=${CXXFLAGS+set}
2544 ac_save_CXXFLAGS=$CXXFLAGS
2546 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2547 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2548 if test "${ac_cv_prog_cxx_g+set}" = set; then
2549 echo $ECHO_N "(cached) $ECHO_C" >&6
2551 cat >conftest.$ac_ext <<_ACEOF
2552 #line $LINENO "configure"
2555 cat confdefs.h >>conftest.$ac_ext
2556 cat >>conftest.$ac_ext <<_ACEOF
2557 /* end confdefs.h. */
2567 rm -f conftest.$ac_objext
2568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2569 (eval $ac_compile) 2>&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
2573 { ac_try='test -s conftest.$ac_objext'
2574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }; }; then
2579 ac_cv_prog_cxx_g=yes
2581 echo "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2586 rm -f conftest.$ac_objext conftest.$ac_ext
2588 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2589 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2590 if test "$ac_test_CXXFLAGS" = set; then
2591 CXXFLAGS=$ac_save_CXXFLAGS
2592 elif test $ac_cv_prog_cxx_g = yes; then
2593 if test "$GXX" = yes; then
2599 if test "$GXX" = yes; then
2605 for ac_declaration in \
2607 '#include <stdlib.h>' \
2608 'extern "C" void std::exit (int) throw (); using std::exit;' \
2609 'extern "C" void std::exit (int); using std::exit;' \
2610 'extern "C" void exit (int) throw ();' \
2611 'extern "C" void exit (int);' \
2614 cat >conftest.$ac_ext <<_ACEOF
2615 #line $LINENO "configure"
2618 cat confdefs.h >>conftest.$ac_ext
2619 cat >>conftest.$ac_ext <<_ACEOF
2620 /* end confdefs.h. */
2631 rm -f conftest.$ac_objext
2632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2633 (eval $ac_compile) 2>&5
2635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636 (exit $ac_status); } &&
2637 { ac_try='test -s conftest.$ac_objext'
2638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; }; then
2645 echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2650 rm -f conftest.$ac_objext conftest.$ac_ext
2651 cat >conftest.$ac_ext <<_ACEOF
2652 #line $LINENO "configure"
2655 cat confdefs.h >>conftest.$ac_ext
2656 cat >>conftest.$ac_ext <<_ACEOF
2657 /* end confdefs.h. */
2667 rm -f conftest.$ac_objext
2668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2669 (eval $ac_compile) 2>&5
2671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2672 (exit $ac_status); } &&
2673 { ac_try='test -s conftest.$ac_objext'
2674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); }; }; then
2681 echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2685 rm -f conftest.$ac_objext conftest.$ac_ext
2688 if test -n "$ac_declaration"; then
2689 echo '#ifdef __cplusplus' >>confdefs.h
2690 echo $ac_declaration >>confdefs.h
2691 echo '#endif' >>confdefs.h
2695 ac_cpp='$CPP $CPPFLAGS'
2696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2700 if test "x$CC" != xcc; then
2701 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2702 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2704 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2705 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2707 set dummy $CC; ac_cc=`echo $2 |
2708 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2709 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2712 cat >conftest.$ac_ext <<_ACEOF
2713 #line $LINENO "configure"
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2728 # Make sure it works both with $CC and with simple cc.
2729 # We do the test twice because some compilers refuse to overwrite an
2730 # existing .o file with -o, though they will create one.
2731 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2732 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); } &&
2737 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); };
2743 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2744 if test "x$CC" != xcc; then
2745 # Test first that cc exists at all.
2746 if { ac_try='cc -c conftest.$ac_ext >&5'
2747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); }; }; then
2752 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2753 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } &&
2758 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); };
2767 # cc exists but doesn't like -o.
2768 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2773 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2778 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2779 echo "$as_me:$LINENO: result: yes" >&5
2780 echo "${ECHO_T}yes" >&6
2782 echo "$as_me:$LINENO: result: no" >&5
2783 echo "${ECHO_T}no" >&6
2785 cat >>confdefs.h <<\_ACEOF
2786 #define NO_MINUS_C_MINUS_O 1
2792 ac_cpp='$CPP $CPPFLAGS'
2793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2797 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2798 # On Suns, sometimes $CPP names a directory.
2799 if test -n "$CPP" && test -d "$CPP"; then
2802 if test -z "$CPP"; then
2803 if test "${ac_cv_prog_CPP+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 # Double quotes because CPP needs to be expanded
2807 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2810 for ac_c_preproc_warn_flag in '' yes
2812 # Use a header file that comes with gcc, so configuring glibc
2813 # with a fresh cross-compiler works.
2814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2815 # <limits.h> exists even on freestanding compilers.
2816 # On the NeXT, cc -E runs the code through the compiler's parser,
2817 # not just through cpp. "Syntax error" is here to catch this case.
2818 cat >conftest.$ac_ext <<_ACEOF
2819 #line $LINENO "configure"
2822 cat confdefs.h >>conftest.$ac_ext
2823 cat >>conftest.$ac_ext <<_ACEOF
2824 /* end confdefs.h. */
2826 # include <limits.h>
2828 # include <assert.h>
2832 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2833 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2835 grep -v '^ *+' conftest.er1 >conftest.err
2837 cat conftest.err >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } >/dev/null; then
2840 if test -s conftest.err; then
2841 ac_cpp_err=$ac_c_preproc_warn_flag
2848 if test -z "$ac_cpp_err"; then
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2854 # Broken: fails on valid input.
2857 rm -f conftest.err conftest.$ac_ext
2859 # OK, works on sane cases. Now check whether non-existent headers
2860 # can be detected and how.
2861 cat >conftest.$ac_ext <<_ACEOF
2862 #line $LINENO "configure"
2865 cat confdefs.h >>conftest.$ac_ext
2866 cat >>conftest.$ac_ext <<_ACEOF
2867 /* end confdefs.h. */
2868 #include <ac_nonexistent.h>
2870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2873 grep -v '^ *+' conftest.er1 >conftest.err
2875 cat conftest.err >&5
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); } >/dev/null; then
2878 if test -s conftest.err; then
2879 ac_cpp_err=$ac_c_preproc_warn_flag
2886 if test -z "$ac_cpp_err"; then
2887 # Broken: success on invalid input.
2890 echo "$as_me: failed program was:" >&5
2891 sed 's/^/| /' conftest.$ac_ext >&5
2893 # Passes both tests.
2897 rm -f conftest.err conftest.$ac_ext
2900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2901 rm -f conftest.err conftest.$ac_ext
2902 if $ac_preproc_ok; then
2914 echo "$as_me:$LINENO: result: $CPP" >&5
2915 echo "${ECHO_T}$CPP" >&6
2917 for ac_c_preproc_warn_flag in '' yes
2919 # Use a header file that comes with gcc, so configuring glibc
2920 # with a fresh cross-compiler works.
2921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2922 # <limits.h> exists even on freestanding compilers.
2923 # On the NeXT, cc -E runs the code through the compiler's parser,
2924 # not just through cpp. "Syntax error" is here to catch this case.
2925 cat >conftest.$ac_ext <<_ACEOF
2926 #line $LINENO "configure"
2929 cat confdefs.h >>conftest.$ac_ext
2930 cat >>conftest.$ac_ext <<_ACEOF
2931 /* end confdefs.h. */
2933 # include <limits.h>
2935 # include <assert.h>
2939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2942 grep -v '^ *+' conftest.er1 >conftest.err
2944 cat conftest.err >&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); } >/dev/null; then
2947 if test -s conftest.err; then
2948 ac_cpp_err=$ac_c_preproc_warn_flag
2955 if test -z "$ac_cpp_err"; then
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 # Broken: fails on valid input.
2964 rm -f conftest.err conftest.$ac_ext
2966 # OK, works on sane cases. Now check whether non-existent headers
2967 # can be detected and how.
2968 cat >conftest.$ac_ext <<_ACEOF
2969 #line $LINENO "configure"
2972 cat confdefs.h >>conftest.$ac_ext
2973 cat >>conftest.$ac_ext <<_ACEOF
2974 /* end confdefs.h. */
2975 #include <ac_nonexistent.h>
2977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2980 grep -v '^ *+' conftest.er1 >conftest.err
2982 cat conftest.err >&5
2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984 (exit $ac_status); } >/dev/null; then
2985 if test -s conftest.err; then
2986 ac_cpp_err=$ac_c_preproc_warn_flag
2993 if test -z "$ac_cpp_err"; then
2994 # Broken: success on invalid input.
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 # Passes both tests.
3004 rm -f conftest.err conftest.$ac_ext
3007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3008 rm -f conftest.err conftest.$ac_ext
3009 if $ac_preproc_ok; then
3012 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3013 See \`config.log' for more details." >&5
3014 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3015 See \`config.log' for more details." >&2;}
3016 { (exit 1); exit 1; }; }
3020 ac_cpp='$CPP $CPPFLAGS'
3021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026 echo "$as_me:$LINENO: checking for egrep" >&5
3027 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3028 if test "${ac_cv_prog_egrep+set}" = set; then
3029 echo $ECHO_N "(cached) $ECHO_C" >&6
3031 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3032 then ac_cv_prog_egrep='grep -E'
3033 else ac_cv_prog_egrep='egrep'
3036 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3037 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3038 EGREP=$ac_cv_prog_egrep
3041 if test $ac_cv_c_compiler_gnu = yes; then
3042 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3043 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3044 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3045 echo $ECHO_N "(cached) $ECHO_C" >&6
3047 ac_pattern="Autoconf.*'x'"
3048 cat >conftest.$ac_ext <<_ACEOF
3049 #line $LINENO "configure"
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3059 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3060 ac_cv_prog_gcc_traditional=yes
3062 ac_cv_prog_gcc_traditional=no
3067 if test $ac_cv_prog_gcc_traditional = no; then
3068 cat >conftest.$ac_ext <<_ACEOF
3069 #line $LINENO "configure"
3072 cat confdefs.h >>conftest.$ac_ext
3073 cat >>conftest.$ac_ext <<_ACEOF
3074 /* end confdefs.h. */
3078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3079 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3080 ac_cv_prog_gcc_traditional=yes
3086 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3087 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3088 if test $ac_cv_prog_gcc_traditional = yes; then
3089 CC="$CC -traditional"
3095 cat >>confdefs.h <<\_ACEOF
3101 # Find a good install program. We prefer a C program (faster),
3102 # so one script is as good as another. But avoid the broken or
3103 # incompatible versions:
3104 # SysV /etc/install, /usr/sbin/install
3105 # SunOS /usr/etc/install
3106 # IRIX /sbin/install
3108 # AmigaOS /C/install, which installs bootblocks on floppy discs
3109 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3110 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3111 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3112 # ./install, which can be erroneously created by make from ./install.sh.
3113 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3114 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3115 if test -z "$INSTALL"; then
3116 if test "${ac_cv_path_install+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123 test -z "$as_dir" && as_dir=.
3124 # Account for people who put trailing slashes in PATH elements.
3126 ./ | .// | /cC/* | \
3127 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3130 # OSF1 and SCO ODT 3.0 have their own names for install.
3131 # Don't use installbsd from OSF since it installs stuff as root
3133 for ac_prog in ginstall scoinst install; do
3134 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3136 if test $ac_prog = install &&
3137 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3138 # AIX install. It has an incompatible calling convention.
3140 elif test $ac_prog = install &&
3141 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3142 # program-specific install script used by HP pwplus--don't use.
3145 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3157 if test "${ac_cv_path_install+set}" = set; then
3158 INSTALL=$ac_cv_path_install
3160 # As a last resort, use the slow shell script. We don't cache a
3161 # path for INSTALL within a source directory, because that will
3162 # break other packages using the cache if that directory is
3163 # removed, or if the path is relative.
3164 INSTALL=$ac_install_sh
3167 echo "$as_me:$LINENO: result: $INSTALL" >&5
3168 echo "${ECHO_T}$INSTALL" >&6
3170 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3171 # It thinks the first close brace ends the variable substitution.
3172 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3174 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3176 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3178 if test -n "$ac_tool_prefix"; then
3179 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3180 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3181 echo "$as_me:$LINENO: checking for $ac_word" >&5
3182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3183 if test "${ac_cv_prog_RANLIB+set}" = set; then
3184 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 if test -n "$RANLIB"; then
3187 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 RANLIB=$ac_cv_prog_RANLIB
3206 if test -n "$RANLIB"; then
3207 echo "$as_me:$LINENO: result: $RANLIB" >&5
3208 echo "${ECHO_T}$RANLIB" >&6
3210 echo "$as_me:$LINENO: result: no" >&5
3211 echo "${ECHO_T}no" >&6
3215 if test -z "$ac_cv_prog_RANLIB"; then
3216 ac_ct_RANLIB=$RANLIB
3217 # Extract the first word of "ranlib", so it can be a program name with args.
3218 set dummy ranlib; ac_word=$2
3219 echo "$as_me:$LINENO: checking for $ac_word" >&5
3220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3221 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3224 if test -n "$ac_ct_RANLIB"; then
3225 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3234 ac_cv_prog_ac_ct_RANLIB="ranlib"
3235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3244 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3245 if test -n "$ac_ct_RANLIB"; then
3246 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3247 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3249 echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6
3253 RANLIB=$ac_ct_RANLIB
3255 RANLIB="$ac_cv_prog_RANLIB"
3258 # Extract the first word of "mv", so it can be a program name with args.
3259 set dummy mv; ac_word=$2
3260 echo "$as_me:$LINENO: checking for $ac_word" >&5
3261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3262 if test "${ac_cv_path_MV+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 test -z "$as_dir" && as_dir=.
3275 for ac_exec_ext in '' $ac_executable_extensions; do
3276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3277 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3284 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3290 if test -n "$MV"; then
3291 echo "$as_me:$LINENO: result: $MV" >&5
3292 echo "${ECHO_T}$MV" >&6
3294 echo "$as_me:$LINENO: result: no" >&5
3295 echo "${ECHO_T}no" >&6
3298 # Extract the first word of "rm", so it can be a program name with args.
3299 set dummy rm; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_path_RM+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3324 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3330 if test -n "$RM"; then
3331 echo "$as_me:$LINENO: result: $RM" >&5
3332 echo "${ECHO_T}$RM" >&6
3334 echo "$as_me:$LINENO: result: no" >&5
3335 echo "${ECHO_T}no" >&6
3338 # Extract the first word of "cp", so it can be a program name with args.
3339 set dummy cp; ac_word=$2
3340 echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3342 if test "${ac_cv_path_CP+set}" = set; then
3343 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3354 test -z "$as_dir" && as_dir=.
3355 for ac_exec_ext in '' $ac_executable_extensions; do
3356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3357 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3370 if test -n "$CP"; then
3371 echo "$as_me:$LINENO: result: $CP" >&5
3372 echo "${ECHO_T}$CP" >&6
3374 echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6
3378 # Extract the first word of "sed", so it can be a program name with args.
3379 set dummy sed; ac_word=$2
3380 echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3382 if test "${ac_cv_path_SED+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3404 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3410 if test -n "$SED"; then
3411 echo "$as_me:$LINENO: result: $SED" >&5
3412 echo "${ECHO_T}$SED" >&6
3414 echo "$as_me:$LINENO: result: no" >&5
3415 echo "${ECHO_T}no" >&6
3418 # Extract the first word of "awk", so it can be a program name with args.
3419 set dummy awk; ac_word=$2
3420 echo "$as_me:$LINENO: checking for $ac_word" >&5
3421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3422 if test "${ac_cv_path_AWK+set}" = set; then
3423 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3444 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3450 if test -n "$AWK"; then
3451 echo "$as_me:$LINENO: result: $AWK" >&5
3452 echo "${ECHO_T}$AWK" >&6
3454 echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6
3458 # Extract the first word of "echo", so it can be a program name with args.
3459 set dummy echo; ac_word=$2
3460 echo "$as_me:$LINENO: checking for $ac_word" >&5
3461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3462 if test "${ac_cv_path_ECHO+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3467 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 test -z "$as_dir" && as_dir=.
3475 for ac_exec_ext in '' $ac_executable_extensions; do
3476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3488 ECHO=$ac_cv_path_ECHO
3490 if test -n "$ECHO"; then
3491 echo "$as_me:$LINENO: result: $ECHO" >&5
3492 echo "${ECHO_T}$ECHO" >&6
3494 echo "$as_me:$LINENO: result: no" >&5
3495 echo "${ECHO_T}no" >&6
3498 # Extract the first word of "cmp", so it can be a program name with args.
3499 set dummy cmp; ac_word=$2
3500 echo "$as_me:$LINENO: checking for $ac_word" >&5
3501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3502 if test "${ac_cv_path_CMP+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir=.
3515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3517 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3530 if test -n "$CMP"; then
3531 echo "$as_me:$LINENO: result: $CMP" >&5
3532 echo "${ECHO_T}$CMP" >&6
3534 echo "$as_me:$LINENO: result: no" >&5
3535 echo "${ECHO_T}no" >&6
3538 # Extract the first word of "tbl", so it can be a program name with args.
3539 set dummy tbl; ac_word=$2
3540 echo "$as_me:$LINENO: checking for $ac_word" >&5
3541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3542 if test "${ac_cv_path_TBL+set}" = set; then
3543 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3570 if test -n "$TBL"; then
3571 echo "$as_me:$LINENO: result: $TBL" >&5
3572 echo "${ECHO_T}$TBL" >&6
3574 echo "$as_me:$LINENO: result: no" >&5
3575 echo "${ECHO_T}no" >&6
3578 # Extract the first word of "ar", so it can be a program name with args.
3579 set dummy ar; ac_word=$2
3580 echo "$as_me:$LINENO: checking for $ac_word" >&5
3581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3582 if test "${ac_cv_path_AR+set}" = set; then
3583 echo $ECHO_N "(cached) $ECHO_C" >&6
3587 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3610 if test -n "$AR"; then
3611 echo "$as_me:$LINENO: result: $AR" >&5
3612 echo "${ECHO_T}$AR" >&6
3614 echo "$as_me:$LINENO: result: no" >&5
3615 echo "${ECHO_T}no" >&6
3618 # Extract the first word of "ranlib", so it can be a program name with args.
3619 set dummy ranlib; ac_word=$2
3620 echo "$as_me:$LINENO: checking for $ac_word" >&5
3621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3622 if test "${ac_cv_path_RANLIB+set}" = set; then
3623 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3644 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3648 RANLIB=$ac_cv_path_RANLIB
3650 if test -n "$RANLIB"; then
3651 echo "$as_me:$LINENO: result: $RANLIB" >&5
3652 echo "${ECHO_T}$RANLIB" >&6
3654 echo "$as_me:$LINENO: result: no" >&5
3655 echo "${ECHO_T}no" >&6
3658 # Extract the first word of "openssl", so it can be a program name with args.
3659 set dummy openssl; ac_word=$2
3660 echo "$as_me:$LINENO: checking for $ac_word" >&5
3661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3662 if test "${ac_cv_path_OPENSSL+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3667 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3677 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3688 OPENSSL=$ac_cv_path_OPENSSL
3690 if test -n "$OPENSSL"; then
3691 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3692 echo "${ECHO_T}$OPENSSL" >&6
3694 echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3698 # Extract the first word of "mtx", so it can be a program name with args.
3699 set dummy mtx; ac_word=$2
3700 echo "$as_me:$LINENO: checking for $ac_word" >&5
3701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3702 if test "${ac_cv_path_MTX+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3707 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3717 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3724 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3730 if test -n "$MTX"; then
3731 echo "$as_me:$LINENO: result: $MTX" >&5
3732 echo "${ECHO_T}$MTX" >&6
3734 echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6
3738 # Extract the first word of "pkg-config", so it can be a program name with args.
3739 set dummy pkg-config; ac_word=$2
3740 echo "$as_me:$LINENO: checking for $ac_word" >&5
3741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3742 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3747 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 test -z "$as_dir" && as_dir=.
3755 for ac_exec_ext in '' $ac_executable_extensions; do
3756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3757 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3768 PKGCONFIG=$ac_cv_path_PKGCONFIG
3770 if test -n "$PKGCONFIG"; then
3771 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3772 echo "${ECHO_T}$PKGCONFIG" >&6
3774 echo "$as_me:$LINENO: result: no" >&5
3775 echo "${ECHO_T}no" >&6
3779 test -n "$ARFLAG" || ARFLAGS="cr"
3792 echo "$as_me:$LINENO: checking for Operating System" >&5
3793 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3796 *cygwin* ) CYGWIN=yes;;
3800 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3806 HAVE_SUN_OS_FALSE='#'
3808 HAVE_SUN_OS_TRUE='#'
3811 cat >>confdefs.h <<\_ACEOF
3812 #define HAVE_SUN_OS 1
3820 HAVE_SUN_OS_FALSE='#'
3822 HAVE_SUN_OS_TRUE='#'
3827 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3833 HAVE_OSF1_OS_FALSE='#'
3835 HAVE_OSF1_OS_TRUE='#'
3838 cat >>confdefs.h <<\_ACEOF
3839 #define HAVE_OSF1_OS 1
3847 HAVE_OSF1_OS_FALSE='#'
3849 HAVE_OSF1_OS_TRUE='#'
3854 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3860 HAVE_AIX_OS_FALSE='#'
3862 HAVE_AIX_OS_TRUE='#'
3865 cat >>confdefs.h <<\_ACEOF
3866 #define HAVE_AIX_OS 1
3874 HAVE_AIX_OS_FALSE='#'
3876 HAVE_AIX_OS_TRUE='#'
3881 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3887 HAVE_HPUX_OS_FALSE='#'
3889 HAVE_HPUX_OS_TRUE='#'
3892 cat >>confdefs.h <<\_ACEOF
3893 #define HAVE_HPUX_OS 1
3901 HAVE_HPUX_OS_FALSE='#'
3903 HAVE_HPUX_OS_TRUE='#'
3908 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3914 HAVE_LINUX_OS_FALSE='#'
3916 HAVE_LINUX_OS_TRUE='#'
3917 HAVE_LINUX_OS_FALSE=
3919 cat >>confdefs.h <<\_ACEOF
3920 #define HAVE_LINUX_OS 1
3928 HAVE_LINUX_OS_FALSE='#'
3930 HAVE_LINUX_OS_TRUE='#'
3931 HAVE_LINUX_OS_FALSE=
3935 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3940 HAVE_FREEBSD_OS_TRUE=
3941 HAVE_FREEBSD_OS_FALSE='#'
3943 HAVE_FREEBSD_OS_TRUE='#'
3944 HAVE_FREEBSD_OS_FALSE=
3946 cat >>confdefs.h <<\_ACEOF
3947 #define HAVE_FREEBSD_OS 1
3954 HAVE_FREEBSD_OS_TRUE=
3955 HAVE_FREEBSD_OS_FALSE='#'
3957 HAVE_FREEBSD_OS_TRUE='#'
3958 HAVE_FREEBSD_OS_FALSE=
3962 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3967 HAVE_NETBSD_OS_TRUE=
3968 HAVE_NETBSD_OS_FALSE='#'
3970 HAVE_NETBSD_OS_TRUE='#'
3971 HAVE_NETBSD_OS_FALSE=
3973 cat >>confdefs.h <<\_ACEOF
3974 #define HAVE_NETBSD_OS 1
3981 HAVE_NETBSD_OS_TRUE=
3982 HAVE_NETBSD_OS_FALSE='#'
3984 HAVE_NETBSD_OS_TRUE='#'
3985 HAVE_NETBSD_OS_FALSE=
3989 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
3994 HAVE_OPENBSD_OS_TRUE=
3995 HAVE_OPENBSD_OS_FALSE='#'
3997 HAVE_OPENBSD_OS_TRUE='#'
3998 HAVE_OPENBSD_OS_FALSE=
4000 cat >>confdefs.h <<\_ACEOF
4001 #define HAVE_OPENBSD_OS 1
4008 HAVE_OPENBSD_OS_TRUE=
4009 HAVE_OPENBSD_OS_FALSE='#'
4011 HAVE_OPENBSD_OS_TRUE='#'
4012 HAVE_OPENBSD_OS_FALSE=
4016 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4022 HAVE_BSDI_OS_FALSE='#'
4024 HAVE_BSDI_OS_TRUE='#'
4027 cat >>confdefs.h <<\_ACEOF
4028 #define HAVE_BSDI_OS 1
4036 HAVE_BSDI_OS_FALSE='#'
4038 HAVE_BSDI_OS_TRUE='#'
4043 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4049 HAVE_SGI_OS_FALSE='#'
4051 HAVE_SGI_OS_TRUE='#'
4054 cat >>confdefs.h <<\_ACEOF
4055 #define HAVE_SGI_OS 1
4063 HAVE_SGI_OS_FALSE='#'
4065 HAVE_SGI_OS_TRUE='#'
4070 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4076 HAVE_IRIX_OS_FALSE='#'
4078 HAVE_IRIX_OS_TRUE='#'
4081 cat >>confdefs.h <<\_ACEOF
4082 #define HAVE_IRIX_OS 1
4090 HAVE_IRIX_OS_FALSE='#'
4092 HAVE_IRIX_OS_TRUE='#'
4097 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4102 HAVE_DARWIN_OS_TRUE=
4103 HAVE_DARWIN_OS_FALSE='#'
4105 HAVE_DARWIN_OS_TRUE='#'
4106 HAVE_DARWIN_OS_FALSE=
4108 cat >>confdefs.h <<\_ACEOF
4109 #define HAVE_DARWIN_OS 1
4116 HAVE_DARWIN_OS_TRUE=
4117 HAVE_DARWIN_OS_FALSE='#'
4119 HAVE_DARWIN_OS_TRUE='#'
4120 HAVE_DARWIN_OS_FALSE=
4124 echo "$as_me:$LINENO: result: \" \"" >&5
4125 echo "${ECHO_T}\" \"" >&6
4128 # -----------------------------------------------------------
4129 # ----------------------------------------------------------
4130 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4131 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4132 if test "x$DISTNAME" != "x"
4134 echo "distname set to $DISTNAME"
4135 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4138 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4141 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4162 elif test -f /etc/SuSE-release
4165 elif test -d /etc/SuSEconfig
4168 elif test -f /etc/mandrake-release
4171 elif test -f /etc/redhat-release
4174 elif test -f /etc/gentoo-release
4177 elif test -f /etc/debian_version
4180 elif test -f /etc/slackware-version
4183 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4186 elif test -f /etc/engarde-version
4189 elif test "$ac_cv_cygwin" = yes
4192 cat >>confdefs.h <<\_ACEOF
4193 #define HAVE_CYGWIN 1
4199 echo "$as_me:$LINENO: result: \" \"" >&5
4200 echo "${ECHO_T}\" \"" >&6
4203 # -----------------------------------------------------------
4204 # ----------------------------------------------------------
4209 INSIDE_GNOME_COMMON_TRUE=
4210 INSIDE_GNOME_COMMON_FALSE='#'
4212 INSIDE_GNOME_COMMON_TRUE='#'
4213 INSIDE_GNOME_COMMON_FALSE=
4216 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4218 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4221 # ------------------------------------------------------------------
4222 # If the user has not set --prefix, we set our default to nothing.
4223 # In this case, if the user has not set --sysconfdir, we set it
4224 # to the package default of /etc/bacula. If either --prefix or
4225 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4226 # ------------------------------------------------------------------
4227 if test x${prefix} = xNONE ; then
4228 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4229 sysconfdir=/etc/bacula
4233 sysconfdir=`eval echo ${sysconfdir}`
4235 # -------------------------------------------------------------------------
4236 # If the user has not set --exec-prefix, we default to ${prefix}
4237 # -------------------------------------------------------------------------
4238 if test x${exec_prefix} = xNONE ; then
4239 exec_prefix=${prefix}
4242 # ------------------------------------------------------------------
4243 # If the user has not set --sbindir, we set our default as /sbin
4244 # ------------------------------------------------------------------
4245 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4246 sbindir=${exec_prefix}/sbin
4248 sbindir=`eval echo ${sbindir}`
4250 # ------------------------------------------------------------------
4251 # All list of languages for which a translation exist. Each
4252 # language is separated by a space.
4253 # ------------------------------------------------------------------
4256 for ac_prog in msgfmt
4258 # Extract the first word of "$ac_prog", so it can be a program name with args.
4259 set dummy $ac_prog; ac_word=$2
4260 echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4262 if test "${ac_cv_path_MSGFMT+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4277 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4287 MSGFMT=$ac_cv_path_MSGFMT
4289 if test -n "$MSGFMT"; then
4290 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4291 echo "${ECHO_T}$MSGFMT" >&6
4293 echo "$as_me:$LINENO: result: no" >&5
4294 echo "${ECHO_T}no" >&6
4297 test -n "$MSGFMT" && break
4299 test -n "$MSGFMT" || MSGFMT="no"
4301 if test "$MSGFMT" = "no"
4303 echo 'msgfmt program not found, disabling NLS !'
4305 USE_INCLUDED_LIBINTL=no
4313 support_smartalloc=yes
4314 support_readline=yes
4316 support_static_tools=no
4317 support_static_fd=no
4318 support_static_sd=no
4319 support_static_dir=no
4320 support_static_cons=no
4321 build_client_only=no
4327 # -------------------------------------------
4328 # gnome (default off)
4329 # -------------------------------------------
4330 # Check whether --enable-gnome or --disable-gnome was given.
4331 if test "${enable_gnome+set}" = set; then
4332 enableval="$enable_gnome"
4333 if test x$enableval = xyes; then
4339 if test x$support_gnome = xyes; then
4340 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4342 if test $pkg = 0; then
4343 GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4344 GNOMEUI_LIBS=`pkg-config --libs-only-other libgnomeui-2.0`
4345 GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4346 GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4351 GNOME_DIR=src/gnome-console
4364 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4365 if test "${with_gnome_includes+set}" = set; then
4366 withval="$with_gnome_includes"
4368 CFLAGS="$CFLAGS -I$withval"
4373 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4374 if test "${with_gnome_libs+set}" = set; then
4375 withval="$with_gnome_libs"
4377 LDFLAGS="$LDFLAGS -L$withval"
4378 gnome_prefix=$withval
4383 # Check whether --with-gnome or --without-gnome was given.
4384 if test "${with_gnome+set}" = set; then
4385 withval="$with_gnome"
4386 if test x$withval = xyes; then
4390 if test "x$withval" = xno; then
4394 LDFLAGS="$LDFLAGS -L$withval/lib"
4395 CFLAGS="$CFLAGS -I$withval/include"
4396 gnome_prefix=$withval/lib
4403 if test "x$want_gnome" = xyes; then
4405 # Extract the first word of "gnome-config", so it can be a program name with args.
4406 set dummy gnome-config; ac_word=$2
4407 echo "$as_me:$LINENO: checking for $ac_word" >&5
4408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4409 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 case $GNOME_CONFIG in
4414 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4424 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4431 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4435 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4437 if test -n "$GNOME_CONFIG"; then
4438 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4439 echo "${ECHO_T}$GNOME_CONFIG" >&6
4441 echo "$as_me:$LINENO: result: no" >&5
4442 echo "${ECHO_T}no" >&6
4445 if test "$GNOME_CONFIG" = "no"; then
4446 no_gnome_config="yes"
4448 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4449 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4450 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4451 echo "$as_me:$LINENO: result: yes" >&5
4452 echo "${ECHO_T}yes" >&6
4455 # Extract the first word of "orbit-config", so it can be a program name with args.
4456 set dummy orbit-config; ac_word=$2
4457 echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4459 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 case $ORBIT_CONFIG in
4464 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 test -z "$as_dir" && as_dir=.
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4474 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4485 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4487 if test -n "$ORBIT_CONFIG"; then
4488 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4489 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4491 echo "$as_me:$LINENO: result: no" >&5
4492 echo "${ECHO_T}no" >&6
4495 # Extract the first word of "orbit-idl", so it can be a program name with args.
4496 set dummy orbit-idl; ac_word=$2
4497 echo "$as_me:$LINENO: checking for $ac_word" >&5
4498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4499 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4525 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4527 if test -n "$ORBIT_IDL"; then
4528 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4529 echo "${ECHO_T}$ORBIT_IDL" >&6
4531 echo "$as_me:$LINENO: result: no" >&5
4532 echo "${ECHO_T}no" >&6
4535 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4536 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4537 if test "${gnome_cv_orbit_found+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4542 gnome_cv_orbit_found=no
4544 gnome_cv_orbit_found=yes
4548 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4549 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4552 if test x$gnome_cv_orbit_found = xyes; then
4554 HAVE_ORBIT_FALSE='#'
4559 if test x$gnome_cv_orbit_found = xyes; then
4561 ORBIT_CFLAGS=`orbit-config --cflags client server`
4562 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4566 if test xfail = xfailure; then
4567 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4568 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4569 { (exit 1); exit 1; }; }
4573 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4574 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4575 if test "${gnome_cv_gnorba_found+set}" = set; then
4576 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 gnome_cv_gnorba_found=no
4580 if test x$gnome_cv_orbit_found = xyes; then
4581 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4582 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4583 if test -n "$GNORBA_LIBS"; then
4584 gnome_cv_gnorba_found=yes
4589 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4590 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4593 if test x$gnome_cv_gnorba_found = xyes; then
4595 HAVE_GNORBA_FALSE='#'
4597 HAVE_GNORBA_TRUE='#'
4600 if test x$gnome_cv_orbit_found = xyes; then
4602 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4603 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4607 if test xfail = xfailure; then
4608 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4609 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4610 { (exit 1); exit 1; }; }
4614 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4615 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4616 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4617 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4618 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4619 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4620 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4623 echo "$as_me:$LINENO: result: no" >&5
4624 echo "${ECHO_T}no" >&6
4625 no_gnome_config="yes"
4629 if test x$exec_prefix = xNONE; then
4630 if test x$prefix = xNONE; then
4631 gnome_prefix=$ac_default_prefix/lib
4633 gnome_prefix=$prefix/lib
4636 gnome_prefix=`eval echo \`echo $libdir\``
4639 if test "$no_gnome_config" = "yes"; then
4640 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4641 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4642 if test -f $gnome_prefix/gnomeConf.sh; then
4643 echo "$as_me:$LINENO: result: found" >&5
4644 echo "${ECHO_T}found" >&6
4645 echo "loading gnome configuration from" \
4646 "$gnome_prefix/gnomeConf.sh"
4647 . $gnome_prefix/gnomeConf.sh
4650 echo "$as_me:$LINENO: result: not found" >&5
4651 echo "${ECHO_T}not found" >&6
4652 if test xfail = xfail; then
4653 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4654 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4655 { (exit 1); exit 1; }; }
4664 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4665 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4669 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4670 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4671 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4674 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4675 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4676 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4679 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4680 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4681 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4683 echo "$as_me:$LINENO: result: unknown library" >&5
4684 echo "${ECHO_T}unknown library" >&6
4686 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4687 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4692 GNOME_DIR=src/gnome-console
4698 # -------------------------------------------
4699 # smartalloc (default off)
4700 # -------------------------------------------
4701 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4702 if test "${enable_smartalloc+set}" = set; then
4703 enableval="$enable_smartalloc"
4704 if test x$enableval = xno; then
4705 support_smartalloc=no
4709 if test x$support_smartalloc = xyes; then
4710 cat >>confdefs.h <<\_ACEOF
4711 #define SMARTALLOC 1
4716 # -------------------------------------------
4717 # static-tools (default off)
4718 # -------------------------------------------
4719 # Check whether --enable-static-tools or --disable-static-tools was given.
4720 if test "${enable_static_tools+set}" = set; then
4721 enableval="$enable_static_tools"
4722 if test x$enableval = xyes; then
4723 support_static_tools=yes
4728 if test x$support_static_tools = xyes; then
4729 TTOOL_LDFLAGS="-static"
4733 # -------------------------------------------
4734 # static-fd (default off)
4735 # -------------------------------------------
4736 # Check whether --enable-static-fd or --disable-static-fd was given.
4737 if test "${enable_static_fd+set}" = set; then
4738 enableval="$enable_static_fd"
4739 if test x$enableval = xyes; then
4740 support_static_fd=yes
4745 if test x$support_static_fd = xyes; then
4746 STATIC_FD="static-bacula-fd"
4750 # -------------------------------------------
4751 # static-sd (default off)
4752 # -------------------------------------------
4753 # Check whether --enable-static-sd or --disable-static-sd was given.
4754 if test "${enable_static_sd+set}" = set; then
4755 enableval="$enable_static_sd"
4756 if test x$enableval = xyes; then
4757 support_static_sd=yes
4762 if test x$support_static_sd = xyes; then
4763 STATIC_SD="static-bacula-sd"
4767 # -------------------------------------------
4768 # static-dir (default off)
4769 # -------------------------------------------
4770 # Check whether --enable-static-dir or --disable-static-dir was given.
4771 if test "${enable_static_dir+set}" = set; then
4772 enableval="$enable_static_dir"
4773 if test x$enableval = xyes; then
4774 support_static_dir=yes
4779 if test x$support_static_dir = xyes; then
4780 STATIC_DIR="static-bacula-dir"
4784 # -------------------------------------------
4785 # static-cons (default off)
4786 # -------------------------------------------
4787 # Check whether --enable-static-cons or --disable-static-cons was given.
4788 if test "${enable_static_cons+set}" = set; then
4789 enableval="$enable_static_cons"
4790 if test x$enableval = xyes; then
4791 support_static_cons=yes
4796 if test x$support_static_cons = xyes; then
4797 STATIC_CONS="static-console"
4801 # -------------------------------------------
4802 # client_only (default off)
4803 # -------------------------------------------
4804 # Check whether --enable-client-only or --disable-client-only was given.
4805 if test "${enable_client_only+set}" = set; then
4806 enableval="$enable_client_only"
4807 if test x$enableval = xyes; then
4808 build_client_only=yes
4811 if test x$build_client_only = xno; then
4818 # ---------------------------------------------------
4819 # Check for readline support/directory (default on)
4820 # ---------------------------------------------------
4821 # this allows you to turn it completely off
4822 # Check whether --enable-readline or --disable-readline was given.
4823 if test "${enable_readline+set}" = set; then
4824 enableval="$enable_readline"
4825 if test x$enableval = xno; then
4832 if test x$support_readline = xyes; then
4833 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4834 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4835 if test "${ac_cv_header_stdc+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 cat >conftest.$ac_ext <<_ACEOF
4839 #line $LINENO "configure"
4842 cat confdefs.h >>conftest.$ac_ext
4843 cat >>conftest.$ac_ext <<_ACEOF
4844 /* end confdefs.h. */
4858 rm -f conftest.$ac_objext
4859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4860 (eval $ac_compile) 2>&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } &&
4864 { ac_try='test -s conftest.$ac_objext'
4865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); }; }; then
4870 ac_cv_header_stdc=yes
4872 echo "$as_me: failed program was:" >&5
4873 sed 's/^/| /' conftest.$ac_ext >&5
4875 ac_cv_header_stdc=no
4877 rm -f conftest.$ac_objext conftest.$ac_ext
4879 if test $ac_cv_header_stdc = yes; then
4880 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4881 cat >conftest.$ac_ext <<_ACEOF
4882 #line $LINENO "configure"
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4892 $EGREP "memchr" >/dev/null 2>&1; then
4895 ac_cv_header_stdc=no
4901 if test $ac_cv_header_stdc = yes; then
4902 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4903 cat >conftest.$ac_ext <<_ACEOF
4904 #line $LINENO "configure"
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4914 $EGREP "free" >/dev/null 2>&1; then
4917 ac_cv_header_stdc=no
4923 if test $ac_cv_header_stdc = yes; then
4924 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4925 if test "$cross_compiling" = yes; then
4928 cat >conftest.$ac_ext <<_ACEOF
4929 #line $LINENO "configure"
4932 cat confdefs.h >>conftest.$ac_ext
4933 cat >>conftest.$ac_ext <<_ACEOF
4934 /* end confdefs.h. */
4936 #if ((' ' & 0x0FF) == 0x020)
4937 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4938 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4940 # define ISLOWER(c) \
4941 (('a' <= (c) && (c) <= 'i') \
4942 || ('j' <= (c) && (c) <= 'r') \
4943 || ('s' <= (c) && (c) <= 'z'))
4944 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4947 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4952 for (i = 0; i < 256; i++)
4953 if (XOR (islower (i), ISLOWER (i))
4954 || toupper (i) != TOUPPER (i))
4959 rm -f conftest$ac_exeext
4960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4961 (eval $ac_link) 2>&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4969 (exit $ac_status); }; }; then
4972 echo "$as_me: program exited with status $ac_status" >&5
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.$ac_ext >&5
4977 ac_cv_header_stdc=no
4979 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4983 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4984 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4985 if test $ac_cv_header_stdc = yes; then
4987 cat >>confdefs.h <<\_ACEOF
4988 #define STDC_HEADERS 1
4993 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5003 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5004 inttypes.h stdint.h unistd.h
5006 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5007 echo "$as_me:$LINENO: checking for $ac_header" >&5
5008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 cat >conftest.$ac_ext <<_ACEOF
5013 #line $LINENO "configure"
5016 cat confdefs.h >>conftest.$ac_ext
5017 cat >>conftest.$ac_ext <<_ACEOF
5018 /* end confdefs.h. */
5019 $ac_includes_default
5021 #include <$ac_header>
5023 rm -f conftest.$ac_objext
5024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5025 (eval $ac_compile) 2>&5
5027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5028 (exit $ac_status); } &&
5029 { ac_try='test -s conftest.$ac_objext'
5030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); }; }; then
5035 eval "$as_ac_Header=yes"
5037 echo "$as_me: failed program was:" >&5
5038 sed 's/^/| /' conftest.$ac_ext >&5
5040 eval "$as_ac_Header=no"
5042 rm -f conftest.$ac_objext conftest.$ac_ext
5044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5045 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5046 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5047 cat >>confdefs.h <<_ACEOF
5048 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5057 # Check whether --with-readline or --without-readline was given.
5058 if test "${with_readline+set}" = set; then
5059 withval="$with_readline"
5061 case "$with_readline" in
5064 if test "$with_readline" != "yes"; then
5065 CONS_INC="-I${with_readline}"
5066 CONS_LDFLAGS="-L$with_readline"
5068 with_readline="/usr/include/readline"
5070 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5072 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5073 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5074 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5080 # Is the header compilable?
5081 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5082 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5083 cat >conftest.$ac_ext <<_ACEOF
5084 #line $LINENO "configure"
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h. */
5090 $ac_includes_default
5091 #include <${with_readline}/readline.h>
5093 rm -f conftest.$ac_objext
5094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5095 (eval $ac_compile) 2>&5
5097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } &&
5099 { ac_try='test -s conftest.$ac_objext'
5100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); }; }; then
5105 ac_header_compiler=yes
5107 echo "$as_me: failed program was:" >&5
5108 sed 's/^/| /' conftest.$ac_ext >&5
5110 ac_header_compiler=no
5112 rm -f conftest.$ac_objext conftest.$ac_ext
5113 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5114 echo "${ECHO_T}$ac_header_compiler" >&6
5116 # Is the header present?
5117 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5118 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5119 cat >conftest.$ac_ext <<_ACEOF
5120 #line $LINENO "configure"
5123 cat confdefs.h >>conftest.$ac_ext
5124 cat >>conftest.$ac_ext <<_ACEOF
5125 /* end confdefs.h. */
5126 #include <${with_readline}/readline.h>
5128 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5129 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5131 grep -v '^ *+' conftest.er1 >conftest.err
5133 cat conftest.err >&5
5134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5135 (exit $ac_status); } >/dev/null; then
5136 if test -s conftest.err; then
5137 ac_cpp_err=$ac_c_preproc_warn_flag
5144 if test -z "$ac_cpp_err"; then
5145 ac_header_preproc=yes
5147 echo "$as_me: failed program was:" >&5
5148 sed 's/^/| /' conftest.$ac_ext >&5
5150 ac_header_preproc=no
5152 rm -f conftest.err conftest.$ac_ext
5153 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5154 echo "${ECHO_T}$ac_header_preproc" >&6
5156 # So? What about this header?
5157 case $ac_header_compiler:$ac_header_preproc in
5159 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5160 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5161 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5162 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5165 ## ------------------------------------ ##
5166 ## Report this to bug-autoconf@gnu.org. ##
5167 ## ------------------------------------ ##
5170 sed "s/^/$as_me: WARNING: /" >&2
5173 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5174 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5175 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5176 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5177 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5178 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5181 ## ------------------------------------ ##
5182 ## Report this to bug-autoconf@gnu.org. ##
5183 ## ------------------------------------ ##
5186 sed "s/^/$as_me: WARNING: /" >&2
5189 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5190 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5192 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 eval "$as_ac_Header=$ac_header_preproc"
5196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5197 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5201 cat >>confdefs.h <<\_ACEOF
5202 #define HAVE_READLINE 1
5205 CONS_LIBS="-lreadline -ltermcap"
5209 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5210 echo "$as_me: error: *** readline library missing" >&2;}
5211 { (exit 1); exit 1; }; }
5222 # check for standard readline library
5223 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5224 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5225 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5226 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5230 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5232 # Is the header compilable?
5233 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5234 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5235 cat >conftest.$ac_ext <<_ACEOF
5236 #line $LINENO "configure"
5239 cat confdefs.h >>conftest.$ac_ext
5240 cat >>conftest.$ac_ext <<_ACEOF
5241 /* end confdefs.h. */
5242 $ac_includes_default
5243 #include </usr/include/readline/readline.h>
5245 rm -f conftest.$ac_objext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5247 (eval $ac_compile) 2>&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } &&
5251 { ac_try='test -s conftest.$ac_objext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 ac_header_compiler=yes
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5262 ac_header_compiler=no
5264 rm -f conftest.$ac_objext conftest.$ac_ext
5265 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5266 echo "${ECHO_T}$ac_header_compiler" >&6
5268 # Is the header present?
5269 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5270 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5271 cat >conftest.$ac_ext <<_ACEOF
5272 #line $LINENO "configure"
5275 cat confdefs.h >>conftest.$ac_ext
5276 cat >>conftest.$ac_ext <<_ACEOF
5277 /* end confdefs.h. */
5278 #include </usr/include/readline/readline.h>
5280 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5281 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5283 grep -v '^ *+' conftest.er1 >conftest.err
5285 cat conftest.err >&5
5286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5287 (exit $ac_status); } >/dev/null; then
5288 if test -s conftest.err; then
5289 ac_cpp_err=$ac_c_preproc_warn_flag
5296 if test -z "$ac_cpp_err"; then
5297 ac_header_preproc=yes
5299 echo "$as_me: failed program was:" >&5
5300 sed 's/^/| /' conftest.$ac_ext >&5
5302 ac_header_preproc=no
5304 rm -f conftest.err conftest.$ac_ext
5305 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5306 echo "${ECHO_T}$ac_header_preproc" >&6
5308 # So? What about this header?
5309 case $ac_header_compiler:$ac_header_preproc in
5311 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5312 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5313 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5314 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5317 ## ------------------------------------ ##
5318 ## Report this to bug-autoconf@gnu.org. ##
5319 ## ------------------------------------ ##
5322 sed "s/^/$as_me: WARNING: /" >&2
5325 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5326 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5327 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5328 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5329 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5330 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5333 ## ------------------------------------ ##
5334 ## Report this to bug-autoconf@gnu.org. ##
5335 ## ------------------------------------ ##
5338 sed "s/^/$as_me: WARNING: /" >&2
5341 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5342 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5343 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5344 echo $ECHO_N "(cached) $ECHO_C" >&6
5346 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5348 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5349 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5352 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5353 cat >>confdefs.h <<\_ACEOF
5354 #define HAVE_READLINE 1
5358 CONS_INC="-I/usr/include/readline"
5359 CONS_LIBS="-lreadline -ltermcap"
5363 # Did not find standard library, so try Bacula's default
5364 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5365 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5366 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5367 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5368 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5371 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5372 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5374 # Is the header compilable?
5375 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5376 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5377 cat >conftest.$ac_ext <<_ACEOF
5378 #line $LINENO "configure"
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384 $ac_includes_default
5385 #include <${TOP_DIR}/depkgs/readline/readline.h>
5387 rm -f conftest.$ac_objext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389 (eval $ac_compile) 2>&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); } &&
5393 { ac_try='test -s conftest.$ac_objext'
5394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); }; }; then
5399 ac_header_compiler=yes
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5404 ac_header_compiler=no
5406 rm -f conftest.$ac_objext conftest.$ac_ext
5407 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5408 echo "${ECHO_T}$ac_header_compiler" >&6
5410 # Is the header present?
5411 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5412 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5413 cat >conftest.$ac_ext <<_ACEOF
5414 #line $LINENO "configure"
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5420 #include <${TOP_DIR}/depkgs/readline/readline.h>
5422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5425 grep -v '^ *+' conftest.er1 >conftest.err
5427 cat conftest.err >&5
5428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5429 (exit $ac_status); } >/dev/null; then
5430 if test -s conftest.err; then
5431 ac_cpp_err=$ac_c_preproc_warn_flag
5438 if test -z "$ac_cpp_err"; then
5439 ac_header_preproc=yes
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5444 ac_header_preproc=no
5446 rm -f conftest.err conftest.$ac_ext
5447 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5448 echo "${ECHO_T}$ac_header_preproc" >&6
5450 # So? What about this header?
5451 case $ac_header_compiler:$ac_header_preproc in
5453 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5454 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5455 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5456 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5459 ## ------------------------------------ ##
5460 ## Report this to bug-autoconf@gnu.org. ##
5461 ## ------------------------------------ ##
5464 sed "s/^/$as_me: WARNING: /" >&2
5467 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5468 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5469 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5470 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5471 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5472 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5475 ## ------------------------------------ ##
5476 ## Report this to bug-autoconf@gnu.org. ##
5477 ## ------------------------------------ ##
5480 sed "s/^/$as_me: WARNING: /" >&2
5483 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5484 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5485 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5486 echo $ECHO_N "(cached) $ECHO_C" >&6
5488 eval "$as_ac_Header=$ac_header_preproc"
5490 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5491 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5494 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5495 cat >>confdefs.h <<\_ACEOF
5496 #define HAVE_READLINE 1
5500 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5501 CONS_LIBS="-lreadline -lhistory -ltermcap"
5502 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5503 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5506 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5507 echo "$as_me: error: *** readline library missing" >&2;}
5508 { (exit 1); exit 1; }; }
5528 # Minimal stuff for readline Makefile configuration
5532 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5533 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5534 if test "${ac_cv_header_stat_broken+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5537 cat >conftest.$ac_ext <<_ACEOF
5538 #line $LINENO "configure"
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h. */
5544 #include <sys/types.h>
5545 #include <sys/stat.h>
5547 #if defined(S_ISBLK) && defined(S_IFDIR)
5548 # if S_ISBLK (S_IFDIR)
5553 #if defined(S_ISBLK) && defined(S_IFCHR)
5554 # if S_ISBLK (S_IFCHR)
5559 #if defined(S_ISLNK) && defined(S_IFREG)
5560 # if S_ISLNK (S_IFREG)
5565 #if defined(S_ISSOCK) && defined(S_IFREG)
5566 # if S_ISSOCK (S_IFREG)
5572 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5573 $EGREP "You lose" >/dev/null 2>&1; then
5574 ac_cv_header_stat_broken=yes
5576 ac_cv_header_stat_broken=no
5581 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5582 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5583 if test $ac_cv_header_stat_broken = yes; then
5585 cat >>confdefs.h <<\_ACEOF
5586 #define STAT_MACROS_BROKEN 1
5597 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5598 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5599 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5600 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5602 echo $ECHO_N "(cached) $ECHO_C" >&6
5604 cat >conftest.$ac_ext <<_ACEOF
5605 #line $LINENO "configure"
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h. */
5611 #include <sys/types.h>
5623 rm -f conftest.$ac_objext
5624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625 (eval $ac_compile) 2>&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } &&
5629 { ac_try='test -s conftest.$ac_objext'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
5635 eval "$as_ac_Header=yes"
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 eval "$as_ac_Header=no"
5642 rm -f conftest.$ac_objext conftest.$ac_ext
5644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5646 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5647 cat >>confdefs.h <<_ACEOF
5648 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5651 ac_header_dirent=$ac_hdr; break
5655 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5656 if test $ac_header_dirent = dirent.h; then
5657 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5658 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5659 if test "${ac_cv_search_opendir+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5662 ac_func_search_save_LIBS=$LIBS
5663 ac_cv_search_opendir=no
5664 cat >conftest.$ac_ext <<_ACEOF
5665 #line $LINENO "configure"
5668 cat confdefs.h >>conftest.$ac_ext
5669 cat >>conftest.$ac_ext <<_ACEOF
5670 /* end confdefs.h. */
5672 /* Override any gcc2 internal prototype to avoid an error. */
5676 /* We use char because int might match the return type of a gcc2
5677 builtin and then its argument prototype would still apply. */
5687 rm -f conftest.$ac_objext conftest$ac_exeext
5688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5689 (eval $ac_link) 2>&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } &&
5693 { ac_try='test -s conftest$ac_exeext'
5694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); }; }; then
5699 ac_cv_search_opendir="none required"
5701 echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.$ac_ext >&5
5705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5706 if test "$ac_cv_search_opendir" = no; then
5707 for ac_lib in dir; do
5708 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5709 cat >conftest.$ac_ext <<_ACEOF
5710 #line $LINENO "configure"
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5717 /* Override any gcc2 internal prototype to avoid an error. */
5721 /* We use char because int might match the return type of a gcc2
5722 builtin and then its argument prototype would still apply. */
5732 rm -f conftest.$ac_objext conftest$ac_exeext
5733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5734 (eval $ac_link) 2>&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } &&
5738 { ac_try='test -s conftest$ac_exeext'
5739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); }; }; then
5744 ac_cv_search_opendir="-l$ac_lib"
5747 echo "$as_me: failed program was:" >&5
5748 sed 's/^/| /' conftest.$ac_ext >&5
5751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5754 LIBS=$ac_func_search_save_LIBS
5756 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5757 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5758 if test "$ac_cv_search_opendir" != no; then
5759 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5764 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5765 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5766 if test "${ac_cv_search_opendir+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 ac_func_search_save_LIBS=$LIBS
5770 ac_cv_search_opendir=no
5771 cat >conftest.$ac_ext <<_ACEOF
5772 #line $LINENO "configure"
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5779 /* Override any gcc2 internal prototype to avoid an error. */
5783 /* We use char because int might match the return type of a gcc2
5784 builtin and then its argument prototype would still apply. */
5794 rm -f conftest.$ac_objext conftest$ac_exeext
5795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5796 (eval $ac_link) 2>&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); } &&
5800 { ac_try='test -s conftest$ac_exeext'
5801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }; }; then
5806 ac_cv_search_opendir="none required"
5808 echo "$as_me: failed program was:" >&5
5809 sed 's/^/| /' conftest.$ac_ext >&5
5812 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5813 if test "$ac_cv_search_opendir" = no; then
5815 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5816 cat >conftest.$ac_ext <<_ACEOF
5817 #line $LINENO "configure"
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h. */
5824 /* Override any gcc2 internal prototype to avoid an error. */
5828 /* We use char because int might match the return type of a gcc2
5829 builtin and then its argument prototype would still apply. */
5839 rm -f conftest.$ac_objext conftest$ac_exeext
5840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5841 (eval $ac_link) 2>&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -s conftest$ac_exeext'
5846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); }; }; then
5851 ac_cv_search_opendir="-l$ac_lib"
5854 echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.$ac_ext >&5
5858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5861 LIBS=$ac_func_search_save_LIBS
5863 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5864 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5865 if test "$ac_cv_search_opendir" != no; then
5866 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5881 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
5883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5884 echo "$as_me:$LINENO: checking for $ac_func" >&5
5885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5886 if eval "test \"\${$as_ac_var+set}\" = set"; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 cat >conftest.$ac_ext <<_ACEOF
5890 #line $LINENO "configure"
5893 cat confdefs.h >>conftest.$ac_ext
5894 cat >>conftest.$ac_ext <<_ACEOF
5895 /* end confdefs.h. */
5896 /* System header to define __stub macros and hopefully few prototypes,
5897 which can conflict with char $ac_func (); below.
5898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5899 <limits.h> exists even on freestanding compilers. */
5901 # include <limits.h>
5903 # include <assert.h>
5905 /* Override any gcc2 internal prototype to avoid an error. */
5910 /* We use char because int might match the return type of a gcc2
5911 builtin and then its argument prototype would still apply. */
5913 /* The GNU C library defines this for functions which it implements
5914 to always fail with ENOSYS. Some functions are actually named
5915 something starting with __ and the normal name is an alias. */
5916 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5919 char (*f) () = $ac_func;
5928 return f != $ac_func;
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935 (eval $ac_link) 2>&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } &&
5939 { ac_try='test -s conftest$ac_exeext'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5945 eval "$as_ac_var=yes"
5947 echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5950 eval "$as_ac_var=no"
5952 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5954 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5955 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5956 if test `eval echo '${'$as_ac_var'}'` = yes; then
5957 cat >>confdefs.h <<_ACEOF
5958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5965 for ac_func in nanosleep
5967 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5968 echo "$as_me:$LINENO: checking for $ac_func" >&5
5969 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5970 if eval "test \"\${$as_ac_var+set}\" = set"; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 cat >conftest.$ac_ext <<_ACEOF
5974 #line $LINENO "configure"
5977 cat confdefs.h >>conftest.$ac_ext
5978 cat >>conftest.$ac_ext <<_ACEOF
5979 /* end confdefs.h. */
5980 /* System header to define __stub macros and hopefully few prototypes,
5981 which can conflict with char $ac_func (); below.
5982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5983 <limits.h> exists even on freestanding compilers. */
5985 # include <limits.h>
5987 # include <assert.h>
5989 /* Override any gcc2 internal prototype to avoid an error. */
5994 /* We use char because int might match the return type of a gcc2
5995 builtin and then its argument prototype would still apply. */
5997 /* The GNU C library defines this for functions which it implements
5998 to always fail with ENOSYS. Some functions are actually named
5999 something starting with __ and the normal name is an alias. */
6000 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6003 char (*f) () = $ac_func;
6012 return f != $ac_func;
6017 rm -f conftest.$ac_objext conftest$ac_exeext
6018 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6019 (eval $ac_link) 2>&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try='test -s conftest$ac_exeext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 eval "$as_ac_var=yes"
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 eval "$as_ac_var=no"
6036 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6039 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6040 if test `eval echo '${'$as_ac_var'}'` = yes; then
6041 cat >>confdefs.h <<_ACEOF
6042 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6049 #AC_CHECK_FUNC(getopt_long, AC_DEFINE(HAVE_GETOPT_LONG),
6050 # [LIBEXTRAOBJ="$LIBEXTRAOBJ getopt.o getopt1.o"
6051 # EXTRAOBJ="$EXTRAOBJ lib/getopt.o lib/getopt1.o"])
6053 echo "$as_me:$LINENO: checking for getopt_long" >&5
6054 echo $ECHO_N "checking for getopt_long... $ECHO_C" >&6
6055 if test "${ac_cv_func_getopt_long+set}" = set; then
6056 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 cat >conftest.$ac_ext <<_ACEOF
6059 #line $LINENO "configure"
6062 cat confdefs.h >>conftest.$ac_ext
6063 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h. */
6065 /* System header to define __stub macros and hopefully few prototypes,
6066 which can conflict with char getopt_long (); below.
6067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6068 <limits.h> exists even on freestanding compilers. */
6070 # include <limits.h>
6072 # include <assert.h>
6074 /* Override any gcc2 internal prototype to avoid an error. */
6079 /* We use char because int might match the return type of a gcc2
6080 builtin and then its argument prototype would still apply. */
6081 char getopt_long ();
6082 /* The GNU C library defines this for functions which it implements
6083 to always fail with ENOSYS. Some functions are actually named
6084 something starting with __ and the normal name is an alias. */
6085 #if defined (__stub_getopt_long) || defined (__stub___getopt_long)
6088 char (*f) () = getopt_long;
6097 return f != getopt_long;
6102 rm -f conftest.$ac_objext conftest$ac_exeext
6103 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6104 (eval $ac_link) 2>&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } &&
6108 { ac_try='test -s conftest$ac_exeext'
6109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6113 (exit $ac_status); }; }; then
6114 ac_cv_func_getopt_long=yes
6116 echo "$as_me: failed program was:" >&5
6117 sed 's/^/| /' conftest.$ac_ext >&5
6119 ac_cv_func_getopt_long=no
6121 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6123 echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
6124 echo "${ECHO_T}$ac_cv_func_getopt_long" >&6
6125 if test $ac_cv_func_getopt_long = yes; then
6126 cat >>confdefs.h <<\_ACEOF
6127 #define HAVE_GETOPT_LONG 1
6134 echo "$as_me:$LINENO: checking for working strcoll" >&5
6135 echo $ECHO_N "checking for working strcoll... $ECHO_C" >&6
6136 if test "${ac_cv_func_strcoll_works+set}" = set; then
6137 echo $ECHO_N "(cached) $ECHO_C" >&6
6139 if test "$cross_compiling" = yes; then
6140 ac_cv_func_strcoll_works=no
6142 cat >conftest.$ac_ext <<_ACEOF
6143 #line $LINENO "configure"
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6149 $ac_includes_default
6153 exit (strcoll ("abc", "def") >= 0 ||
6154 strcoll ("ABC", "DEF") >= 0 ||
6155 strcoll ("123", "456") >= 0)
6160 rm -f conftest$ac_exeext
6161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6162 (eval $ac_link) 2>&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6165 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; }; then
6171 ac_cv_func_strcoll_works=yes
6173 echo "$as_me: program exited with status $ac_status" >&5
6174 echo "$as_me: failed program was:" >&5
6175 sed 's/^/| /' conftest.$ac_ext >&5
6178 ac_cv_func_strcoll_works=no
6180 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6183 echo "$as_me:$LINENO: result: $ac_cv_func_strcoll_works" >&5
6184 echo "${ECHO_T}$ac_cv_func_strcoll_works" >&6
6185 if test $ac_cv_func_strcoll_works = yes; then
6187 cat >>confdefs.h <<\_ACEOF
6188 #define HAVE_STRCOLL 1
6198 for ac_header in varargs.h \
6199 sys/ptem.h sys/pte.h sys/stream.h
6201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6202 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6203 echo "$as_me:$LINENO: checking for $ac_header" >&5
6204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6205 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6206 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6209 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6211 # Is the header compilable?
6212 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6214 cat >conftest.$ac_ext <<_ACEOF
6215 #line $LINENO "configure"
6218 cat confdefs.h >>conftest.$ac_ext
6219 cat >>conftest.$ac_ext <<_ACEOF
6220 /* end confdefs.h. */
6221 $ac_includes_default
6222 #include <$ac_header>
6224 rm -f conftest.$ac_objext
6225 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6226 (eval $ac_compile) 2>&5
6228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229 (exit $ac_status); } &&
6230 { ac_try='test -s conftest.$ac_objext'
6231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6235 (exit $ac_status); }; }; then
6236 ac_header_compiler=yes
6238 echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6241 ac_header_compiler=no
6243 rm -f conftest.$ac_objext conftest.$ac_ext
6244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6245 echo "${ECHO_T}$ac_header_compiler" >&6
6247 # Is the header present?
6248 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6250 cat >conftest.$ac_ext <<_ACEOF
6251 #line $LINENO "configure"
6254 cat confdefs.h >>conftest.$ac_ext
6255 cat >>conftest.$ac_ext <<_ACEOF
6256 /* end confdefs.h. */
6257 #include <$ac_header>
6259 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6260 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6262 grep -v '^ *+' conftest.er1 >conftest.err
6264 cat conftest.err >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } >/dev/null; then
6267 if test -s conftest.err; then
6268 ac_cpp_err=$ac_c_preproc_warn_flag
6275 if test -z "$ac_cpp_err"; then
6276 ac_header_preproc=yes
6278 echo "$as_me: failed program was:" >&5
6279 sed 's/^/| /' conftest.$ac_ext >&5
6281 ac_header_preproc=no
6283 rm -f conftest.err conftest.$ac_ext
6284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6285 echo "${ECHO_T}$ac_header_preproc" >&6
6287 # So? What about this header?
6288 case $ac_header_compiler:$ac_header_preproc in
6290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6296 ## ------------------------------------ ##
6297 ## Report this to bug-autoconf@gnu.org. ##
6298 ## ------------------------------------ ##
6301 sed "s/^/$as_me: WARNING: /" >&2
6304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6307 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6309 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6312 ## ------------------------------------ ##
6313 ## Report this to bug-autoconf@gnu.org. ##
6314 ## ------------------------------------ ##
6317 sed "s/^/$as_me: WARNING: /" >&2
6320 echo "$as_me:$LINENO: checking for $ac_header" >&5
6321 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6322 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6325 eval "$as_ac_Header=$ac_header_preproc"
6327 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6328 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6332 cat >>confdefs.h <<_ACEOF
6333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6341 # End of readline stuff
6342 # -----------------------------------------------------------------------
6345 # ---------------------------------------------------
6346 # Check for GMP support/directory
6347 # ---------------------------------------------------
6351 # [ --with-gmp[=DIR] Specify gmp library directory],
6353 # case "$with_gmp" in
6356 # if test "$with_gmp" != "yes"; then
6357 # GMP_INC="-I$with_gmp"
6359 # GMP_LDFLAGS="-L$with_gmp"
6361 # with_gmp="/usr/include"
6363 # AC_CHECK_HEADER($with_gmp/gmp.h,
6364 # [ AC_MSG_RESULT(yes)
6365 # AC_DEFINE(HAVE_GMP)
6369 # [ AC_MSG_ERROR([*** gmp library missing])
6375 # # check for standard gmp library
6376 # AC_CHECK_HEADER(/usr/include/gmp.h,
6377 # [ AC_MSG_RESULT(yes)
6378 # AC_DEFINE(HAVE_GMP)
6383 # # Did not find standard library, so use our own
6384 # AC_MSG_RESULT(yes)
6385 # AC_DEFINE(HAVE_GMP)
6388 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6390 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6391 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6397 #AC_SUBST(GMP_LDFLAGS)
6401 # -----------------------------------------------------------------------
6404 # ---------------------------------------------------
6405 # Check for CWEB support/directory
6406 # ---------------------------------------------------
6411 # [ --with-cweb[=DIR] Specify cweb library directory],
6413 # case "$with_cweb" in
6416 # if test "$with_cweb" != "yes"; then
6417 # CWEB_INC="-I$with_cweb"
6418 # CWEB_LIBS="-lcweb"
6419 # CWEB_LDFLAGS="-L$with_cweb"
6421 # with_cweb="/usr/include"
6423 # AC_CHECK_HEADER($with_cweb/cweb.h,
6424 # [ AC_MSG_RESULT(yes)
6425 # AC_DEFINE(HAVE_CWEB)
6426 # CWEB_LIBS="-lcweb"
6429 # [ AC_MSG_ERROR([*** cweb library missing])
6435 # # check for standard cweb library
6436 # AC_CHECK_HEADER(/usr/include/cweb.h,
6437 # [ AC_MSG_RESULT(yes)
6438 # AC_DEFINE(HAVE_CWEB)
6441 # CWEB_LIBS="-lcweb"
6443 # # Did not find starndard library, so use our own
6444 # AC_MSG_RESULT(yes)
6445 # AC_DEFINE(HAVE_CWEB)
6448 # CWEB=${TOP_DIR}/depkgs/cweb
6449 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6450 # CWEB_LIBS="-lcweb"
6451 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6452 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6458 #AC_SUBST(CWEB_LIBS)
6459 #AC_SUBST(CWEB_LDFLAGS)
6463 # -----------------------------------------------------------------------
6467 # -----------------------------------------------------------
6468 # Check whether user wants TCP wrappers support (default off)
6469 # -----------------------------------------------------------
6472 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6473 if test "${with_tcp_wrappers+set}" = set; then
6474 withval="$with_tcp_wrappers"
6476 if test "x$withval" != "xno" ; then
6478 LIBS="$LIBS -lwrap -lnsl"
6479 echo "$as_me:$LINENO: checking for libwrap" >&5
6480 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6481 cat >conftest.$ac_ext <<_ACEOF
6482 #line $LINENO "configure"
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6489 int deny_severity = 0;
6490 int allow_severity = 0;
6491 struct request_info *req;
6500 rm -f conftest.$ac_objext conftest$ac_exeext
6501 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6502 (eval $ac_link) 2>&5
6504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505 (exit $ac_status); } &&
6506 { ac_try='test -s conftest$ac_exeext'
6507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); }; }; then
6513 echo "$as_me:$LINENO: result: yes" >&5
6514 echo "${ECHO_T}yes" >&6
6515 cat >>confdefs.h <<\_ACEOF
6516 #define HAVE_LIBWRAP 1
6522 echo "$as_me: failed program was:" >&5
6523 sed 's/^/| /' conftest.$ac_ext >&5
6525 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6526 echo "$as_me: error: *** libwrap missing" >&2;}
6527 { (exit 1); exit 1; }; }
6530 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6536 # ------------------------------------------
6537 # Where to place working dir
6538 # ------------------------------------------
6539 working_dir=`eval echo ${sysconfdir}/working`
6541 # Check whether --with-working-dir or --without-working-dir was given.
6542 if test "${with_working_dir+set}" = set; then
6543 withval="$with_working_dir"
6545 if test "x$withval" != "xno" ; then
6546 working_dir=$withval
6555 # ------------------------------------------
6556 # Where to place scriptdir (script files)
6557 # ------------------------------------------
6558 scriptdir=`eval echo ${sysconfdir}`
6560 # Check whether --with-scriptdir or --without-scriptdir was given.
6561 if test "${with_scriptdir+set}" = set; then
6562 withval="$with_scriptdir"
6564 if test "x$withval" != "xno" ; then
6574 # ------------------------------------------
6575 # Where to send dump email
6576 # ------------------------------------------
6577 dump_email=root@localhost
6579 # Check whether --with-dump-email or --without-dump-email was given.
6580 if test "${with_dump_email+set}" = set; then
6581 withval="$with_dump_email"
6583 if test "x$withval" != "xno" ; then
6592 # ------------------------------------------
6593 # Where to send job email
6594 # ------------------------------------------
6595 job_email=root@localhost
6597 # Check whether --with-job-email or --without-job-email was given.
6598 if test "${with_job_email+set}" = set; then
6599 withval="$with_job_email"
6601 if test "x$withval" != "xno" ; then
6610 # ------------------------------------------
6611 # Where to find smtp host
6612 # ------------------------------------------
6615 # Check whether --with-smtp_host or --without-smtp_host was given.
6616 if test "${with_smtp_host+set}" = set; then
6617 withval="$with_smtp_host"
6619 if test "x$withval" != "xno" ; then
6629 # ------------------------------------
6630 # Where to place pid files
6631 # ------------------------------------
6634 # Check whether --with-pid-dir or --without-pid-dir was given.
6635 if test "${with_pid_dir+set}" = set; then
6636 withval="$with_pid_dir"
6638 if test "x$withval" != "xno" ; then
6645 cat >>confdefs.h <<_ACEOF
6646 #define _PATH_BACULA_PIDDIR "$piddir"
6652 # ------------------------------------
6653 # Where to place subsys "lock file"
6654 # ------------------------------------
6655 subsysdir=/var/run/subsys
6657 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6658 if test "${with_subsys_dir+set}" = set; then
6659 withval="$with_subsys_dir"
6661 if test "x$withval" != "xno" ; then
6672 # ------------------------------------
6673 # Where to start assigning ports
6674 # ------------------------------------
6677 # Check whether --with-baseport or --without-baseport was given.
6678 if test "${with_baseport+set}" = set; then
6679 withval="$with_baseport"
6681 if test "x$withval" != "xno" ; then
6689 dir_port=`expr $baseport`
6690 fd_port=`expr $baseport + 1`
6691 sd_port=`expr $fd_port + 1`
6698 # ------------------------------------------
6699 # Generate passwords
6700 # ------------------------------------------
6703 # Check whether --with-dir-password or --without-dir-password was given.
6704 if test "${with_dir_password+set}" = set; then
6705 withval="$with_dir_password"
6707 if test "x$withval" != "xno" ; then
6708 dir_password=$withval
6714 if test "x$dir_password" = "x" ; then
6715 if test "x$OPENSSL" = "xnone" ; then
6716 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6717 key=`autoconf/randpass 33`
6719 key=`openssl rand -base64 33`
6726 # Check whether --with-fd-password or --without-fd-password was given.
6727 if test "${with_fd_password+set}" = set; then
6728 withval="$with_fd_password"
6730 if test "x$withval" != "xno" ; then
6731 fd_password=$withval
6737 if test "x$fd_password" = "x" ; then
6738 if test "x$OPENSSL" = "xnone" ; then
6739 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6740 key=`autoconf/randpass 37`
6742 key=`openssl rand -base64 33`
6749 # Check whether --with-sd-password or --without-sd-password was given.
6750 if test "${with_sd_password+set}" = set; then
6751 withval="$with_sd_password"
6753 if test "x$withval" != "xno" ; then
6754 sd_password=$withval
6760 if test "x$sd_password" = "x" ; then
6761 if test "x$OPENSSL" = "xnone" ; then
6762 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6763 key=`autoconf/randpass 41`
6765 key=`openssl rand -base64 33`
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 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
6838 SQL_BINDIR=$MYSQL_BINDIR
6840 cat >>confdefs.h <<\_ACEOF
6841 #define HAVE_MYSQL 1
6844 echo "$as_me:$LINENO: result: yes" >&5
6845 echo "${ECHO_T}yes" >&6
6852 echo "$as_me:$LINENO: result: no" >&5
6853 echo "${ECHO_T}no" >&6
6858 echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6
6864 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
6865 if test "${with_embedded_mysql+set}" = set; then
6866 withval="$with_embedded_mysql"
6868 if test "$withval" != "no"; then
6869 if test "$withval" = "yes"; then
6870 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6871 MYSQL_INCDIR=/usr/local/mysql/include/mysql
6872 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6873 MYSQL_BINDIR=/usr/local/mysql/bin
6874 elif test -f /usr/include/mysql/mysql.h; then
6875 MYSQL_INCDIR=/usr/include/mysql
6876 MYSQL_LIBDIR=/usr/lib/mysql
6877 MYSQL_BINDIR=/usr/bin
6878 elif test -f /usr/include/mysql.h; then
6879 MYSQL_INCDIR=/usr/include
6880 MYSQL_LIBDIR=/usr/lib
6881 MYSQL_BINDIR=/usr/bin
6882 elif test -f /usr/local/include/mysql/mysql.h; then
6883 MYSQL_INCDIR=/usr/local/include/mysql
6884 MYSQL_LIBDIR=/usr/local/lib/mysql
6885 MYSQL_BINDIR=/usr/local/bin
6886 elif test -f /usr/local/include/mysql.h; then
6887 MYSQL_INCDIR=/usr/local/include
6888 MYSQL_LIBDIR=/usr/local/lib
6889 MYSQL_BINDIR=/usr/local/bin
6891 echo "$as_me:$LINENO: result: no" >&5
6892 echo "${ECHO_T}no" >&6
6893 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6894 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6895 { (exit 1); exit 1; }; }
6898 if test -f $withval/include/mysql/mysql.h; then
6899 MYSQL_INCDIR=$withval/include/mysql
6900 MYSQL_LIBDIR=$withval/lib/mysql
6901 MYSQL_BINDIR=$withval/bin
6902 elif test -f $withval/include/mysql.h; then
6903 MYSQL_INCDIR=$withval/include
6904 MYSQL_LIBDIR=$withval/lib
6905 MYSQL_BINDIR=$withval/bin
6907 echo "$as_me:$LINENO: result: no" >&5
6908 echo "${ECHO_T}no" >&6
6909 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6910 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6911 { (exit 1); exit 1; }; }
6914 SQL_INCLUDE=-I$MYSQL_INCDIR
6915 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
6916 SQL_BINDIR=$MYSQL_BINDIR
6918 cat >>confdefs.h <<\_ACEOF
6919 #define HAVE_MYSQL 1
6922 cat >>confdefs.h <<\_ACEOF
6923 #define HAVE_EMBEDDED_MYSQL 1
6926 echo "$as_me:$LINENO: result: yes" >&5
6927 echo "${ECHO_T}yes" >&6
6934 echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6
6940 echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6
6953 # ------------------------------------------------
6954 # Bacula check for various SQL database engines
6955 # ------------------------------------------------
6958 echo "$as_me:$LINENO: checking for SQLite support" >&5
6959 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
6961 # Check whether --with-sqlite or --without-sqlite was given.
6962 if test "${with_sqlite+set}" = set; then
6963 withval="$with_sqlite"
6965 if test "$withval" != "no"; then
6966 if test "$withval" = "yes"; then
6967 if test -f /usr/local/include/sqlite.h; then
6968 SQLITE_INCDIR=/usr/local/include
6969 SQLITE_LIBDIR=/usr/local/lib
6970 SQLITE_BINDIR=/usr/local/bin
6971 elif test -f /usr/include/sqlite.h; then
6972 SQLITE_INCDIR=/usr/include
6973 SQLITE_LIBDIR=/usr/lib
6974 SQLITE_BINDIR=/usr/bin
6976 echo "$as_me:$LINENO: result: no" >&5
6977 echo "${ECHO_T}no" >&6
6978 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
6979 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
6980 { (exit 1); exit 1; }; }
6983 if test -f $withval/sqlite.h; then
6984 SQLITE_INCDIR=$withval
6985 SQLITE_LIBDIR=$withval
6986 SQLITE_BINDIR=$withval
6988 echo "$as_me:$LINENO: result: no" >&5
6989 echo "${ECHO_T}no" >&6
6990 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
6991 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
6992 { (exit 1); exit 1; }; }
6995 SQL_INCLUDE=-I$SQLITE_INCDIR
6996 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
6997 SQL_BINDIR=$SQLITE_BINDIR
6999 cat >>confdefs.h <<\_ACEOF
7000 #define HAVE_SQLITE 1
7003 echo "$as_me:$LINENO: result: yes" >&5
7004 echo "${ECHO_T}yes" >&6
7011 echo "$as_me:$LINENO: result: no" >&5
7012 echo "${ECHO_T}no" >&6
7017 echo "$as_me:$LINENO: result: no" >&5
7018 echo "${ECHO_T}no" >&6
7030 cat >>confdefs.h <<\_ACEOF
7031 #define PROTOTYPES 1
7035 if test -z "$CFLAGS"; then
7036 if test -z "$CCOPTS"; then
7045 largefile_support="no"
7047 # Check whether --enable-largefile or --disable-largefile was given.
7048 if test "${enable_largefile+set}" = set; then
7049 enableval="$enable_largefile"
7052 if test "$enable_largefile" != no; then
7053 if test -n "$ac_tool_prefix"; then
7054 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7055 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7056 echo "$as_me:$LINENO: checking for $ac_word" >&5
7057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7058 if test "${ac_cv_prog_GETCONF+set}" = set; then
7059 echo $ECHO_N "(cached) $ECHO_C" >&6
7061 if test -n "$GETCONF"; then
7062 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7071 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 GETCONF=$ac_cv_prog_GETCONF
7081 if test -n "$GETCONF"; then
7082 echo "$as_me:$LINENO: result: $GETCONF" >&5
7083 echo "${ECHO_T}$GETCONF" >&6
7085 echo "$as_me:$LINENO: result: no" >&5
7086 echo "${ECHO_T}no" >&6
7090 if test -z "$ac_cv_prog_GETCONF"; then
7091 ac_ct_GETCONF=$GETCONF
7092 # Extract the first word of "getconf", so it can be a program name with args.
7093 set dummy getconf; ac_word=$2
7094 echo "$as_me:$LINENO: checking for $ac_word" >&5
7095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7096 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7097 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 if test -n "$ac_ct_GETCONF"; then
7100 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109 ac_cv_prog_ac_ct_GETCONF="getconf"
7110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7118 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7119 if test -n "$ac_ct_GETCONF"; then
7120 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7121 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7123 echo "$as_me:$LINENO: result: no" >&5
7124 echo "${ECHO_T}no" >&6
7127 GETCONF=$ac_ct_GETCONF
7129 GETCONF="$ac_cv_prog_GETCONF"
7132 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7133 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7134 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7137 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7138 ac_cv_sys_largefile_CFLAGS=no
7140 # IRIX 6.2 and later require cc -n32.
7141 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7142 if test "$GCC" != yes; then
7143 ac_cv_sys_largefile_CFLAGS=-n32
7146 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7147 cat >conftest.$ac_ext <<_ACEOF
7148 #line $LINENO "configure"
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h. */
7163 rm -f conftest.$ac_objext conftest$ac_exeext
7164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7165 (eval $ac_link) 2>&5
7167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7168 (exit $ac_status); } &&
7169 { ac_try='test -s conftest$ac_exeext'
7170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7174 (exit $ac_status); }; }; then
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7180 ac_cv_sys_largefile_CFLAGS=no
7182 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7187 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7188 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7189 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7190 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7191 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7195 ac_cv_sys_largefile_LDFLAGS=no
7199 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7200 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7201 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7202 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7203 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7207 ac_cv_sys_largefile_LIBS=no
7211 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7212 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7214 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7217 -D_FILE_OFFSET_BITS=*) ;;
7218 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7219 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7225 '') CPPFLAGS="$ac_flag" ;;
7226 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7234 '') CFLAGS="$ac_flag" ;;
7235 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7240 case "$ac_cv_sys_largefile_LDFLAGS" in
7244 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7245 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7248 case "$ac_cv_sys_largefile_LIBS" in
7252 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7253 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7256 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7257 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7258 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7259 echo $ECHO_N "(cached) $ECHO_C" >&6
7261 ac_cv_sys_file_offset_bits=no
7263 # HP-UX 10.20 and later
7264 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7265 ac_cv_sys_file_offset_bits=64 ;;
7267 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7269 -D_FILE_OFFSET_BITS)
7270 ac_cv_sys_file_offset_bits=1 ;;
7271 -D_FILE_OFFSET_BITS=*)
7272 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7277 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7278 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7279 if test "$ac_cv_sys_file_offset_bits" != no; then
7281 cat >>confdefs.h <<_ACEOF
7282 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7286 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7287 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7288 if test "${ac_cv_sys_largefile_source+set}" = set; then
7289 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 ac_cv_sys_largefile_source=no
7293 # HP-UX 10.20 and later
7294 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7295 ac_cv_sys_largefile_source=1 ;;
7297 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7299 -D_LARGEFILE_SOURCE)
7300 ac_cv_sys_largefile_source=1 ;;
7301 -D_LARGEFILE_SOURCE=*)
7302 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7307 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7308 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7309 if test "$ac_cv_sys_largefile_source" != no; then
7311 cat >>confdefs.h <<_ACEOF
7312 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7316 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7317 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7318 if test "${ac_cv_sys_large_files+set}" = set; then
7319 echo $ECHO_N "(cached) $ECHO_C" >&6
7321 ac_cv_sys_large_files=no
7324 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7325 ac_cv_sys_large_files=1 ;;
7327 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7330 ac_cv_sys_large_files=1 ;;
7332 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7337 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7338 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7339 if test "$ac_cv_sys_large_files" != no; then
7341 cat >>confdefs.h <<_ACEOF
7342 #define _LARGE_FILES $ac_cv_sys_large_files
7350 echo "$as_me:$LINENO: checking for X" >&5
7351 echo $ECHO_N "checking for X... $ECHO_C" >&6
7354 # Check whether --with-x or --without-x was given.
7355 if test "${with_x+set}" = set; then
7359 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7360 if test "x$with_x" = xno; then
7361 # The user explicitly disabled X.
7364 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7365 # Both variables are already set.
7368 if test "${ac_cv_have_x+set}" = set; then
7369 echo $ECHO_N "(cached) $ECHO_C" >&6
7371 # One or both of the vars are not set, and there is no cached value.
7372 ac_x_includes=no ac_x_libraries=no
7374 if mkdir conftest.dir; then
7376 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7377 cat >Imakefile <<'_ACEOF'
7379 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7381 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7382 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7383 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7384 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7385 for ac_extension in a so sl; do
7386 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7387 test -f $ac_im_libdir/libX11.$ac_extension; then
7388 ac_im_usrlibdir=$ac_im_libdir; break
7391 # Screen out bogus values from the imake configuration. They are
7392 # bogus both because they are the default anyway, and because
7393 # using them would break gcc on systems where it needs fixed includes.
7394 case $ac_im_incroot in
7396 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7398 case $ac_im_usrlibdir in
7400 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7407 # Standard set of common directories for X headers.
7408 # Check X11 before X11Rn because it is often a symlink to the current release.
7420 /usr/local/X11/include
7421 /usr/local/X11R6/include
7422 /usr/local/X11R5/include
7423 /usr/local/X11R4/include
7425 /usr/local/include/X11
7426 /usr/local/include/X11R6
7427 /usr/local/include/X11R5
7428 /usr/local/include/X11R4
7432 /usr/XFree86/include/X11
7436 /usr/unsupported/include
7438 /usr/local/x11r5/include
7439 /usr/lpp/Xamples/include
7441 /usr/openwin/include
7442 /usr/openwin/share/include'
7444 if test "$ac_x_includes" = no; then
7445 # Guess where to find include files, by looking for Intrinsic.h.
7446 # First, try using that file with no special directory specified.
7447 cat >conftest.$ac_ext <<_ACEOF
7448 #line $LINENO "configure"
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h. */
7454 #include <X11/Intrinsic.h>
7456 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7457 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7459 grep -v '^ *+' conftest.er1 >conftest.err
7461 cat conftest.err >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); } >/dev/null; then
7464 if test -s conftest.err; then
7465 ac_cpp_err=$ac_c_preproc_warn_flag
7472 if test -z "$ac_cpp_err"; then
7473 # We can compile using X headers with no special include directory.
7476 echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7479 for ac_dir in $ac_x_header_dirs; do
7480 if test -r "$ac_dir/X11/Intrinsic.h"; then
7481 ac_x_includes=$ac_dir
7486 rm -f conftest.err conftest.$ac_ext
7487 fi # $ac_x_includes = no
7489 if test "$ac_x_libraries" = no; then
7490 # Check for the libraries.
7491 # See if we find them without any special options.
7492 # Don't add to $LIBS permanently.
7495 cat >conftest.$ac_ext <<_ACEOF
7496 #line $LINENO "configure"
7499 cat confdefs.h >>conftest.$ac_ext
7500 cat >>conftest.$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7502 #include <X11/Intrinsic.h>
7511 rm -f conftest.$ac_objext conftest$ac_exeext
7512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7513 (eval $ac_link) 2>&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } &&
7517 { ac_try='test -s conftest$ac_exeext'
7518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7522 (exit $ac_status); }; }; then
7524 # We can link X programs with no special library path.
7527 echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7531 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7533 # Don't even attempt the hair of trying to link an X program!
7534 for ac_extension in a so sl; do
7535 if test -r $ac_dir/libXt.$ac_extension; then
7536 ac_x_libraries=$ac_dir
7542 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7543 fi # $ac_x_libraries = no
7545 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7546 # Didn't find X anywhere. Cache the known absence of X.
7547 ac_cv_have_x="have_x=no"
7549 # Record where we found X for the cache.
7550 ac_cv_have_x="have_x=yes \
7551 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7556 eval "$ac_cv_have_x"
7559 if test "$have_x" != yes; then
7560 echo "$as_me:$LINENO: result: $have_x" >&5
7561 echo "${ECHO_T}$have_x" >&6
7564 # If each of the values was on the command line, it overrides each guess.
7565 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7566 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7567 # Update the cache value to reflect the command line values.
7568 ac_cv_have_x="have_x=yes \
7569 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7570 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7571 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7574 if test "$no_x" = yes; then
7575 # Not all programs may use this symbol, but it does not hurt to define it.
7577 cat >>confdefs.h <<\_ACEOF
7578 #define X_DISPLAY_MISSING 1
7581 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7583 if test -n "$x_includes"; then
7584 X_CFLAGS="$X_CFLAGS -I$x_includes"
7587 # It would also be nice to do this for all -L options, not just this one.
7588 if test -n "$x_libraries"; then
7589 X_LIBS="$X_LIBS -L$x_libraries"
7590 # For Solaris; some versions of Sun CC require a space after -R and
7591 # others require no space. Words are not sufficient . . . .
7592 case `(uname -sr) 2>/dev/null` in
7594 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7595 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7596 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7597 cat >conftest.$ac_ext <<_ACEOF
7598 #line $LINENO "configure"
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7613 rm -f conftest.$ac_objext conftest$ac_exeext
7614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7615 (eval $ac_link) 2>&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } &&
7619 { ac_try='test -s conftest$ac_exeext'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; }; then
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7633 if test $ac_R_nospace = yes; then
7634 echo "$as_me:$LINENO: result: no" >&5
7635 echo "${ECHO_T}no" >&6
7636 X_LIBS="$X_LIBS -R$x_libraries"
7638 LIBS="$ac_xsave_LIBS -R $x_libraries"
7639 cat >conftest.$ac_ext <<_ACEOF
7640 #line $LINENO "configure"
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h. */
7655 rm -f conftest.$ac_objext conftest$ac_exeext
7656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7657 (eval $ac_link) 2>&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } &&
7661 { ac_try='test -s conftest$ac_exeext'
7662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7666 (exit $ac_status); }; }; then
7669 echo "$as_me: failed program was:" >&5
7670 sed 's/^/| /' conftest.$ac_ext >&5
7674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7675 if test $ac_R_space = yes; then
7676 echo "$as_me:$LINENO: result: yes" >&5
7677 echo "${ECHO_T}yes" >&6
7678 X_LIBS="$X_LIBS -R $x_libraries"
7680 echo "$as_me:$LINENO: result: neither works" >&5
7681 echo "${ECHO_T}neither works" >&6
7688 # Check for system-dependent libraries X programs must link with.
7689 # Do this before checking for the system-independent R6 libraries
7690 # (-lICE), since we may need -lsocket or whatever for X linking.
7692 if test "$ISC" = yes; then
7693 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7695 # Martyn Johnson says this is needed for Ultrix, if the X
7696 # libraries were built with DECnet support. And Karl Berry says
7697 # the Alpha needs dnet_stub (dnet does not exist).
7698 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7699 cat >conftest.$ac_ext <<_ACEOF
7700 #line $LINENO "configure"
7703 cat confdefs.h >>conftest.$ac_ext
7704 cat >>conftest.$ac_ext <<_ACEOF
7705 /* end confdefs.h. */
7707 /* Override any gcc2 internal prototype to avoid an error. */
7711 /* We use char because int might match the return type of a gcc2
7712 builtin and then its argument prototype would still apply. */
7713 char XOpenDisplay ();
7722 rm -f conftest.$ac_objext conftest$ac_exeext
7723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7724 (eval $ac_link) 2>&5
7726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727 (exit $ac_status); } &&
7728 { ac_try='test -s conftest$ac_exeext'
7729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); }; }; then
7736 echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7739 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7740 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7741 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 ac_check_lib_save_LIBS=$LIBS
7746 cat >conftest.$ac_ext <<_ACEOF
7747 #line $LINENO "configure"
7750 cat confdefs.h >>conftest.$ac_ext
7751 cat >>conftest.$ac_ext <<_ACEOF
7752 /* end confdefs.h. */
7754 /* Override any gcc2 internal prototype to avoid an error. */
7758 /* We use char because int might match the return type of a gcc2
7759 builtin and then its argument prototype would still apply. */
7769 rm -f conftest.$ac_objext conftest$ac_exeext
7770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7771 (eval $ac_link) 2>&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } &&
7775 { ac_try='test -s conftest$ac_exeext'
7776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); }; }; then
7781 ac_cv_lib_dnet_dnet_ntoa=yes
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.$ac_ext >&5
7786 ac_cv_lib_dnet_dnet_ntoa=no
7788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7789 LIBS=$ac_check_lib_save_LIBS
7791 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7792 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7793 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7794 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7797 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7798 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7799 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7800 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 ac_check_lib_save_LIBS=$LIBS
7804 LIBS="-ldnet_stub $LIBS"
7805 cat >conftest.$ac_ext <<_ACEOF
7806 #line $LINENO "configure"
7809 cat confdefs.h >>conftest.$ac_ext
7810 cat >>conftest.$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7813 /* Override any gcc2 internal prototype to avoid an error. */
7817 /* We use char because int might match the return type of a gcc2
7818 builtin and then its argument prototype would still apply. */
7828 rm -f conftest.$ac_objext conftest$ac_exeext
7829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7830 (eval $ac_link) 2>&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } &&
7834 { ac_try='test -s conftest$ac_exeext'
7835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); }; }; then
7840 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7842 echo "$as_me: failed program was:" >&5
7843 sed 's/^/| /' conftest.$ac_ext >&5
7845 ac_cv_lib_dnet_stub_dnet_ntoa=no
7847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7848 LIBS=$ac_check_lib_save_LIBS
7850 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7851 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7852 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7853 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7859 LIBS="$ac_xsave_LIBS"
7861 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7862 # to get the SysV transport functions.
7863 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7865 # The nsl library prevents programs from opening the X display
7866 # on Irix 5.2, according to T.E. Dickey.
7867 # The functions gethostbyname, getservbyname, and inet_addr are
7868 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7869 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7870 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7871 if test "${ac_cv_func_gethostbyname+set}" = set; then
7872 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 cat >conftest.$ac_ext <<_ACEOF
7875 #line $LINENO "configure"
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h. */
7881 /* System header to define __stub macros and hopefully few prototypes,
7882 which can conflict with char gethostbyname (); below.
7883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7884 <limits.h> exists even on freestanding compilers. */
7886 # include <limits.h>
7888 # include <assert.h>
7890 /* Override any gcc2 internal prototype to avoid an error. */
7895 /* We use char because int might match the return type of a gcc2
7896 builtin and then its argument prototype would still apply. */
7897 char gethostbyname ();
7898 /* The GNU C library defines this for functions which it implements
7899 to always fail with ENOSYS. Some functions are actually named
7900 something starting with __ and the normal name is an alias. */
7901 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7904 char (*f) () = gethostbyname;
7913 return f != gethostbyname;
7918 rm -f conftest.$ac_objext conftest$ac_exeext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7920 (eval $ac_link) 2>&5
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); } &&
7924 { ac_try='test -s conftest$ac_exeext'
7925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); }; }; then
7930 ac_cv_func_gethostbyname=yes
7932 echo "$as_me: failed program was:" >&5
7933 sed 's/^/| /' conftest.$ac_ext >&5
7935 ac_cv_func_gethostbyname=no
7937 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7939 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7940 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7942 if test $ac_cv_func_gethostbyname = no; then
7943 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7944 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7945 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7946 echo $ECHO_N "(cached) $ECHO_C" >&6
7948 ac_check_lib_save_LIBS=$LIBS
7950 cat >conftest.$ac_ext <<_ACEOF
7951 #line $LINENO "configure"
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h. */
7958 /* Override any gcc2 internal prototype to avoid an error. */
7962 /* We use char because int might match the return type of a gcc2
7963 builtin and then its argument prototype would still apply. */
7964 char gethostbyname ();
7973 rm -f conftest.$ac_objext conftest$ac_exeext
7974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7975 (eval $ac_link) 2>&5
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } &&
7979 { ac_try='test -s conftest$ac_exeext'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; }; then
7985 ac_cv_lib_nsl_gethostbyname=yes
7987 echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7990 ac_cv_lib_nsl_gethostbyname=no
7992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7993 LIBS=$ac_check_lib_save_LIBS
7995 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7996 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7997 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7998 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8001 if test $ac_cv_lib_nsl_gethostbyname = no; then
8002 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8003 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8004 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8007 ac_check_lib_save_LIBS=$LIBS
8009 cat >conftest.$ac_ext <<_ACEOF
8010 #line $LINENO "configure"
8013 cat confdefs.h >>conftest.$ac_ext
8014 cat >>conftest.$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8017 /* Override any gcc2 internal prototype to avoid an error. */
8021 /* We use char because int might match the return type of a gcc2
8022 builtin and then its argument prototype would still apply. */
8023 char gethostbyname ();
8032 rm -f conftest.$ac_objext conftest$ac_exeext
8033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8034 (eval $ac_link) 2>&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } &&
8038 { ac_try='test -s conftest$ac_exeext'
8039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; }; then
8044 ac_cv_lib_bsd_gethostbyname=yes
8046 echo "$as_me: failed program was:" >&5
8047 sed 's/^/| /' conftest.$ac_ext >&5
8049 ac_cv_lib_bsd_gethostbyname=no
8051 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8052 LIBS=$ac_check_lib_save_LIBS
8054 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8055 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8056 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8057 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8063 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8064 # socket/setsockopt and other routines are undefined under SCO ODT
8065 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8066 # on later versions), says Simon Leinen: it contains gethostby*
8067 # variants that don't use the name server (or something). -lsocket
8068 # must be given before -lnsl if both are needed. We assume that
8069 # if connect needs -lnsl, so does gethostbyname.
8070 echo "$as_me:$LINENO: checking for connect" >&5
8071 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8072 if test "${ac_cv_func_connect+set}" = set; then
8073 echo $ECHO_N "(cached) $ECHO_C" >&6
8075 cat >conftest.$ac_ext <<_ACEOF
8076 #line $LINENO "configure"
8079 cat confdefs.h >>conftest.$ac_ext
8080 cat >>conftest.$ac_ext <<_ACEOF
8081 /* end confdefs.h. */
8082 /* System header to define __stub macros and hopefully few prototypes,
8083 which can conflict with char connect (); below.
8084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8085 <limits.h> exists even on freestanding compilers. */
8087 # include <limits.h>
8089 # include <assert.h>
8091 /* Override any gcc2 internal prototype to avoid an error. */
8096 /* We use char because int might match the return type of a gcc2
8097 builtin and then its argument prototype would still apply. */
8099 /* The GNU C library defines this for functions which it implements
8100 to always fail with ENOSYS. Some functions are actually named
8101 something starting with __ and the normal name is an alias. */
8102 #if defined (__stub_connect) || defined (__stub___connect)
8105 char (*f) () = connect;
8114 return f != connect;
8119 rm -f conftest.$ac_objext conftest$ac_exeext
8120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8121 (eval $ac_link) 2>&5
8123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } &&
8125 { ac_try='test -s conftest$ac_exeext'
8126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; }; then
8131 ac_cv_func_connect=yes
8133 echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8136 ac_cv_func_connect=no
8138 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8140 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8141 echo "${ECHO_T}$ac_cv_func_connect" >&6
8143 if test $ac_cv_func_connect = no; then
8144 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8145 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8146 if test "${ac_cv_lib_socket_connect+set}" = set; then
8147 echo $ECHO_N "(cached) $ECHO_C" >&6
8149 ac_check_lib_save_LIBS=$LIBS
8150 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8151 cat >conftest.$ac_ext <<_ACEOF
8152 #line $LINENO "configure"
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h. */
8159 /* Override any gcc2 internal prototype to avoid an error. */
8163 /* We use char because int might match the return type of a gcc2
8164 builtin and then its argument prototype would still apply. */
8174 rm -f conftest.$ac_objext conftest$ac_exeext
8175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8176 (eval $ac_link) 2>&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } &&
8180 { ac_try='test -s conftest$ac_exeext'
8181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); }; }; then
8186 ac_cv_lib_socket_connect=yes
8188 echo "$as_me: failed program was:" >&5
8189 sed 's/^/| /' conftest.$ac_ext >&5
8191 ac_cv_lib_socket_connect=no
8193 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8194 LIBS=$ac_check_lib_save_LIBS
8196 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8197 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8198 if test $ac_cv_lib_socket_connect = yes; then
8199 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8204 # Guillermo Gomez says -lposix is necessary on A/UX.
8205 echo "$as_me:$LINENO: checking for remove" >&5
8206 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8207 if test "${ac_cv_func_remove+set}" = set; then
8208 echo $ECHO_N "(cached) $ECHO_C" >&6
8210 cat >conftest.$ac_ext <<_ACEOF
8211 #line $LINENO "configure"
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8217 /* System header to define __stub macros and hopefully few prototypes,
8218 which can conflict with char remove (); below.
8219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8220 <limits.h> exists even on freestanding compilers. */
8222 # include <limits.h>
8224 # include <assert.h>
8226 /* Override any gcc2 internal prototype to avoid an error. */
8231 /* We use char because int might match the return type of a gcc2
8232 builtin and then its argument prototype would still apply. */
8234 /* The GNU C library defines this for functions which it implements
8235 to always fail with ENOSYS. Some functions are actually named
8236 something starting with __ and the normal name is an alias. */
8237 #if defined (__stub_remove) || defined (__stub___remove)
8240 char (*f) () = remove;
8254 rm -f conftest.$ac_objext conftest$ac_exeext
8255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8256 (eval $ac_link) 2>&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } &&
8260 { ac_try='test -s conftest$ac_exeext'
8261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8265 (exit $ac_status); }; }; then
8266 ac_cv_func_remove=yes
8268 echo "$as_me: failed program was:" >&5
8269 sed 's/^/| /' conftest.$ac_ext >&5
8271 ac_cv_func_remove=no
8273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8275 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8276 echo "${ECHO_T}$ac_cv_func_remove" >&6
8278 if test $ac_cv_func_remove = no; then
8279 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8280 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8281 if test "${ac_cv_lib_posix_remove+set}" = set; then
8282 echo $ECHO_N "(cached) $ECHO_C" >&6
8284 ac_check_lib_save_LIBS=$LIBS
8285 LIBS="-lposix $LIBS"
8286 cat >conftest.$ac_ext <<_ACEOF
8287 #line $LINENO "configure"
8290 cat confdefs.h >>conftest.$ac_ext
8291 cat >>conftest.$ac_ext <<_ACEOF
8292 /* end confdefs.h. */
8294 /* Override any gcc2 internal prototype to avoid an error. */
8298 /* We use char because int might match the return type of a gcc2
8299 builtin and then its argument prototype would still apply. */
8309 rm -f conftest.$ac_objext conftest$ac_exeext
8310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8311 (eval $ac_link) 2>&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } &&
8315 { ac_try='test -s conftest$ac_exeext'
8316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
8321 ac_cv_lib_posix_remove=yes
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.$ac_ext >&5
8326 ac_cv_lib_posix_remove=no
8328 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8329 LIBS=$ac_check_lib_save_LIBS
8331 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8332 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8333 if test $ac_cv_lib_posix_remove = yes; then
8334 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8339 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8340 echo "$as_me:$LINENO: checking for shmat" >&5
8341 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8342 if test "${ac_cv_func_shmat+set}" = set; then
8343 echo $ECHO_N "(cached) $ECHO_C" >&6
8345 cat >conftest.$ac_ext <<_ACEOF
8346 #line $LINENO "configure"
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8352 /* System header to define __stub macros and hopefully few prototypes,
8353 which can conflict with char shmat (); below.
8354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8355 <limits.h> exists even on freestanding compilers. */
8357 # include <limits.h>
8359 # include <assert.h>
8361 /* Override any gcc2 internal prototype to avoid an error. */
8366 /* We use char because int might match the return type of a gcc2
8367 builtin and then its argument prototype would still apply. */
8369 /* The GNU C library defines this for functions which it implements
8370 to always fail with ENOSYS. Some functions are actually named
8371 something starting with __ and the normal name is an alias. */
8372 #if defined (__stub_shmat) || defined (__stub___shmat)
8375 char (*f) () = shmat;
8389 rm -f conftest.$ac_objext conftest$ac_exeext
8390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8391 (eval $ac_link) 2>&5
8393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } &&
8395 { ac_try='test -s conftest$ac_exeext'
8396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8400 (exit $ac_status); }; }; then
8401 ac_cv_func_shmat=yes
8403 echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.$ac_ext >&5
8408 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8410 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8411 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8413 if test $ac_cv_func_shmat = no; then
8414 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8415 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8416 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8417 echo $ECHO_N "(cached) $ECHO_C" >&6
8419 ac_check_lib_save_LIBS=$LIBS
8421 cat >conftest.$ac_ext <<_ACEOF
8422 #line $LINENO "configure"
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h. */
8429 /* Override any gcc2 internal prototype to avoid an error. */
8433 /* We use char because int might match the return type of a gcc2
8434 builtin and then its argument prototype would still apply. */
8444 rm -f conftest.$ac_objext conftest$ac_exeext
8445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8446 (eval $ac_link) 2>&5
8448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
8450 { ac_try='test -s conftest$ac_exeext'
8451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); }; }; then
8456 ac_cv_lib_ipc_shmat=yes
8458 echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8461 ac_cv_lib_ipc_shmat=no
8463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8464 LIBS=$ac_check_lib_save_LIBS
8466 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8467 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8468 if test $ac_cv_lib_ipc_shmat = yes; then
8469 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8475 # Check for libraries that X11R6 Xt/Xaw programs need.
8476 ac_save_LDFLAGS=$LDFLAGS
8477 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8478 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8479 # check for ICE first), but we must link in the order -lSM -lICE or
8480 # we get undefined symbols. So assume we have SM if we have ICE.
8481 # These have to be linked with before -lX11, unlike the other
8482 # libraries we check for below, so use a different variable.
8483 # John Interrante, Karl Berry
8484 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8485 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8486 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8489 ac_check_lib_save_LIBS=$LIBS
8490 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8491 cat >conftest.$ac_ext <<_ACEOF
8492 #line $LINENO "configure"
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8499 /* Override any gcc2 internal prototype to avoid an error. */
8503 /* We use char because int might match the return type of a gcc2
8504 builtin and then its argument prototype would still apply. */
8505 char IceConnectionNumber ();
8509 IceConnectionNumber ();
8514 rm -f conftest.$ac_objext conftest$ac_exeext
8515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8516 (eval $ac_link) 2>&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } &&
8520 { ac_try='test -s conftest$ac_exeext'
8521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); }; }; then
8526 ac_cv_lib_ICE_IceConnectionNumber=yes
8528 echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8531 ac_cv_lib_ICE_IceConnectionNumber=no
8533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8534 LIBS=$ac_check_lib_save_LIBS
8536 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8537 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8538 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8539 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8542 LDFLAGS=$ac_save_LDFLAGS
8594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8595 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8596 echo "$as_me:$LINENO: checking for $ac_header" >&5
8597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8599 echo $ECHO_N "(cached) $ECHO_C" >&6
8601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8602 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8604 # Is the header compilable?
8605 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8606 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8607 cat >conftest.$ac_ext <<_ACEOF
8608 #line $LINENO "configure"
8611 cat confdefs.h >>conftest.$ac_ext
8612 cat >>conftest.$ac_ext <<_ACEOF
8613 /* end confdefs.h. */
8614 $ac_includes_default
8615 #include <$ac_header>
8617 rm -f conftest.$ac_objext
8618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8619 (eval $ac_compile) 2>&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } &&
8623 { ac_try='test -s conftest.$ac_objext'
8624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); }; }; then
8629 ac_header_compiler=yes
8631 echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8634 ac_header_compiler=no
8636 rm -f conftest.$ac_objext conftest.$ac_ext
8637 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8638 echo "${ECHO_T}$ac_header_compiler" >&6
8640 # Is the header present?
8641 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8643 cat >conftest.$ac_ext <<_ACEOF
8644 #line $LINENO "configure"
8647 cat confdefs.h >>conftest.$ac_ext
8648 cat >>conftest.$ac_ext <<_ACEOF
8649 /* end confdefs.h. */
8650 #include <$ac_header>
8652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8653 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8655 grep -v '^ *+' conftest.er1 >conftest.err
8657 cat conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } >/dev/null; then
8660 if test -s conftest.err; then
8661 ac_cpp_err=$ac_c_preproc_warn_flag
8668 if test -z "$ac_cpp_err"; then
8669 ac_header_preproc=yes
8671 echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8674 ac_header_preproc=no
8676 rm -f conftest.err conftest.$ac_ext
8677 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8678 echo "${ECHO_T}$ac_header_preproc" >&6
8680 # So? What about this header?
8681 case $ac_header_compiler:$ac_header_preproc in
8683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8686 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8689 ## ------------------------------------ ##
8690 ## Report this to bug-autoconf@gnu.org. ##
8691 ## ------------------------------------ ##
8694 sed "s/^/$as_me: WARNING: /" >&2
8697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8705 ## ------------------------------------ ##
8706 ## Report this to bug-autoconf@gnu.org. ##
8707 ## ------------------------------------ ##
8710 sed "s/^/$as_me: WARNING: /" >&2
8713 echo "$as_me:$LINENO: checking for $ac_header" >&5
8714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8715 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8716 echo $ECHO_N "(cached) $ECHO_C" >&6
8718 eval "$as_ac_Header=$ac_header_preproc"
8720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8725 cat >>confdefs.h <<_ACEOF
8726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8733 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8734 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8735 if test "${ac_cv_header_stdc+set}" = set; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 cat >conftest.$ac_ext <<_ACEOF
8739 #line $LINENO "configure"
8742 cat confdefs.h >>conftest.$ac_ext
8743 cat >>conftest.$ac_ext <<_ACEOF
8744 /* end confdefs.h. */
8758 rm -f conftest.$ac_objext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8760 (eval $ac_compile) 2>&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } &&
8764 { ac_try='test -s conftest.$ac_objext'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 ac_cv_header_stdc=yes
8772 echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8775 ac_cv_header_stdc=no
8777 rm -f conftest.$ac_objext conftest.$ac_ext
8779 if test $ac_cv_header_stdc = yes; then
8780 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8781 cat >conftest.$ac_ext <<_ACEOF
8782 #line $LINENO "configure"
8785 cat confdefs.h >>conftest.$ac_ext
8786 cat >>conftest.$ac_ext <<_ACEOF
8787 /* end confdefs.h. */
8791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8792 $EGREP "memchr" >/dev/null 2>&1; then
8795 ac_cv_header_stdc=no
8801 if test $ac_cv_header_stdc = yes; then
8802 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8803 cat >conftest.$ac_ext <<_ACEOF
8804 #line $LINENO "configure"
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8814 $EGREP "free" >/dev/null 2>&1; then
8817 ac_cv_header_stdc=no
8823 if test $ac_cv_header_stdc = yes; then
8824 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8825 if test "$cross_compiling" = yes; then
8828 cat >conftest.$ac_ext <<_ACEOF
8829 #line $LINENO "configure"
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8836 #if ((' ' & 0x0FF) == 0x020)
8837 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8838 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8840 # define ISLOWER(c) \
8841 (('a' <= (c) && (c) <= 'i') \
8842 || ('j' <= (c) && (c) <= 'r') \
8843 || ('s' <= (c) && (c) <= 'z'))
8844 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8847 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8852 for (i = 0; i < 256; i++)
8853 if (XOR (islower (i), ISLOWER (i))
8854 || toupper (i) != TOUPPER (i))
8859 rm -f conftest$ac_exeext
8860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8861 (eval $ac_link) 2>&5
8863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); }; }; then
8872 echo "$as_me: program exited with status $ac_status" >&5
8873 echo "$as_me: failed program was:" >&5
8874 sed 's/^/| /' conftest.$ac_ext >&5
8877 ac_cv_header_stdc=no
8879 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8883 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8884 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8885 if test $ac_cv_header_stdc = yes; then
8887 cat >>confdefs.h <<\_ACEOF
8888 #define STDC_HEADERS 1
8893 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
8894 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
8895 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
8896 echo $ECHO_N "(cached) $ECHO_C" >&6
8898 cat >conftest.$ac_ext <<_ACEOF
8899 #line $LINENO "configure"
8902 cat confdefs.h >>conftest.$ac_ext
8903 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */
8905 #include <sys/types.h>
8909 return makedev(0, 0);
8914 rm -f conftest.$ac_objext conftest$ac_exeext
8915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916 (eval $ac_link) 2>&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 (exit $ac_status); } &&
8920 { ac_try='test -s conftest$ac_exeext'
8921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925 (exit $ac_status); }; }; then
8926 ac_cv_header_sys_types_h_makedev=yes
8928 echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8931 ac_cv_header_sys_types_h_makedev=no
8933 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8936 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
8937 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
8939 if test $ac_cv_header_sys_types_h_makedev = no; then
8940 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8941 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8942 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
8943 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8944 echo $ECHO_N "(cached) $ECHO_C" >&6
8946 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8947 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
8949 # Is the header compilable?
8950 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
8951 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
8952 cat >conftest.$ac_ext <<_ACEOF
8953 #line $LINENO "configure"
8956 cat confdefs.h >>conftest.$ac_ext
8957 cat >>conftest.$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8959 $ac_includes_default
8960 #include <sys/mkdev.h>
8962 rm -f conftest.$ac_objext
8963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8964 (eval $ac_compile) 2>&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } &&
8968 { ac_try='test -s conftest.$ac_objext'
8969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); }; }; then
8974 ac_header_compiler=yes
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8979 ac_header_compiler=no
8981 rm -f conftest.$ac_objext conftest.$ac_ext
8982 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8983 echo "${ECHO_T}$ac_header_compiler" >&6
8985 # Is the header present?
8986 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
8987 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
8988 cat >conftest.$ac_ext <<_ACEOF
8989 #line $LINENO "configure"
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h. */
8995 #include <sys/mkdev.h>
8997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9000 grep -v '^ *+' conftest.er1 >conftest.err
9002 cat conftest.err >&5
9003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9004 (exit $ac_status); } >/dev/null; then
9005 if test -s conftest.err; then
9006 ac_cpp_err=$ac_c_preproc_warn_flag
9013 if test -z "$ac_cpp_err"; then
9014 ac_header_preproc=yes
9016 echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9019 ac_header_preproc=no
9021 rm -f conftest.err conftest.$ac_ext
9022 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9023 echo "${ECHO_T}$ac_header_preproc" >&6
9025 # So? What about this header?
9026 case $ac_header_compiler:$ac_header_preproc in
9028 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9029 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9030 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9031 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9034 ## ------------------------------------ ##
9035 ## Report this to bug-autoconf@gnu.org. ##
9036 ## ------------------------------------ ##
9039 sed "s/^/$as_me: WARNING: /" >&2
9042 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9043 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9044 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9045 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9046 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9047 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9050 ## ------------------------------------ ##
9051 ## Report this to bug-autoconf@gnu.org. ##
9052 ## ------------------------------------ ##
9055 sed "s/^/$as_me: WARNING: /" >&2
9058 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9059 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9060 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9061 echo $ECHO_N "(cached) $ECHO_C" >&6
9063 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9065 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9066 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9069 if test $ac_cv_header_sys_mkdev_h = yes; then
9071 cat >>confdefs.h <<\_ACEOF
9072 #define MAJOR_IN_MKDEV 1
9079 if test $ac_cv_header_sys_mkdev_h = no; then
9080 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9081 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9082 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9083 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9084 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9087 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9089 # Is the header compilable?
9090 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9091 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9092 cat >conftest.$ac_ext <<_ACEOF
9093 #line $LINENO "configure"
9096 cat confdefs.h >>conftest.$ac_ext
9097 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */
9099 $ac_includes_default
9100 #include <sys/sysmacros.h>
9102 rm -f conftest.$ac_objext
9103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9104 (eval $ac_compile) 2>&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } &&
9108 { ac_try='test -s conftest.$ac_objext'
9109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9113 (exit $ac_status); }; }; then
9114 ac_header_compiler=yes
9116 echo "$as_me: failed program was:" >&5
9117 sed 's/^/| /' conftest.$ac_ext >&5
9119 ac_header_compiler=no
9121 rm -f conftest.$ac_objext conftest.$ac_ext
9122 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9123 echo "${ECHO_T}$ac_header_compiler" >&6
9125 # Is the header present?
9126 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9127 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9128 cat >conftest.$ac_ext <<_ACEOF
9129 #line $LINENO "configure"
9132 cat confdefs.h >>conftest.$ac_ext
9133 cat >>conftest.$ac_ext <<_ACEOF
9134 /* end confdefs.h. */
9135 #include <sys/sysmacros.h>
9137 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9140 grep -v '^ *+' conftest.er1 >conftest.err
9142 cat conftest.err >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 (exit $ac_status); } >/dev/null; then
9145 if test -s conftest.err; then
9146 ac_cpp_err=$ac_c_preproc_warn_flag
9153 if test -z "$ac_cpp_err"; then
9154 ac_header_preproc=yes
9156 echo "$as_me: failed program was:" >&5
9157 sed 's/^/| /' conftest.$ac_ext >&5
9159 ac_header_preproc=no
9161 rm -f conftest.err conftest.$ac_ext
9162 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9163 echo "${ECHO_T}$ac_header_preproc" >&6
9165 # So? What about this header?
9166 case $ac_header_compiler:$ac_header_preproc in
9168 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9169 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9170 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9171 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9174 ## ------------------------------------ ##
9175 ## Report this to bug-autoconf@gnu.org. ##
9176 ## ------------------------------------ ##
9179 sed "s/^/$as_me: WARNING: /" >&2
9182 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9183 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9184 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9185 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9186 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9187 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9190 ## ------------------------------------ ##
9191 ## Report this to bug-autoconf@gnu.org. ##
9192 ## ------------------------------------ ##
9195 sed "s/^/$as_me: WARNING: /" >&2
9198 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9199 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9200 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9201 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9205 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9206 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9209 if test $ac_cv_header_sys_sysmacros_h = yes; then
9211 cat >>confdefs.h <<\_ACEOF
9212 #define MAJOR_IN_SYSMACROS 1
9227 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9228 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9229 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9230 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9231 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9232 echo $ECHO_N "(cached) $ECHO_C" >&6
9234 cat >conftest.$ac_ext <<_ACEOF
9235 #line $LINENO "configure"
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h. */
9241 #include <sys/types.h>
9253 rm -f conftest.$ac_objext
9254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9255 (eval $ac_compile) 2>&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } &&
9259 { ac_try='test -s conftest.$ac_objext'
9260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264 (exit $ac_status); }; }; then
9265 eval "$as_ac_Header=yes"
9267 echo "$as_me: failed program was:" >&5
9268 sed 's/^/| /' conftest.$ac_ext >&5
9270 eval "$as_ac_Header=no"
9272 rm -f conftest.$ac_objext conftest.$ac_ext
9274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9275 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9277 cat >>confdefs.h <<_ACEOF
9278 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9281 ac_header_dirent=$ac_hdr; break
9285 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9286 if test $ac_header_dirent = dirent.h; then
9287 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9288 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9289 if test "${ac_cv_search_opendir+set}" = set; then
9290 echo $ECHO_N "(cached) $ECHO_C" >&6
9292 ac_func_search_save_LIBS=$LIBS
9293 ac_cv_search_opendir=no
9294 cat >conftest.$ac_ext <<_ACEOF
9295 #line $LINENO "configure"
9298 cat confdefs.h >>conftest.$ac_ext
9299 cat >>conftest.$ac_ext <<_ACEOF
9300 /* end confdefs.h. */
9302 /* Override any gcc2 internal prototype to avoid an error. */
9306 /* We use char because int might match the return type of a gcc2
9307 builtin and then its argument prototype would still apply. */
9317 rm -f conftest.$ac_objext conftest$ac_exeext
9318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9319 (eval $ac_link) 2>&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); } &&
9323 { ac_try='test -s conftest$ac_exeext'
9324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); }; }; then
9329 ac_cv_search_opendir="none required"
9331 echo "$as_me: failed program was:" >&5
9332 sed 's/^/| /' conftest.$ac_ext >&5
9335 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9336 if test "$ac_cv_search_opendir" = no; then
9337 for ac_lib in dir; do
9338 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9339 cat >conftest.$ac_ext <<_ACEOF
9340 #line $LINENO "configure"
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9347 /* Override any gcc2 internal prototype to avoid an error. */
9351 /* We use char because int might match the return type of a gcc2
9352 builtin and then its argument prototype would still apply. */
9362 rm -f conftest.$ac_objext conftest$ac_exeext
9363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9364 (eval $ac_link) 2>&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } &&
9368 { ac_try='test -s conftest$ac_exeext'
9369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; }; then
9374 ac_cv_search_opendir="-l$ac_lib"
9377 echo "$as_me: failed program was:" >&5
9378 sed 's/^/| /' conftest.$ac_ext >&5
9381 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9384 LIBS=$ac_func_search_save_LIBS
9386 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9387 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9388 if test "$ac_cv_search_opendir" != no; then
9389 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9394 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9395 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9396 if test "${ac_cv_search_opendir+set}" = set; then
9397 echo $ECHO_N "(cached) $ECHO_C" >&6
9399 ac_func_search_save_LIBS=$LIBS
9400 ac_cv_search_opendir=no
9401 cat >conftest.$ac_ext <<_ACEOF
9402 #line $LINENO "configure"
9405 cat confdefs.h >>conftest.$ac_ext
9406 cat >>conftest.$ac_ext <<_ACEOF
9407 /* end confdefs.h. */
9409 /* Override any gcc2 internal prototype to avoid an error. */
9413 /* We use char because int might match the return type of a gcc2
9414 builtin and then its argument prototype would still apply. */
9424 rm -f conftest.$ac_objext conftest$ac_exeext
9425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9426 (eval $ac_link) 2>&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); } &&
9430 { ac_try='test -s conftest$ac_exeext'
9431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); }; }; then
9436 ac_cv_search_opendir="none required"
9438 echo "$as_me: failed program was:" >&5
9439 sed 's/^/| /' conftest.$ac_ext >&5
9442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9443 if test "$ac_cv_search_opendir" = no; then
9445 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9446 cat >conftest.$ac_ext <<_ACEOF
9447 #line $LINENO "configure"
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h. */
9454 /* Override any gcc2 internal prototype to avoid an error. */
9458 /* We use char because int might match the return type of a gcc2
9459 builtin and then its argument prototype would still apply. */
9469 rm -f conftest.$ac_objext conftest$ac_exeext
9470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9471 (eval $ac_link) 2>&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } &&
9475 { ac_try='test -s conftest$ac_exeext'
9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; }; then
9481 ac_cv_search_opendir="-l$ac_lib"
9484 echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9488 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9491 LIBS=$ac_func_search_save_LIBS
9493 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9494 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9495 if test "$ac_cv_search_opendir" != no; then
9496 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9502 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9503 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9504 if test "${ac_cv_header_stat_broken+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 cat >conftest.$ac_ext <<_ACEOF
9508 #line $LINENO "configure"
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514 #include <sys/types.h>
9515 #include <sys/stat.h>
9517 #if defined(S_ISBLK) && defined(S_IFDIR)
9518 # if S_ISBLK (S_IFDIR)
9523 #if defined(S_ISBLK) && defined(S_IFCHR)
9524 # if S_ISBLK (S_IFCHR)
9529 #if defined(S_ISLNK) && defined(S_IFREG)
9530 # if S_ISLNK (S_IFREG)
9535 #if defined(S_ISSOCK) && defined(S_IFREG)
9536 # if S_ISSOCK (S_IFREG)
9542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9543 $EGREP "You lose" >/dev/null 2>&1; then
9544 ac_cv_header_stat_broken=yes
9546 ac_cv_header_stat_broken=no
9551 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9552 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
9553 if test $ac_cv_header_stat_broken = yes; then
9555 cat >>confdefs.h <<\_ACEOF
9556 #define STAT_MACROS_BROKEN 1
9561 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9562 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9563 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9564 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 cat >conftest.$ac_ext <<_ACEOF
9567 #line $LINENO "configure"
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9573 #include <sys/types.h>
9574 #include <sys/wait.h>
9576 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9579 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9587 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9592 rm -f conftest.$ac_objext
9593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9594 (eval $ac_compile) 2>&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } &&
9598 { ac_try='test -s conftest.$ac_objext'
9599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); }; }; then
9604 ac_cv_header_sys_wait_h=yes
9606 echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9609 ac_cv_header_sys_wait_h=no
9611 rm -f conftest.$ac_objext conftest.$ac_ext
9613 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9614 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9615 if test $ac_cv_header_sys_wait_h = yes; then
9617 cat >>confdefs.h <<\_ACEOF
9618 #define HAVE_SYS_WAIT_H 1
9623 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9624 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9625 if test "${ac_cv_header_time+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 cat >conftest.$ac_ext <<_ACEOF
9629 #line $LINENO "configure"
9632 cat confdefs.h >>conftest.$ac_ext
9633 cat >>conftest.$ac_ext <<_ACEOF
9634 /* end confdefs.h. */
9635 #include <sys/types.h>
9636 #include <sys/time.h>
9642 if ((struct tm *) 0)
9648 rm -f conftest.$ac_objext
9649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9650 (eval $ac_compile) 2>&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653 (exit $ac_status); } &&
9654 { ac_try='test -s conftest.$ac_objext'
9655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; }; then
9660 ac_cv_header_time=yes
9662 echo "$as_me: failed program was:" >&5
9663 sed 's/^/| /' conftest.$ac_ext >&5
9665 ac_cv_header_time=no
9667 rm -f conftest.$ac_objext conftest.$ac_ext
9669 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9670 echo "${ECHO_T}$ac_cv_header_time" >&6
9671 if test $ac_cv_header_time = yes; then
9673 cat >>confdefs.h <<\_ACEOF
9674 #define TIME_WITH_SYS_TIME 1
9680 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
9681 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
9682 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
9683 echo $ECHO_N "(cached) $ECHO_C" >&6
9685 cat >conftest.$ac_ext <<_ACEOF
9686 #line $LINENO "configure"
9689 cat confdefs.h >>conftest.$ac_ext
9690 cat >>conftest.$ac_ext <<_ACEOF
9691 /* end confdefs.h. */
9692 $ac_includes_default
9696 static struct stat ac_aggr;
9697 if (ac_aggr.st_blksize)
9703 rm -f conftest.$ac_objext
9704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9705 (eval $ac_compile) 2>&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } &&
9709 { ac_try='test -s conftest.$ac_objext'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; }; then
9715 ac_cv_member_struct_stat_st_blksize=yes
9717 echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9720 cat >conftest.$ac_ext <<_ACEOF
9721 #line $LINENO "configure"
9724 cat confdefs.h >>conftest.$ac_ext
9725 cat >>conftest.$ac_ext <<_ACEOF
9726 /* end confdefs.h. */
9727 $ac_includes_default
9731 static struct stat ac_aggr;
9732 if (sizeof ac_aggr.st_blksize)
9738 rm -f conftest.$ac_objext
9739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9740 (eval $ac_compile) 2>&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } &&
9744 { ac_try='test -s conftest.$ac_objext'
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; }; then
9750 ac_cv_member_struct_stat_st_blksize=yes
9752 echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9755 ac_cv_member_struct_stat_st_blksize=no
9757 rm -f conftest.$ac_objext conftest.$ac_ext
9759 rm -f conftest.$ac_objext conftest.$ac_ext
9761 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
9762 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
9763 if test $ac_cv_member_struct_stat_st_blksize = yes; then
9765 cat >>confdefs.h <<_ACEOF
9766 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9770 cat >>confdefs.h <<\_ACEOF
9771 #define HAVE_ST_BLKSIZE 1
9777 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
9778 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
9779 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9782 cat >conftest.$ac_ext <<_ACEOF
9783 #line $LINENO "configure"
9786 cat confdefs.h >>conftest.$ac_ext
9787 cat >>conftest.$ac_ext <<_ACEOF
9788 /* end confdefs.h. */
9789 $ac_includes_default
9793 static struct stat ac_aggr;
9794 if (ac_aggr.st_blocks)
9800 rm -f conftest.$ac_objext
9801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9802 (eval $ac_compile) 2>&5
9804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9805 (exit $ac_status); } &&
9806 { ac_try='test -s conftest.$ac_objext'
9807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811 (exit $ac_status); }; }; then
9812 ac_cv_member_struct_stat_st_blocks=yes
9814 echo "$as_me: failed program was:" >&5
9815 sed 's/^/| /' conftest.$ac_ext >&5
9817 cat >conftest.$ac_ext <<_ACEOF
9818 #line $LINENO "configure"
9821 cat confdefs.h >>conftest.$ac_ext
9822 cat >>conftest.$ac_ext <<_ACEOF
9823 /* end confdefs.h. */
9824 $ac_includes_default
9828 static struct stat ac_aggr;
9829 if (sizeof ac_aggr.st_blocks)
9835 rm -f conftest.$ac_objext
9836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9837 (eval $ac_compile) 2>&5
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); } &&
9841 { ac_try='test -s conftest.$ac_objext'
9842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); }; }; then
9847 ac_cv_member_struct_stat_st_blocks=yes
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9852 ac_cv_member_struct_stat_st_blocks=no
9854 rm -f conftest.$ac_objext conftest.$ac_ext
9856 rm -f conftest.$ac_objext conftest.$ac_ext
9858 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
9859 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
9860 if test $ac_cv_member_struct_stat_st_blocks = yes; then
9862 cat >>confdefs.h <<_ACEOF
9863 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9867 cat >>confdefs.h <<\_ACEOF
9868 #define HAVE_ST_BLOCKS 1
9872 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
9876 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9877 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9878 if test "${ac_cv_struct_tm+set}" = set; then
9879 echo $ECHO_N "(cached) $ECHO_C" >&6
9881 cat >conftest.$ac_ext <<_ACEOF
9882 #line $LINENO "configure"
9885 cat confdefs.h >>conftest.$ac_ext
9886 cat >>conftest.$ac_ext <<_ACEOF
9887 /* end confdefs.h. */
9888 #include <sys/types.h>
9894 struct tm *tp; tp->tm_sec;
9899 rm -f conftest.$ac_objext
9900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9901 (eval $ac_compile) 2>&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); } &&
9905 { ac_try='test -s conftest.$ac_objext'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; }; then
9911 ac_cv_struct_tm=time.h
9913 echo "$as_me: failed program was:" >&5
9914 sed 's/^/| /' conftest.$ac_ext >&5
9916 ac_cv_struct_tm=sys/time.h
9918 rm -f conftest.$ac_objext conftest.$ac_ext
9920 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9921 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9922 if test $ac_cv_struct_tm = sys/time.h; then
9924 cat >>confdefs.h <<\_ACEOF
9925 #define TM_IN_SYS_TIME 1
9930 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9931 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9932 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9933 echo $ECHO_N "(cached) $ECHO_C" >&6
9935 cat >conftest.$ac_ext <<_ACEOF
9936 #line $LINENO "configure"
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h. */
9942 #include <sys/types.h>
9943 #include <$ac_cv_struct_tm>
9949 static struct tm ac_aggr;
9950 if (ac_aggr.tm_zone)
9956 rm -f conftest.$ac_objext
9957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9958 (eval $ac_compile) 2>&5
9960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961 (exit $ac_status); } &&
9962 { ac_try='test -s conftest.$ac_objext'
9963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); }; }; then
9968 ac_cv_member_struct_tm_tm_zone=yes
9970 echo "$as_me: failed program was:" >&5
9971 sed 's/^/| /' conftest.$ac_ext >&5
9973 cat >conftest.$ac_ext <<_ACEOF
9974 #line $LINENO "configure"
9977 cat confdefs.h >>conftest.$ac_ext
9978 cat >>conftest.$ac_ext <<_ACEOF
9979 /* end confdefs.h. */
9980 #include <sys/types.h>
9981 #include <$ac_cv_struct_tm>
9987 static struct tm ac_aggr;
9988 if (sizeof ac_aggr.tm_zone)
9994 rm -f conftest.$ac_objext
9995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9996 (eval $ac_compile) 2>&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); } &&
10000 { ac_try='test -s conftest.$ac_objext'
10001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10002 (eval $ac_try) 2>&5
10004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10005 (exit $ac_status); }; }; then
10006 ac_cv_member_struct_tm_tm_zone=yes
10008 echo "$as_me: failed program was:" >&5
10009 sed 's/^/| /' conftest.$ac_ext >&5
10011 ac_cv_member_struct_tm_tm_zone=no
10013 rm -f conftest.$ac_objext conftest.$ac_ext
10015 rm -f conftest.$ac_objext conftest.$ac_ext
10017 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10018 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10019 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10021 cat >>confdefs.h <<_ACEOF
10022 #define HAVE_STRUCT_TM_TM_ZONE 1
10028 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10030 cat >>confdefs.h <<\_ACEOF
10031 #define HAVE_TM_ZONE 1
10035 echo "$as_me:$LINENO: checking for tzname" >&5
10036 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10037 if test "${ac_cv_var_tzname+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 cat >conftest.$ac_ext <<_ACEOF
10041 #line $LINENO "configure"
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h. */
10048 #ifndef tzname /* For SGI. */
10049 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10060 rm -f conftest.$ac_objext conftest$ac_exeext
10061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10062 (eval $ac_link) 2>&5
10064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); } &&
10066 { ac_try='test -s conftest$ac_exeext'
10067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10068 (eval $ac_try) 2>&5
10070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10071 (exit $ac_status); }; }; then
10072 ac_cv_var_tzname=yes
10074 echo "$as_me: failed program was:" >&5
10075 sed 's/^/| /' conftest.$ac_ext >&5
10077 ac_cv_var_tzname=no
10079 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10081 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10082 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10083 if test $ac_cv_var_tzname = yes; then
10085 cat >>confdefs.h <<\_ACEOF
10086 #define HAVE_TZNAME 1
10093 echo "$as_me:$LINENO: checking for utime.h" >&5
10094 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10095 if test "${ba_cv_header_utime_h+set}" = set; then
10096 echo $ECHO_N "(cached) $ECHO_C" >&6
10098 cat >conftest.$ac_ext <<_ACEOF
10099 #line $LINENO "configure"
10102 cat confdefs.h >>conftest.$ac_ext
10103 cat >>conftest.$ac_ext <<_ACEOF
10104 /* end confdefs.h. */
10106 #include <sys/types.h>
10116 rm -f conftest.$ac_objext
10117 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10118 (eval $ac_compile) 2>&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); } &&
10122 { ac_try='test -s conftest.$ac_objext'
10123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10124 (eval $ac_try) 2>&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); }; }; then
10128 ba_cv_header_utime_h=yes
10130 echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10133 ba_cv_header_utime_h=no
10135 rm -f conftest.$ac_objext conftest.$ac_ext
10137 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10138 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10139 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10140 #define HAVE_UTIME_H 1
10144 echo "$as_me:$LINENO: checking for socklen_t" >&5
10145 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10146 if test "${ba_cv_header_socklen_t+set}" = set; then
10147 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 cat >conftest.$ac_ext <<_ACEOF
10150 #line $LINENO "configure"
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10157 #include <sys/types.h>
10158 #include <sys/socket.h>
10167 rm -f conftest.$ac_objext
10168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10169 (eval $ac_compile) 2>&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } &&
10173 { ac_try='test -s conftest.$ac_objext'
10174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10175 (eval $ac_try) 2>&5
10177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10178 (exit $ac_status); }; }; then
10179 ba_cv_header_socklen_t=yes
10181 echo "$as_me: failed program was:" >&5
10182 sed 's/^/| /' conftest.$ac_ext >&5
10184 ba_cv_header_socklen_t=no
10186 rm -f conftest.$ac_objext conftest.$ac_ext
10188 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10189 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10190 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10191 #define HAVE_SOCKLEN_T 1
10195 echo "$as_me:$LINENO: checking for bigendian" >&5
10196 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10197 if test "${ba_cv_bigendian+set}" = set; then
10198 echo $ECHO_N "(cached) $ECHO_C" >&6
10200 if test "$cross_compiling" = yes; then
10203 cat >conftest.$ac_ext <<_ACEOF
10204 #line $LINENO "configure"
10207 cat confdefs.h >>conftest.$ac_ext
10208 cat >>conftest.$ac_ext <<_ACEOF
10209 /* end confdefs.h. */
10210 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10212 rm -f conftest$ac_exeext
10213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10214 (eval $ac_link) 2>&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10219 (eval $ac_try) 2>&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); }; }; then
10223 ba_cv_bigendian=yes
10225 echo "$as_me: program exited with status $ac_status" >&5
10226 echo "$as_me: failed program was:" >&5
10227 sed 's/^/| /' conftest.$ac_ext >&5
10229 ( exit $ac_status )
10232 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10235 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10236 echo "${ECHO_T}$ba_cv_bigendian" >&6
10237 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10238 #define HAVE_BIGENDIAN 1
10243 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10244 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10245 if test "${ac_cv_c_const+set}" = set; then
10246 echo $ECHO_N "(cached) $ECHO_C" >&6
10248 cat >conftest.$ac_ext <<_ACEOF
10249 #line $LINENO "configure"
10252 cat confdefs.h >>conftest.$ac_ext
10253 cat >>conftest.$ac_ext <<_ACEOF
10254 /* end confdefs.h. */
10259 /* FIXME: Include the comments suggested by Paul. */
10260 #ifndef __cplusplus
10261 /* Ultrix mips cc rejects this. */
10262 typedef int charset[2];
10264 /* SunOS 4.1.1 cc rejects this. */
10265 char const *const *ccp;
10267 /* NEC SVR4.0.2 mips cc rejects this. */
10268 struct point {int x, y;};
10269 static struct point const zero = {0,0};
10270 /* AIX XL C 1.02.0.0 rejects this.
10271 It does not let you subtract one const X* pointer from another in
10272 an arm of an if-expression whose if-part is not a constant
10274 const char *g = "string";
10275 ccp = &g + (g ? g-g : 0);
10276 /* HPUX 7.0 cc rejects these. */
10279 ccp = (char const *const *) p;
10280 { /* SCO 3.2v4 cc rejects this. */
10282 char const *s = 0 ? (char *) 0 : (char const *) 0;
10286 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10287 int x[] = {25, 17};
10288 const int *foo = &x[0];
10291 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10292 typedef const int *iptr;
10296 { /* AIX XL C 1.02.0.0 rejects this saying
10297 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10298 struct s { int j; const int *ap[3]; };
10299 struct s *b; b->j = 5;
10301 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10302 const int foo = 10;
10310 rm -f conftest.$ac_objext
10311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10312 (eval $ac_compile) 2>&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
10316 { ac_try='test -s conftest.$ac_objext'
10317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10318 (eval $ac_try) 2>&5
10320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10321 (exit $ac_status); }; }; then
10324 echo "$as_me: failed program was:" >&5
10325 sed 's/^/| /' conftest.$ac_ext >&5
10329 rm -f conftest.$ac_objext conftest.$ac_ext
10331 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10332 echo "${ECHO_T}$ac_cv_c_const" >&6
10333 if test $ac_cv_c_const = no; then
10335 cat >>confdefs.h <<\_ACEOF
10343 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10344 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10346 # The order of these tests is important.
10347 cat >conftest.$ac_ext <<_ACEOF
10348 #line $LINENO "configure"
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h. */
10354 #include <sys/statvfs.h>
10355 #include <sys/fstyp.h>
10357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10360 grep -v '^ *+' conftest.er1 >conftest.err
10362 cat conftest.err >&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); } >/dev/null; then
10365 if test -s conftest.err; then
10366 ac_cpp_err=$ac_c_preproc_warn_flag
10373 if test -z "$ac_cpp_err"; then
10374 cat >>confdefs.h <<\_ACEOF
10375 #define FSTYPE_STATVFS 1
10379 echo "$as_me: failed program was:" >&5
10380 sed 's/^/| /' conftest.$ac_ext >&5
10384 rm -f conftest.err conftest.$ac_ext
10385 if test $fstype = no; then
10386 cat >conftest.$ac_ext <<_ACEOF
10387 #line $LINENO "configure"
10390 cat confdefs.h >>conftest.$ac_ext
10391 cat >>conftest.$ac_ext <<_ACEOF
10392 /* end confdefs.h. */
10393 #include <sys/statfs.h>
10394 #include <sys/fstyp.h>
10396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10399 grep -v '^ *+' conftest.er1 >conftest.err
10401 cat conftest.err >&5
10402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10403 (exit $ac_status); } >/dev/null; then
10404 if test -s conftest.err; then
10405 ac_cpp_err=$ac_c_preproc_warn_flag
10412 if test -z "$ac_cpp_err"; then
10413 cat >>confdefs.h <<\_ACEOF
10414 #define FSTYPE_USG_STATFS 1
10418 echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10423 rm -f conftest.err conftest.$ac_ext
10425 if test $fstype = no; then
10426 cat >conftest.$ac_ext <<_ACEOF
10427 #line $LINENO "configure"
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h. */
10433 #include <sys/statfs.h>
10434 #include <sys/vmount.h>
10436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10437 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10439 grep -v '^ *+' conftest.er1 >conftest.err
10441 cat conftest.err >&5
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); } >/dev/null; then
10444 if test -s conftest.err; then
10445 ac_cpp_err=$ac_c_preproc_warn_flag
10452 if test -z "$ac_cpp_err"; then
10453 cat >>confdefs.h <<\_ACEOF
10454 #define FSTYPE_AIX_STATFS 1
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10463 rm -f conftest.err conftest.$ac_ext
10465 if test $fstype = no; then
10466 cat >conftest.$ac_ext <<_ACEOF
10467 #line $LINENO "configure"
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h. */
10473 #include <mntent.h>
10475 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10476 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10478 grep -v '^ *+' conftest.er1 >conftest.err
10480 cat conftest.err >&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } >/dev/null; then
10483 if test -s conftest.err; then
10484 ac_cpp_err=$ac_c_preproc_warn_flag
10491 if test -z "$ac_cpp_err"; then
10492 cat >>confdefs.h <<\_ACEOF
10493 #define FSTYPE_MNTENT 1
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10502 rm -f conftest.err conftest.$ac_ext
10504 if test $fstype = no; then
10505 cat >conftest.$ac_ext <<_ACEOF
10506 #line $LINENO "configure"
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h. */
10512 #include <sys/mount.h>
10515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10516 $EGREP "f_type;" >/dev/null 2>&1; then
10517 cat >>confdefs.h <<\_ACEOF
10518 #define FSTYPE_STATFS 1
10525 if test $fstype = no; then
10526 cat >conftest.$ac_ext <<_ACEOF
10527 #line $LINENO "configure"
10530 cat confdefs.h >>conftest.$ac_ext
10531 cat >>conftest.$ac_ext <<_ACEOF
10532 /* end confdefs.h. */
10533 #include <sys/mount.h>
10534 #include <sys/fs_types.h>
10536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10539 grep -v '^ *+' conftest.er1 >conftest.err
10541 cat conftest.err >&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } >/dev/null; then
10544 if test -s conftest.err; then
10545 ac_cpp_err=$ac_c_preproc_warn_flag
10552 if test -z "$ac_cpp_err"; then
10553 cat >>confdefs.h <<\_ACEOF
10554 #define FSTYPE_GETMNT 1
10558 echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10563 rm -f conftest.err conftest.$ac_ext
10565 echo "$as_me:$LINENO: result: $fstype" >&5
10566 echo "${ECHO_T}$fstype" >&6
10568 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10569 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10570 if test "${ac_cv_type_signal+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 cat >conftest.$ac_ext <<_ACEOF
10574 #line $LINENO "configure"
10577 cat confdefs.h >>conftest.$ac_ext
10578 cat >>conftest.$ac_ext <<_ACEOF
10579 /* end confdefs.h. */
10580 #include <sys/types.h>
10581 #include <signal.h>
10586 extern "C" void (*signal (int, void (*)(int)))(int);
10588 void (*signal ()) ();
10599 rm -f conftest.$ac_objext
10600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10601 (eval $ac_compile) 2>&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } &&
10605 { ac_try='test -s conftest.$ac_objext'
10606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607 (eval $ac_try) 2>&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); }; }; then
10611 ac_cv_type_signal=void
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 ac_cv_type_signal=int
10618 rm -f conftest.$ac_objext conftest.$ac_ext
10620 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10621 echo "${ECHO_T}$ac_cv_type_signal" >&6
10623 cat >>confdefs.h <<_ACEOF
10624 #define RETSIGTYPE $ac_cv_type_signal
10629 echo "$as_me:$LINENO: checking for type of signal functions" >&5
10630 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
10631 if test "${bash_cv_signal_vintage+set}" = set; then
10632 echo $ECHO_N "(cached) $ECHO_C" >&6
10635 cat >conftest.$ac_ext <<_ACEOF
10636 #line $LINENO "configure"
10639 cat confdefs.h >>conftest.$ac_ext
10640 cat >>conftest.$ac_ext <<_ACEOF
10641 /* end confdefs.h. */
10642 #include <signal.h>
10648 struct sigaction sa;
10649 sigemptyset(&ss); sigsuspend(&ss);
10650 sigaction(SIGINT, &sa, (struct sigaction *) 0);
10651 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
10657 rm -f conftest.$ac_objext conftest$ac_exeext
10658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10659 (eval $ac_link) 2>&5
10661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662 (exit $ac_status); } &&
10663 { ac_try='test -s conftest$ac_exeext'
10664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665 (eval $ac_try) 2>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; }; then
10669 bash_cv_signal_vintage=posix
10671 echo "$as_me: failed program was:" >&5
10672 sed 's/^/| /' conftest.$ac_ext >&5
10675 cat >conftest.$ac_ext <<_ACEOF
10676 #line $LINENO "configure"
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10682 #include <signal.h>
10687 int mask = sigmask(SIGINT);
10688 sigsetmask(mask); sigblock(mask); sigpause(mask);
10694 rm -f conftest.$ac_objext conftest$ac_exeext
10695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10696 (eval $ac_link) 2>&5
10698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10699 (exit $ac_status); } &&
10700 { ac_try='test -s conftest$ac_exeext'
10701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10702 (eval $ac_try) 2>&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); }; }; then
10706 bash_cv_signal_vintage=4.2bsd
10708 echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.$ac_ext >&5
10712 cat >conftest.$ac_ext <<_ACEOF
10713 #line $LINENO "configure"
10716 cat confdefs.h >>conftest.$ac_ext
10717 cat >>conftest.$ac_ext <<_ACEOF
10718 /* end confdefs.h. */
10720 #include <signal.h>
10721 RETSIGTYPE foo() { }
10726 int mask = sigmask(SIGINT);
10727 sigset(SIGINT, foo); sigrelse(SIGINT);
10728 sighold(SIGINT); sigpause(SIGINT);
10734 rm -f conftest.$ac_objext conftest$ac_exeext
10735 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10736 (eval $ac_link) 2>&5
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); } &&
10740 { ac_try='test -s conftest$ac_exeext'
10741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10742 (eval $ac_try) 2>&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; }; then
10746 bash_cv_signal_vintage=svr3
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 bash_cv_signal_vintage=v7
10754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10764 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
10765 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
10766 if test "$bash_cv_signal_vintage" = posix; then
10767 cat >>confdefs.h <<\_ACEOF
10768 #define HAVE_POSIX_SIGNALS 1
10771 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
10772 cat >>confdefs.h <<\_ACEOF
10773 #define HAVE_BSD_SIGNALS 1
10776 elif test "$bash_cv_signal_vintage" = svr3; then
10777 cat >>confdefs.h <<\_ACEOF
10778 #define HAVE_USG_SIGHOLD 1
10783 echo "$as_me:$LINENO: checking for mode_t" >&5
10784 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10785 if test "${ac_cv_type_mode_t+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10788 cat >conftest.$ac_ext <<_ACEOF
10789 #line $LINENO "configure"
10792 cat confdefs.h >>conftest.$ac_ext
10793 cat >>conftest.$ac_ext <<_ACEOF
10794 /* end confdefs.h. */
10795 $ac_includes_default
10801 if (sizeof (mode_t))
10807 rm -f conftest.$ac_objext
10808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10809 (eval $ac_compile) 2>&5
10811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10812 (exit $ac_status); } &&
10813 { ac_try='test -s conftest.$ac_objext'
10814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815 (eval $ac_try) 2>&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; }; then
10819 ac_cv_type_mode_t=yes
10821 echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.$ac_ext >&5
10824 ac_cv_type_mode_t=no
10826 rm -f conftest.$ac_objext conftest.$ac_ext
10828 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10829 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10830 if test $ac_cv_type_mode_t = yes; then
10834 cat >>confdefs.h <<_ACEOF
10840 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10841 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10842 if test "${ac_cv_type_uid_t+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10845 cat >conftest.$ac_ext <<_ACEOF
10846 #line $LINENO "configure"
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10852 #include <sys/types.h>
10855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10856 $EGREP "uid_t" >/dev/null 2>&1; then
10857 ac_cv_type_uid_t=yes
10859 ac_cv_type_uid_t=no
10864 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10865 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10866 if test $ac_cv_type_uid_t = no; then
10868 cat >>confdefs.h <<\_ACEOF
10873 cat >>confdefs.h <<\_ACEOF
10879 echo "$as_me:$LINENO: checking for size_t" >&5
10880 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10881 if test "${ac_cv_type_size_t+set}" = set; then
10882 echo $ECHO_N "(cached) $ECHO_C" >&6
10884 cat >conftest.$ac_ext <<_ACEOF
10885 #line $LINENO "configure"
10888 cat confdefs.h >>conftest.$ac_ext
10889 cat >>conftest.$ac_ext <<_ACEOF
10890 /* end confdefs.h. */
10891 $ac_includes_default
10897 if (sizeof (size_t))
10903 rm -f conftest.$ac_objext
10904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10905 (eval $ac_compile) 2>&5
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); } &&
10909 { ac_try='test -s conftest.$ac_objext'
10910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10911 (eval $ac_try) 2>&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; }; then
10915 ac_cv_type_size_t=yes
10917 echo "$as_me: failed program was:" >&5
10918 sed 's/^/| /' conftest.$ac_ext >&5
10920 ac_cv_type_size_t=no
10922 rm -f conftest.$ac_objext conftest.$ac_ext
10924 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10925 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10926 if test $ac_cv_type_size_t = yes; then
10930 cat >>confdefs.h <<_ACEOF
10931 #define size_t unsigned
10936 echo "$as_me:$LINENO: checking for pid_t" >&5
10937 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10938 if test "${ac_cv_type_pid_t+set}" = set; then
10939 echo $ECHO_N "(cached) $ECHO_C" >&6
10941 cat >conftest.$ac_ext <<_ACEOF
10942 #line $LINENO "configure"
10945 cat confdefs.h >>conftest.$ac_ext
10946 cat >>conftest.$ac_ext <<_ACEOF
10947 /* end confdefs.h. */
10948 $ac_includes_default
10954 if (sizeof (pid_t))
10960 rm -f conftest.$ac_objext
10961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10962 (eval $ac_compile) 2>&5
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); } &&
10966 { ac_try='test -s conftest.$ac_objext'
10967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10968 (eval $ac_try) 2>&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; }; then
10972 ac_cv_type_pid_t=yes
10974 echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10977 ac_cv_type_pid_t=no
10979 rm -f conftest.$ac_objext conftest.$ac_ext
10981 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10982 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10983 if test $ac_cv_type_pid_t = yes; then
10987 cat >>confdefs.h <<_ACEOF
10993 echo "$as_me:$LINENO: checking for off_t" >&5
10994 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10995 if test "${ac_cv_type_off_t+set}" = set; then
10996 echo $ECHO_N "(cached) $ECHO_C" >&6
10998 cat >conftest.$ac_ext <<_ACEOF
10999 #line $LINENO "configure"
11002 cat confdefs.h >>conftest.$ac_ext
11003 cat >>conftest.$ac_ext <<_ACEOF
11004 /* end confdefs.h. */
11005 $ac_includes_default
11011 if (sizeof (off_t))
11017 rm -f conftest.$ac_objext
11018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11019 (eval $ac_compile) 2>&5
11021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022 (exit $ac_status); } &&
11023 { ac_try='test -s conftest.$ac_objext'
11024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11025 (eval $ac_try) 2>&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; }; then
11029 ac_cv_type_off_t=yes
11031 echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11034 ac_cv_type_off_t=no
11036 rm -f conftest.$ac_objext conftest.$ac_ext
11038 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11039 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11040 if test $ac_cv_type_off_t = yes; then
11044 cat >>confdefs.h <<_ACEOF
11050 echo "$as_me:$LINENO: checking for ino_t" >&5
11051 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11052 if test "${ac_cv_type_ino_t+set}" = set; then
11053 echo $ECHO_N "(cached) $ECHO_C" >&6
11055 cat >conftest.$ac_ext <<_ACEOF
11056 #line $LINENO "configure"
11059 cat confdefs.h >>conftest.$ac_ext
11060 cat >>conftest.$ac_ext <<_ACEOF
11061 /* end confdefs.h. */
11062 $ac_includes_default
11068 if (sizeof (ino_t))
11074 rm -f conftest.$ac_objext
11075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11076 (eval $ac_compile) 2>&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); } &&
11080 { ac_try='test -s conftest.$ac_objext'
11081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11082 (eval $ac_try) 2>&5
11084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11085 (exit $ac_status); }; }; then
11086 ac_cv_type_ino_t=yes
11088 echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11091 ac_cv_type_ino_t=no
11093 rm -f conftest.$ac_objext conftest.$ac_ext
11095 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11096 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11097 if test $ac_cv_type_ino_t = yes; then
11101 cat >>confdefs.h <<_ACEOF
11102 #define ino_t unsigned long
11107 echo "$as_me:$LINENO: checking for dev_t" >&5
11108 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11109 if test "${ac_cv_type_dev_t+set}" = set; then
11110 echo $ECHO_N "(cached) $ECHO_C" >&6
11112 cat >conftest.$ac_ext <<_ACEOF
11113 #line $LINENO "configure"
11116 cat confdefs.h >>conftest.$ac_ext
11117 cat >>conftest.$ac_ext <<_ACEOF
11118 /* end confdefs.h. */
11119 $ac_includes_default
11125 if (sizeof (dev_t))
11131 rm -f conftest.$ac_objext
11132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11133 (eval $ac_compile) 2>&5
11135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136 (exit $ac_status); } &&
11137 { ac_try='test -s conftest.$ac_objext'
11138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11139 (eval $ac_try) 2>&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); }; }; then
11143 ac_cv_type_dev_t=yes
11145 echo "$as_me: failed program was:" >&5
11146 sed 's/^/| /' conftest.$ac_ext >&5
11148 ac_cv_type_dev_t=no
11150 rm -f conftest.$ac_objext conftest.$ac_ext
11152 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11153 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11154 if test $ac_cv_type_dev_t = yes; then
11158 cat >>confdefs.h <<_ACEOF
11159 #define dev_t unsigned long
11164 echo "$as_me:$LINENO: checking for daddr_t" >&5
11165 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11166 if test "${ac_cv_type_daddr_t+set}" = set; then
11167 echo $ECHO_N "(cached) $ECHO_C" >&6
11169 cat >conftest.$ac_ext <<_ACEOF
11170 #line $LINENO "configure"
11173 cat confdefs.h >>conftest.$ac_ext
11174 cat >>conftest.$ac_ext <<_ACEOF
11175 /* end confdefs.h. */
11176 $ac_includes_default
11182 if (sizeof (daddr_t))
11188 rm -f conftest.$ac_objext
11189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11190 (eval $ac_compile) 2>&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } &&
11194 { ac_try='test -s conftest.$ac_objext'
11195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11196 (eval $ac_try) 2>&5
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; }; then
11200 ac_cv_type_daddr_t=yes
11202 echo "$as_me: failed program was:" >&5
11203 sed 's/^/| /' conftest.$ac_ext >&5
11205 ac_cv_type_daddr_t=no
11207 rm -f conftest.$ac_objext conftest.$ac_ext
11209 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11210 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11211 if test $ac_cv_type_daddr_t = yes; then
11215 cat >>confdefs.h <<_ACEOF
11216 #define daddr_t long
11221 echo "$as_me:$LINENO: checking for major_t" >&5
11222 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11223 if test "${ac_cv_type_major_t+set}" = set; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11226 cat >conftest.$ac_ext <<_ACEOF
11227 #line $LINENO "configure"
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h. */
11233 $ac_includes_default
11239 if (sizeof (major_t))
11245 rm -f conftest.$ac_objext
11246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11247 (eval $ac_compile) 2>&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } &&
11251 { ac_try='test -s conftest.$ac_objext'
11252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11253 (eval $ac_try) 2>&5
11255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11256 (exit $ac_status); }; }; then
11257 ac_cv_type_major_t=yes
11259 echo "$as_me: failed program was:" >&5
11260 sed 's/^/| /' conftest.$ac_ext >&5
11262 ac_cv_type_major_t=no
11264 rm -f conftest.$ac_objext conftest.$ac_ext
11266 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11267 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11268 if test $ac_cv_type_major_t = yes; then
11272 cat >>confdefs.h <<_ACEOF
11273 #define major_t int
11278 echo "$as_me:$LINENO: checking for minor_t" >&5
11279 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11280 if test "${ac_cv_type_minor_t+set}" = set; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
11283 cat >conftest.$ac_ext <<_ACEOF
11284 #line $LINENO "configure"
11287 cat confdefs.h >>conftest.$ac_ext
11288 cat >>conftest.$ac_ext <<_ACEOF
11289 /* end confdefs.h. */
11290 $ac_includes_default
11296 if (sizeof (minor_t))
11302 rm -f conftest.$ac_objext
11303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11304 (eval $ac_compile) 2>&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } &&
11308 { ac_try='test -s conftest.$ac_objext'
11309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11310 (eval $ac_try) 2>&5
11312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11313 (exit $ac_status); }; }; then
11314 ac_cv_type_minor_t=yes
11316 echo "$as_me: failed program was:" >&5
11317 sed 's/^/| /' conftest.$ac_ext >&5
11319 ac_cv_type_minor_t=no
11321 rm -f conftest.$ac_objext conftest.$ac_ext
11323 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11324 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11325 if test $ac_cv_type_minor_t = yes; then
11329 cat >>confdefs.h <<_ACEOF
11330 #define minor_t int
11335 echo "$as_me:$LINENO: checking for ssize_t" >&5
11336 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11337 if test "${ac_cv_type_ssize_t+set}" = set; then
11338 echo $ECHO_N "(cached) $ECHO_C" >&6
11340 cat >conftest.$ac_ext <<_ACEOF
11341 #line $LINENO "configure"
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11347 $ac_includes_default
11353 if (sizeof (ssize_t))
11359 rm -f conftest.$ac_objext
11360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11361 (eval $ac_compile) 2>&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); } &&
11365 { ac_try='test -s conftest.$ac_objext'
11366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11367 (eval $ac_try) 2>&5
11369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11370 (exit $ac_status); }; }; then
11371 ac_cv_type_ssize_t=yes
11373 echo "$as_me: failed program was:" >&5
11374 sed 's/^/| /' conftest.$ac_ext >&5
11376 ac_cv_type_ssize_t=no
11378 rm -f conftest.$ac_objext conftest.$ac_ext
11380 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11381 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11382 if test $ac_cv_type_ssize_t = yes; then
11386 cat >>confdefs.h <<_ACEOF
11387 #define ssize_t int
11392 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11393 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11394 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11395 echo $ECHO_N "(cached) $ECHO_C" >&6
11397 cat >conftest.$ac_ext <<_ACEOF
11398 #line $LINENO "configure"
11401 cat confdefs.h >>conftest.$ac_ext
11402 cat >>conftest.$ac_ext <<_ACEOF
11403 /* end confdefs.h. */
11404 $ac_includes_default
11408 static struct stat ac_aggr;
11409 if (ac_aggr.st_blocks)
11415 rm -f conftest.$ac_objext
11416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11417 (eval $ac_compile) 2>&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); } &&
11421 { ac_try='test -s conftest.$ac_objext'
11422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423 (eval $ac_try) 2>&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); }; }; then
11427 ac_cv_member_struct_stat_st_blocks=yes
11429 echo "$as_me: failed program was:" >&5
11430 sed 's/^/| /' conftest.$ac_ext >&5
11432 cat >conftest.$ac_ext <<_ACEOF
11433 #line $LINENO "configure"
11436 cat confdefs.h >>conftest.$ac_ext
11437 cat >>conftest.$ac_ext <<_ACEOF
11438 /* end confdefs.h. */
11439 $ac_includes_default
11443 static struct stat ac_aggr;
11444 if (sizeof ac_aggr.st_blocks)
11450 rm -f conftest.$ac_objext
11451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11452 (eval $ac_compile) 2>&5
11454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11455 (exit $ac_status); } &&
11456 { ac_try='test -s conftest.$ac_objext'
11457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11458 (eval $ac_try) 2>&5
11460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11461 (exit $ac_status); }; }; then
11462 ac_cv_member_struct_stat_st_blocks=yes
11464 echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11467 ac_cv_member_struct_stat_st_blocks=no
11469 rm -f conftest.$ac_objext conftest.$ac_ext
11471 rm -f conftest.$ac_objext conftest.$ac_ext
11473 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11474 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11475 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11477 cat >>confdefs.h <<_ACEOF
11478 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11482 cat >>confdefs.h <<\_ACEOF
11483 #define HAVE_ST_BLOCKS 1
11487 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11492 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11493 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11494 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 cat >conftest.$ac_ext <<_ACEOF
11498 #line $LINENO "configure"
11501 cat confdefs.h >>conftest.$ac_ext
11502 cat >>conftest.$ac_ext <<_ACEOF
11503 /* end confdefs.h. */
11504 $ac_includes_default
11508 static struct stat ac_aggr;
11509 if (ac_aggr.st_rdev)
11515 rm -f conftest.$ac_objext
11516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11517 (eval $ac_compile) 2>&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } &&
11521 { ac_try='test -s conftest.$ac_objext'
11522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11523 (eval $ac_try) 2>&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); }; }; then
11527 ac_cv_member_struct_stat_st_rdev=yes
11529 echo "$as_me: failed program was:" >&5
11530 sed 's/^/| /' conftest.$ac_ext >&5
11532 cat >conftest.$ac_ext <<_ACEOF
11533 #line $LINENO "configure"
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11539 $ac_includes_default
11543 static struct stat ac_aggr;
11544 if (sizeof ac_aggr.st_rdev)
11550 rm -f conftest.$ac_objext
11551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11552 (eval $ac_compile) 2>&5
11554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11555 (exit $ac_status); } &&
11556 { ac_try='test -s conftest.$ac_objext'
11557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11558 (eval $ac_try) 2>&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); }; }; then
11562 ac_cv_member_struct_stat_st_rdev=yes
11564 echo "$as_me: failed program was:" >&5
11565 sed 's/^/| /' conftest.$ac_ext >&5
11567 ac_cv_member_struct_stat_st_rdev=no
11569 rm -f conftest.$ac_objext conftest.$ac_ext
11571 rm -f conftest.$ac_objext conftest.$ac_ext
11573 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
11574 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
11575 if test $ac_cv_member_struct_stat_st_rdev = yes; then
11577 cat >>confdefs.h <<_ACEOF
11578 #define HAVE_STRUCT_STAT_ST_RDEV 1
11582 cat >>confdefs.h <<\_ACEOF
11583 #define HAVE_ST_RDEV 1
11589 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11590 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11591 if test "${ac_cv_struct_tm+set}" = set; then
11592 echo $ECHO_N "(cached) $ECHO_C" >&6
11594 cat >conftest.$ac_ext <<_ACEOF
11595 #line $LINENO "configure"
11598 cat confdefs.h >>conftest.$ac_ext
11599 cat >>conftest.$ac_ext <<_ACEOF
11600 /* end confdefs.h. */
11601 #include <sys/types.h>
11607 struct tm *tp; tp->tm_sec;
11612 rm -f conftest.$ac_objext
11613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11614 (eval $ac_compile) 2>&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } &&
11618 { ac_try='test -s conftest.$ac_objext'
11619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11620 (eval $ac_try) 2>&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; }; then
11624 ac_cv_struct_tm=time.h
11626 echo "$as_me: failed program was:" >&5
11627 sed 's/^/| /' conftest.$ac_ext >&5
11629 ac_cv_struct_tm=sys/time.h
11631 rm -f conftest.$ac_objext conftest.$ac_ext
11633 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11634 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11635 if test $ac_cv_struct_tm = sys/time.h; then
11637 cat >>confdefs.h <<\_ACEOF
11638 #define TM_IN_SYS_TIME 1
11643 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11644 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11645 if test "${ac_cv_c_const+set}" = set; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
11648 cat >conftest.$ac_ext <<_ACEOF
11649 #line $LINENO "configure"
11652 cat confdefs.h >>conftest.$ac_ext
11653 cat >>conftest.$ac_ext <<_ACEOF
11654 /* end confdefs.h. */
11659 /* FIXME: Include the comments suggested by Paul. */
11660 #ifndef __cplusplus
11661 /* Ultrix mips cc rejects this. */
11662 typedef int charset[2];
11664 /* SunOS 4.1.1 cc rejects this. */
11665 char const *const *ccp;
11667 /* NEC SVR4.0.2 mips cc rejects this. */
11668 struct point {int x, y;};
11669 static struct point const zero = {0,0};
11670 /* AIX XL C 1.02.0.0 rejects this.
11671 It does not let you subtract one const X* pointer from another in
11672 an arm of an if-expression whose if-part is not a constant
11674 const char *g = "string";
11675 ccp = &g + (g ? g-g : 0);
11676 /* HPUX 7.0 cc rejects these. */
11679 ccp = (char const *const *) p;
11680 { /* SCO 3.2v4 cc rejects this. */
11682 char const *s = 0 ? (char *) 0 : (char const *) 0;
11686 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11687 int x[] = {25, 17};
11688 const int *foo = &x[0];
11691 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11692 typedef const int *iptr;
11696 { /* AIX XL C 1.02.0.0 rejects this saying
11697 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11698 struct s { int j; const int *ap[3]; };
11699 struct s *b; b->j = 5;
11701 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11702 const int foo = 10;
11710 rm -f conftest.$ac_objext
11711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11712 (eval $ac_compile) 2>&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } &&
11716 { ac_try='test -s conftest.$ac_objext'
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; }; then
11724 echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11729 rm -f conftest.$ac_objext conftest.$ac_ext
11731 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11732 echo "${ECHO_T}$ac_cv_c_const" >&6
11733 if test $ac_cv_c_const = no; then
11735 cat >>confdefs.h <<\_ACEOF
11743 echo "$as_me:$LINENO: checking for char" >&5
11744 echo $ECHO_N "checking for char... $ECHO_C" >&6
11745 if test "${ac_cv_type_char+set}" = set; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11748 cat >conftest.$ac_ext <<_ACEOF
11749 #line $LINENO "configure"
11752 cat confdefs.h >>conftest.$ac_ext
11753 cat >>conftest.$ac_ext <<_ACEOF
11754 /* end confdefs.h. */
11755 $ac_includes_default
11767 rm -f conftest.$ac_objext
11768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11769 (eval $ac_compile) 2>&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } &&
11773 { ac_try='test -s conftest.$ac_objext'
11774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11775 (eval $ac_try) 2>&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); }; }; then
11779 ac_cv_type_char=yes
11781 echo "$as_me: failed program was:" >&5
11782 sed 's/^/| /' conftest.$ac_ext >&5
11786 rm -f conftest.$ac_objext conftest.$ac_ext
11788 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11789 echo "${ECHO_T}$ac_cv_type_char" >&6
11791 echo "$as_me:$LINENO: checking size of char" >&5
11792 echo $ECHO_N "checking size of char... $ECHO_C" >&6
11793 if test "${ac_cv_sizeof_char+set}" = set; then
11794 echo $ECHO_N "(cached) $ECHO_C" >&6
11796 if test "$ac_cv_type_char" = yes; then
11797 # The cast to unsigned long works around a bug in the HP C Compiler
11798 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11799 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11800 # This bug is HP SR number 8606223364.
11801 if test "$cross_compiling" = yes; then
11802 # Depending upon the size, compute the lo and hi bounds.
11803 cat >conftest.$ac_ext <<_ACEOF
11804 #line $LINENO "configure"
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11810 $ac_includes_default
11814 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11821 rm -f conftest.$ac_objext
11822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11823 (eval $ac_compile) 2>&5
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } &&
11827 { ac_try='test -s conftest.$ac_objext'
11828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829 (eval $ac_try) 2>&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; }; then
11835 cat >conftest.$ac_ext <<_ACEOF
11836 #line $LINENO "configure"
11839 cat confdefs.h >>conftest.$ac_ext
11840 cat >>conftest.$ac_ext <<_ACEOF
11841 /* end confdefs.h. */
11842 $ac_includes_default
11846 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11853 rm -f conftest.$ac_objext
11854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11855 (eval $ac_compile) 2>&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } &&
11859 { ac_try='test -s conftest.$ac_objext'
11860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861 (eval $ac_try) 2>&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; }; then
11865 ac_hi=$ac_mid; break
11867 echo "$as_me: failed program was:" >&5
11868 sed 's/^/| /' conftest.$ac_ext >&5
11870 ac_lo=`expr $ac_mid + 1`
11871 if test $ac_lo -le $ac_mid; then
11875 ac_mid=`expr 2 '*' $ac_mid + 1`
11877 rm -f conftest.$ac_objext conftest.$ac_ext
11880 echo "$as_me: failed program was:" >&5
11881 sed 's/^/| /' conftest.$ac_ext >&5
11883 cat >conftest.$ac_ext <<_ACEOF
11884 #line $LINENO "configure"
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h. */
11890 $ac_includes_default
11894 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11901 rm -f conftest.$ac_objext
11902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11903 (eval $ac_compile) 2>&5
11905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11906 (exit $ac_status); } &&
11907 { ac_try='test -s conftest.$ac_objext'
11908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11909 (eval $ac_try) 2>&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); }; }; then
11915 cat >conftest.$ac_ext <<_ACEOF
11916 #line $LINENO "configure"
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h. */
11922 $ac_includes_default
11926 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11933 rm -f conftest.$ac_objext
11934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11935 (eval $ac_compile) 2>&5
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); } &&
11939 { ac_try='test -s conftest.$ac_objext'
11940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; }; then
11945 ac_lo=$ac_mid; break
11947 echo "$as_me: failed program was:" >&5
11948 sed 's/^/| /' conftest.$ac_ext >&5
11950 ac_hi=`expr '(' $ac_mid ')' - 1`
11951 if test $ac_mid -le $ac_hi; then
11955 ac_mid=`expr 2 '*' $ac_mid`
11957 rm -f conftest.$ac_objext conftest.$ac_ext
11960 echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.$ac_ext >&5
11965 rm -f conftest.$ac_objext conftest.$ac_ext
11967 rm -f conftest.$ac_objext conftest.$ac_ext
11968 # Binary search between lo and hi bounds.
11969 while test "x$ac_lo" != "x$ac_hi"; do
11970 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11971 cat >conftest.$ac_ext <<_ACEOF
11972 #line $LINENO "configure"
11975 cat confdefs.h >>conftest.$ac_ext
11976 cat >>conftest.$ac_ext <<_ACEOF
11977 /* end confdefs.h. */
11978 $ac_includes_default
11982 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11989 rm -f conftest.$ac_objext
11990 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11991 (eval $ac_compile) 2>&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); } &&
11995 { ac_try='test -s conftest.$ac_objext'
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; }; then
12003 echo "$as_me: failed program was:" >&5
12004 sed 's/^/| /' conftest.$ac_ext >&5
12006 ac_lo=`expr '(' $ac_mid ')' + 1`
12008 rm -f conftest.$ac_objext conftest.$ac_ext
12011 ?*) ac_cv_sizeof_char=$ac_lo;;
12012 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12013 See \`config.log' for more details." >&5
12014 echo "$as_me: error: cannot compute sizeof (char), 77
12015 See \`config.log' for more details." >&2;}
12016 { (exit 1); exit 1; }; } ;;
12019 if test "$cross_compiling" = yes; then
12020 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12021 See \`config.log' for more details." >&5
12022 echo "$as_me: error: cannot run test program while cross compiling
12023 See \`config.log' for more details." >&2;}
12024 { (exit 1); exit 1; }; }
12026 cat >conftest.$ac_ext <<_ACEOF
12027 #line $LINENO "configure"
12030 cat confdefs.h >>conftest.$ac_ext
12031 cat >>conftest.$ac_ext <<_ACEOF
12032 /* end confdefs.h. */
12033 $ac_includes_default
12034 long longval () { return (long) (sizeof (char)); }
12035 unsigned long ulongval () { return (long) (sizeof (char)); }
12037 #include <stdlib.h>
12042 FILE *f = fopen ("conftest.val", "w");
12045 if (((long) (sizeof (char))) < 0)
12047 long i = longval ();
12048 if (i != ((long) (sizeof (char))))
12050 fprintf (f, "%ld\n", i);
12054 unsigned long i = ulongval ();
12055 if (i != ((long) (sizeof (char))))
12057 fprintf (f, "%lu\n", i);
12059 exit (ferror (f) || fclose (f) != 0);
12065 rm -f conftest$ac_exeext
12066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12067 (eval $ac_link) 2>&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; }; then
12076 ac_cv_sizeof_char=`cat conftest.val`
12078 echo "$as_me: program exited with status $ac_status" >&5
12079 echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12082 ( exit $ac_status )
12083 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12084 See \`config.log' for more details." >&5
12085 echo "$as_me: error: cannot compute sizeof (char), 77
12086 See \`config.log' for more details." >&2;}
12087 { (exit 1); exit 1; }; }
12089 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12094 ac_cv_sizeof_char=0
12097 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12098 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12099 cat >>confdefs.h <<_ACEOF
12100 #define SIZEOF_CHAR $ac_cv_sizeof_char
12104 echo "$as_me:$LINENO: checking for short int" >&5
12105 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12106 if test "${ac_cv_type_short_int+set}" = set; then
12107 echo $ECHO_N "(cached) $ECHO_C" >&6
12109 cat >conftest.$ac_ext <<_ACEOF
12110 #line $LINENO "configure"
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h. */
12116 $ac_includes_default
12120 if ((short int *) 0)
12122 if (sizeof (short int))
12128 rm -f conftest.$ac_objext
12129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12130 (eval $ac_compile) 2>&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } &&
12134 { ac_try='test -s conftest.$ac_objext'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; }; then
12140 ac_cv_type_short_int=yes
12142 echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12145 ac_cv_type_short_int=no
12147 rm -f conftest.$ac_objext conftest.$ac_ext
12149 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12150 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12152 echo "$as_me:$LINENO: checking size of short int" >&5
12153 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12154 if test "${ac_cv_sizeof_short_int+set}" = set; then
12155 echo $ECHO_N "(cached) $ECHO_C" >&6
12157 if test "$ac_cv_type_short_int" = yes; then
12158 # The cast to unsigned long works around a bug in the HP C Compiler
12159 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12160 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12161 # This bug is HP SR number 8606223364.
12162 if test "$cross_compiling" = yes; then
12163 # Depending upon the size, compute the lo and hi bounds.
12164 cat >conftest.$ac_ext <<_ACEOF
12165 #line $LINENO "configure"
12168 cat confdefs.h >>conftest.$ac_ext
12169 cat >>conftest.$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171 $ac_includes_default
12175 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12182 rm -f conftest.$ac_objext
12183 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12184 (eval $ac_compile) 2>&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); } &&
12188 { ac_try='test -s conftest.$ac_objext'
12189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190 (eval $ac_try) 2>&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); }; }; then
12196 cat >conftest.$ac_ext <<_ACEOF
12197 #line $LINENO "configure"
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12203 $ac_includes_default
12207 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12214 rm -f conftest.$ac_objext
12215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12216 (eval $ac_compile) 2>&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); } &&
12220 { ac_try='test -s conftest.$ac_objext'
12221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12222 (eval $ac_try) 2>&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); }; }; then
12226 ac_hi=$ac_mid; break
12228 echo "$as_me: failed program was:" >&5
12229 sed 's/^/| /' conftest.$ac_ext >&5
12231 ac_lo=`expr $ac_mid + 1`
12232 if test $ac_lo -le $ac_mid; then
12236 ac_mid=`expr 2 '*' $ac_mid + 1`
12238 rm -f conftest.$ac_objext conftest.$ac_ext
12241 echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12244 cat >conftest.$ac_ext <<_ACEOF
12245 #line $LINENO "configure"
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12251 $ac_includes_default
12255 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12262 rm -f conftest.$ac_objext
12263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12264 (eval $ac_compile) 2>&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } &&
12268 { ac_try='test -s conftest.$ac_objext'
12269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12270 (eval $ac_try) 2>&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 (exit $ac_status); }; }; then
12276 cat >conftest.$ac_ext <<_ACEOF
12277 #line $LINENO "configure"
12280 cat confdefs.h >>conftest.$ac_ext
12281 cat >>conftest.$ac_ext <<_ACEOF
12282 /* end confdefs.h. */
12283 $ac_includes_default
12287 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12294 rm -f conftest.$ac_objext
12295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12296 (eval $ac_compile) 2>&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } &&
12300 { ac_try='test -s conftest.$ac_objext'
12301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12302 (eval $ac_try) 2>&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; }; then
12306 ac_lo=$ac_mid; break
12308 echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12311 ac_hi=`expr '(' $ac_mid ')' - 1`
12312 if test $ac_mid -le $ac_hi; then
12316 ac_mid=`expr 2 '*' $ac_mid`
12318 rm -f conftest.$ac_objext conftest.$ac_ext
12321 echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12326 rm -f conftest.$ac_objext conftest.$ac_ext
12328 rm -f conftest.$ac_objext conftest.$ac_ext
12329 # Binary search between lo and hi bounds.
12330 while test "x$ac_lo" != "x$ac_hi"; do
12331 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12332 cat >conftest.$ac_ext <<_ACEOF
12333 #line $LINENO "configure"
12336 cat confdefs.h >>conftest.$ac_ext
12337 cat >>conftest.$ac_ext <<_ACEOF
12338 /* end confdefs.h. */
12339 $ac_includes_default
12343 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12350 rm -f conftest.$ac_objext
12351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12352 (eval $ac_compile) 2>&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } &&
12356 { ac_try='test -s conftest.$ac_objext'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; }; then
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12367 ac_lo=`expr '(' $ac_mid ')' + 1`
12369 rm -f conftest.$ac_objext conftest.$ac_ext
12372 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12373 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12374 See \`config.log' for more details." >&5
12375 echo "$as_me: error: cannot compute sizeof (short int), 77
12376 See \`config.log' for more details." >&2;}
12377 { (exit 1); exit 1; }; } ;;
12380 if test "$cross_compiling" = yes; then
12381 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12382 See \`config.log' for more details." >&5
12383 echo "$as_me: error: cannot run test program while cross compiling
12384 See \`config.log' for more details." >&2;}
12385 { (exit 1); exit 1; }; }
12387 cat >conftest.$ac_ext <<_ACEOF
12388 #line $LINENO "configure"
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h. */
12394 $ac_includes_default
12395 long longval () { return (long) (sizeof (short int)); }
12396 unsigned long ulongval () { return (long) (sizeof (short int)); }
12398 #include <stdlib.h>
12403 FILE *f = fopen ("conftest.val", "w");
12406 if (((long) (sizeof (short int))) < 0)
12408 long i = longval ();
12409 if (i != ((long) (sizeof (short int))))
12411 fprintf (f, "%ld\n", i);
12415 unsigned long i = ulongval ();
12416 if (i != ((long) (sizeof (short int))))
12418 fprintf (f, "%lu\n", i);
12420 exit (ferror (f) || fclose (f) != 0);
12426 rm -f conftest$ac_exeext
12427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12428 (eval $ac_link) 2>&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433 (eval $ac_try) 2>&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); }; }; then
12437 ac_cv_sizeof_short_int=`cat conftest.val`
12439 echo "$as_me: program exited with status $ac_status" >&5
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12443 ( exit $ac_status )
12444 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12445 See \`config.log' for more details." >&5
12446 echo "$as_me: error: cannot compute sizeof (short int), 77
12447 See \`config.log' for more details." >&2;}
12448 { (exit 1); exit 1; }; }
12450 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12455 ac_cv_sizeof_short_int=0
12458 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12459 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12460 cat >>confdefs.h <<_ACEOF
12461 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12465 echo "$as_me:$LINENO: checking for int" >&5
12466 echo $ECHO_N "checking for int... $ECHO_C" >&6
12467 if test "${ac_cv_type_int+set}" = set; then
12468 echo $ECHO_N "(cached) $ECHO_C" >&6
12470 cat >conftest.$ac_ext <<_ACEOF
12471 #line $LINENO "configure"
12474 cat confdefs.h >>conftest.$ac_ext
12475 cat >>conftest.$ac_ext <<_ACEOF
12476 /* end confdefs.h. */
12477 $ac_includes_default
12489 rm -f conftest.$ac_objext
12490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12491 (eval $ac_compile) 2>&5
12493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12494 (exit $ac_status); } &&
12495 { ac_try='test -s conftest.$ac_objext'
12496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12497 (eval $ac_try) 2>&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); }; }; then
12503 echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12508 rm -f conftest.$ac_objext conftest.$ac_ext
12510 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12511 echo "${ECHO_T}$ac_cv_type_int" >&6
12513 echo "$as_me:$LINENO: checking size of int" >&5
12514 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12515 if test "${ac_cv_sizeof_int+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12518 if test "$ac_cv_type_int" = yes; then
12519 # The cast to unsigned long works around a bug in the HP C Compiler
12520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12522 # This bug is HP SR number 8606223364.
12523 if test "$cross_compiling" = yes; then
12524 # Depending upon the size, compute the lo and hi bounds.
12525 cat >conftest.$ac_ext <<_ACEOF
12526 #line $LINENO "configure"
12529 cat confdefs.h >>conftest.$ac_ext
12530 cat >>conftest.$ac_ext <<_ACEOF
12531 /* end confdefs.h. */
12532 $ac_includes_default
12536 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12543 rm -f conftest.$ac_objext
12544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12545 (eval $ac_compile) 2>&5
12547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12548 (exit $ac_status); } &&
12549 { ac_try='test -s conftest.$ac_objext'
12550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12551 (eval $ac_try) 2>&5
12553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12554 (exit $ac_status); }; }; then
12557 cat >conftest.$ac_ext <<_ACEOF
12558 #line $LINENO "configure"
12561 cat confdefs.h >>conftest.$ac_ext
12562 cat >>conftest.$ac_ext <<_ACEOF
12563 /* end confdefs.h. */
12564 $ac_includes_default
12568 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12575 rm -f conftest.$ac_objext
12576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12577 (eval $ac_compile) 2>&5
12579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12580 (exit $ac_status); } &&
12581 { ac_try='test -s conftest.$ac_objext'
12582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12583 (eval $ac_try) 2>&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); }; }; then
12587 ac_hi=$ac_mid; break
12589 echo "$as_me: failed program was:" >&5
12590 sed 's/^/| /' conftest.$ac_ext >&5
12592 ac_lo=`expr $ac_mid + 1`
12593 if test $ac_lo -le $ac_mid; then
12597 ac_mid=`expr 2 '*' $ac_mid + 1`
12599 rm -f conftest.$ac_objext conftest.$ac_ext
12602 echo "$as_me: failed program was:" >&5
12603 sed 's/^/| /' conftest.$ac_ext >&5
12605 cat >conftest.$ac_ext <<_ACEOF
12606 #line $LINENO "configure"
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h. */
12612 $ac_includes_default
12616 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12623 rm -f conftest.$ac_objext
12624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12625 (eval $ac_compile) 2>&5
12627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12628 (exit $ac_status); } &&
12629 { ac_try='test -s conftest.$ac_objext'
12630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12631 (eval $ac_try) 2>&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); }; }; then
12637 cat >conftest.$ac_ext <<_ACEOF
12638 #line $LINENO "configure"
12641 cat confdefs.h >>conftest.$ac_ext
12642 cat >>conftest.$ac_ext <<_ACEOF
12643 /* end confdefs.h. */
12644 $ac_includes_default
12648 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12655 rm -f conftest.$ac_objext
12656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12657 (eval $ac_compile) 2>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); } &&
12661 { ac_try='test -s conftest.$ac_objext'
12662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12663 (eval $ac_try) 2>&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); }; }; then
12667 ac_lo=$ac_mid; break
12669 echo "$as_me: failed program was:" >&5
12670 sed 's/^/| /' conftest.$ac_ext >&5
12672 ac_hi=`expr '(' $ac_mid ')' - 1`
12673 if test $ac_mid -le $ac_hi; then
12677 ac_mid=`expr 2 '*' $ac_mid`
12679 rm -f conftest.$ac_objext conftest.$ac_ext
12682 echo "$as_me: failed program was:" >&5
12683 sed 's/^/| /' conftest.$ac_ext >&5
12687 rm -f conftest.$ac_objext conftest.$ac_ext
12689 rm -f conftest.$ac_objext conftest.$ac_ext
12690 # Binary search between lo and hi bounds.
12691 while test "x$ac_lo" != "x$ac_hi"; do
12692 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12693 cat >conftest.$ac_ext <<_ACEOF
12694 #line $LINENO "configure"
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h. */
12700 $ac_includes_default
12704 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12711 rm -f conftest.$ac_objext
12712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12713 (eval $ac_compile) 2>&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } &&
12717 { ac_try='test -s conftest.$ac_objext'
12718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12719 (eval $ac_try) 2>&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); }; }; then
12725 echo "$as_me: failed program was:" >&5
12726 sed 's/^/| /' conftest.$ac_ext >&5
12728 ac_lo=`expr '(' $ac_mid ')' + 1`
12730 rm -f conftest.$ac_objext conftest.$ac_ext
12733 ?*) ac_cv_sizeof_int=$ac_lo;;
12734 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12735 See \`config.log' for more details." >&5
12736 echo "$as_me: error: cannot compute sizeof (int), 77
12737 See \`config.log' for more details." >&2;}
12738 { (exit 1); exit 1; }; } ;;
12741 if test "$cross_compiling" = yes; then
12742 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12743 See \`config.log' for more details." >&5
12744 echo "$as_me: error: cannot run test program while cross compiling
12745 See \`config.log' for more details." >&2;}
12746 { (exit 1); exit 1; }; }
12748 cat >conftest.$ac_ext <<_ACEOF
12749 #line $LINENO "configure"
12752 cat confdefs.h >>conftest.$ac_ext
12753 cat >>conftest.$ac_ext <<_ACEOF
12754 /* end confdefs.h. */
12755 $ac_includes_default
12756 long longval () { return (long) (sizeof (int)); }
12757 unsigned long ulongval () { return (long) (sizeof (int)); }
12759 #include <stdlib.h>
12764 FILE *f = fopen ("conftest.val", "w");
12767 if (((long) (sizeof (int))) < 0)
12769 long i = longval ();
12770 if (i != ((long) (sizeof (int))))
12772 fprintf (f, "%ld\n", i);
12776 unsigned long i = ulongval ();
12777 if (i != ((long) (sizeof (int))))
12779 fprintf (f, "%lu\n", i);
12781 exit (ferror (f) || fclose (f) != 0);
12787 rm -f conftest$ac_exeext
12788 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12789 (eval $ac_link) 2>&5
12791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12792 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12794 (eval $ac_try) 2>&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; }; then
12798 ac_cv_sizeof_int=`cat conftest.val`
12800 echo "$as_me: program exited with status $ac_status" >&5
12801 echo "$as_me: failed program was:" >&5
12802 sed 's/^/| /' conftest.$ac_ext >&5
12804 ( exit $ac_status )
12805 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12806 See \`config.log' for more details." >&5
12807 echo "$as_me: error: cannot compute sizeof (int), 77
12808 See \`config.log' for more details." >&2;}
12809 { (exit 1); exit 1; }; }
12811 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12819 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12820 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12821 cat >>confdefs.h <<_ACEOF
12822 #define SIZEOF_INT $ac_cv_sizeof_int
12826 echo "$as_me:$LINENO: checking for long int" >&5
12827 echo $ECHO_N "checking for long int... $ECHO_C" >&6
12828 if test "${ac_cv_type_long_int+set}" = set; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
12831 cat >conftest.$ac_ext <<_ACEOF
12832 #line $LINENO "configure"
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h. */
12838 $ac_includes_default
12842 if ((long int *) 0)
12844 if (sizeof (long int))
12850 rm -f conftest.$ac_objext
12851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12852 (eval $ac_compile) 2>&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } &&
12856 { ac_try='test -s conftest.$ac_objext'
12857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12858 (eval $ac_try) 2>&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; }; then
12862 ac_cv_type_long_int=yes
12864 echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.$ac_ext >&5
12867 ac_cv_type_long_int=no
12869 rm -f conftest.$ac_objext conftest.$ac_ext
12871 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
12872 echo "${ECHO_T}$ac_cv_type_long_int" >&6
12874 echo "$as_me:$LINENO: checking size of long int" >&5
12875 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
12876 if test "${ac_cv_sizeof_long_int+set}" = set; then
12877 echo $ECHO_N "(cached) $ECHO_C" >&6
12879 if test "$ac_cv_type_long_int" = yes; then
12880 # The cast to unsigned long works around a bug in the HP C Compiler
12881 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12882 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12883 # This bug is HP SR number 8606223364.
12884 if test "$cross_compiling" = yes; then
12885 # Depending upon the size, compute the lo and hi bounds.
12886 cat >conftest.$ac_ext <<_ACEOF
12887 #line $LINENO "configure"
12890 cat confdefs.h >>conftest.$ac_ext
12891 cat >>conftest.$ac_ext <<_ACEOF
12892 /* end confdefs.h. */
12893 $ac_includes_default
12897 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
12904 rm -f conftest.$ac_objext
12905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12906 (eval $ac_compile) 2>&5
12908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12909 (exit $ac_status); } &&
12910 { ac_try='test -s conftest.$ac_objext'
12911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12912 (eval $ac_try) 2>&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12918 cat >conftest.$ac_ext <<_ACEOF
12919 #line $LINENO "configure"
12922 cat confdefs.h >>conftest.$ac_ext
12923 cat >>conftest.$ac_ext <<_ACEOF
12924 /* end confdefs.h. */
12925 $ac_includes_default
12929 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
12936 rm -f conftest.$ac_objext
12937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12938 (eval $ac_compile) 2>&5
12940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12941 (exit $ac_status); } &&
12942 { ac_try='test -s conftest.$ac_objext'
12943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12944 (eval $ac_try) 2>&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); }; }; then
12948 ac_hi=$ac_mid; break
12950 echo "$as_me: failed program was:" >&5
12951 sed 's/^/| /' conftest.$ac_ext >&5
12953 ac_lo=`expr $ac_mid + 1`
12954 if test $ac_lo -le $ac_mid; then
12958 ac_mid=`expr 2 '*' $ac_mid + 1`
12960 rm -f conftest.$ac_objext conftest.$ac_ext
12963 echo "$as_me: failed program was:" >&5
12964 sed 's/^/| /' conftest.$ac_ext >&5
12966 cat >conftest.$ac_ext <<_ACEOF
12967 #line $LINENO "configure"
12970 cat confdefs.h >>conftest.$ac_ext
12971 cat >>conftest.$ac_ext <<_ACEOF
12972 /* end confdefs.h. */
12973 $ac_includes_default
12977 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
12984 rm -f conftest.$ac_objext
12985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12986 (eval $ac_compile) 2>&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } &&
12990 { ac_try='test -s conftest.$ac_objext'
12991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12992 (eval $ac_try) 2>&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); }; }; then
12998 cat >conftest.$ac_ext <<_ACEOF
12999 #line $LINENO "configure"
13002 cat confdefs.h >>conftest.$ac_ext
13003 cat >>conftest.$ac_ext <<_ACEOF
13004 /* end confdefs.h. */
13005 $ac_includes_default
13009 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13016 rm -f conftest.$ac_objext
13017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13018 (eval $ac_compile) 2>&5
13020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13021 (exit $ac_status); } &&
13022 { ac_try='test -s conftest.$ac_objext'
13023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13024 (eval $ac_try) 2>&5
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; }; then
13028 ac_lo=$ac_mid; break
13030 echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13033 ac_hi=`expr '(' $ac_mid ')' - 1`
13034 if test $ac_mid -le $ac_hi; then
13038 ac_mid=`expr 2 '*' $ac_mid`
13040 rm -f conftest.$ac_objext conftest.$ac_ext
13043 echo "$as_me: failed program was:" >&5
13044 sed 's/^/| /' conftest.$ac_ext >&5
13048 rm -f conftest.$ac_objext conftest.$ac_ext
13050 rm -f conftest.$ac_objext conftest.$ac_ext
13051 # Binary search between lo and hi bounds.
13052 while test "x$ac_lo" != "x$ac_hi"; do
13053 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13054 cat >conftest.$ac_ext <<_ACEOF
13055 #line $LINENO "configure"
13058 cat confdefs.h >>conftest.$ac_ext
13059 cat >>conftest.$ac_ext <<_ACEOF
13060 /* end confdefs.h. */
13061 $ac_includes_default
13065 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13072 rm -f conftest.$ac_objext
13073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13074 (eval $ac_compile) 2>&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); } &&
13078 { ac_try='test -s conftest.$ac_objext'
13079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13080 (eval $ac_try) 2>&5
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); }; }; then
13086 echo "$as_me: failed program was:" >&5
13087 sed 's/^/| /' conftest.$ac_ext >&5
13089 ac_lo=`expr '(' $ac_mid ')' + 1`
13091 rm -f conftest.$ac_objext conftest.$ac_ext
13094 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13095 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13096 See \`config.log' for more details." >&5
13097 echo "$as_me: error: cannot compute sizeof (long int), 77
13098 See \`config.log' for more details." >&2;}
13099 { (exit 1); exit 1; }; } ;;
13102 if test "$cross_compiling" = yes; then
13103 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13104 See \`config.log' for more details." >&5
13105 echo "$as_me: error: cannot run test program while cross compiling
13106 See \`config.log' for more details." >&2;}
13107 { (exit 1); exit 1; }; }
13109 cat >conftest.$ac_ext <<_ACEOF
13110 #line $LINENO "configure"
13113 cat confdefs.h >>conftest.$ac_ext
13114 cat >>conftest.$ac_ext <<_ACEOF
13115 /* end confdefs.h. */
13116 $ac_includes_default
13117 long longval () { return (long) (sizeof (long int)); }
13118 unsigned long ulongval () { return (long) (sizeof (long int)); }
13120 #include <stdlib.h>
13125 FILE *f = fopen ("conftest.val", "w");
13128 if (((long) (sizeof (long int))) < 0)
13130 long i = longval ();
13131 if (i != ((long) (sizeof (long int))))
13133 fprintf (f, "%ld\n", i);
13137 unsigned long i = ulongval ();
13138 if (i != ((long) (sizeof (long int))))
13140 fprintf (f, "%lu\n", i);
13142 exit (ferror (f) || fclose (f) != 0);
13148 rm -f conftest$ac_exeext
13149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13150 (eval $ac_link) 2>&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13155 (eval $ac_try) 2>&5
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); }; }; then
13159 ac_cv_sizeof_long_int=`cat conftest.val`
13161 echo "$as_me: program exited with status $ac_status" >&5
13162 echo "$as_me: failed program was:" >&5
13163 sed 's/^/| /' conftest.$ac_ext >&5
13165 ( exit $ac_status )
13166 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13167 See \`config.log' for more details." >&5
13168 echo "$as_me: error: cannot compute sizeof (long int), 77
13169 See \`config.log' for more details." >&2;}
13170 { (exit 1); exit 1; }; }
13172 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13177 ac_cv_sizeof_long_int=0
13180 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13181 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13182 cat >>confdefs.h <<_ACEOF
13183 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13187 echo "$as_me:$LINENO: checking for long long int" >&5
13188 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13189 if test "${ac_cv_type_long_long_int+set}" = set; then
13190 echo $ECHO_N "(cached) $ECHO_C" >&6
13192 cat >conftest.$ac_ext <<_ACEOF
13193 #line $LINENO "configure"
13196 cat confdefs.h >>conftest.$ac_ext
13197 cat >>conftest.$ac_ext <<_ACEOF
13198 /* end confdefs.h. */
13199 $ac_includes_default
13203 if ((long long int *) 0)
13205 if (sizeof (long long int))
13211 rm -f conftest.$ac_objext
13212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13213 (eval $ac_compile) 2>&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } &&
13217 { ac_try='test -s conftest.$ac_objext'
13218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13219 (eval $ac_try) 2>&5
13221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13222 (exit $ac_status); }; }; then
13223 ac_cv_type_long_long_int=yes
13225 echo "$as_me: failed program was:" >&5
13226 sed 's/^/| /' conftest.$ac_ext >&5
13228 ac_cv_type_long_long_int=no
13230 rm -f conftest.$ac_objext conftest.$ac_ext
13232 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13233 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13235 echo "$as_me:$LINENO: checking size of long long int" >&5
13236 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13237 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13240 if test "$ac_cv_type_long_long_int" = yes; then
13241 # The cast to unsigned long works around a bug in the HP C Compiler
13242 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13243 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13244 # This bug is HP SR number 8606223364.
13245 if test "$cross_compiling" = yes; then
13246 # Depending upon the size, compute the lo and hi bounds.
13247 cat >conftest.$ac_ext <<_ACEOF
13248 #line $LINENO "configure"
13251 cat confdefs.h >>conftest.$ac_ext
13252 cat >>conftest.$ac_ext <<_ACEOF
13253 /* end confdefs.h. */
13254 $ac_includes_default
13258 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13265 rm -f conftest.$ac_objext
13266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13267 (eval $ac_compile) 2>&5
13269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13270 (exit $ac_status); } &&
13271 { ac_try='test -s conftest.$ac_objext'
13272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13273 (eval $ac_try) 2>&5
13275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13276 (exit $ac_status); }; }; then
13279 cat >conftest.$ac_ext <<_ACEOF
13280 #line $LINENO "configure"
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13286 $ac_includes_default
13290 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13297 rm -f conftest.$ac_objext
13298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13299 (eval $ac_compile) 2>&5
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); } &&
13303 { ac_try='test -s conftest.$ac_objext'
13304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13305 (eval $ac_try) 2>&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); }; }; then
13309 ac_hi=$ac_mid; break
13311 echo "$as_me: failed program was:" >&5
13312 sed 's/^/| /' conftest.$ac_ext >&5
13314 ac_lo=`expr $ac_mid + 1`
13315 if test $ac_lo -le $ac_mid; then
13319 ac_mid=`expr 2 '*' $ac_mid + 1`
13321 rm -f conftest.$ac_objext conftest.$ac_ext
13324 echo "$as_me: failed program was:" >&5
13325 sed 's/^/| /' conftest.$ac_ext >&5
13327 cat >conftest.$ac_ext <<_ACEOF
13328 #line $LINENO "configure"
13331 cat confdefs.h >>conftest.$ac_ext
13332 cat >>conftest.$ac_ext <<_ACEOF
13333 /* end confdefs.h. */
13334 $ac_includes_default
13338 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13345 rm -f conftest.$ac_objext
13346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13347 (eval $ac_compile) 2>&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); } &&
13351 { ac_try='test -s conftest.$ac_objext'
13352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13353 (eval $ac_try) 2>&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); }; }; then
13359 cat >conftest.$ac_ext <<_ACEOF
13360 #line $LINENO "configure"
13363 cat confdefs.h >>conftest.$ac_ext
13364 cat >>conftest.$ac_ext <<_ACEOF
13365 /* end confdefs.h. */
13366 $ac_includes_default
13370 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13377 rm -f conftest.$ac_objext
13378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13379 (eval $ac_compile) 2>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); } &&
13383 { ac_try='test -s conftest.$ac_objext'
13384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13385 (eval $ac_try) 2>&5
13387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13388 (exit $ac_status); }; }; then
13389 ac_lo=$ac_mid; break
13391 echo "$as_me: failed program was:" >&5
13392 sed 's/^/| /' conftest.$ac_ext >&5
13394 ac_hi=`expr '(' $ac_mid ')' - 1`
13395 if test $ac_mid -le $ac_hi; then
13399 ac_mid=`expr 2 '*' $ac_mid`
13401 rm -f conftest.$ac_objext conftest.$ac_ext
13404 echo "$as_me: failed program was:" >&5
13405 sed 's/^/| /' conftest.$ac_ext >&5
13409 rm -f conftest.$ac_objext conftest.$ac_ext
13411 rm -f conftest.$ac_objext conftest.$ac_ext
13412 # Binary search between lo and hi bounds.
13413 while test "x$ac_lo" != "x$ac_hi"; do
13414 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13415 cat >conftest.$ac_ext <<_ACEOF
13416 #line $LINENO "configure"
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h. */
13422 $ac_includes_default
13426 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13433 rm -f conftest.$ac_objext
13434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13435 (eval $ac_compile) 2>&5
13437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13438 (exit $ac_status); } &&
13439 { ac_try='test -s conftest.$ac_objext'
13440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13441 (eval $ac_try) 2>&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); }; }; then
13447 echo "$as_me: failed program was:" >&5
13448 sed 's/^/| /' conftest.$ac_ext >&5
13450 ac_lo=`expr '(' $ac_mid ')' + 1`
13452 rm -f conftest.$ac_objext conftest.$ac_ext
13455 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13456 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13457 See \`config.log' for more details." >&5
13458 echo "$as_me: error: cannot compute sizeof (long long int), 77
13459 See \`config.log' for more details." >&2;}
13460 { (exit 1); exit 1; }; } ;;
13463 if test "$cross_compiling" = yes; then
13464 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13465 See \`config.log' for more details." >&5
13466 echo "$as_me: error: cannot run test program while cross compiling
13467 See \`config.log' for more details." >&2;}
13468 { (exit 1); exit 1; }; }
13470 cat >conftest.$ac_ext <<_ACEOF
13471 #line $LINENO "configure"
13474 cat confdefs.h >>conftest.$ac_ext
13475 cat >>conftest.$ac_ext <<_ACEOF
13476 /* end confdefs.h. */
13477 $ac_includes_default
13478 long longval () { return (long) (sizeof (long long int)); }
13479 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13481 #include <stdlib.h>
13486 FILE *f = fopen ("conftest.val", "w");
13489 if (((long) (sizeof (long long int))) < 0)
13491 long i = longval ();
13492 if (i != ((long) (sizeof (long long int))))
13494 fprintf (f, "%ld\n", i);
13498 unsigned long i = ulongval ();
13499 if (i != ((long) (sizeof (long long int))))
13501 fprintf (f, "%lu\n", i);
13503 exit (ferror (f) || fclose (f) != 0);
13509 rm -f conftest$ac_exeext
13510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13511 (eval $ac_link) 2>&5
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13516 (eval $ac_try) 2>&5
13518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13519 (exit $ac_status); }; }; then
13520 ac_cv_sizeof_long_long_int=`cat conftest.val`
13522 echo "$as_me: program exited with status $ac_status" >&5
13523 echo "$as_me: failed program was:" >&5
13524 sed 's/^/| /' conftest.$ac_ext >&5
13526 ( exit $ac_status )
13527 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13528 See \`config.log' for more details." >&5
13529 echo "$as_me: error: cannot compute sizeof (long long int), 77
13530 See \`config.log' for more details." >&2;}
13531 { (exit 1); exit 1; }; }
13533 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13538 ac_cv_sizeof_long_long_int=0
13541 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13542 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13543 cat >>confdefs.h <<_ACEOF
13544 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13548 echo "$as_me:$LINENO: checking for int *" >&5
13549 echo $ECHO_N "checking for int *... $ECHO_C" >&6
13550 if test "${ac_cv_type_int_p+set}" = set; then
13551 echo $ECHO_N "(cached) $ECHO_C" >&6
13553 cat >conftest.$ac_ext <<_ACEOF
13554 #line $LINENO "configure"
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13560 $ac_includes_default
13566 if (sizeof (int *))
13572 rm -f conftest.$ac_objext
13573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13574 (eval $ac_compile) 2>&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } &&
13578 { ac_try='test -s conftest.$ac_objext'
13579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13580 (eval $ac_try) 2>&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); }; }; then
13584 ac_cv_type_int_p=yes
13586 echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13589 ac_cv_type_int_p=no
13591 rm -f conftest.$ac_objext conftest.$ac_ext
13593 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13594 echo "${ECHO_T}$ac_cv_type_int_p" >&6
13596 echo "$as_me:$LINENO: checking size of int *" >&5
13597 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13598 if test "${ac_cv_sizeof_int_p+set}" = set; then
13599 echo $ECHO_N "(cached) $ECHO_C" >&6
13601 if test "$ac_cv_type_int_p" = yes; then
13602 # The cast to unsigned long works around a bug in the HP C Compiler
13603 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13604 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13605 # This bug is HP SR number 8606223364.
13606 if test "$cross_compiling" = yes; then
13607 # Depending upon the size, compute the lo and hi bounds.
13608 cat >conftest.$ac_ext <<_ACEOF
13609 #line $LINENO "configure"
13612 cat confdefs.h >>conftest.$ac_ext
13613 cat >>conftest.$ac_ext <<_ACEOF
13614 /* end confdefs.h. */
13615 $ac_includes_default
13619 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13626 rm -f conftest.$ac_objext
13627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13628 (eval $ac_compile) 2>&5
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); } &&
13632 { ac_try='test -s conftest.$ac_objext'
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; }; then
13640 cat >conftest.$ac_ext <<_ACEOF
13641 #line $LINENO "configure"
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h. */
13647 $ac_includes_default
13651 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13658 rm -f conftest.$ac_objext
13659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13660 (eval $ac_compile) 2>&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); } &&
13664 { ac_try='test -s conftest.$ac_objext'
13665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13666 (eval $ac_try) 2>&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); }; }; then
13670 ac_hi=$ac_mid; break
13672 echo "$as_me: failed program was:" >&5
13673 sed 's/^/| /' conftest.$ac_ext >&5
13675 ac_lo=`expr $ac_mid + 1`
13676 if test $ac_lo -le $ac_mid; then
13680 ac_mid=`expr 2 '*' $ac_mid + 1`
13682 rm -f conftest.$ac_objext conftest.$ac_ext
13685 echo "$as_me: failed program was:" >&5
13686 sed 's/^/| /' conftest.$ac_ext >&5
13688 cat >conftest.$ac_ext <<_ACEOF
13689 #line $LINENO "configure"
13692 cat confdefs.h >>conftest.$ac_ext
13693 cat >>conftest.$ac_ext <<_ACEOF
13694 /* end confdefs.h. */
13695 $ac_includes_default
13699 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13706 rm -f conftest.$ac_objext
13707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13708 (eval $ac_compile) 2>&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); } &&
13712 { ac_try='test -s conftest.$ac_objext'
13713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13714 (eval $ac_try) 2>&5
13716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13717 (exit $ac_status); }; }; then
13720 cat >conftest.$ac_ext <<_ACEOF
13721 #line $LINENO "configure"
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h. */
13727 $ac_includes_default
13731 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13738 rm -f conftest.$ac_objext
13739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13740 (eval $ac_compile) 2>&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } &&
13744 { ac_try='test -s conftest.$ac_objext'
13745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13746 (eval $ac_try) 2>&5
13748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13749 (exit $ac_status); }; }; then
13750 ac_lo=$ac_mid; break
13752 echo "$as_me: failed program was:" >&5
13753 sed 's/^/| /' conftest.$ac_ext >&5
13755 ac_hi=`expr '(' $ac_mid ')' - 1`
13756 if test $ac_mid -le $ac_hi; then
13760 ac_mid=`expr 2 '*' $ac_mid`
13762 rm -f conftest.$ac_objext conftest.$ac_ext
13765 echo "$as_me: failed program was:" >&5
13766 sed 's/^/| /' conftest.$ac_ext >&5
13770 rm -f conftest.$ac_objext conftest.$ac_ext
13772 rm -f conftest.$ac_objext conftest.$ac_ext
13773 # Binary search between lo and hi bounds.
13774 while test "x$ac_lo" != "x$ac_hi"; do
13775 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13776 cat >conftest.$ac_ext <<_ACEOF
13777 #line $LINENO "configure"
13780 cat confdefs.h >>conftest.$ac_ext
13781 cat >>conftest.$ac_ext <<_ACEOF
13782 /* end confdefs.h. */
13783 $ac_includes_default
13787 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13794 rm -f conftest.$ac_objext
13795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13796 (eval $ac_compile) 2>&5
13798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13799 (exit $ac_status); } &&
13800 { ac_try='test -s conftest.$ac_objext'
13801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13802 (eval $ac_try) 2>&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); }; }; then
13808 echo "$as_me: failed program was:" >&5
13809 sed 's/^/| /' conftest.$ac_ext >&5
13811 ac_lo=`expr '(' $ac_mid ')' + 1`
13813 rm -f conftest.$ac_objext conftest.$ac_ext
13816 ?*) ac_cv_sizeof_int_p=$ac_lo;;
13817 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13818 See \`config.log' for more details." >&5
13819 echo "$as_me: error: cannot compute sizeof (int *), 77
13820 See \`config.log' for more details." >&2;}
13821 { (exit 1); exit 1; }; } ;;
13824 if test "$cross_compiling" = yes; then
13825 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13826 See \`config.log' for more details." >&5
13827 echo "$as_me: error: cannot run test program while cross compiling
13828 See \`config.log' for more details." >&2;}
13829 { (exit 1); exit 1; }; }
13831 cat >conftest.$ac_ext <<_ACEOF
13832 #line $LINENO "configure"
13835 cat confdefs.h >>conftest.$ac_ext
13836 cat >>conftest.$ac_ext <<_ACEOF
13837 /* end confdefs.h. */
13838 $ac_includes_default
13839 long longval () { return (long) (sizeof (int *)); }
13840 unsigned long ulongval () { return (long) (sizeof (int *)); }
13842 #include <stdlib.h>
13847 FILE *f = fopen ("conftest.val", "w");
13850 if (((long) (sizeof (int *))) < 0)
13852 long i = longval ();
13853 if (i != ((long) (sizeof (int *))))
13855 fprintf (f, "%ld\n", i);
13859 unsigned long i = ulongval ();
13860 if (i != ((long) (sizeof (int *))))
13862 fprintf (f, "%lu\n", i);
13864 exit (ferror (f) || fclose (f) != 0);
13870 rm -f conftest$ac_exeext
13871 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13872 (eval $ac_link) 2>&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13877 (eval $ac_try) 2>&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); }; }; then
13881 ac_cv_sizeof_int_p=`cat conftest.val`
13883 echo "$as_me: program exited with status $ac_status" >&5
13884 echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.$ac_ext >&5
13887 ( exit $ac_status )
13888 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13889 See \`config.log' for more details." >&5
13890 echo "$as_me: error: cannot compute sizeof (int *), 77
13891 See \`config.log' for more details." >&2;}
13892 { (exit 1); exit 1; }; }
13894 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13899 ac_cv_sizeof_int_p=0
13902 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
13903 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
13904 cat >>confdefs.h <<_ACEOF
13905 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
13910 # Check for sys/types.h types
13911 echo "$as_me:$LINENO: checking for u_int type" >&5
13912 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
13913 if test "${ac_cv_have_u_int+set}" = set; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13917 cat >conftest.$ac_ext <<_ACEOF
13918 #line $LINENO "configure"
13921 cat confdefs.h >>conftest.$ac_ext
13922 cat >>conftest.$ac_ext <<_ACEOF
13923 /* end confdefs.h. */
13924 #include <sys/types.h>
13933 rm -f conftest.$ac_objext
13934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13935 (eval $ac_compile) 2>&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); } &&
13939 { ac_try='test -s conftest.$ac_objext'
13940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 (eval $ac_try) 2>&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; }; then
13945 ac_cv_have_u_int="yes"
13947 echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13950 ac_cv_have_u_int="no"
13953 rm -f conftest.$ac_objext conftest.$ac_ext
13956 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
13957 echo "${ECHO_T}$ac_cv_have_u_int" >&6
13958 if test "x$ac_cv_have_u_int" = "xyes" ; then
13959 cat >>confdefs.h <<\_ACEOF
13960 #define HAVE_U_INT 1
13966 echo "$as_me:$LINENO: checking for intmax_t type" >&5
13967 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
13968 if test "${ac_cv_have_intmax_t+set}" = set; then
13969 echo $ECHO_N "(cached) $ECHO_C" >&6
13972 cat >conftest.$ac_ext <<_ACEOF
13973 #line $LINENO "configure"
13976 cat confdefs.h >>conftest.$ac_ext
13977 cat >>conftest.$ac_ext <<_ACEOF
13978 /* end confdefs.h. */
13979 #include <sys/types.h>
13988 rm -f conftest.$ac_objext
13989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13990 (eval $ac_compile) 2>&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } &&
13994 { ac_try='test -s conftest.$ac_objext'
13995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13996 (eval $ac_try) 2>&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; }; then
14000 ac_cv_have_intmax_t="yes"
14002 echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14006 cat >conftest.$ac_ext <<_ACEOF
14007 #line $LINENO "configure"
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14013 #include <stdint.h>
14022 rm -f conftest.$ac_objext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14024 (eval $ac_compile) 2>&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } &&
14028 { ac_try='test -s conftest.$ac_objext'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; }; then
14034 ac_cv_have_intmax_t="yes"
14036 echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14039 ac_cv_have_intmax_t="no"
14042 rm -f conftest.$ac_objext conftest.$ac_ext
14046 rm -f conftest.$ac_objext conftest.$ac_ext
14050 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14051 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14052 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14053 cat >>confdefs.h <<\_ACEOF
14054 #define HAVE_INTMAX_T 1
14061 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14062 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14063 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14064 echo $ECHO_N "(cached) $ECHO_C" >&6
14067 cat >conftest.$ac_ext <<_ACEOF
14068 #line $LINENO "configure"
14071 cat confdefs.h >>conftest.$ac_ext
14072 cat >>conftest.$ac_ext <<_ACEOF
14073 /* end confdefs.h. */
14074 #include <sys/types.h>
14078 u_intmax_t a; a = 1;
14083 rm -f conftest.$ac_objext
14084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14085 (eval $ac_compile) 2>&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); } &&
14089 { ac_try='test -s conftest.$ac_objext'
14090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14091 (eval $ac_try) 2>&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; }; then
14095 ac_cv_have_u_intmax_t="yes"
14097 echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14101 cat >conftest.$ac_ext <<_ACEOF
14102 #line $LINENO "configure"
14105 cat confdefs.h >>conftest.$ac_ext
14106 cat >>conftest.$ac_ext <<_ACEOF
14107 /* end confdefs.h. */
14108 #include <stdint.h>
14112 u_intmax_t a; a = 1;
14117 rm -f conftest.$ac_objext
14118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14119 (eval $ac_compile) 2>&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); } &&
14123 { ac_try='test -s conftest.$ac_objext'
14124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14125 (eval $ac_try) 2>&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14128 (exit $ac_status); }; }; then
14129 ac_cv_have_u_intmax_t="yes"
14131 echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14134 ac_cv_have_u_intmax_t="no"
14137 rm -f conftest.$ac_objext conftest.$ac_ext
14141 rm -f conftest.$ac_objext conftest.$ac_ext
14144 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14145 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14146 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14147 cat >>confdefs.h <<\_ACEOF
14148 #define HAVE_U_INTMAX_T 1
14155 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14156 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14157 if test "${ac_cv_have_intxx_t+set}" = set; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14161 cat >conftest.$ac_ext <<_ACEOF
14162 #line $LINENO "configure"
14165 cat confdefs.h >>conftest.$ac_ext
14166 cat >>conftest.$ac_ext <<_ACEOF
14167 /* end confdefs.h. */
14168 #include <sys/types.h>
14172 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14177 rm -f conftest.$ac_objext
14178 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14179 (eval $ac_compile) 2>&5
14181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182 (exit $ac_status); } &&
14183 { ac_try='test -s conftest.$ac_objext'
14184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185 (eval $ac_try) 2>&5
14187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188 (exit $ac_status); }; }; then
14189 ac_cv_have_intxx_t="yes"
14191 echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14194 ac_cv_have_intxx_t="no"
14197 rm -f conftest.$ac_objext conftest.$ac_ext
14200 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14201 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14202 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14203 cat >>confdefs.h <<\_ACEOF
14204 #define HAVE_INTXX_T 1
14210 echo "$as_me:$LINENO: checking for int64_t type" >&5
14211 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14212 if test "${ac_cv_have_int64_t+set}" = set; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 cat >conftest.$ac_ext <<_ACEOF
14217 #line $LINENO "configure"
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h. */
14223 #include <sys/types.h>
14232 rm -f conftest.$ac_objext
14233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14234 (eval $ac_compile) 2>&5
14236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14237 (exit $ac_status); } &&
14238 { ac_try='test -s conftest.$ac_objext'
14239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14240 (eval $ac_try) 2>&5
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }; }; then
14244 ac_cv_have_int64_t="yes"
14246 echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14249 ac_cv_have_int64_t="no"
14252 rm -f conftest.$ac_objext conftest.$ac_ext
14255 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14256 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14257 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14258 cat >>confdefs.h <<\_ACEOF
14259 #define HAVE_INT64_T 1
14265 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14266 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14267 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14268 echo $ECHO_N "(cached) $ECHO_C" >&6
14271 cat >conftest.$ac_ext <<_ACEOF
14272 #line $LINENO "configure"
14275 cat confdefs.h >>conftest.$ac_ext
14276 cat >>conftest.$ac_ext <<_ACEOF
14277 /* end confdefs.h. */
14278 #include <sys/types.h>
14282 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14287 rm -f conftest.$ac_objext
14288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14289 (eval $ac_compile) 2>&5
14291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14292 (exit $ac_status); } &&
14293 { ac_try='test -s conftest.$ac_objext'
14294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14295 (eval $ac_try) 2>&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; }; then
14299 ac_cv_have_u_intxx_t="yes"
14301 echo "$as_me: failed program was:" >&5
14302 sed 's/^/| /' conftest.$ac_ext >&5
14304 ac_cv_have_u_intxx_t="no"
14307 rm -f conftest.$ac_objext conftest.$ac_ext
14310 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14311 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14312 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14313 cat >>confdefs.h <<\_ACEOF
14314 #define HAVE_U_INTXX_T 1
14320 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14321 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14322 if test "${ac_cv_have_u_int64_t+set}" = set; then
14323 echo $ECHO_N "(cached) $ECHO_C" >&6
14326 cat >conftest.$ac_ext <<_ACEOF
14327 #line $LINENO "configure"
14330 cat confdefs.h >>conftest.$ac_ext
14331 cat >>conftest.$ac_ext <<_ACEOF
14332 /* end confdefs.h. */
14333 #include <sys/types.h>
14337 u_int64_t a; a = 1;
14342 rm -f conftest.$ac_objext
14343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14344 (eval $ac_compile) 2>&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); } &&
14348 { ac_try='test -s conftest.$ac_objext'
14349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14350 (eval $ac_try) 2>&5
14352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353 (exit $ac_status); }; }; then
14354 ac_cv_have_u_int64_t="yes"
14356 echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.$ac_ext >&5
14359 ac_cv_have_u_int64_t="no"
14362 rm -f conftest.$ac_objext conftest.$ac_ext
14365 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14366 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14367 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14368 cat >>confdefs.h <<\_ACEOF
14369 #define HAVE_U_INT64_T 1
14375 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14376 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14378 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14379 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14380 cat >conftest.$ac_ext <<_ACEOF
14381 #line $LINENO "configure"
14384 cat confdefs.h >>conftest.$ac_ext
14385 cat >>conftest.$ac_ext <<_ACEOF
14386 /* end confdefs.h. */
14387 #include <sys/bitypes.h>
14391 int8_t a; int16_t b; int32_t c;
14392 u_int8_t e; u_int16_t f; u_int32_t g;
14393 a = b = c = e = f = g = 1;
14398 rm -f conftest.$ac_objext
14399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14400 (eval $ac_compile) 2>&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } &&
14404 { ac_try='test -s conftest.$ac_objext'
14405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14406 (eval $ac_try) 2>&5
14408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14409 (exit $ac_status); }; }; then
14410 cat >>confdefs.h <<\_ACEOF
14411 #define HAVE_U_INTXX_T 1
14414 cat >>confdefs.h <<\_ACEOF
14415 #define HAVE_INTXX_T 1
14418 cat >>confdefs.h <<\_ACEOF
14419 #define HAVE_SYS_BITYPES_H 1
14422 echo "$as_me:$LINENO: result: yes" >&5
14423 echo "${ECHO_T}yes" >&6
14425 echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14428 echo "$as_me:$LINENO: result: no" >&5
14429 echo "${ECHO_T}no" >&6
14432 rm -f conftest.$ac_objext conftest.$ac_ext
14435 if test -z "$have_u_intxx_t" ; then
14436 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14437 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14438 if test "${ac_cv_have_uintxx_t+set}" = set; then
14439 echo $ECHO_N "(cached) $ECHO_C" >&6
14442 cat >conftest.$ac_ext <<_ACEOF
14443 #line $LINENO "configure"
14446 cat confdefs.h >>conftest.$ac_ext
14447 cat >>conftest.$ac_ext <<_ACEOF
14448 /* end confdefs.h. */
14449 #include <sys/types.h>
14453 uint8_t a; uint16_t b;
14454 uint32_t c; a = b = c = 1;
14459 rm -f conftest.$ac_objext
14460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14461 (eval $ac_compile) 2>&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } &&
14465 { ac_try='test -s conftest.$ac_objext'
14466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14467 (eval $ac_try) 2>&5
14469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14470 (exit $ac_status); }; }; then
14471 ac_cv_have_uintxx_t="yes"
14473 echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14476 ac_cv_have_uintxx_t="no"
14479 rm -f conftest.$ac_objext conftest.$ac_ext
14482 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14483 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14484 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14485 cat >>confdefs.h <<\_ACEOF
14486 #define HAVE_UINTXX_T 1
14522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14523 echo "$as_me:$LINENO: checking for $ac_func" >&5
14524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14525 if eval "test \"\${$as_ac_var+set}\" = set"; then
14526 echo $ECHO_N "(cached) $ECHO_C" >&6
14528 cat >conftest.$ac_ext <<_ACEOF
14529 #line $LINENO "configure"
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h. */
14535 /* System header to define __stub macros and hopefully few prototypes,
14536 which can conflict with char $ac_func (); below.
14537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14538 <limits.h> exists even on freestanding compilers. */
14540 # include <limits.h>
14542 # include <assert.h>
14544 /* Override any gcc2 internal prototype to avoid an error. */
14549 /* We use char because int might match the return type of a gcc2
14550 builtin and then its argument prototype would still apply. */
14552 /* The GNU C library defines this for functions which it implements
14553 to always fail with ENOSYS. Some functions are actually named
14554 something starting with __ and the normal name is an alias. */
14555 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14558 char (*f) () = $ac_func;
14567 return f != $ac_func;
14572 rm -f conftest.$ac_objext conftest$ac_exeext
14573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14574 (eval $ac_link) 2>&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } &&
14578 { ac_try='test -s conftest$ac_exeext'
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; }; then
14584 eval "$as_ac_var=yes"
14586 echo "$as_me: failed program was:" >&5
14587 sed 's/^/| /' conftest.$ac_ext >&5
14589 eval "$as_ac_var=no"
14591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14593 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14594 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14595 if test `eval echo '${'$as_ac_var'}'` = yes; then
14596 cat >>confdefs.h <<_ACEOF
14597 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14601 echo 'configure: cannot find needed function.'; exit 1
14608 for ac_func in fchdir
14610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14611 echo "$as_me:$LINENO: checking for $ac_func" >&5
14612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14613 if eval "test \"\${$as_ac_var+set}\" = set"; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 cat >conftest.$ac_ext <<_ACEOF
14617 #line $LINENO "configure"
14620 cat confdefs.h >>conftest.$ac_ext
14621 cat >>conftest.$ac_ext <<_ACEOF
14622 /* end confdefs.h. */
14623 /* System header to define __stub macros and hopefully few prototypes,
14624 which can conflict with char $ac_func (); below.
14625 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14626 <limits.h> exists even on freestanding compilers. */
14628 # include <limits.h>
14630 # include <assert.h>
14632 /* Override any gcc2 internal prototype to avoid an error. */
14637 /* We use char because int might match the return type of a gcc2
14638 builtin and then its argument prototype would still apply. */
14640 /* The GNU C library defines this for functions which it implements
14641 to always fail with ENOSYS. Some functions are actually named
14642 something starting with __ and the normal name is an alias. */
14643 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14646 char (*f) () = $ac_func;
14655 return f != $ac_func;
14660 rm -f conftest.$ac_objext conftest$ac_exeext
14661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14662 (eval $ac_link) 2>&5
14664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14665 (exit $ac_status); } &&
14666 { ac_try='test -s conftest$ac_exeext'
14667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14668 (eval $ac_try) 2>&5
14670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14671 (exit $ac_status); }; }; then
14672 eval "$as_ac_var=yes"
14674 echo "$as_me: failed program was:" >&5
14675 sed 's/^/| /' conftest.$ac_ext >&5
14677 eval "$as_ac_var=no"
14679 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14681 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14682 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14683 if test `eval echo '${'$as_ac_var'}'` = yes; then
14684 cat >>confdefs.h <<_ACEOF
14685 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14687 cat >>confdefs.h <<\_ACEOF
14688 #define HAVE_FCHDIR 1
14695 for ac_func in strtoll
14697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14698 echo "$as_me:$LINENO: checking for $ac_func" >&5
14699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14700 if eval "test \"\${$as_ac_var+set}\" = set"; then
14701 echo $ECHO_N "(cached) $ECHO_C" >&6
14703 cat >conftest.$ac_ext <<_ACEOF
14704 #line $LINENO "configure"
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h. */
14710 /* System header to define __stub macros and hopefully few prototypes,
14711 which can conflict with char $ac_func (); below.
14712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14713 <limits.h> exists even on freestanding compilers. */
14715 # include <limits.h>
14717 # include <assert.h>
14719 /* Override any gcc2 internal prototype to avoid an error. */
14724 /* We use char because int might match the return type of a gcc2
14725 builtin and then its argument prototype would still apply. */
14727 /* The GNU C library defines this for functions which it implements
14728 to always fail with ENOSYS. Some functions are actually named
14729 something starting with __ and the normal name is an alias. */
14730 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14733 char (*f) () = $ac_func;
14742 return f != $ac_func;
14747 rm -f conftest.$ac_objext conftest$ac_exeext
14748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14749 (eval $ac_link) 2>&5
14751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14752 (exit $ac_status); } &&
14753 { ac_try='test -s conftest$ac_exeext'
14754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14755 (eval $ac_try) 2>&5
14757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14758 (exit $ac_status); }; }; then
14759 eval "$as_ac_var=yes"
14761 echo "$as_me: failed program was:" >&5
14762 sed 's/^/| /' conftest.$ac_ext >&5
14764 eval "$as_ac_var=no"
14766 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14769 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14770 if test `eval echo '${'$as_ac_var'}'` = yes; then
14771 cat >>confdefs.h <<_ACEOF
14772 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14774 cat >>confdefs.h <<\_ACEOF
14775 #define HAVE_STRTOLL 1
14783 for ac_func in chflags
14785 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14786 echo "$as_me:$LINENO: checking for $ac_func" >&5
14787 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14788 if eval "test \"\${$as_ac_var+set}\" = set"; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
14791 cat >conftest.$ac_ext <<_ACEOF
14792 #line $LINENO "configure"
14795 cat confdefs.h >>conftest.$ac_ext
14796 cat >>conftest.$ac_ext <<_ACEOF
14797 /* end confdefs.h. */
14798 /* System header to define __stub macros and hopefully few prototypes,
14799 which can conflict with char $ac_func (); below.
14800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14801 <limits.h> exists even on freestanding compilers. */
14803 # include <limits.h>
14805 # include <assert.h>
14807 /* Override any gcc2 internal prototype to avoid an error. */
14812 /* We use char because int might match the return type of a gcc2
14813 builtin and then its argument prototype would still apply. */
14815 /* The GNU C library defines this for functions which it implements
14816 to always fail with ENOSYS. Some functions are actually named
14817 something starting with __ and the normal name is an alias. */
14818 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14821 char (*f) () = $ac_func;
14830 return f != $ac_func;
14835 rm -f conftest.$ac_objext conftest$ac_exeext
14836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14837 (eval $ac_link) 2>&5
14839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840 (exit $ac_status); } &&
14841 { ac_try='test -s conftest$ac_exeext'
14842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14843 (eval $ac_try) 2>&5
14845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846 (exit $ac_status); }; }; then
14847 eval "$as_ac_var=yes"
14849 echo "$as_me: failed program was:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14852 eval "$as_ac_var=no"
14854 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14857 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14858 if test `eval echo '${'$as_ac_var'}'` = yes; then
14859 cat >>confdefs.h <<_ACEOF
14860 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14871 for ac_func in snprintf vsnprintf gethostid getdomainname
14873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14874 echo "$as_me:$LINENO: checking for $ac_func" >&5
14875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14876 if eval "test \"\${$as_ac_var+set}\" = set"; then
14877 echo $ECHO_N "(cached) $ECHO_C" >&6
14879 cat >conftest.$ac_ext <<_ACEOF
14880 #line $LINENO "configure"
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h. */
14886 /* System header to define __stub macros and hopefully few prototypes,
14887 which can conflict with char $ac_func (); below.
14888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14889 <limits.h> exists even on freestanding compilers. */
14891 # include <limits.h>
14893 # include <assert.h>
14895 /* Override any gcc2 internal prototype to avoid an error. */
14900 /* We use char because int might match the return type of a gcc2
14901 builtin and then its argument prototype would still apply. */
14903 /* The GNU C library defines this for functions which it implements
14904 to always fail with ENOSYS. Some functions are actually named
14905 something starting with __ and the normal name is an alias. */
14906 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14909 char (*f) () = $ac_func;
14918 return f != $ac_func;
14923 rm -f conftest.$ac_objext conftest$ac_exeext
14924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14925 (eval $ac_link) 2>&5
14927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14928 (exit $ac_status); } &&
14929 { ac_try='test -s conftest$ac_exeext'
14930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14931 (eval $ac_try) 2>&5
14933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14934 (exit $ac_status); }; }; then
14935 eval "$as_ac_var=yes"
14937 echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14940 eval "$as_ac_var=no"
14942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14944 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14945 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14946 if test `eval echo '${'$as_ac_var'}'` = yes; then
14947 cat >>confdefs.h <<_ACEOF
14948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14959 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
14961 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14962 echo "$as_me:$LINENO: checking for $ac_func" >&5
14963 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14964 if eval "test \"\${$as_ac_var+set}\" = set"; then
14965 echo $ECHO_N "(cached) $ECHO_C" >&6
14967 cat >conftest.$ac_ext <<_ACEOF
14968 #line $LINENO "configure"
14971 cat confdefs.h >>conftest.$ac_ext
14972 cat >>conftest.$ac_ext <<_ACEOF
14973 /* end confdefs.h. */
14974 /* System header to define __stub macros and hopefully few prototypes,
14975 which can conflict with char $ac_func (); below.
14976 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14977 <limits.h> exists even on freestanding compilers. */
14979 # include <limits.h>
14981 # include <assert.h>
14983 /* Override any gcc2 internal prototype to avoid an error. */
14988 /* We use char because int might match the return type of a gcc2
14989 builtin and then its argument prototype would still apply. */
14991 /* The GNU C library defines this for functions which it implements
14992 to always fail with ENOSYS. Some functions are actually named
14993 something starting with __ and the normal name is an alias. */
14994 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14997 char (*f) () = $ac_func;
15006 return f != $ac_func;
15011 rm -f conftest.$ac_objext conftest$ac_exeext
15012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15013 (eval $ac_link) 2>&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
15017 { ac_try='test -s conftest$ac_exeext'
15018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15019 (eval $ac_try) 2>&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); }; }; then
15023 eval "$as_ac_var=yes"
15025 echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15028 eval "$as_ac_var=no"
15030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15032 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15033 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15034 if test `eval echo '${'$as_ac_var'}'` = yes; then
15035 cat >>confdefs.h <<_ACEOF
15036 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15043 # If resolver functions are not in libc check for -lnsl or -lresolv.
15044 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15045 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15046 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15047 echo $ECHO_N "(cached) $ECHO_C" >&6
15049 cat >conftest.$ac_ext <<_ACEOF
15050 #line $LINENO "configure"
15053 cat confdefs.h >>conftest.$ac_ext
15054 cat >>conftest.$ac_ext <<_ACEOF
15055 /* end confdefs.h. */
15056 /* System header to define __stub macros and hopefully few prototypes,
15057 which can conflict with char gethostbyname_r (); below.
15058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15059 <limits.h> exists even on freestanding compilers. */
15061 # include <limits.h>
15063 # include <assert.h>
15065 /* Override any gcc2 internal prototype to avoid an error. */
15070 /* We use char because int might match the return type of a gcc2
15071 builtin and then its argument prototype would still apply. */
15072 char gethostbyname_r ();
15073 /* The GNU C library defines this for functions which it implements
15074 to always fail with ENOSYS. Some functions are actually named
15075 something starting with __ and the normal name is an alias. */
15076 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15079 char (*f) () = gethostbyname_r;
15088 return f != gethostbyname_r;
15093 rm -f conftest.$ac_objext conftest$ac_exeext
15094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15095 (eval $ac_link) 2>&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); } &&
15099 { ac_try='test -s conftest$ac_exeext'
15100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15101 (eval $ac_try) 2>&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15105 ac_cv_func_gethostbyname_r=yes
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.$ac_ext >&5
15110 ac_cv_func_gethostbyname_r=no
15112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15114 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15115 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15116 if test $ac_cv_func_gethostbyname_r = yes; then
15117 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15118 echo "${ECHO_T}using libc's resolver" >&6
15121 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15122 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15123 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15124 echo $ECHO_N "(cached) $ECHO_C" >&6
15126 ac_check_lib_save_LIBS=$LIBS
15128 cat >conftest.$ac_ext <<_ACEOF
15129 #line $LINENO "configure"
15132 cat confdefs.h >>conftest.$ac_ext
15133 cat >>conftest.$ac_ext <<_ACEOF
15134 /* end confdefs.h. */
15136 /* Override any gcc2 internal prototype to avoid an error. */
15140 /* We use char because int might match the return type of a gcc2
15141 builtin and then its argument prototype would still apply. */
15142 char gethostbyname_r ();
15146 gethostbyname_r ();
15151 rm -f conftest.$ac_objext conftest$ac_exeext
15152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15153 (eval $ac_link) 2>&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); } &&
15157 { ac_try='test -s conftest$ac_exeext'
15158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15159 (eval $ac_try) 2>&5
15161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15162 (exit $ac_status); }; }; then
15163 ac_cv_lib_nsl_gethostbyname_r=yes
15165 echo "$as_me: failed program was:" >&5
15166 sed 's/^/| /' conftest.$ac_ext >&5
15168 ac_cv_lib_nsl_gethostbyname_r=no
15170 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15171 LIBS=$ac_check_lib_save_LIBS
15173 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15174 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15175 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15176 cat >>confdefs.h <<_ACEOF
15177 #define HAVE_LIBNSL 1
15185 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15186 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15187 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15188 echo $ECHO_N "(cached) $ECHO_C" >&6
15190 ac_check_lib_save_LIBS=$LIBS
15191 LIBS="-lresolv $LIBS"
15192 cat >conftest.$ac_ext <<_ACEOF
15193 #line $LINENO "configure"
15196 cat confdefs.h >>conftest.$ac_ext
15197 cat >>conftest.$ac_ext <<_ACEOF
15198 /* end confdefs.h. */
15200 /* Override any gcc2 internal prototype to avoid an error. */
15204 /* We use char because int might match the return type of a gcc2
15205 builtin and then its argument prototype would still apply. */
15206 char gethostbyname_r ();
15210 gethostbyname_r ();
15215 rm -f conftest.$ac_objext conftest$ac_exeext
15216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15217 (eval $ac_link) 2>&5
15219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15220 (exit $ac_status); } &&
15221 { ac_try='test -s conftest$ac_exeext'
15222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15223 (eval $ac_try) 2>&5
15225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15226 (exit $ac_status); }; }; then
15227 ac_cv_lib_resolv_gethostbyname_r=yes
15229 echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15232 ac_cv_lib_resolv_gethostbyname_r=no
15234 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15235 LIBS=$ac_check_lib_save_LIBS
15237 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15238 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15239 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15240 cat >>confdefs.h <<_ACEOF
15241 #define HAVE_LIBRESOLV 1
15244 LIBS="-lresolv $LIBS"
15252 # Find where sockets are (especially for Solaris)
15253 echo "$as_me:$LINENO: checking for socket" >&5
15254 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15255 if test "${ac_cv_func_socket+set}" = set; then
15256 echo $ECHO_N "(cached) $ECHO_C" >&6
15258 cat >conftest.$ac_ext <<_ACEOF
15259 #line $LINENO "configure"
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h. */
15265 /* System header to define __stub macros and hopefully few prototypes,
15266 which can conflict with char socket (); below.
15267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15268 <limits.h> exists even on freestanding compilers. */
15270 # include <limits.h>
15272 # include <assert.h>
15274 /* Override any gcc2 internal prototype to avoid an error. */
15279 /* We use char because int might match the return type of a gcc2
15280 builtin and then its argument prototype would still apply. */
15282 /* The GNU C library defines this for functions which it implements
15283 to always fail with ENOSYS. Some functions are actually named
15284 something starting with __ and the normal name is an alias. */
15285 #if defined (__stub_socket) || defined (__stub___socket)
15288 char (*f) () = socket;
15297 return f != socket;
15302 rm -f conftest.$ac_objext conftest$ac_exeext
15303 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15304 (eval $ac_link) 2>&5
15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307 (exit $ac_status); } &&
15308 { ac_try='test -s conftest$ac_exeext'
15309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15310 (eval $ac_try) 2>&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; }; then
15314 ac_cv_func_socket=yes
15316 echo "$as_me: failed program was:" >&5
15317 sed 's/^/| /' conftest.$ac_ext >&5
15319 ac_cv_func_socket=no
15321 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15323 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15324 echo "${ECHO_T}$ac_cv_func_socket" >&6
15325 if test $ac_cv_func_socket = yes; then
15326 echo "$as_me:$LINENO: result: using libc's socket" >&5
15327 echo "${ECHO_T}using libc's socket" >&6
15330 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15331 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15332 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15333 echo $ECHO_N "(cached) $ECHO_C" >&6
15335 ac_check_lib_save_LIBS=$LIBS
15336 LIBS="-lxnet $LIBS"
15337 cat >conftest.$ac_ext <<_ACEOF
15338 #line $LINENO "configure"
15341 cat confdefs.h >>conftest.$ac_ext
15342 cat >>conftest.$ac_ext <<_ACEOF
15343 /* end confdefs.h. */
15345 /* Override any gcc2 internal prototype to avoid an error. */
15349 /* We use char because int might match the return type of a gcc2
15350 builtin and then its argument prototype would still apply. */
15360 rm -f conftest.$ac_objext conftest$ac_exeext
15361 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15362 (eval $ac_link) 2>&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } &&
15366 { ac_try='test -s conftest$ac_exeext'
15367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15368 (eval $ac_try) 2>&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; }; then
15372 ac_cv_lib_xnet_socket=yes
15374 echo "$as_me: failed program was:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15377 ac_cv_lib_xnet_socket=no
15379 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15380 LIBS=$ac_check_lib_save_LIBS
15382 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15383 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15384 if test $ac_cv_lib_xnet_socket = yes; then
15385 cat >>confdefs.h <<_ACEOF
15386 #define HAVE_LIBXNET 1
15389 LIBS="-lxnet $LIBS"
15394 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15395 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15396 if test "${ac_cv_lib_socket_socket+set}" = set; then
15397 echo $ECHO_N "(cached) $ECHO_C" >&6
15399 ac_check_lib_save_LIBS=$LIBS
15400 LIBS="-lsocket $LIBS"
15401 cat >conftest.$ac_ext <<_ACEOF
15402 #line $LINENO "configure"
15405 cat confdefs.h >>conftest.$ac_ext
15406 cat >>conftest.$ac_ext <<_ACEOF
15407 /* end confdefs.h. */
15409 /* Override any gcc2 internal prototype to avoid an error. */
15413 /* We use char because int might match the return type of a gcc2
15414 builtin and then its argument prototype would still apply. */
15424 rm -f conftest.$ac_objext conftest$ac_exeext
15425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15426 (eval $ac_link) 2>&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } &&
15430 { ac_try='test -s conftest$ac_exeext'
15431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15432 (eval $ac_try) 2>&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); }; }; then
15436 ac_cv_lib_socket_socket=yes
15438 echo "$as_me: failed program was:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15441 ac_cv_lib_socket_socket=no
15443 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15444 LIBS=$ac_check_lib_save_LIBS
15446 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15447 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15448 if test $ac_cv_lib_socket_socket = yes; then
15449 cat >>confdefs.h <<_ACEOF
15450 #define HAVE_LIBSOCKET 1
15453 LIBS="-lsocket $LIBS"
15458 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15459 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15460 if test "${ac_cv_lib_inet_socket+set}" = set; then
15461 echo $ECHO_N "(cached) $ECHO_C" >&6
15463 ac_check_lib_save_LIBS=$LIBS
15464 LIBS="-linet $LIBS"
15465 cat >conftest.$ac_ext <<_ACEOF
15466 #line $LINENO "configure"
15469 cat confdefs.h >>conftest.$ac_ext
15470 cat >>conftest.$ac_ext <<_ACEOF
15471 /* end confdefs.h. */
15473 /* Override any gcc2 internal prototype to avoid an error. */
15477 /* We use char because int might match the return type of a gcc2
15478 builtin and then its argument prototype would still apply. */
15488 rm -f conftest.$ac_objext conftest$ac_exeext
15489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15490 (eval $ac_link) 2>&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } &&
15494 { ac_try='test -s conftest$ac_exeext'
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; }; then
15500 ac_cv_lib_inet_socket=yes
15502 echo "$as_me: failed program was:" >&5
15503 sed 's/^/| /' conftest.$ac_ext >&5
15505 ac_cv_lib_inet_socket=no
15507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15508 LIBS=$ac_check_lib_save_LIBS
15510 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15511 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15512 if test $ac_cv_lib_inet_socket = yes; then
15513 cat >>confdefs.h <<_ACEOF
15514 #define HAVE_LIBINET 1
15517 LIBS="-linet $LIBS"
15525 for ac_func in inet_pton
15527 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15528 echo "$as_me:$LINENO: checking for $ac_func" >&5
15529 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15530 if eval "test \"\${$as_ac_var+set}\" = set"; then
15531 echo $ECHO_N "(cached) $ECHO_C" >&6
15533 cat >conftest.$ac_ext <<_ACEOF
15534 #line $LINENO "configure"
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h. */
15540 /* System header to define __stub macros and hopefully few prototypes,
15541 which can conflict with char $ac_func (); below.
15542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15543 <limits.h> exists even on freestanding compilers. */
15545 # include <limits.h>
15547 # include <assert.h>
15549 /* Override any gcc2 internal prototype to avoid an error. */
15554 /* We use char because int might match the return type of a gcc2
15555 builtin and then its argument prototype would still apply. */
15557 /* The GNU C library defines this for functions which it implements
15558 to always fail with ENOSYS. Some functions are actually named
15559 something starting with __ and the normal name is an alias. */
15560 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15563 char (*f) () = $ac_func;
15572 return f != $ac_func;
15577 rm -f conftest.$ac_objext conftest$ac_exeext
15578 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15579 (eval $ac_link) 2>&5
15581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15582 (exit $ac_status); } &&
15583 { ac_try='test -s conftest$ac_exeext'
15584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15585 (eval $ac_try) 2>&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 (exit $ac_status); }; }; then
15589 eval "$as_ac_var=yes"
15591 echo "$as_me: failed program was:" >&5
15592 sed 's/^/| /' conftest.$ac_ext >&5
15594 eval "$as_ac_var=no"
15596 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15598 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15599 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15600 if test `eval echo '${'$as_ac_var'}'` = yes; then
15601 cat >>confdefs.h <<_ACEOF
15602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15604 cat >>confdefs.h <<\_ACEOF
15605 #define HAVE_INET_PTON 1
15613 for ac_func in strftime
15615 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15616 echo "$as_me:$LINENO: checking for $ac_func" >&5
15617 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15618 if eval "test \"\${$as_ac_var+set}\" = set"; then
15619 echo $ECHO_N "(cached) $ECHO_C" >&6
15621 cat >conftest.$ac_ext <<_ACEOF
15622 #line $LINENO "configure"
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h. */
15628 /* System header to define __stub macros and hopefully few prototypes,
15629 which can conflict with char $ac_func (); below.
15630 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15631 <limits.h> exists even on freestanding compilers. */
15633 # include <limits.h>
15635 # include <assert.h>
15637 /* Override any gcc2 internal prototype to avoid an error. */
15642 /* We use char because int might match the return type of a gcc2
15643 builtin and then its argument prototype would still apply. */
15645 /* The GNU C library defines this for functions which it implements
15646 to always fail with ENOSYS. Some functions are actually named
15647 something starting with __ and the normal name is an alias. */
15648 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15651 char (*f) () = $ac_func;
15660 return f != $ac_func;
15665 rm -f conftest.$ac_objext conftest$ac_exeext
15666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15667 (eval $ac_link) 2>&5
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); } &&
15671 { ac_try='test -s conftest$ac_exeext'
15672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15673 (eval $ac_try) 2>&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; }; then
15677 eval "$as_ac_var=yes"
15679 echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15682 eval "$as_ac_var=no"
15684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15686 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15687 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15688 if test `eval echo '${'$as_ac_var'}'` = yes; then
15689 cat >>confdefs.h <<_ACEOF
15690 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15694 # strftime is in -lintl on SCO UNIX.
15695 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15696 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
15697 if test "${ac_cv_lib_intl_strftime+set}" = set; then
15698 echo $ECHO_N "(cached) $ECHO_C" >&6
15700 ac_check_lib_save_LIBS=$LIBS
15701 LIBS="-lintl $LIBS"
15702 cat >conftest.$ac_ext <<_ACEOF
15703 #line $LINENO "configure"
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h. */
15710 /* Override any gcc2 internal prototype to avoid an error. */
15714 /* We use char because int might match the return type of a gcc2
15715 builtin and then its argument prototype would still apply. */
15725 rm -f conftest.$ac_objext conftest$ac_exeext
15726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15727 (eval $ac_link) 2>&5
15729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15730 (exit $ac_status); } &&
15731 { ac_try='test -s conftest$ac_exeext'
15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15733 (eval $ac_try) 2>&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); }; }; then
15737 ac_cv_lib_intl_strftime=yes
15739 echo "$as_me: failed program was:" >&5
15740 sed 's/^/| /' conftest.$ac_ext >&5
15742 ac_cv_lib_intl_strftime=no
15744 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15745 LIBS=$ac_check_lib_save_LIBS
15747 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
15748 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
15749 if test $ac_cv_lib_intl_strftime = yes; then
15750 cat >>confdefs.h <<\_ACEOF
15751 #define HAVE_STRFTIME 1
15754 LIBS="-lintl $LIBS"
15761 for ac_func in vprintf
15763 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15764 echo "$as_me:$LINENO: checking for $ac_func" >&5
15765 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15766 if eval "test \"\${$as_ac_var+set}\" = set"; then
15767 echo $ECHO_N "(cached) $ECHO_C" >&6
15769 cat >conftest.$ac_ext <<_ACEOF
15770 #line $LINENO "configure"
15773 cat confdefs.h >>conftest.$ac_ext
15774 cat >>conftest.$ac_ext <<_ACEOF
15775 /* end confdefs.h. */
15776 /* System header to define __stub macros and hopefully few prototypes,
15777 which can conflict with char $ac_func (); below.
15778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15779 <limits.h> exists even on freestanding compilers. */
15781 # include <limits.h>
15783 # include <assert.h>
15785 /* Override any gcc2 internal prototype to avoid an error. */
15790 /* We use char because int might match the return type of a gcc2
15791 builtin and then its argument prototype would still apply. */
15793 /* The GNU C library defines this for functions which it implements
15794 to always fail with ENOSYS. Some functions are actually named
15795 something starting with __ and the normal name is an alias. */
15796 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15799 char (*f) () = $ac_func;
15808 return f != $ac_func;
15813 rm -f conftest.$ac_objext conftest$ac_exeext
15814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15815 (eval $ac_link) 2>&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } &&
15819 { ac_try='test -s conftest$ac_exeext'
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; }; then
15825 eval "$as_ac_var=yes"
15827 echo "$as_me: failed program was:" >&5
15828 sed 's/^/| /' conftest.$ac_ext >&5
15830 eval "$as_ac_var=no"
15832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15834 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15835 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15836 if test `eval echo '${'$as_ac_var'}'` = yes; then
15837 cat >>confdefs.h <<_ACEOF
15838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15841 echo "$as_me:$LINENO: checking for _doprnt" >&5
15842 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
15843 if test "${ac_cv_func__doprnt+set}" = set; then
15844 echo $ECHO_N "(cached) $ECHO_C" >&6
15846 cat >conftest.$ac_ext <<_ACEOF
15847 #line $LINENO "configure"
15850 cat confdefs.h >>conftest.$ac_ext
15851 cat >>conftest.$ac_ext <<_ACEOF
15852 /* end confdefs.h. */
15853 /* System header to define __stub macros and hopefully few prototypes,
15854 which can conflict with char _doprnt (); below.
15855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15856 <limits.h> exists even on freestanding compilers. */
15858 # include <limits.h>
15860 # include <assert.h>
15862 /* Override any gcc2 internal prototype to avoid an error. */
15867 /* We use char because int might match the return type of a gcc2
15868 builtin and then its argument prototype would still apply. */
15870 /* The GNU C library defines this for functions which it implements
15871 to always fail with ENOSYS. Some functions are actually named
15872 something starting with __ and the normal name is an alias. */
15873 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15876 char (*f) () = _doprnt;
15885 return f != _doprnt;
15890 rm -f conftest.$ac_objext conftest$ac_exeext
15891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15892 (eval $ac_link) 2>&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); } &&
15896 { ac_try='test -s conftest$ac_exeext'
15897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898 (eval $ac_try) 2>&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); }; }; then
15902 ac_cv_func__doprnt=yes
15904 echo "$as_me: failed program was:" >&5
15905 sed 's/^/| /' conftest.$ac_ext >&5
15907 ac_cv_func__doprnt=no
15909 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15911 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15912 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
15913 if test $ac_cv_func__doprnt = yes; then
15915 cat >>confdefs.h <<\_ACEOF
15916 #define HAVE_DOPRNT 1
15925 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15926 # for constant arguments. Useless!
15927 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15928 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15929 if test "${ac_cv_working_alloca_h+set}" = set; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
15932 cat >conftest.$ac_ext <<_ACEOF
15933 #line $LINENO "configure"
15936 cat confdefs.h >>conftest.$ac_ext
15937 cat >>conftest.$ac_ext <<_ACEOF
15938 /* end confdefs.h. */
15939 #include <alloca.h>
15943 char *p = (char *) alloca (2 * sizeof (int));
15948 rm -f conftest.$ac_objext conftest$ac_exeext
15949 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15950 (eval $ac_link) 2>&5
15952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15953 (exit $ac_status); } &&
15954 { ac_try='test -s conftest$ac_exeext'
15955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15956 (eval $ac_try) 2>&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; }; then
15960 ac_cv_working_alloca_h=yes
15962 echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15965 ac_cv_working_alloca_h=no
15967 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15969 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15970 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15971 if test $ac_cv_working_alloca_h = yes; then
15973 cat >>confdefs.h <<\_ACEOF
15974 #define HAVE_ALLOCA_H 1
15979 echo "$as_me:$LINENO: checking for alloca" >&5
15980 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15981 if test "${ac_cv_func_alloca_works+set}" = set; then
15982 echo $ECHO_N "(cached) $ECHO_C" >&6
15984 cat >conftest.$ac_ext <<_ACEOF
15985 #line $LINENO "configure"
15988 cat confdefs.h >>conftest.$ac_ext
15989 cat >>conftest.$ac_ext <<_ACEOF
15990 /* end confdefs.h. */
15992 # define alloca __builtin_alloca
15995 # include <malloc.h>
15996 # define alloca _alloca
15999 # include <alloca.h>
16004 # ifndef alloca /* predefined by HP cc +Olibcalls */
16015 char *p = (char *) alloca (1);
16020 rm -f conftest.$ac_objext conftest$ac_exeext
16021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16022 (eval $ac_link) 2>&5
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); } &&
16026 { ac_try='test -s conftest$ac_exeext'
16027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028 (eval $ac_try) 2>&5
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; }; then
16032 ac_cv_func_alloca_works=yes
16034 echo "$as_me: failed program was:" >&5
16035 sed 's/^/| /' conftest.$ac_ext >&5
16037 ac_cv_func_alloca_works=no
16039 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16041 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16042 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16044 if test $ac_cv_func_alloca_works = yes; then
16046 cat >>confdefs.h <<\_ACEOF
16047 #define HAVE_ALLOCA 1
16051 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16052 # that cause trouble. Some versions do not even contain alloca or
16053 # contain a buggy version. If you still want to use their alloca,
16054 # use ar to extract alloca.o from them instead of compiling alloca.c.
16056 ALLOCA=alloca.$ac_objext
16058 cat >>confdefs.h <<\_ACEOF
16063 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16064 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16065 if test "${ac_cv_os_cray+set}" = set; then
16066 echo $ECHO_N "(cached) $ECHO_C" >&6
16068 cat >conftest.$ac_ext <<_ACEOF
16069 #line $LINENO "configure"
16072 cat confdefs.h >>conftest.$ac_ext
16073 cat >>conftest.$ac_ext <<_ACEOF
16074 /* end confdefs.h. */
16075 #if defined(CRAY) && ! defined(CRAY2)
16082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16083 $EGREP "webecray" >/dev/null 2>&1; then
16091 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16092 echo "${ECHO_T}$ac_cv_os_cray" >&6
16093 if test $ac_cv_os_cray = yes; then
16094 for ac_func in _getb67 GETB67 getb67; do
16095 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16096 echo "$as_me:$LINENO: checking for $ac_func" >&5
16097 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16098 if eval "test \"\${$as_ac_var+set}\" = set"; then
16099 echo $ECHO_N "(cached) $ECHO_C" >&6
16101 cat >conftest.$ac_ext <<_ACEOF
16102 #line $LINENO "configure"
16105 cat confdefs.h >>conftest.$ac_ext
16106 cat >>conftest.$ac_ext <<_ACEOF
16107 /* end confdefs.h. */
16108 /* System header to define __stub macros and hopefully few prototypes,
16109 which can conflict with char $ac_func (); below.
16110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16111 <limits.h> exists even on freestanding compilers. */
16113 # include <limits.h>
16115 # include <assert.h>
16117 /* Override any gcc2 internal prototype to avoid an error. */
16122 /* We use char because int might match the return type of a gcc2
16123 builtin and then its argument prototype would still apply. */
16125 /* The GNU C library defines this for functions which it implements
16126 to always fail with ENOSYS. Some functions are actually named
16127 something starting with __ and the normal name is an alias. */
16128 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16131 char (*f) () = $ac_func;
16140 return f != $ac_func;
16145 rm -f conftest.$ac_objext conftest$ac_exeext
16146 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16147 (eval $ac_link) 2>&5
16149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16150 (exit $ac_status); } &&
16151 { ac_try='test -s conftest$ac_exeext'
16152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16153 (eval $ac_try) 2>&5
16155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16156 (exit $ac_status); }; }; then
16157 eval "$as_ac_var=yes"
16159 echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16162 eval "$as_ac_var=no"
16164 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16166 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16167 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16168 if test `eval echo '${'$as_ac_var'}'` = yes; then
16170 cat >>confdefs.h <<_ACEOF
16171 #define CRAY_STACKSEG_END $ac_func
16180 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16181 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16182 if test "${ac_cv_c_stack_direction+set}" = set; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16185 if test "$cross_compiling" = yes; then
16186 ac_cv_c_stack_direction=0
16188 cat >conftest.$ac_ext <<_ACEOF
16189 #line $LINENO "configure"
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h. */
16196 find_stack_direction ()
16198 static char *addr = 0;
16203 return find_stack_direction ();
16206 return (&dummy > addr) ? 1 : -1;
16212 exit (find_stack_direction () < 0);
16215 rm -f conftest$ac_exeext
16216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16217 (eval $ac_link) 2>&5
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16222 (eval $ac_try) 2>&5
16224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16225 (exit $ac_status); }; }; then
16226 ac_cv_c_stack_direction=1
16228 echo "$as_me: program exited with status $ac_status" >&5
16229 echo "$as_me: failed program was:" >&5
16230 sed 's/^/| /' conftest.$ac_ext >&5
16232 ( exit $ac_status )
16233 ac_cv_c_stack_direction=-1
16235 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16238 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16239 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16241 cat >>confdefs.h <<_ACEOF
16242 #define STACK_DIRECTION $ac_cv_c_stack_direction
16248 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16249 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16250 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16251 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16252 echo $ECHO_N "(cached) $ECHO_C" >&6
16254 ac_check_lib_save_LIBS=$LIBS
16256 cat >conftest.$ac_ext <<_ACEOF
16257 #line $LINENO "configure"
16260 cat confdefs.h >>conftest.$ac_ext
16261 cat >>conftest.$ac_ext <<_ACEOF
16262 /* end confdefs.h. */
16264 /* Override any gcc2 internal prototype to avoid an error. */
16268 /* We use char because int might match the return type of a gcc2
16269 builtin and then its argument prototype would still apply. */
16279 rm -f conftest.$ac_objext conftest$ac_exeext
16280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16281 (eval $ac_link) 2>&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); } &&
16285 { ac_try='test -s conftest$ac_exeext'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; }; then
16291 ac_cv_lib_sun_getmntent=yes
16293 echo "$as_me: failed program was:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16296 ac_cv_lib_sun_getmntent=no
16298 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16299 LIBS=$ac_check_lib_save_LIBS
16301 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16302 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16303 if test $ac_cv_lib_sun_getmntent = yes; then
16306 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16307 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16308 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16309 echo $ECHO_N "(cached) $ECHO_C" >&6
16311 ac_check_lib_save_LIBS=$LIBS
16313 cat >conftest.$ac_ext <<_ACEOF
16314 #line $LINENO "configure"
16317 cat confdefs.h >>conftest.$ac_ext
16318 cat >>conftest.$ac_ext <<_ACEOF
16319 /* end confdefs.h. */
16321 /* Override any gcc2 internal prototype to avoid an error. */
16325 /* We use char because int might match the return type of a gcc2
16326 builtin and then its argument prototype would still apply. */
16336 rm -f conftest.$ac_objext conftest$ac_exeext
16337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16338 (eval $ac_link) 2>&5
16340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341 (exit $ac_status); } &&
16342 { ac_try='test -s conftest$ac_exeext'
16343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16344 (eval $ac_try) 2>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16348 ac_cv_lib_seq_getmntent=yes
16350 echo "$as_me: failed program was:" >&5
16351 sed 's/^/| /' conftest.$ac_ext >&5
16353 ac_cv_lib_seq_getmntent=no
16355 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16356 LIBS=$ac_check_lib_save_LIBS
16358 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16359 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16360 if test $ac_cv_lib_seq_getmntent = yes; then
16363 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16364 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16365 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16368 ac_check_lib_save_LIBS=$LIBS
16370 cat >conftest.$ac_ext <<_ACEOF
16371 #line $LINENO "configure"
16374 cat confdefs.h >>conftest.$ac_ext
16375 cat >>conftest.$ac_ext <<_ACEOF
16376 /* end confdefs.h. */
16378 /* Override any gcc2 internal prototype to avoid an error. */
16382 /* We use char because int might match the return type of a gcc2
16383 builtin and then its argument prototype would still apply. */
16393 rm -f conftest.$ac_objext conftest$ac_exeext
16394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16395 (eval $ac_link) 2>&5
16397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398 (exit $ac_status); } &&
16399 { ac_try='test -s conftest$ac_exeext'
16400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401 (eval $ac_try) 2>&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; }; then
16405 ac_cv_lib_gen_getmntent=yes
16407 echo "$as_me: failed program was:" >&5
16408 sed 's/^/| /' conftest.$ac_ext >&5
16410 ac_cv_lib_gen_getmntent=no
16412 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16413 LIBS=$ac_check_lib_save_LIBS
16415 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16416 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16417 if test $ac_cv_lib_gen_getmntent = yes; then
16426 for ac_func in getmntent
16428 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16429 echo "$as_me:$LINENO: checking for $ac_func" >&5
16430 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16431 if eval "test \"\${$as_ac_var+set}\" = set"; then
16432 echo $ECHO_N "(cached) $ECHO_C" >&6
16434 cat >conftest.$ac_ext <<_ACEOF
16435 #line $LINENO "configure"
16438 cat confdefs.h >>conftest.$ac_ext
16439 cat >>conftest.$ac_ext <<_ACEOF
16440 /* end confdefs.h. */
16441 /* System header to define __stub macros and hopefully few prototypes,
16442 which can conflict with char $ac_func (); below.
16443 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16444 <limits.h> exists even on freestanding compilers. */
16446 # include <limits.h>
16448 # include <assert.h>
16450 /* Override any gcc2 internal prototype to avoid an error. */
16455 /* We use char because int might match the return type of a gcc2
16456 builtin and then its argument prototype would still apply. */
16458 /* The GNU C library defines this for functions which it implements
16459 to always fail with ENOSYS. Some functions are actually named
16460 something starting with __ and the normal name is an alias. */
16461 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16464 char (*f) () = $ac_func;
16473 return f != $ac_func;
16478 rm -f conftest.$ac_objext conftest$ac_exeext
16479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16480 (eval $ac_link) 2>&5
16482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483 (exit $ac_status); } &&
16484 { ac_try='test -s conftest$ac_exeext'
16485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16486 (eval $ac_try) 2>&5
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); }; }; then
16490 eval "$as_ac_var=yes"
16492 echo "$as_me: failed program was:" >&5
16493 sed 's/^/| /' conftest.$ac_ext >&5
16495 eval "$as_ac_var=no"
16497 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16500 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16501 if test `eval echo '${'$as_ac_var'}'` = yes; then
16502 cat >>confdefs.h <<_ACEOF
16503 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16510 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16511 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16512 if test "${ac_cv_func_closedir_void+set}" = set; then
16513 echo $ECHO_N "(cached) $ECHO_C" >&6
16515 if test "$cross_compiling" = yes; then
16516 ac_cv_func_closedir_void=yes
16518 cat >conftest.$ac_ext <<_ACEOF
16519 #line $LINENO "configure"
16522 cat confdefs.h >>conftest.$ac_ext
16523 cat >>conftest.$ac_ext <<_ACEOF
16524 /* end confdefs.h. */
16525 $ac_includes_default
16526 #include <$ac_header_dirent>
16527 #ifndef __cplusplus
16534 exit (closedir (opendir (".")) != 0);
16539 rm -f conftest$ac_exeext
16540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16541 (eval $ac_link) 2>&5
16543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16544 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16546 (eval $ac_try) 2>&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; }; then
16550 ac_cv_func_closedir_void=no
16552 echo "$as_me: program exited with status $ac_status" >&5
16553 echo "$as_me: failed program was:" >&5
16554 sed 's/^/| /' conftest.$ac_ext >&5
16556 ( exit $ac_status )
16557 ac_cv_func_closedir_void=yes
16559 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16562 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
16563 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
16564 if test $ac_cv_func_closedir_void = yes; then
16566 cat >>confdefs.h <<\_ACEOF
16567 #define CLOSEDIR_VOID 1
16572 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16573 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16574 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16575 echo $ECHO_N "(cached) $ECHO_C" >&6
16577 if test "$cross_compiling" = yes; then
16578 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16579 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16580 { (exit 1); exit 1; }; }
16582 cat >conftest.$ac_ext <<_ACEOF
16583 #line $LINENO "configure"
16586 cat confdefs.h >>conftest.$ac_ext
16587 cat >>conftest.$ac_ext <<_ACEOF
16588 /* end confdefs.h. */
16590 # include <unistd.h>
16596 /* If this system has a BSD-style setpgrp which takes arguments,
16597 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16598 exit successfully. */
16599 exit (setpgrp (1,1) == -1 ? 0 : 1);
16604 rm -f conftest$ac_exeext
16605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16606 (eval $ac_link) 2>&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16611 (eval $ac_try) 2>&5
16613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16614 (exit $ac_status); }; }; then
16615 ac_cv_func_setpgrp_void=no
16617 echo "$as_me: program exited with status $ac_status" >&5
16618 echo "$as_me: failed program was:" >&5
16619 sed 's/^/| /' conftest.$ac_ext >&5
16621 ( exit $ac_status )
16622 ac_cv_func_setpgrp_void=yes
16624 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16627 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16628 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16629 if test $ac_cv_func_setpgrp_void = yes; then
16631 cat >>confdefs.h <<\_ACEOF
16632 #define SETPGRP_VOID 1
16636 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
16637 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
16638 if test "${ac_cv_func_fnmatch_works+set}" = set; then
16639 echo $ECHO_N "(cached) $ECHO_C" >&6
16641 # Some versions of Solaris, SCO, and the GNU C Library
16642 # have a broken or incompatible fnmatch.
16643 # So we run a test program. If we are cross-compiling, take no chance.
16644 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
16645 if test "$cross_compiling" = yes; then
16646 ac_cv_func_fnmatch_works=cross
16648 cat >conftest.$ac_ext <<_ACEOF
16649 #line $LINENO "configure"
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h. */
16655 #include <fnmatch.h>
16656 # define y(a, b, c) (fnmatch (a, b, c) == 0)
16657 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
16663 (!(y ("a*", "abc", 0)
16664 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
16665 && y ("a\\\\bc", "abc", 0)
16666 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
16667 && y ("*x", ".x", 0)
16668 && n ("*x", ".x", FNM_PERIOD)
16674 rm -f conftest$ac_exeext
16675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16676 (eval $ac_link) 2>&5
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16681 (eval $ac_try) 2>&5
16683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16684 (exit $ac_status); }; }; then
16685 ac_cv_func_fnmatch_works=yes
16687 echo "$as_me: program exited with status $ac_status" >&5
16688 echo "$as_me: failed program was:" >&5
16689 sed 's/^/| /' conftest.$ac_ext >&5
16691 ( exit $ac_status )
16692 ac_cv_func_fnmatch_works=no
16694 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16697 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
16698 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
16699 if test $ac_cv_func_fnmatch_works = yes; then
16701 cat >>confdefs.h <<\_ACEOF
16702 #define HAVE_FNMATCH 1
16711 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16712 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16713 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16714 echo $ECHO_N "(cached) $ECHO_C" >&6
16716 ac_check_lib_save_LIBS=$LIBS
16717 LIBS="-lxpg4 $LIBS"
16718 cat >conftest.$ac_ext <<_ACEOF
16719 #line $LINENO "configure"
16722 cat confdefs.h >>conftest.$ac_ext
16723 cat >>conftest.$ac_ext <<_ACEOF
16724 /* end confdefs.h. */
16726 /* Override any gcc2 internal prototype to avoid an error. */
16730 /* We use char because int might match the return type of a gcc2
16731 builtin and then its argument prototype would still apply. */
16741 rm -f conftest.$ac_objext conftest$ac_exeext
16742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16743 (eval $ac_link) 2>&5
16745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16746 (exit $ac_status); } &&
16747 { ac_try='test -s conftest$ac_exeext'
16748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16749 (eval $ac_try) 2>&5
16751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16752 (exit $ac_status); }; }; then
16753 ac_cv_lib_xpg4_setlocale=yes
16755 echo "$as_me: failed program was:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16758 ac_cv_lib_xpg4_setlocale=no
16760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16761 LIBS=$ac_check_lib_save_LIBS
16763 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
16764 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16765 if test $ac_cv_lib_xpg4_setlocale = yes; then
16766 LIBS="$LIBS -lxpg4"
16772 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
16773 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
16774 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
16775 echo $ECHO_N "(cached) $ECHO_C" >&6
16777 ac_check_lib_save_LIBS=$LIBS
16779 cat >conftest.$ac_ext <<_ACEOF
16780 #line $LINENO "configure"
16783 cat confdefs.h >>conftest.$ac_ext
16784 cat >>conftest.$ac_ext <<_ACEOF
16785 /* end confdefs.h. */
16787 /* Override any gcc2 internal prototype to avoid an error. */
16791 /* We use char because int might match the return type of a gcc2
16792 builtin and then its argument prototype would still apply. */
16802 rm -f conftest.$ac_objext conftest$ac_exeext
16803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16804 (eval $ac_link) 2>&5
16806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16807 (exit $ac_status); } &&
16808 { ac_try='test -s conftest$ac_exeext'
16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16810 (eval $ac_try) 2>&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; }; then
16814 ac_cv_lib_sun_getpwnam=yes
16816 echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16819 ac_cv_lib_sun_getpwnam=no
16821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16822 LIBS=$ac_check_lib_save_LIBS
16824 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
16825 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
16826 if test $ac_cv_lib_sun_getpwnam = yes; then
16827 cat >>confdefs.h <<_ACEOF
16828 #define HAVE_LIBSUN 1
16837 for ac_header in zlib.h
16839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16840 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16841 echo "$as_me:$LINENO: checking for $ac_header" >&5
16842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16844 echo $ECHO_N "(cached) $ECHO_C" >&6
16846 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16847 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16849 # Is the header compilable?
16850 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16852 cat >conftest.$ac_ext <<_ACEOF
16853 #line $LINENO "configure"
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16859 $ac_includes_default
16860 #include <$ac_header>
16862 rm -f conftest.$ac_objext
16863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16864 (eval $ac_compile) 2>&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } &&
16868 { ac_try='test -s conftest.$ac_objext'
16869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16870 (eval $ac_try) 2>&5
16872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16873 (exit $ac_status); }; }; then
16874 ac_header_compiler=yes
16876 echo "$as_me: failed program was:" >&5
16877 sed 's/^/| /' conftest.$ac_ext >&5
16879 ac_header_compiler=no
16881 rm -f conftest.$ac_objext conftest.$ac_ext
16882 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16883 echo "${ECHO_T}$ac_header_compiler" >&6
16885 # Is the header present?
16886 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16887 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16888 cat >conftest.$ac_ext <<_ACEOF
16889 #line $LINENO "configure"
16892 cat confdefs.h >>conftest.$ac_ext
16893 cat >>conftest.$ac_ext <<_ACEOF
16894 /* end confdefs.h. */
16895 #include <$ac_header>
16897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16900 grep -v '^ *+' conftest.er1 >conftest.err
16902 cat conftest.err >&5
16903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16904 (exit $ac_status); } >/dev/null; then
16905 if test -s conftest.err; then
16906 ac_cpp_err=$ac_c_preproc_warn_flag
16913 if test -z "$ac_cpp_err"; then
16914 ac_header_preproc=yes
16916 echo "$as_me: failed program was:" >&5
16917 sed 's/^/| /' conftest.$ac_ext >&5
16919 ac_header_preproc=no
16921 rm -f conftest.err conftest.$ac_ext
16922 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16923 echo "${ECHO_T}$ac_header_preproc" >&6
16925 # So? What about this header?
16926 case $ac_header_compiler:$ac_header_preproc in
16928 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16929 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16930 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16934 ## ------------------------------------ ##
16935 ## Report this to bug-autoconf@gnu.org. ##
16936 ## ------------------------------------ ##
16939 sed "s/^/$as_me: WARNING: /" >&2
16942 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16944 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16945 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16950 ## ------------------------------------ ##
16951 ## Report this to bug-autoconf@gnu.org. ##
16952 ## ------------------------------------ ##
16955 sed "s/^/$as_me: WARNING: /" >&2
16958 echo "$as_me:$LINENO: checking for $ac_header" >&5
16959 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16963 eval "$as_ac_Header=$ac_header_preproc"
16965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16966 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16970 cat >>confdefs.h <<_ACEOF
16971 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16978 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
16979 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
16980 if test "${ac_cv_lib_z_deflate+set}" = set; then
16981 echo $ECHO_N "(cached) $ECHO_C" >&6
16983 ac_check_lib_save_LIBS=$LIBS
16985 cat >conftest.$ac_ext <<_ACEOF
16986 #line $LINENO "configure"
16989 cat confdefs.h >>conftest.$ac_ext
16990 cat >>conftest.$ac_ext <<_ACEOF
16991 /* end confdefs.h. */
16993 /* Override any gcc2 internal prototype to avoid an error. */
16997 /* We use char because int might match the return type of a gcc2
16998 builtin and then its argument prototype would still apply. */
17008 rm -f conftest.$ac_objext conftest$ac_exeext
17009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17010 (eval $ac_link) 2>&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); } &&
17014 { ac_try='test -s conftest$ac_exeext'
17015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17016 (eval $ac_try) 2>&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); }; }; then
17020 ac_cv_lib_z_deflate=yes
17022 echo "$as_me: failed program was:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17025 ac_cv_lib_z_deflate=no
17027 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17028 LIBS=$ac_check_lib_save_LIBS
17030 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17031 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17032 if test $ac_cv_lib_z_deflate = yes; then
17037 if test x$FDLIBS = x-lz; then
17038 cat >>confdefs.h <<\_ACEOF
17039 #define HAVE_LIBZ 1
17046 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17047 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17048 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17049 echo $ECHO_N "(cached) $ECHO_C" >&6
17051 ac_check_lib_save_LIBS=$LIBS
17052 LIBS="-lpthread $LIBS"
17053 cat >conftest.$ac_ext <<_ACEOF
17054 #line $LINENO "configure"
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h. */
17061 /* Override any gcc2 internal prototype to avoid an error. */
17065 /* We use char because int might match the return type of a gcc2
17066 builtin and then its argument prototype would still apply. */
17067 char pthread_create ();
17076 rm -f conftest.$ac_objext conftest$ac_exeext
17077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17078 (eval $ac_link) 2>&5
17080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17081 (exit $ac_status); } &&
17082 { ac_try='test -s conftest$ac_exeext'
17083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17084 (eval $ac_try) 2>&5
17086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17087 (exit $ac_status); }; }; then
17088 ac_cv_lib_pthread_pthread_create=yes
17090 echo "$as_me: failed program was:" >&5
17091 sed 's/^/| /' conftest.$ac_ext >&5
17093 ac_cv_lib_pthread_pthread_create=no
17095 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17096 LIBS=$ac_check_lib_save_LIBS
17098 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17099 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17100 if test $ac_cv_lib_pthread_pthread_create = yes; then
17101 PTHREAD_LIB="-lpthread"
17103 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17104 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17105 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17106 echo $ECHO_N "(cached) $ECHO_C" >&6
17108 ac_check_lib_save_LIBS=$LIBS
17109 LIBS="-lpthreads $LIBS"
17110 cat >conftest.$ac_ext <<_ACEOF
17111 #line $LINENO "configure"
17114 cat confdefs.h >>conftest.$ac_ext
17115 cat >>conftest.$ac_ext <<_ACEOF
17116 /* end confdefs.h. */
17118 /* Override any gcc2 internal prototype to avoid an error. */
17122 /* We use char because int might match the return type of a gcc2
17123 builtin and then its argument prototype would still apply. */
17124 char pthread_create ();
17133 rm -f conftest.$ac_objext conftest$ac_exeext
17134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17135 (eval $ac_link) 2>&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); } &&
17139 { ac_try='test -s conftest$ac_exeext'
17140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17141 (eval $ac_try) 2>&5
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; }; then
17145 ac_cv_lib_pthreads_pthread_create=yes
17147 echo "$as_me: failed program was:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17150 ac_cv_lib_pthreads_pthread_create=no
17152 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17153 LIBS=$ac_check_lib_save_LIBS
17155 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17156 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17157 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17158 PTHREAD_LIB="-lpthreads"
17160 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17161 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17162 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17163 echo $ECHO_N "(cached) $ECHO_C" >&6
17165 ac_check_lib_save_LIBS=$LIBS
17167 cat >conftest.$ac_ext <<_ACEOF
17168 #line $LINENO "configure"
17171 cat confdefs.h >>conftest.$ac_ext
17172 cat >>conftest.$ac_ext <<_ACEOF
17173 /* end confdefs.h. */
17175 /* Override any gcc2 internal prototype to avoid an error. */
17179 /* We use char because int might match the return type of a gcc2
17180 builtin and then its argument prototype would still apply. */
17181 char pthread_create ();
17190 rm -f conftest.$ac_objext conftest$ac_exeext
17191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17192 (eval $ac_link) 2>&5
17194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17195 (exit $ac_status); } &&
17196 { ac_try='test -s conftest$ac_exeext'
17197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17198 (eval $ac_try) 2>&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); }; }; then
17202 ac_cv_lib_c_r_pthread_create=yes
17204 echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17207 ac_cv_lib_c_r_pthread_create=no
17209 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17210 LIBS=$ac_check_lib_save_LIBS
17212 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17213 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17214 if test $ac_cv_lib_c_r_pthread_create = yes; then
17215 PTHREAD_LIB="-lc_r"
17217 echo "$as_me:$LINENO: checking for pthread_create" >&5
17218 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17219 if test "${ac_cv_func_pthread_create+set}" = set; then
17220 echo $ECHO_N "(cached) $ECHO_C" >&6
17222 cat >conftest.$ac_ext <<_ACEOF
17223 #line $LINENO "configure"
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h. */
17229 /* System header to define __stub macros and hopefully few prototypes,
17230 which can conflict with char pthread_create (); below.
17231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17232 <limits.h> exists even on freestanding compilers. */
17234 # include <limits.h>
17236 # include <assert.h>
17238 /* Override any gcc2 internal prototype to avoid an error. */
17243 /* We use char because int might match the return type of a gcc2
17244 builtin and then its argument prototype would still apply. */
17245 char pthread_create ();
17246 /* The GNU C library defines this for functions which it implements
17247 to always fail with ENOSYS. Some functions are actually named
17248 something starting with __ and the normal name is an alias. */
17249 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17252 char (*f) () = pthread_create;
17261 return f != pthread_create;
17266 rm -f conftest.$ac_objext conftest$ac_exeext
17267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17268 (eval $ac_link) 2>&5
17270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17271 (exit $ac_status); } &&
17272 { ac_try='test -s conftest$ac_exeext'
17273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17274 (eval $ac_try) 2>&5
17276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17277 (exit $ac_status); }; }; then
17278 ac_cv_func_pthread_create=yes
17280 echo "$as_me: failed program was:" >&5
17281 sed 's/^/| /' conftest.$ac_ext >&5
17283 ac_cv_func_pthread_create=no
17285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17287 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17288 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17301 cat >>confdefs.h <<\_ACEOF
17307 CFLAGS=${CFLAGS--O}
17308 LDFLAGS=${LDFLAGS--O}
17309 DB_LIBS="${SQL_LFLAGS}"
17311 CPPFLAGS="$CPPFLAGS"
17336 # Finally we set appropriate distribution specific
17337 # variables and defaults
17339 # PFILES are platform specific files
17340 PFILES="platforms/Makefile"
17343 hostname=`uname -n`
17344 case "$DISTNAME" in
17347 PSCMD="ps -e -o pid,comm"
17348 PFILES="${PFILES} \
17349 platforms/aix/Makefile"
17350 TAPEDRIVE="/dev/rmt0.1"
17354 PTHREAD_LIB="-lpthread -lexc"
17355 if test "${CC}" = "gcc" ; then
17362 TAPEDRIVE="/dev/nrmt0"
17365 DISTVER=`uname -a |awk '{print $3}'`
17366 TAPEDRIVE="/dev/nrmt0"
17367 PTHREAD_LIB="-pthread"
17368 CFLAGS="${CFLAGS} -pthread"
17369 PSCMD="ps -x -o pid,command"
17372 PFILES="${PFILES} \
17373 platforms/bsdi/Makefile \
17374 platforms/bsdi/bacula-fd \
17375 platforms/bsdi/bacula-sd \
17376 platforms/bsdi/bacula-dir"
17377 hostname=`hostname -s`
17378 largefile_support="yes"
17381 DISTVER=`uname -a |awk '{print $3}'`
17382 TAPEDRIVE="/dev/nrst0"
17384 WCFLAGS="-mwindows"
17385 WLDFLAGS="-mwindows"
17389 TAPEDRIVE="/dev/nst0"
17390 PSCMD="ps -e -o pid,command"
17391 hostname=`hostname -s`
17392 PFILES="${PFILES} \
17393 platforms/darwin/Makefile"
17396 DISTVER=`cat /etc/debian_version`
17397 TAPEDRIVE="/dev/nrst0"
17398 PSCMD="ps -e -o pid,command"
17399 hostname=`hostname -s`
17402 DISTVER=`uname -a |awk '{print $3}'`
17403 PTHREAD_LIB="-pthread"
17404 CFLAGS="${CFLAGS} -pthread"
17407 TAPEDRIVE="/dev/nrsa0"
17408 PSCMD="ps -x -o pid,command"
17409 PFILES="${PFILES} \
17410 platforms/freebsd/Makefile \
17411 platforms/freebsd/bacula-fd \
17412 platforms/freebsd/bacula-sd \
17413 platforms/freebsd/bacula-dir"
17414 hostname=`hostname -s`
17415 largefile_support="yes"
17419 TAPEDRIVE="/dev/rmt/0hnb"
17423 TAPEDRIVE="/dev/rmt/0cbn"
17424 PSCMD="ps -e -o pid,comm"
17425 PFILES="${PFILES} \
17426 platforms/irix/Makefile \
17427 platforms/irix/bacula-fd \
17428 platforms/irix/bacula-sd \
17429 platforms/irix/bacula-dir"
17432 DISTVER=`uname -a |awk '{print $3}'`
17435 TAPEDRIVE="/dev/nrst0"
17436 PSCMD="ps -a -o pid,command"
17437 PTHREAD_LIB="-pthread"
17438 CFLAGS="${CFLAGS} -pthread"
17441 DISTVER=`uname -a |awk '{print $3}'`
17444 TAPEDRIVE="/dev/nrst0"
17445 PSCMD="ps -a -o pid,command"
17446 PTHREAD_LIB="-pthread"
17447 CFLAGS="${CFLAGS} -pthread"
17448 PFILES="${PFILES} \
17449 platforms/openbsd/Makefile \
17450 platforms/openbsd/bacula-fd \
17451 platforms/openbsd/bacula-sd \
17452 platforms/openbsd/bacula-dir"
17455 DISTVER=`cat /etc/redhat-release | grep release |\
17457 TAPEDRIVE="/dev/nst0"
17458 PSCMD="ps -e -o pid,command"
17459 PFILES="${PFILES} \
17460 platforms/redhat/Makefile \
17461 platforms/redhat/bacula-fd \
17462 platforms/redhat/bacula-sd \
17463 platforms/redhat/bacula-dir \
17464 platforms/redhat/bacula.spec \
17466 hostname=`hostname -s`
17469 DISTVER=`cat /etc/mandrake-release | grep release |\
17471 TAPEDRIVE="/dev/nst0"
17472 PSCMD="ps -e -o pid,command"
17473 PFILES="${PFILES} \
17474 platforms/mandrake/Makefile \
17475 platforms/mandrake/bacula-fd \
17476 platforms/mandrake/bacula-sd \
17477 platforms/mandrake/bacula-dir \
17478 platforms/mandrake/bacula.spec \
17480 hostname=`hostname -s`
17483 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17484 TAPEDRIVE="/dev/nst0"
17485 PSCMD="ps -e -o pid,command"
17486 PFILES="${PFILES} \
17487 platforms/gentoo/Makefile \
17488 platforms/gentoo/bacula-fd \
17489 platforms/gentoo/bacula-sd \
17490 platforms/gentoo/bacula-dir"
17491 hostname=`hostname -s`
17495 DISTVER=`cat /etc/slackware-version`
17496 TAPEDRIVE="/dev/nst0"
17497 PSCMD="ps -e -o pid,command"
17498 hostname=`hostname -s`
17502 TAPEDRIVE="/dev/rmt/0cbn"
17503 PSCMD="ps -e -o pid,comm"
17504 PFILES="${PFILES} \
17505 platforms/solaris/Makefile \
17506 platforms/solaris/bacula-fd \
17507 platforms/solaris/bacula-sd \
17508 platforms/solaris/bacula-dir"
17509 if test x$DISTVER = x5.6 ; then
17510 cat >>confdefs.h <<\_ACEOF
17511 #define HAVE_OLD_SOCKOPT 1
17517 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17519 TAPEDRIVE="/dev/nst0"
17520 PSCMD="ps -e -o pid,command"
17521 hostname=`hostname -s`
17526 TAPEDRIVE="/dev/nst0"
17527 PSCMD="ps -e -o pid,command"
17528 hostname=`hostname -s`
17532 TAPEDRIVE="/dev/nst0"
17535 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
17541 LIBS="$PTHREAD_LIB $LIBS"
17543 cat >>confdefs.h <<_ACEOF
17547 cat >>confdefs.h <<_ACEOF
17557 MCOMMON=./autoconf/Make.common
17560 if test "x${subsysdir}" = "x${sbindir}" ; then
17563 echo "You have set both --sbindir and --with-subsys-dir"
17564 echo " equal to: ${subsysdir} "
17565 echo "This is not permitted. Please reconfigure."
17567 echo "Aborting configuration ..."
17573 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/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/alter_mysql_tables src/cats/make_mysql_tables src/cats/drop_mysql_tables src/cats/create_mysql_database src/cats/grant_mysql_privileges src/cats/alter_sqlite_tables src/cats/make_sqlite_tables src/cats/drop_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/findlib/Makefile src/tools/Makefile $PFILES"
17574 ac_config_commands="$ac_config_commands default"
17575 cat >confcache <<\_ACEOF
17576 # This file is a shell script that caches the results of configure
17577 # tests run on this system so they can be shared between configure
17578 # scripts and configure runs, see configure's option --config-cache.
17579 # It is not useful on other systems. If it contains results you don't
17580 # want to keep, you may remove or edit it.
17582 # config.status only pays attention to the cache file if you give it
17583 # the --recheck option to rerun configure.
17585 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17586 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17587 # following values.
17591 # The following way of writing the cache mishandles newlines in values,
17592 # but we know of no workaround that is simple, portable, and efficient.
17593 # So, don't put newlines in cache variables' values.
17594 # Ultrix sh set writes to stderr and can't be redirected directly,
17595 # and sets the high bit in the cache file unless we assign to the vars.
17598 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17600 # `set' does not quote correctly, so add quotes (double-quote
17601 # substitution turns \\\\ into \\, and sed turns \\ into \).
17604 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17607 # `set' quotes correctly as required by POSIX, so do not add quotes.
17609 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17616 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17618 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17620 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17621 if test -w $cache_file; then
17622 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17623 cat confcache >$cache_file
17625 echo "not updating unwritable cache $cache_file"
17630 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17631 # Let make expand exec_prefix.
17632 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17634 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17635 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17636 # trailing colons and then remove the whole line if VPATH becomes empty
17637 # (actually we leave an empty line to preserve line numbers).
17638 if test "x$srcdir" = x.; then
17639 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17640 s/:*\$(srcdir):*/:/;
17641 s/:*\${srcdir}:*/:/;
17643 s/^\([^=]*=[ ]*\):*/\1/;
17649 DEFS=-DHAVE_CONFIG_H
17653 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17654 # 1. Remove the extension, and $U if already installed.
17655 ac_i=`echo "$ac_i" |
17656 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17658 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17659 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17661 LIBOBJS=$ac_libobjs
17663 LTLIBOBJS=$ac_ltlibobjs
17667 : ${CONFIG_STATUS=./config.status}
17668 ac_clean_files_save=$ac_clean_files
17669 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17670 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17671 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17672 cat >$CONFIG_STATUS <<_ACEOF
17674 # Generated by $as_me.
17675 # Run this file to recreate the current configuration.
17676 # Compiler output produced by configure, useful for debugging
17677 # configure, is in config.log if it exists.
17680 ac_cs_recheck=false
17682 SHELL=\${CONFIG_SHELL-$SHELL}
17685 cat >>$CONFIG_STATUS <<\_ACEOF
17686 ## --------------------- ##
17687 ## M4sh Initialization. ##
17688 ## --------------------- ##
17690 # Be Bourne compatible
17691 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17694 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17695 # is contrary to our usage. Disable this feature.
17696 alias -g '${1+"$@"}'='"$@"'
17697 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17701 # Support unset when possible.
17702 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17709 # Work around bugs in pre-3.0 UWIN ksh.
17710 $as_unset ENV MAIL MAILPATH
17717 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17718 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17719 LC_TELEPHONE LC_TIME
17721 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17722 eval $as_var=C; export $as_var
17728 # Required to use basename.
17729 if expr a : '\(a\)' >/dev/null 2>&1; then
17735 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17736 as_basename=basename
17742 # Name of the executable.
17743 as_me=`$as_basename "$0" ||
17744 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17745 X"$0" : 'X\(//\)$' \| \
17746 X"$0" : 'X\(/\)$' \| \
17747 . : '\(.\)' 2>/dev/null ||
17749 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17750 /^X\/\(\/\/\)$/{ s//\1/; q; }
17751 /^X\/\(\/\).*/{ s//\1/; q; }
17755 # PATH needs CR, and LINENO needs CR and PATH.
17756 # Avoid depending upon Character Ranges.
17757 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17758 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17759 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17760 as_cr_digits='0123456789'
17761 as_cr_alnum=$as_cr_Letters$as_cr_digits
17763 # The user is always right.
17764 if test "${PATH_SEPARATOR+set}" != set; then
17765 echo "#! /bin/sh" >conf$$.sh
17766 echo "exit 0" >>conf$$.sh
17768 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17777 as_lineno_1=$LINENO
17778 as_lineno_2=$LINENO
17779 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17780 test "x$as_lineno_1" != "x$as_lineno_2" &&
17781 test "x$as_lineno_3" = "x$as_lineno_2" || {
17782 # Find who we are. Look in the path if we contain no path at all
17785 *[\\/]* ) as_myself=$0 ;;
17786 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17787 for as_dir in $PATH
17790 test -z "$as_dir" && as_dir=.
17791 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17796 # We did not find ourselves, most probably we were run as `sh COMMAND'
17797 # in which case we are not to be found in the path.
17798 if test "x$as_myself" = x; then
17801 if test ! -f "$as_myself"; then
17802 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17803 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17804 { (exit 1); exit 1; }; }
17806 case $CONFIG_SHELL in
17808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17809 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17812 test -z "$as_dir" && as_dir=.
17813 for as_base in sh bash ksh sh5; do
17816 if ("$as_dir/$as_base" -c '
17817 as_lineno_1=$LINENO
17818 as_lineno_2=$LINENO
17819 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17820 test "x$as_lineno_1" != "x$as_lineno_2" &&
17821 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17822 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17823 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17824 CONFIG_SHELL=$as_dir/$as_base
17825 export CONFIG_SHELL
17826 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17834 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17835 # uniformly replaced by the line number. The first 'sed' inserts a
17836 # line-number line before each line; the second 'sed' does the real
17837 # work. The second script uses 'N' to pair each line-number line
17838 # with the numbered line, and appends trailing '-' during
17839 # substitution so that $LINENO is not a special case at line end.
17840 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17841 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17842 sed '=' <$as_myself |
17847 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17850 s,^['$as_cr_digits']*\n,,
17851 ' >$as_me.lineno &&
17852 chmod +x $as_me.lineno ||
17853 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17854 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17855 { (exit 1); exit 1; }; }
17857 # Don't try to exec as it changes $[0], causing all sort of problems
17858 # (the dirname of $[0] is not the place where we might find the
17859 # original and so on. Autoconf is especially sensible to this).
17861 # Exit status is that of the last command.
17866 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17867 *c*,-n*) ECHO_N= ECHO_C='
17869 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17870 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17873 if expr a : '\(a\)' >/dev/null 2>&1; then
17879 rm -f conf$$ conf$$.exe conf$$.file
17881 if ln -s conf$$.file conf$$ 2>/dev/null; then
17882 # We could just check for DJGPP; but this test a) works b) is more generic
17883 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17884 if test -f conf$$.exe; then
17885 # Don't use ln at all; we don't have any links
17890 elif ln conf$$.file conf$$ 2>/dev/null; then
17895 rm -f conf$$ conf$$.exe conf$$.file
17897 if mkdir -p . 2>/dev/null; then
17903 as_executable_p="test -f"
17905 # Sed expression to map a string onto a valid CPP name.
17906 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17908 # Sed expression to map a string onto a valid variable name.
17909 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17913 # We need space, tab and new line, in precisely that order.
17923 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17924 # report actual input values of CONFIG_FILES etc. instead of their
17925 # values after options handling. Logging --version etc. is OK.
17929 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17930 ## Running $as_me. ##
17935 This file was extended by $as_me, which was
17936 generated by GNU Autoconf 2.57. Invocation command line was
17938 CONFIG_FILES = $CONFIG_FILES
17939 CONFIG_HEADERS = $CONFIG_HEADERS
17940 CONFIG_LINKS = $CONFIG_LINKS
17941 CONFIG_COMMANDS = $CONFIG_COMMANDS
17945 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17949 # Files that config.status was made for.
17950 if test -n "$ac_config_files"; then
17951 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17954 if test -n "$ac_config_headers"; then
17955 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17958 if test -n "$ac_config_links"; then
17959 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17962 if test -n "$ac_config_commands"; then
17963 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17966 cat >>$CONFIG_STATUS <<\_ACEOF
17969 \`$as_me' instantiates files from templates according to the
17970 current configuration.
17972 Usage: $0 [OPTIONS] [FILE]...
17974 -h, --help print this help, then exit
17975 -V, --version print version number, then exit
17976 -q, --quiet do not print progress messages
17977 -d, --debug don't remove temporary files
17978 --recheck update $as_me by reconfiguring in the same conditions
17979 --file=FILE[:TEMPLATE]
17980 instantiate the configuration file FILE
17981 --header=FILE[:TEMPLATE]
17982 instantiate the configuration header FILE
17984 Configuration files:
17987 Configuration headers:
17990 Configuration commands:
17993 Report bugs to <bug-autoconf@gnu.org>."
17996 cat >>$CONFIG_STATUS <<_ACEOF
17999 configured by $0, generated by GNU Autoconf 2.57,
18000 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18002 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18003 Free Software Foundation, Inc.
18004 This config.status script is free software; the Free Software Foundation
18005 gives unlimited permission to copy, distribute and modify it."
18010 cat >>$CONFIG_STATUS <<\_ACEOF
18011 # If no file are specified by the user, then we need to provide default
18012 # value. By we need to know if files were specified by the user.
18018 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18019 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18027 *) # This is not an option, so the user has probably given explicit
18030 ac_need_defaults=false;;
18034 # Handling of the options.
18036 cat >>$CONFIG_STATUS <<\_ACEOF
18037 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18039 --version | --vers* | -V )
18040 echo "$ac_cs_version"; exit 0 ;;
18042 # Conflict between --help and --header
18043 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18044 Try \`$0 --help' for more information." >&5
18045 echo "$as_me: error: ambiguous option: $1
18046 Try \`$0 --help' for more information." >&2;}
18047 { (exit 1); exit 1; }; };;
18048 --help | --hel | -h )
18049 echo "$ac_cs_usage"; exit 0 ;;
18050 --debug | --d* | -d )
18052 --file | --fil | --fi | --f )
18054 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18055 ac_need_defaults=false;;
18056 --header | --heade | --head | --hea )
18058 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18059 ac_need_defaults=false;;
18060 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18061 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18064 # This is an error.
18065 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18066 Try \`$0 --help' for more information." >&5
18067 echo "$as_me: error: unrecognized option: $1
18068 Try \`$0 --help' for more information." >&2;}
18069 { (exit 1); exit 1; }; } ;;
18071 *) ac_config_targets="$ac_config_targets $1" ;;
18077 ac_configure_extra_args=
18079 if $ac_cs_silent; then
18081 ac_configure_extra_args="$ac_configure_extra_args --silent"
18085 cat >>$CONFIG_STATUS <<_ACEOF
18086 if \$ac_cs_recheck; then
18087 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18088 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18097 cat >>$CONFIG_STATUS <<\_ACEOF
18098 for ac_config_target in $ac_config_targets
18100 case "$ac_config_target" in
18101 # Handling of arguments.
18102 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18103 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18104 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18105 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18106 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18107 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18108 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18109 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18110 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18111 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18112 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18113 "scripts/console" ) CONFIG_FILES="$CONFIG_FILES scripts/console" ;;
18114 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18115 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18116 "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18117 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18118 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18119 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18120 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18121 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18122 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18123 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18124 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18125 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18126 "src/console/console.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/console.conf" ;;
18127 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18128 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18129 "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18130 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18131 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18132 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18133 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18134 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18135 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18136 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18137 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18138 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18139 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18140 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18141 "src/cats/alter_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/alter_mysql_tables" ;;
18142 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18143 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18144 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18145 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18146 "src/cats/alter_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/alter_sqlite_tables" ;;
18147 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18148 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18149 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18150 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18151 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18152 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18153 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18154 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18155 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18156 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18157 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18158 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18159 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18160 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18161 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18162 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18163 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18164 { (exit 1); exit 1; }; };;
18168 # If the user did not use the arguments to specify the items to instantiate,
18169 # then the envvar interface is used. Set only those that are not.
18170 # We use the long form for the default assignment because of an extremely
18171 # bizarre bug on SunOS 4.1.3.
18172 if $ac_need_defaults; then
18173 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18174 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18175 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18178 # Have a temporary directory for convenience. Make it in the build tree
18179 # simply because there is no reason to put it here, and in addition,
18180 # creating and moving files from /tmp can sometimes cause problems.
18181 # Create a temporary directory, and hook for its removal unless debugging.
18184 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18185 trap '{ (exit 1); exit 1; }' 1 2 13 15
18188 # Create a (secure) tmp directory for tmp files.
18191 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18192 test -n "$tmp" && test -d "$tmp"
18195 tmp=./confstat$$-$RANDOM
18196 (umask 077 && mkdir $tmp)
18199 echo "$me: cannot create a temporary directory in ." >&2
18200 { (exit 1); exit 1; }
18205 cat >>$CONFIG_STATUS <<_ACEOF
18208 # CONFIG_FILES section.
18211 # No need to generate the scripts if there are no CONFIG_FILES.
18212 # This happens for instance when ./config.status config.h
18213 if test -n "\$CONFIG_FILES"; then
18214 # Protect against being on the right side of a sed subst in config.status.
18215 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18216 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18217 s,@SHELL@,$SHELL,;t t
18218 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18219 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18220 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18221 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18222 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18223 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18224 s,@exec_prefix@,$exec_prefix,;t t
18225 s,@prefix@,$prefix,;t t
18226 s,@program_transform_name@,$program_transform_name,;t t
18227 s,@bindir@,$bindir,;t t
18228 s,@sbindir@,$sbindir,;t t
18229 s,@libexecdir@,$libexecdir,;t t
18230 s,@datadir@,$datadir,;t t
18231 s,@sysconfdir@,$sysconfdir,;t t
18232 s,@sharedstatedir@,$sharedstatedir,;t t
18233 s,@localstatedir@,$localstatedir,;t t
18234 s,@libdir@,$libdir,;t t
18235 s,@includedir@,$includedir,;t t
18236 s,@oldincludedir@,$oldincludedir,;t t
18237 s,@infodir@,$infodir,;t t
18238 s,@mandir@,$mandir,;t t
18239 s,@build_alias@,$build_alias,;t t
18240 s,@host_alias@,$host_alias,;t t
18241 s,@target_alias@,$target_alias,;t t
18242 s,@DEFS@,$DEFS,;t t
18243 s,@ECHO_C@,$ECHO_C,;t t
18244 s,@ECHO_N@,$ECHO_N,;t t
18245 s,@ECHO_T@,$ECHO_T,;t t
18246 s,@LIBS@,$LIBS,;t t
18247 s,@BUILD_DIR@,$BUILD_DIR,;t t
18248 s,@TRUEPRG@,$TRUEPRG,;t t
18249 s,@FALSEPRG@,$FALSEPRG,;t t
18250 s,@build@,$build,;t t
18251 s,@build_cpu@,$build_cpu,;t t
18252 s,@build_vendor@,$build_vendor,;t t
18253 s,@build_os@,$build_os,;t t
18254 s,@host@,$host,;t t
18255 s,@host_cpu@,$host_cpu,;t t
18256 s,@host_vendor@,$host_vendor,;t t
18257 s,@host_os@,$host_os,;t t
18258 s,@VERSION@,$VERSION,;t t
18259 s,@DATE@,$DATE,;t t
18260 s,@LSMDATE@,$LSMDATE,;t t
18262 s,@CFLAGS@,$CFLAGS,;t t
18263 s,@LDFLAGS@,$LDFLAGS,;t t
18264 s,@CPPFLAGS@,$CPPFLAGS,;t t
18265 s,@ac_ct_CC@,$ac_ct_CC,;t t
18266 s,@EXEEXT@,$EXEEXT,;t t
18267 s,@OBJEXT@,$OBJEXT,;t t
18269 s,@CXXFLAGS@,$CXXFLAGS,;t t
18270 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18272 s,@EGREP@,$EGREP,;t t
18273 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18274 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18275 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18276 s,@RANLIB@,$RANLIB,;t t
18277 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18283 s,@ECHO@,$ECHO,;t t
18287 s,@OPENSSL@,$OPENSSL,;t t
18289 s,@PKGCONFIG@,$PKGCONFIG,;t t
18290 s,@ARFLAGS@,$ARFLAGS,;t t
18291 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18292 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18293 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18294 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18295 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18296 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18297 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18298 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18299 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18300 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18301 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18302 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18303 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18304 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18305 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18306 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18307 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18308 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18309 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18310 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18311 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18312 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18313 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18314 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18315 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18316 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18317 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18318 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18319 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18320 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18321 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18322 s,@MSGFMT@,$MSGFMT,;t t
18323 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18324 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18325 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18326 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18327 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18328 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18329 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18330 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18331 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18332 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18333 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18334 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18335 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18336 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18337 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18338 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18339 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18340 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18341 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18342 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18343 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18344 s,@GNOME_DIR@,$GNOME_DIR,;t t
18345 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18346 s,@STATIC_FD@,$STATIC_FD,;t t
18347 s,@STATIC_SD@,$STATIC_SD,;t t
18348 s,@STATIC_DIR@,$STATIC_DIR,;t t
18349 s,@STATIC_CONS@,$STATIC_CONS,;t t
18350 s,@ALL_DIRS@,$ALL_DIRS,;t t
18351 s,@CONS_INC@,$CONS_INC,;t t
18352 s,@CONS_LIBS@,$CONS_LIBS,;t t
18353 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18354 s,@READLINE_SRC@,$READLINE_SRC,;t t
18355 s,@working_dir@,$working_dir,;t t
18356 s,@scriptdir@,$scriptdir,;t t
18357 s,@dump_email@,$dump_email,;t t
18358 s,@job_email@,$job_email,;t t
18359 s,@smtp_host@,$smtp_host,;t t
18360 s,@piddir@,$piddir,;t t
18361 s,@subsysdir@,$subsysdir,;t t
18362 s,@baseport@,$baseport,;t t
18363 s,@dir_port@,$dir_port,;t t
18364 s,@fd_port@,$fd_port,;t t
18365 s,@sd_port@,$sd_port,;t t
18366 s,@dir_password@,$dir_password,;t t
18367 s,@fd_password@,$fd_password,;t t
18368 s,@sd_password@,$sd_password,;t t
18369 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18370 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18371 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18372 s,@cats@,$cats,;t t
18373 s,@DB_NAME@,$DB_NAME,;t t
18374 s,@GETCONF@,$GETCONF,;t t
18375 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18376 s,@X_CFLAGS@,$X_CFLAGS,;t t
18377 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18378 s,@X_LIBS@,$X_LIBS,;t t
18379 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18380 s,@LIBOBJS@,$LIBOBJS,;t t
18381 s,@ALLOCA@,$ALLOCA,;t t
18382 s,@FDLIBS@,$FDLIBS,;t t
18383 s,@DEBUG@,$DEBUG,;t t
18384 s,@DINCLUDE@,$DINCLUDE,;t t
18385 s,@DLIB@,$DLIB,;t t
18386 s,@DB_LIBS@,$DB_LIBS,;t t
18387 s,@WCFLAGS@,$WCFLAGS,;t t
18388 s,@WLDFLAGS@,$WLDFLAGS,;t t
18389 s,@OBJLIST@,$OBJLIST,;t t
18390 s,@hostname@,$hostname,;t t
18391 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18392 s,@PSCMD@,$PSCMD,;t t
18393 s,@WIN32@,$WIN32,;t t
18394 s,@DISTNAME@,$DISTNAME,;t t
18395 s,@DISTVER@,$DISTVER,;t t
18396 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18397 /@MCOMMON@/r $MCOMMON
18403 cat >>$CONFIG_STATUS <<\_ACEOF
18404 # Split the substitutions into bite-sized pieces for seds with
18405 # small command number limits, like on Digital OSF/1 and HP-UX.
18406 ac_max_sed_lines=48
18407 ac_sed_frag=1 # Number of current file.
18408 ac_beg=1 # First line for current file.
18409 ac_end=$ac_max_sed_lines # Line after last line for current file.
18412 while $ac_more_lines; do
18413 if test $ac_beg -gt 1; then
18414 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18416 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18418 if test ! -s $tmp/subs.frag; then
18419 ac_more_lines=false
18421 # The purpose of the label and of the branching condition is to
18422 # speed up the sed processing (if there are no `@' at all, there
18423 # is no need to browse any of the substitutions).
18424 # These are the two extra sed commands mentioned above.
18426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18427 if test -z "$ac_sed_cmds"; then
18428 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18430 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18432 ac_sed_frag=`expr $ac_sed_frag + 1`
18434 ac_end=`expr $ac_end + $ac_max_sed_lines`
18437 if test -z "$ac_sed_cmds"; then
18440 fi # test -n "$CONFIG_FILES"
18443 cat >>$CONFIG_STATUS <<\_ACEOF
18444 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18445 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18447 - | *:- | *:-:* ) # input from stdin
18449 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18450 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18451 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18452 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18453 * ) ac_file_in=$ac_file.in ;;
18456 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18457 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18458 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18459 X"$ac_file" : 'X\(//\)[^/]' \| \
18460 X"$ac_file" : 'X\(//\)$' \| \
18461 X"$ac_file" : 'X\(/\)' \| \
18462 . : '\(.\)' 2>/dev/null ||
18464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18465 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18466 /^X\(\/\/\)$/{ s//\1/; q; }
18467 /^X\(\/\).*/{ s//\1/; q; }
18469 { if $as_mkdir_p; then
18474 while test ! -d "$as_dir"; do
18475 as_dirs="$as_dir $as_dirs"
18476 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18477 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18478 X"$as_dir" : 'X\(//\)[^/]' \| \
18479 X"$as_dir" : 'X\(//\)$' \| \
18480 X"$as_dir" : 'X\(/\)' \| \
18481 . : '\(.\)' 2>/dev/null ||
18483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18484 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18485 /^X\(\/\/\)$/{ s//\1/; q; }
18486 /^X\(\/\).*/{ s//\1/; q; }
18489 test ! -n "$as_dirs" || mkdir $as_dirs
18490 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18491 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18492 { (exit 1); exit 1; }; }; }
18496 if test "$ac_dir" != .; then
18497 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18498 # A "../" for each directory in $ac_dir_suffix.
18499 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18501 ac_dir_suffix= ac_top_builddir=
18505 .) # No --srcdir option. We are building in place.
18507 if test -z "$ac_top_builddir"; then
18510 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18512 [\\/]* | ?:[\\/]* ) # Absolute path.
18513 ac_srcdir=$srcdir$ac_dir_suffix;
18514 ac_top_srcdir=$srcdir ;;
18515 *) # Relative path.
18516 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18517 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18519 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18521 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18522 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18523 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18524 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18528 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18529 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18532 if test x"$ac_file" != x-; then
18533 { echo "$as_me:$LINENO: creating $ac_file" >&5
18534 echo "$as_me: creating $ac_file" >&6;}
18537 # Let's still pretend it is `configure' which instantiates (i.e., don't
18538 # use $as_me), people would be surprised to read:
18539 # /* config.h. Generated by config.status. */
18540 if test x"$ac_file" = x-; then
18543 configure_input="$ac_file. "
18545 configure_input=$configure_input"Generated from `echo $ac_file_in |
18546 sed 's,.*/,,'` by configure."
18548 # First look for the input files in the build tree, otherwise in the
18550 ac_file_inputs=`IFS=:
18551 for f in $ac_file_in; do
18553 -) echo $tmp/stdin ;;
18555 # Absolute (can't be DOS-style, as IFS=:)
18556 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18557 echo "$as_me: error: cannot find input file: $f" >&2;}
18558 { (exit 1); exit 1; }; }
18561 if test -f "$f"; then
18564 elif test -f "$srcdir/$f"; then
18569 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18570 echo "$as_me: error: cannot find input file: $f" >&2;}
18571 { (exit 1); exit 1; }; }
18574 done` || { (exit 1); exit 1; }
18576 cat >>$CONFIG_STATUS <<_ACEOF
18580 cat >>$CONFIG_STATUS <<\_ACEOF
18582 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18583 s,@configure_input@,$configure_input,;t t
18584 s,@srcdir@,$ac_srcdir,;t t
18585 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18586 s,@top_srcdir@,$ac_top_srcdir,;t t
18587 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18588 s,@builddir@,$ac_builddir,;t t
18589 s,@abs_builddir@,$ac_abs_builddir,;t t
18590 s,@top_builddir@,$ac_top_builddir,;t t
18591 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18592 s,@INSTALL@,$ac_INSTALL,;t t
18593 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18595 if test x"$ac_file" != x-; then
18596 mv $tmp/out $ac_file
18604 cat >>$CONFIG_STATUS <<\_ACEOF
18607 # CONFIG_HEADER section.
18610 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18611 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18613 # ac_d sets the value in "#define NAME VALUE" lines.
18614 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18615 ac_dB='[ ].*$,\1#\2'
18618 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18619 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18620 ac_uB='$,\1#\2define\3'
18624 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18625 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18627 - | *:- | *:-:* ) # input from stdin
18629 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18630 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18631 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18632 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18633 * ) ac_file_in=$ac_file.in ;;
18636 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18637 echo "$as_me: creating $ac_file" >&6;}
18639 # First look for the input files in the build tree, otherwise in the
18641 ac_file_inputs=`IFS=:
18642 for f in $ac_file_in; do
18644 -) echo $tmp/stdin ;;
18646 # Absolute (can't be DOS-style, as IFS=:)
18647 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18648 echo "$as_me: error: cannot find input file: $f" >&2;}
18649 { (exit 1); exit 1; }; }
18652 if test -f "$f"; then
18655 elif test -f "$srcdir/$f"; then
18660 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18661 echo "$as_me: error: cannot find input file: $f" >&2;}
18662 { (exit 1); exit 1; }; }
18665 done` || { (exit 1); exit 1; }
18666 # Remove the trailing spaces.
18667 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18671 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18672 # `conftest.undefs', that substitutes the proper values into
18673 # config.h.in to produce config.h. The first handles `#define'
18674 # templates, and the second `#undef' templates.
18675 # And first: Protect against being on the right side of a sed subst in
18676 # config.status. Protect against being in an unquoted here document
18677 # in config.status.
18678 rm -f conftest.defines conftest.undefs
18679 # Using a here document instead of a string reduces the quoting nightmare.
18680 # Putting comments in sed scripts is not portable.
18682 # `end' is used to avoid that the second main sed command (meant for
18683 # 0-ary CPP macros) applies to n-ary macro definitions.
18684 # See the Autoconf documentation for `clear'.
18685 cat >confdef2sed.sed <<\_ACEOF
18690 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18692 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18695 # If some macros were called several times there might be several times
18696 # the same #defines, which is useless. Nevertheless, we may not want to
18697 # sort them, since we want the *last* AC-DEFINE to be honored.
18698 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18699 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18700 rm -f confdef2sed.sed
18702 # This sed command replaces #undef with comments. This is necessary, for
18703 # example, in the case of _POSIX_SOURCE, which is predefined and required
18704 # on some systems where configure will not decide to define it.
18705 cat >>conftest.undefs <<\_ACEOF
18706 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18709 # Break up conftest.defines because some shells have a limit on the size
18710 # of here documents, and old seds have small limits too (100 cmds).
18711 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18712 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18713 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18714 echo ' :' >>$CONFIG_STATUS
18715 rm -f conftest.tail
18716 while grep . conftest.defines >/dev/null
18718 # Write a limited-size here document to $tmp/defines.sed.
18719 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18720 # Speed up: don't consider the non `#define' lines.
18721 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18722 # Work around the forget-to-reset-the-flag bug.
18723 echo 't clr' >>$CONFIG_STATUS
18724 echo ': clr' >>$CONFIG_STATUS
18725 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18727 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18729 mv $tmp/out $tmp/in
18731 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18732 rm -f conftest.defines
18733 mv conftest.tail conftest.defines
18735 rm -f conftest.defines
18736 echo ' fi # grep' >>$CONFIG_STATUS
18737 echo >>$CONFIG_STATUS
18739 # Break up conftest.undefs because some shells have a limit on the size
18740 # of here documents, and old seds have small limits too (100 cmds).
18741 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18742 rm -f conftest.tail
18743 while grep . conftest.undefs >/dev/null
18745 # Write a limited-size here document to $tmp/undefs.sed.
18746 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18747 # Speed up: don't consider the non `#undef'
18748 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18749 # Work around the forget-to-reset-the-flag bug.
18750 echo 't clr' >>$CONFIG_STATUS
18751 echo ': clr' >>$CONFIG_STATUS
18752 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18754 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18756 mv $tmp/out $tmp/in
18758 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18759 rm -f conftest.undefs
18760 mv conftest.tail conftest.undefs
18762 rm -f conftest.undefs
18764 cat >>$CONFIG_STATUS <<\_ACEOF
18765 # Let's still pretend it is `configure' which instantiates (i.e., don't
18766 # use $as_me), people would be surprised to read:
18767 # /* config.h. Generated by config.status. */
18768 if test x"$ac_file" = x-; then
18769 echo "/* Generated by configure. */" >$tmp/config.h
18771 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18773 cat $tmp/in >>$tmp/config.h
18775 if test x"$ac_file" != x-; then
18776 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18777 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18778 echo "$as_me: $ac_file is unchanged" >&6;}
18780 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18781 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18782 X"$ac_file" : 'X\(//\)[^/]' \| \
18783 X"$ac_file" : 'X\(//\)$' \| \
18784 X"$ac_file" : 'X\(/\)' \| \
18785 . : '\(.\)' 2>/dev/null ||
18787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18788 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18789 /^X\(\/\/\)$/{ s//\1/; q; }
18790 /^X\(\/\).*/{ s//\1/; q; }
18792 { if $as_mkdir_p; then
18797 while test ! -d "$as_dir"; do
18798 as_dirs="$as_dir $as_dirs"
18799 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18801 X"$as_dir" : 'X\(//\)[^/]' \| \
18802 X"$as_dir" : 'X\(//\)$' \| \
18803 X"$as_dir" : 'X\(/\)' \| \
18804 . : '\(.\)' 2>/dev/null ||
18806 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18807 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18808 /^X\(\/\/\)$/{ s//\1/; q; }
18809 /^X\(\/\).*/{ s//\1/; q; }
18812 test ! -n "$as_dirs" || mkdir $as_dirs
18813 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18814 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18815 { (exit 1); exit 1; }; }; }
18818 mv $tmp/config.h $ac_file
18822 rm -f $tmp/config.h
18826 cat >>$CONFIG_STATUS <<\_ACEOF
18829 # CONFIG_COMMANDS section.
18831 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18832 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18833 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18834 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18835 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18836 X"$ac_dest" : 'X\(//\)[^/]' \| \
18837 X"$ac_dest" : 'X\(//\)$' \| \
18838 X"$ac_dest" : 'X\(/\)' \| \
18839 . : '\(.\)' 2>/dev/null ||
18841 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18842 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18843 /^X\(\/\/\)$/{ s//\1/; q; }
18844 /^X\(\/\).*/{ s//\1/; q; }
18848 if test "$ac_dir" != .; then
18849 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18850 # A "../" for each directory in $ac_dir_suffix.
18851 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18853 ac_dir_suffix= ac_top_builddir=
18857 .) # No --srcdir option. We are building in place.
18859 if test -z "$ac_top_builddir"; then
18862 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18864 [\\/]* | ?:[\\/]* ) # Absolute path.
18865 ac_srcdir=$srcdir$ac_dir_suffix;
18866 ac_top_srcdir=$srcdir ;;
18867 *) # Relative path.
18868 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18869 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18871 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18873 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18874 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18875 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18876 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18879 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18880 echo "$as_me: executing $ac_dest commands" >&6;}
18882 default ) (echo "Doing make of dependencies"; make depend;)
18888 cat >>$CONFIG_STATUS <<\_ACEOF
18890 { (exit 0); exit 0; }
18892 chmod +x $CONFIG_STATUS
18893 ac_clean_files=$ac_clean_files_save
18896 # configure is writing to config.log, and then calls config.status.
18897 # config.status does its own redirection, appending to config.log.
18898 # Unfortunately, on DOS this fails, as config.log is still kept open
18899 # by configure, so config.status won't be able to write to it; its
18900 # output is simply discarded. So we exec the FD to /dev/null,
18901 # effectively closing config.log, so it can be properly (re)opened and
18902 # appended to by config.status. When coming back to configure, we
18903 # need to make the FD available again.
18904 if test "$no_create" != yes; then
18906 ac_config_status_args=
18907 test "$silent" = yes &&
18908 ac_config_status_args="$ac_config_status_args --quiet"
18910 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18912 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18913 # would make configure fail if this is the last instruction.
18914 $ac_cs_success || { (exit 1); exit 1; }
18919 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
18920 chmod 755 console gconsole mtx-changer
18922 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
18923 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
18924 chmod 755 src/cats/create_mysql_database
18925 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
18926 chmod 755 src/cats/alter_mysql_tables
18927 chmod 755 src/cats/grant_mysql_privileges
18928 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
18929 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
18930 chmod 755 src/cats/create_sqlite_database
18931 chmod 755 src/cats/alter_sqlite_tables
18932 chmod 755 src/cats/sqlite
18933 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
18934 chmod 755 src/cats/create_bdb_database
18936 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
18937 largefile_support="yes"
18941 # A whole lot of hand springs to get the compiler version.
18942 # This is because gcc changed the output in version 3.0
18944 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18945 if test "x${CCVERSION}" = "x" ; then
18946 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18948 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18949 if test x"${CXXVERSION}" = x ; then
18950 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18953 if test "x${subsysdir}" = "x${sbindir}" ; then
18956 echo "You have set --sbindir and --with-subsys-dir"
18957 echo " both equal to: ${subsysdir} "
18958 echo " This is not permitted. Please reconfigure."
18959 echo "Aborting configuration ..."
18966 Configuration on `date`:
18968 Host: $host -- ${DISTNAME} ${DISTVER}
18969 Bacula version: ${VERSION} (${DATE})
18970 Source code location: ${srcdir}
18971 Install binaries: ${sbindir}
18972 Install config files: ${sysconfdir}
18973 Scripts directory: ${scriptdir}
18974 Working directory: ${working_dir}
18975 PID directory: ${piddir}
18976 Subsys directory: ${subsysdir}
18977 C Compiler: ${CC} ${CCVERSION}
18978 C++ Compiler: ${CXX} ${CXXVERSION}
18979 Compiler flags: ${WCFLAGS} ${CFLAGS}
18980 Linker flags: ${WLDFLAGS} ${LDFLAGS}
18982 Statically Linked Tools: ${support_static_tools}
18983 Statically Linked FD: ${support_static_fd}
18984 Statically Linked SD: ${support_static_sd}
18985 Statically Linked DIR: ${support_static_dir}
18986 Statically Linked CONS: ${support_static_cons}
18987 Database type: ${db_name}
18988 Database lib: ${DB_LIBS}
18990 Job Output Email: ${job_email}
18991 Traceback Email: ${dump_email}
18992 SMTP Host Address: ${smtp_host}
18993 Director Port ${dir_port}
18994 File daemon Port ${fd_port}
18995 Storage daemon Port ${sd_port}
18996 SQL binaries Directory ${SQL_BINDIR}
18998 Large file support: $largefile_support
18999 readline support: ${got_readline} ${PRTREADLINE_SRC}
19000 TCP Wrappers support: ${TCPW_MSG}
19001 ZLIB support: ${have_zlib}
19002 enable-smartalloc: ${support_smartalloc}
19003 enable-gnome: ${support_gnome}
19004 client-only: ${build_client_only}
19011 # cweb support: ${got_cweb} ${CWEB_SRC}
19012 # gmp support: ${got_gmp} ${GMP_SRC}