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 "$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
6050 for ac_header in varargs.h
6052 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6053 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6054 echo "$as_me:$LINENO: checking for $ac_header" >&5
6055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6062 # Is the header compilable?
6063 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6064 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6065 cat >conftest.$ac_ext <<_ACEOF
6066 #line $LINENO "configure"
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6072 $ac_includes_default
6073 #include <$ac_header>
6075 rm -f conftest.$ac_objext
6076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6077 (eval $ac_compile) 2>&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } &&
6081 { ac_try='test -s conftest.$ac_objext'
6082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); }; }; then
6087 ac_header_compiler=yes
6089 echo "$as_me: failed program was:" >&5
6090 sed 's/^/| /' conftest.$ac_ext >&5
6092 ac_header_compiler=no
6094 rm -f conftest.$ac_objext conftest.$ac_ext
6095 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6096 echo "${ECHO_T}$ac_header_compiler" >&6
6098 # Is the header present?
6099 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6101 cat >conftest.$ac_ext <<_ACEOF
6102 #line $LINENO "configure"
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 #include <$ac_header>
6110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6113 grep -v '^ *+' conftest.er1 >conftest.err
6115 cat conftest.err >&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } >/dev/null; then
6118 if test -s conftest.err; then
6119 ac_cpp_err=$ac_c_preproc_warn_flag
6126 if test -z "$ac_cpp_err"; then
6127 ac_header_preproc=yes
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6132 ac_header_preproc=no
6134 rm -f conftest.err conftest.$ac_ext
6135 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6136 echo "${ECHO_T}$ac_header_preproc" >&6
6138 # So? What about this header?
6139 case $ac_header_compiler:$ac_header_preproc in
6141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6147 ## ------------------------------------ ##
6148 ## Report this to bug-autoconf@gnu.org. ##
6149 ## ------------------------------------ ##
6152 sed "s/^/$as_me: WARNING: /" >&2
6155 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6156 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6157 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6158 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6159 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6160 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6163 ## ------------------------------------ ##
6164 ## Report this to bug-autoconf@gnu.org. ##
6165 ## ------------------------------------ ##
6168 sed "s/^/$as_me: WARNING: /" >&2
6171 echo "$as_me:$LINENO: checking for $ac_header" >&5
6172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6176 eval "$as_ac_Header=$ac_header_preproc"
6178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6183 cat >>confdefs.h <<_ACEOF
6184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6192 # End of readline stuff
6193 # -----------------------------------------------------------------------
6196 # ---------------------------------------------------
6197 # Check for GMP support/directory
6198 # ---------------------------------------------------
6202 # [ --with-gmp[=DIR] Specify gmp library directory],
6204 # case "$with_gmp" in
6207 # if test "$with_gmp" != "yes"; then
6208 # GMP_INC="-I$with_gmp"
6210 # GMP_LDFLAGS="-L$with_gmp"
6212 # with_gmp="/usr/include"
6214 # AC_CHECK_HEADER($with_gmp/gmp.h,
6215 # [ AC_MSG_RESULT(yes)
6216 # AC_DEFINE(HAVE_GMP)
6220 # [ AC_MSG_ERROR([*** gmp library missing])
6226 # # check for standard gmp library
6227 # AC_CHECK_HEADER(/usr/include/gmp.h,
6228 # [ AC_MSG_RESULT(yes)
6229 # AC_DEFINE(HAVE_GMP)
6234 # # Did not find standard library, so use our own
6235 # AC_MSG_RESULT(yes)
6236 # AC_DEFINE(HAVE_GMP)
6239 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6241 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6242 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6248 #AC_SUBST(GMP_LDFLAGS)
6252 # -----------------------------------------------------------------------
6255 # ---------------------------------------------------
6256 # Check for CWEB support/directory
6257 # ---------------------------------------------------
6262 # [ --with-cweb[=DIR] Specify cweb library directory],
6264 # case "$with_cweb" in
6267 # if test "$with_cweb" != "yes"; then
6268 # CWEB_INC="-I$with_cweb"
6269 # CWEB_LIBS="-lcweb"
6270 # CWEB_LDFLAGS="-L$with_cweb"
6272 # with_cweb="/usr/include"
6274 # AC_CHECK_HEADER($with_cweb/cweb.h,
6275 # [ AC_MSG_RESULT(yes)
6276 # AC_DEFINE(HAVE_CWEB)
6277 # CWEB_LIBS="-lcweb"
6280 # [ AC_MSG_ERROR([*** cweb library missing])
6286 # # check for standard cweb library
6287 # AC_CHECK_HEADER(/usr/include/cweb.h,
6288 # [ AC_MSG_RESULT(yes)
6289 # AC_DEFINE(HAVE_CWEB)
6292 # CWEB_LIBS="-lcweb"
6294 # # Did not find starndard library, so use our own
6295 # AC_MSG_RESULT(yes)
6296 # AC_DEFINE(HAVE_CWEB)
6299 # CWEB=${TOP_DIR}/depkgs/cweb
6300 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6301 # CWEB_LIBS="-lcweb"
6302 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6303 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6309 #AC_SUBST(CWEB_LIBS)
6310 #AC_SUBST(CWEB_LDFLAGS)
6314 # -----------------------------------------------------------------------
6318 # -----------------------------------------------------------
6319 # Check whether user wants TCP wrappers support (default off)
6320 # -----------------------------------------------------------
6323 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6324 if test "${with_tcp_wrappers+set}" = set; then
6325 withval="$with_tcp_wrappers"
6327 if test "x$withval" != "xno" ; then
6329 LIBS="$saved_LIBS -lwrap"
6330 echo "$as_me:$LINENO: checking for libwrap" >&5
6331 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6332 cat >conftest.$ac_ext <<_ACEOF
6333 #line $LINENO "configure"
6336 cat confdefs.h >>conftest.$ac_ext
6337 cat >>conftest.$ac_ext <<_ACEOF
6338 /* end confdefs.h. */
6340 int deny_severity = 0;
6341 int allow_severity = 0;
6342 struct request_info *req;
6351 rm -f conftest.$ac_objext conftest$ac_exeext
6352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6353 (eval $ac_link) 2>&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } &&
6357 { ac_try='test -s conftest$ac_exeext'
6358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); }; }; then
6364 echo "$as_me:$LINENO: result: yes" >&5
6365 echo "${ECHO_T}yes" >&6
6366 cat >>confdefs.h <<\_ACEOF
6367 #define HAVE_LIBWRAP 1
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6377 LIBS="$saved_LIBS -lwrap -lnsl"
6378 cat >conftest.$ac_ext <<_ACEOF
6379 #line $LINENO "configure"
6382 cat confdefs.h >>conftest.$ac_ext
6383 cat >>conftest.$ac_ext <<_ACEOF
6384 /* end confdefs.h. */
6386 int deny_severity = 0;
6387 int allow_severity = 0;
6388 struct request_info *req;
6397 rm -f conftest.$ac_objext conftest$ac_exeext
6398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6399 (eval $ac_link) 2>&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); } &&
6403 { ac_try='test -s conftest$ac_exeext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6410 echo "$as_me:$LINENO: result: yes" >&5
6411 echo "${ECHO_T}yes" >&6
6412 cat >>confdefs.h <<\_ACEOF
6413 #define HAVE_LIBWRAP 1
6419 echo "$as_me: failed program was:" >&5
6420 sed 's/^/| /' conftest.$ac_ext >&5
6422 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6423 echo "$as_me: error: *** libwrap missing" >&2;}
6424 { (exit 1); exit 1; }; }
6427 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6430 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6436 # ------------------------------------------
6437 # Where to place working dir
6438 # ------------------------------------------
6439 working_dir=`eval echo ${sysconfdir}/working`
6441 # Check whether --with-working-dir or --without-working-dir was given.
6442 if test "${with_working_dir+set}" = set; then
6443 withval="$with_working_dir"
6445 if test "x$withval" != "xno" ; then
6446 working_dir=$withval
6455 # ------------------------------------------
6456 # Where to place scriptdir (script files)
6457 # ------------------------------------------
6458 scriptdir=`eval echo ${sysconfdir}`
6460 # Check whether --with-scriptdir or --without-scriptdir was given.
6461 if test "${with_scriptdir+set}" = set; then
6462 withval="$with_scriptdir"
6464 if test "x$withval" != "xno" ; then
6474 # ------------------------------------------
6475 # Where to send dump email
6476 # ------------------------------------------
6477 dump_email=root@localhost
6479 # Check whether --with-dump-email or --without-dump-email was given.
6480 if test "${with_dump_email+set}" = set; then
6481 withval="$with_dump_email"
6483 if test "x$withval" != "xno" ; then
6492 # ------------------------------------------
6493 # Where to send job email
6494 # ------------------------------------------
6495 job_email=root@localhost
6497 # Check whether --with-job-email or --without-job-email was given.
6498 if test "${with_job_email+set}" = set; then
6499 withval="$with_job_email"
6501 if test "x$withval" != "xno" ; then
6510 # ------------------------------------------
6511 # Where to find smtp host
6512 # ------------------------------------------
6515 # Check whether --with-smtp_host or --without-smtp_host was given.
6516 if test "${with_smtp_host+set}" = set; then
6517 withval="$with_smtp_host"
6519 if test "x$withval" != "xno" ; then
6529 # ------------------------------------
6530 # Where to place pid files
6531 # ------------------------------------
6534 # Check whether --with-pid-dir or --without-pid-dir was given.
6535 if test "${with_pid_dir+set}" = set; then
6536 withval="$with_pid_dir"
6538 if test "x$withval" != "xno" ; then
6545 cat >>confdefs.h <<_ACEOF
6546 #define _PATH_BACULA_PIDDIR "$piddir"
6552 # ------------------------------------
6553 # Where to place subsys "lock file"
6554 # ------------------------------------
6555 subsysdir=/var/run/subsys
6557 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6558 if test "${with_subsys_dir+set}" = set; then
6559 withval="$with_subsys_dir"
6561 if test "x$withval" != "xno" ; then
6572 # ------------------------------------
6573 # Where to start assigning ports
6574 # ------------------------------------
6577 # Check whether --with-baseport or --without-baseport was given.
6578 if test "${with_baseport+set}" = set; then
6579 withval="$with_baseport"
6581 if test "x$withval" != "xno" ; then
6589 dir_port=`expr $baseport`
6590 fd_port=`expr $baseport + 1`
6591 sd_port=`expr $fd_port + 1`
6598 # ------------------------------------------
6599 # Generate passwords
6600 # ------------------------------------------
6603 # Check whether --with-dir-password or --without-dir-password was given.
6604 if test "${with_dir_password+set}" = set; then
6605 withval="$with_dir_password"
6607 if test "x$withval" != "xno" ; then
6608 dir_password=$withval
6614 if test "x$dir_password" = "x" ; then
6615 if test "x$OPENSSL" = "xnone" ; then
6616 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6617 key=`autoconf/randpass 33`
6619 key=`openssl rand -base64 33`
6626 # Check whether --with-fd-password or --without-fd-password was given.
6627 if test "${with_fd_password+set}" = set; then
6628 withval="$with_fd_password"
6630 if test "x$withval" != "xno" ; then
6631 fd_password=$withval
6637 if test "x$fd_password" = "x" ; then
6638 if test "x$OPENSSL" = "xnone" ; then
6639 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6640 key=`autoconf/randpass 37`
6642 key=`openssl rand -base64 33`
6649 # Check whether --with-sd-password or --without-sd-password was given.
6650 if test "${with_sd_password+set}" = set; then
6651 withval="$with_sd_password"
6653 if test "x$withval" != "xno" ; then
6654 sd_password=$withval
6660 if test "x$sd_password" = "x" ; then
6661 if test "x$OPENSSL" = "xnone" ; then
6662 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6663 key=`autoconf/randpass 41`
6665 key=`openssl rand -base64 33`
6678 # ------------------------------------------------
6679 # Bacula check for various SQL database engines
6680 # ------------------------------------------------
6683 echo "$as_me:$LINENO: checking for MySQL support" >&5
6684 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
6686 # Check whether --with-mysql or --without-mysql was given.
6687 if test "${with_mysql+set}" = set; then
6688 withval="$with_mysql"
6690 if test "$withval" != "no"; then
6691 if test "$withval" = "yes"; then
6692 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6693 MYSQL_INCDIR=/usr/local/mysql/include/mysql
6694 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6695 MYSQL_BINDIR=/usr/local/mysql/bin
6696 elif test -f /usr/include/mysql/mysql.h; then
6697 MYSQL_INCDIR=/usr/include/mysql
6698 MYSQL_LIBDIR=/usr/lib/mysql
6699 MYSQL_BINDIR=/usr/bin
6700 elif test -f /usr/include/mysql.h; then
6701 MYSQL_INCDIR=/usr/include
6702 MYSQL_LIBDIR=/usr/lib
6703 MYSQL_BINDIR=/usr/bin
6704 elif test -f /usr/local/include/mysql/mysql.h; then
6705 MYSQL_INCDIR=/usr/local/include/mysql
6706 MYSQL_LIBDIR=/usr/local/lib/mysql
6707 MYSQL_BINDIR=/usr/local/bin
6708 elif test -f /usr/local/include/mysql.h; then
6709 MYSQL_INCDIR=/usr/local/include
6710 MYSQL_LIBDIR=/usr/local/lib
6711 MYSQL_BINDIR=/usr/local/bin
6713 echo "$as_me:$LINENO: result: no" >&5
6714 echo "${ECHO_T}no" >&6
6715 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6716 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6717 { (exit 1); exit 1; }; }
6720 if test -f $withval/include/mysql/mysql.h; then
6721 MYSQL_INCDIR=$withval/include/mysql
6722 MYSQL_LIBDIR=$withval/lib/mysql
6723 MYSQL_BINDIR=$withval/bin
6724 elif test -f $withval/include/mysql.h; then
6725 MYSQL_INCDIR=$withval/include
6726 MYSQL_LIBDIR=$withval/lib
6727 MYSQL_BINDIR=$withval/bin
6729 echo "$as_me:$LINENO: result: no" >&5
6730 echo "${ECHO_T}no" >&6
6731 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6732 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6733 { (exit 1); exit 1; }; }
6736 SQL_INCLUDE=-I$MYSQL_INCDIR
6737 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
6738 SQL_BINDIR=$MYSQL_BINDIR
6740 cat >>confdefs.h <<\_ACEOF
6741 #define HAVE_MYSQL 1
6744 echo "$as_me:$LINENO: result: yes" >&5
6745 echo "${ECHO_T}yes" >&6
6752 echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6
6758 echo "$as_me:$LINENO: result: no" >&5
6759 echo "${ECHO_T}no" >&6
6764 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
6765 if test "${with_embedded_mysql+set}" = set; then
6766 withval="$with_embedded_mysql"
6768 if test "$withval" != "no"; then
6769 if test "$withval" = "yes"; then
6770 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6771 MYSQL_INCDIR=/usr/local/mysql/include/mysql
6772 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6773 MYSQL_BINDIR=/usr/local/mysql/bin
6774 elif test -f /usr/include/mysql/mysql.h; then
6775 MYSQL_INCDIR=/usr/include/mysql
6776 MYSQL_LIBDIR=/usr/lib/mysql
6777 MYSQL_BINDIR=/usr/bin
6778 elif test -f /usr/include/mysql.h; then
6779 MYSQL_INCDIR=/usr/include
6780 MYSQL_LIBDIR=/usr/lib
6781 MYSQL_BINDIR=/usr/bin
6782 elif test -f /usr/local/include/mysql/mysql.h; then
6783 MYSQL_INCDIR=/usr/local/include/mysql
6784 MYSQL_LIBDIR=/usr/local/lib/mysql
6785 MYSQL_BINDIR=/usr/local/bin
6786 elif test -f /usr/local/include/mysql.h; then
6787 MYSQL_INCDIR=/usr/local/include
6788 MYSQL_LIBDIR=/usr/local/lib
6789 MYSQL_BINDIR=/usr/local/bin
6791 echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6
6793 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6794 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6795 { (exit 1); exit 1; }; }
6798 if test -f $withval/include/mysql/mysql.h; then
6799 MYSQL_INCDIR=$withval/include/mysql
6800 MYSQL_LIBDIR=$withval/lib/mysql
6801 MYSQL_BINDIR=$withval/bin
6802 elif test -f $withval/include/mysql.h; then
6803 MYSQL_INCDIR=$withval/include
6804 MYSQL_LIBDIR=$withval/lib
6805 MYSQL_BINDIR=$withval/bin
6807 echo "$as_me:$LINENO: result: no" >&5
6808 echo "${ECHO_T}no" >&6
6809 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6810 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6811 { (exit 1); exit 1; }; }
6814 SQL_INCLUDE=-I$MYSQL_INCDIR
6815 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
6816 SQL_BINDIR=$MYSQL_BINDIR
6818 cat >>confdefs.h <<\_ACEOF
6819 #define HAVE_MYSQL 1
6822 cat >>confdefs.h <<\_ACEOF
6823 #define HAVE_EMBEDDED_MYSQL 1
6826 echo "$as_me:$LINENO: result: yes" >&5
6827 echo "${ECHO_T}yes" >&6
6834 echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6
6840 echo "$as_me:$LINENO: result: no" >&5
6841 echo "${ECHO_T}no" >&6
6853 # ------------------------------------------------
6854 # Bacula check for various SQL database engines
6855 # ------------------------------------------------
6858 echo "$as_me:$LINENO: checking for SQLite support" >&5
6859 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
6861 # Check whether --with-sqlite or --without-sqlite was given.
6862 if test "${with_sqlite+set}" = set; then
6863 withval="$with_sqlite"
6865 if test "$withval" != "no"; then
6866 if test "$withval" = "yes"; then
6867 if test -f /usr/local/include/sqlite.h; then
6868 SQLITE_INCDIR=/usr/local/include
6869 SQLITE_LIBDIR=/usr/local/lib
6870 SQLITE_BINDIR=/usr/local/bin
6871 elif test -f /usr/include/sqlite.h; then
6872 SQLITE_INCDIR=/usr/include
6873 SQLITE_LIBDIR=/usr/lib
6874 SQLITE_BINDIR=/usr/bin
6876 echo "$as_me:$LINENO: result: no" >&5
6877 echo "${ECHO_T}no" >&6
6878 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
6879 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
6880 { (exit 1); exit 1; }; }
6883 if test -f $withval/sqlite.h; then
6884 SQLITE_INCDIR=$withval
6885 SQLITE_LIBDIR=$withval
6886 SQLITE_BINDIR=$withval
6888 echo "$as_me:$LINENO: result: no" >&5
6889 echo "${ECHO_T}no" >&6
6890 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
6891 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
6892 { (exit 1); exit 1; }; }
6895 SQL_INCLUDE=-I$SQLITE_INCDIR
6896 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
6897 SQL_BINDIR=$SQLITE_BINDIR
6899 cat >>confdefs.h <<\_ACEOF
6900 #define HAVE_SQLITE 1
6903 echo "$as_me:$LINENO: result: yes" >&5
6904 echo "${ECHO_T}yes" >&6
6911 echo "$as_me:$LINENO: result: no" >&5
6912 echo "${ECHO_T}no" >&6
6917 echo "$as_me:$LINENO: result: no" >&5
6918 echo "${ECHO_T}no" >&6
6930 cat >>confdefs.h <<\_ACEOF
6931 #define PROTOTYPES 1
6935 if test -z "$CFLAGS"; then
6936 if test -z "$CCOPTS"; then
6945 largefile_support="no"
6947 # Check whether --enable-largefile or --disable-largefile was given.
6948 if test "${enable_largefile+set}" = set; then
6949 enableval="$enable_largefile"
6952 if test "$enable_largefile" != no; then
6953 if test -n "$ac_tool_prefix"; then
6954 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
6955 set dummy ${ac_tool_prefix}getconf; ac_word=$2
6956 echo "$as_me:$LINENO: checking for $ac_word" >&5
6957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6958 if test "${ac_cv_prog_GETCONF+set}" = set; then
6959 echo $ECHO_N "(cached) $ECHO_C" >&6
6961 if test -n "$GETCONF"; then
6962 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 test -z "$as_dir" && as_dir=.
6969 for ac_exec_ext in '' $ac_executable_extensions; do
6970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6971 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
6972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 GETCONF=$ac_cv_prog_GETCONF
6981 if test -n "$GETCONF"; then
6982 echo "$as_me:$LINENO: result: $GETCONF" >&5
6983 echo "${ECHO_T}$GETCONF" >&6
6985 echo "$as_me:$LINENO: result: no" >&5
6986 echo "${ECHO_T}no" >&6
6990 if test -z "$ac_cv_prog_GETCONF"; then
6991 ac_ct_GETCONF=$GETCONF
6992 # Extract the first word of "getconf", so it can be a program name with args.
6993 set dummy getconf; ac_word=$2
6994 echo "$as_me:$LINENO: checking for $ac_word" >&5
6995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6996 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
6999 if test -n "$ac_ct_GETCONF"; then
7000 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7006 test -z "$as_dir" && as_dir=.
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7009 ac_cv_prog_ac_ct_GETCONF="getconf"
7010 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7018 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7019 if test -n "$ac_ct_GETCONF"; then
7020 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7021 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7023 echo "$as_me:$LINENO: result: no" >&5
7024 echo "${ECHO_T}no" >&6
7027 GETCONF=$ac_ct_GETCONF
7029 GETCONF="$ac_cv_prog_GETCONF"
7032 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7033 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7034 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7038 ac_cv_sys_largefile_CFLAGS=no
7040 # IRIX 6.2 and later require cc -n32.
7041 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7042 if test "$GCC" != yes; then
7043 ac_cv_sys_largefile_CFLAGS=-n32
7046 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7047 cat >conftest.$ac_ext <<_ACEOF
7048 #line $LINENO "configure"
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7063 rm -f conftest.$ac_objext conftest$ac_exeext
7064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7065 (eval $ac_link) 2>&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } &&
7069 { ac_try='test -s conftest$ac_exeext'
7070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074 (exit $ac_status); }; }; then
7077 echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7080 ac_cv_sys_largefile_CFLAGS=no
7082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7087 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7088 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7089 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7090 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7091 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7095 ac_cv_sys_largefile_LDFLAGS=no
7099 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7100 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7101 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7102 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7103 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7104 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7107 ac_cv_sys_largefile_LIBS=no
7111 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7112 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7114 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7117 -D_FILE_OFFSET_BITS=*) ;;
7118 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7119 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7125 '') CPPFLAGS="$ac_flag" ;;
7126 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7134 '') CFLAGS="$ac_flag" ;;
7135 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7140 case "$ac_cv_sys_largefile_LDFLAGS" in
7144 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7145 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7148 case "$ac_cv_sys_largefile_LIBS" in
7152 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7153 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7156 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7157 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7158 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7159 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 ac_cv_sys_file_offset_bits=no
7163 # HP-UX 10.20 and later
7164 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7165 ac_cv_sys_file_offset_bits=64 ;;
7167 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7169 -D_FILE_OFFSET_BITS)
7170 ac_cv_sys_file_offset_bits=1 ;;
7171 -D_FILE_OFFSET_BITS=*)
7172 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7177 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7178 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7179 if test "$ac_cv_sys_file_offset_bits" != no; then
7181 cat >>confdefs.h <<_ACEOF
7182 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7186 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7187 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7188 if test "${ac_cv_sys_largefile_source+set}" = set; then
7189 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 ac_cv_sys_largefile_source=no
7193 # HP-UX 10.20 and later
7194 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7195 ac_cv_sys_largefile_source=1 ;;
7197 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7199 -D_LARGEFILE_SOURCE)
7200 ac_cv_sys_largefile_source=1 ;;
7201 -D_LARGEFILE_SOURCE=*)
7202 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7207 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7208 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7209 if test "$ac_cv_sys_largefile_source" != no; then
7211 cat >>confdefs.h <<_ACEOF
7212 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7216 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7217 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7218 if test "${ac_cv_sys_large_files+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 ac_cv_sys_large_files=no
7224 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7225 ac_cv_sys_large_files=1 ;;
7227 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7230 ac_cv_sys_large_files=1 ;;
7232 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7237 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7238 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7239 if test "$ac_cv_sys_large_files" != no; then
7241 cat >>confdefs.h <<_ACEOF
7242 #define _LARGE_FILES $ac_cv_sys_large_files
7250 echo "$as_me:$LINENO: checking for X" >&5
7251 echo $ECHO_N "checking for X... $ECHO_C" >&6
7254 # Check whether --with-x or --without-x was given.
7255 if test "${with_x+set}" = set; then
7259 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7260 if test "x$with_x" = xno; then
7261 # The user explicitly disabled X.
7264 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7265 # Both variables are already set.
7268 if test "${ac_cv_have_x+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 # One or both of the vars are not set, and there is no cached value.
7272 ac_x_includes=no ac_x_libraries=no
7274 if mkdir conftest.dir; then
7276 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7277 cat >Imakefile <<'_ACEOF'
7279 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7281 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7282 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7283 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7284 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7285 for ac_extension in a so sl; do
7286 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7287 test -f $ac_im_libdir/libX11.$ac_extension; then
7288 ac_im_usrlibdir=$ac_im_libdir; break
7291 # Screen out bogus values from the imake configuration. They are
7292 # bogus both because they are the default anyway, and because
7293 # using them would break gcc on systems where it needs fixed includes.
7294 case $ac_im_incroot in
7296 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7298 case $ac_im_usrlibdir in
7300 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7307 # Standard set of common directories for X headers.
7308 # Check X11 before X11Rn because it is often a symlink to the current release.
7320 /usr/local/X11/include
7321 /usr/local/X11R6/include
7322 /usr/local/X11R5/include
7323 /usr/local/X11R4/include
7325 /usr/local/include/X11
7326 /usr/local/include/X11R6
7327 /usr/local/include/X11R5
7328 /usr/local/include/X11R4
7332 /usr/XFree86/include/X11
7336 /usr/unsupported/include
7338 /usr/local/x11r5/include
7339 /usr/lpp/Xamples/include
7341 /usr/openwin/include
7342 /usr/openwin/share/include'
7344 if test "$ac_x_includes" = no; then
7345 # Guess where to find include files, by looking for Intrinsic.h.
7346 # First, try using that file with no special directory specified.
7347 cat >conftest.$ac_ext <<_ACEOF
7348 #line $LINENO "configure"
7351 cat confdefs.h >>conftest.$ac_ext
7352 cat >>conftest.$ac_ext <<_ACEOF
7353 /* end confdefs.h. */
7354 #include <X11/Intrinsic.h>
7356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7359 grep -v '^ *+' conftest.er1 >conftest.err
7361 cat conftest.err >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } >/dev/null; then
7364 if test -s conftest.err; then
7365 ac_cpp_err=$ac_c_preproc_warn_flag
7372 if test -z "$ac_cpp_err"; then
7373 # We can compile using X headers with no special include directory.
7376 echo "$as_me: failed program was:" >&5
7377 sed 's/^/| /' conftest.$ac_ext >&5
7379 for ac_dir in $ac_x_header_dirs; do
7380 if test -r "$ac_dir/X11/Intrinsic.h"; then
7381 ac_x_includes=$ac_dir
7386 rm -f conftest.err conftest.$ac_ext
7387 fi # $ac_x_includes = no
7389 if test "$ac_x_libraries" = no; then
7390 # Check for the libraries.
7391 # See if we find them without any special options.
7392 # Don't add to $LIBS permanently.
7395 cat >conftest.$ac_ext <<_ACEOF
7396 #line $LINENO "configure"
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h. */
7402 #include <X11/Intrinsic.h>
7411 rm -f conftest.$ac_objext conftest$ac_exeext
7412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7413 (eval $ac_link) 2>&5
7415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416 (exit $ac_status); } &&
7417 { ac_try='test -s conftest$ac_exeext'
7418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); }; }; then
7424 # We can link X programs with no special library path.
7427 echo "$as_me: failed program was:" >&5
7428 sed 's/^/| /' conftest.$ac_ext >&5
7431 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7433 # Don't even attempt the hair of trying to link an X program!
7434 for ac_extension in a so sl; do
7435 if test -r $ac_dir/libXt.$ac_extension; then
7436 ac_x_libraries=$ac_dir
7442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7443 fi # $ac_x_libraries = no
7445 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7446 # Didn't find X anywhere. Cache the known absence of X.
7447 ac_cv_have_x="have_x=no"
7449 # Record where we found X for the cache.
7450 ac_cv_have_x="have_x=yes \
7451 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7456 eval "$ac_cv_have_x"
7459 if test "$have_x" != yes; then
7460 echo "$as_me:$LINENO: result: $have_x" >&5
7461 echo "${ECHO_T}$have_x" >&6
7464 # If each of the values was on the command line, it overrides each guess.
7465 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7466 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7467 # Update the cache value to reflect the command line values.
7468 ac_cv_have_x="have_x=yes \
7469 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7470 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7471 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7474 if test "$no_x" = yes; then
7475 # Not all programs may use this symbol, but it does not hurt to define it.
7477 cat >>confdefs.h <<\_ACEOF
7478 #define X_DISPLAY_MISSING 1
7481 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7483 if test -n "$x_includes"; then
7484 X_CFLAGS="$X_CFLAGS -I$x_includes"
7487 # It would also be nice to do this for all -L options, not just this one.
7488 if test -n "$x_libraries"; then
7489 X_LIBS="$X_LIBS -L$x_libraries"
7490 # For Solaris; some versions of Sun CC require a space after -R and
7491 # others require no space. Words are not sufficient . . . .
7492 case `(uname -sr) 2>/dev/null` in
7494 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7495 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7496 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7497 cat >conftest.$ac_ext <<_ACEOF
7498 #line $LINENO "configure"
7501 cat confdefs.h >>conftest.$ac_ext
7502 cat >>conftest.$ac_ext <<_ACEOF
7503 /* end confdefs.h. */
7513 rm -f conftest.$ac_objext conftest$ac_exeext
7514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7515 (eval $ac_link) 2>&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); } &&
7519 { ac_try='test -s conftest$ac_exeext'
7520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); }; }; then
7527 echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7533 if test $ac_R_nospace = yes; then
7534 echo "$as_me:$LINENO: result: no" >&5
7535 echo "${ECHO_T}no" >&6
7536 X_LIBS="$X_LIBS -R$x_libraries"
7538 LIBS="$ac_xsave_LIBS -R $x_libraries"
7539 cat >conftest.$ac_ext <<_ACEOF
7540 #line $LINENO "configure"
7543 cat confdefs.h >>conftest.$ac_ext
7544 cat >>conftest.$ac_ext <<_ACEOF
7545 /* end confdefs.h. */
7555 rm -f conftest.$ac_objext conftest$ac_exeext
7556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7557 (eval $ac_link) 2>&5
7559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560 (exit $ac_status); } &&
7561 { ac_try='test -s conftest$ac_exeext'
7562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566 (exit $ac_status); }; }; then
7569 echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.$ac_ext >&5
7574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7575 if test $ac_R_space = yes; then
7576 echo "$as_me:$LINENO: result: yes" >&5
7577 echo "${ECHO_T}yes" >&6
7578 X_LIBS="$X_LIBS -R $x_libraries"
7580 echo "$as_me:$LINENO: result: neither works" >&5
7581 echo "${ECHO_T}neither works" >&6
7588 # Check for system-dependent libraries X programs must link with.
7589 # Do this before checking for the system-independent R6 libraries
7590 # (-lICE), since we may need -lsocket or whatever for X linking.
7592 if test "$ISC" = yes; then
7593 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7595 # Martyn Johnson says this is needed for Ultrix, if the X
7596 # libraries were built with DECnet support. And Karl Berry says
7597 # the Alpha needs dnet_stub (dnet does not exist).
7598 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7599 cat >conftest.$ac_ext <<_ACEOF
7600 #line $LINENO "configure"
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7607 /* Override any gcc2 internal prototype to avoid an error. */
7611 /* We use char because int might match the return type of a gcc2
7612 builtin and then its argument prototype would still apply. */
7613 char XOpenDisplay ();
7622 rm -f conftest.$ac_objext conftest$ac_exeext
7623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7624 (eval $ac_link) 2>&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } &&
7628 { ac_try='test -s conftest$ac_exeext'
7629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); }; }; then
7636 echo "$as_me: failed program was:" >&5
7637 sed 's/^/| /' conftest.$ac_ext >&5
7639 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7640 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7641 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 ac_check_lib_save_LIBS=$LIBS
7646 cat >conftest.$ac_ext <<_ACEOF
7647 #line $LINENO "configure"
7650 cat confdefs.h >>conftest.$ac_ext
7651 cat >>conftest.$ac_ext <<_ACEOF
7652 /* end confdefs.h. */
7654 /* Override any gcc2 internal prototype to avoid an error. */
7658 /* We use char because int might match the return type of a gcc2
7659 builtin and then its argument prototype would still apply. */
7669 rm -f conftest.$ac_objext conftest$ac_exeext
7670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7671 (eval $ac_link) 2>&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); } &&
7675 { ac_try='test -s conftest$ac_exeext'
7676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); }; }; then
7681 ac_cv_lib_dnet_dnet_ntoa=yes
7683 echo "$as_me: failed program was:" >&5
7684 sed 's/^/| /' conftest.$ac_ext >&5
7686 ac_cv_lib_dnet_dnet_ntoa=no
7688 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7689 LIBS=$ac_check_lib_save_LIBS
7691 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7692 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7693 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7694 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7697 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7698 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7699 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7700 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7703 ac_check_lib_save_LIBS=$LIBS
7704 LIBS="-ldnet_stub $LIBS"
7705 cat >conftest.$ac_ext <<_ACEOF
7706 #line $LINENO "configure"
7709 cat confdefs.h >>conftest.$ac_ext
7710 cat >>conftest.$ac_ext <<_ACEOF
7711 /* end confdefs.h. */
7713 /* Override any gcc2 internal prototype to avoid an error. */
7717 /* We use char because int might match the return type of a gcc2
7718 builtin and then its argument prototype would still apply. */
7728 rm -f conftest.$ac_objext conftest$ac_exeext
7729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7730 (eval $ac_link) 2>&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); } &&
7734 { ac_try='test -s conftest$ac_exeext'
7735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); }; }; then
7740 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7742 echo "$as_me: failed program was:" >&5
7743 sed 's/^/| /' conftest.$ac_ext >&5
7745 ac_cv_lib_dnet_stub_dnet_ntoa=no
7747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7748 LIBS=$ac_check_lib_save_LIBS
7750 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7751 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7752 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7753 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7758 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7759 LIBS="$ac_xsave_LIBS"
7761 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7762 # to get the SysV transport functions.
7763 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7765 # The nsl library prevents programs from opening the X display
7766 # on Irix 5.2, according to T.E. Dickey.
7767 # The functions gethostbyname, getservbyname, and inet_addr are
7768 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7769 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7770 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7771 if test "${ac_cv_func_gethostbyname+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 cat >conftest.$ac_ext <<_ACEOF
7775 #line $LINENO "configure"
7778 cat confdefs.h >>conftest.$ac_ext
7779 cat >>conftest.$ac_ext <<_ACEOF
7780 /* end confdefs.h. */
7781 /* System header to define __stub macros and hopefully few prototypes,
7782 which can conflict with char gethostbyname (); below.
7783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7784 <limits.h> exists even on freestanding compilers. */
7786 # include <limits.h>
7788 # include <assert.h>
7790 /* Override any gcc2 internal prototype to avoid an error. */
7795 /* We use char because int might match the return type of a gcc2
7796 builtin and then its argument prototype would still apply. */
7797 char gethostbyname ();
7798 /* The GNU C library defines this for functions which it implements
7799 to always fail with ENOSYS. Some functions are actually named
7800 something starting with __ and the normal name is an alias. */
7801 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7804 char (*f) () = gethostbyname;
7813 return f != gethostbyname;
7818 rm -f conftest.$ac_objext conftest$ac_exeext
7819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7820 (eval $ac_link) 2>&5
7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } &&
7824 { ac_try='test -s conftest$ac_exeext'
7825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); }; }; then
7830 ac_cv_func_gethostbyname=yes
7832 echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7835 ac_cv_func_gethostbyname=no
7837 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7839 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7840 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7842 if test $ac_cv_func_gethostbyname = no; then
7843 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7844 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7845 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7846 echo $ECHO_N "(cached) $ECHO_C" >&6
7848 ac_check_lib_save_LIBS=$LIBS
7850 cat >conftest.$ac_ext <<_ACEOF
7851 #line $LINENO "configure"
7854 cat confdefs.h >>conftest.$ac_ext
7855 cat >>conftest.$ac_ext <<_ACEOF
7856 /* end confdefs.h. */
7858 /* Override any gcc2 internal prototype to avoid an error. */
7862 /* We use char because int might match the return type of a gcc2
7863 builtin and then its argument prototype would still apply. */
7864 char gethostbyname ();
7873 rm -f conftest.$ac_objext conftest$ac_exeext
7874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7875 (eval $ac_link) 2>&5
7877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7878 (exit $ac_status); } &&
7879 { ac_try='test -s conftest$ac_exeext'
7880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884 (exit $ac_status); }; }; then
7885 ac_cv_lib_nsl_gethostbyname=yes
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.$ac_ext >&5
7890 ac_cv_lib_nsl_gethostbyname=no
7892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7893 LIBS=$ac_check_lib_save_LIBS
7895 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7896 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
7897 if test $ac_cv_lib_nsl_gethostbyname = yes; then
7898 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7901 if test $ac_cv_lib_nsl_gethostbyname = no; then
7902 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
7903 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
7904 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7907 ac_check_lib_save_LIBS=$LIBS
7909 cat >conftest.$ac_ext <<_ACEOF
7910 #line $LINENO "configure"
7913 cat confdefs.h >>conftest.$ac_ext
7914 cat >>conftest.$ac_ext <<_ACEOF
7915 /* end confdefs.h. */
7917 /* Override any gcc2 internal prototype to avoid an error. */
7921 /* We use char because int might match the return type of a gcc2
7922 builtin and then its argument prototype would still apply. */
7923 char gethostbyname ();
7932 rm -f conftest.$ac_objext conftest$ac_exeext
7933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7934 (eval $ac_link) 2>&5
7936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7937 (exit $ac_status); } &&
7938 { ac_try='test -s conftest$ac_exeext'
7939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); }; }; then
7944 ac_cv_lib_bsd_gethostbyname=yes
7946 echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7949 ac_cv_lib_bsd_gethostbyname=no
7951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7952 LIBS=$ac_check_lib_save_LIBS
7954 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
7955 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
7956 if test $ac_cv_lib_bsd_gethostbyname = yes; then
7957 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7963 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7964 # socket/setsockopt and other routines are undefined under SCO ODT
7965 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7966 # on later versions), says Simon Leinen: it contains gethostby*
7967 # variants that don't use the name server (or something). -lsocket
7968 # must be given before -lnsl if both are needed. We assume that
7969 # if connect needs -lnsl, so does gethostbyname.
7970 echo "$as_me:$LINENO: checking for connect" >&5
7971 echo $ECHO_N "checking for connect... $ECHO_C" >&6
7972 if test "${ac_cv_func_connect+set}" = set; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7975 cat >conftest.$ac_ext <<_ACEOF
7976 #line $LINENO "configure"
7979 cat confdefs.h >>conftest.$ac_ext
7980 cat >>conftest.$ac_ext <<_ACEOF
7981 /* end confdefs.h. */
7982 /* System header to define __stub macros and hopefully few prototypes,
7983 which can conflict with char connect (); below.
7984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7985 <limits.h> exists even on freestanding compilers. */
7987 # include <limits.h>
7989 # include <assert.h>
7991 /* Override any gcc2 internal prototype to avoid an error. */
7996 /* We use char because int might match the return type of a gcc2
7997 builtin and then its argument prototype would still apply. */
7999 /* The GNU C library defines this for functions which it implements
8000 to always fail with ENOSYS. Some functions are actually named
8001 something starting with __ and the normal name is an alias. */
8002 #if defined (__stub_connect) || defined (__stub___connect)
8005 char (*f) () = connect;
8014 return f != connect;
8019 rm -f conftest.$ac_objext conftest$ac_exeext
8020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8021 (eval $ac_link) 2>&5
8023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8024 (exit $ac_status); } &&
8025 { ac_try='test -s conftest$ac_exeext'
8026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8030 (exit $ac_status); }; }; then
8031 ac_cv_func_connect=yes
8033 echo "$as_me: failed program was:" >&5
8034 sed 's/^/| /' conftest.$ac_ext >&5
8036 ac_cv_func_connect=no
8038 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8040 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8041 echo "${ECHO_T}$ac_cv_func_connect" >&6
8043 if test $ac_cv_func_connect = no; then
8044 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8045 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8046 if test "${ac_cv_lib_socket_connect+set}" = set; then
8047 echo $ECHO_N "(cached) $ECHO_C" >&6
8049 ac_check_lib_save_LIBS=$LIBS
8050 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8051 cat >conftest.$ac_ext <<_ACEOF
8052 #line $LINENO "configure"
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h. */
8059 /* Override any gcc2 internal prototype to avoid an error. */
8063 /* We use char because int might match the return type of a gcc2
8064 builtin and then its argument prototype would still apply. */
8074 rm -f conftest.$ac_objext conftest$ac_exeext
8075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8076 (eval $ac_link) 2>&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); } &&
8080 { ac_try='test -s conftest$ac_exeext'
8081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; }; then
8086 ac_cv_lib_socket_connect=yes
8088 echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8091 ac_cv_lib_socket_connect=no
8093 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8094 LIBS=$ac_check_lib_save_LIBS
8096 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8097 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8098 if test $ac_cv_lib_socket_connect = yes; then
8099 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8104 # Guillermo Gomez says -lposix is necessary on A/UX.
8105 echo "$as_me:$LINENO: checking for remove" >&5
8106 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8107 if test "${ac_cv_func_remove+set}" = set; then
8108 echo $ECHO_N "(cached) $ECHO_C" >&6
8110 cat >conftest.$ac_ext <<_ACEOF
8111 #line $LINENO "configure"
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h. */
8117 /* System header to define __stub macros and hopefully few prototypes,
8118 which can conflict with char remove (); below.
8119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8120 <limits.h> exists even on freestanding compilers. */
8122 # include <limits.h>
8124 # include <assert.h>
8126 /* Override any gcc2 internal prototype to avoid an error. */
8131 /* We use char because int might match the return type of a gcc2
8132 builtin and then its argument prototype would still apply. */
8134 /* The GNU C library defines this for functions which it implements
8135 to always fail with ENOSYS. Some functions are actually named
8136 something starting with __ and the normal name is an alias. */
8137 #if defined (__stub_remove) || defined (__stub___remove)
8140 char (*f) () = remove;
8154 rm -f conftest.$ac_objext conftest$ac_exeext
8155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8156 (eval $ac_link) 2>&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } &&
8160 { ac_try='test -s conftest$ac_exeext'
8161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); }; }; then
8166 ac_cv_func_remove=yes
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8171 ac_cv_func_remove=no
8173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8175 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8176 echo "${ECHO_T}$ac_cv_func_remove" >&6
8178 if test $ac_cv_func_remove = no; then
8179 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8180 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8181 if test "${ac_cv_lib_posix_remove+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8184 ac_check_lib_save_LIBS=$LIBS
8185 LIBS="-lposix $LIBS"
8186 cat >conftest.$ac_ext <<_ACEOF
8187 #line $LINENO "configure"
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h. */
8194 /* Override any gcc2 internal prototype to avoid an error. */
8198 /* We use char because int might match the return type of a gcc2
8199 builtin and then its argument prototype would still apply. */
8209 rm -f conftest.$ac_objext conftest$ac_exeext
8210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8211 (eval $ac_link) 2>&5
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); } &&
8215 { ac_try='test -s conftest$ac_exeext'
8216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); }; }; then
8221 ac_cv_lib_posix_remove=yes
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.$ac_ext >&5
8226 ac_cv_lib_posix_remove=no
8228 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8229 LIBS=$ac_check_lib_save_LIBS
8231 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8232 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8233 if test $ac_cv_lib_posix_remove = yes; then
8234 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8239 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8240 echo "$as_me:$LINENO: checking for shmat" >&5
8241 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8242 if test "${ac_cv_func_shmat+set}" = set; then
8243 echo $ECHO_N "(cached) $ECHO_C" >&6
8245 cat >conftest.$ac_ext <<_ACEOF
8246 #line $LINENO "configure"
8249 cat confdefs.h >>conftest.$ac_ext
8250 cat >>conftest.$ac_ext <<_ACEOF
8251 /* end confdefs.h. */
8252 /* System header to define __stub macros and hopefully few prototypes,
8253 which can conflict with char shmat (); below.
8254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8255 <limits.h> exists even on freestanding compilers. */
8257 # include <limits.h>
8259 # include <assert.h>
8261 /* Override any gcc2 internal prototype to avoid an error. */
8266 /* We use char because int might match the return type of a gcc2
8267 builtin and then its argument prototype would still apply. */
8269 /* The GNU C library defines this for functions which it implements
8270 to always fail with ENOSYS. Some functions are actually named
8271 something starting with __ and the normal name is an alias. */
8272 #if defined (__stub_shmat) || defined (__stub___shmat)
8275 char (*f) () = shmat;
8289 rm -f conftest.$ac_objext conftest$ac_exeext
8290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8291 (eval $ac_link) 2>&5
8293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8294 (exit $ac_status); } &&
8295 { ac_try='test -s conftest$ac_exeext'
8296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8300 (exit $ac_status); }; }; then
8301 ac_cv_func_shmat=yes
8303 echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8310 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8311 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8313 if test $ac_cv_func_shmat = no; then
8314 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8315 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8316 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 ac_check_lib_save_LIBS=$LIBS
8321 cat >conftest.$ac_ext <<_ACEOF
8322 #line $LINENO "configure"
8325 cat confdefs.h >>conftest.$ac_ext
8326 cat >>conftest.$ac_ext <<_ACEOF
8327 /* end confdefs.h. */
8329 /* Override any gcc2 internal prototype to avoid an error. */
8333 /* We use char because int might match the return type of a gcc2
8334 builtin and then its argument prototype would still apply. */
8344 rm -f conftest.$ac_objext conftest$ac_exeext
8345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8346 (eval $ac_link) 2>&5
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } &&
8350 { ac_try='test -s conftest$ac_exeext'
8351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); }; }; then
8356 ac_cv_lib_ipc_shmat=yes
8358 echo "$as_me: failed program was:" >&5
8359 sed 's/^/| /' conftest.$ac_ext >&5
8361 ac_cv_lib_ipc_shmat=no
8363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8364 LIBS=$ac_check_lib_save_LIBS
8366 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8367 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8368 if test $ac_cv_lib_ipc_shmat = yes; then
8369 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8375 # Check for libraries that X11R6 Xt/Xaw programs need.
8376 ac_save_LDFLAGS=$LDFLAGS
8377 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8378 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8379 # check for ICE first), but we must link in the order -lSM -lICE or
8380 # we get undefined symbols. So assume we have SM if we have ICE.
8381 # These have to be linked with before -lX11, unlike the other
8382 # libraries we check for below, so use a different variable.
8383 # John Interrante, Karl Berry
8384 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8385 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8386 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8389 ac_check_lib_save_LIBS=$LIBS
8390 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8391 cat >conftest.$ac_ext <<_ACEOF
8392 #line $LINENO "configure"
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8399 /* Override any gcc2 internal prototype to avoid an error. */
8403 /* We use char because int might match the return type of a gcc2
8404 builtin and then its argument prototype would still apply. */
8405 char IceConnectionNumber ();
8409 IceConnectionNumber ();
8414 rm -f conftest.$ac_objext conftest$ac_exeext
8415 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8416 (eval $ac_link) 2>&5
8418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8419 (exit $ac_status); } &&
8420 { ac_try='test -s conftest$ac_exeext'
8421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8425 (exit $ac_status); }; }; then
8426 ac_cv_lib_ICE_IceConnectionNumber=yes
8428 echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.$ac_ext >&5
8431 ac_cv_lib_ICE_IceConnectionNumber=no
8433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8434 LIBS=$ac_check_lib_save_LIBS
8436 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8437 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8438 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8439 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8442 LDFLAGS=$ac_save_LDFLAGS
8494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8495 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8496 echo "$as_me:$LINENO: checking for $ac_header" >&5
8497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8499 echo $ECHO_N "(cached) $ECHO_C" >&6
8501 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8502 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8504 # Is the header compilable?
8505 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8507 cat >conftest.$ac_ext <<_ACEOF
8508 #line $LINENO "configure"
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8514 $ac_includes_default
8515 #include <$ac_header>
8517 rm -f conftest.$ac_objext
8518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8519 (eval $ac_compile) 2>&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -s conftest.$ac_objext'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; }; then
8529 ac_header_compiler=yes
8531 echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8534 ac_header_compiler=no
8536 rm -f conftest.$ac_objext conftest.$ac_ext
8537 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8538 echo "${ECHO_T}$ac_header_compiler" >&6
8540 # Is the header present?
8541 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8542 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8543 cat >conftest.$ac_ext <<_ACEOF
8544 #line $LINENO "configure"
8547 cat confdefs.h >>conftest.$ac_ext
8548 cat >>conftest.$ac_ext <<_ACEOF
8549 /* end confdefs.h. */
8550 #include <$ac_header>
8552 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8553 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8555 grep -v '^ *+' conftest.er1 >conftest.err
8557 cat conftest.err >&5
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); } >/dev/null; then
8560 if test -s conftest.err; then
8561 ac_cpp_err=$ac_c_preproc_warn_flag
8568 if test -z "$ac_cpp_err"; then
8569 ac_header_preproc=yes
8571 echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8574 ac_header_preproc=no
8576 rm -f conftest.err conftest.$ac_ext
8577 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8578 echo "${ECHO_T}$ac_header_preproc" >&6
8580 # So? What about this header?
8581 case $ac_header_compiler:$ac_header_preproc in
8583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8589 ## ------------------------------------ ##
8590 ## Report this to bug-autoconf@gnu.org. ##
8591 ## ------------------------------------ ##
8594 sed "s/^/$as_me: WARNING: /" >&2
8597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8600 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8602 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8605 ## ------------------------------------ ##
8606 ## Report this to bug-autoconf@gnu.org. ##
8607 ## ------------------------------------ ##
8610 sed "s/^/$as_me: WARNING: /" >&2
8613 echo "$as_me:$LINENO: checking for $ac_header" >&5
8614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8615 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 eval "$as_ac_Header=$ac_header_preproc"
8620 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8621 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8624 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8625 cat >>confdefs.h <<_ACEOF
8626 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8633 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8634 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8635 if test "${ac_cv_header_stdc+set}" = set; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8638 cat >conftest.$ac_ext <<_ACEOF
8639 #line $LINENO "configure"
8642 cat confdefs.h >>conftest.$ac_ext
8643 cat >>conftest.$ac_ext <<_ACEOF
8644 /* end confdefs.h. */
8658 rm -f conftest.$ac_objext
8659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8660 (eval $ac_compile) 2>&5
8662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8663 (exit $ac_status); } &&
8664 { ac_try='test -s conftest.$ac_objext'
8665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8669 (exit $ac_status); }; }; then
8670 ac_cv_header_stdc=yes
8672 echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8675 ac_cv_header_stdc=no
8677 rm -f conftest.$ac_objext conftest.$ac_ext
8679 if test $ac_cv_header_stdc = yes; then
8680 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8681 cat >conftest.$ac_ext <<_ACEOF
8682 #line $LINENO "configure"
8685 cat confdefs.h >>conftest.$ac_ext
8686 cat >>conftest.$ac_ext <<_ACEOF
8687 /* end confdefs.h. */
8691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8692 $EGREP "memchr" >/dev/null 2>&1; then
8695 ac_cv_header_stdc=no
8701 if test $ac_cv_header_stdc = yes; then
8702 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8703 cat >conftest.$ac_ext <<_ACEOF
8704 #line $LINENO "configure"
8707 cat confdefs.h >>conftest.$ac_ext
8708 cat >>conftest.$ac_ext <<_ACEOF
8709 /* end confdefs.h. */
8713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8714 $EGREP "free" >/dev/null 2>&1; then
8717 ac_cv_header_stdc=no
8723 if test $ac_cv_header_stdc = yes; then
8724 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8725 if test "$cross_compiling" = yes; then
8728 cat >conftest.$ac_ext <<_ACEOF
8729 #line $LINENO "configure"
8732 cat confdefs.h >>conftest.$ac_ext
8733 cat >>conftest.$ac_ext <<_ACEOF
8734 /* end confdefs.h. */
8736 #if ((' ' & 0x0FF) == 0x020)
8737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8740 # define ISLOWER(c) \
8741 (('a' <= (c) && (c) <= 'i') \
8742 || ('j' <= (c) && (c) <= 'r') \
8743 || ('s' <= (c) && (c) <= 'z'))
8744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8752 for (i = 0; i < 256; i++)
8753 if (XOR (islower (i), ISLOWER (i))
8754 || toupper (i) != TOUPPER (i))
8759 rm -f conftest$ac_exeext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8761 (eval $ac_link) 2>&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8772 echo "$as_me: program exited with status $ac_status" >&5
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8777 ac_cv_header_stdc=no
8779 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8783 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8784 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8785 if test $ac_cv_header_stdc = yes; then
8787 cat >>confdefs.h <<\_ACEOF
8788 #define STDC_HEADERS 1
8793 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
8794 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
8795 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 cat >conftest.$ac_ext <<_ACEOF
8799 #line $LINENO "configure"
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8805 #include <sys/types.h>
8809 return makedev(0, 0);
8814 rm -f conftest.$ac_objext conftest$ac_exeext
8815 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8816 (eval $ac_link) 2>&5
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); } &&
8820 { ac_try='test -s conftest$ac_exeext'
8821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); }; }; then
8826 ac_cv_header_sys_types_h_makedev=yes
8828 echo "$as_me: failed program was:" >&5
8829 sed 's/^/| /' conftest.$ac_ext >&5
8831 ac_cv_header_sys_types_h_makedev=no
8833 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8836 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
8837 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
8839 if test $ac_cv_header_sys_types_h_makedev = no; then
8840 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8841 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8842 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
8843 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8844 echo $ECHO_N "(cached) $ECHO_C" >&6
8846 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8847 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
8849 # Is the header compilable?
8850 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
8851 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
8852 cat >conftest.$ac_ext <<_ACEOF
8853 #line $LINENO "configure"
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859 $ac_includes_default
8860 #include <sys/mkdev.h>
8862 rm -f conftest.$ac_objext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8864 (eval $ac_compile) 2>&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } &&
8868 { ac_try='test -s conftest.$ac_objext'
8869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); }; }; then
8874 ac_header_compiler=yes
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8879 ac_header_compiler=no
8881 rm -f conftest.$ac_objext conftest.$ac_ext
8882 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8883 echo "${ECHO_T}$ac_header_compiler" >&6
8885 # Is the header present?
8886 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
8887 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
8888 cat >conftest.$ac_ext <<_ACEOF
8889 #line $LINENO "configure"
8892 cat confdefs.h >>conftest.$ac_ext
8893 cat >>conftest.$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8895 #include <sys/mkdev.h>
8897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8900 grep -v '^ *+' conftest.er1 >conftest.err
8902 cat conftest.err >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 (exit $ac_status); } >/dev/null; then
8905 if test -s conftest.err; then
8906 ac_cpp_err=$ac_c_preproc_warn_flag
8913 if test -z "$ac_cpp_err"; then
8914 ac_header_preproc=yes
8916 echo "$as_me: failed program was:" >&5
8917 sed 's/^/| /' conftest.$ac_ext >&5
8919 ac_header_preproc=no
8921 rm -f conftest.err conftest.$ac_ext
8922 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8923 echo "${ECHO_T}$ac_header_preproc" >&6
8925 # So? What about this header?
8926 case $ac_header_compiler:$ac_header_preproc in
8928 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
8929 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8930 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
8931 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
8934 ## ------------------------------------ ##
8935 ## Report this to bug-autoconf@gnu.org. ##
8936 ## ------------------------------------ ##
8939 sed "s/^/$as_me: WARNING: /" >&2
8942 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
8943 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
8944 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
8945 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
8946 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
8947 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
8950 ## ------------------------------------ ##
8951 ## Report this to bug-autoconf@gnu.org. ##
8952 ## ------------------------------------ ##
8955 sed "s/^/$as_me: WARNING: /" >&2
8958 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8959 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
8960 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8961 echo $ECHO_N "(cached) $ECHO_C" >&6
8963 ac_cv_header_sys_mkdev_h=$ac_header_preproc
8965 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8966 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
8969 if test $ac_cv_header_sys_mkdev_h = yes; then
8971 cat >>confdefs.h <<\_ACEOF
8972 #define MAJOR_IN_MKDEV 1
8979 if test $ac_cv_header_sys_mkdev_h = no; then
8980 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8981 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
8982 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
8983 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8986 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
8987 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
8989 # Is the header compilable?
8990 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
8991 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
8992 cat >conftest.$ac_ext <<_ACEOF
8993 #line $LINENO "configure"
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h. */
8999 $ac_includes_default
9000 #include <sys/sysmacros.h>
9002 rm -f conftest.$ac_objext
9003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9004 (eval $ac_compile) 2>&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } &&
9008 { ac_try='test -s conftest.$ac_objext'
9009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9013 (exit $ac_status); }; }; then
9014 ac_header_compiler=yes
9016 echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9019 ac_header_compiler=no
9021 rm -f conftest.$ac_objext conftest.$ac_ext
9022 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9023 echo "${ECHO_T}$ac_header_compiler" >&6
9025 # Is the header present?
9026 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9027 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9028 cat >conftest.$ac_ext <<_ACEOF
9029 #line $LINENO "configure"
9032 cat confdefs.h >>conftest.$ac_ext
9033 cat >>conftest.$ac_ext <<_ACEOF
9034 /* end confdefs.h. */
9035 #include <sys/sysmacros.h>
9037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9040 grep -v '^ *+' conftest.er1 >conftest.err
9042 cat conftest.err >&5
9043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044 (exit $ac_status); } >/dev/null; then
9045 if test -s conftest.err; then
9046 ac_cpp_err=$ac_c_preproc_warn_flag
9053 if test -z "$ac_cpp_err"; then
9054 ac_header_preproc=yes
9056 echo "$as_me: failed program was:" >&5
9057 sed 's/^/| /' conftest.$ac_ext >&5
9059 ac_header_preproc=no
9061 rm -f conftest.err conftest.$ac_ext
9062 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9063 echo "${ECHO_T}$ac_header_preproc" >&6
9065 # So? What about this header?
9066 case $ac_header_compiler:$ac_header_preproc in
9068 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9069 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9070 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9071 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9074 ## ------------------------------------ ##
9075 ## Report this to bug-autoconf@gnu.org. ##
9076 ## ------------------------------------ ##
9079 sed "s/^/$as_me: WARNING: /" >&2
9082 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9083 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9084 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9085 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9086 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9087 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9090 ## ------------------------------------ ##
9091 ## Report this to bug-autoconf@gnu.org. ##
9092 ## ------------------------------------ ##
9095 sed "s/^/$as_me: WARNING: /" >&2
9098 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9099 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9100 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9105 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9106 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9109 if test $ac_cv_header_sys_sysmacros_h = yes; then
9111 cat >>confdefs.h <<\_ACEOF
9112 #define MAJOR_IN_SYSMACROS 1
9127 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9128 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9129 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9130 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9131 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9132 echo $ECHO_N "(cached) $ECHO_C" >&6
9134 cat >conftest.$ac_ext <<_ACEOF
9135 #line $LINENO "configure"
9138 cat confdefs.h >>conftest.$ac_ext
9139 cat >>conftest.$ac_ext <<_ACEOF
9140 /* end confdefs.h. */
9141 #include <sys/types.h>
9153 rm -f conftest.$ac_objext
9154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9155 (eval $ac_compile) 2>&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } &&
9159 { ac_try='test -s conftest.$ac_objext'
9160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); }; }; then
9165 eval "$as_ac_Header=yes"
9167 echo "$as_me: failed program was:" >&5
9168 sed 's/^/| /' conftest.$ac_ext >&5
9170 eval "$as_ac_Header=no"
9172 rm -f conftest.$ac_objext conftest.$ac_ext
9174 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9175 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9177 cat >>confdefs.h <<_ACEOF
9178 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9181 ac_header_dirent=$ac_hdr; break
9185 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9186 if test $ac_header_dirent = dirent.h; then
9187 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9188 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9189 if test "${ac_cv_search_opendir+set}" = set; then
9190 echo $ECHO_N "(cached) $ECHO_C" >&6
9192 ac_func_search_save_LIBS=$LIBS
9193 ac_cv_search_opendir=no
9194 cat >conftest.$ac_ext <<_ACEOF
9195 #line $LINENO "configure"
9198 cat confdefs.h >>conftest.$ac_ext
9199 cat >>conftest.$ac_ext <<_ACEOF
9200 /* end confdefs.h. */
9202 /* Override any gcc2 internal prototype to avoid an error. */
9206 /* We use char because int might match the return type of a gcc2
9207 builtin and then its argument prototype would still apply. */
9217 rm -f conftest.$ac_objext conftest$ac_exeext
9218 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9219 (eval $ac_link) 2>&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); } &&
9223 { ac_try='test -s conftest$ac_exeext'
9224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9228 (exit $ac_status); }; }; then
9229 ac_cv_search_opendir="none required"
9231 echo "$as_me: failed program was:" >&5
9232 sed 's/^/| /' conftest.$ac_ext >&5
9235 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9236 if test "$ac_cv_search_opendir" = no; then
9237 for ac_lib in dir; do
9238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9239 cat >conftest.$ac_ext <<_ACEOF
9240 #line $LINENO "configure"
9243 cat confdefs.h >>conftest.$ac_ext
9244 cat >>conftest.$ac_ext <<_ACEOF
9245 /* end confdefs.h. */
9247 /* Override any gcc2 internal prototype to avoid an error. */
9251 /* We use char because int might match the return type of a gcc2
9252 builtin and then its argument prototype would still apply. */
9262 rm -f conftest.$ac_objext conftest$ac_exeext
9263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9264 (eval $ac_link) 2>&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); } &&
9268 { ac_try='test -s conftest$ac_exeext'
9269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273 (exit $ac_status); }; }; then
9274 ac_cv_search_opendir="-l$ac_lib"
9277 echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9284 LIBS=$ac_func_search_save_LIBS
9286 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9287 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9288 if test "$ac_cv_search_opendir" != no; then
9289 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9294 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9295 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9296 if test "${ac_cv_search_opendir+set}" = set; then
9297 echo $ECHO_N "(cached) $ECHO_C" >&6
9299 ac_func_search_save_LIBS=$LIBS
9300 ac_cv_search_opendir=no
9301 cat >conftest.$ac_ext <<_ACEOF
9302 #line $LINENO "configure"
9305 cat confdefs.h >>conftest.$ac_ext
9306 cat >>conftest.$ac_ext <<_ACEOF
9307 /* end confdefs.h. */
9309 /* Override any gcc2 internal prototype to avoid an error. */
9313 /* We use char because int might match the return type of a gcc2
9314 builtin and then its argument prototype would still apply. */
9324 rm -f conftest.$ac_objext conftest$ac_exeext
9325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9326 (eval $ac_link) 2>&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9329 (exit $ac_status); } &&
9330 { ac_try='test -s conftest$ac_exeext'
9331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; }; then
9336 ac_cv_search_opendir="none required"
9338 echo "$as_me: failed program was:" >&5
9339 sed 's/^/| /' conftest.$ac_ext >&5
9342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9343 if test "$ac_cv_search_opendir" = no; then
9345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9346 cat >conftest.$ac_ext <<_ACEOF
9347 #line $LINENO "configure"
9350 cat confdefs.h >>conftest.$ac_ext
9351 cat >>conftest.$ac_ext <<_ACEOF
9352 /* end confdefs.h. */
9354 /* Override any gcc2 internal prototype to avoid an error. */
9358 /* We use char because int might match the return type of a gcc2
9359 builtin and then its argument prototype would still apply. */
9369 rm -f conftest.$ac_objext conftest$ac_exeext
9370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9371 (eval $ac_link) 2>&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try='test -s conftest$ac_exeext'
9376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380 (exit $ac_status); }; }; then
9381 ac_cv_search_opendir="-l$ac_lib"
9384 echo "$as_me: failed program was:" >&5
9385 sed 's/^/| /' conftest.$ac_ext >&5
9388 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9391 LIBS=$ac_func_search_save_LIBS
9393 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9394 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9395 if test "$ac_cv_search_opendir" != no; then
9396 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9402 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9403 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9404 if test "${ac_cv_header_stat_broken+set}" = set; then
9405 echo $ECHO_N "(cached) $ECHO_C" >&6
9407 cat >conftest.$ac_ext <<_ACEOF
9408 #line $LINENO "configure"
9411 cat confdefs.h >>conftest.$ac_ext
9412 cat >>conftest.$ac_ext <<_ACEOF
9413 /* end confdefs.h. */
9414 #include <sys/types.h>
9415 #include <sys/stat.h>
9417 #if defined(S_ISBLK) && defined(S_IFDIR)
9418 # if S_ISBLK (S_IFDIR)
9423 #if defined(S_ISBLK) && defined(S_IFCHR)
9424 # if S_ISBLK (S_IFCHR)
9429 #if defined(S_ISLNK) && defined(S_IFREG)
9430 # if S_ISLNK (S_IFREG)
9435 #if defined(S_ISSOCK) && defined(S_IFREG)
9436 # if S_ISSOCK (S_IFREG)
9442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9443 $EGREP "You lose" >/dev/null 2>&1; then
9444 ac_cv_header_stat_broken=yes
9446 ac_cv_header_stat_broken=no
9451 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9452 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
9453 if test $ac_cv_header_stat_broken = yes; then
9455 cat >>confdefs.h <<\_ACEOF
9456 #define STAT_MACROS_BROKEN 1
9461 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9462 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9463 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9464 echo $ECHO_N "(cached) $ECHO_C" >&6
9466 cat >conftest.$ac_ext <<_ACEOF
9467 #line $LINENO "configure"
9470 cat confdefs.h >>conftest.$ac_ext
9471 cat >>conftest.$ac_ext <<_ACEOF
9472 /* end confdefs.h. */
9473 #include <sys/types.h>
9474 #include <sys/wait.h>
9476 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9479 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9487 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9492 rm -f conftest.$ac_objext
9493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9494 (eval $ac_compile) 2>&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); } &&
9498 { ac_try='test -s conftest.$ac_objext'
9499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); }; }; then
9504 ac_cv_header_sys_wait_h=yes
9506 echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9509 ac_cv_header_sys_wait_h=no
9511 rm -f conftest.$ac_objext conftest.$ac_ext
9513 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9514 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9515 if test $ac_cv_header_sys_wait_h = yes; then
9517 cat >>confdefs.h <<\_ACEOF
9518 #define HAVE_SYS_WAIT_H 1
9523 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9524 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9525 if test "${ac_cv_header_time+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 cat >conftest.$ac_ext <<_ACEOF
9529 #line $LINENO "configure"
9532 cat confdefs.h >>conftest.$ac_ext
9533 cat >>conftest.$ac_ext <<_ACEOF
9534 /* end confdefs.h. */
9535 #include <sys/types.h>
9536 #include <sys/time.h>
9542 if ((struct tm *) 0)
9548 rm -f conftest.$ac_objext
9549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9550 (eval $ac_compile) 2>&5
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } &&
9554 { ac_try='test -s conftest.$ac_objext'
9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; }; then
9560 ac_cv_header_time=yes
9562 echo "$as_me: failed program was:" >&5
9563 sed 's/^/| /' conftest.$ac_ext >&5
9565 ac_cv_header_time=no
9567 rm -f conftest.$ac_objext conftest.$ac_ext
9569 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9570 echo "${ECHO_T}$ac_cv_header_time" >&6
9571 if test $ac_cv_header_time = yes; then
9573 cat >>confdefs.h <<\_ACEOF
9574 #define TIME_WITH_SYS_TIME 1
9580 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
9581 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
9582 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9585 cat >conftest.$ac_ext <<_ACEOF
9586 #line $LINENO "configure"
9589 cat confdefs.h >>conftest.$ac_ext
9590 cat >>conftest.$ac_ext <<_ACEOF
9591 /* end confdefs.h. */
9592 $ac_includes_default
9596 static struct stat ac_aggr;
9597 if (ac_aggr.st_blksize)
9603 rm -f conftest.$ac_objext
9604 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9605 (eval $ac_compile) 2>&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try='test -s conftest.$ac_objext'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; }; then
9615 ac_cv_member_struct_stat_st_blksize=yes
9617 echo "$as_me: failed program was:" >&5
9618 sed 's/^/| /' conftest.$ac_ext >&5
9620 cat >conftest.$ac_ext <<_ACEOF
9621 #line $LINENO "configure"
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9627 $ac_includes_default
9631 static struct stat ac_aggr;
9632 if (sizeof ac_aggr.st_blksize)
9638 rm -f conftest.$ac_objext
9639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9640 (eval $ac_compile) 2>&5
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); } &&
9644 { ac_try='test -s conftest.$ac_objext'
9645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; }; then
9650 ac_cv_member_struct_stat_st_blksize=yes
9652 echo "$as_me: failed program was:" >&5
9653 sed 's/^/| /' conftest.$ac_ext >&5
9655 ac_cv_member_struct_stat_st_blksize=no
9657 rm -f conftest.$ac_objext conftest.$ac_ext
9659 rm -f conftest.$ac_objext conftest.$ac_ext
9661 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
9662 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
9663 if test $ac_cv_member_struct_stat_st_blksize = yes; then
9665 cat >>confdefs.h <<_ACEOF
9666 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9670 cat >>confdefs.h <<\_ACEOF
9671 #define HAVE_ST_BLKSIZE 1
9677 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
9678 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
9679 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
9680 echo $ECHO_N "(cached) $ECHO_C" >&6
9682 cat >conftest.$ac_ext <<_ACEOF
9683 #line $LINENO "configure"
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h. */
9689 $ac_includes_default
9693 static struct stat ac_aggr;
9694 if (ac_aggr.st_blocks)
9700 rm -f conftest.$ac_objext
9701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9702 (eval $ac_compile) 2>&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } &&
9706 { ac_try='test -s conftest.$ac_objext'
9707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; }; then
9712 ac_cv_member_struct_stat_st_blocks=yes
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.$ac_ext >&5
9717 cat >conftest.$ac_ext <<_ACEOF
9718 #line $LINENO "configure"
9721 cat confdefs.h >>conftest.$ac_ext
9722 cat >>conftest.$ac_ext <<_ACEOF
9723 /* end confdefs.h. */
9724 $ac_includes_default
9728 static struct stat ac_aggr;
9729 if (sizeof ac_aggr.st_blocks)
9735 rm -f conftest.$ac_objext
9736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9737 (eval $ac_compile) 2>&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -s conftest.$ac_objext'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; }; then
9747 ac_cv_member_struct_stat_st_blocks=yes
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9752 ac_cv_member_struct_stat_st_blocks=no
9754 rm -f conftest.$ac_objext conftest.$ac_ext
9756 rm -f conftest.$ac_objext conftest.$ac_ext
9758 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
9759 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
9760 if test $ac_cv_member_struct_stat_st_blocks = yes; then
9762 cat >>confdefs.h <<_ACEOF
9763 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9767 cat >>confdefs.h <<\_ACEOF
9768 #define HAVE_ST_BLOCKS 1
9772 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
9776 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9777 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9778 if test "${ac_cv_struct_tm+set}" = set; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 cat >conftest.$ac_ext <<_ACEOF
9782 #line $LINENO "configure"
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9788 #include <sys/types.h>
9794 struct tm *tp; tp->tm_sec;
9799 rm -f conftest.$ac_objext
9800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9801 (eval $ac_compile) 2>&5
9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9804 (exit $ac_status); } &&
9805 { ac_try='test -s conftest.$ac_objext'
9806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9810 (exit $ac_status); }; }; then
9811 ac_cv_struct_tm=time.h
9813 echo "$as_me: failed program was:" >&5
9814 sed 's/^/| /' conftest.$ac_ext >&5
9816 ac_cv_struct_tm=sys/time.h
9818 rm -f conftest.$ac_objext conftest.$ac_ext
9820 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9821 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9822 if test $ac_cv_struct_tm = sys/time.h; then
9824 cat >>confdefs.h <<\_ACEOF
9825 #define TM_IN_SYS_TIME 1
9830 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9831 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9832 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9835 cat >conftest.$ac_ext <<_ACEOF
9836 #line $LINENO "configure"
9839 cat confdefs.h >>conftest.$ac_ext
9840 cat >>conftest.$ac_ext <<_ACEOF
9841 /* end confdefs.h. */
9842 #include <sys/types.h>
9843 #include <$ac_cv_struct_tm>
9849 static struct tm ac_aggr;
9850 if (ac_aggr.tm_zone)
9856 rm -f conftest.$ac_objext
9857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9858 (eval $ac_compile) 2>&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } &&
9862 { ac_try='test -s conftest.$ac_objext'
9863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9867 (exit $ac_status); }; }; then
9868 ac_cv_member_struct_tm_tm_zone=yes
9870 echo "$as_me: failed program was:" >&5
9871 sed 's/^/| /' conftest.$ac_ext >&5
9873 cat >conftest.$ac_ext <<_ACEOF
9874 #line $LINENO "configure"
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9880 #include <sys/types.h>
9881 #include <$ac_cv_struct_tm>
9887 static struct tm ac_aggr;
9888 if (sizeof ac_aggr.tm_zone)
9894 rm -f conftest.$ac_objext
9895 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9896 (eval $ac_compile) 2>&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
9900 { ac_try='test -s conftest.$ac_objext'
9901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); }; }; then
9906 ac_cv_member_struct_tm_tm_zone=yes
9908 echo "$as_me: failed program was:" >&5
9909 sed 's/^/| /' conftest.$ac_ext >&5
9911 ac_cv_member_struct_tm_tm_zone=no
9913 rm -f conftest.$ac_objext conftest.$ac_ext
9915 rm -f conftest.$ac_objext conftest.$ac_ext
9917 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
9918 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
9919 if test $ac_cv_member_struct_tm_tm_zone = yes; then
9921 cat >>confdefs.h <<_ACEOF
9922 #define HAVE_STRUCT_TM_TM_ZONE 1
9928 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
9930 cat >>confdefs.h <<\_ACEOF
9931 #define HAVE_TM_ZONE 1
9935 echo "$as_me:$LINENO: checking for tzname" >&5
9936 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
9937 if test "${ac_cv_var_tzname+set}" = set; then
9938 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 cat >conftest.$ac_ext <<_ACEOF
9941 #line $LINENO "configure"
9944 cat confdefs.h >>conftest.$ac_ext
9945 cat >>conftest.$ac_ext <<_ACEOF
9946 /* end confdefs.h. */
9948 #ifndef tzname /* For SGI. */
9949 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
9960 rm -f conftest.$ac_objext conftest$ac_exeext
9961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9962 (eval $ac_link) 2>&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } &&
9966 { ac_try='test -s conftest$ac_exeext'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; }; then
9972 ac_cv_var_tzname=yes
9974 echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9979 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9981 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
9982 echo "${ECHO_T}$ac_cv_var_tzname" >&6
9983 if test $ac_cv_var_tzname = yes; then
9985 cat >>confdefs.h <<\_ACEOF
9986 #define HAVE_TZNAME 1
9993 echo "$as_me:$LINENO: checking for utime.h" >&5
9994 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
9995 if test "${ba_cv_header_utime_h+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9998 cat >conftest.$ac_ext <<_ACEOF
9999 #line $LINENO "configure"
10002 cat confdefs.h >>conftest.$ac_ext
10003 cat >>conftest.$ac_ext <<_ACEOF
10004 /* end confdefs.h. */
10006 #include <sys/types.h>
10016 rm -f conftest.$ac_objext
10017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10018 (eval $ac_compile) 2>&5
10020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021 (exit $ac_status); } &&
10022 { ac_try='test -s conftest.$ac_objext'
10023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10024 (eval $ac_try) 2>&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); }; }; then
10028 ba_cv_header_utime_h=yes
10030 echo "$as_me: failed program was:" >&5
10031 sed 's/^/| /' conftest.$ac_ext >&5
10033 ba_cv_header_utime_h=no
10035 rm -f conftest.$ac_objext conftest.$ac_ext
10037 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10038 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10039 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10040 #define HAVE_UTIME_H 1
10044 echo "$as_me:$LINENO: checking for socklen_t" >&5
10045 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10046 if test "${ba_cv_header_socklen_t+set}" = set; then
10047 echo $ECHO_N "(cached) $ECHO_C" >&6
10049 cat >conftest.$ac_ext <<_ACEOF
10050 #line $LINENO "configure"
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h. */
10057 #include <sys/types.h>
10058 #include <sys/socket.h>
10067 rm -f conftest.$ac_objext
10068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10069 (eval $ac_compile) 2>&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } &&
10073 { ac_try='test -s conftest.$ac_objext'
10074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10075 (eval $ac_try) 2>&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; }; then
10079 ba_cv_header_socklen_t=yes
10081 echo "$as_me: failed program was:" >&5
10082 sed 's/^/| /' conftest.$ac_ext >&5
10084 ba_cv_header_socklen_t=no
10086 rm -f conftest.$ac_objext conftest.$ac_ext
10088 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10089 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10090 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10091 #define HAVE_SOCKLEN_T 1
10095 echo "$as_me:$LINENO: checking for bigendian" >&5
10096 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10097 if test "${ba_cv_bigendian+set}" = set; then
10098 echo $ECHO_N "(cached) $ECHO_C" >&6
10100 if test "$cross_compiling" = yes; then
10103 cat >conftest.$ac_ext <<_ACEOF
10104 #line $LINENO "configure"
10107 cat confdefs.h >>conftest.$ac_ext
10108 cat >>conftest.$ac_ext <<_ACEOF
10109 /* end confdefs.h. */
10110 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10112 rm -f conftest$ac_exeext
10113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10114 (eval $ac_link) 2>&5
10116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10119 (eval $ac_try) 2>&5
10121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10122 (exit $ac_status); }; }; then
10123 ba_cv_bigendian=yes
10125 echo "$as_me: program exited with status $ac_status" >&5
10126 echo "$as_me: failed program was:" >&5
10127 sed 's/^/| /' conftest.$ac_ext >&5
10129 ( exit $ac_status )
10132 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10135 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10136 echo "${ECHO_T}$ba_cv_bigendian" >&6
10137 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10138 #define HAVE_BIGENDIAN 1
10143 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10144 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10145 if test "${ac_cv_c_const+set}" = set; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 cat >conftest.$ac_ext <<_ACEOF
10149 #line $LINENO "configure"
10152 cat confdefs.h >>conftest.$ac_ext
10153 cat >>conftest.$ac_ext <<_ACEOF
10154 /* end confdefs.h. */
10159 /* FIXME: Include the comments suggested by Paul. */
10160 #ifndef __cplusplus
10161 /* Ultrix mips cc rejects this. */
10162 typedef int charset[2];
10164 /* SunOS 4.1.1 cc rejects this. */
10165 char const *const *ccp;
10167 /* NEC SVR4.0.2 mips cc rejects this. */
10168 struct point {int x, y;};
10169 static struct point const zero = {0,0};
10170 /* AIX XL C 1.02.0.0 rejects this.
10171 It does not let you subtract one const X* pointer from another in
10172 an arm of an if-expression whose if-part is not a constant
10174 const char *g = "string";
10175 ccp = &g + (g ? g-g : 0);
10176 /* HPUX 7.0 cc rejects these. */
10179 ccp = (char const *const *) p;
10180 { /* SCO 3.2v4 cc rejects this. */
10182 char const *s = 0 ? (char *) 0 : (char const *) 0;
10186 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10187 int x[] = {25, 17};
10188 const int *foo = &x[0];
10191 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10192 typedef const int *iptr;
10196 { /* AIX XL C 1.02.0.0 rejects this saying
10197 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10198 struct s { int j; const int *ap[3]; };
10199 struct s *b; b->j = 5;
10201 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10202 const int foo = 10;
10210 rm -f conftest.$ac_objext
10211 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10212 (eval $ac_compile) 2>&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); } &&
10216 { ac_try='test -s conftest.$ac_objext'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10224 echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10229 rm -f conftest.$ac_objext conftest.$ac_ext
10231 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10232 echo "${ECHO_T}$ac_cv_c_const" >&6
10233 if test $ac_cv_c_const = no; then
10235 cat >>confdefs.h <<\_ACEOF
10243 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10244 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10246 # The order of these tests is important.
10247 cat >conftest.$ac_ext <<_ACEOF
10248 #line $LINENO "configure"
10251 cat confdefs.h >>conftest.$ac_ext
10252 cat >>conftest.$ac_ext <<_ACEOF
10253 /* end confdefs.h. */
10254 #include <sys/statvfs.h>
10255 #include <sys/fstyp.h>
10257 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10258 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10260 grep -v '^ *+' conftest.er1 >conftest.err
10262 cat conftest.err >&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); } >/dev/null; then
10265 if test -s conftest.err; then
10266 ac_cpp_err=$ac_c_preproc_warn_flag
10273 if test -z "$ac_cpp_err"; then
10274 cat >>confdefs.h <<\_ACEOF
10275 #define FSTYPE_STATVFS 1
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10284 rm -f conftest.err conftest.$ac_ext
10285 if test $fstype = no; then
10286 cat >conftest.$ac_ext <<_ACEOF
10287 #line $LINENO "configure"
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h. */
10293 #include <sys/statfs.h>
10294 #include <sys/fstyp.h>
10296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10299 grep -v '^ *+' conftest.er1 >conftest.err
10301 cat conftest.err >&5
10302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } >/dev/null; then
10304 if test -s conftest.err; then
10305 ac_cpp_err=$ac_c_preproc_warn_flag
10312 if test -z "$ac_cpp_err"; then
10313 cat >>confdefs.h <<\_ACEOF
10314 #define FSTYPE_USG_STATFS 1
10318 echo "$as_me: failed program was:" >&5
10319 sed 's/^/| /' conftest.$ac_ext >&5
10323 rm -f conftest.err conftest.$ac_ext
10325 if test $fstype = no; then
10326 cat >conftest.$ac_ext <<_ACEOF
10327 #line $LINENO "configure"
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h. */
10333 #include <sys/statfs.h>
10334 #include <sys/vmount.h>
10336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10337 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10339 grep -v '^ *+' conftest.er1 >conftest.err
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } >/dev/null; then
10344 if test -s conftest.err; then
10345 ac_cpp_err=$ac_c_preproc_warn_flag
10352 if test -z "$ac_cpp_err"; then
10353 cat >>confdefs.h <<\_ACEOF
10354 #define FSTYPE_AIX_STATFS 1
10358 echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10363 rm -f conftest.err conftest.$ac_ext
10365 if test $fstype = no; then
10366 cat >conftest.$ac_ext <<_ACEOF
10367 #line $LINENO "configure"
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10373 #include <mntent.h>
10375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10376 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10378 grep -v '^ *+' conftest.er1 >conftest.err
10380 cat conftest.err >&5
10381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10382 (exit $ac_status); } >/dev/null; then
10383 if test -s conftest.err; then
10384 ac_cpp_err=$ac_c_preproc_warn_flag
10391 if test -z "$ac_cpp_err"; then
10392 cat >>confdefs.h <<\_ACEOF
10393 #define FSTYPE_MNTENT 1
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10402 rm -f conftest.err conftest.$ac_ext
10404 if test $fstype = no; then
10405 cat >conftest.$ac_ext <<_ACEOF
10406 #line $LINENO "configure"
10409 cat confdefs.h >>conftest.$ac_ext
10410 cat >>conftest.$ac_ext <<_ACEOF
10411 /* end confdefs.h. */
10412 #include <sys/mount.h>
10415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10416 $EGREP "f_type;" >/dev/null 2>&1; then
10417 cat >>confdefs.h <<\_ACEOF
10418 #define FSTYPE_STATFS 1
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/mount.h>
10434 #include <sys/fs_types.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_GETMNT 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 echo "$as_me:$LINENO: result: $fstype" >&5
10466 echo "${ECHO_T}$fstype" >&6
10468 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10469 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10470 if test "${ac_cv_type_signal+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10473 cat >conftest.$ac_ext <<_ACEOF
10474 #line $LINENO "configure"
10477 cat confdefs.h >>conftest.$ac_ext
10478 cat >>conftest.$ac_ext <<_ACEOF
10479 /* end confdefs.h. */
10480 #include <sys/types.h>
10481 #include <signal.h>
10486 extern "C" void (*signal (int, void (*)(int)))(int);
10488 void (*signal ()) ();
10499 rm -f conftest.$ac_objext
10500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10501 (eval $ac_compile) 2>&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); } &&
10505 { ac_try='test -s conftest.$ac_objext'
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; }; then
10511 ac_cv_type_signal=void
10513 echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.$ac_ext >&5
10516 ac_cv_type_signal=int
10518 rm -f conftest.$ac_objext conftest.$ac_ext
10520 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10521 echo "${ECHO_T}$ac_cv_type_signal" >&6
10523 cat >>confdefs.h <<_ACEOF
10524 #define RETSIGTYPE $ac_cv_type_signal
10529 echo "$as_me:$LINENO: checking for type of signal functions" >&5
10530 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
10531 if test "${bash_cv_signal_vintage+set}" = set; then
10532 echo $ECHO_N "(cached) $ECHO_C" >&6
10535 cat >conftest.$ac_ext <<_ACEOF
10536 #line $LINENO "configure"
10539 cat confdefs.h >>conftest.$ac_ext
10540 cat >>conftest.$ac_ext <<_ACEOF
10541 /* end confdefs.h. */
10542 #include <signal.h>
10548 struct sigaction sa;
10549 sigemptyset(&ss); sigsuspend(&ss);
10550 sigaction(SIGINT, &sa, (struct sigaction *) 0);
10551 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
10557 rm -f conftest.$ac_objext conftest$ac_exeext
10558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10559 (eval $ac_link) 2>&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } &&
10563 { ac_try='test -s conftest$ac_exeext'
10564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10565 (eval $ac_try) 2>&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); }; }; then
10569 bash_cv_signal_vintage=posix
10571 echo "$as_me: failed program was:" >&5
10572 sed 's/^/| /' conftest.$ac_ext >&5
10575 cat >conftest.$ac_ext <<_ACEOF
10576 #line $LINENO "configure"
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 #include <signal.h>
10587 int mask = sigmask(SIGINT);
10588 sigsetmask(mask); sigblock(mask); sigpause(mask);
10594 rm -f conftest.$ac_objext conftest$ac_exeext
10595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10596 (eval $ac_link) 2>&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); } &&
10600 { ac_try='test -s conftest$ac_exeext'
10601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10602 (eval $ac_try) 2>&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; }; then
10606 bash_cv_signal_vintage=4.2bsd
10608 echo "$as_me: failed program was:" >&5
10609 sed 's/^/| /' conftest.$ac_ext >&5
10612 cat >conftest.$ac_ext <<_ACEOF
10613 #line $LINENO "configure"
10616 cat confdefs.h >>conftest.$ac_ext
10617 cat >>conftest.$ac_ext <<_ACEOF
10618 /* end confdefs.h. */
10620 #include <signal.h>
10621 RETSIGTYPE foo() { }
10626 int mask = sigmask(SIGINT);
10627 sigset(SIGINT, foo); sigrelse(SIGINT);
10628 sighold(SIGINT); sigpause(SIGINT);
10634 rm -f conftest.$ac_objext conftest$ac_exeext
10635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10636 (eval $ac_link) 2>&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } &&
10640 { ac_try='test -s conftest$ac_exeext'
10641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10642 (eval $ac_try) 2>&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); }; }; then
10646 bash_cv_signal_vintage=svr3
10648 echo "$as_me: failed program was:" >&5
10649 sed 's/^/| /' conftest.$ac_ext >&5
10651 bash_cv_signal_vintage=v7
10654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10657 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10664 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
10665 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
10666 if test "$bash_cv_signal_vintage" = posix; then
10667 cat >>confdefs.h <<\_ACEOF
10668 #define HAVE_POSIX_SIGNALS 1
10671 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
10672 cat >>confdefs.h <<\_ACEOF
10673 #define HAVE_BSD_SIGNALS 1
10676 elif test "$bash_cv_signal_vintage" = svr3; then
10677 cat >>confdefs.h <<\_ACEOF
10678 #define HAVE_USG_SIGHOLD 1
10683 echo "$as_me:$LINENO: checking for mode_t" >&5
10684 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10685 if test "${ac_cv_type_mode_t+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10688 cat >conftest.$ac_ext <<_ACEOF
10689 #line $LINENO "configure"
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10695 $ac_includes_default
10701 if (sizeof (mode_t))
10707 rm -f conftest.$ac_objext
10708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10709 (eval $ac_compile) 2>&5
10711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712 (exit $ac_status); } &&
10713 { ac_try='test -s conftest.$ac_objext'
10714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10715 (eval $ac_try) 2>&5
10717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718 (exit $ac_status); }; }; then
10719 ac_cv_type_mode_t=yes
10721 echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10724 ac_cv_type_mode_t=no
10726 rm -f conftest.$ac_objext conftest.$ac_ext
10728 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10729 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10730 if test $ac_cv_type_mode_t = yes; then
10734 cat >>confdefs.h <<_ACEOF
10740 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10741 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10742 if test "${ac_cv_type_uid_t+set}" = set; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10745 cat >conftest.$ac_ext <<_ACEOF
10746 #line $LINENO "configure"
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h. */
10752 #include <sys/types.h>
10755 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10756 $EGREP "uid_t" >/dev/null 2>&1; then
10757 ac_cv_type_uid_t=yes
10759 ac_cv_type_uid_t=no
10764 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10765 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10766 if test $ac_cv_type_uid_t = no; then
10768 cat >>confdefs.h <<\_ACEOF
10773 cat >>confdefs.h <<\_ACEOF
10779 echo "$as_me:$LINENO: checking for size_t" >&5
10780 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10781 if test "${ac_cv_type_size_t+set}" = set; then
10782 echo $ECHO_N "(cached) $ECHO_C" >&6
10784 cat >conftest.$ac_ext <<_ACEOF
10785 #line $LINENO "configure"
10788 cat confdefs.h >>conftest.$ac_ext
10789 cat >>conftest.$ac_ext <<_ACEOF
10790 /* end confdefs.h. */
10791 $ac_includes_default
10797 if (sizeof (size_t))
10803 rm -f conftest.$ac_objext
10804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10805 (eval $ac_compile) 2>&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); } &&
10809 { ac_try='test -s conftest.$ac_objext'
10810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10811 (eval $ac_try) 2>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }; then
10815 ac_cv_type_size_t=yes
10817 echo "$as_me: failed program was:" >&5
10818 sed 's/^/| /' conftest.$ac_ext >&5
10820 ac_cv_type_size_t=no
10822 rm -f conftest.$ac_objext conftest.$ac_ext
10824 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10825 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10826 if test $ac_cv_type_size_t = yes; then
10830 cat >>confdefs.h <<_ACEOF
10831 #define size_t unsigned
10836 echo "$as_me:$LINENO: checking for pid_t" >&5
10837 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10838 if test "${ac_cv_type_pid_t+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10841 cat >conftest.$ac_ext <<_ACEOF
10842 #line $LINENO "configure"
10845 cat confdefs.h >>conftest.$ac_ext
10846 cat >>conftest.$ac_ext <<_ACEOF
10847 /* end confdefs.h. */
10848 $ac_includes_default
10854 if (sizeof (pid_t))
10860 rm -f conftest.$ac_objext
10861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10862 (eval $ac_compile) 2>&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); } &&
10866 { ac_try='test -s conftest.$ac_objext'
10867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10868 (eval $ac_try) 2>&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); }; }; then
10872 ac_cv_type_pid_t=yes
10874 echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.$ac_ext >&5
10877 ac_cv_type_pid_t=no
10879 rm -f conftest.$ac_objext conftest.$ac_ext
10881 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10882 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10883 if test $ac_cv_type_pid_t = yes; then
10887 cat >>confdefs.h <<_ACEOF
10893 echo "$as_me:$LINENO: checking for off_t" >&5
10894 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10895 if test "${ac_cv_type_off_t+set}" = set; then
10896 echo $ECHO_N "(cached) $ECHO_C" >&6
10898 cat >conftest.$ac_ext <<_ACEOF
10899 #line $LINENO "configure"
10902 cat confdefs.h >>conftest.$ac_ext
10903 cat >>conftest.$ac_ext <<_ACEOF
10904 /* end confdefs.h. */
10905 $ac_includes_default
10911 if (sizeof (off_t))
10917 rm -f conftest.$ac_objext
10918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10919 (eval $ac_compile) 2>&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } &&
10923 { ac_try='test -s conftest.$ac_objext'
10924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10925 (eval $ac_try) 2>&5
10927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10928 (exit $ac_status); }; }; then
10929 ac_cv_type_off_t=yes
10931 echo "$as_me: failed program was:" >&5
10932 sed 's/^/| /' conftest.$ac_ext >&5
10934 ac_cv_type_off_t=no
10936 rm -f conftest.$ac_objext conftest.$ac_ext
10938 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10939 echo "${ECHO_T}$ac_cv_type_off_t" >&6
10940 if test $ac_cv_type_off_t = yes; then
10944 cat >>confdefs.h <<_ACEOF
10950 echo "$as_me:$LINENO: checking for ino_t" >&5
10951 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
10952 if test "${ac_cv_type_ino_t+set}" = set; then
10953 echo $ECHO_N "(cached) $ECHO_C" >&6
10955 cat >conftest.$ac_ext <<_ACEOF
10956 #line $LINENO "configure"
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h. */
10962 $ac_includes_default
10968 if (sizeof (ino_t))
10974 rm -f conftest.$ac_objext
10975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10976 (eval $ac_compile) 2>&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } &&
10980 { ac_try='test -s conftest.$ac_objext'
10981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10982 (eval $ac_try) 2>&5
10984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10985 (exit $ac_status); }; }; then
10986 ac_cv_type_ino_t=yes
10988 echo "$as_me: failed program was:" >&5
10989 sed 's/^/| /' conftest.$ac_ext >&5
10991 ac_cv_type_ino_t=no
10993 rm -f conftest.$ac_objext conftest.$ac_ext
10995 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
10996 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
10997 if test $ac_cv_type_ino_t = yes; then
11001 cat >>confdefs.h <<_ACEOF
11002 #define ino_t unsigned long
11007 echo "$as_me:$LINENO: checking for dev_t" >&5
11008 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11009 if test "${ac_cv_type_dev_t+set}" = set; then
11010 echo $ECHO_N "(cached) $ECHO_C" >&6
11012 cat >conftest.$ac_ext <<_ACEOF
11013 #line $LINENO "configure"
11016 cat confdefs.h >>conftest.$ac_ext
11017 cat >>conftest.$ac_ext <<_ACEOF
11018 /* end confdefs.h. */
11019 $ac_includes_default
11025 if (sizeof (dev_t))
11031 rm -f conftest.$ac_objext
11032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11033 (eval $ac_compile) 2>&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } &&
11037 { ac_try='test -s conftest.$ac_objext'
11038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11039 (eval $ac_try) 2>&5
11041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11042 (exit $ac_status); }; }; then
11043 ac_cv_type_dev_t=yes
11045 echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11048 ac_cv_type_dev_t=no
11050 rm -f conftest.$ac_objext conftest.$ac_ext
11052 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11053 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11054 if test $ac_cv_type_dev_t = yes; then
11058 cat >>confdefs.h <<_ACEOF
11059 #define dev_t unsigned long
11064 echo "$as_me:$LINENO: checking for daddr_t" >&5
11065 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11066 if test "${ac_cv_type_daddr_t+set}" = set; then
11067 echo $ECHO_N "(cached) $ECHO_C" >&6
11069 cat >conftest.$ac_ext <<_ACEOF
11070 #line $LINENO "configure"
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11076 $ac_includes_default
11082 if (sizeof (daddr_t))
11088 rm -f conftest.$ac_objext
11089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11090 (eval $ac_compile) 2>&5
11092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11093 (exit $ac_status); } &&
11094 { ac_try='test -s conftest.$ac_objext'
11095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11096 (eval $ac_try) 2>&5
11098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11099 (exit $ac_status); }; }; then
11100 ac_cv_type_daddr_t=yes
11102 echo "$as_me: failed program was:" >&5
11103 sed 's/^/| /' conftest.$ac_ext >&5
11105 ac_cv_type_daddr_t=no
11107 rm -f conftest.$ac_objext conftest.$ac_ext
11109 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11110 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11111 if test $ac_cv_type_daddr_t = yes; then
11115 cat >>confdefs.h <<_ACEOF
11116 #define daddr_t long
11121 echo "$as_me:$LINENO: checking for major_t" >&5
11122 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11123 if test "${ac_cv_type_major_t+set}" = set; then
11124 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 cat >conftest.$ac_ext <<_ACEOF
11127 #line $LINENO "configure"
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11133 $ac_includes_default
11139 if (sizeof (major_t))
11145 rm -f conftest.$ac_objext
11146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11147 (eval $ac_compile) 2>&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); } &&
11151 { ac_try='test -s conftest.$ac_objext'
11152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153 (eval $ac_try) 2>&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); }; }; then
11157 ac_cv_type_major_t=yes
11159 echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11162 ac_cv_type_major_t=no
11164 rm -f conftest.$ac_objext conftest.$ac_ext
11166 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11167 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11168 if test $ac_cv_type_major_t = yes; then
11172 cat >>confdefs.h <<_ACEOF
11173 #define major_t int
11178 echo "$as_me:$LINENO: checking for minor_t" >&5
11179 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11180 if test "${ac_cv_type_minor_t+set}" = set; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 cat >conftest.$ac_ext <<_ACEOF
11184 #line $LINENO "configure"
11187 cat confdefs.h >>conftest.$ac_ext
11188 cat >>conftest.$ac_ext <<_ACEOF
11189 /* end confdefs.h. */
11190 $ac_includes_default
11196 if (sizeof (minor_t))
11202 rm -f conftest.$ac_objext
11203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11204 (eval $ac_compile) 2>&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); } &&
11208 { ac_try='test -s conftest.$ac_objext'
11209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11210 (eval $ac_try) 2>&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); }; }; then
11214 ac_cv_type_minor_t=yes
11216 echo "$as_me: failed program was:" >&5
11217 sed 's/^/| /' conftest.$ac_ext >&5
11219 ac_cv_type_minor_t=no
11221 rm -f conftest.$ac_objext conftest.$ac_ext
11223 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11224 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11225 if test $ac_cv_type_minor_t = yes; then
11229 cat >>confdefs.h <<_ACEOF
11230 #define minor_t int
11235 echo "$as_me:$LINENO: checking for ssize_t" >&5
11236 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11237 if test "${ac_cv_type_ssize_t+set}" = set; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
11240 cat >conftest.$ac_ext <<_ACEOF
11241 #line $LINENO "configure"
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11247 $ac_includes_default
11253 if (sizeof (ssize_t))
11259 rm -f conftest.$ac_objext
11260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11261 (eval $ac_compile) 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } &&
11265 { ac_try='test -s conftest.$ac_objext'
11266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11267 (eval $ac_try) 2>&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); }; }; then
11271 ac_cv_type_ssize_t=yes
11273 echo "$as_me: failed program was:" >&5
11274 sed 's/^/| /' conftest.$ac_ext >&5
11276 ac_cv_type_ssize_t=no
11278 rm -f conftest.$ac_objext conftest.$ac_ext
11280 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11281 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11282 if test $ac_cv_type_ssize_t = yes; then
11286 cat >>confdefs.h <<_ACEOF
11287 #define ssize_t int
11292 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11293 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11294 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 cat >conftest.$ac_ext <<_ACEOF
11298 #line $LINENO "configure"
11301 cat confdefs.h >>conftest.$ac_ext
11302 cat >>conftest.$ac_ext <<_ACEOF
11303 /* end confdefs.h. */
11304 $ac_includes_default
11308 static struct stat ac_aggr;
11309 if (ac_aggr.st_blocks)
11315 rm -f conftest.$ac_objext
11316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11317 (eval $ac_compile) 2>&5
11319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11320 (exit $ac_status); } &&
11321 { ac_try='test -s conftest.$ac_objext'
11322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11323 (eval $ac_try) 2>&5
11325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11326 (exit $ac_status); }; }; then
11327 ac_cv_member_struct_stat_st_blocks=yes
11329 echo "$as_me: failed program was:" >&5
11330 sed 's/^/| /' conftest.$ac_ext >&5
11332 cat >conftest.$ac_ext <<_ACEOF
11333 #line $LINENO "configure"
11336 cat confdefs.h >>conftest.$ac_ext
11337 cat >>conftest.$ac_ext <<_ACEOF
11338 /* end confdefs.h. */
11339 $ac_includes_default
11343 static struct stat ac_aggr;
11344 if (sizeof ac_aggr.st_blocks)
11350 rm -f conftest.$ac_objext
11351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11352 (eval $ac_compile) 2>&5
11354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11355 (exit $ac_status); } &&
11356 { ac_try='test -s conftest.$ac_objext'
11357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358 (eval $ac_try) 2>&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); }; }; then
11362 ac_cv_member_struct_stat_st_blocks=yes
11364 echo "$as_me: failed program was:" >&5
11365 sed 's/^/| /' conftest.$ac_ext >&5
11367 ac_cv_member_struct_stat_st_blocks=no
11369 rm -f conftest.$ac_objext conftest.$ac_ext
11371 rm -f conftest.$ac_objext conftest.$ac_ext
11373 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11374 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11375 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11377 cat >>confdefs.h <<_ACEOF
11378 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11382 cat >>confdefs.h <<\_ACEOF
11383 #define HAVE_ST_BLOCKS 1
11387 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11392 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11393 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11394 if test "${ac_cv_member_struct_stat_st_rdev+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_rdev)
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_rdev=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_rdev)
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_rdev=yes
11464 echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11467 ac_cv_member_struct_stat_st_rdev=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_rdev" >&5
11474 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
11475 if test $ac_cv_member_struct_stat_st_rdev = yes; then
11477 cat >>confdefs.h <<_ACEOF
11478 #define HAVE_STRUCT_STAT_ST_RDEV 1
11482 cat >>confdefs.h <<\_ACEOF
11483 #define HAVE_ST_RDEV 1
11489 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11490 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11491 if test "${ac_cv_struct_tm+set}" = set; then
11492 echo $ECHO_N "(cached) $ECHO_C" >&6
11494 cat >conftest.$ac_ext <<_ACEOF
11495 #line $LINENO "configure"
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11501 #include <sys/types.h>
11507 struct tm *tp; tp->tm_sec;
11512 rm -f conftest.$ac_objext
11513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11514 (eval $ac_compile) 2>&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } &&
11518 { ac_try='test -s conftest.$ac_objext'
11519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11520 (eval $ac_try) 2>&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); }; }; then
11524 ac_cv_struct_tm=time.h
11526 echo "$as_me: failed program was:" >&5
11527 sed 's/^/| /' conftest.$ac_ext >&5
11529 ac_cv_struct_tm=sys/time.h
11531 rm -f conftest.$ac_objext conftest.$ac_ext
11533 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11534 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11535 if test $ac_cv_struct_tm = sys/time.h; then
11537 cat >>confdefs.h <<\_ACEOF
11538 #define TM_IN_SYS_TIME 1
11543 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11544 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11545 if test "${ac_cv_c_const+set}" = set; then
11546 echo $ECHO_N "(cached) $ECHO_C" >&6
11548 cat >conftest.$ac_ext <<_ACEOF
11549 #line $LINENO "configure"
11552 cat confdefs.h >>conftest.$ac_ext
11553 cat >>conftest.$ac_ext <<_ACEOF
11554 /* end confdefs.h. */
11559 /* FIXME: Include the comments suggested by Paul. */
11560 #ifndef __cplusplus
11561 /* Ultrix mips cc rejects this. */
11562 typedef int charset[2];
11564 /* SunOS 4.1.1 cc rejects this. */
11565 char const *const *ccp;
11567 /* NEC SVR4.0.2 mips cc rejects this. */
11568 struct point {int x, y;};
11569 static struct point const zero = {0,0};
11570 /* AIX XL C 1.02.0.0 rejects this.
11571 It does not let you subtract one const X* pointer from another in
11572 an arm of an if-expression whose if-part is not a constant
11574 const char *g = "string";
11575 ccp = &g + (g ? g-g : 0);
11576 /* HPUX 7.0 cc rejects these. */
11579 ccp = (char const *const *) p;
11580 { /* SCO 3.2v4 cc rejects this. */
11582 char const *s = 0 ? (char *) 0 : (char const *) 0;
11586 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11587 int x[] = {25, 17};
11588 const int *foo = &x[0];
11591 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11592 typedef const int *iptr;
11596 { /* AIX XL C 1.02.0.0 rejects this saying
11597 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11598 struct s { int j; const int *ap[3]; };
11599 struct s *b; b->j = 5;
11601 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11602 const int foo = 10;
11610 rm -f conftest.$ac_objext
11611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11612 (eval $ac_compile) 2>&5
11614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11615 (exit $ac_status); } &&
11616 { ac_try='test -s conftest.$ac_objext'
11617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11618 (eval $ac_try) 2>&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; }; then
11624 echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11629 rm -f conftest.$ac_objext conftest.$ac_ext
11631 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11632 echo "${ECHO_T}$ac_cv_c_const" >&6
11633 if test $ac_cv_c_const = no; then
11635 cat >>confdefs.h <<\_ACEOF
11643 echo "$as_me:$LINENO: checking for char" >&5
11644 echo $ECHO_N "checking for char... $ECHO_C" >&6
11645 if test "${ac_cv_type_char+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. */
11655 $ac_includes_default
11667 rm -f conftest.$ac_objext
11668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11669 (eval $ac_compile) 2>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); } &&
11673 { ac_try='test -s conftest.$ac_objext'
11674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11675 (eval $ac_try) 2>&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); }; }; then
11679 ac_cv_type_char=yes
11681 echo "$as_me: failed program was:" >&5
11682 sed 's/^/| /' conftest.$ac_ext >&5
11686 rm -f conftest.$ac_objext conftest.$ac_ext
11688 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11689 echo "${ECHO_T}$ac_cv_type_char" >&6
11691 echo "$as_me:$LINENO: checking size of char" >&5
11692 echo $ECHO_N "checking size of char... $ECHO_C" >&6
11693 if test "${ac_cv_sizeof_char+set}" = set; then
11694 echo $ECHO_N "(cached) $ECHO_C" >&6
11696 if test "$ac_cv_type_char" = yes; then
11697 # The cast to unsigned long works around a bug in the HP C Compiler
11698 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11699 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11700 # This bug is HP SR number 8606223364.
11701 if test "$cross_compiling" = yes; then
11702 # Depending upon the size, compute the lo and hi bounds.
11703 cat >conftest.$ac_ext <<_ACEOF
11704 #line $LINENO "configure"
11707 cat confdefs.h >>conftest.$ac_ext
11708 cat >>conftest.$ac_ext <<_ACEOF
11709 /* end confdefs.h. */
11710 $ac_includes_default
11714 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11721 rm -f conftest.$ac_objext
11722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11723 (eval $ac_compile) 2>&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } &&
11727 { ac_try='test -s conftest.$ac_objext'
11728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11729 (eval $ac_try) 2>&5
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; }; then
11735 cat >conftest.$ac_ext <<_ACEOF
11736 #line $LINENO "configure"
11739 cat confdefs.h >>conftest.$ac_ext
11740 cat >>conftest.$ac_ext <<_ACEOF
11741 /* end confdefs.h. */
11742 $ac_includes_default
11746 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11753 rm -f conftest.$ac_objext
11754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11755 (eval $ac_compile) 2>&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
11759 { ac_try='test -s conftest.$ac_objext'
11760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; }; then
11765 ac_hi=$ac_mid; break
11767 echo "$as_me: failed program was:" >&5
11768 sed 's/^/| /' conftest.$ac_ext >&5
11770 ac_lo=`expr $ac_mid + 1`
11771 if test $ac_lo -le $ac_mid; then
11775 ac_mid=`expr 2 '*' $ac_mid + 1`
11777 rm -f conftest.$ac_objext conftest.$ac_ext
11780 echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11783 cat >conftest.$ac_ext <<_ACEOF
11784 #line $LINENO "configure"
11787 cat confdefs.h >>conftest.$ac_ext
11788 cat >>conftest.$ac_ext <<_ACEOF
11789 /* end confdefs.h. */
11790 $ac_includes_default
11794 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11801 rm -f conftest.$ac_objext
11802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11803 (eval $ac_compile) 2>&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } &&
11807 { ac_try='test -s conftest.$ac_objext'
11808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11809 (eval $ac_try) 2>&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; }; then
11815 cat >conftest.$ac_ext <<_ACEOF
11816 #line $LINENO "configure"
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h. */
11822 $ac_includes_default
11826 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11833 rm -f conftest.$ac_objext
11834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11835 (eval $ac_compile) 2>&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } &&
11839 { ac_try='test -s conftest.$ac_objext'
11840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11841 (eval $ac_try) 2>&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); }; }; then
11845 ac_lo=$ac_mid; break
11847 echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.$ac_ext >&5
11850 ac_hi=`expr '(' $ac_mid ')' - 1`
11851 if test $ac_mid -le $ac_hi; then
11855 ac_mid=`expr 2 '*' $ac_mid`
11857 rm -f conftest.$ac_objext conftest.$ac_ext
11860 echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.$ac_ext >&5
11865 rm -f conftest.$ac_objext conftest.$ac_ext
11867 rm -f conftest.$ac_objext conftest.$ac_ext
11868 # Binary search between lo and hi bounds.
11869 while test "x$ac_lo" != "x$ac_hi"; do
11870 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11871 cat >conftest.$ac_ext <<_ACEOF
11872 #line $LINENO "configure"
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11878 $ac_includes_default
11882 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11889 rm -f conftest.$ac_objext
11890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11891 (eval $ac_compile) 2>&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); } &&
11895 { ac_try='test -s conftest.$ac_objext'
11896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11897 (eval $ac_try) 2>&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); }; }; then
11903 echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11906 ac_lo=`expr '(' $ac_mid ')' + 1`
11908 rm -f conftest.$ac_objext conftest.$ac_ext
11911 ?*) ac_cv_sizeof_char=$ac_lo;;
11912 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11913 See \`config.log' for more details." >&5
11914 echo "$as_me: error: cannot compute sizeof (char), 77
11915 See \`config.log' for more details." >&2;}
11916 { (exit 1); exit 1; }; } ;;
11919 if test "$cross_compiling" = yes; then
11920 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
11921 See \`config.log' for more details." >&5
11922 echo "$as_me: error: cannot run test program while cross compiling
11923 See \`config.log' for more details." >&2;}
11924 { (exit 1); exit 1; }; }
11926 cat >conftest.$ac_ext <<_ACEOF
11927 #line $LINENO "configure"
11930 cat confdefs.h >>conftest.$ac_ext
11931 cat >>conftest.$ac_ext <<_ACEOF
11932 /* end confdefs.h. */
11933 $ac_includes_default
11934 long longval () { return (long) (sizeof (char)); }
11935 unsigned long ulongval () { return (long) (sizeof (char)); }
11937 #include <stdlib.h>
11942 FILE *f = fopen ("conftest.val", "w");
11945 if (((long) (sizeof (char))) < 0)
11947 long i = longval ();
11948 if (i != ((long) (sizeof (char))))
11950 fprintf (f, "%ld\n", i);
11954 unsigned long i = ulongval ();
11955 if (i != ((long) (sizeof (char))))
11957 fprintf (f, "%lu\n", i);
11959 exit (ferror (f) || fclose (f) != 0);
11965 rm -f conftest$ac_exeext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11967 (eval $ac_link) 2>&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11972 (eval $ac_try) 2>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; }; then
11976 ac_cv_sizeof_char=`cat conftest.val`
11978 echo "$as_me: program exited with status $ac_status" >&5
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11982 ( exit $ac_status )
11983 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
11984 See \`config.log' for more details." >&5
11985 echo "$as_me: error: cannot compute sizeof (char), 77
11986 See \`config.log' for more details." >&2;}
11987 { (exit 1); exit 1; }; }
11989 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11994 ac_cv_sizeof_char=0
11997 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
11998 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
11999 cat >>confdefs.h <<_ACEOF
12000 #define SIZEOF_CHAR $ac_cv_sizeof_char
12004 echo "$as_me:$LINENO: checking for short int" >&5
12005 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12006 if test "${ac_cv_type_short_int+set}" = set; then
12007 echo $ECHO_N "(cached) $ECHO_C" >&6
12009 cat >conftest.$ac_ext <<_ACEOF
12010 #line $LINENO "configure"
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12016 $ac_includes_default
12020 if ((short int *) 0)
12022 if (sizeof (short int))
12028 rm -f conftest.$ac_objext
12029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12030 (eval $ac_compile) 2>&5
12032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12033 (exit $ac_status); } &&
12034 { ac_try='test -s conftest.$ac_objext'
12035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12036 (eval $ac_try) 2>&5
12038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039 (exit $ac_status); }; }; then
12040 ac_cv_type_short_int=yes
12042 echo "$as_me: failed program was:" >&5
12043 sed 's/^/| /' conftest.$ac_ext >&5
12045 ac_cv_type_short_int=no
12047 rm -f conftest.$ac_objext conftest.$ac_ext
12049 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12050 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12052 echo "$as_me:$LINENO: checking size of short int" >&5
12053 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12054 if test "${ac_cv_sizeof_short_int+set}" = set; then
12055 echo $ECHO_N "(cached) $ECHO_C" >&6
12057 if test "$ac_cv_type_short_int" = yes; then
12058 # The cast to unsigned long works around a bug in the HP C Compiler
12059 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12060 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12061 # This bug is HP SR number 8606223364.
12062 if test "$cross_compiling" = yes; then
12063 # Depending upon the size, compute the lo and hi bounds.
12064 cat >conftest.$ac_ext <<_ACEOF
12065 #line $LINENO "configure"
12068 cat confdefs.h >>conftest.$ac_ext
12069 cat >>conftest.$ac_ext <<_ACEOF
12070 /* end confdefs.h. */
12071 $ac_includes_default
12075 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12082 rm -f conftest.$ac_objext
12083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12084 (eval $ac_compile) 2>&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } &&
12088 { ac_try='test -s conftest.$ac_objext'
12089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12090 (eval $ac_try) 2>&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); }; }; then
12096 cat >conftest.$ac_ext <<_ACEOF
12097 #line $LINENO "configure"
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h. */
12103 $ac_includes_default
12107 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12114 rm -f conftest.$ac_objext
12115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12116 (eval $ac_compile) 2>&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); } &&
12120 { ac_try='test -s conftest.$ac_objext'
12121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12122 (eval $ac_try) 2>&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); }; }; then
12126 ac_hi=$ac_mid; break
12128 echo "$as_me: failed program was:" >&5
12129 sed 's/^/| /' conftest.$ac_ext >&5
12131 ac_lo=`expr $ac_mid + 1`
12132 if test $ac_lo -le $ac_mid; then
12136 ac_mid=`expr 2 '*' $ac_mid + 1`
12138 rm -f conftest.$ac_objext conftest.$ac_ext
12141 echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12144 cat >conftest.$ac_ext <<_ACEOF
12145 #line $LINENO "configure"
12148 cat confdefs.h >>conftest.$ac_ext
12149 cat >>conftest.$ac_ext <<_ACEOF
12150 /* end confdefs.h. */
12151 $ac_includes_default
12155 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12162 rm -f conftest.$ac_objext
12163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12164 (eval $ac_compile) 2>&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } &&
12168 { ac_try='test -s conftest.$ac_objext'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; }; then
12176 cat >conftest.$ac_ext <<_ACEOF
12177 #line $LINENO "configure"
12180 cat confdefs.h >>conftest.$ac_ext
12181 cat >>conftest.$ac_ext <<_ACEOF
12182 /* end confdefs.h. */
12183 $ac_includes_default
12187 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12194 rm -f conftest.$ac_objext
12195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12196 (eval $ac_compile) 2>&5
12198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199 (exit $ac_status); } &&
12200 { ac_try='test -s conftest.$ac_objext'
12201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12202 (eval $ac_try) 2>&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); }; }; then
12206 ac_lo=$ac_mid; break
12208 echo "$as_me: failed program was:" >&5
12209 sed 's/^/| /' conftest.$ac_ext >&5
12211 ac_hi=`expr '(' $ac_mid ')' - 1`
12212 if test $ac_mid -le $ac_hi; then
12216 ac_mid=`expr 2 '*' $ac_mid`
12218 rm -f conftest.$ac_objext conftest.$ac_ext
12221 echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.$ac_ext >&5
12226 rm -f conftest.$ac_objext conftest.$ac_ext
12228 rm -f conftest.$ac_objext conftest.$ac_ext
12229 # Binary search between lo and hi bounds.
12230 while test "x$ac_lo" != "x$ac_hi"; do
12231 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12232 cat >conftest.$ac_ext <<_ACEOF
12233 #line $LINENO "configure"
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12239 $ac_includes_default
12243 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12250 rm -f conftest.$ac_objext
12251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12252 (eval $ac_compile) 2>&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 (exit $ac_status); } &&
12256 { ac_try='test -s conftest.$ac_objext'
12257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12258 (eval $ac_try) 2>&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); }; }; then
12264 echo "$as_me: failed program was:" >&5
12265 sed 's/^/| /' conftest.$ac_ext >&5
12267 ac_lo=`expr '(' $ac_mid ')' + 1`
12269 rm -f conftest.$ac_objext conftest.$ac_ext
12272 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12273 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12274 See \`config.log' for more details." >&5
12275 echo "$as_me: error: cannot compute sizeof (short int), 77
12276 See \`config.log' for more details." >&2;}
12277 { (exit 1); exit 1; }; } ;;
12280 if test "$cross_compiling" = yes; then
12281 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12282 See \`config.log' for more details." >&5
12283 echo "$as_me: error: cannot run test program while cross compiling
12284 See \`config.log' for more details." >&2;}
12285 { (exit 1); exit 1; }; }
12287 cat >conftest.$ac_ext <<_ACEOF
12288 #line $LINENO "configure"
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12294 $ac_includes_default
12295 long longval () { return (long) (sizeof (short int)); }
12296 unsigned long ulongval () { return (long) (sizeof (short int)); }
12298 #include <stdlib.h>
12303 FILE *f = fopen ("conftest.val", "w");
12306 if (((long) (sizeof (short int))) < 0)
12308 long i = longval ();
12309 if (i != ((long) (sizeof (short int))))
12311 fprintf (f, "%ld\n", i);
12315 unsigned long i = ulongval ();
12316 if (i != ((long) (sizeof (short int))))
12318 fprintf (f, "%lu\n", i);
12320 exit (ferror (f) || fclose (f) != 0);
12326 rm -f conftest$ac_exeext
12327 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12328 (eval $ac_link) 2>&5
12330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; }; then
12337 ac_cv_sizeof_short_int=`cat conftest.val`
12339 echo "$as_me: program exited with status $ac_status" >&5
12340 echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12343 ( exit $ac_status )
12344 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12345 See \`config.log' for more details." >&5
12346 echo "$as_me: error: cannot compute sizeof (short int), 77
12347 See \`config.log' for more details." >&2;}
12348 { (exit 1); exit 1; }; }
12350 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12355 ac_cv_sizeof_short_int=0
12358 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12359 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12360 cat >>confdefs.h <<_ACEOF
12361 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12365 echo "$as_me:$LINENO: checking for int" >&5
12366 echo $ECHO_N "checking for int... $ECHO_C" >&6
12367 if test "${ac_cv_type_int+set}" = set; then
12368 echo $ECHO_N "(cached) $ECHO_C" >&6
12370 cat >conftest.$ac_ext <<_ACEOF
12371 #line $LINENO "configure"
12374 cat confdefs.h >>conftest.$ac_ext
12375 cat >>conftest.$ac_ext <<_ACEOF
12376 /* end confdefs.h. */
12377 $ac_includes_default
12389 rm -f conftest.$ac_objext
12390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12391 (eval $ac_compile) 2>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } &&
12395 { ac_try='test -s conftest.$ac_objext'
12396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12397 (eval $ac_try) 2>&5
12399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12400 (exit $ac_status); }; }; then
12403 echo "$as_me: failed program was:" >&5
12404 sed 's/^/| /' conftest.$ac_ext >&5
12408 rm -f conftest.$ac_objext conftest.$ac_ext
12410 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12411 echo "${ECHO_T}$ac_cv_type_int" >&6
12413 echo "$as_me:$LINENO: checking size of int" >&5
12414 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12415 if test "${ac_cv_sizeof_int+set}" = set; then
12416 echo $ECHO_N "(cached) $ECHO_C" >&6
12418 if test "$ac_cv_type_int" = yes; then
12419 # The cast to unsigned long works around a bug in the HP C Compiler
12420 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12421 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12422 # This bug is HP SR number 8606223364.
12423 if test "$cross_compiling" = yes; then
12424 # Depending upon the size, compute the lo and hi bounds.
12425 cat >conftest.$ac_ext <<_ACEOF
12426 #line $LINENO "configure"
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12432 $ac_includes_default
12436 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12443 rm -f conftest.$ac_objext
12444 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12445 (eval $ac_compile) 2>&5
12447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12448 (exit $ac_status); } &&
12449 { ac_try='test -s conftest.$ac_objext'
12450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12451 (eval $ac_try) 2>&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); }; }; then
12457 cat >conftest.$ac_ext <<_ACEOF
12458 #line $LINENO "configure"
12461 cat confdefs.h >>conftest.$ac_ext
12462 cat >>conftest.$ac_ext <<_ACEOF
12463 /* end confdefs.h. */
12464 $ac_includes_default
12468 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12475 rm -f conftest.$ac_objext
12476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12477 (eval $ac_compile) 2>&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } &&
12481 { ac_try='test -s conftest.$ac_objext'
12482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12483 (eval $ac_try) 2>&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); }; }; then
12487 ac_hi=$ac_mid; break
12489 echo "$as_me: failed program was:" >&5
12490 sed 's/^/| /' conftest.$ac_ext >&5
12492 ac_lo=`expr $ac_mid + 1`
12493 if test $ac_lo -le $ac_mid; then
12497 ac_mid=`expr 2 '*' $ac_mid + 1`
12499 rm -f conftest.$ac_objext conftest.$ac_ext
12502 echo "$as_me: failed program was:" >&5
12503 sed 's/^/| /' conftest.$ac_ext >&5
12505 cat >conftest.$ac_ext <<_ACEOF
12506 #line $LINENO "configure"
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12512 $ac_includes_default
12516 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12523 rm -f conftest.$ac_objext
12524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12525 (eval $ac_compile) 2>&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); } &&
12529 { ac_try='test -s conftest.$ac_objext'
12530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12531 (eval $ac_try) 2>&5
12533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12534 (exit $ac_status); }; }; then
12537 cat >conftest.$ac_ext <<_ACEOF
12538 #line $LINENO "configure"
12541 cat confdefs.h >>conftest.$ac_ext
12542 cat >>conftest.$ac_ext <<_ACEOF
12543 /* end confdefs.h. */
12544 $ac_includes_default
12548 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12555 rm -f conftest.$ac_objext
12556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12557 (eval $ac_compile) 2>&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); } &&
12561 { ac_try='test -s conftest.$ac_objext'
12562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12563 (eval $ac_try) 2>&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; }; then
12567 ac_lo=$ac_mid; break
12569 echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12572 ac_hi=`expr '(' $ac_mid ')' - 1`
12573 if test $ac_mid -le $ac_hi; then
12577 ac_mid=`expr 2 '*' $ac_mid`
12579 rm -f conftest.$ac_objext conftest.$ac_ext
12582 echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.$ac_ext >&5
12587 rm -f conftest.$ac_objext conftest.$ac_ext
12589 rm -f conftest.$ac_objext conftest.$ac_ext
12590 # Binary search between lo and hi bounds.
12591 while test "x$ac_lo" != "x$ac_hi"; do
12592 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12593 cat >conftest.$ac_ext <<_ACEOF
12594 #line $LINENO "configure"
12597 cat confdefs.h >>conftest.$ac_ext
12598 cat >>conftest.$ac_ext <<_ACEOF
12599 /* end confdefs.h. */
12600 $ac_includes_default
12604 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12611 rm -f conftest.$ac_objext
12612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12613 (eval $ac_compile) 2>&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } &&
12617 { ac_try='test -s conftest.$ac_objext'
12618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12619 (eval $ac_try) 2>&5
12621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622 (exit $ac_status); }; }; then
12625 echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12628 ac_lo=`expr '(' $ac_mid ')' + 1`
12630 rm -f conftest.$ac_objext conftest.$ac_ext
12633 ?*) ac_cv_sizeof_int=$ac_lo;;
12634 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12635 See \`config.log' for more details." >&5
12636 echo "$as_me: error: cannot compute sizeof (int), 77
12637 See \`config.log' for more details." >&2;}
12638 { (exit 1); exit 1; }; } ;;
12641 if test "$cross_compiling" = yes; then
12642 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12643 See \`config.log' for more details." >&5
12644 echo "$as_me: error: cannot run test program while cross compiling
12645 See \`config.log' for more details." >&2;}
12646 { (exit 1); exit 1; }; }
12648 cat >conftest.$ac_ext <<_ACEOF
12649 #line $LINENO "configure"
12652 cat confdefs.h >>conftest.$ac_ext
12653 cat >>conftest.$ac_ext <<_ACEOF
12654 /* end confdefs.h. */
12655 $ac_includes_default
12656 long longval () { return (long) (sizeof (int)); }
12657 unsigned long ulongval () { return (long) (sizeof (int)); }
12659 #include <stdlib.h>
12664 FILE *f = fopen ("conftest.val", "w");
12667 if (((long) (sizeof (int))) < 0)
12669 long i = longval ();
12670 if (i != ((long) (sizeof (int))))
12672 fprintf (f, "%ld\n", i);
12676 unsigned long i = ulongval ();
12677 if (i != ((long) (sizeof (int))))
12679 fprintf (f, "%lu\n", i);
12681 exit (ferror (f) || fclose (f) != 0);
12687 rm -f conftest$ac_exeext
12688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12689 (eval $ac_link) 2>&5
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694 (eval $ac_try) 2>&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; }; then
12698 ac_cv_sizeof_int=`cat conftest.val`
12700 echo "$as_me: program exited with status $ac_status" >&5
12701 echo "$as_me: failed program was:" >&5
12702 sed 's/^/| /' conftest.$ac_ext >&5
12704 ( exit $ac_status )
12705 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12706 See \`config.log' for more details." >&5
12707 echo "$as_me: error: cannot compute sizeof (int), 77
12708 See \`config.log' for more details." >&2;}
12709 { (exit 1); exit 1; }; }
12711 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12719 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12720 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12721 cat >>confdefs.h <<_ACEOF
12722 #define SIZEOF_INT $ac_cv_sizeof_int
12726 echo "$as_me:$LINENO: checking for long int" >&5
12727 echo $ECHO_N "checking for long int... $ECHO_C" >&6
12728 if test "${ac_cv_type_long_int+set}" = set; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12731 cat >conftest.$ac_ext <<_ACEOF
12732 #line $LINENO "configure"
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h. */
12738 $ac_includes_default
12742 if ((long int *) 0)
12744 if (sizeof (long int))
12750 rm -f conftest.$ac_objext
12751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12752 (eval $ac_compile) 2>&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); } &&
12756 { ac_try='test -s conftest.$ac_objext'
12757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12758 (eval $ac_try) 2>&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; }; then
12762 ac_cv_type_long_int=yes
12764 echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.$ac_ext >&5
12767 ac_cv_type_long_int=no
12769 rm -f conftest.$ac_objext conftest.$ac_ext
12771 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
12772 echo "${ECHO_T}$ac_cv_type_long_int" >&6
12774 echo "$as_me:$LINENO: checking size of long int" >&5
12775 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
12776 if test "${ac_cv_sizeof_long_int+set}" = set; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 if test "$ac_cv_type_long_int" = yes; then
12780 # The cast to unsigned long works around a bug in the HP C Compiler
12781 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12782 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12783 # This bug is HP SR number 8606223364.
12784 if test "$cross_compiling" = yes; then
12785 # Depending upon the size, compute the lo and hi bounds.
12786 cat >conftest.$ac_ext <<_ACEOF
12787 #line $LINENO "configure"
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12793 $ac_includes_default
12797 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
12804 rm -f conftest.$ac_objext
12805 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12806 (eval $ac_compile) 2>&5
12808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809 (exit $ac_status); } &&
12810 { ac_try='test -s conftest.$ac_objext'
12811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12812 (eval $ac_try) 2>&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); }; }; then
12818 cat >conftest.$ac_ext <<_ACEOF
12819 #line $LINENO "configure"
12822 cat confdefs.h >>conftest.$ac_ext
12823 cat >>conftest.$ac_ext <<_ACEOF
12824 /* end confdefs.h. */
12825 $ac_includes_default
12829 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
12836 rm -f conftest.$ac_objext
12837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12838 (eval $ac_compile) 2>&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } &&
12842 { ac_try='test -s conftest.$ac_objext'
12843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12844 (eval $ac_try) 2>&5
12846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12847 (exit $ac_status); }; }; then
12848 ac_hi=$ac_mid; break
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.$ac_ext >&5
12853 ac_lo=`expr $ac_mid + 1`
12854 if test $ac_lo -le $ac_mid; then
12858 ac_mid=`expr 2 '*' $ac_mid + 1`
12860 rm -f conftest.$ac_objext conftest.$ac_ext
12863 echo "$as_me: failed program was:" >&5
12864 sed 's/^/| /' conftest.$ac_ext >&5
12866 cat >conftest.$ac_ext <<_ACEOF
12867 #line $LINENO "configure"
12870 cat confdefs.h >>conftest.$ac_ext
12871 cat >>conftest.$ac_ext <<_ACEOF
12872 /* end confdefs.h. */
12873 $ac_includes_default
12877 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
12884 rm -f conftest.$ac_objext
12885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12886 (eval $ac_compile) 2>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); } &&
12890 { ac_try='test -s conftest.$ac_objext'
12891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12892 (eval $ac_try) 2>&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); }; }; then
12898 cat >conftest.$ac_ext <<_ACEOF
12899 #line $LINENO "configure"
12902 cat confdefs.h >>conftest.$ac_ext
12903 cat >>conftest.$ac_ext <<_ACEOF
12904 /* end confdefs.h. */
12905 $ac_includes_default
12909 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
12916 rm -f conftest.$ac_objext
12917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12918 (eval $ac_compile) 2>&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 (exit $ac_status); } &&
12922 { ac_try='test -s conftest.$ac_objext'
12923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12924 (eval $ac_try) 2>&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; }; then
12928 ac_lo=$ac_mid; break
12930 echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.$ac_ext >&5
12933 ac_hi=`expr '(' $ac_mid ')' - 1`
12934 if test $ac_mid -le $ac_hi; then
12938 ac_mid=`expr 2 '*' $ac_mid`
12940 rm -f conftest.$ac_objext conftest.$ac_ext
12943 echo "$as_me: failed program was:" >&5
12944 sed 's/^/| /' conftest.$ac_ext >&5
12948 rm -f conftest.$ac_objext conftest.$ac_ext
12950 rm -f conftest.$ac_objext conftest.$ac_ext
12951 # Binary search between lo and hi bounds.
12952 while test "x$ac_lo" != "x$ac_hi"; do
12953 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12954 cat >conftest.$ac_ext <<_ACEOF
12955 #line $LINENO "configure"
12958 cat confdefs.h >>conftest.$ac_ext
12959 cat >>conftest.$ac_ext <<_ACEOF
12960 /* end confdefs.h. */
12961 $ac_includes_default
12965 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
12972 rm -f conftest.$ac_objext
12973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12974 (eval $ac_compile) 2>&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); } &&
12978 { ac_try='test -s conftest.$ac_objext'
12979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12980 (eval $ac_try) 2>&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; }; then
12986 echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12989 ac_lo=`expr '(' $ac_mid ')' + 1`
12991 rm -f conftest.$ac_objext conftest.$ac_ext
12994 ?*) ac_cv_sizeof_long_int=$ac_lo;;
12995 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
12996 See \`config.log' for more details." >&5
12997 echo "$as_me: error: cannot compute sizeof (long int), 77
12998 See \`config.log' for more details." >&2;}
12999 { (exit 1); exit 1; }; } ;;
13002 if test "$cross_compiling" = yes; then
13003 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13004 See \`config.log' for more details." >&5
13005 echo "$as_me: error: cannot run test program while cross compiling
13006 See \`config.log' for more details." >&2;}
13007 { (exit 1); exit 1; }; }
13009 cat >conftest.$ac_ext <<_ACEOF
13010 #line $LINENO "configure"
13013 cat confdefs.h >>conftest.$ac_ext
13014 cat >>conftest.$ac_ext <<_ACEOF
13015 /* end confdefs.h. */
13016 $ac_includes_default
13017 long longval () { return (long) (sizeof (long int)); }
13018 unsigned long ulongval () { return (long) (sizeof (long int)); }
13020 #include <stdlib.h>
13025 FILE *f = fopen ("conftest.val", "w");
13028 if (((long) (sizeof (long int))) < 0)
13030 long i = longval ();
13031 if (i != ((long) (sizeof (long int))))
13033 fprintf (f, "%ld\n", i);
13037 unsigned long i = ulongval ();
13038 if (i != ((long) (sizeof (long int))))
13040 fprintf (f, "%lu\n", i);
13042 exit (ferror (f) || fclose (f) != 0);
13048 rm -f conftest$ac_exeext
13049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13050 (eval $ac_link) 2>&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13055 (eval $ac_try) 2>&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; }; then
13059 ac_cv_sizeof_long_int=`cat conftest.val`
13061 echo "$as_me: program exited with status $ac_status" >&5
13062 echo "$as_me: failed program was:" >&5
13063 sed 's/^/| /' conftest.$ac_ext >&5
13065 ( exit $ac_status )
13066 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13067 See \`config.log' for more details." >&5
13068 echo "$as_me: error: cannot compute sizeof (long int), 77
13069 See \`config.log' for more details." >&2;}
13070 { (exit 1); exit 1; }; }
13072 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13077 ac_cv_sizeof_long_int=0
13080 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13081 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13082 cat >>confdefs.h <<_ACEOF
13083 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13087 echo "$as_me:$LINENO: checking for long long int" >&5
13088 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13089 if test "${ac_cv_type_long_long_int+set}" = set; then
13090 echo $ECHO_N "(cached) $ECHO_C" >&6
13092 cat >conftest.$ac_ext <<_ACEOF
13093 #line $LINENO "configure"
13096 cat confdefs.h >>conftest.$ac_ext
13097 cat >>conftest.$ac_ext <<_ACEOF
13098 /* end confdefs.h. */
13099 $ac_includes_default
13103 if ((long long int *) 0)
13105 if (sizeof (long long int))
13111 rm -f conftest.$ac_objext
13112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13113 (eval $ac_compile) 2>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } &&
13117 { ac_try='test -s conftest.$ac_objext'
13118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13119 (eval $ac_try) 2>&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; }; then
13123 ac_cv_type_long_long_int=yes
13125 echo "$as_me: failed program was:" >&5
13126 sed 's/^/| /' conftest.$ac_ext >&5
13128 ac_cv_type_long_long_int=no
13130 rm -f conftest.$ac_objext conftest.$ac_ext
13132 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13133 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13135 echo "$as_me:$LINENO: checking size of long long int" >&5
13136 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13137 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
13140 if test "$ac_cv_type_long_long_int" = yes; then
13141 # The cast to unsigned long works around a bug in the HP C Compiler
13142 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13143 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13144 # This bug is HP SR number 8606223364.
13145 if test "$cross_compiling" = yes; then
13146 # Depending upon the size, compute the lo and hi bounds.
13147 cat >conftest.$ac_ext <<_ACEOF
13148 #line $LINENO "configure"
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h. */
13154 $ac_includes_default
13158 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13165 rm -f conftest.$ac_objext
13166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13167 (eval $ac_compile) 2>&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } &&
13171 { ac_try='test -s conftest.$ac_objext'
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; }; then
13179 cat >conftest.$ac_ext <<_ACEOF
13180 #line $LINENO "configure"
13183 cat confdefs.h >>conftest.$ac_ext
13184 cat >>conftest.$ac_ext <<_ACEOF
13185 /* end confdefs.h. */
13186 $ac_includes_default
13190 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13197 rm -f conftest.$ac_objext
13198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13199 (eval $ac_compile) 2>&5
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); } &&
13203 { ac_try='test -s conftest.$ac_objext'
13204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13205 (eval $ac_try) 2>&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); }; }; then
13209 ac_hi=$ac_mid; break
13211 echo "$as_me: failed program was:" >&5
13212 sed 's/^/| /' conftest.$ac_ext >&5
13214 ac_lo=`expr $ac_mid + 1`
13215 if test $ac_lo -le $ac_mid; then
13219 ac_mid=`expr 2 '*' $ac_mid + 1`
13221 rm -f conftest.$ac_objext conftest.$ac_ext
13224 echo "$as_me: failed program was:" >&5
13225 sed 's/^/| /' conftest.$ac_ext >&5
13227 cat >conftest.$ac_ext <<_ACEOF
13228 #line $LINENO "configure"
13231 cat confdefs.h >>conftest.$ac_ext
13232 cat >>conftest.$ac_ext <<_ACEOF
13233 /* end confdefs.h. */
13234 $ac_includes_default
13238 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13245 rm -f conftest.$ac_objext
13246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13247 (eval $ac_compile) 2>&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); } &&
13251 { ac_try='test -s conftest.$ac_objext'
13252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13253 (eval $ac_try) 2>&5
13255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13256 (exit $ac_status); }; }; then
13259 cat >conftest.$ac_ext <<_ACEOF
13260 #line $LINENO "configure"
13263 cat confdefs.h >>conftest.$ac_ext
13264 cat >>conftest.$ac_ext <<_ACEOF
13265 /* end confdefs.h. */
13266 $ac_includes_default
13270 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13277 rm -f conftest.$ac_objext
13278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13279 (eval $ac_compile) 2>&5
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); } &&
13283 { ac_try='test -s conftest.$ac_objext'
13284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13285 (eval $ac_try) 2>&5
13287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288 (exit $ac_status); }; }; then
13289 ac_lo=$ac_mid; break
13291 echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13294 ac_hi=`expr '(' $ac_mid ')' - 1`
13295 if test $ac_mid -le $ac_hi; then
13299 ac_mid=`expr 2 '*' $ac_mid`
13301 rm -f conftest.$ac_objext conftest.$ac_ext
13304 echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13309 rm -f conftest.$ac_objext conftest.$ac_ext
13311 rm -f conftest.$ac_objext conftest.$ac_ext
13312 # Binary search between lo and hi bounds.
13313 while test "x$ac_lo" != "x$ac_hi"; do
13314 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13315 cat >conftest.$ac_ext <<_ACEOF
13316 #line $LINENO "configure"
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h. */
13322 $ac_includes_default
13326 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13333 rm -f conftest.$ac_objext
13334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13335 (eval $ac_compile) 2>&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); } &&
13339 { ac_try='test -s conftest.$ac_objext'
13340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13341 (eval $ac_try) 2>&5
13343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13344 (exit $ac_status); }; }; then
13347 echo "$as_me: failed program was:" >&5
13348 sed 's/^/| /' conftest.$ac_ext >&5
13350 ac_lo=`expr '(' $ac_mid ')' + 1`
13352 rm -f conftest.$ac_objext conftest.$ac_ext
13355 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13356 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13357 See \`config.log' for more details." >&5
13358 echo "$as_me: error: cannot compute sizeof (long long int), 77
13359 See \`config.log' for more details." >&2;}
13360 { (exit 1); exit 1; }; } ;;
13363 if test "$cross_compiling" = yes; then
13364 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13365 See \`config.log' for more details." >&5
13366 echo "$as_me: error: cannot run test program while cross compiling
13367 See \`config.log' for more details." >&2;}
13368 { (exit 1); exit 1; }; }
13370 cat >conftest.$ac_ext <<_ACEOF
13371 #line $LINENO "configure"
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13377 $ac_includes_default
13378 long longval () { return (long) (sizeof (long long int)); }
13379 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13381 #include <stdlib.h>
13386 FILE *f = fopen ("conftest.val", "w");
13389 if (((long) (sizeof (long long int))) < 0)
13391 long i = longval ();
13392 if (i != ((long) (sizeof (long long int))))
13394 fprintf (f, "%ld\n", i);
13398 unsigned long i = ulongval ();
13399 if (i != ((long) (sizeof (long long int))))
13401 fprintf (f, "%lu\n", i);
13403 exit (ferror (f) || fclose (f) != 0);
13409 rm -f conftest$ac_exeext
13410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13411 (eval $ac_link) 2>&5
13413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13416 (eval $ac_try) 2>&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; }; then
13420 ac_cv_sizeof_long_long_int=`cat conftest.val`
13422 echo "$as_me: program exited with status $ac_status" >&5
13423 echo "$as_me: failed program was:" >&5
13424 sed 's/^/| /' conftest.$ac_ext >&5
13426 ( exit $ac_status )
13427 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13428 See \`config.log' for more details." >&5
13429 echo "$as_me: error: cannot compute sizeof (long long int), 77
13430 See \`config.log' for more details." >&2;}
13431 { (exit 1); exit 1; }; }
13433 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13438 ac_cv_sizeof_long_long_int=0
13441 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13442 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13443 cat >>confdefs.h <<_ACEOF
13444 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13448 echo "$as_me:$LINENO: checking for int *" >&5
13449 echo $ECHO_N "checking for int *... $ECHO_C" >&6
13450 if test "${ac_cv_type_int_p+set}" = set; then
13451 echo $ECHO_N "(cached) $ECHO_C" >&6
13453 cat >conftest.$ac_ext <<_ACEOF
13454 #line $LINENO "configure"
13457 cat confdefs.h >>conftest.$ac_ext
13458 cat >>conftest.$ac_ext <<_ACEOF
13459 /* end confdefs.h. */
13460 $ac_includes_default
13466 if (sizeof (int *))
13472 rm -f conftest.$ac_objext
13473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13474 (eval $ac_compile) 2>&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } &&
13478 { ac_try='test -s conftest.$ac_objext'
13479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13480 (eval $ac_try) 2>&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); }; }; then
13484 ac_cv_type_int_p=yes
13486 echo "$as_me: failed program was:" >&5
13487 sed 's/^/| /' conftest.$ac_ext >&5
13489 ac_cv_type_int_p=no
13491 rm -f conftest.$ac_objext conftest.$ac_ext
13493 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13494 echo "${ECHO_T}$ac_cv_type_int_p" >&6
13496 echo "$as_me:$LINENO: checking size of int *" >&5
13497 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13498 if test "${ac_cv_sizeof_int_p+set}" = set; then
13499 echo $ECHO_N "(cached) $ECHO_C" >&6
13501 if test "$ac_cv_type_int_p" = yes; then
13502 # The cast to unsigned long works around a bug in the HP C Compiler
13503 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13504 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13505 # This bug is HP SR number 8606223364.
13506 if test "$cross_compiling" = yes; then
13507 # Depending upon the size, compute the lo and hi bounds.
13508 cat >conftest.$ac_ext <<_ACEOF
13509 #line $LINENO "configure"
13512 cat confdefs.h >>conftest.$ac_ext
13513 cat >>conftest.$ac_ext <<_ACEOF
13514 /* end confdefs.h. */
13515 $ac_includes_default
13519 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13526 rm -f conftest.$ac_objext
13527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13528 (eval $ac_compile) 2>&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); } &&
13532 { ac_try='test -s conftest.$ac_objext'
13533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13534 (eval $ac_try) 2>&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); }; }; then
13540 cat >conftest.$ac_ext <<_ACEOF
13541 #line $LINENO "configure"
13544 cat confdefs.h >>conftest.$ac_ext
13545 cat >>conftest.$ac_ext <<_ACEOF
13546 /* end confdefs.h. */
13547 $ac_includes_default
13551 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13558 rm -f conftest.$ac_objext
13559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13560 (eval $ac_compile) 2>&5
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); } &&
13564 { ac_try='test -s conftest.$ac_objext'
13565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13566 (eval $ac_try) 2>&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); }; }; then
13570 ac_hi=$ac_mid; break
13572 echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.$ac_ext >&5
13575 ac_lo=`expr $ac_mid + 1`
13576 if test $ac_lo -le $ac_mid; then
13580 ac_mid=`expr 2 '*' $ac_mid + 1`
13582 rm -f conftest.$ac_objext conftest.$ac_ext
13585 echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13588 cat >conftest.$ac_ext <<_ACEOF
13589 #line $LINENO "configure"
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13595 $ac_includes_default
13599 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13606 rm -f conftest.$ac_objext
13607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13608 (eval $ac_compile) 2>&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } &&
13612 { ac_try='test -s conftest.$ac_objext'
13613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13614 (eval $ac_try) 2>&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); }; }; then
13620 cat >conftest.$ac_ext <<_ACEOF
13621 #line $LINENO "configure"
13624 cat confdefs.h >>conftest.$ac_ext
13625 cat >>conftest.$ac_ext <<_ACEOF
13626 /* end confdefs.h. */
13627 $ac_includes_default
13631 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13638 rm -f conftest.$ac_objext
13639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13640 (eval $ac_compile) 2>&5
13642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13643 (exit $ac_status); } &&
13644 { ac_try='test -s conftest.$ac_objext'
13645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13646 (eval $ac_try) 2>&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }; }; then
13650 ac_lo=$ac_mid; break
13652 echo "$as_me: failed program was:" >&5
13653 sed 's/^/| /' conftest.$ac_ext >&5
13655 ac_hi=`expr '(' $ac_mid ')' - 1`
13656 if test $ac_mid -le $ac_hi; then
13660 ac_mid=`expr 2 '*' $ac_mid`
13662 rm -f conftest.$ac_objext conftest.$ac_ext
13665 echo "$as_me: failed program was:" >&5
13666 sed 's/^/| /' conftest.$ac_ext >&5
13670 rm -f conftest.$ac_objext conftest.$ac_ext
13672 rm -f conftest.$ac_objext conftest.$ac_ext
13673 # Binary search between lo and hi bounds.
13674 while test "x$ac_lo" != "x$ac_hi"; do
13675 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13676 cat >conftest.$ac_ext <<_ACEOF
13677 #line $LINENO "configure"
13680 cat confdefs.h >>conftest.$ac_ext
13681 cat >>conftest.$ac_ext <<_ACEOF
13682 /* end confdefs.h. */
13683 $ac_includes_default
13687 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13694 rm -f conftest.$ac_objext
13695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13696 (eval $ac_compile) 2>&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } &&
13700 { ac_try='test -s conftest.$ac_objext'
13701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702 (eval $ac_try) 2>&5
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; }; then
13708 echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13711 ac_lo=`expr '(' $ac_mid ')' + 1`
13713 rm -f conftest.$ac_objext conftest.$ac_ext
13716 ?*) ac_cv_sizeof_int_p=$ac_lo;;
13717 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13718 See \`config.log' for more details." >&5
13719 echo "$as_me: error: cannot compute sizeof (int *), 77
13720 See \`config.log' for more details." >&2;}
13721 { (exit 1); exit 1; }; } ;;
13724 if test "$cross_compiling" = yes; then
13725 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13726 See \`config.log' for more details." >&5
13727 echo "$as_me: error: cannot run test program while cross compiling
13728 See \`config.log' for more details." >&2;}
13729 { (exit 1); exit 1; }; }
13731 cat >conftest.$ac_ext <<_ACEOF
13732 #line $LINENO "configure"
13735 cat confdefs.h >>conftest.$ac_ext
13736 cat >>conftest.$ac_ext <<_ACEOF
13737 /* end confdefs.h. */
13738 $ac_includes_default
13739 long longval () { return (long) (sizeof (int *)); }
13740 unsigned long ulongval () { return (long) (sizeof (int *)); }
13742 #include <stdlib.h>
13747 FILE *f = fopen ("conftest.val", "w");
13750 if (((long) (sizeof (int *))) < 0)
13752 long i = longval ();
13753 if (i != ((long) (sizeof (int *))))
13755 fprintf (f, "%ld\n", i);
13759 unsigned long i = ulongval ();
13760 if (i != ((long) (sizeof (int *))))
13762 fprintf (f, "%lu\n", i);
13764 exit (ferror (f) || fclose (f) != 0);
13770 rm -f conftest$ac_exeext
13771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13772 (eval $ac_link) 2>&5
13774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13775 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13777 (eval $ac_try) 2>&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); }; }; then
13781 ac_cv_sizeof_int_p=`cat conftest.val`
13783 echo "$as_me: program exited with status $ac_status" >&5
13784 echo "$as_me: failed program was:" >&5
13785 sed 's/^/| /' conftest.$ac_ext >&5
13787 ( exit $ac_status )
13788 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13789 See \`config.log' for more details." >&5
13790 echo "$as_me: error: cannot compute sizeof (int *), 77
13791 See \`config.log' for more details." >&2;}
13792 { (exit 1); exit 1; }; }
13794 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13799 ac_cv_sizeof_int_p=0
13802 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
13803 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
13804 cat >>confdefs.h <<_ACEOF
13805 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
13810 # Check for sys/types.h types
13811 echo "$as_me:$LINENO: checking for u_int type" >&5
13812 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
13813 if test "${ac_cv_have_u_int+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
13817 cat >conftest.$ac_ext <<_ACEOF
13818 #line $LINENO "configure"
13821 cat confdefs.h >>conftest.$ac_ext
13822 cat >>conftest.$ac_ext <<_ACEOF
13823 /* end confdefs.h. */
13824 #include <sys/types.h>
13833 rm -f conftest.$ac_objext
13834 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13835 (eval $ac_compile) 2>&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); } &&
13839 { ac_try='test -s conftest.$ac_objext'
13840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841 (eval $ac_try) 2>&5
13843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844 (exit $ac_status); }; }; then
13845 ac_cv_have_u_int="yes"
13847 echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13850 ac_cv_have_u_int="no"
13853 rm -f conftest.$ac_objext conftest.$ac_ext
13856 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
13857 echo "${ECHO_T}$ac_cv_have_u_int" >&6
13858 if test "x$ac_cv_have_u_int" = "xyes" ; then
13859 cat >>confdefs.h <<\_ACEOF
13860 #define HAVE_U_INT 1
13866 echo "$as_me:$LINENO: checking for intmax_t type" >&5
13867 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
13868 if test "${ac_cv_have_intmax_t+set}" = set; then
13869 echo $ECHO_N "(cached) $ECHO_C" >&6
13872 cat >conftest.$ac_ext <<_ACEOF
13873 #line $LINENO "configure"
13876 cat confdefs.h >>conftest.$ac_ext
13877 cat >>conftest.$ac_ext <<_ACEOF
13878 /* end confdefs.h. */
13879 #include <sys/types.h>
13888 rm -f conftest.$ac_objext
13889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13890 (eval $ac_compile) 2>&5
13892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893 (exit $ac_status); } &&
13894 { ac_try='test -s conftest.$ac_objext'
13895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13896 (eval $ac_try) 2>&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 ac_cv_have_intmax_t="yes"
13902 echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.$ac_ext >&5
13906 cat >conftest.$ac_ext <<_ACEOF
13907 #line $LINENO "configure"
13910 cat confdefs.h >>conftest.$ac_ext
13911 cat >>conftest.$ac_ext <<_ACEOF
13912 /* end confdefs.h. */
13913 #include <stdint.h>
13922 rm -f conftest.$ac_objext
13923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13924 (eval $ac_compile) 2>&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } &&
13928 { ac_try='test -s conftest.$ac_objext'
13929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13930 (eval $ac_try) 2>&5
13932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13933 (exit $ac_status); }; }; then
13934 ac_cv_have_intmax_t="yes"
13936 echo "$as_me: failed program was:" >&5
13937 sed 's/^/| /' conftest.$ac_ext >&5
13939 ac_cv_have_intmax_t="no"
13942 rm -f conftest.$ac_objext conftest.$ac_ext
13946 rm -f conftest.$ac_objext conftest.$ac_ext
13950 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
13951 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
13952 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
13953 cat >>confdefs.h <<\_ACEOF
13954 #define HAVE_INTMAX_T 1
13961 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
13962 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
13963 if test "${ac_cv_have_u_intmax_t+set}" = set; then
13964 echo $ECHO_N "(cached) $ECHO_C" >&6
13967 cat >conftest.$ac_ext <<_ACEOF
13968 #line $LINENO "configure"
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h. */
13974 #include <sys/types.h>
13978 u_intmax_t a; a = 1;
13983 rm -f conftest.$ac_objext
13984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13985 (eval $ac_compile) 2>&5
13987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13988 (exit $ac_status); } &&
13989 { ac_try='test -s conftest.$ac_objext'
13990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13991 (eval $ac_try) 2>&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; }; then
13995 ac_cv_have_u_intmax_t="yes"
13997 echo "$as_me: failed program was:" >&5
13998 sed 's/^/| /' conftest.$ac_ext >&5
14001 cat >conftest.$ac_ext <<_ACEOF
14002 #line $LINENO "configure"
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h. */
14008 #include <stdint.h>
14012 u_intmax_t a; a = 1;
14017 rm -f conftest.$ac_objext
14018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14019 (eval $ac_compile) 2>&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); } &&
14023 { ac_try='test -s conftest.$ac_objext'
14024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025 (eval $ac_try) 2>&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; }; then
14029 ac_cv_have_u_intmax_t="yes"
14031 echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.$ac_ext >&5
14034 ac_cv_have_u_intmax_t="no"
14037 rm -f conftest.$ac_objext conftest.$ac_ext
14041 rm -f conftest.$ac_objext conftest.$ac_ext
14044 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14045 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14046 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14047 cat >>confdefs.h <<\_ACEOF
14048 #define HAVE_U_INTMAX_T 1
14055 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14056 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14057 if test "${ac_cv_have_intxx_t+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14061 cat >conftest.$ac_ext <<_ACEOF
14062 #line $LINENO "configure"
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h. */
14068 #include <sys/types.h>
14072 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14077 rm -f conftest.$ac_objext
14078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14079 (eval $ac_compile) 2>&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } &&
14083 { ac_try='test -s conftest.$ac_objext'
14084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14085 (eval $ac_try) 2>&5
14087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088 (exit $ac_status); }; }; then
14089 ac_cv_have_intxx_t="yes"
14091 echo "$as_me: failed program was:" >&5
14092 sed 's/^/| /' conftest.$ac_ext >&5
14094 ac_cv_have_intxx_t="no"
14097 rm -f conftest.$ac_objext conftest.$ac_ext
14100 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14101 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14102 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14103 cat >>confdefs.h <<\_ACEOF
14104 #define HAVE_INTXX_T 1
14110 echo "$as_me:$LINENO: checking for int64_t type" >&5
14111 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14112 if test "${ac_cv_have_int64_t+set}" = set; then
14113 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 cat >conftest.$ac_ext <<_ACEOF
14117 #line $LINENO "configure"
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h. */
14123 #include <sys/types.h>
14132 rm -f conftest.$ac_objext
14133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14134 (eval $ac_compile) 2>&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } &&
14138 { ac_try='test -s conftest.$ac_objext'
14139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14140 (eval $ac_try) 2>&5
14142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14143 (exit $ac_status); }; }; then
14144 ac_cv_have_int64_t="yes"
14146 echo "$as_me: failed program was:" >&5
14147 sed 's/^/| /' conftest.$ac_ext >&5
14149 ac_cv_have_int64_t="no"
14152 rm -f conftest.$ac_objext conftest.$ac_ext
14155 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14156 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14157 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14158 cat >>confdefs.h <<\_ACEOF
14159 #define HAVE_INT64_T 1
14165 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14166 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14167 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14168 echo $ECHO_N "(cached) $ECHO_C" >&6
14171 cat >conftest.$ac_ext <<_ACEOF
14172 #line $LINENO "configure"
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h. */
14178 #include <sys/types.h>
14182 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14187 rm -f conftest.$ac_objext
14188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14189 (eval $ac_compile) 2>&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } &&
14193 { ac_try='test -s conftest.$ac_objext'
14194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14195 (eval $ac_try) 2>&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); }; }; then
14199 ac_cv_have_u_intxx_t="yes"
14201 echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14204 ac_cv_have_u_intxx_t="no"
14207 rm -f conftest.$ac_objext conftest.$ac_ext
14210 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14211 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14212 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14213 cat >>confdefs.h <<\_ACEOF
14214 #define HAVE_U_INTXX_T 1
14220 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14221 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14222 if test "${ac_cv_have_u_int64_t+set}" = set; then
14223 echo $ECHO_N "(cached) $ECHO_C" >&6
14226 cat >conftest.$ac_ext <<_ACEOF
14227 #line $LINENO "configure"
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h. */
14233 #include <sys/types.h>
14237 u_int64_t a; a = 1;
14242 rm -f conftest.$ac_objext
14243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14244 (eval $ac_compile) 2>&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); } &&
14248 { ac_try='test -s conftest.$ac_objext'
14249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14250 (eval $ac_try) 2>&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); }; }; then
14254 ac_cv_have_u_int64_t="yes"
14256 echo "$as_me: failed program was:" >&5
14257 sed 's/^/| /' conftest.$ac_ext >&5
14259 ac_cv_have_u_int64_t="no"
14262 rm -f conftest.$ac_objext conftest.$ac_ext
14265 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14266 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14267 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14268 cat >>confdefs.h <<\_ACEOF
14269 #define HAVE_U_INT64_T 1
14275 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14276 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14278 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14279 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14280 cat >conftest.$ac_ext <<_ACEOF
14281 #line $LINENO "configure"
14284 cat confdefs.h >>conftest.$ac_ext
14285 cat >>conftest.$ac_ext <<_ACEOF
14286 /* end confdefs.h. */
14287 #include <sys/bitypes.h>
14291 int8_t a; int16_t b; int32_t c;
14292 u_int8_t e; u_int16_t f; u_int32_t g;
14293 a = b = c = e = f = g = 1;
14298 rm -f conftest.$ac_objext
14299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14300 (eval $ac_compile) 2>&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); } &&
14304 { ac_try='test -s conftest.$ac_objext'
14305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14306 (eval $ac_try) 2>&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); }; }; then
14310 cat >>confdefs.h <<\_ACEOF
14311 #define HAVE_U_INTXX_T 1
14314 cat >>confdefs.h <<\_ACEOF
14315 #define HAVE_INTXX_T 1
14318 cat >>confdefs.h <<\_ACEOF
14319 #define HAVE_SYS_BITYPES_H 1
14322 echo "$as_me:$LINENO: result: yes" >&5
14323 echo "${ECHO_T}yes" >&6
14325 echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.$ac_ext >&5
14328 echo "$as_me:$LINENO: result: no" >&5
14329 echo "${ECHO_T}no" >&6
14332 rm -f conftest.$ac_objext conftest.$ac_ext
14335 if test -z "$have_u_intxx_t" ; then
14336 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14337 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14338 if test "${ac_cv_have_uintxx_t+set}" = set; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14342 cat >conftest.$ac_ext <<_ACEOF
14343 #line $LINENO "configure"
14346 cat confdefs.h >>conftest.$ac_ext
14347 cat >>conftest.$ac_ext <<_ACEOF
14348 /* end confdefs.h. */
14349 #include <sys/types.h>
14353 uint8_t a; uint16_t b;
14354 uint32_t c; a = b = c = 1;
14359 rm -f conftest.$ac_objext
14360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14361 (eval $ac_compile) 2>&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } &&
14365 { ac_try='test -s conftest.$ac_objext'
14366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14367 (eval $ac_try) 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; }; then
14371 ac_cv_have_uintxx_t="yes"
14373 echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14376 ac_cv_have_uintxx_t="no"
14379 rm -f conftest.$ac_objext conftest.$ac_ext
14382 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14383 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14384 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14385 cat >>confdefs.h <<\_ACEOF
14386 #define HAVE_UINTXX_T 1
14422 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14423 echo "$as_me:$LINENO: checking for $ac_func" >&5
14424 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14425 if eval "test \"\${$as_ac_var+set}\" = set"; then
14426 echo $ECHO_N "(cached) $ECHO_C" >&6
14428 cat >conftest.$ac_ext <<_ACEOF
14429 #line $LINENO "configure"
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14435 /* System header to define __stub macros and hopefully few prototypes,
14436 which can conflict with char $ac_func (); below.
14437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14438 <limits.h> exists even on freestanding compilers. */
14440 # include <limits.h>
14442 # include <assert.h>
14444 /* Override any gcc2 internal prototype to avoid an error. */
14449 /* We use char because int might match the return type of a gcc2
14450 builtin and then its argument prototype would still apply. */
14452 /* The GNU C library defines this for functions which it implements
14453 to always fail with ENOSYS. Some functions are actually named
14454 something starting with __ and the normal name is an alias. */
14455 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14458 char (*f) () = $ac_func;
14467 return f != $ac_func;
14472 rm -f conftest.$ac_objext conftest$ac_exeext
14473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14474 (eval $ac_link) 2>&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } &&
14478 { ac_try='test -s conftest$ac_exeext'
14479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480 (eval $ac_try) 2>&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); }; }; then
14484 eval "$as_ac_var=yes"
14486 echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.$ac_ext >&5
14489 eval "$as_ac_var=no"
14491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14494 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14495 if test `eval echo '${'$as_ac_var'}'` = yes; then
14496 cat >>confdefs.h <<_ACEOF
14497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14501 echo 'configure: cannot find needed function.'; exit 1
14508 for ac_func in fchdir
14510 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14511 echo "$as_me:$LINENO: checking for $ac_func" >&5
14512 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14513 if eval "test \"\${$as_ac_var+set}\" = set"; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14516 cat >conftest.$ac_ext <<_ACEOF
14517 #line $LINENO "configure"
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h. */
14523 /* System header to define __stub macros and hopefully few prototypes,
14524 which can conflict with char $ac_func (); below.
14525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14526 <limits.h> exists even on freestanding compilers. */
14528 # include <limits.h>
14530 # include <assert.h>
14532 /* Override any gcc2 internal prototype to avoid an error. */
14537 /* We use char because int might match the return type of a gcc2
14538 builtin and then its argument prototype would still apply. */
14540 /* The GNU C library defines this for functions which it implements
14541 to always fail with ENOSYS. Some functions are actually named
14542 something starting with __ and the normal name is an alias. */
14543 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14546 char (*f) () = $ac_func;
14555 return f != $ac_func;
14560 rm -f conftest.$ac_objext conftest$ac_exeext
14561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14562 (eval $ac_link) 2>&5
14564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565 (exit $ac_status); } &&
14566 { ac_try='test -s conftest$ac_exeext'
14567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568 (eval $ac_try) 2>&5
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; }; then
14572 eval "$as_ac_var=yes"
14574 echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14577 eval "$as_ac_var=no"
14579 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14581 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14582 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14583 if test `eval echo '${'$as_ac_var'}'` = yes; then
14584 cat >>confdefs.h <<_ACEOF
14585 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14587 cat >>confdefs.h <<\_ACEOF
14588 #define HAVE_FCHDIR 1
14595 for ac_func in strtoll
14597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14598 echo "$as_me:$LINENO: checking for $ac_func" >&5
14599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14600 if eval "test \"\${$as_ac_var+set}\" = set"; then
14601 echo $ECHO_N "(cached) $ECHO_C" >&6
14603 cat >conftest.$ac_ext <<_ACEOF
14604 #line $LINENO "configure"
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h. */
14610 /* System header to define __stub macros and hopefully few prototypes,
14611 which can conflict with char $ac_func (); below.
14612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14613 <limits.h> exists even on freestanding compilers. */
14615 # include <limits.h>
14617 # include <assert.h>
14619 /* Override any gcc2 internal prototype to avoid an error. */
14624 /* We use char because int might match the return type of a gcc2
14625 builtin and then its argument prototype would still apply. */
14627 /* The GNU C library defines this for functions which it implements
14628 to always fail with ENOSYS. Some functions are actually named
14629 something starting with __ and the normal name is an alias. */
14630 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14633 char (*f) () = $ac_func;
14642 return f != $ac_func;
14647 rm -f conftest.$ac_objext conftest$ac_exeext
14648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14649 (eval $ac_link) 2>&5
14651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14652 (exit $ac_status); } &&
14653 { ac_try='test -s conftest$ac_exeext'
14654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14655 (eval $ac_try) 2>&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); }; }; then
14659 eval "$as_ac_var=yes"
14661 echo "$as_me: failed program was:" >&5
14662 sed 's/^/| /' conftest.$ac_ext >&5
14664 eval "$as_ac_var=no"
14666 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14670 if test `eval echo '${'$as_ac_var'}'` = yes; then
14671 cat >>confdefs.h <<_ACEOF
14672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14674 cat >>confdefs.h <<\_ACEOF
14675 #define HAVE_STRTOLL 1
14683 for ac_func in chflags
14685 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14686 echo "$as_me:$LINENO: checking for $ac_func" >&5
14687 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14688 if eval "test \"\${$as_ac_var+set}\" = set"; then
14689 echo $ECHO_N "(cached) $ECHO_C" >&6
14691 cat >conftest.$ac_ext <<_ACEOF
14692 #line $LINENO "configure"
14695 cat confdefs.h >>conftest.$ac_ext
14696 cat >>conftest.$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14698 /* System header to define __stub macros and hopefully few prototypes,
14699 which can conflict with char $ac_func (); below.
14700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14701 <limits.h> exists even on freestanding compilers. */
14703 # include <limits.h>
14705 # include <assert.h>
14707 /* Override any gcc2 internal prototype to avoid an error. */
14712 /* We use char because int might match the return type of a gcc2
14713 builtin and then its argument prototype would still apply. */
14715 /* The GNU C library defines this for functions which it implements
14716 to always fail with ENOSYS. Some functions are actually named
14717 something starting with __ and the normal name is an alias. */
14718 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14721 char (*f) () = $ac_func;
14730 return f != $ac_func;
14735 rm -f conftest.$ac_objext conftest$ac_exeext
14736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14737 (eval $ac_link) 2>&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); } &&
14741 { ac_try='test -s conftest$ac_exeext'
14742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14743 (eval $ac_try) 2>&5
14745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14746 (exit $ac_status); }; }; then
14747 eval "$as_ac_var=yes"
14749 echo "$as_me: failed program was:" >&5
14750 sed 's/^/| /' conftest.$ac_ext >&5
14752 eval "$as_ac_var=no"
14754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14757 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14758 if test `eval echo '${'$as_ac_var'}'` = yes; then
14759 cat >>confdefs.h <<_ACEOF
14760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14771 for ac_func in snprintf vsnprintf gethostid getdomainname
14773 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14774 echo "$as_me:$LINENO: checking for $ac_func" >&5
14775 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14776 if eval "test \"\${$as_ac_var+set}\" = set"; then
14777 echo $ECHO_N "(cached) $ECHO_C" >&6
14779 cat >conftest.$ac_ext <<_ACEOF
14780 #line $LINENO "configure"
14783 cat confdefs.h >>conftest.$ac_ext
14784 cat >>conftest.$ac_ext <<_ACEOF
14785 /* end confdefs.h. */
14786 /* System header to define __stub macros and hopefully few prototypes,
14787 which can conflict with char $ac_func (); below.
14788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14789 <limits.h> exists even on freestanding compilers. */
14791 # include <limits.h>
14793 # include <assert.h>
14795 /* Override any gcc2 internal prototype to avoid an error. */
14800 /* We use char because int might match the return type of a gcc2
14801 builtin and then its argument prototype would still apply. */
14803 /* The GNU C library defines this for functions which it implements
14804 to always fail with ENOSYS. Some functions are actually named
14805 something starting with __ and the normal name is an alias. */
14806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14809 char (*f) () = $ac_func;
14818 return f != $ac_func;
14823 rm -f conftest.$ac_objext conftest$ac_exeext
14824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14825 (eval $ac_link) 2>&5
14827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14828 (exit $ac_status); } &&
14829 { ac_try='test -s conftest$ac_exeext'
14830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14831 (eval $ac_try) 2>&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; }; then
14835 eval "$as_ac_var=yes"
14837 echo "$as_me: failed program was:" >&5
14838 sed 's/^/| /' conftest.$ac_ext >&5
14840 eval "$as_ac_var=no"
14842 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14844 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14845 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14846 if test `eval echo '${'$as_ac_var'}'` = yes; then
14847 cat >>confdefs.h <<_ACEOF
14848 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14859 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
14861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14862 echo "$as_me:$LINENO: checking for $ac_func" >&5
14863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14864 if eval "test \"\${$as_ac_var+set}\" = set"; then
14865 echo $ECHO_N "(cached) $ECHO_C" >&6
14867 cat >conftest.$ac_ext <<_ACEOF
14868 #line $LINENO "configure"
14871 cat confdefs.h >>conftest.$ac_ext
14872 cat >>conftest.$ac_ext <<_ACEOF
14873 /* end confdefs.h. */
14874 /* System header to define __stub macros and hopefully few prototypes,
14875 which can conflict with char $ac_func (); below.
14876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14877 <limits.h> exists even on freestanding compilers. */
14879 # include <limits.h>
14881 # include <assert.h>
14883 /* Override any gcc2 internal prototype to avoid an error. */
14888 /* We use char because int might match the return type of a gcc2
14889 builtin and then its argument prototype would still apply. */
14891 /* The GNU C library defines this for functions which it implements
14892 to always fail with ENOSYS. Some functions are actually named
14893 something starting with __ and the normal name is an alias. */
14894 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14897 char (*f) () = $ac_func;
14906 return f != $ac_func;
14911 rm -f conftest.$ac_objext conftest$ac_exeext
14912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14913 (eval $ac_link) 2>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); } &&
14917 { ac_try='test -s conftest$ac_exeext'
14918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14919 (eval $ac_try) 2>&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; }; then
14923 eval "$as_ac_var=yes"
14925 echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14928 eval "$as_ac_var=no"
14930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14933 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14934 if test `eval echo '${'$as_ac_var'}'` = yes; then
14935 cat >>confdefs.h <<_ACEOF
14936 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14943 # If resolver functions are not in libc check for -lnsl or -lresolv.
14944 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
14945 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
14946 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
14947 echo $ECHO_N "(cached) $ECHO_C" >&6
14949 cat >conftest.$ac_ext <<_ACEOF
14950 #line $LINENO "configure"
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h. */
14956 /* System header to define __stub macros and hopefully few prototypes,
14957 which can conflict with char gethostbyname_r (); below.
14958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14959 <limits.h> exists even on freestanding compilers. */
14961 # include <limits.h>
14963 # include <assert.h>
14965 /* Override any gcc2 internal prototype to avoid an error. */
14970 /* We use char because int might match the return type of a gcc2
14971 builtin and then its argument prototype would still apply. */
14972 char gethostbyname_r ();
14973 /* The GNU C library defines this for functions which it implements
14974 to always fail with ENOSYS. Some functions are actually named
14975 something starting with __ and the normal name is an alias. */
14976 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
14979 char (*f) () = gethostbyname_r;
14988 return f != gethostbyname_r;
14993 rm -f conftest.$ac_objext conftest$ac_exeext
14994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14995 (eval $ac_link) 2>&5
14997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998 (exit $ac_status); } &&
14999 { ac_try='test -s conftest$ac_exeext'
15000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15001 (eval $ac_try) 2>&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; }; then
15005 ac_cv_func_gethostbyname_r=yes
15007 echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15010 ac_cv_func_gethostbyname_r=no
15012 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15014 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15015 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15016 if test $ac_cv_func_gethostbyname_r = yes; then
15017 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15018 echo "${ECHO_T}using libc's resolver" >&6
15021 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15022 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15023 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15024 echo $ECHO_N "(cached) $ECHO_C" >&6
15026 ac_check_lib_save_LIBS=$LIBS
15028 cat >conftest.$ac_ext <<_ACEOF
15029 #line $LINENO "configure"
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h. */
15036 /* Override any gcc2 internal prototype to avoid an error. */
15040 /* We use char because int might match the return type of a gcc2
15041 builtin and then its argument prototype would still apply. */
15042 char gethostbyname_r ();
15046 gethostbyname_r ();
15051 rm -f conftest.$ac_objext conftest$ac_exeext
15052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15053 (eval $ac_link) 2>&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } &&
15057 { ac_try='test -s conftest$ac_exeext'
15058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15059 (eval $ac_try) 2>&5
15061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062 (exit $ac_status); }; }; then
15063 ac_cv_lib_nsl_gethostbyname_r=yes
15065 echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.$ac_ext >&5
15068 ac_cv_lib_nsl_gethostbyname_r=no
15070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15071 LIBS=$ac_check_lib_save_LIBS
15073 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15074 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15075 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15076 cat >>confdefs.h <<_ACEOF
15077 #define HAVE_LIBNSL 1
15085 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15086 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15087 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15088 echo $ECHO_N "(cached) $ECHO_C" >&6
15090 ac_check_lib_save_LIBS=$LIBS
15091 LIBS="-lresolv $LIBS"
15092 cat >conftest.$ac_ext <<_ACEOF
15093 #line $LINENO "configure"
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h. */
15100 /* Override any gcc2 internal prototype to avoid an error. */
15104 /* We use char because int might match the return type of a gcc2
15105 builtin and then its argument prototype would still apply. */
15106 char gethostbyname_r ();
15110 gethostbyname_r ();
15115 rm -f conftest.$ac_objext conftest$ac_exeext
15116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15117 (eval $ac_link) 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); } &&
15121 { ac_try='test -s conftest$ac_exeext'
15122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15123 (eval $ac_try) 2>&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; }; then
15127 ac_cv_lib_resolv_gethostbyname_r=yes
15129 echo "$as_me: failed program was:" >&5
15130 sed 's/^/| /' conftest.$ac_ext >&5
15132 ac_cv_lib_resolv_gethostbyname_r=no
15134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15135 LIBS=$ac_check_lib_save_LIBS
15137 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15138 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15139 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15140 cat >>confdefs.h <<_ACEOF
15141 #define HAVE_LIBRESOLV 1
15144 LIBS="-lresolv $LIBS"
15152 # Find where sockets are (especially for Solaris)
15153 echo "$as_me:$LINENO: checking for socket" >&5
15154 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15155 if test "${ac_cv_func_socket+set}" = set; then
15156 echo $ECHO_N "(cached) $ECHO_C" >&6
15158 cat >conftest.$ac_ext <<_ACEOF
15159 #line $LINENO "configure"
15162 cat confdefs.h >>conftest.$ac_ext
15163 cat >>conftest.$ac_ext <<_ACEOF
15164 /* end confdefs.h. */
15165 /* System header to define __stub macros and hopefully few prototypes,
15166 which can conflict with char socket (); below.
15167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15168 <limits.h> exists even on freestanding compilers. */
15170 # include <limits.h>
15172 # include <assert.h>
15174 /* Override any gcc2 internal prototype to avoid an error. */
15179 /* We use char because int might match the return type of a gcc2
15180 builtin and then its argument prototype would still apply. */
15182 /* The GNU C library defines this for functions which it implements
15183 to always fail with ENOSYS. Some functions are actually named
15184 something starting with __ and the normal name is an alias. */
15185 #if defined (__stub_socket) || defined (__stub___socket)
15188 char (*f) () = socket;
15197 return f != socket;
15202 rm -f conftest.$ac_objext conftest$ac_exeext
15203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15204 (eval $ac_link) 2>&5
15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15207 (exit $ac_status); } &&
15208 { ac_try='test -s conftest$ac_exeext'
15209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15210 (eval $ac_try) 2>&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); }; }; then
15214 ac_cv_func_socket=yes
15216 echo "$as_me: failed program was:" >&5
15217 sed 's/^/| /' conftest.$ac_ext >&5
15219 ac_cv_func_socket=no
15221 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15223 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15224 echo "${ECHO_T}$ac_cv_func_socket" >&6
15225 if test $ac_cv_func_socket = yes; then
15226 echo "$as_me:$LINENO: result: using libc's socket" >&5
15227 echo "${ECHO_T}using libc's socket" >&6
15230 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15231 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15232 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15235 ac_check_lib_save_LIBS=$LIBS
15236 LIBS="-lxnet $LIBS"
15237 cat >conftest.$ac_ext <<_ACEOF
15238 #line $LINENO "configure"
15241 cat confdefs.h >>conftest.$ac_ext
15242 cat >>conftest.$ac_ext <<_ACEOF
15243 /* end confdefs.h. */
15245 /* Override any gcc2 internal prototype to avoid an error. */
15249 /* We use char because int might match the return type of a gcc2
15250 builtin and then its argument prototype would still apply. */
15260 rm -f conftest.$ac_objext conftest$ac_exeext
15261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15262 (eval $ac_link) 2>&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } &&
15266 { ac_try='test -s conftest$ac_exeext'
15267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15268 (eval $ac_try) 2>&5
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; }; then
15272 ac_cv_lib_xnet_socket=yes
15274 echo "$as_me: failed program was:" >&5
15275 sed 's/^/| /' conftest.$ac_ext >&5
15277 ac_cv_lib_xnet_socket=no
15279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15280 LIBS=$ac_check_lib_save_LIBS
15282 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15283 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15284 if test $ac_cv_lib_xnet_socket = yes; then
15285 cat >>confdefs.h <<_ACEOF
15286 #define HAVE_LIBXNET 1
15289 LIBS="-lxnet $LIBS"
15294 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15295 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15296 if test "${ac_cv_lib_socket_socket+set}" = set; then
15297 echo $ECHO_N "(cached) $ECHO_C" >&6
15299 ac_check_lib_save_LIBS=$LIBS
15300 LIBS="-lsocket $LIBS"
15301 cat >conftest.$ac_ext <<_ACEOF
15302 #line $LINENO "configure"
15305 cat confdefs.h >>conftest.$ac_ext
15306 cat >>conftest.$ac_ext <<_ACEOF
15307 /* end confdefs.h. */
15309 /* Override any gcc2 internal prototype to avoid an error. */
15313 /* We use char because int might match the return type of a gcc2
15314 builtin and then its argument prototype would still apply. */
15324 rm -f conftest.$ac_objext conftest$ac_exeext
15325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15326 (eval $ac_link) 2>&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); } &&
15330 { ac_try='test -s conftest$ac_exeext'
15331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15332 (eval $ac_try) 2>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; }; then
15336 ac_cv_lib_socket_socket=yes
15338 echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.$ac_ext >&5
15341 ac_cv_lib_socket_socket=no
15343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15344 LIBS=$ac_check_lib_save_LIBS
15346 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15347 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15348 if test $ac_cv_lib_socket_socket = yes; then
15349 cat >>confdefs.h <<_ACEOF
15350 #define HAVE_LIBSOCKET 1
15353 LIBS="-lsocket $LIBS"
15358 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15359 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15360 if test "${ac_cv_lib_inet_socket+set}" = set; then
15361 echo $ECHO_N "(cached) $ECHO_C" >&6
15363 ac_check_lib_save_LIBS=$LIBS
15364 LIBS="-linet $LIBS"
15365 cat >conftest.$ac_ext <<_ACEOF
15366 #line $LINENO "configure"
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h. */
15373 /* Override any gcc2 internal prototype to avoid an error. */
15377 /* We use char because int might match the return type of a gcc2
15378 builtin and then its argument prototype would still apply. */
15388 rm -f conftest.$ac_objext conftest$ac_exeext
15389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15390 (eval $ac_link) 2>&5
15392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393 (exit $ac_status); } &&
15394 { ac_try='test -s conftest$ac_exeext'
15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; }; then
15400 ac_cv_lib_inet_socket=yes
15402 echo "$as_me: failed program was:" >&5
15403 sed 's/^/| /' conftest.$ac_ext >&5
15405 ac_cv_lib_inet_socket=no
15407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15408 LIBS=$ac_check_lib_save_LIBS
15410 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15411 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15412 if test $ac_cv_lib_inet_socket = yes; then
15413 cat >>confdefs.h <<_ACEOF
15414 #define HAVE_LIBINET 1
15417 LIBS="-linet $LIBS"
15425 for ac_func in inet_pton
15427 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15428 echo "$as_me:$LINENO: checking for $ac_func" >&5
15429 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15430 if eval "test \"\${$as_ac_var+set}\" = set"; then
15431 echo $ECHO_N "(cached) $ECHO_C" >&6
15433 cat >conftest.$ac_ext <<_ACEOF
15434 #line $LINENO "configure"
15437 cat confdefs.h >>conftest.$ac_ext
15438 cat >>conftest.$ac_ext <<_ACEOF
15439 /* end confdefs.h. */
15440 /* System header to define __stub macros and hopefully few prototypes,
15441 which can conflict with char $ac_func (); below.
15442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15443 <limits.h> exists even on freestanding compilers. */
15445 # include <limits.h>
15447 # include <assert.h>
15449 /* Override any gcc2 internal prototype to avoid an error. */
15454 /* We use char because int might match the return type of a gcc2
15455 builtin and then its argument prototype would still apply. */
15457 /* The GNU C library defines this for functions which it implements
15458 to always fail with ENOSYS. Some functions are actually named
15459 something starting with __ and the normal name is an alias. */
15460 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15463 char (*f) () = $ac_func;
15472 return f != $ac_func;
15477 rm -f conftest.$ac_objext conftest$ac_exeext
15478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15479 (eval $ac_link) 2>&5
15481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } &&
15483 { ac_try='test -s conftest$ac_exeext'
15484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15485 (eval $ac_try) 2>&5
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; }; then
15489 eval "$as_ac_var=yes"
15491 echo "$as_me: failed program was:" >&5
15492 sed 's/^/| /' conftest.$ac_ext >&5
15494 eval "$as_ac_var=no"
15496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15498 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15499 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15500 if test `eval echo '${'$as_ac_var'}'` = yes; then
15501 cat >>confdefs.h <<_ACEOF
15502 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15504 cat >>confdefs.h <<\_ACEOF
15505 #define HAVE_INET_PTON 1
15513 for ac_func in strftime
15515 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15516 echo "$as_me:$LINENO: checking for $ac_func" >&5
15517 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15518 if eval "test \"\${$as_ac_var+set}\" = set"; then
15519 echo $ECHO_N "(cached) $ECHO_C" >&6
15521 cat >conftest.$ac_ext <<_ACEOF
15522 #line $LINENO "configure"
15525 cat confdefs.h >>conftest.$ac_ext
15526 cat >>conftest.$ac_ext <<_ACEOF
15527 /* end confdefs.h. */
15528 /* System header to define __stub macros and hopefully few prototypes,
15529 which can conflict with char $ac_func (); below.
15530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15531 <limits.h> exists even on freestanding compilers. */
15533 # include <limits.h>
15535 # include <assert.h>
15537 /* Override any gcc2 internal prototype to avoid an error. */
15542 /* We use char because int might match the return type of a gcc2
15543 builtin and then its argument prototype would still apply. */
15545 /* The GNU C library defines this for functions which it implements
15546 to always fail with ENOSYS. Some functions are actually named
15547 something starting with __ and the normal name is an alias. */
15548 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15551 char (*f) () = $ac_func;
15560 return f != $ac_func;
15565 rm -f conftest.$ac_objext conftest$ac_exeext
15566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15567 (eval $ac_link) 2>&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); } &&
15571 { ac_try='test -s conftest$ac_exeext'
15572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15573 (eval $ac_try) 2>&5
15575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15576 (exit $ac_status); }; }; then
15577 eval "$as_ac_var=yes"
15579 echo "$as_me: failed program was:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15582 eval "$as_ac_var=no"
15584 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15586 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15587 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15588 if test `eval echo '${'$as_ac_var'}'` = yes; then
15589 cat >>confdefs.h <<_ACEOF
15590 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15594 # strftime is in -lintl on SCO UNIX.
15595 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15596 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
15597 if test "${ac_cv_lib_intl_strftime+set}" = set; then
15598 echo $ECHO_N "(cached) $ECHO_C" >&6
15600 ac_check_lib_save_LIBS=$LIBS
15601 LIBS="-lintl $LIBS"
15602 cat >conftest.$ac_ext <<_ACEOF
15603 #line $LINENO "configure"
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15610 /* Override any gcc2 internal prototype to avoid an error. */
15614 /* We use char because int might match the return type of a gcc2
15615 builtin and then its argument prototype would still apply. */
15625 rm -f conftest.$ac_objext conftest$ac_exeext
15626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15627 (eval $ac_link) 2>&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); } &&
15631 { ac_try='test -s conftest$ac_exeext'
15632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15633 (eval $ac_try) 2>&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); }; }; then
15637 ac_cv_lib_intl_strftime=yes
15639 echo "$as_me: failed program was:" >&5
15640 sed 's/^/| /' conftest.$ac_ext >&5
15642 ac_cv_lib_intl_strftime=no
15644 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15645 LIBS=$ac_check_lib_save_LIBS
15647 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
15648 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
15649 if test $ac_cv_lib_intl_strftime = yes; then
15650 cat >>confdefs.h <<\_ACEOF
15651 #define HAVE_STRFTIME 1
15654 LIBS="-lintl $LIBS"
15661 for ac_func in vprintf
15663 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15664 echo "$as_me:$LINENO: checking for $ac_func" >&5
15665 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15666 if eval "test \"\${$as_ac_var+set}\" = set"; then
15667 echo $ECHO_N "(cached) $ECHO_C" >&6
15669 cat >conftest.$ac_ext <<_ACEOF
15670 #line $LINENO "configure"
15673 cat confdefs.h >>conftest.$ac_ext
15674 cat >>conftest.$ac_ext <<_ACEOF
15675 /* end confdefs.h. */
15676 /* System header to define __stub macros and hopefully few prototypes,
15677 which can conflict with char $ac_func (); below.
15678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15679 <limits.h> exists even on freestanding compilers. */
15681 # include <limits.h>
15683 # include <assert.h>
15685 /* Override any gcc2 internal prototype to avoid an error. */
15690 /* We use char because int might match the return type of a gcc2
15691 builtin and then its argument prototype would still apply. */
15693 /* The GNU C library defines this for functions which it implements
15694 to always fail with ENOSYS. Some functions are actually named
15695 something starting with __ and the normal name is an alias. */
15696 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15699 char (*f) () = $ac_func;
15708 return f != $ac_func;
15713 rm -f conftest.$ac_objext conftest$ac_exeext
15714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15715 (eval $ac_link) 2>&5
15717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15718 (exit $ac_status); } &&
15719 { ac_try='test -s conftest$ac_exeext'
15720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15721 (eval $ac_try) 2>&5
15723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15724 (exit $ac_status); }; }; then
15725 eval "$as_ac_var=yes"
15727 echo "$as_me: failed program was:" >&5
15728 sed 's/^/| /' conftest.$ac_ext >&5
15730 eval "$as_ac_var=no"
15732 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15734 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15735 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15736 if test `eval echo '${'$as_ac_var'}'` = yes; then
15737 cat >>confdefs.h <<_ACEOF
15738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15741 echo "$as_me:$LINENO: checking for _doprnt" >&5
15742 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
15743 if test "${ac_cv_func__doprnt+set}" = set; then
15744 echo $ECHO_N "(cached) $ECHO_C" >&6
15746 cat >conftest.$ac_ext <<_ACEOF
15747 #line $LINENO "configure"
15750 cat confdefs.h >>conftest.$ac_ext
15751 cat >>conftest.$ac_ext <<_ACEOF
15752 /* end confdefs.h. */
15753 /* System header to define __stub macros and hopefully few prototypes,
15754 which can conflict with char _doprnt (); below.
15755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15756 <limits.h> exists even on freestanding compilers. */
15758 # include <limits.h>
15760 # include <assert.h>
15762 /* Override any gcc2 internal prototype to avoid an error. */
15767 /* We use char because int might match the return type of a gcc2
15768 builtin and then its argument prototype would still apply. */
15770 /* The GNU C library defines this for functions which it implements
15771 to always fail with ENOSYS. Some functions are actually named
15772 something starting with __ and the normal name is an alias. */
15773 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15776 char (*f) () = _doprnt;
15785 return f != _doprnt;
15790 rm -f conftest.$ac_objext conftest$ac_exeext
15791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15792 (eval $ac_link) 2>&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); } &&
15796 { ac_try='test -s conftest$ac_exeext'
15797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15798 (eval $ac_try) 2>&5
15800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15801 (exit $ac_status); }; }; then
15802 ac_cv_func__doprnt=yes
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15807 ac_cv_func__doprnt=no
15809 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15811 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15812 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
15813 if test $ac_cv_func__doprnt = yes; then
15815 cat >>confdefs.h <<\_ACEOF
15816 #define HAVE_DOPRNT 1
15825 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15826 # for constant arguments. Useless!
15827 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15828 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15829 if test "${ac_cv_working_alloca_h+set}" = set; then
15830 echo $ECHO_N "(cached) $ECHO_C" >&6
15832 cat >conftest.$ac_ext <<_ACEOF
15833 #line $LINENO "configure"
15836 cat confdefs.h >>conftest.$ac_ext
15837 cat >>conftest.$ac_ext <<_ACEOF
15838 /* end confdefs.h. */
15839 #include <alloca.h>
15843 char *p = (char *) alloca (2 * sizeof (int));
15848 rm -f conftest.$ac_objext conftest$ac_exeext
15849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15850 (eval $ac_link) 2>&5
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); } &&
15854 { ac_try='test -s conftest$ac_exeext'
15855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15856 (eval $ac_try) 2>&5
15858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15859 (exit $ac_status); }; }; then
15860 ac_cv_working_alloca_h=yes
15862 echo "$as_me: failed program was:" >&5
15863 sed 's/^/| /' conftest.$ac_ext >&5
15865 ac_cv_working_alloca_h=no
15867 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15869 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15870 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15871 if test $ac_cv_working_alloca_h = yes; then
15873 cat >>confdefs.h <<\_ACEOF
15874 #define HAVE_ALLOCA_H 1
15879 echo "$as_me:$LINENO: checking for alloca" >&5
15880 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15881 if test "${ac_cv_func_alloca_works+set}" = set; then
15882 echo $ECHO_N "(cached) $ECHO_C" >&6
15884 cat >conftest.$ac_ext <<_ACEOF
15885 #line $LINENO "configure"
15888 cat confdefs.h >>conftest.$ac_ext
15889 cat >>conftest.$ac_ext <<_ACEOF
15890 /* end confdefs.h. */
15892 # define alloca __builtin_alloca
15895 # include <malloc.h>
15896 # define alloca _alloca
15899 # include <alloca.h>
15904 # ifndef alloca /* predefined by HP cc +Olibcalls */
15915 char *p = (char *) alloca (1);
15920 rm -f conftest.$ac_objext conftest$ac_exeext
15921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15922 (eval $ac_link) 2>&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); } &&
15926 { ac_try='test -s conftest$ac_exeext'
15927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15928 (eval $ac_try) 2>&5
15930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15931 (exit $ac_status); }; }; then
15932 ac_cv_func_alloca_works=yes
15934 echo "$as_me: failed program was:" >&5
15935 sed 's/^/| /' conftest.$ac_ext >&5
15937 ac_cv_func_alloca_works=no
15939 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15941 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15942 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
15944 if test $ac_cv_func_alloca_works = yes; then
15946 cat >>confdefs.h <<\_ACEOF
15947 #define HAVE_ALLOCA 1
15951 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15952 # that cause trouble. Some versions do not even contain alloca or
15953 # contain a buggy version. If you still want to use their alloca,
15954 # use ar to extract alloca.o from them instead of compiling alloca.c.
15956 ALLOCA=alloca.$ac_objext
15958 cat >>confdefs.h <<\_ACEOF
15963 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15964 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15965 if test "${ac_cv_os_cray+set}" = set; then
15966 echo $ECHO_N "(cached) $ECHO_C" >&6
15968 cat >conftest.$ac_ext <<_ACEOF
15969 #line $LINENO "configure"
15972 cat confdefs.h >>conftest.$ac_ext
15973 cat >>conftest.$ac_ext <<_ACEOF
15974 /* end confdefs.h. */
15975 #if defined(CRAY) && ! defined(CRAY2)
15982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15983 $EGREP "webecray" >/dev/null 2>&1; then
15991 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15992 echo "${ECHO_T}$ac_cv_os_cray" >&6
15993 if test $ac_cv_os_cray = yes; then
15994 for ac_func in _getb67 GETB67 getb67; do
15995 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15996 echo "$as_me:$LINENO: checking for $ac_func" >&5
15997 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15998 if eval "test \"\${$as_ac_var+set}\" = set"; then
15999 echo $ECHO_N "(cached) $ECHO_C" >&6
16001 cat >conftest.$ac_ext <<_ACEOF
16002 #line $LINENO "configure"
16005 cat confdefs.h >>conftest.$ac_ext
16006 cat >>conftest.$ac_ext <<_ACEOF
16007 /* end confdefs.h. */
16008 /* System header to define __stub macros and hopefully few prototypes,
16009 which can conflict with char $ac_func (); below.
16010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16011 <limits.h> exists even on freestanding compilers. */
16013 # include <limits.h>
16015 # include <assert.h>
16017 /* Override any gcc2 internal prototype to avoid an error. */
16022 /* We use char because int might match the return type of a gcc2
16023 builtin and then its argument prototype would still apply. */
16025 /* The GNU C library defines this for functions which it implements
16026 to always fail with ENOSYS. Some functions are actually named
16027 something starting with __ and the normal name is an alias. */
16028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16031 char (*f) () = $ac_func;
16040 return f != $ac_func;
16045 rm -f conftest.$ac_objext conftest$ac_exeext
16046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16047 (eval $ac_link) 2>&5
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); } &&
16051 { ac_try='test -s conftest$ac_exeext'
16052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053 (eval $ac_try) 2>&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; }; then
16057 eval "$as_ac_var=yes"
16059 echo "$as_me: failed program was:" >&5
16060 sed 's/^/| /' conftest.$ac_ext >&5
16062 eval "$as_ac_var=no"
16064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16066 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16067 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16068 if test `eval echo '${'$as_ac_var'}'` = yes; then
16070 cat >>confdefs.h <<_ACEOF
16071 #define CRAY_STACKSEG_END $ac_func
16080 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16081 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16082 if test "${ac_cv_c_stack_direction+set}" = set; then
16083 echo $ECHO_N "(cached) $ECHO_C" >&6
16085 if test "$cross_compiling" = yes; then
16086 ac_cv_c_stack_direction=0
16088 cat >conftest.$ac_ext <<_ACEOF
16089 #line $LINENO "configure"
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16096 find_stack_direction ()
16098 static char *addr = 0;
16103 return find_stack_direction ();
16106 return (&dummy > addr) ? 1 : -1;
16112 exit (find_stack_direction () < 0);
16115 rm -f conftest$ac_exeext
16116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16117 (eval $ac_link) 2>&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16122 (eval $ac_try) 2>&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); }; }; then
16126 ac_cv_c_stack_direction=1
16128 echo "$as_me: program exited with status $ac_status" >&5
16129 echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16132 ( exit $ac_status )
16133 ac_cv_c_stack_direction=-1
16135 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16138 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16139 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16141 cat >>confdefs.h <<_ACEOF
16142 #define STACK_DIRECTION $ac_cv_c_stack_direction
16148 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16149 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16150 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16151 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16152 echo $ECHO_N "(cached) $ECHO_C" >&6
16154 ac_check_lib_save_LIBS=$LIBS
16156 cat >conftest.$ac_ext <<_ACEOF
16157 #line $LINENO "configure"
16160 cat confdefs.h >>conftest.$ac_ext
16161 cat >>conftest.$ac_ext <<_ACEOF
16162 /* end confdefs.h. */
16164 /* Override any gcc2 internal prototype to avoid an error. */
16168 /* We use char because int might match the return type of a gcc2
16169 builtin and then its argument prototype would still apply. */
16179 rm -f conftest.$ac_objext conftest$ac_exeext
16180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16181 (eval $ac_link) 2>&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); } &&
16185 { ac_try='test -s conftest$ac_exeext'
16186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16187 (eval $ac_try) 2>&5
16189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16190 (exit $ac_status); }; }; then
16191 ac_cv_lib_sun_getmntent=yes
16193 echo "$as_me: failed program was:" >&5
16194 sed 's/^/| /' conftest.$ac_ext >&5
16196 ac_cv_lib_sun_getmntent=no
16198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16199 LIBS=$ac_check_lib_save_LIBS
16201 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16202 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16203 if test $ac_cv_lib_sun_getmntent = yes; then
16206 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16207 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16208 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16209 echo $ECHO_N "(cached) $ECHO_C" >&6
16211 ac_check_lib_save_LIBS=$LIBS
16213 cat >conftest.$ac_ext <<_ACEOF
16214 #line $LINENO "configure"
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h. */
16221 /* Override any gcc2 internal prototype to avoid an error. */
16225 /* We use char because int might match the return type of a gcc2
16226 builtin and then its argument prototype would still apply. */
16236 rm -f conftest.$ac_objext conftest$ac_exeext
16237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16238 (eval $ac_link) 2>&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } &&
16242 { ac_try='test -s conftest$ac_exeext'
16243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16244 (eval $ac_try) 2>&5
16246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16247 (exit $ac_status); }; }; then
16248 ac_cv_lib_seq_getmntent=yes
16250 echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16253 ac_cv_lib_seq_getmntent=no
16255 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16256 LIBS=$ac_check_lib_save_LIBS
16258 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16259 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16260 if test $ac_cv_lib_seq_getmntent = yes; then
16263 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16264 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16265 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16266 echo $ECHO_N "(cached) $ECHO_C" >&6
16268 ac_check_lib_save_LIBS=$LIBS
16270 cat >conftest.$ac_ext <<_ACEOF
16271 #line $LINENO "configure"
16274 cat confdefs.h >>conftest.$ac_ext
16275 cat >>conftest.$ac_ext <<_ACEOF
16276 /* end confdefs.h. */
16278 /* Override any gcc2 internal prototype to avoid an error. */
16282 /* We use char because int might match the return type of a gcc2
16283 builtin and then its argument prototype would still apply. */
16293 rm -f conftest.$ac_objext conftest$ac_exeext
16294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16295 (eval $ac_link) 2>&5
16297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16298 (exit $ac_status); } &&
16299 { ac_try='test -s conftest$ac_exeext'
16300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16301 (eval $ac_try) 2>&5
16303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16304 (exit $ac_status); }; }; then
16305 ac_cv_lib_gen_getmntent=yes
16307 echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.$ac_ext >&5
16310 ac_cv_lib_gen_getmntent=no
16312 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16313 LIBS=$ac_check_lib_save_LIBS
16315 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16316 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16317 if test $ac_cv_lib_gen_getmntent = yes; then
16326 for ac_func in getmntent
16328 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16329 echo "$as_me:$LINENO: checking for $ac_func" >&5
16330 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16331 if eval "test \"\${$as_ac_var+set}\" = set"; then
16332 echo $ECHO_N "(cached) $ECHO_C" >&6
16334 cat >conftest.$ac_ext <<_ACEOF
16335 #line $LINENO "configure"
16338 cat confdefs.h >>conftest.$ac_ext
16339 cat >>conftest.$ac_ext <<_ACEOF
16340 /* end confdefs.h. */
16341 /* System header to define __stub macros and hopefully few prototypes,
16342 which can conflict with char $ac_func (); below.
16343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16344 <limits.h> exists even on freestanding compilers. */
16346 # include <limits.h>
16348 # include <assert.h>
16350 /* Override any gcc2 internal prototype to avoid an error. */
16355 /* We use char because int might match the return type of a gcc2
16356 builtin and then its argument prototype would still apply. */
16358 /* The GNU C library defines this for functions which it implements
16359 to always fail with ENOSYS. Some functions are actually named
16360 something starting with __ and the normal name is an alias. */
16361 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16364 char (*f) () = $ac_func;
16373 return f != $ac_func;
16378 rm -f conftest.$ac_objext conftest$ac_exeext
16379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16380 (eval $ac_link) 2>&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } &&
16384 { ac_try='test -s conftest$ac_exeext'
16385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16386 (eval $ac_try) 2>&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; }; then
16390 eval "$as_ac_var=yes"
16392 echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.$ac_ext >&5
16395 eval "$as_ac_var=no"
16397 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16400 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16401 if test `eval echo '${'$as_ac_var'}'` = yes; then
16402 cat >>confdefs.h <<_ACEOF
16403 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16410 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16411 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16412 if test "${ac_cv_func_closedir_void+set}" = set; then
16413 echo $ECHO_N "(cached) $ECHO_C" >&6
16415 if test "$cross_compiling" = yes; then
16416 ac_cv_func_closedir_void=yes
16418 cat >conftest.$ac_ext <<_ACEOF
16419 #line $LINENO "configure"
16422 cat confdefs.h >>conftest.$ac_ext
16423 cat >>conftest.$ac_ext <<_ACEOF
16424 /* end confdefs.h. */
16425 $ac_includes_default
16426 #include <$ac_header_dirent>
16427 #ifndef __cplusplus
16434 exit (closedir (opendir (".")) != 0);
16439 rm -f conftest$ac_exeext
16440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16441 (eval $ac_link) 2>&5
16443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446 (eval $ac_try) 2>&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; }; then
16450 ac_cv_func_closedir_void=no
16452 echo "$as_me: program exited with status $ac_status" >&5
16453 echo "$as_me: failed program was:" >&5
16454 sed 's/^/| /' conftest.$ac_ext >&5
16456 ( exit $ac_status )
16457 ac_cv_func_closedir_void=yes
16459 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16462 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
16463 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
16464 if test $ac_cv_func_closedir_void = yes; then
16466 cat >>confdefs.h <<\_ACEOF
16467 #define CLOSEDIR_VOID 1
16472 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16473 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16474 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16475 echo $ECHO_N "(cached) $ECHO_C" >&6
16477 if test "$cross_compiling" = yes; then
16478 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16479 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16480 { (exit 1); exit 1; }; }
16482 cat >conftest.$ac_ext <<_ACEOF
16483 #line $LINENO "configure"
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h. */
16490 # include <unistd.h>
16496 /* If this system has a BSD-style setpgrp which takes arguments,
16497 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16498 exit successfully. */
16499 exit (setpgrp (1,1) == -1 ? 0 : 1);
16504 rm -f conftest$ac_exeext
16505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16506 (eval $ac_link) 2>&5
16508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16509 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16511 (eval $ac_try) 2>&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); }; }; then
16515 ac_cv_func_setpgrp_void=no
16517 echo "$as_me: program exited with status $ac_status" >&5
16518 echo "$as_me: failed program was:" >&5
16519 sed 's/^/| /' conftest.$ac_ext >&5
16521 ( exit $ac_status )
16522 ac_cv_func_setpgrp_void=yes
16524 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16527 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16528 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16529 if test $ac_cv_func_setpgrp_void = yes; then
16531 cat >>confdefs.h <<\_ACEOF
16532 #define SETPGRP_VOID 1
16536 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
16537 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
16538 if test "${ac_cv_func_fnmatch_works+set}" = set; then
16539 echo $ECHO_N "(cached) $ECHO_C" >&6
16541 # Some versions of Solaris, SCO, and the GNU C Library
16542 # have a broken or incompatible fnmatch.
16543 # So we run a test program. If we are cross-compiling, take no chance.
16544 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
16545 if test "$cross_compiling" = yes; then
16546 ac_cv_func_fnmatch_works=cross
16548 cat >conftest.$ac_ext <<_ACEOF
16549 #line $LINENO "configure"
16552 cat confdefs.h >>conftest.$ac_ext
16553 cat >>conftest.$ac_ext <<_ACEOF
16554 /* end confdefs.h. */
16555 #include <fnmatch.h>
16556 # define y(a, b, c) (fnmatch (a, b, c) == 0)
16557 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
16563 (!(y ("a*", "abc", 0)
16564 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
16565 && y ("a\\\\bc", "abc", 0)
16566 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
16567 && y ("*x", ".x", 0)
16568 && n ("*x", ".x", FNM_PERIOD)
16574 rm -f conftest$ac_exeext
16575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16576 (eval $ac_link) 2>&5
16578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16579 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16581 (eval $ac_try) 2>&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); }; }; then
16585 ac_cv_func_fnmatch_works=yes
16587 echo "$as_me: program exited with status $ac_status" >&5
16588 echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16591 ( exit $ac_status )
16592 ac_cv_func_fnmatch_works=no
16594 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16597 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
16598 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
16599 if test $ac_cv_func_fnmatch_works = yes; then
16601 cat >>confdefs.h <<\_ACEOF
16602 #define HAVE_FNMATCH 1
16611 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16612 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16613 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16614 echo $ECHO_N "(cached) $ECHO_C" >&6
16616 ac_check_lib_save_LIBS=$LIBS
16617 LIBS="-lxpg4 $LIBS"
16618 cat >conftest.$ac_ext <<_ACEOF
16619 #line $LINENO "configure"
16622 cat confdefs.h >>conftest.$ac_ext
16623 cat >>conftest.$ac_ext <<_ACEOF
16624 /* end confdefs.h. */
16626 /* Override any gcc2 internal prototype to avoid an error. */
16630 /* We use char because int might match the return type of a gcc2
16631 builtin and then its argument prototype would still apply. */
16641 rm -f conftest.$ac_objext conftest$ac_exeext
16642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16643 (eval $ac_link) 2>&5
16645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16646 (exit $ac_status); } &&
16647 { ac_try='test -s conftest$ac_exeext'
16648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16649 (eval $ac_try) 2>&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; }; then
16653 ac_cv_lib_xpg4_setlocale=yes
16655 echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16658 ac_cv_lib_xpg4_setlocale=no
16660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16661 LIBS=$ac_check_lib_save_LIBS
16663 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
16664 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16665 if test $ac_cv_lib_xpg4_setlocale = yes; then
16666 LIBS="$LIBS -lxpg4"
16672 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
16673 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
16674 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
16675 echo $ECHO_N "(cached) $ECHO_C" >&6
16677 ac_check_lib_save_LIBS=$LIBS
16679 cat >conftest.$ac_ext <<_ACEOF
16680 #line $LINENO "configure"
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h. */
16687 /* Override any gcc2 internal prototype to avoid an error. */
16691 /* We use char because int might match the return type of a gcc2
16692 builtin and then its argument prototype would still apply. */
16702 rm -f conftest.$ac_objext conftest$ac_exeext
16703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16704 (eval $ac_link) 2>&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } &&
16708 { ac_try='test -s conftest$ac_exeext'
16709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710 (eval $ac_try) 2>&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; }; then
16714 ac_cv_lib_sun_getpwnam=yes
16716 echo "$as_me: failed program was:" >&5
16717 sed 's/^/| /' conftest.$ac_ext >&5
16719 ac_cv_lib_sun_getpwnam=no
16721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16722 LIBS=$ac_check_lib_save_LIBS
16724 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
16725 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
16726 if test $ac_cv_lib_sun_getpwnam = yes; then
16727 cat >>confdefs.h <<_ACEOF
16728 #define HAVE_LIBSUN 1
16737 for ac_header in zlib.h
16739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16740 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16741 echo "$as_me:$LINENO: checking for $ac_header" >&5
16742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16743 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16744 echo $ECHO_N "(cached) $ECHO_C" >&6
16746 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16747 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16749 # Is the header compilable?
16750 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16751 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16752 cat >conftest.$ac_ext <<_ACEOF
16753 #line $LINENO "configure"
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h. */
16759 $ac_includes_default
16760 #include <$ac_header>
16762 rm -f conftest.$ac_objext
16763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16764 (eval $ac_compile) 2>&5
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); } &&
16768 { ac_try='test -s conftest.$ac_objext'
16769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16770 (eval $ac_try) 2>&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); }; }; then
16774 ac_header_compiler=yes
16776 echo "$as_me: failed program was:" >&5
16777 sed 's/^/| /' conftest.$ac_ext >&5
16779 ac_header_compiler=no
16781 rm -f conftest.$ac_objext conftest.$ac_ext
16782 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16783 echo "${ECHO_T}$ac_header_compiler" >&6
16785 # Is the header present?
16786 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16787 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16788 cat >conftest.$ac_ext <<_ACEOF
16789 #line $LINENO "configure"
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16795 #include <$ac_header>
16797 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16798 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16800 grep -v '^ *+' conftest.er1 >conftest.err
16802 cat conftest.err >&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); } >/dev/null; then
16805 if test -s conftest.err; then
16806 ac_cpp_err=$ac_c_preproc_warn_flag
16813 if test -z "$ac_cpp_err"; then
16814 ac_header_preproc=yes
16816 echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16819 ac_header_preproc=no
16821 rm -f conftest.err conftest.$ac_ext
16822 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16823 echo "${ECHO_T}$ac_header_preproc" >&6
16825 # So? What about this header?
16826 case $ac_header_compiler:$ac_header_preproc in
16828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16834 ## ------------------------------------ ##
16835 ## Report this to bug-autoconf@gnu.org. ##
16836 ## ------------------------------------ ##
16839 sed "s/^/$as_me: WARNING: /" >&2
16842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16850 ## ------------------------------------ ##
16851 ## Report this to bug-autoconf@gnu.org. ##
16852 ## ------------------------------------ ##
16855 sed "s/^/$as_me: WARNING: /" >&2
16858 echo "$as_me:$LINENO: checking for $ac_header" >&5
16859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16860 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16861 echo $ECHO_N "(cached) $ECHO_C" >&6
16863 eval "$as_ac_Header=$ac_header_preproc"
16865 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16866 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16870 cat >>confdefs.h <<_ACEOF
16871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16878 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
16879 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
16880 if test "${ac_cv_lib_z_deflate+set}" = set; then
16881 echo $ECHO_N "(cached) $ECHO_C" >&6
16883 ac_check_lib_save_LIBS=$LIBS
16885 cat >conftest.$ac_ext <<_ACEOF
16886 #line $LINENO "configure"
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h. */
16893 /* Override any gcc2 internal prototype to avoid an error. */
16897 /* We use char because int might match the return type of a gcc2
16898 builtin and then its argument prototype would still apply. */
16908 rm -f conftest.$ac_objext conftest$ac_exeext
16909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16910 (eval $ac_link) 2>&5
16912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16913 (exit $ac_status); } &&
16914 { ac_try='test -s conftest$ac_exeext'
16915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16916 (eval $ac_try) 2>&5
16918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16919 (exit $ac_status); }; }; then
16920 ac_cv_lib_z_deflate=yes
16922 echo "$as_me: failed program was:" >&5
16923 sed 's/^/| /' conftest.$ac_ext >&5
16925 ac_cv_lib_z_deflate=no
16927 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16928 LIBS=$ac_check_lib_save_LIBS
16930 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
16931 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
16932 if test $ac_cv_lib_z_deflate = yes; then
16937 if test x$FDLIBS = x-lz; then
16938 cat >>confdefs.h <<\_ACEOF
16939 #define HAVE_LIBZ 1
16946 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
16947 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
16948 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
16949 echo $ECHO_N "(cached) $ECHO_C" >&6
16951 ac_check_lib_save_LIBS=$LIBS
16952 LIBS="-lpthread $LIBS"
16953 cat >conftest.$ac_ext <<_ACEOF
16954 #line $LINENO "configure"
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h. */
16961 /* Override any gcc2 internal prototype to avoid an error. */
16965 /* We use char because int might match the return type of a gcc2
16966 builtin and then its argument prototype would still apply. */
16967 char pthread_create ();
16976 rm -f conftest.$ac_objext conftest$ac_exeext
16977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16978 (eval $ac_link) 2>&5
16980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16981 (exit $ac_status); } &&
16982 { ac_try='test -s conftest$ac_exeext'
16983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16984 (eval $ac_try) 2>&5
16986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987 (exit $ac_status); }; }; then
16988 ac_cv_lib_pthread_pthread_create=yes
16990 echo "$as_me: failed program was:" >&5
16991 sed 's/^/| /' conftest.$ac_ext >&5
16993 ac_cv_lib_pthread_pthread_create=no
16995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16996 LIBS=$ac_check_lib_save_LIBS
16998 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
16999 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17000 if test $ac_cv_lib_pthread_pthread_create = yes; then
17001 PTHREAD_LIB="-lpthread"
17003 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17004 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17005 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17006 echo $ECHO_N "(cached) $ECHO_C" >&6
17008 ac_check_lib_save_LIBS=$LIBS
17009 LIBS="-lpthreads $LIBS"
17010 cat >conftest.$ac_ext <<_ACEOF
17011 #line $LINENO "configure"
17014 cat confdefs.h >>conftest.$ac_ext
17015 cat >>conftest.$ac_ext <<_ACEOF
17016 /* end confdefs.h. */
17018 /* Override any gcc2 internal prototype to avoid an error. */
17022 /* We use char because int might match the return type of a gcc2
17023 builtin and then its argument prototype would still apply. */
17024 char pthread_create ();
17033 rm -f conftest.$ac_objext conftest$ac_exeext
17034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17035 (eval $ac_link) 2>&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } &&
17039 { ac_try='test -s conftest$ac_exeext'
17040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17041 (eval $ac_try) 2>&5
17043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17044 (exit $ac_status); }; }; then
17045 ac_cv_lib_pthreads_pthread_create=yes
17047 echo "$as_me: failed program was:" >&5
17048 sed 's/^/| /' conftest.$ac_ext >&5
17050 ac_cv_lib_pthreads_pthread_create=no
17052 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17053 LIBS=$ac_check_lib_save_LIBS
17055 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17056 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17057 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17058 PTHREAD_LIB="-lpthreads"
17060 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17061 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17062 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17063 echo $ECHO_N "(cached) $ECHO_C" >&6
17065 ac_check_lib_save_LIBS=$LIBS
17067 cat >conftest.$ac_ext <<_ACEOF
17068 #line $LINENO "configure"
17071 cat confdefs.h >>conftest.$ac_ext
17072 cat >>conftest.$ac_ext <<_ACEOF
17073 /* end confdefs.h. */
17075 /* Override any gcc2 internal prototype to avoid an error. */
17079 /* We use char because int might match the return type of a gcc2
17080 builtin and then its argument prototype would still apply. */
17081 char pthread_create ();
17090 rm -f conftest.$ac_objext conftest$ac_exeext
17091 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17092 (eval $ac_link) 2>&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } &&
17096 { ac_try='test -s conftest$ac_exeext'
17097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17098 (eval $ac_try) 2>&5
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); }; }; then
17102 ac_cv_lib_c_r_pthread_create=yes
17104 echo "$as_me: failed program was:" >&5
17105 sed 's/^/| /' conftest.$ac_ext >&5
17107 ac_cv_lib_c_r_pthread_create=no
17109 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17110 LIBS=$ac_check_lib_save_LIBS
17112 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17113 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17114 if test $ac_cv_lib_c_r_pthread_create = yes; then
17115 PTHREAD_LIB="-lc_r"
17117 echo "$as_me:$LINENO: checking for pthread_create" >&5
17118 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17119 if test "${ac_cv_func_pthread_create+set}" = set; then
17120 echo $ECHO_N "(cached) $ECHO_C" >&6
17122 cat >conftest.$ac_ext <<_ACEOF
17123 #line $LINENO "configure"
17126 cat confdefs.h >>conftest.$ac_ext
17127 cat >>conftest.$ac_ext <<_ACEOF
17128 /* end confdefs.h. */
17129 /* System header to define __stub macros and hopefully few prototypes,
17130 which can conflict with char pthread_create (); below.
17131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17132 <limits.h> exists even on freestanding compilers. */
17134 # include <limits.h>
17136 # include <assert.h>
17138 /* Override any gcc2 internal prototype to avoid an error. */
17143 /* We use char because int might match the return type of a gcc2
17144 builtin and then its argument prototype would still apply. */
17145 char pthread_create ();
17146 /* The GNU C library defines this for functions which it implements
17147 to always fail with ENOSYS. Some functions are actually named
17148 something starting with __ and the normal name is an alias. */
17149 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17152 char (*f) () = pthread_create;
17161 return f != pthread_create;
17166 rm -f conftest.$ac_objext conftest$ac_exeext
17167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17168 (eval $ac_link) 2>&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } &&
17172 { ac_try='test -s conftest$ac_exeext'
17173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174 (eval $ac_try) 2>&5
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; }; then
17178 ac_cv_func_pthread_create=yes
17180 echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17183 ac_cv_func_pthread_create=no
17185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17187 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17188 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17201 cat >>confdefs.h <<\_ACEOF
17207 CFLAGS=${CFLAGS--O}
17208 LDFLAGS=${LDFLAGS--O}
17209 DB_LIBS="${SQL_LFLAGS}"
17211 CPPFLAGS="$CPPFLAGS"
17236 # Finally we set appropriate distribution specific
17237 # variables and defaults
17239 # PFILES are platform specific files
17240 PFILES="platforms/Makefile"
17243 hostname=`uname -n`
17244 case "$DISTNAME" in
17247 PSCMD="ps -e -o pid,comm"
17248 PFILES="${PFILES} \
17249 platforms/aix/Makefile"
17250 TAPEDRIVE="/dev/rmt0.1"
17254 PTHREAD_LIB="-lpthread -lexc"
17255 if test "${CC}" = "gcc" ; then
17262 TAPEDRIVE="/dev/nrmt0"
17265 DISTVER=`uname -a |awk '{print $3}'`
17266 TAPEDRIVE="/dev/nrmt0"
17267 PTHREAD_LIB="-pthread"
17268 CFLAGS="${CFLAGS} -pthread"
17269 PSCMD="ps -x -o pid,command"
17272 PFILES="${PFILES} \
17273 platforms/bsdi/Makefile \
17274 platforms/bsdi/bacula-fd \
17275 platforms/bsdi/bacula-sd \
17276 platforms/bsdi/bacula-dir"
17277 hostname=`hostname -s`
17278 largefile_support="yes"
17281 DISTVER=`uname -a |awk '{print $3}'`
17282 TAPEDRIVE="/dev/nrst0"
17284 WCFLAGS="-mwindows"
17285 WLDFLAGS="-mwindows"
17289 TAPEDRIVE="/dev/nst0"
17290 PSCMD="ps -e -o pid,command"
17291 hostname=`hostname -s`
17292 PFILES="${PFILES} \
17293 platforms/darwin/Makefile"
17296 DISTVER=`cat /etc/debian_version`
17297 TAPEDRIVE="/dev/nrst0"
17298 PSCMD="ps -e -o pid,command"
17299 hostname=`hostname -s`
17302 DISTVER=`uname -a |awk '{print $3}'`
17303 VER=`echo $DISTVER | cut -c 1`
17304 if test x$VER = x4 ; then
17305 PTHREAD_LIB="-pthread"
17306 CFLAGS="${CFLAGS} -pthread"
17310 TAPEDRIVE="/dev/nrsa0"
17311 PSCMD="ps -x -o pid,command"
17312 PFILES="${PFILES} \
17313 platforms/freebsd/Makefile \
17314 platforms/freebsd/bacula-fd \
17315 platforms/freebsd/bacula-sd \
17316 platforms/freebsd/bacula-dir"
17317 hostname=`hostname -s`
17318 largefile_support="yes"
17322 TAPEDRIVE="/dev/rmt/0hnb"
17326 TAPEDRIVE="/dev/rmt/0cbn"
17327 PSCMD="ps -e -o pid,comm"
17328 PFILES="${PFILES} \
17329 platforms/irix/Makefile \
17330 platforms/irix/bacula-fd \
17331 platforms/irix/bacula-sd \
17332 platforms/irix/bacula-dir"
17335 DISTVER=`uname -a |awk '{print $3}'`
17338 TAPEDRIVE="/dev/nrst0"
17339 PSCMD="ps -a -o pid,command"
17340 PTHREAD_LIB="-pthread"
17341 CFLAGS="${CFLAGS} -pthread"
17344 DISTVER=`uname -a |awk '{print $3}'`
17347 TAPEDRIVE="/dev/nrst0"
17348 PSCMD="ps -a -o pid,command"
17349 PTHREAD_LIB="-pthread"
17350 CFLAGS="${CFLAGS} -pthread"
17351 PFILES="${PFILES} \
17352 platforms/openbsd/Makefile \
17353 platforms/openbsd/bacula-fd \
17354 platforms/openbsd/bacula-sd \
17355 platforms/openbsd/bacula-dir"
17358 DISTVER=`cat /etc/redhat-release | grep release |\
17360 TAPEDRIVE="/dev/nst0"
17361 PSCMD="ps -e -o pid,command"
17362 PFILES="${PFILES} \
17363 platforms/redhat/Makefile \
17364 platforms/redhat/bacula-fd \
17365 platforms/redhat/bacula-sd \
17366 platforms/redhat/bacula-dir \
17367 platforms/redhat/bacula.spec \
17369 hostname=`hostname -s`
17372 DISTVER=`cat /etc/mandrake-release | grep release |\
17374 TAPEDRIVE="/dev/nst0"
17375 PSCMD="ps -e -o pid,command"
17376 PFILES="${PFILES} \
17377 platforms/mandrake/Makefile \
17378 platforms/mandrake/bacula-fd \
17379 platforms/mandrake/bacula-sd \
17380 platforms/mandrake/bacula-dir \
17381 platforms/mandrake/bacula.spec \
17383 hostname=`hostname -s`
17386 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17387 TAPEDRIVE="/dev/nst0"
17388 PSCMD="ps -e -o pid,command"
17389 PFILES="${PFILES} \
17390 platforms/gentoo/Makefile \
17391 platforms/gentoo/bacula-fd \
17392 platforms/gentoo/bacula-sd \
17393 platforms/gentoo/bacula-dir"
17394 hostname=`hostname -s`
17398 DISTVER=`cat /etc/slackware-version`
17399 TAPEDRIVE="/dev/nst0"
17400 PSCMD="ps -e -o pid,command"
17401 hostname=`hostname -s`
17405 TAPEDRIVE="/dev/rmt/0cbn"
17406 PSCMD="ps -e -o pid,comm"
17407 PFILES="${PFILES} \
17408 platforms/solaris/Makefile \
17409 platforms/solaris/bacula-fd \
17410 platforms/solaris/bacula-sd \
17411 platforms/solaris/bacula-dir"
17412 if test x$DISTVER = x5.6 ; then
17413 cat >>confdefs.h <<\_ACEOF
17414 #define HAVE_OLD_SOCKOPT 1
17420 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17422 TAPEDRIVE="/dev/nst0"
17423 PSCMD="ps -e -o pid,command"
17424 hostname=`hostname -s`
17429 TAPEDRIVE="/dev/nst0"
17430 PSCMD="ps -e -o pid,command"
17431 hostname=`hostname -s`
17435 TAPEDRIVE="/dev/nst0"
17438 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
17444 LIBS="$PTHREAD_LIB $LIBS"
17446 cat >>confdefs.h <<_ACEOF
17450 cat >>confdefs.h <<_ACEOF
17460 MCOMMON=./autoconf/Make.common
17463 if test "x${subsysdir}" = "x${sbindir}" ; then
17466 echo "You have set both --sbindir and --with-subsys-dir"
17467 echo " equal to: ${subsysdir} "
17468 echo "This is not permitted. Please reconfigure."
17470 echo "Aborting configuration ..."
17476 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"
17477 ac_config_commands="$ac_config_commands default"
17478 cat >confcache <<\_ACEOF
17479 # This file is a shell script that caches the results of configure
17480 # tests run on this system so they can be shared between configure
17481 # scripts and configure runs, see configure's option --config-cache.
17482 # It is not useful on other systems. If it contains results you don't
17483 # want to keep, you may remove or edit it.
17485 # config.status only pays attention to the cache file if you give it
17486 # the --recheck option to rerun configure.
17488 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17489 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17490 # following values.
17494 # The following way of writing the cache mishandles newlines in values,
17495 # but we know of no workaround that is simple, portable, and efficient.
17496 # So, don't put newlines in cache variables' values.
17497 # Ultrix sh set writes to stderr and can't be redirected directly,
17498 # and sets the high bit in the cache file unless we assign to the vars.
17501 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17503 # `set' does not quote correctly, so add quotes (double-quote
17504 # substitution turns \\\\ into \\, and sed turns \\ into \).
17507 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17510 # `set' quotes correctly as required by POSIX, so do not add quotes.
17512 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17519 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17521 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17523 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17524 if test -w $cache_file; then
17525 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17526 cat confcache >$cache_file
17528 echo "not updating unwritable cache $cache_file"
17533 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17534 # Let make expand exec_prefix.
17535 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17537 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17538 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17539 # trailing colons and then remove the whole line if VPATH becomes empty
17540 # (actually we leave an empty line to preserve line numbers).
17541 if test "x$srcdir" = x.; then
17542 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17543 s/:*\$(srcdir):*/:/;
17544 s/:*\${srcdir}:*/:/;
17546 s/^\([^=]*=[ ]*\):*/\1/;
17552 DEFS=-DHAVE_CONFIG_H
17556 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17557 # 1. Remove the extension, and $U if already installed.
17558 ac_i=`echo "$ac_i" |
17559 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17561 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17562 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17564 LIBOBJS=$ac_libobjs
17566 LTLIBOBJS=$ac_ltlibobjs
17570 : ${CONFIG_STATUS=./config.status}
17571 ac_clean_files_save=$ac_clean_files
17572 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17573 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17574 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17575 cat >$CONFIG_STATUS <<_ACEOF
17577 # Generated by $as_me.
17578 # Run this file to recreate the current configuration.
17579 # Compiler output produced by configure, useful for debugging
17580 # configure, is in config.log if it exists.
17583 ac_cs_recheck=false
17585 SHELL=\${CONFIG_SHELL-$SHELL}
17588 cat >>$CONFIG_STATUS <<\_ACEOF
17589 ## --------------------- ##
17590 ## M4sh Initialization. ##
17591 ## --------------------- ##
17593 # Be Bourne compatible
17594 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17597 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17598 # is contrary to our usage. Disable this feature.
17599 alias -g '${1+"$@"}'='"$@"'
17600 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17604 # Support unset when possible.
17605 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17612 # Work around bugs in pre-3.0 UWIN ksh.
17613 $as_unset ENV MAIL MAILPATH
17620 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17621 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17622 LC_TELEPHONE LC_TIME
17624 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17625 eval $as_var=C; export $as_var
17631 # Required to use basename.
17632 if expr a : '\(a\)' >/dev/null 2>&1; then
17638 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17639 as_basename=basename
17645 # Name of the executable.
17646 as_me=`$as_basename "$0" ||
17647 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17648 X"$0" : 'X\(//\)$' \| \
17649 X"$0" : 'X\(/\)$' \| \
17650 . : '\(.\)' 2>/dev/null ||
17652 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17653 /^X\/\(\/\/\)$/{ s//\1/; q; }
17654 /^X\/\(\/\).*/{ s//\1/; q; }
17658 # PATH needs CR, and LINENO needs CR and PATH.
17659 # Avoid depending upon Character Ranges.
17660 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17661 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17662 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17663 as_cr_digits='0123456789'
17664 as_cr_alnum=$as_cr_Letters$as_cr_digits
17666 # The user is always right.
17667 if test "${PATH_SEPARATOR+set}" != set; then
17668 echo "#! /bin/sh" >conf$$.sh
17669 echo "exit 0" >>conf$$.sh
17671 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17680 as_lineno_1=$LINENO
17681 as_lineno_2=$LINENO
17682 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17683 test "x$as_lineno_1" != "x$as_lineno_2" &&
17684 test "x$as_lineno_3" = "x$as_lineno_2" || {
17685 # Find who we are. Look in the path if we contain no path at all
17688 *[\\/]* ) as_myself=$0 ;;
17689 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17690 for as_dir in $PATH
17693 test -z "$as_dir" && as_dir=.
17694 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17699 # We did not find ourselves, most probably we were run as `sh COMMAND'
17700 # in which case we are not to be found in the path.
17701 if test "x$as_myself" = x; then
17704 if test ! -f "$as_myself"; then
17705 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17706 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17707 { (exit 1); exit 1; }; }
17709 case $CONFIG_SHELL in
17711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17712 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17715 test -z "$as_dir" && as_dir=.
17716 for as_base in sh bash ksh sh5; do
17719 if ("$as_dir/$as_base" -c '
17720 as_lineno_1=$LINENO
17721 as_lineno_2=$LINENO
17722 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17723 test "x$as_lineno_1" != "x$as_lineno_2" &&
17724 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17725 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17726 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17727 CONFIG_SHELL=$as_dir/$as_base
17728 export CONFIG_SHELL
17729 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17737 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17738 # uniformly replaced by the line number. The first 'sed' inserts a
17739 # line-number line before each line; the second 'sed' does the real
17740 # work. The second script uses 'N' to pair each line-number line
17741 # with the numbered line, and appends trailing '-' during
17742 # substitution so that $LINENO is not a special case at line end.
17743 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17744 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17745 sed '=' <$as_myself |
17750 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17753 s,^['$as_cr_digits']*\n,,
17754 ' >$as_me.lineno &&
17755 chmod +x $as_me.lineno ||
17756 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17757 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17758 { (exit 1); exit 1; }; }
17760 # Don't try to exec as it changes $[0], causing all sort of problems
17761 # (the dirname of $[0] is not the place where we might find the
17762 # original and so on. Autoconf is especially sensible to this).
17764 # Exit status is that of the last command.
17769 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17770 *c*,-n*) ECHO_N= ECHO_C='
17772 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17773 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17776 if expr a : '\(a\)' >/dev/null 2>&1; then
17782 rm -f conf$$ conf$$.exe conf$$.file
17784 if ln -s conf$$.file conf$$ 2>/dev/null; then
17785 # We could just check for DJGPP; but this test a) works b) is more generic
17786 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17787 if test -f conf$$.exe; then
17788 # Don't use ln at all; we don't have any links
17793 elif ln conf$$.file conf$$ 2>/dev/null; then
17798 rm -f conf$$ conf$$.exe conf$$.file
17800 if mkdir -p . 2>/dev/null; then
17806 as_executable_p="test -f"
17808 # Sed expression to map a string onto a valid CPP name.
17809 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17811 # Sed expression to map a string onto a valid variable name.
17812 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17816 # We need space, tab and new line, in precisely that order.
17826 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17827 # report actual input values of CONFIG_FILES etc. instead of their
17828 # values after options handling. Logging --version etc. is OK.
17832 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17833 ## Running $as_me. ##
17838 This file was extended by $as_me, which was
17839 generated by GNU Autoconf 2.57. Invocation command line was
17841 CONFIG_FILES = $CONFIG_FILES
17842 CONFIG_HEADERS = $CONFIG_HEADERS
17843 CONFIG_LINKS = $CONFIG_LINKS
17844 CONFIG_COMMANDS = $CONFIG_COMMANDS
17848 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17852 # Files that config.status was made for.
17853 if test -n "$ac_config_files"; then
17854 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17857 if test -n "$ac_config_headers"; then
17858 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17861 if test -n "$ac_config_links"; then
17862 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17865 if test -n "$ac_config_commands"; then
17866 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17869 cat >>$CONFIG_STATUS <<\_ACEOF
17872 \`$as_me' instantiates files from templates according to the
17873 current configuration.
17875 Usage: $0 [OPTIONS] [FILE]...
17877 -h, --help print this help, then exit
17878 -V, --version print version number, then exit
17879 -q, --quiet do not print progress messages
17880 -d, --debug don't remove temporary files
17881 --recheck update $as_me by reconfiguring in the same conditions
17882 --file=FILE[:TEMPLATE]
17883 instantiate the configuration file FILE
17884 --header=FILE[:TEMPLATE]
17885 instantiate the configuration header FILE
17887 Configuration files:
17890 Configuration headers:
17893 Configuration commands:
17896 Report bugs to <bug-autoconf@gnu.org>."
17899 cat >>$CONFIG_STATUS <<_ACEOF
17902 configured by $0, generated by GNU Autoconf 2.57,
17903 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
17905 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
17906 Free Software Foundation, Inc.
17907 This config.status script is free software; the Free Software Foundation
17908 gives unlimited permission to copy, distribute and modify it."
17913 cat >>$CONFIG_STATUS <<\_ACEOF
17914 # If no file are specified by the user, then we need to provide default
17915 # value. By we need to know if files were specified by the user.
17921 ac_option=`expr "x$1" : 'x\([^=]*\)='`
17922 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
17930 *) # This is not an option, so the user has probably given explicit
17933 ac_need_defaults=false;;
17937 # Handling of the options.
17939 cat >>$CONFIG_STATUS <<\_ACEOF
17940 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17942 --version | --vers* | -V )
17943 echo "$ac_cs_version"; exit 0 ;;
17945 # Conflict between --help and --header
17946 { { echo "$as_me:$LINENO: error: ambiguous option: $1
17947 Try \`$0 --help' for more information." >&5
17948 echo "$as_me: error: ambiguous option: $1
17949 Try \`$0 --help' for more information." >&2;}
17950 { (exit 1); exit 1; }; };;
17951 --help | --hel | -h )
17952 echo "$ac_cs_usage"; exit 0 ;;
17953 --debug | --d* | -d )
17955 --file | --fil | --fi | --f )
17957 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
17958 ac_need_defaults=false;;
17959 --header | --heade | --head | --hea )
17961 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
17962 ac_need_defaults=false;;
17963 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17964 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17967 # This is an error.
17968 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
17969 Try \`$0 --help' for more information." >&5
17970 echo "$as_me: error: unrecognized option: $1
17971 Try \`$0 --help' for more information." >&2;}
17972 { (exit 1); exit 1; }; } ;;
17974 *) ac_config_targets="$ac_config_targets $1" ;;
17980 ac_configure_extra_args=
17982 if $ac_cs_silent; then
17984 ac_configure_extra_args="$ac_configure_extra_args --silent"
17988 cat >>$CONFIG_STATUS <<_ACEOF
17989 if \$ac_cs_recheck; then
17990 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
17991 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18000 cat >>$CONFIG_STATUS <<\_ACEOF
18001 for ac_config_target in $ac_config_targets
18003 case "$ac_config_target" in
18004 # Handling of arguments.
18005 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18006 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18007 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18008 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18009 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18010 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18011 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18012 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18013 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18014 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18015 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18016 "scripts/console" ) CONFIG_FILES="$CONFIG_FILES scripts/console" ;;
18017 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18018 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18019 "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18020 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18021 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18022 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18023 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18024 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18025 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18026 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18027 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18028 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18029 "src/console/console.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/console.conf" ;;
18030 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18031 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18032 "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18033 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18034 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18035 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18036 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18037 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18038 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18039 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18040 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18041 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18042 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18043 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18044 "src/cats/alter_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/alter_mysql_tables" ;;
18045 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18046 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18047 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18048 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18049 "src/cats/alter_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/alter_sqlite_tables" ;;
18050 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18051 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18052 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18053 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18054 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18055 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18056 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18057 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18058 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18059 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18060 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18061 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18062 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18063 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18064 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18065 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18066 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18067 { (exit 1); exit 1; }; };;
18071 # If the user did not use the arguments to specify the items to instantiate,
18072 # then the envvar interface is used. Set only those that are not.
18073 # We use the long form for the default assignment because of an extremely
18074 # bizarre bug on SunOS 4.1.3.
18075 if $ac_need_defaults; then
18076 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18077 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18078 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18081 # Have a temporary directory for convenience. Make it in the build tree
18082 # simply because there is no reason to put it here, and in addition,
18083 # creating and moving files from /tmp can sometimes cause problems.
18084 # Create a temporary directory, and hook for its removal unless debugging.
18087 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18088 trap '{ (exit 1); exit 1; }' 1 2 13 15
18091 # Create a (secure) tmp directory for tmp files.
18094 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18095 test -n "$tmp" && test -d "$tmp"
18098 tmp=./confstat$$-$RANDOM
18099 (umask 077 && mkdir $tmp)
18102 echo "$me: cannot create a temporary directory in ." >&2
18103 { (exit 1); exit 1; }
18108 cat >>$CONFIG_STATUS <<_ACEOF
18111 # CONFIG_FILES section.
18114 # No need to generate the scripts if there are no CONFIG_FILES.
18115 # This happens for instance when ./config.status config.h
18116 if test -n "\$CONFIG_FILES"; then
18117 # Protect against being on the right side of a sed subst in config.status.
18118 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18119 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18120 s,@SHELL@,$SHELL,;t t
18121 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18122 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18123 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18124 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18125 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18126 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18127 s,@exec_prefix@,$exec_prefix,;t t
18128 s,@prefix@,$prefix,;t t
18129 s,@program_transform_name@,$program_transform_name,;t t
18130 s,@bindir@,$bindir,;t t
18131 s,@sbindir@,$sbindir,;t t
18132 s,@libexecdir@,$libexecdir,;t t
18133 s,@datadir@,$datadir,;t t
18134 s,@sysconfdir@,$sysconfdir,;t t
18135 s,@sharedstatedir@,$sharedstatedir,;t t
18136 s,@localstatedir@,$localstatedir,;t t
18137 s,@libdir@,$libdir,;t t
18138 s,@includedir@,$includedir,;t t
18139 s,@oldincludedir@,$oldincludedir,;t t
18140 s,@infodir@,$infodir,;t t
18141 s,@mandir@,$mandir,;t t
18142 s,@build_alias@,$build_alias,;t t
18143 s,@host_alias@,$host_alias,;t t
18144 s,@target_alias@,$target_alias,;t t
18145 s,@DEFS@,$DEFS,;t t
18146 s,@ECHO_C@,$ECHO_C,;t t
18147 s,@ECHO_N@,$ECHO_N,;t t
18148 s,@ECHO_T@,$ECHO_T,;t t
18149 s,@LIBS@,$LIBS,;t t
18150 s,@BUILD_DIR@,$BUILD_DIR,;t t
18151 s,@TRUEPRG@,$TRUEPRG,;t t
18152 s,@FALSEPRG@,$FALSEPRG,;t t
18153 s,@build@,$build,;t t
18154 s,@build_cpu@,$build_cpu,;t t
18155 s,@build_vendor@,$build_vendor,;t t
18156 s,@build_os@,$build_os,;t t
18157 s,@host@,$host,;t t
18158 s,@host_cpu@,$host_cpu,;t t
18159 s,@host_vendor@,$host_vendor,;t t
18160 s,@host_os@,$host_os,;t t
18161 s,@VERSION@,$VERSION,;t t
18162 s,@DATE@,$DATE,;t t
18163 s,@LSMDATE@,$LSMDATE,;t t
18165 s,@CFLAGS@,$CFLAGS,;t t
18166 s,@LDFLAGS@,$LDFLAGS,;t t
18167 s,@CPPFLAGS@,$CPPFLAGS,;t t
18168 s,@ac_ct_CC@,$ac_ct_CC,;t t
18169 s,@EXEEXT@,$EXEEXT,;t t
18170 s,@OBJEXT@,$OBJEXT,;t t
18172 s,@CXXFLAGS@,$CXXFLAGS,;t t
18173 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18175 s,@EGREP@,$EGREP,;t t
18176 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18177 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18178 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18179 s,@RANLIB@,$RANLIB,;t t
18180 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18186 s,@ECHO@,$ECHO,;t t
18190 s,@OPENSSL@,$OPENSSL,;t t
18192 s,@PKGCONFIG@,$PKGCONFIG,;t t
18193 s,@ARFLAGS@,$ARFLAGS,;t t
18194 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18195 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18196 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18197 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18198 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18199 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18200 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18201 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18202 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18203 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18204 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18205 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18206 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18207 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18208 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18209 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18210 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18211 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18212 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18213 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18214 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18215 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18216 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18217 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18218 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18219 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18220 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18221 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18222 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18223 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18224 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18225 s,@MSGFMT@,$MSGFMT,;t t
18226 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18227 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18228 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18229 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18230 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18231 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18232 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18233 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18234 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18235 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18236 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18237 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18238 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18239 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18240 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18241 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18242 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18243 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18244 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18245 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18246 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18247 s,@GNOME_DIR@,$GNOME_DIR,;t t
18248 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18249 s,@STATIC_FD@,$STATIC_FD,;t t
18250 s,@STATIC_SD@,$STATIC_SD,;t t
18251 s,@STATIC_DIR@,$STATIC_DIR,;t t
18252 s,@STATIC_CONS@,$STATIC_CONS,;t t
18253 s,@ALL_DIRS@,$ALL_DIRS,;t t
18254 s,@CONS_INC@,$CONS_INC,;t t
18255 s,@CONS_LIBS@,$CONS_LIBS,;t t
18256 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18257 s,@READLINE_SRC@,$READLINE_SRC,;t t
18258 s,@working_dir@,$working_dir,;t t
18259 s,@scriptdir@,$scriptdir,;t t
18260 s,@dump_email@,$dump_email,;t t
18261 s,@job_email@,$job_email,;t t
18262 s,@smtp_host@,$smtp_host,;t t
18263 s,@piddir@,$piddir,;t t
18264 s,@subsysdir@,$subsysdir,;t t
18265 s,@baseport@,$baseport,;t t
18266 s,@dir_port@,$dir_port,;t t
18267 s,@fd_port@,$fd_port,;t t
18268 s,@sd_port@,$sd_port,;t t
18269 s,@dir_password@,$dir_password,;t t
18270 s,@fd_password@,$fd_password,;t t
18271 s,@sd_password@,$sd_password,;t t
18272 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18273 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18274 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18275 s,@cats@,$cats,;t t
18276 s,@DB_NAME@,$DB_NAME,;t t
18277 s,@GETCONF@,$GETCONF,;t t
18278 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18279 s,@X_CFLAGS@,$X_CFLAGS,;t t
18280 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18281 s,@X_LIBS@,$X_LIBS,;t t
18282 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18283 s,@LIBOBJS@,$LIBOBJS,;t t
18284 s,@ALLOCA@,$ALLOCA,;t t
18285 s,@FDLIBS@,$FDLIBS,;t t
18286 s,@DEBUG@,$DEBUG,;t t
18287 s,@DINCLUDE@,$DINCLUDE,;t t
18288 s,@DLIB@,$DLIB,;t t
18289 s,@DB_LIBS@,$DB_LIBS,;t t
18290 s,@WCFLAGS@,$WCFLAGS,;t t
18291 s,@WLDFLAGS@,$WLDFLAGS,;t t
18292 s,@OBJLIST@,$OBJLIST,;t t
18293 s,@hostname@,$hostname,;t t
18294 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18295 s,@PSCMD@,$PSCMD,;t t
18296 s,@WIN32@,$WIN32,;t t
18297 s,@DISTNAME@,$DISTNAME,;t t
18298 s,@DISTVER@,$DISTVER,;t t
18299 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18300 /@MCOMMON@/r $MCOMMON
18306 cat >>$CONFIG_STATUS <<\_ACEOF
18307 # Split the substitutions into bite-sized pieces for seds with
18308 # small command number limits, like on Digital OSF/1 and HP-UX.
18309 ac_max_sed_lines=48
18310 ac_sed_frag=1 # Number of current file.
18311 ac_beg=1 # First line for current file.
18312 ac_end=$ac_max_sed_lines # Line after last line for current file.
18315 while $ac_more_lines; do
18316 if test $ac_beg -gt 1; then
18317 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18319 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18321 if test ! -s $tmp/subs.frag; then
18322 ac_more_lines=false
18324 # The purpose of the label and of the branching condition is to
18325 # speed up the sed processing (if there are no `@' at all, there
18326 # is no need to browse any of the substitutions).
18327 # These are the two extra sed commands mentioned above.
18329 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18330 if test -z "$ac_sed_cmds"; then
18331 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18333 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18335 ac_sed_frag=`expr $ac_sed_frag + 1`
18337 ac_end=`expr $ac_end + $ac_max_sed_lines`
18340 if test -z "$ac_sed_cmds"; then
18343 fi # test -n "$CONFIG_FILES"
18346 cat >>$CONFIG_STATUS <<\_ACEOF
18347 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18348 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18350 - | *:- | *:-:* ) # input from stdin
18352 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18353 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18354 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18355 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18356 * ) ac_file_in=$ac_file.in ;;
18359 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18360 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18361 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18362 X"$ac_file" : 'X\(//\)[^/]' \| \
18363 X"$ac_file" : 'X\(//\)$' \| \
18364 X"$ac_file" : 'X\(/\)' \| \
18365 . : '\(.\)' 2>/dev/null ||
18367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18368 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18369 /^X\(\/\/\)$/{ s//\1/; q; }
18370 /^X\(\/\).*/{ s//\1/; q; }
18372 { if $as_mkdir_p; then
18377 while test ! -d "$as_dir"; do
18378 as_dirs="$as_dir $as_dirs"
18379 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18380 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18381 X"$as_dir" : 'X\(//\)[^/]' \| \
18382 X"$as_dir" : 'X\(//\)$' \| \
18383 X"$as_dir" : 'X\(/\)' \| \
18384 . : '\(.\)' 2>/dev/null ||
18386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18387 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18388 /^X\(\/\/\)$/{ s//\1/; q; }
18389 /^X\(\/\).*/{ s//\1/; q; }
18392 test ! -n "$as_dirs" || mkdir $as_dirs
18393 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18394 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18395 { (exit 1); exit 1; }; }; }
18399 if test "$ac_dir" != .; then
18400 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18401 # A "../" for each directory in $ac_dir_suffix.
18402 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18404 ac_dir_suffix= ac_top_builddir=
18408 .) # No --srcdir option. We are building in place.
18410 if test -z "$ac_top_builddir"; then
18413 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18415 [\\/]* | ?:[\\/]* ) # Absolute path.
18416 ac_srcdir=$srcdir$ac_dir_suffix;
18417 ac_top_srcdir=$srcdir ;;
18418 *) # Relative path.
18419 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18420 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18422 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18424 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18425 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18426 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18427 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18431 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18432 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18435 if test x"$ac_file" != x-; then
18436 { echo "$as_me:$LINENO: creating $ac_file" >&5
18437 echo "$as_me: creating $ac_file" >&6;}
18440 # Let's still pretend it is `configure' which instantiates (i.e., don't
18441 # use $as_me), people would be surprised to read:
18442 # /* config.h. Generated by config.status. */
18443 if test x"$ac_file" = x-; then
18446 configure_input="$ac_file. "
18448 configure_input=$configure_input"Generated from `echo $ac_file_in |
18449 sed 's,.*/,,'` by configure."
18451 # First look for the input files in the build tree, otherwise in the
18453 ac_file_inputs=`IFS=:
18454 for f in $ac_file_in; do
18456 -) echo $tmp/stdin ;;
18458 # Absolute (can't be DOS-style, as IFS=:)
18459 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18460 echo "$as_me: error: cannot find input file: $f" >&2;}
18461 { (exit 1); exit 1; }; }
18464 if test -f "$f"; then
18467 elif test -f "$srcdir/$f"; then
18472 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18473 echo "$as_me: error: cannot find input file: $f" >&2;}
18474 { (exit 1); exit 1; }; }
18477 done` || { (exit 1); exit 1; }
18479 cat >>$CONFIG_STATUS <<_ACEOF
18483 cat >>$CONFIG_STATUS <<\_ACEOF
18485 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18486 s,@configure_input@,$configure_input,;t t
18487 s,@srcdir@,$ac_srcdir,;t t
18488 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18489 s,@top_srcdir@,$ac_top_srcdir,;t t
18490 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18491 s,@builddir@,$ac_builddir,;t t
18492 s,@abs_builddir@,$ac_abs_builddir,;t t
18493 s,@top_builddir@,$ac_top_builddir,;t t
18494 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18495 s,@INSTALL@,$ac_INSTALL,;t t
18496 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18498 if test x"$ac_file" != x-; then
18499 mv $tmp/out $ac_file
18507 cat >>$CONFIG_STATUS <<\_ACEOF
18510 # CONFIG_HEADER section.
18513 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18514 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18516 # ac_d sets the value in "#define NAME VALUE" lines.
18517 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18518 ac_dB='[ ].*$,\1#\2'
18521 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18522 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18523 ac_uB='$,\1#\2define\3'
18527 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18528 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18530 - | *:- | *:-:* ) # input from stdin
18532 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18533 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18534 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18535 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18536 * ) ac_file_in=$ac_file.in ;;
18539 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18540 echo "$as_me: creating $ac_file" >&6;}
18542 # First look for the input files in the build tree, otherwise in the
18544 ac_file_inputs=`IFS=:
18545 for f in $ac_file_in; do
18547 -) echo $tmp/stdin ;;
18549 # Absolute (can't be DOS-style, as IFS=:)
18550 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18551 echo "$as_me: error: cannot find input file: $f" >&2;}
18552 { (exit 1); exit 1; }; }
18555 if test -f "$f"; then
18558 elif test -f "$srcdir/$f"; then
18563 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18564 echo "$as_me: error: cannot find input file: $f" >&2;}
18565 { (exit 1); exit 1; }; }
18568 done` || { (exit 1); exit 1; }
18569 # Remove the trailing spaces.
18570 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18574 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18575 # `conftest.undefs', that substitutes the proper values into
18576 # config.h.in to produce config.h. The first handles `#define'
18577 # templates, and the second `#undef' templates.
18578 # And first: Protect against being on the right side of a sed subst in
18579 # config.status. Protect against being in an unquoted here document
18580 # in config.status.
18581 rm -f conftest.defines conftest.undefs
18582 # Using a here document instead of a string reduces the quoting nightmare.
18583 # Putting comments in sed scripts is not portable.
18585 # `end' is used to avoid that the second main sed command (meant for
18586 # 0-ary CPP macros) applies to n-ary macro definitions.
18587 # See the Autoconf documentation for `clear'.
18588 cat >confdef2sed.sed <<\_ACEOF
18593 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18595 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18598 # If some macros were called several times there might be several times
18599 # the same #defines, which is useless. Nevertheless, we may not want to
18600 # sort them, since we want the *last* AC-DEFINE to be honored.
18601 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18602 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18603 rm -f confdef2sed.sed
18605 # This sed command replaces #undef with comments. This is necessary, for
18606 # example, in the case of _POSIX_SOURCE, which is predefined and required
18607 # on some systems where configure will not decide to define it.
18608 cat >>conftest.undefs <<\_ACEOF
18609 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18612 # Break up conftest.defines because some shells have a limit on the size
18613 # of here documents, and old seds have small limits too (100 cmds).
18614 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18615 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18616 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18617 echo ' :' >>$CONFIG_STATUS
18618 rm -f conftest.tail
18619 while grep . conftest.defines >/dev/null
18621 # Write a limited-size here document to $tmp/defines.sed.
18622 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18623 # Speed up: don't consider the non `#define' lines.
18624 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18625 # Work around the forget-to-reset-the-flag bug.
18626 echo 't clr' >>$CONFIG_STATUS
18627 echo ': clr' >>$CONFIG_STATUS
18628 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18630 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18632 mv $tmp/out $tmp/in
18634 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18635 rm -f conftest.defines
18636 mv conftest.tail conftest.defines
18638 rm -f conftest.defines
18639 echo ' fi # grep' >>$CONFIG_STATUS
18640 echo >>$CONFIG_STATUS
18642 # Break up conftest.undefs because some shells have a limit on the size
18643 # of here documents, and old seds have small limits too (100 cmds).
18644 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18645 rm -f conftest.tail
18646 while grep . conftest.undefs >/dev/null
18648 # Write a limited-size here document to $tmp/undefs.sed.
18649 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18650 # Speed up: don't consider the non `#undef'
18651 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18652 # Work around the forget-to-reset-the-flag bug.
18653 echo 't clr' >>$CONFIG_STATUS
18654 echo ': clr' >>$CONFIG_STATUS
18655 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18657 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18659 mv $tmp/out $tmp/in
18661 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18662 rm -f conftest.undefs
18663 mv conftest.tail conftest.undefs
18665 rm -f conftest.undefs
18667 cat >>$CONFIG_STATUS <<\_ACEOF
18668 # Let's still pretend it is `configure' which instantiates (i.e., don't
18669 # use $as_me), people would be surprised to read:
18670 # /* config.h. Generated by config.status. */
18671 if test x"$ac_file" = x-; then
18672 echo "/* Generated by configure. */" >$tmp/config.h
18674 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18676 cat $tmp/in >>$tmp/config.h
18678 if test x"$ac_file" != x-; then
18679 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18680 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18681 echo "$as_me: $ac_file is unchanged" >&6;}
18683 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18684 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18685 X"$ac_file" : 'X\(//\)[^/]' \| \
18686 X"$ac_file" : 'X\(//\)$' \| \
18687 X"$ac_file" : 'X\(/\)' \| \
18688 . : '\(.\)' 2>/dev/null ||
18690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18691 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18692 /^X\(\/\/\)$/{ s//\1/; q; }
18693 /^X\(\/\).*/{ s//\1/; q; }
18695 { if $as_mkdir_p; then
18700 while test ! -d "$as_dir"; do
18701 as_dirs="$as_dir $as_dirs"
18702 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18703 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18704 X"$as_dir" : 'X\(//\)[^/]' \| \
18705 X"$as_dir" : 'X\(//\)$' \| \
18706 X"$as_dir" : 'X\(/\)' \| \
18707 . : '\(.\)' 2>/dev/null ||
18709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18710 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18711 /^X\(\/\/\)$/{ s//\1/; q; }
18712 /^X\(\/\).*/{ s//\1/; q; }
18715 test ! -n "$as_dirs" || mkdir $as_dirs
18716 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18717 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18718 { (exit 1); exit 1; }; }; }
18721 mv $tmp/config.h $ac_file
18725 rm -f $tmp/config.h
18729 cat >>$CONFIG_STATUS <<\_ACEOF
18732 # CONFIG_COMMANDS section.
18734 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18735 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18736 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18737 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18738 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18739 X"$ac_dest" : 'X\(//\)[^/]' \| \
18740 X"$ac_dest" : 'X\(//\)$' \| \
18741 X"$ac_dest" : 'X\(/\)' \| \
18742 . : '\(.\)' 2>/dev/null ||
18744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18745 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18746 /^X\(\/\/\)$/{ s//\1/; q; }
18747 /^X\(\/\).*/{ s//\1/; q; }
18751 if test "$ac_dir" != .; then
18752 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18753 # A "../" for each directory in $ac_dir_suffix.
18754 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18756 ac_dir_suffix= ac_top_builddir=
18760 .) # No --srcdir option. We are building in place.
18762 if test -z "$ac_top_builddir"; then
18765 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18767 [\\/]* | ?:[\\/]* ) # Absolute path.
18768 ac_srcdir=$srcdir$ac_dir_suffix;
18769 ac_top_srcdir=$srcdir ;;
18770 *) # Relative path.
18771 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18772 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18774 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18776 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18777 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18778 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18779 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18782 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18783 echo "$as_me: executing $ac_dest commands" >&6;}
18785 default ) (echo "Doing make of dependencies"; make depend;)
18791 cat >>$CONFIG_STATUS <<\_ACEOF
18793 { (exit 0); exit 0; }
18795 chmod +x $CONFIG_STATUS
18796 ac_clean_files=$ac_clean_files_save
18799 # configure is writing to config.log, and then calls config.status.
18800 # config.status does its own redirection, appending to config.log.
18801 # Unfortunately, on DOS this fails, as config.log is still kept open
18802 # by configure, so config.status won't be able to write to it; its
18803 # output is simply discarded. So we exec the FD to /dev/null,
18804 # effectively closing config.log, so it can be properly (re)opened and
18805 # appended to by config.status. When coming back to configure, we
18806 # need to make the FD available again.
18807 if test "$no_create" != yes; then
18809 ac_config_status_args=
18810 test "$silent" = yes &&
18811 ac_config_status_args="$ac_config_status_args --quiet"
18813 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18815 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18816 # would make configure fail if this is the last instruction.
18817 $ac_cs_success || { (exit 1); exit 1; }
18822 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
18823 chmod 755 console gconsole mtx-changer
18825 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
18826 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
18827 chmod 755 src/cats/create_mysql_database
18828 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
18829 chmod 755 src/cats/alter_mysql_tables
18830 chmod 755 src/cats/grant_mysql_privileges
18831 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
18832 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
18833 chmod 755 src/cats/create_sqlite_database
18834 chmod 755 src/cats/alter_sqlite_tables
18835 chmod 755 src/cats/sqlite
18836 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
18837 chmod 755 src/cats/create_bdb_database
18839 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
18840 largefile_support="yes"
18844 # A whole lot of hand springs to get the compiler version.
18845 # This is because gcc changed the output in version 3.0
18847 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18848 if test "x${CCVERSION}" = "x" ; then
18849 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18851 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18852 if test x"${CXXVERSION}" = x ; then
18853 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18856 if test "x${subsysdir}" = "x${sbindir}" ; then
18859 echo "You have set --sbindir and --with-subsys-dir"
18860 echo " both equal to: ${subsysdir} "
18861 echo " This is not permitted. Please reconfigure."
18862 echo "Aborting configuration ..."
18869 Configuration on `date`:
18871 Host: $host -- ${DISTNAME} ${DISTVER}
18872 Bacula version: ${VERSION} (${DATE})
18873 Source code location: ${srcdir}
18874 Install binaries: ${sbindir}
18875 Install config files: ${sysconfdir}
18876 Scripts directory: ${scriptdir}
18877 Working directory: ${working_dir}
18878 PID directory: ${piddir}
18879 Subsys directory: ${subsysdir}
18880 C Compiler: ${CC} ${CCVERSION}
18881 C++ Compiler: ${CXX} ${CXXVERSION}
18882 Compiler flags: ${WCFLAGS} ${CFLAGS}
18883 Linker flags: ${WLDFLAGS} ${LDFLAGS}
18885 Statically Linked Tools: ${support_static_tools}
18886 Statically Linked FD: ${support_static_fd}
18887 Statically Linked SD: ${support_static_sd}
18888 Statically Linked DIR: ${support_static_dir}
18889 Statically Linked CONS: ${support_static_cons}
18890 Database type: ${db_name}
18891 Database lib: ${DB_LIBS}
18893 Job Output Email: ${job_email}
18894 Traceback Email: ${dump_email}
18895 SMTP Host Address: ${smtp_host}
18896 Director Port ${dir_port}
18897 File daemon Port ${fd_port}
18898 Storage daemon Port ${sd_port}
18899 SQL binaries Directory ${SQL_BINDIR}
18901 Large file support: $largefile_support
18902 readline support: ${got_readline} ${PRTREADLINE_SRC}
18903 TCP Wrappers support: ${TCPW_MSG}
18904 ZLIB support: ${have_zlib}
18905 enable-smartalloc: ${support_smartalloc}
18906 enable-gnome: ${support_gnome}
18907 client-only: ${build_client_only}
18914 # cweb support: ${got_cweb} ${CWEB_SRC}
18915 # gmp support: ${got_gmp} ${GMP_SRC}