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 dir_user dir_group sd_user sd_group fd_user fd_group SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 DISTNAME DISTVER LTLIBOBJS'
312 ac_subst_files='MCOMMON'
314 # Initialize some variables set by options.
316 ac_init_version=false
317 # The variables have the same names as the options, with
318 # dashes changed to underlines.
326 program_transform_name=s,x,x,
334 # Installation directory options.
335 # These are left unexpanded so users can "make install exec_prefix=/foo"
336 # and all the variables that are supposed to be based on exec_prefix
337 # by default will actually change.
338 # Use braces instead of parens because sh, perl, etc. also accept them.
339 bindir='${exec_prefix}/bin'
340 sbindir='${exec_prefix}/sbin'
341 libexecdir='${exec_prefix}/libexec'
342 datadir='${prefix}/share'
343 sysconfdir='${prefix}/etc'
344 sharedstatedir='${prefix}/com'
345 localstatedir='${prefix}/var'
346 libdir='${exec_prefix}/lib'
347 includedir='${prefix}/include'
348 oldincludedir='/usr/include'
349 infodir='${prefix}/info'
350 mandir='${prefix}/man'
355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364 # Accept the important Cygnus configure options, so we can diagnose typos.
368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 -build | --build | --buil | --bui | --bu)
374 ac_prev=build_alias ;;
375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376 build_alias=$ac_optarg ;;
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383 cache_file=$ac_optarg ;;
386 cache_file=config.cache ;;
388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 datadir=$ac_optarg ;;
394 -disable-* | --disable-*)
395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396 # Reject names that are not valid shell variable names.
397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
403 -enable-* | --enable-*)
404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405 # Reject names that are not valid shell variable names.
406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414 eval "enable_$ac_feature='$ac_optarg'" ;;
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
423 exec_prefix=$ac_optarg ;;
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
429 -help | --help | --hel | --he | -h)
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
436 -host | --host | --hos | --ho)
437 ac_prev=host_alias ;;
438 -host=* | --host=* | --hos=* | --ho=*)
439 host_alias=$ac_optarg ;;
441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
446 includedir=$ac_optarg ;;
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451 infodir=$ac_optarg ;;
453 -libdir | --libdir | --libdi | --libd)
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
463 libexecdir=$ac_optarg ;;
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472 localstatedir=$ac_optarg ;;
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480 # Obsolete; use --without-fp.
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484 | --no-cr | --no-c | -n)
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498 oldincludedir=$ac_optarg ;;
500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510 program_prefix=$ac_optarg ;;
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517 program_suffix=$ac_optarg ;;
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
534 program_transform_name=$ac_optarg ;;
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 sbindir=$ac_optarg ;;
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 sharedstatedir=$ac_optarg ;;
557 -site | --site | --sit)
559 -site=* | --site=* | --sit=*)
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572 sysconfdir=$ac_optarg ;;
574 -target | --target | --targe | --targ | --tar | --ta | --t)
575 ac_prev=target_alias ;;
576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577 target_alias=$ac_optarg ;;
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 -version | --version | --versio | --versi | --vers | -V)
586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587 # Reject names that are not valid shell variable names.
588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
591 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596 eval "with_$ac_package='$ac_optarg'" ;;
598 -without-* | --without-*)
599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600 # Reject names that are not valid shell variable names.
601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
608 # Obsolete; use --with-x.
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616 x_includes=$ac_optarg ;;
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623 x_libraries=$ac_optarg ;;
625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626 Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651 if test -n "$ac_prev"; then
652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
657 # Be sure to have absolute paths.
658 for ac_var in exec_prefix prefix
660 eval ac_val=$`echo $ac_var`
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664 { (exit 1); exit 1; }; };;
668 # Be sure to have absolute paths.
669 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
672 eval ac_val=$`echo $ac_var`
674 [\\/$]* | ?:[\\/]* ) ;;
675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676 { (exit 1); exit 1; }; };;
680 # There might be people who depend on the old broken behavior: `$host'
681 # used to hold the argument of --host etc.
682 # FIXME: To remove some day.
687 # FIXME: To remove some day.
688 if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
699 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 test "$silent" = yes && exec 6>/dev/null
704 # Find the source files, if location was not specified.
705 if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
721 if test ! -r $srcdir/$ac_unique_file; then
725 ac_srcdir_defaulted=no
727 if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730 { (exit 1); exit 1; }; }
732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733 { (exit 1); exit 1; }; }
736 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
739 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740 ac_env_build_alias_set=${build_alias+set}
741 ac_env_build_alias_value=$build_alias
742 ac_cv_env_build_alias_set=${build_alias+set}
743 ac_cv_env_build_alias_value=$build_alias
744 ac_env_host_alias_set=${host_alias+set}
745 ac_env_host_alias_value=$host_alias
746 ac_cv_env_host_alias_set=${host_alias+set}
747 ac_cv_env_host_alias_value=$host_alias
748 ac_env_target_alias_set=${target_alias+set}
749 ac_env_target_alias_value=$target_alias
750 ac_cv_env_target_alias_set=${target_alias+set}
751 ac_cv_env_target_alias_value=$target_alias
752 ac_env_CC_set=${CC+set}
754 ac_cv_env_CC_set=${CC+set}
755 ac_cv_env_CC_value=$CC
756 ac_env_CFLAGS_set=${CFLAGS+set}
757 ac_env_CFLAGS_value=$CFLAGS
758 ac_cv_env_CFLAGS_set=${CFLAGS+set}
759 ac_cv_env_CFLAGS_value=$CFLAGS
760 ac_env_LDFLAGS_set=${LDFLAGS+set}
761 ac_env_LDFLAGS_value=$LDFLAGS
762 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_cv_env_LDFLAGS_value=$LDFLAGS
764 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765 ac_env_CPPFLAGS_value=$CPPFLAGS
766 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768 ac_env_CXX_set=${CXX+set}
769 ac_env_CXX_value=$CXX
770 ac_cv_env_CXX_set=${CXX+set}
771 ac_cv_env_CXX_value=$CXX
772 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
773 ac_env_CXXFLAGS_value=$CXXFLAGS
774 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
775 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
776 ac_env_CPP_set=${CPP+set}
777 ac_env_CPP_value=$CPP
778 ac_cv_env_CPP_set=${CPP+set}
779 ac_cv_env_CPP_value=$CPP
782 # Report the --help message.
784 if test "$ac_init_help" = "long"; then
785 # Omit some internal or obsolete options to make the list less imposing.
786 # This message is too long to be a string in the A/UX 3.1 sh.
788 \`configure' configures this package to adapt to many kinds of systems.
790 Usage: $0 [OPTION]... [VAR=VALUE]...
792 To assign environment variables (e.g., CC, CFLAGS...), specify them as
793 VAR=VALUE. See below for descriptions of some of the useful variables.
795 Defaults for the options are specified in brackets.
798 -h, --help display this help and exit
799 --help=short display options specific to this package
800 --help=recursive display the short help of all the included packages
801 -V, --version display version information and exit
802 -q, --quiet, --silent do not print \`checking...' messages
803 --cache-file=FILE cache test results in FILE [disabled]
804 -C, --config-cache alias for \`--cache-file=config.cache'
805 -n, --no-create do not create output files
806 --srcdir=DIR find the sources in DIR [configure dir or \`..']
811 Installation directories:
812 --prefix=PREFIX install architecture-independent files in PREFIX
814 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
817 By default, \`make install' will install all the files in
818 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
819 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
820 for instance \`--prefix=\$HOME'.
822 For better control, use the options below.
824 Fine tuning of the installation directories:
825 --bindir=DIR user executables [EPREFIX/bin]
826 --sbindir=DIR system admin executables [EPREFIX/sbin]
827 --libexecdir=DIR program executables [EPREFIX/libexec]
828 --datadir=DIR read-only architecture-independent data [PREFIX/share]
829 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
830 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
831 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
832 --libdir=DIR object code libraries [EPREFIX/lib]
833 --includedir=DIR C header files [PREFIX/include]
834 --oldincludedir=DIR C header files for non-gcc [/usr/include]
835 --infodir=DIR info documentation [PREFIX/info]
836 --mandir=DIR man documentation [PREFIX/man]
842 --x-includes=DIR X include files are in DIR
843 --x-libraries=DIR X library files are in DIR
846 --build=BUILD configure for building on BUILD [guessed]
847 --host=HOST cross-compile to build programs to run on HOST [BUILD]
851 if test -n "$ac_init_help"; then
856 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
857 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
858 --enable-gnome enable build of gnome-console GUI disabled
859 --enable-smartalloc enable smartalloc debugging support disabled
860 --enable-static-tools enable static tape tools disabled
861 --enable-static-fd enable static File daemon disabled
862 --enable-static-sd enable static Storage daemon disabled
863 --enable-static-dir enable static Director disabled
864 --enable-static-cons enable static Console disabled
865 --enable-client-only build client (File daemon) only disabled
866 --disable-readline disable readline support enabled
868 --disable-largefile omit support for large files
871 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
872 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
873 --with-gnome-includes Specify location of GNOME headers
874 --with-gnome-libs Specify location of GNOME libs
875 --with-gnome Specify prefix for GNOME files
876 --with-readline=DIR specify readline library directory
877 --with-tcp-wrappers=DIR enable tcpwrappers support
878 --with-working-dir=PATH specify path of Bacula working directory
879 --with-scriptdir=PATH specify path of Bacula scripts directory
880 --with-dump-email=EMAIL dump email address
881 --with-job-email=EMAIL job output email address
882 --with-smtp-host=HOST SMTP mail host address
883 --with-pid-dir=PATH specify location of Bacula pid files
884 --with-subsys-dir=PATH specify location of Bacula subsys file
885 --with-baseport=PORT specify base port address for daemons
886 --with-dir-password=PASSWORD specify Director's password
887 --with-fd-password=PASSWORD specify Client's password
888 --with-sd-password=PASSWORD specify Storage daemon's password
889 --with-dir-user=USER specify user for Director daemon
890 --with-dir-group=GROUP specify group for Director daemon
891 --with-sd-user=USER specify user for Storage daemon
892 --with-sd-group=GROUP specify group for Storage daemon
893 --with-fd-user=USER specify user for File daemon
894 --with-fd-group=GROUP specify group for File daemon
896 Which DBMS do you want to use (please select only one):
897 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
898 install directory, default is to search through
899 a number of common places for the MySQL files.
901 Which DBMS do you want to use (please select only one):
902 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
903 install directory, default is to search through
904 a number of common places for the MySQL files.
906 Which DBMS do you want to use (please select only one):
907 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
908 install directory, default is to search through
909 a number of common places for the SQLite files.
910 --with-x use the X Window System
912 Some influential environment variables:
913 CC C compiler command
914 CFLAGS C compiler flags
915 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
916 nonstandard directory <lib dir>
917 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
918 headers in a nonstandard directory <include dir>
919 CXX C++ compiler command
920 CXXFLAGS C++ compiler flags
923 Use these variables to override the choices made by `configure' or to help
924 it to find libraries and programs with nonstandard names/locations.
929 if test "$ac_init_help" = "recursive"; then
930 # If there are subdirs, report their specific --help.
932 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
933 test -d $ac_dir || continue
936 if test "$ac_dir" != .; then
937 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
938 # A "../" for each directory in $ac_dir_suffix.
939 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
941 ac_dir_suffix= ac_top_builddir=
945 .) # No --srcdir option. We are building in place.
947 if test -z "$ac_top_builddir"; then
950 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
952 [\\/]* | ?:[\\/]* ) # Absolute path.
953 ac_srcdir=$srcdir$ac_dir_suffix;
954 ac_top_srcdir=$srcdir ;;
956 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
957 ac_top_srcdir=$ac_top_builddir$srcdir ;;
959 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
961 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
962 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
963 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
964 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
967 # Check for guested configure; otherwise get Cygnus style configure.
968 if test -f $ac_srcdir/configure.gnu; then
970 $SHELL $ac_srcdir/configure.gnu --help=recursive
971 elif test -f $ac_srcdir/configure; then
973 $SHELL $ac_srcdir/configure --help=recursive
974 elif test -f $ac_srcdir/configure.ac ||
975 test -f $ac_srcdir/configure.in; then
979 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
985 test -n "$ac_init_help" && exit 0
986 if $ac_init_version; then
989 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
990 Free Software Foundation, Inc.
991 This configure script is free software; the Free Software Foundation
992 gives unlimited permission to copy, distribute and modify it.
998 This file contains any messages produced by compilers while
999 running configure, to aid debugging if configure makes a mistake.
1001 It was created by $as_me, which was
1002 generated by GNU Autoconf 2.57. Invocation command line was
1013 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1014 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1015 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1016 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1017 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1019 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1020 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1022 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1023 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1024 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1025 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1026 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1027 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1028 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1036 test -z "$as_dir" && as_dir=.
1037 echo "PATH: $as_dir"
1052 # Keep a trace of the command line.
1053 # Strip out --no-create and --no-recursion so they do not pile up.
1054 # Strip out --silent because we don't want to record it for future runs.
1055 # Also quote any args containing shell meta-characters.
1056 # Make two passes to allow for proper duplicate-argument suppression.
1061 ac_must_keep_next=false
1067 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1068 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1069 | -silent | --silent | --silen | --sile | --sil)
1071 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1072 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1075 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1077 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1078 if test $ac_must_keep_next = true; then
1079 ac_must_keep_next=false # Got value, back to normal.
1082 *=* | --config-cache | -C | -disable-* | --disable-* \
1083 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1084 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1085 | -with-* | --with-* | -without-* | --without-* | --x)
1086 case "$ac_configure_args0 " in
1087 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1090 -* ) ac_must_keep_next=true ;;
1093 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1094 # Get rid of the leading space.
1100 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1101 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1103 # When interrupted or exit'd, cleanup temporary files, and complete
1104 # config.log. We remove comments because anyway the quotes in there
1105 # would cause problems or look ugly.
1106 # WARNING: Be sure not to use single quotes in there, as some shells,
1107 # such as our DU 5.0 friend, will then `close' the trap.
1108 trap 'exit_status=$?
1109 # Save into config.log some information that might help in debugging.
1114 ## ---------------- ##
1115 ## Cache variables. ##
1116 ## ---------------- ##
1119 # The following way of writing the cache mishandles newlines in values,
1122 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1125 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1130 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1137 ## ----------------- ##
1138 ## Output variables. ##
1139 ## ----------------- ##
1142 for ac_var in $ac_subst_vars
1144 eval ac_val=$`echo $ac_var`
1145 echo "$ac_var='"'"'$ac_val'"'"'"
1149 if test -n "$ac_subst_files"; then
1156 for ac_var in $ac_subst_files
1158 eval ac_val=$`echo $ac_var`
1159 echo "$ac_var='"'"'$ac_val'"'"'"
1164 if test -s confdefs.h; then
1171 sed "/^$/d" confdefs.h | sort
1174 test "$ac_signal" != 0 &&
1175 echo "$as_me: caught signal $ac_signal"
1176 echo "$as_me: exit $exit_status"
1178 rm -f core core.* *.core &&
1179 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1182 for ac_signal in 1 2 13 15; do
1183 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1188 rm -rf conftest* confdefs.h
1189 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1192 # Predefined preprocessor variables.
1194 cat >>confdefs.h <<_ACEOF
1195 #define PACKAGE_NAME "$PACKAGE_NAME"
1199 cat >>confdefs.h <<_ACEOF
1200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1204 cat >>confdefs.h <<_ACEOF
1205 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1209 cat >>confdefs.h <<_ACEOF
1210 #define PACKAGE_STRING "$PACKAGE_STRING"
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1219 # Let the site file select an alternate cache file if it wants to.
1220 # Prefer explicitly selected file to automatically selected ones.
1221 if test -z "$CONFIG_SITE"; then
1222 if test "x$prefix" != xNONE; then
1223 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1225 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1228 for ac_site_file in $CONFIG_SITE; do
1229 if test -r "$ac_site_file"; then
1230 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1231 echo "$as_me: loading site script $ac_site_file" >&6;}
1232 sed 's/^/| /' "$ac_site_file" >&5
1237 if test -r "$cache_file"; then
1238 # Some versions of bash will fail to source /dev/null (special
1239 # files actually), so we avoid doing that.
1240 if test -f "$cache_file"; then
1241 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1242 echo "$as_me: loading cache $cache_file" >&6;}
1244 [\\/]* | ?:[\\/]* ) . $cache_file;;
1245 *) . ./$cache_file;;
1249 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1250 echo "$as_me: creating cache $cache_file" >&6;}
1254 # Check that the precious variables saved in the cache have kept the same
1256 ac_cache_corrupted=false
1257 for ac_var in `(set) 2>&1 |
1258 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1259 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1260 eval ac_new_set=\$ac_env_${ac_var}_set
1261 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1262 eval ac_new_val="\$ac_env_${ac_var}_value"
1263 case $ac_old_set,$ac_new_set in
1265 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1266 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1267 ac_cache_corrupted=: ;;
1269 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1270 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1271 ac_cache_corrupted=: ;;
1274 if test "x$ac_old_val" != "x$ac_new_val"; then
1275 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1276 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1277 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1278 echo "$as_me: former value: $ac_old_val" >&2;}
1279 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1280 echo "$as_me: current value: $ac_new_val" >&2;}
1281 ac_cache_corrupted=:
1284 # Pass precious variables to config.status.
1285 if test "$ac_new_set" = set; then
1287 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1288 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1289 *) ac_arg=$ac_var=$ac_new_val ;;
1291 case " $ac_configure_args " in
1292 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1293 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1297 if $ac_cache_corrupted; then
1298 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1299 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1300 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1301 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1302 { (exit 1); exit 1; }; }
1306 ac_cpp='$CPP $CPPFLAGS'
1307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1335 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1336 if test -f $ac_dir/install-sh; then
1338 ac_install_sh="$ac_aux_dir/install-sh -c"
1340 elif test -f $ac_dir/install.sh; then
1342 ac_install_sh="$ac_aux_dir/install.sh -c"
1344 elif test -f $ac_dir/shtool; then
1346 ac_install_sh="$ac_aux_dir/shtool install -c"
1350 if test -z "$ac_aux_dir"; then
1351 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1352 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1353 { (exit 1); exit 1; }; }
1355 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1356 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1357 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1359 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1367 # Extract the first word of "$ac_prog", so it can be a program name with args.
1368 set dummy $ac_prog; ac_word=$2
1369 echo "$as_me:$LINENO: checking for $ac_word" >&5
1370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1371 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1372 echo $ECHO_N "(cached) $ECHO_C" >&6
1376 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1383 test -z "$as_dir" && as_dir=.
1384 for ac_exec_ext in '' $ac_executable_extensions; do
1385 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1386 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1396 TRUEPRG=$ac_cv_path_TRUEPRG
1398 if test -n "$TRUEPRG"; then
1399 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1400 echo "${ECHO_T}$TRUEPRG" >&6
1402 echo "$as_me:$LINENO: result: no" >&5
1403 echo "${ECHO_T}no" >&6
1406 test -n "$TRUEPRG" && break
1408 test -n "$TRUEPRG" || TRUEPRG=":"
1410 for ac_prog in false
1412 # Extract the first word of "$ac_prog", so it can be a program name with args.
1413 set dummy $ac_prog; ac_word=$2
1414 echo "$as_me:$LINENO: checking for $ac_word" >&5
1415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1416 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1417 echo $ECHO_N "(cached) $ECHO_C" >&6
1421 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1428 test -z "$as_dir" && as_dir=.
1429 for ac_exec_ext in '' $ac_executable_extensions; do
1430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1431 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1441 FALSEPRG=$ac_cv_path_FALSEPRG
1443 if test -n "$FALSEPRG"; then
1444 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1445 echo "${ECHO_T}$FALSEPRG" >&6
1447 echo "$as_me:$LINENO: result: no" >&5
1448 echo "${ECHO_T}no" >&6
1451 test -n "$FALSEPRG" && break
1453 test -n "$FALSEPRG" || FALSEPRG=":"
1456 # Make sure we can run config.sub.
1457 $ac_config_sub sun4 >/dev/null 2>&1 ||
1458 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1459 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1460 { (exit 1); exit 1; }; }
1462 echo "$as_me:$LINENO: checking build system type" >&5
1463 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1464 if test "${ac_cv_build+set}" = set; then
1465 echo $ECHO_N "(cached) $ECHO_C" >&6
1467 ac_cv_build_alias=$build_alias
1468 test -z "$ac_cv_build_alias" &&
1469 ac_cv_build_alias=`$ac_config_guess`
1470 test -z "$ac_cv_build_alias" &&
1471 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1472 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1473 { (exit 1); exit 1; }; }
1474 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1475 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1476 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1477 { (exit 1); exit 1; }; }
1480 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1481 echo "${ECHO_T}$ac_cv_build" >&6
1483 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1484 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1485 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1488 echo "$as_me:$LINENO: checking host system type" >&5
1489 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1490 if test "${ac_cv_host+set}" = set; then
1491 echo $ECHO_N "(cached) $ECHO_C" >&6
1493 ac_cv_host_alias=$host_alias
1494 test -z "$ac_cv_host_alias" &&
1495 ac_cv_host_alias=$ac_cv_build_alias
1496 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1497 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1498 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1499 { (exit 1); exit 1; }; }
1502 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1503 echo "${ECHO_T}$ac_cv_host" >&6
1505 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1506 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1507 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1511 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1512 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1513 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1514 echo "configuring for bacula $VERSION ($DATE)"
1519 ac_cpp='$CPP $CPPFLAGS'
1520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523 if test -n "$ac_tool_prefix"; then
1524 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1525 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1526 echo "$as_me:$LINENO: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_CC+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 if test -n "$CC"; then
1532 ac_cv_prog_CC="$CC" # Let the user override the test.
1534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538 test -z "$as_dir" && as_dir=.
1539 for ac_exec_ext in '' $ac_executable_extensions; do
1540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1541 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1551 if test -n "$CC"; then
1552 echo "$as_me:$LINENO: result: $CC" >&5
1553 echo "${ECHO_T}$CC" >&6
1555 echo "$as_me:$LINENO: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1560 if test -z "$ac_cv_prog_CC"; then
1562 # Extract the first word of "gcc", so it can be a program name with args.
1563 set dummy gcc; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1569 if test -n "$ac_ct_CC"; then
1570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 test -z "$as_dir" && as_dir=.
1577 for ac_exec_ext in '' $ac_executable_extensions; do
1578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579 ac_cv_prog_ac_ct_CC="gcc"
1580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1589 if test -n "$ac_ct_CC"; then
1590 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1591 echo "${ECHO_T}$ac_ct_CC" >&6
1593 echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1602 if test -z "$CC"; then
1603 if test -n "$ac_tool_prefix"; then
1604 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1605 set dummy ${ac_tool_prefix}cc; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_CC+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 if test -n "$CC"; then
1612 ac_cv_prog_CC="$CC" # Let the user override the test.
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 test -z "$as_dir" && as_dir=.
1619 for ac_exec_ext in '' $ac_executable_extensions; do
1620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621 ac_cv_prog_CC="${ac_tool_prefix}cc"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1631 if test -n "$CC"; then
1632 echo "$as_me:$LINENO: result: $CC" >&5
1633 echo "${ECHO_T}$CC" >&6
1635 echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1640 if test -z "$ac_cv_prog_CC"; then
1642 # Extract the first word of "cc", so it can be a program name with args.
1643 set dummy cc; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 if test -n "$ac_ct_CC"; then
1650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 test -z "$as_dir" && as_dir=.
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659 ac_cv_prog_ac_ct_CC="cc"
1660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1669 if test -n "$ac_ct_CC"; then
1670 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1671 echo "${ECHO_T}$ac_ct_CC" >&6
1673 echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1683 if test -z "$CC"; then
1684 # Extract the first word of "cc", so it can be a program name with args.
1685 set dummy cc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 if test -n "$CC"; then
1692 ac_cv_prog_CC="$CC" # Let the user override the test.
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1703 ac_prog_rejected=yes
1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 if test $ac_prog_rejected = yes; then
1714 # We found a bogon in the path, so make sure we never use it.
1715 set dummy $ac_cv_prog_CC
1717 if test $# != 0; then
1718 # We chose a different compiler from the bogus one.
1719 # However, it has the same basename, so the bogon will be chosen
1720 # first if we set CC to just the basename; use the full file name.
1722 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1728 if test -n "$CC"; then
1729 echo "$as_me:$LINENO: result: $CC" >&5
1730 echo "${ECHO_T}$CC" >&6
1732 echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1737 if test -z "$CC"; then
1738 if test -n "$ac_tool_prefix"; then
1741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_CC+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 if test -n "$CC"; then
1749 ac_cv_prog_CC="$CC" # Let the user override the test.
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 test -z "$as_dir" && as_dir=.
1756 for ac_exec_ext in '' $ac_executable_extensions; do
1757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768 if test -n "$CC"; then
1769 echo "$as_me:$LINENO: result: $CC" >&5
1770 echo "${ECHO_T}$CC" >&6
1772 echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1776 test -n "$CC" && break
1779 if test -z "$CC"; then
1783 # Extract the first word of "$ac_prog", so it can be a program name with args.
1784 set dummy $ac_prog; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 if test -n "$ac_ct_CC"; then
1791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 test -z "$as_dir" && as_dir=.
1798 for ac_exec_ext in '' $ac_executable_extensions; do
1799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800 ac_cv_prog_ac_ct_CC="$ac_prog"
1801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1810 if test -n "$ac_ct_CC"; then
1811 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1812 echo "${ECHO_T}$ac_ct_CC" >&6
1814 echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1818 test -n "$ac_ct_CC" && break
1827 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: no acceptable C compiler found in \$PATH
1830 See \`config.log' for more details." >&2;}
1831 { (exit 1); exit 1; }; }
1833 # Provide some information about the compiler.
1834 echo "$as_me:$LINENO:" \
1835 "checking for C compiler version" >&5
1836 ac_compiler=`set X $ac_compile; echo $2`
1837 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1838 (eval $ac_compiler --version </dev/null >&5) 2>&5
1840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841 (exit $ac_status); }
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1843 (eval $ac_compiler -v </dev/null >&5) 2>&5
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1848 (eval $ac_compiler -V </dev/null >&5) 2>&5
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }
1853 cat >conftest.$ac_ext <<_ACEOF
1854 #line $LINENO "configure"
1857 cat confdefs.h >>conftest.$ac_ext
1858 cat >>conftest.$ac_ext <<_ACEOF
1859 /* end confdefs.h. */
1869 ac_clean_files_save=$ac_clean_files
1870 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1871 # Try to create an executable without -o first, disregard a.out.
1872 # It will help us diagnose broken compilers, and finding out an intuition
1874 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1875 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1876 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1877 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1878 (eval $ac_link_default) 2>&5
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); }; then
1882 # Find the output, starting from the most likely. This scheme is
1883 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1886 # Be careful to initialize this variable, since it used to be cached.
1887 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1889 # b.out is created by i960 compilers.
1890 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1892 test -f "$ac_file" || continue
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1897 # This is the source file.
1900 # We found the default executable, but exeext='' is most
1904 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1905 # FIXME: I believe we export ac_cv_exeext for Libtool,
1906 # but it would be cool to find out if it's true. Does anybody
1907 # maintain Libtool? --akim.
1915 echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1918 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&2;}
1922 { (exit 77); exit 77; }; }
1925 ac_exeext=$ac_cv_exeext
1926 echo "$as_me:$LINENO: result: $ac_file" >&5
1927 echo "${ECHO_T}$ac_file" >&6
1929 # Check the compiler produces executables we can run. If not, either
1930 # the compiler is broken, or we cross compile.
1931 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1932 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1933 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1934 # If not cross compiling, check that we can run a simple program.
1935 if test "$cross_compiling" != yes; then
1936 if { ac_try='./$ac_file'
1937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; }; then
1944 if test "$cross_compiling" = maybe; then
1947 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1948 If you meant to cross compile, use \`--host'.
1949 See \`config.log' for more details." >&5
1950 echo "$as_me: error: cannot run C compiled programs.
1951 If you meant to cross compile, use \`--host'.
1952 See \`config.log' for more details." >&2;}
1953 { (exit 1); exit 1; }; }
1957 echo "$as_me:$LINENO: result: yes" >&5
1958 echo "${ECHO_T}yes" >&6
1960 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1961 ac_clean_files=$ac_clean_files_save
1962 # Check the compiler produces executables we can run. If not, either
1963 # the compiler is broken, or we cross compile.
1964 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1965 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1966 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1967 echo "${ECHO_T}$cross_compiling" >&6
1969 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1970 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1972 (eval $ac_link) 2>&5
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975 (exit $ac_status); }; then
1976 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1977 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1978 # work properly (i.e., refer to `conftest.exe'), while it won't with
1980 for ac_file in conftest.exe conftest conftest.*; do
1981 test -f "$ac_file" || continue
1983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1991 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1992 See \`config.log' for more details." >&5
1993 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&2;}
1995 { (exit 1); exit 1; }; }
1998 rm -f conftest$ac_cv_exeext
1999 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2000 echo "${ECHO_T}$ac_cv_exeext" >&6
2002 rm -f conftest.$ac_ext
2003 EXEEXT=$ac_cv_exeext
2005 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2006 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2007 if test "${ac_cv_objext+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 cat >conftest.$ac_ext <<_ACEOF
2011 #line $LINENO "configure"
2014 cat confdefs.h >>conftest.$ac_ext
2015 cat >>conftest.$ac_ext <<_ACEOF
2016 /* end confdefs.h. */
2026 rm -f conftest.o conftest.obj
2027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028 (eval $ac_compile) 2>&5
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }; then
2032 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2034 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2035 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2040 echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2043 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2044 See \`config.log' for more details." >&5
2045 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2046 See \`config.log' for more details." >&2;}
2047 { (exit 1); exit 1; }; }
2050 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2052 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2053 echo "${ECHO_T}$ac_cv_objext" >&6
2054 OBJEXT=$ac_cv_objext
2056 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2057 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2058 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2059 echo $ECHO_N "(cached) $ECHO_C" >&6
2061 cat >conftest.$ac_ext <<_ACEOF
2062 #line $LINENO "configure"
2065 cat confdefs.h >>conftest.$ac_ext
2066 cat >>conftest.$ac_ext <<_ACEOF
2067 /* end confdefs.h. */
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082 (eval $ac_compile) 2>&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); } &&
2086 { ac_try='test -s conftest.$ac_objext'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; }; then
2094 echo "$as_me: failed program was:" >&5
2095 sed 's/^/| /' conftest.$ac_ext >&5
2099 rm -f conftest.$ac_objext conftest.$ac_ext
2100 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2103 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2104 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2105 GCC=`test $ac_compiler_gnu = yes && echo yes`
2106 ac_test_CFLAGS=${CFLAGS+set}
2107 ac_save_CFLAGS=$CFLAGS
2109 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2110 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2111 if test "${ac_cv_prog_cc_g+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2114 cat >conftest.$ac_ext <<_ACEOF
2115 #line $LINENO "configure"
2118 cat confdefs.h >>conftest.$ac_ext
2119 cat >>conftest.$ac_ext <<_ACEOF
2120 /* end confdefs.h. */
2130 rm -f conftest.$ac_objext
2131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2132 (eval $ac_compile) 2>&5
2134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135 (exit $ac_status); } &&
2136 { ac_try='test -s conftest.$ac_objext'
2137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141 (exit $ac_status); }; }; then
2144 echo "$as_me: failed program was:" >&5
2145 sed 's/^/| /' conftest.$ac_ext >&5
2149 rm -f conftest.$ac_objext conftest.$ac_ext
2151 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2152 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2153 if test "$ac_test_CFLAGS" = set; then
2154 CFLAGS=$ac_save_CFLAGS
2155 elif test $ac_cv_prog_cc_g = yes; then
2156 if test "$GCC" = yes; then
2162 if test "$GCC" = yes; then
2168 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2169 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2170 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 ac_cv_prog_cc_stdc=no
2175 cat >conftest.$ac_ext <<_ACEOF
2176 #line $LINENO "configure"
2179 cat confdefs.h >>conftest.$ac_ext
2180 cat >>conftest.$ac_ext <<_ACEOF
2181 /* end confdefs.h. */
2184 #include <sys/types.h>
2185 #include <sys/stat.h>
2186 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2187 struct buf { int x; };
2188 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2189 static char *e (p, i)
2195 static char *f (char * (*g) (char **, int), char **p, ...)
2200 s = g (p, va_arg (v,int));
2204 int test (int i, double x);
2205 struct s1 {int (*f) (int a);};
2206 struct s2 {int (*f) (double a);};
2207 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2213 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2218 # Don't try gcc -ansi; that turns off useful extensions and
2219 # breaks some systems' header files.
2220 # AIX -qlanglvl=ansi
2221 # Ultrix and OSF/1 -std1
2222 # HP-UX 10.20 and later -Ae
2223 # HP-UX older versions -Aa -D_HPUX_SOURCE
2224 # SVR4 -Xc -D__EXTENSIONS__
2225 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2227 CC="$ac_save_CC $ac_arg"
2228 rm -f conftest.$ac_objext
2229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2230 (eval $ac_compile) 2>&5
2232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233 (exit $ac_status); } &&
2234 { ac_try='test -s conftest.$ac_objext'
2235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239 (exit $ac_status); }; }; then
2240 ac_cv_prog_cc_stdc=$ac_arg
2243 echo "$as_me: failed program was:" >&5
2244 sed 's/^/| /' conftest.$ac_ext >&5
2247 rm -f conftest.$ac_objext
2249 rm -f conftest.$ac_ext conftest.$ac_objext
2254 case "x$ac_cv_prog_cc_stdc" in
2256 echo "$as_me:$LINENO: result: none needed" >&5
2257 echo "${ECHO_T}none needed" >&6 ;;
2259 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2260 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2261 CC="$CC $ac_cv_prog_cc_stdc" ;;
2264 # Some people use a C++ compiler to compile C. Since we use `exit',
2265 # in C++ we need to declare it. In case someone uses the same compiler
2266 # for both compiling C and C++ we need to have the C++ compiler decide
2267 # the declaration of exit, since it's the most demanding environment.
2268 cat >conftest.$ac_ext <<_ACEOF
2273 rm -f conftest.$ac_objext
2274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2275 (eval $ac_compile) 2>&5
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); } &&
2279 { ac_try='test -s conftest.$ac_objext'
2280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; }; then
2285 for ac_declaration in \
2287 '#include <stdlib.h>' \
2288 'extern "C" void std::exit (int) throw (); using std::exit;' \
2289 'extern "C" void std::exit (int); using std::exit;' \
2290 'extern "C" void exit (int) throw ();' \
2291 'extern "C" void exit (int);' \
2294 cat >conftest.$ac_ext <<_ACEOF
2295 #line $LINENO "configure"
2298 cat confdefs.h >>conftest.$ac_ext
2299 cat >>conftest.$ac_ext <<_ACEOF
2300 /* end confdefs.h. */
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); } &&
2317 { ac_try='test -s conftest.$ac_objext'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2330 rm -f conftest.$ac_objext conftest.$ac_ext
2331 cat >conftest.$ac_ext <<_ACEOF
2332 #line $LINENO "configure"
2335 cat confdefs.h >>conftest.$ac_ext
2336 cat >>conftest.$ac_ext <<_ACEOF
2337 /* end confdefs.h. */
2347 rm -f conftest.$ac_objext
2348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2349 (eval $ac_compile) 2>&5
2351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2352 (exit $ac_status); } &&
2353 { ac_try='test -s conftest.$ac_objext'
2354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; }; then
2361 echo "$as_me: failed program was:" >&5
2362 sed 's/^/| /' conftest.$ac_ext >&5
2365 rm -f conftest.$ac_objext conftest.$ac_ext
2368 if test -n "$ac_declaration"; then
2369 echo '#ifdef __cplusplus' >>confdefs.h
2370 echo $ac_declaration >>confdefs.h
2371 echo '#endif' >>confdefs.h
2375 echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2379 rm -f conftest.$ac_objext conftest.$ac_ext
2381 ac_cpp='$CPP $CPPFLAGS'
2382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2387 ac_cpp='$CXXCPP $CPPFLAGS'
2388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2391 if test -n "$ac_tool_prefix"; then
2392 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2395 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2396 echo "$as_me:$LINENO: checking for $ac_word" >&5
2397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2398 if test "${ac_cv_prog_CXX+set}" = set; then
2399 echo $ECHO_N "(cached) $ECHO_C" >&6
2401 if test -n "$CXX"; then
2402 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2408 test -z "$as_dir" && as_dir=.
2409 for ac_exec_ext in '' $ac_executable_extensions; do
2410 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2411 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2421 if test -n "$CXX"; then
2422 echo "$as_me:$LINENO: result: $CXX" >&5
2423 echo "${ECHO_T}$CXX" >&6
2425 echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6
2429 test -n "$CXX" && break
2432 if test -z "$CXX"; then
2434 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2436 # Extract the first word of "$ac_prog", so it can be a program name with args.
2437 set dummy $ac_prog; ac_word=$2
2438 echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2440 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 if test -n "$ac_ct_CXX"; then
2444 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir=.
2451 for ac_exec_ext in '' $ac_executable_extensions; do
2452 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2453 ac_cv_prog_ac_ct_CXX="$ac_prog"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2463 if test -n "$ac_ct_CXX"; then
2464 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2465 echo "${ECHO_T}$ac_ct_CXX" >&6
2467 echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6
2471 test -n "$ac_ct_CXX" && break
2473 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2479 # Provide some information about the compiler.
2480 echo "$as_me:$LINENO:" \
2481 "checking for C++ compiler version" >&5
2482 ac_compiler=`set X $ac_compile; echo $2`
2483 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2484 (eval $ac_compiler --version </dev/null >&5) 2>&5
2486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487 (exit $ac_status); }
2488 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2489 (eval $ac_compiler -v </dev/null >&5) 2>&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); }
2493 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2494 (eval $ac_compiler -V </dev/null >&5) 2>&5
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }
2499 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2500 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2501 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2502 echo $ECHO_N "(cached) $ECHO_C" >&6
2504 cat >conftest.$ac_ext <<_ACEOF
2505 #line $LINENO "configure"
2508 cat confdefs.h >>conftest.$ac_ext
2509 cat >>conftest.$ac_ext <<_ACEOF
2510 /* end confdefs.h. */
2523 rm -f conftest.$ac_objext
2524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2525 (eval $ac_compile) 2>&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } &&
2529 { ac_try='test -s conftest.$ac_objext'
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; }; then
2537 echo "$as_me: failed program was:" >&5
2538 sed 's/^/| /' conftest.$ac_ext >&5
2542 rm -f conftest.$ac_objext conftest.$ac_ext
2543 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2546 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2547 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2548 GXX=`test $ac_compiler_gnu = yes && echo yes`
2549 ac_test_CXXFLAGS=${CXXFLAGS+set}
2550 ac_save_CXXFLAGS=$CXXFLAGS
2552 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2553 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2554 if test "${ac_cv_prog_cxx_g+set}" = set; then
2555 echo $ECHO_N "(cached) $ECHO_C" >&6
2557 cat >conftest.$ac_ext <<_ACEOF
2558 #line $LINENO "configure"
2561 cat confdefs.h >>conftest.$ac_ext
2562 cat >>conftest.$ac_ext <<_ACEOF
2563 /* end confdefs.h. */
2573 rm -f conftest.$ac_objext
2574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2575 (eval $ac_compile) 2>&5
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); } &&
2579 { ac_try='test -s conftest.$ac_objext'
2580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584 (exit $ac_status); }; }; then
2585 ac_cv_prog_cxx_g=yes
2587 echo "$as_me: failed program was:" >&5
2588 sed 's/^/| /' conftest.$ac_ext >&5
2592 rm -f conftest.$ac_objext conftest.$ac_ext
2594 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2595 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2596 if test "$ac_test_CXXFLAGS" = set; then
2597 CXXFLAGS=$ac_save_CXXFLAGS
2598 elif test $ac_cv_prog_cxx_g = yes; then
2599 if test "$GXX" = yes; then
2605 if test "$GXX" = yes; then
2611 for ac_declaration in \
2613 '#include <stdlib.h>' \
2614 'extern "C" void std::exit (int) throw (); using std::exit;' \
2615 'extern "C" void std::exit (int); using std::exit;' \
2616 'extern "C" void exit (int) throw ();' \
2617 'extern "C" void exit (int);' \
2620 cat >conftest.$ac_ext <<_ACEOF
2621 #line $LINENO "configure"
2624 cat confdefs.h >>conftest.$ac_ext
2625 cat >>conftest.$ac_ext <<_ACEOF
2626 /* end confdefs.h. */
2637 rm -f conftest.$ac_objext
2638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639 (eval $ac_compile) 2>&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2656 rm -f conftest.$ac_objext conftest.$ac_ext
2657 cat >conftest.$ac_ext <<_ACEOF
2658 #line $LINENO "configure"
2661 cat confdefs.h >>conftest.$ac_ext
2662 cat >>conftest.$ac_ext <<_ACEOF
2663 /* end confdefs.h. */
2673 rm -f conftest.$ac_objext
2674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2675 (eval $ac_compile) 2>&5
2677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
2679 { ac_try='test -s conftest.$ac_objext'
2680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); }; }; then
2687 echo "$as_me: failed program was:" >&5
2688 sed 's/^/| /' conftest.$ac_ext >&5
2691 rm -f conftest.$ac_objext conftest.$ac_ext
2694 if test -n "$ac_declaration"; then
2695 echo '#ifdef __cplusplus' >>confdefs.h
2696 echo $ac_declaration >>confdefs.h
2697 echo '#endif' >>confdefs.h
2701 ac_cpp='$CPP $CPPFLAGS'
2702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2706 if test "x$CC" != xcc; then
2707 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2708 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2710 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2711 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2713 set dummy $CC; ac_cc=`echo $2 |
2714 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2715 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 cat >conftest.$ac_ext <<_ACEOF
2719 #line $LINENO "configure"
2722 cat confdefs.h >>conftest.$ac_ext
2723 cat >>conftest.$ac_ext <<_ACEOF
2724 /* end confdefs.h. */
2734 # Make sure it works both with $CC and with simple cc.
2735 # We do the test twice because some compilers refuse to overwrite an
2736 # existing .o file with -o, though they will create one.
2737 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2738 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); } &&
2743 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747 (exit $ac_status); };
2749 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2750 if test "x$CC" != xcc; then
2751 # Test first that cc exists at all.
2752 if { ac_try='cc -c conftest.$ac_ext >&5'
2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }; }; then
2758 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2759 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); } &&
2764 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2768 (exit $ac_status); };
2773 # cc exists but doesn't like -o.
2774 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2779 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2784 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2785 echo "$as_me:$LINENO: result: yes" >&5
2786 echo "${ECHO_T}yes" >&6
2788 echo "$as_me:$LINENO: result: no" >&5
2789 echo "${ECHO_T}no" >&6
2791 cat >>confdefs.h <<\_ACEOF
2792 #define NO_MINUS_C_MINUS_O 1
2798 ac_cpp='$CPP $CPPFLAGS'
2799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2802 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2803 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2804 # On Suns, sometimes $CPP names a directory.
2805 if test -n "$CPP" && test -d "$CPP"; then
2808 if test -z "$CPP"; then
2809 if test "${ac_cv_prog_CPP+set}" = set; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 # Double quotes because CPP needs to be expanded
2813 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2816 for ac_c_preproc_warn_flag in '' yes
2818 # Use a header file that comes with gcc, so configuring glibc
2819 # with a fresh cross-compiler works.
2820 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2821 # <limits.h> exists even on freestanding compilers.
2822 # On the NeXT, cc -E runs the code through the compiler's parser,
2823 # not just through cpp. "Syntax error" is here to catch this case.
2824 cat >conftest.$ac_ext <<_ACEOF
2825 #line $LINENO "configure"
2828 cat confdefs.h >>conftest.$ac_ext
2829 cat >>conftest.$ac_ext <<_ACEOF
2830 /* end confdefs.h. */
2832 # include <limits.h>
2834 # include <assert.h>
2838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2841 grep -v '^ *+' conftest.er1 >conftest.err
2843 cat conftest.err >&5
2844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2845 (exit $ac_status); } >/dev/null; then
2846 if test -s conftest.err; then
2847 ac_cpp_err=$ac_c_preproc_warn_flag
2854 if test -z "$ac_cpp_err"; then
2857 echo "$as_me: failed program was:" >&5
2858 sed 's/^/| /' conftest.$ac_ext >&5
2860 # Broken: fails on valid input.
2863 rm -f conftest.err conftest.$ac_ext
2865 # OK, works on sane cases. Now check whether non-existent headers
2866 # can be detected and how.
2867 cat >conftest.$ac_ext <<_ACEOF
2868 #line $LINENO "configure"
2871 cat confdefs.h >>conftest.$ac_ext
2872 cat >>conftest.$ac_ext <<_ACEOF
2873 /* end confdefs.h. */
2874 #include <ac_nonexistent.h>
2876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2879 grep -v '^ *+' conftest.er1 >conftest.err
2881 cat conftest.err >&5
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); } >/dev/null; then
2884 if test -s conftest.err; then
2885 ac_cpp_err=$ac_c_preproc_warn_flag
2892 if test -z "$ac_cpp_err"; then
2893 # Broken: success on invalid input.
2896 echo "$as_me: failed program was:" >&5
2897 sed 's/^/| /' conftest.$ac_ext >&5
2899 # Passes both tests.
2903 rm -f conftest.err conftest.$ac_ext
2906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2907 rm -f conftest.err conftest.$ac_ext
2908 if $ac_preproc_ok; then
2920 echo "$as_me:$LINENO: result: $CPP" >&5
2921 echo "${ECHO_T}$CPP" >&6
2923 for ac_c_preproc_warn_flag in '' yes
2925 # Use a header file that comes with gcc, so configuring glibc
2926 # with a fresh cross-compiler works.
2927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2928 # <limits.h> exists even on freestanding compilers.
2929 # On the NeXT, cc -E runs the code through the compiler's parser,
2930 # not just through cpp. "Syntax error" is here to catch this case.
2931 cat >conftest.$ac_ext <<_ACEOF
2932 #line $LINENO "configure"
2935 cat confdefs.h >>conftest.$ac_ext
2936 cat >>conftest.$ac_ext <<_ACEOF
2937 /* end confdefs.h. */
2939 # include <limits.h>
2941 # include <assert.h>
2945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2948 grep -v '^ *+' conftest.er1 >conftest.err
2950 cat conftest.err >&5
2951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952 (exit $ac_status); } >/dev/null; then
2953 if test -s conftest.err; then
2954 ac_cpp_err=$ac_c_preproc_warn_flag
2961 if test -z "$ac_cpp_err"; then
2964 echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2967 # Broken: fails on valid input.
2970 rm -f conftest.err conftest.$ac_ext
2972 # OK, works on sane cases. Now check whether non-existent headers
2973 # can be detected and how.
2974 cat >conftest.$ac_ext <<_ACEOF
2975 #line $LINENO "configure"
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h. */
2981 #include <ac_nonexistent.h>
2983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2986 grep -v '^ *+' conftest.er1 >conftest.err
2988 cat conftest.err >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } >/dev/null; then
2991 if test -s conftest.err; then
2992 ac_cpp_err=$ac_c_preproc_warn_flag
2999 if test -z "$ac_cpp_err"; then
3000 # Broken: success on invalid input.
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3006 # Passes both tests.
3010 rm -f conftest.err conftest.$ac_ext
3013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3014 rm -f conftest.err conftest.$ac_ext
3015 if $ac_preproc_ok; then
3018 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3019 See \`config.log' for more details." >&5
3020 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3021 See \`config.log' for more details." >&2;}
3022 { (exit 1); exit 1; }; }
3026 ac_cpp='$CPP $CPPFLAGS'
3027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032 echo "$as_me:$LINENO: checking for egrep" >&5
3033 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3034 if test "${ac_cv_prog_egrep+set}" = set; then
3035 echo $ECHO_N "(cached) $ECHO_C" >&6
3037 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3038 then ac_cv_prog_egrep='grep -E'
3039 else ac_cv_prog_egrep='egrep'
3042 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3043 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3044 EGREP=$ac_cv_prog_egrep
3047 if test $ac_cv_c_compiler_gnu = yes; then
3048 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3049 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3050 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3051 echo $ECHO_N "(cached) $ECHO_C" >&6
3053 ac_pattern="Autoconf.*'x'"
3054 cat >conftest.$ac_ext <<_ACEOF
3055 #line $LINENO "configure"
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3065 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3066 ac_cv_prog_gcc_traditional=yes
3068 ac_cv_prog_gcc_traditional=no
3073 if test $ac_cv_prog_gcc_traditional = no; then
3074 cat >conftest.$ac_ext <<_ACEOF
3075 #line $LINENO "configure"
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3084 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3085 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3086 ac_cv_prog_gcc_traditional=yes
3092 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3093 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3094 if test $ac_cv_prog_gcc_traditional = yes; then
3095 CC="$CC -traditional"
3101 cat >>confdefs.h <<\_ACEOF
3107 # Find a good install program. We prefer a C program (faster),
3108 # so one script is as good as another. But avoid the broken or
3109 # incompatible versions:
3110 # SysV /etc/install, /usr/sbin/install
3111 # SunOS /usr/etc/install
3112 # IRIX /sbin/install
3114 # AmigaOS /C/install, which installs bootblocks on floppy discs
3115 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3116 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3117 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3118 # ./install, which can be erroneously created by make from ./install.sh.
3119 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3120 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3121 if test -z "$INSTALL"; then
3122 if test "${ac_cv_path_install+set}" = set; then
3123 echo $ECHO_N "(cached) $ECHO_C" >&6
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 test -z "$as_dir" && as_dir=.
3130 # Account for people who put trailing slashes in PATH elements.
3132 ./ | .// | /cC/* | \
3133 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3136 # OSF1 and SCO ODT 3.0 have their own names for install.
3137 # Don't use installbsd from OSF since it installs stuff as root
3139 for ac_prog in ginstall scoinst install; do
3140 for ac_exec_ext in '' $ac_executable_extensions; do
3141 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3142 if test $ac_prog = install &&
3143 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3144 # AIX install. It has an incompatible calling convention.
3146 elif test $ac_prog = install &&
3147 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3148 # program-specific install script used by HP pwplus--don't use.
3151 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3163 if test "${ac_cv_path_install+set}" = set; then
3164 INSTALL=$ac_cv_path_install
3166 # As a last resort, use the slow shell script. We don't cache a
3167 # path for INSTALL within a source directory, because that will
3168 # break other packages using the cache if that directory is
3169 # removed, or if the path is relative.
3170 INSTALL=$ac_install_sh
3173 echo "$as_me:$LINENO: result: $INSTALL" >&5
3174 echo "${ECHO_T}$INSTALL" >&6
3176 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3177 # It thinks the first close brace ends the variable substitution.
3178 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3180 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3182 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3184 if test -n "$ac_tool_prefix"; then
3185 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3186 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3187 echo "$as_me:$LINENO: checking for $ac_word" >&5
3188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3189 if test "${ac_cv_prog_RANLIB+set}" = set; then
3190 echo $ECHO_N "(cached) $ECHO_C" >&6
3192 if test -n "$RANLIB"; then
3193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3202 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 RANLIB=$ac_cv_prog_RANLIB
3212 if test -n "$RANLIB"; then
3213 echo "$as_me:$LINENO: result: $RANLIB" >&5
3214 echo "${ECHO_T}$RANLIB" >&6
3216 echo "$as_me:$LINENO: result: no" >&5
3217 echo "${ECHO_T}no" >&6
3221 if test -z "$ac_cv_prog_RANLIB"; then
3222 ac_ct_RANLIB=$RANLIB
3223 # Extract the first word of "ranlib", so it can be a program name with args.
3224 set dummy ranlib; ac_word=$2
3225 echo "$as_me:$LINENO: checking for $ac_word" >&5
3226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3227 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3228 echo $ECHO_N "(cached) $ECHO_C" >&6
3230 if test -n "$ac_ct_RANLIB"; then
3231 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 test -z "$as_dir" && as_dir=.
3238 for ac_exec_ext in '' $ac_executable_extensions; do
3239 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3240 ac_cv_prog_ac_ct_RANLIB="ranlib"
3241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3250 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3251 if test -n "$ac_ct_RANLIB"; then
3252 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3253 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3255 echo "$as_me:$LINENO: result: no" >&5
3256 echo "${ECHO_T}no" >&6
3259 RANLIB=$ac_ct_RANLIB
3261 RANLIB="$ac_cv_prog_RANLIB"
3264 # Extract the first word of "mv", so it can be a program name with args.
3265 set dummy mv; ac_word=$2
3266 echo "$as_me:$LINENO: checking for $ac_word" >&5
3267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3268 if test "${ac_cv_path_MV+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3283 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3296 if test -n "$MV"; then
3297 echo "$as_me:$LINENO: result: $MV" >&5
3298 echo "${ECHO_T}$MV" >&6
3300 echo "$as_me:$LINENO: result: no" >&5
3301 echo "${ECHO_T}no" >&6
3304 # Extract the first word of "rm", so it can be a program name with args.
3305 set dummy rm; ac_word=$2
3306 echo "$as_me:$LINENO: checking for $ac_word" >&5
3307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3308 if test "${ac_cv_path_RM+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3336 if test -n "$RM"; then
3337 echo "$as_me:$LINENO: result: $RM" >&5
3338 echo "${ECHO_T}$RM" >&6
3340 echo "$as_me:$LINENO: result: no" >&5
3341 echo "${ECHO_T}no" >&6
3344 # Extract the first word of "cp", so it can be a program name with args.
3345 set dummy cp; ac_word=$2
3346 echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3348 if test "${ac_cv_path_CP+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 test -z "$as_dir" && as_dir=.
3361 for ac_exec_ext in '' $ac_executable_extensions; do
3362 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3363 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3364 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3376 if test -n "$CP"; then
3377 echo "$as_me:$LINENO: result: $CP" >&5
3378 echo "${ECHO_T}$CP" >&6
3380 echo "$as_me:$LINENO: result: no" >&5
3381 echo "${ECHO_T}no" >&6
3384 # Extract the first word of "sed", so it can be a program name with args.
3385 set dummy sed; ac_word=$2
3386 echo "$as_me:$LINENO: checking for $ac_word" >&5
3387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3388 if test "${ac_cv_path_SED+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 test -z "$as_dir" && as_dir=.
3401 for ac_exec_ext in '' $ac_executable_extensions; do
3402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3403 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3410 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3416 if test -n "$SED"; then
3417 echo "$as_me:$LINENO: result: $SED" >&5
3418 echo "${ECHO_T}$SED" >&6
3420 echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6
3424 # Extract the first word of "awk", so it can be a program name with args.
3425 set dummy awk; ac_word=$2
3426 echo "$as_me:$LINENO: checking for $ac_word" >&5
3427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3428 if test "${ac_cv_path_AWK+set}" = set; then
3429 echo $ECHO_N "(cached) $ECHO_C" >&6
3433 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3443 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3456 if test -n "$AWK"; then
3457 echo "$as_me:$LINENO: result: $AWK" >&5
3458 echo "${ECHO_T}$AWK" >&6
3460 echo "$as_me:$LINENO: result: no" >&5
3461 echo "${ECHO_T}no" >&6
3464 # Extract the first word of "echo", so it can be a program name with args.
3465 set dummy echo; ac_word=$2
3466 echo "$as_me:$LINENO: checking for $ac_word" >&5
3467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3468 if test "${ac_cv_path_ECHO+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3494 ECHO=$ac_cv_path_ECHO
3496 if test -n "$ECHO"; then
3497 echo "$as_me:$LINENO: result: $ECHO" >&5
3498 echo "${ECHO_T}$ECHO" >&6
3500 echo "$as_me:$LINENO: result: no" >&5
3501 echo "${ECHO_T}no" >&6
3504 # Extract the first word of "cmp", so it can be a program name with args.
3505 set dummy cmp; ac_word=$2
3506 echo "$as_me:$LINENO: checking for $ac_word" >&5
3507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3508 if test "${ac_cv_path_CMP+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3513 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3536 if test -n "$CMP"; then
3537 echo "$as_me:$LINENO: result: $CMP" >&5
3538 echo "${ECHO_T}$CMP" >&6
3540 echo "$as_me:$LINENO: result: no" >&5
3541 echo "${ECHO_T}no" >&6
3544 # Extract the first word of "tbl", so it can be a program name with args.
3545 set dummy tbl; ac_word=$2
3546 echo "$as_me:$LINENO: checking for $ac_word" >&5
3547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3548 if test "${ac_cv_path_TBL+set}" = set; then
3549 echo $ECHO_N "(cached) $ECHO_C" >&6
3553 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3560 test -z "$as_dir" && as_dir=.
3561 for ac_exec_ext in '' $ac_executable_extensions; do
3562 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3563 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3576 if test -n "$TBL"; then
3577 echo "$as_me:$LINENO: result: $TBL" >&5
3578 echo "${ECHO_T}$TBL" >&6
3580 echo "$as_me:$LINENO: result: no" >&5
3581 echo "${ECHO_T}no" >&6
3584 # Extract the first word of "ar", so it can be a program name with args.
3585 set dummy ar; ac_word=$2
3586 echo "$as_me:$LINENO: checking for $ac_word" >&5
3587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3588 if test "${ac_cv_path_AR+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3593 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 test -z "$as_dir" && as_dir=.
3601 for ac_exec_ext in '' $ac_executable_extensions; do
3602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3603 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3616 if test -n "$AR"; then
3617 echo "$as_me:$LINENO: result: $AR" >&5
3618 echo "${ECHO_T}$AR" >&6
3620 echo "$as_me:$LINENO: result: no" >&5
3621 echo "${ECHO_T}no" >&6
3624 # Extract the first word of "ranlib", so it can be a program name with args.
3625 set dummy ranlib; ac_word=$2
3626 echo "$as_me:$LINENO: checking for $ac_word" >&5
3627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3628 if test "${ac_cv_path_RANLIB+set}" = set; then
3629 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3643 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3644 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3650 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3654 RANLIB=$ac_cv_path_RANLIB
3656 if test -n "$RANLIB"; then
3657 echo "$as_me:$LINENO: result: $RANLIB" >&5
3658 echo "${ECHO_T}$RANLIB" >&6
3660 echo "$as_me:$LINENO: result: no" >&5
3661 echo "${ECHO_T}no" >&6
3664 # Extract the first word of "openssl", so it can be a program name with args.
3665 set dummy openssl; ac_word=$2
3666 echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3668 if test "${ac_cv_path_OPENSSL+set}" = set; then
3669 echo $ECHO_N "(cached) $ECHO_C" >&6
3673 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3683 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3690 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3694 OPENSSL=$ac_cv_path_OPENSSL
3696 if test -n "$OPENSSL"; then
3697 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3698 echo "${ECHO_T}$OPENSSL" >&6
3700 echo "$as_me:$LINENO: result: no" >&5
3701 echo "${ECHO_T}no" >&6
3704 # Extract the first word of "mtx", so it can be a program name with args.
3705 set dummy mtx; ac_word=$2
3706 echo "$as_me:$LINENO: checking for $ac_word" >&5
3707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3708 if test "${ac_cv_path_MTX+set}" = set; then
3709 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3730 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3736 if test -n "$MTX"; then
3737 echo "$as_me:$LINENO: result: $MTX" >&5
3738 echo "${ECHO_T}$MTX" >&6
3740 echo "$as_me:$LINENO: result: no" >&5
3741 echo "${ECHO_T}no" >&6
3744 # Extract the first word of "pkg-config", so it can be a program name with args.
3745 set dummy pkg-config; ac_word=$2
3746 echo "$as_me:$LINENO: checking for $ac_word" >&5
3747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3748 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3749 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 test -z "$as_dir" && as_dir=.
3761 for ac_exec_ext in '' $ac_executable_extensions; do
3762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3763 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3774 PKGCONFIG=$ac_cv_path_PKGCONFIG
3776 if test -n "$PKGCONFIG"; then
3777 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3778 echo "${ECHO_T}$PKGCONFIG" >&6
3780 echo "$as_me:$LINENO: result: no" >&5
3781 echo "${ECHO_T}no" >&6
3785 test -n "$ARFLAG" || ARFLAGS="cr"
3798 echo "$as_me:$LINENO: checking for Operating System" >&5
3799 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3802 *cygwin* ) CYGWIN=yes;;
3806 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3812 HAVE_SUN_OS_FALSE='#'
3814 HAVE_SUN_OS_TRUE='#'
3817 cat >>confdefs.h <<\_ACEOF
3818 #define HAVE_SUN_OS 1
3826 HAVE_SUN_OS_FALSE='#'
3828 HAVE_SUN_OS_TRUE='#'
3833 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3839 HAVE_OSF1_OS_FALSE='#'
3841 HAVE_OSF1_OS_TRUE='#'
3844 cat >>confdefs.h <<\_ACEOF
3845 #define HAVE_OSF1_OS 1
3853 HAVE_OSF1_OS_FALSE='#'
3855 HAVE_OSF1_OS_TRUE='#'
3860 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3866 HAVE_AIX_OS_FALSE='#'
3868 HAVE_AIX_OS_TRUE='#'
3871 cat >>confdefs.h <<\_ACEOF
3872 #define HAVE_AIX_OS 1
3880 HAVE_AIX_OS_FALSE='#'
3882 HAVE_AIX_OS_TRUE='#'
3887 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3893 HAVE_HPUX_OS_FALSE='#'
3895 HAVE_HPUX_OS_TRUE='#'
3898 cat >>confdefs.h <<\_ACEOF
3899 #define HAVE_HPUX_OS 1
3907 HAVE_HPUX_OS_FALSE='#'
3909 HAVE_HPUX_OS_TRUE='#'
3914 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3920 HAVE_LINUX_OS_FALSE='#'
3922 HAVE_LINUX_OS_TRUE='#'
3923 HAVE_LINUX_OS_FALSE=
3925 cat >>confdefs.h <<\_ACEOF
3926 #define HAVE_LINUX_OS 1
3934 HAVE_LINUX_OS_FALSE='#'
3936 HAVE_LINUX_OS_TRUE='#'
3937 HAVE_LINUX_OS_FALSE=
3941 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3946 HAVE_FREEBSD_OS_TRUE=
3947 HAVE_FREEBSD_OS_FALSE='#'
3949 HAVE_FREEBSD_OS_TRUE='#'
3950 HAVE_FREEBSD_OS_FALSE=
3952 cat >>confdefs.h <<\_ACEOF
3953 #define HAVE_FREEBSD_OS 1
3960 HAVE_FREEBSD_OS_TRUE=
3961 HAVE_FREEBSD_OS_FALSE='#'
3963 HAVE_FREEBSD_OS_TRUE='#'
3964 HAVE_FREEBSD_OS_FALSE=
3968 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3973 HAVE_NETBSD_OS_TRUE=
3974 HAVE_NETBSD_OS_FALSE='#'
3976 HAVE_NETBSD_OS_TRUE='#'
3977 HAVE_NETBSD_OS_FALSE=
3979 cat >>confdefs.h <<\_ACEOF
3980 #define HAVE_NETBSD_OS 1
3987 HAVE_NETBSD_OS_TRUE=
3988 HAVE_NETBSD_OS_FALSE='#'
3990 HAVE_NETBSD_OS_TRUE='#'
3991 HAVE_NETBSD_OS_FALSE=
3995 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4000 HAVE_OPENBSD_OS_TRUE=
4001 HAVE_OPENBSD_OS_FALSE='#'
4003 HAVE_OPENBSD_OS_TRUE='#'
4004 HAVE_OPENBSD_OS_FALSE=
4006 cat >>confdefs.h <<\_ACEOF
4007 #define HAVE_OPENBSD_OS 1
4014 HAVE_OPENBSD_OS_TRUE=
4015 HAVE_OPENBSD_OS_FALSE='#'
4017 HAVE_OPENBSD_OS_TRUE='#'
4018 HAVE_OPENBSD_OS_FALSE=
4022 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4028 HAVE_BSDI_OS_FALSE='#'
4030 HAVE_BSDI_OS_TRUE='#'
4033 cat >>confdefs.h <<\_ACEOF
4034 #define HAVE_BSDI_OS 1
4042 HAVE_BSDI_OS_FALSE='#'
4044 HAVE_BSDI_OS_TRUE='#'
4049 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4055 HAVE_SGI_OS_FALSE='#'
4057 HAVE_SGI_OS_TRUE='#'
4060 cat >>confdefs.h <<\_ACEOF
4061 #define HAVE_SGI_OS 1
4069 HAVE_SGI_OS_FALSE='#'
4071 HAVE_SGI_OS_TRUE='#'
4076 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4082 HAVE_IRIX_OS_FALSE='#'
4084 HAVE_IRIX_OS_TRUE='#'
4087 cat >>confdefs.h <<\_ACEOF
4088 #define HAVE_IRIX_OS 1
4096 HAVE_IRIX_OS_FALSE='#'
4098 HAVE_IRIX_OS_TRUE='#'
4103 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4108 HAVE_DARWIN_OS_TRUE=
4109 HAVE_DARWIN_OS_FALSE='#'
4111 HAVE_DARWIN_OS_TRUE='#'
4112 HAVE_DARWIN_OS_FALSE=
4114 cat >>confdefs.h <<\_ACEOF
4115 #define HAVE_DARWIN_OS 1
4122 HAVE_DARWIN_OS_TRUE=
4123 HAVE_DARWIN_OS_FALSE='#'
4125 HAVE_DARWIN_OS_TRUE='#'
4126 HAVE_DARWIN_OS_FALSE=
4130 echo "$as_me:$LINENO: result: \" \"" >&5
4131 echo "${ECHO_T}\" \"" >&6
4134 # -----------------------------------------------------------
4135 # ----------------------------------------------------------
4136 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4137 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4138 if test "x$DISTNAME" != "x"
4140 echo "distname set to $DISTNAME"
4141 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4144 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4147 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4150 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4153 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4156 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4159 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4162 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4165 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4168 elif test -f /etc/SuSE-release
4171 elif test -d /etc/SuSEconfig
4174 elif test -f /etc/mandrake-release
4177 elif test -f /etc/redhat-release
4180 elif test -f /etc/gentoo-release
4183 elif test -f /etc/debian_version
4186 elif test -f /etc/slackware-version
4189 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4192 elif test -f /etc/engarde-version
4195 elif test "$CYGWIN" = yes
4198 cat >>confdefs.h <<\_ACEOF
4199 #define HAVE_CYGWIN 1
4205 echo "$as_me:$LINENO: result: \" \"" >&5
4206 echo "${ECHO_T}\" \"" >&6
4209 # -----------------------------------------------------------
4210 # ----------------------------------------------------------
4215 INSIDE_GNOME_COMMON_TRUE=
4216 INSIDE_GNOME_COMMON_FALSE='#'
4218 INSIDE_GNOME_COMMON_TRUE='#'
4219 INSIDE_GNOME_COMMON_FALSE=
4222 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4224 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4227 # ------------------------------------------------------------------
4228 # If the user has not set --prefix, we set our default to nothing.
4229 # In this case, if the user has not set --sysconfdir, we set it
4230 # to the package default of /etc/bacula. If either --prefix or
4231 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4232 # ------------------------------------------------------------------
4233 if test x${prefix} = xNONE ; then
4234 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4235 sysconfdir=/etc/bacula
4239 sysconfdir=`eval echo ${sysconfdir}`
4241 # -------------------------------------------------------------------------
4242 # If the user has not set --exec-prefix, we default to ${prefix}
4243 # -------------------------------------------------------------------------
4244 if test x${exec_prefix} = xNONE ; then
4245 exec_prefix=${prefix}
4248 # ------------------------------------------------------------------
4249 # If the user has not set --sbindir, we set our default as /sbin
4250 # ------------------------------------------------------------------
4251 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4252 sbindir=${exec_prefix}/sbin
4254 sbindir=`eval echo ${sbindir}`
4256 # ------------------------------------------------------------------
4257 # All list of languages for which a translation exist. Each
4258 # language is separated by a space.
4259 # ------------------------------------------------------------------
4262 for ac_prog in msgfmt
4264 # Extract the first word of "$ac_prog", so it can be a program name with args.
4265 set dummy $ac_prog; ac_word=$2
4266 echo "$as_me:$LINENO: checking for $ac_word" >&5
4267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4268 if test "${ac_cv_path_MSGFMT+set}" = set; then
4269 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4280 test -z "$as_dir" && as_dir=.
4281 for ac_exec_ext in '' $ac_executable_extensions; do
4282 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4283 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 MSGFMT=$ac_cv_path_MSGFMT
4295 if test -n "$MSGFMT"; then
4296 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4297 echo "${ECHO_T}$MSGFMT" >&6
4299 echo "$as_me:$LINENO: result: no" >&5
4300 echo "${ECHO_T}no" >&6
4303 test -n "$MSGFMT" && break
4305 test -n "$MSGFMT" || MSGFMT="no"
4307 if test "$MSGFMT" = "no"
4309 echo 'msgfmt program not found, disabling NLS !'
4311 USE_INCLUDED_LIBINTL=no
4319 support_smartalloc=yes
4320 support_readline=yes
4322 support_static_tools=no
4323 support_static_fd=no
4324 support_static_sd=no
4325 support_static_dir=no
4326 support_static_cons=no
4327 build_client_only=no
4333 # -------------------------------------------
4334 # gnome (default off)
4335 # -------------------------------------------
4336 # Check whether --enable-gnome or --disable-gnome was given.
4337 if test "${enable_gnome+set}" = set; then
4338 enableval="$enable_gnome"
4339 if test x$enableval = xyes; then
4345 if test x$support_gnome = xyes; then
4346 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4348 if test $pkg = 0; then
4349 GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4350 GNOMEUI_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4351 GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4352 GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4357 GNOME_DIR=src/gnome2-console
4370 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4371 if test "${with_gnome_includes+set}" = set; then
4372 withval="$with_gnome_includes"
4374 CFLAGS="$CFLAGS -I$withval"
4379 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4380 if test "${with_gnome_libs+set}" = set; then
4381 withval="$with_gnome_libs"
4383 LDFLAGS="$LDFLAGS -L$withval"
4384 gnome_prefix=$withval
4389 # Check whether --with-gnome or --without-gnome was given.
4390 if test "${with_gnome+set}" = set; then
4391 withval="$with_gnome"
4392 if test x$withval = xyes; then
4396 if test "x$withval" = xno; then
4400 LDFLAGS="$LDFLAGS -L$withval/lib"
4401 CFLAGS="$CFLAGS -I$withval/include"
4402 gnome_prefix=$withval/lib
4409 if test "x$want_gnome" = xyes; then
4411 # Extract the first word of "gnome-config", so it can be a program name with args.
4412 set dummy gnome-config; ac_word=$2
4413 echo "$as_me:$LINENO: checking for $ac_word" >&5
4414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4415 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 case $GNOME_CONFIG in
4420 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 test -z "$as_dir" && as_dir=.
4428 for ac_exec_ext in '' $ac_executable_extensions; do
4429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4430 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4441 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4443 if test -n "$GNOME_CONFIG"; then
4444 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4445 echo "${ECHO_T}$GNOME_CONFIG" >&6
4447 echo "$as_me:$LINENO: result: no" >&5
4448 echo "${ECHO_T}no" >&6
4451 if test "$GNOME_CONFIG" = "no"; then
4452 no_gnome_config="yes"
4454 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4455 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4456 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4457 echo "$as_me:$LINENO: result: yes" >&5
4458 echo "${ECHO_T}yes" >&6
4461 # Extract the first word of "orbit-config", so it can be a program name with args.
4462 set dummy orbit-config; ac_word=$2
4463 echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4465 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 case $ORBIT_CONFIG in
4470 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4491 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4493 if test -n "$ORBIT_CONFIG"; then
4494 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4495 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4497 echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6
4501 # Extract the first word of "orbit-idl", so it can be a program name with args.
4502 set dummy orbit-idl; ac_word=$2
4503 echo "$as_me:$LINENO: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4505 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4520 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4527 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4531 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4533 if test -n "$ORBIT_IDL"; then
4534 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4535 echo "${ECHO_T}$ORBIT_IDL" >&6
4537 echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6
4541 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4542 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4543 if test "${gnome_cv_orbit_found+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4547 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4548 gnome_cv_orbit_found=no
4550 gnome_cv_orbit_found=yes
4554 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4555 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4558 if test x$gnome_cv_orbit_found = xyes; then
4560 HAVE_ORBIT_FALSE='#'
4565 if test x$gnome_cv_orbit_found = xyes; then
4567 ORBIT_CFLAGS=`orbit-config --cflags client server`
4568 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4572 if test xfail = xfailure; then
4573 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4574 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4575 { (exit 1); exit 1; }; }
4579 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4580 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4581 if test "${gnome_cv_gnorba_found+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 gnome_cv_gnorba_found=no
4586 if test x$gnome_cv_orbit_found = xyes; then
4587 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4588 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4589 if test -n "$GNORBA_LIBS"; then
4590 gnome_cv_gnorba_found=yes
4595 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4596 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4599 if test x$gnome_cv_gnorba_found = xyes; then
4601 HAVE_GNORBA_FALSE='#'
4603 HAVE_GNORBA_TRUE='#'
4606 if test x$gnome_cv_orbit_found = xyes; then
4608 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4609 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4613 if test xfail = xfailure; then
4614 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4615 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4616 { (exit 1); exit 1; }; }
4620 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4621 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4622 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4623 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4624 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4625 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4626 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4629 echo "$as_me:$LINENO: result: no" >&5
4630 echo "${ECHO_T}no" >&6
4631 no_gnome_config="yes"
4635 if test x$exec_prefix = xNONE; then
4636 if test x$prefix = xNONE; then
4637 gnome_prefix=$ac_default_prefix/lib
4639 gnome_prefix=$prefix/lib
4642 gnome_prefix=`eval echo \`echo $libdir\``
4645 if test "$no_gnome_config" = "yes"; then
4646 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4647 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4648 if test -f $gnome_prefix/gnomeConf.sh; then
4649 echo "$as_me:$LINENO: result: found" >&5
4650 echo "${ECHO_T}found" >&6
4651 echo "loading gnome configuration from" \
4652 "$gnome_prefix/gnomeConf.sh"
4653 . $gnome_prefix/gnomeConf.sh
4656 echo "$as_me:$LINENO: result: not found" >&5
4657 echo "${ECHO_T}not found" >&6
4658 if test xfail = xfail; then
4659 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4660 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4661 { (exit 1); exit 1; }; }
4670 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4671 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4675 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4676 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4677 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4680 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4681 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4682 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4685 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4686 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4687 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4689 echo "$as_me:$LINENO: result: unknown library" >&5
4690 echo "${ECHO_T}unknown library" >&6
4692 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4693 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4698 GNOME_DIR=src/gnome-console
4704 # -------------------------------------------
4705 # smartalloc (default off)
4706 # -------------------------------------------
4707 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4708 if test "${enable_smartalloc+set}" = set; then
4709 enableval="$enable_smartalloc"
4710 if test x$enableval = xno; then
4711 support_smartalloc=no
4715 if test x$support_smartalloc = xyes; then
4716 cat >>confdefs.h <<\_ACEOF
4717 #define SMARTALLOC 1
4722 # -------------------------------------------
4723 # static-tools (default off)
4724 # -------------------------------------------
4725 # Check whether --enable-static-tools or --disable-static-tools was given.
4726 if test "${enable_static_tools+set}" = set; then
4727 enableval="$enable_static_tools"
4728 if test x$enableval = xyes; then
4729 support_static_tools=yes
4734 if test x$support_static_tools = xyes; then
4735 TTOOL_LDFLAGS="-static"
4739 # -------------------------------------------
4740 # static-fd (default off)
4741 # -------------------------------------------
4742 # Check whether --enable-static-fd or --disable-static-fd was given.
4743 if test "${enable_static_fd+set}" = set; then
4744 enableval="$enable_static_fd"
4745 if test x$enableval = xyes; then
4746 support_static_fd=yes
4751 if test x$support_static_fd = xyes; then
4752 STATIC_FD="static-bacula-fd"
4756 # -------------------------------------------
4757 # static-sd (default off)
4758 # -------------------------------------------
4759 # Check whether --enable-static-sd or --disable-static-sd was given.
4760 if test "${enable_static_sd+set}" = set; then
4761 enableval="$enable_static_sd"
4762 if test x$enableval = xyes; then
4763 support_static_sd=yes
4768 if test x$support_static_sd = xyes; then
4769 STATIC_SD="static-bacula-sd"
4773 # -------------------------------------------
4774 # static-dir (default off)
4775 # -------------------------------------------
4776 # Check whether --enable-static-dir or --disable-static-dir was given.
4777 if test "${enable_static_dir+set}" = set; then
4778 enableval="$enable_static_dir"
4779 if test x$enableval = xyes; then
4780 support_static_dir=yes
4785 if test x$support_static_dir = xyes; then
4786 STATIC_DIR="static-bacula-dir"
4790 # -------------------------------------------
4791 # static-cons (default off)
4792 # -------------------------------------------
4793 # Check whether --enable-static-cons or --disable-static-cons was given.
4794 if test "${enable_static_cons+set}" = set; then
4795 enableval="$enable_static_cons"
4796 if test x$enableval = xyes; then
4797 support_static_cons=yes
4802 if test x$support_static_cons = xyes; then
4803 STATIC_CONS="static-bconsole"
4807 # -------------------------------------------
4808 # client_only (default off)
4809 # -------------------------------------------
4810 # Check whether --enable-client-only or --disable-client-only was given.
4811 if test "${enable_client_only+set}" = set; then
4812 enableval="$enable_client_only"
4813 if test x$enableval = xyes; then
4814 build_client_only=yes
4817 if test x$build_client_only = xno; then
4824 # ---------------------------------------------------
4825 # Check for readline support/directory (default on)
4826 # ---------------------------------------------------
4827 # this allows you to turn it completely off
4828 # Check whether --enable-readline or --disable-readline was given.
4829 if test "${enable_readline+set}" = set; then
4830 enableval="$enable_readline"
4831 if test x$enableval = xno; then
4838 if test x$support_readline = xyes; then
4839 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4840 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4841 if test "${ac_cv_header_stdc+set}" = set; then
4842 echo $ECHO_N "(cached) $ECHO_C" >&6
4844 cat >conftest.$ac_ext <<_ACEOF
4845 #line $LINENO "configure"
4848 cat confdefs.h >>conftest.$ac_ext
4849 cat >>conftest.$ac_ext <<_ACEOF
4850 /* end confdefs.h. */
4864 rm -f conftest.$ac_objext
4865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4866 (eval $ac_compile) 2>&5
4868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4869 (exit $ac_status); } &&
4870 { ac_try='test -s conftest.$ac_objext'
4871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4875 (exit $ac_status); }; }; then
4876 ac_cv_header_stdc=yes
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4881 ac_cv_header_stdc=no
4883 rm -f conftest.$ac_objext conftest.$ac_ext
4885 if test $ac_cv_header_stdc = yes; then
4886 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4887 cat >conftest.$ac_ext <<_ACEOF
4888 #line $LINENO "configure"
4891 cat confdefs.h >>conftest.$ac_ext
4892 cat >>conftest.$ac_ext <<_ACEOF
4893 /* end confdefs.h. */
4897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4898 $EGREP "memchr" >/dev/null 2>&1; then
4901 ac_cv_header_stdc=no
4907 if test $ac_cv_header_stdc = yes; then
4908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4909 cat >conftest.$ac_ext <<_ACEOF
4910 #line $LINENO "configure"
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h. */
4919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4920 $EGREP "free" >/dev/null 2>&1; then
4923 ac_cv_header_stdc=no
4929 if test $ac_cv_header_stdc = yes; then
4930 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4931 if test "$cross_compiling" = yes; then
4934 cat >conftest.$ac_ext <<_ACEOF
4935 #line $LINENO "configure"
4938 cat confdefs.h >>conftest.$ac_ext
4939 cat >>conftest.$ac_ext <<_ACEOF
4940 /* end confdefs.h. */
4942 #if ((' ' & 0x0FF) == 0x020)
4943 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4944 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4946 # define ISLOWER(c) \
4947 (('a' <= (c) && (c) <= 'i') \
4948 || ('j' <= (c) && (c) <= 'r') \
4949 || ('s' <= (c) && (c) <= 'z'))
4950 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4953 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4958 for (i = 0; i < 256; i++)
4959 if (XOR (islower (i), ISLOWER (i))
4960 || toupper (i) != TOUPPER (i))
4965 rm -f conftest$ac_exeext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4967 (eval $ac_link) 2>&5
4969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; }; then
4978 echo "$as_me: program exited with status $ac_status" >&5
4979 echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.$ac_ext >&5
4983 ac_cv_header_stdc=no
4985 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4989 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4990 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4991 if test $ac_cv_header_stdc = yes; then
4993 cat >>confdefs.h <<\_ACEOF
4994 #define STDC_HEADERS 1
4999 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5009 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5010 inttypes.h stdint.h unistd.h
5012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5013 echo "$as_me:$LINENO: checking for $ac_header" >&5
5014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5015 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5018 cat >conftest.$ac_ext <<_ACEOF
5019 #line $LINENO "configure"
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 $ac_includes_default
5027 #include <$ac_header>
5029 rm -f conftest.$ac_objext
5030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5031 (eval $ac_compile) 2>&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } &&
5035 { ac_try='test -s conftest.$ac_objext'
5036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; }; then
5041 eval "$as_ac_Header=yes"
5043 echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5046 eval "$as_ac_Header=no"
5048 rm -f conftest.$ac_objext conftest.$ac_ext
5050 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5051 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5053 cat >>confdefs.h <<_ACEOF
5054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5063 # Check whether --with-readline or --without-readline was given.
5064 if test "${with_readline+set}" = set; then
5065 withval="$with_readline"
5067 case "$with_readline" in
5070 if test "$with_readline" != "yes"; then
5071 CONS_INC="-I${with_readline}"
5072 CONS_LDFLAGS="-L$with_readline"
5074 with_readline="/usr/include/readline"
5076 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5078 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5079 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5080 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5084 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5086 # Is the header compilable?
5087 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5088 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5089 cat >conftest.$ac_ext <<_ACEOF
5090 #line $LINENO "configure"
5093 cat confdefs.h >>conftest.$ac_ext
5094 cat >>conftest.$ac_ext <<_ACEOF
5095 /* end confdefs.h. */
5096 $ac_includes_default
5097 #include <${with_readline}/readline.h>
5099 rm -f conftest.$ac_objext
5100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5101 (eval $ac_compile) 2>&5
5103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104 (exit $ac_status); } &&
5105 { ac_try='test -s conftest.$ac_objext'
5106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5110 (exit $ac_status); }; }; then
5111 ac_header_compiler=yes
5113 echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5116 ac_header_compiler=no
5118 rm -f conftest.$ac_objext conftest.$ac_ext
5119 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5120 echo "${ECHO_T}$ac_header_compiler" >&6
5122 # Is the header present?
5123 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5124 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5125 cat >conftest.$ac_ext <<_ACEOF
5126 #line $LINENO "configure"
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5132 #include <${with_readline}/readline.h>
5134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5137 grep -v '^ *+' conftest.er1 >conftest.err
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } >/dev/null; then
5142 if test -s conftest.err; then
5143 ac_cpp_err=$ac_c_preproc_warn_flag
5150 if test -z "$ac_cpp_err"; then
5151 ac_header_preproc=yes
5153 echo "$as_me: failed program was:" >&5
5154 sed 's/^/| /' conftest.$ac_ext >&5
5156 ac_header_preproc=no
5158 rm -f conftest.err conftest.$ac_ext
5159 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5160 echo "${ECHO_T}$ac_header_preproc" >&6
5162 # So? What about this header?
5163 case $ac_header_compiler:$ac_header_preproc in
5165 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5166 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5167 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5168 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5171 ## ------------------------------------ ##
5172 ## Report this to bug-autoconf@gnu.org. ##
5173 ## ------------------------------------ ##
5176 sed "s/^/$as_me: WARNING: /" >&2
5179 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5180 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5181 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5182 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5183 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5184 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5187 ## ------------------------------------ ##
5188 ## Report this to bug-autoconf@gnu.org. ##
5189 ## ------------------------------------ ##
5192 sed "s/^/$as_me: WARNING: /" >&2
5195 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5196 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5198 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 eval "$as_ac_Header=$ac_header_preproc"
5202 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5203 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5207 cat >>confdefs.h <<\_ACEOF
5208 #define HAVE_READLINE 1
5211 CONS_LIBS="-lreadline -ltermcap"
5215 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5216 echo "$as_me: error: *** readline library missing" >&2;}
5217 { (exit 1); exit 1; }; }
5228 # check for standard readline library
5229 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5230 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5231 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5232 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5233 echo $ECHO_N "(cached) $ECHO_C" >&6
5235 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5236 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5238 # Is the header compilable?
5239 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5240 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5241 cat >conftest.$ac_ext <<_ACEOF
5242 #line $LINENO "configure"
5245 cat confdefs.h >>conftest.$ac_ext
5246 cat >>conftest.$ac_ext <<_ACEOF
5247 /* end confdefs.h. */
5248 $ac_includes_default
5249 #include </usr/include/readline/readline.h>
5251 rm -f conftest.$ac_objext
5252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5253 (eval $ac_compile) 2>&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } &&
5257 { ac_try='test -s conftest.$ac_objext'
5258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262 (exit $ac_status); }; }; then
5263 ac_header_compiler=yes
5265 echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5268 ac_header_compiler=no
5270 rm -f conftest.$ac_objext conftest.$ac_ext
5271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5272 echo "${ECHO_T}$ac_header_compiler" >&6
5274 # Is the header present?
5275 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5276 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5277 cat >conftest.$ac_ext <<_ACEOF
5278 #line $LINENO "configure"
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h. */
5284 #include </usr/include/readline/readline.h>
5286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5289 grep -v '^ *+' conftest.er1 >conftest.err
5291 cat conftest.err >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } >/dev/null; then
5294 if test -s conftest.err; then
5295 ac_cpp_err=$ac_c_preproc_warn_flag
5302 if test -z "$ac_cpp_err"; then
5303 ac_header_preproc=yes
5305 echo "$as_me: failed program was:" >&5
5306 sed 's/^/| /' conftest.$ac_ext >&5
5308 ac_header_preproc=no
5310 rm -f conftest.err conftest.$ac_ext
5311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5312 echo "${ECHO_T}$ac_header_preproc" >&6
5314 # So? What about this header?
5315 case $ac_header_compiler:$ac_header_preproc in
5317 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5318 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5319 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5320 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5323 ## ------------------------------------ ##
5324 ## Report this to bug-autoconf@gnu.org. ##
5325 ## ------------------------------------ ##
5328 sed "s/^/$as_me: WARNING: /" >&2
5331 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5332 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5333 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5334 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5335 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5336 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5339 ## ------------------------------------ ##
5340 ## Report this to bug-autoconf@gnu.org. ##
5341 ## ------------------------------------ ##
5344 sed "s/^/$as_me: WARNING: /" >&2
5347 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5348 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5349 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5350 echo $ECHO_N "(cached) $ECHO_C" >&6
5352 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5354 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5355 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5358 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5359 cat >>confdefs.h <<\_ACEOF
5360 #define HAVE_READLINE 1
5364 CONS_INC="-I/usr/include/readline"
5365 CONS_LIBS="-lreadline -ltermcap"
5369 # Did not find standard library, so try Bacula's default
5370 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5371 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5372 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5373 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5377 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5378 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5380 # Is the header compilable?
5381 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5382 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5383 cat >conftest.$ac_ext <<_ACEOF
5384 #line $LINENO "configure"
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5390 $ac_includes_default
5391 #include <${TOP_DIR}/depkgs/readline/readline.h>
5393 rm -f conftest.$ac_objext
5394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5395 (eval $ac_compile) 2>&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } &&
5399 { ac_try='test -s conftest.$ac_objext'
5400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404 (exit $ac_status); }; }; then
5405 ac_header_compiler=yes
5407 echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5410 ac_header_compiler=no
5412 rm -f conftest.$ac_objext conftest.$ac_ext
5413 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5414 echo "${ECHO_T}$ac_header_compiler" >&6
5416 # Is the header present?
5417 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5418 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5419 cat >conftest.$ac_ext <<_ACEOF
5420 #line $LINENO "configure"
5423 cat confdefs.h >>conftest.$ac_ext
5424 cat >>conftest.$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 #include <${TOP_DIR}/depkgs/readline/readline.h>
5428 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5429 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5431 grep -v '^ *+' conftest.er1 >conftest.err
5433 cat conftest.err >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); } >/dev/null; then
5436 if test -s conftest.err; then
5437 ac_cpp_err=$ac_c_preproc_warn_flag
5444 if test -z "$ac_cpp_err"; then
5445 ac_header_preproc=yes
5447 echo "$as_me: failed program was:" >&5
5448 sed 's/^/| /' conftest.$ac_ext >&5
5450 ac_header_preproc=no
5452 rm -f conftest.err conftest.$ac_ext
5453 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5454 echo "${ECHO_T}$ac_header_preproc" >&6
5456 # So? What about this header?
5457 case $ac_header_compiler:$ac_header_preproc in
5459 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5460 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5461 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5462 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5465 ## ------------------------------------ ##
5466 ## Report this to bug-autoconf@gnu.org. ##
5467 ## ------------------------------------ ##
5470 sed "s/^/$as_me: WARNING: /" >&2
5473 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5474 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5475 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5476 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5477 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5478 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5481 ## ------------------------------------ ##
5482 ## Report this to bug-autoconf@gnu.org. ##
5483 ## ------------------------------------ ##
5486 sed "s/^/$as_me: WARNING: /" >&2
5489 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5490 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5491 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5492 echo $ECHO_N "(cached) $ECHO_C" >&6
5494 eval "$as_ac_Header=$ac_header_preproc"
5496 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5497 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5501 cat >>confdefs.h <<\_ACEOF
5502 #define HAVE_READLINE 1
5506 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5507 CONS_LIBS="-lreadline -lhistory -ltermcap"
5508 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5509 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5512 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5513 echo "$as_me: error: *** readline library missing" >&2;}
5514 { (exit 1); exit 1; }; }
5534 # Minimal stuff for readline Makefile configuration
5538 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5539 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5540 if test "${ac_cv_header_stat_broken+set}" = set; then
5541 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 cat >conftest.$ac_ext <<_ACEOF
5544 #line $LINENO "configure"
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h. */
5550 #include <sys/types.h>
5551 #include <sys/stat.h>
5553 #if defined(S_ISBLK) && defined(S_IFDIR)
5554 # if S_ISBLK (S_IFDIR)
5559 #if defined(S_ISBLK) && defined(S_IFCHR)
5560 # if S_ISBLK (S_IFCHR)
5565 #if defined(S_ISLNK) && defined(S_IFREG)
5566 # if S_ISLNK (S_IFREG)
5571 #if defined(S_ISSOCK) && defined(S_IFREG)
5572 # if S_ISSOCK (S_IFREG)
5578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5579 $EGREP "You lose" >/dev/null 2>&1; then
5580 ac_cv_header_stat_broken=yes
5582 ac_cv_header_stat_broken=no
5587 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5588 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5589 if test $ac_cv_header_stat_broken = yes; then
5591 cat >>confdefs.h <<\_ACEOF
5592 #define STAT_MACROS_BROKEN 1
5603 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5604 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5605 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5606 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 cat >conftest.$ac_ext <<_ACEOF
5611 #line $LINENO "configure"
5614 cat confdefs.h >>conftest.$ac_ext
5615 cat >>conftest.$ac_ext <<_ACEOF
5616 /* end confdefs.h. */
5617 #include <sys/types.h>
5629 rm -f conftest.$ac_objext
5630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5631 (eval $ac_compile) 2>&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); } &&
5635 { ac_try='test -s conftest.$ac_objext'
5636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); }; }; then
5641 eval "$as_ac_Header=yes"
5643 echo "$as_me: failed program was:" >&5
5644 sed 's/^/| /' conftest.$ac_ext >&5
5646 eval "$as_ac_Header=no"
5648 rm -f conftest.$ac_objext conftest.$ac_ext
5650 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5651 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5653 cat >>confdefs.h <<_ACEOF
5654 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5657 ac_header_dirent=$ac_hdr; break
5661 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5662 if test $ac_header_dirent = dirent.h; then
5663 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5664 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5665 if test "${ac_cv_search_opendir+set}" = set; then
5666 echo $ECHO_N "(cached) $ECHO_C" >&6
5668 ac_func_search_save_LIBS=$LIBS
5669 ac_cv_search_opendir=no
5670 cat >conftest.$ac_ext <<_ACEOF
5671 #line $LINENO "configure"
5674 cat confdefs.h >>conftest.$ac_ext
5675 cat >>conftest.$ac_ext <<_ACEOF
5676 /* end confdefs.h. */
5678 /* Override any gcc2 internal prototype to avoid an error. */
5682 /* We use char because int might match the return type of a gcc2
5683 builtin and then its argument prototype would still apply. */
5693 rm -f conftest.$ac_objext conftest$ac_exeext
5694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5695 (eval $ac_link) 2>&5
5697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5698 (exit $ac_status); } &&
5699 { ac_try='test -s conftest$ac_exeext'
5700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); }; }; then
5705 ac_cv_search_opendir="none required"
5707 echo "$as_me: failed program was:" >&5
5708 sed 's/^/| /' conftest.$ac_ext >&5
5711 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5712 if test "$ac_cv_search_opendir" = no; then
5713 for ac_lib in dir; do
5714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5715 cat >conftest.$ac_ext <<_ACEOF
5716 #line $LINENO "configure"
5719 cat confdefs.h >>conftest.$ac_ext
5720 cat >>conftest.$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5723 /* Override any gcc2 internal prototype to avoid an error. */
5727 /* We use char because int might match the return type of a gcc2
5728 builtin and then its argument prototype would still apply. */
5738 rm -f conftest.$ac_objext conftest$ac_exeext
5739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5740 (eval $ac_link) 2>&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } &&
5744 { ac_try='test -s conftest$ac_exeext'
5745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); }; }; then
5750 ac_cv_search_opendir="-l$ac_lib"
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5760 LIBS=$ac_func_search_save_LIBS
5762 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5763 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5764 if test "$ac_cv_search_opendir" != no; then
5765 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5770 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5771 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5772 if test "${ac_cv_search_opendir+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 ac_func_search_save_LIBS=$LIBS
5776 ac_cv_search_opendir=no
5777 cat >conftest.$ac_ext <<_ACEOF
5778 #line $LINENO "configure"
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5785 /* Override any gcc2 internal prototype to avoid an error. */
5789 /* We use char because int might match the return type of a gcc2
5790 builtin and then its argument prototype would still apply. */
5800 rm -f conftest.$ac_objext conftest$ac_exeext
5801 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5802 (eval $ac_link) 2>&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } &&
5806 { ac_try='test -s conftest$ac_exeext'
5807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); }; }; then
5812 ac_cv_search_opendir="none required"
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5818 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5819 if test "$ac_cv_search_opendir" = no; then
5821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5822 cat >conftest.$ac_ext <<_ACEOF
5823 #line $LINENO "configure"
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5830 /* Override any gcc2 internal prototype to avoid an error. */
5834 /* We use char because int might match the return type of a gcc2
5835 builtin and then its argument prototype would still apply. */
5845 rm -f conftest.$ac_objext conftest$ac_exeext
5846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5847 (eval $ac_link) 2>&5
5849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850 (exit $ac_status); } &&
5851 { ac_try='test -s conftest$ac_exeext'
5852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }; }; then
5857 ac_cv_search_opendir="-l$ac_lib"
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5867 LIBS=$ac_func_search_save_LIBS
5869 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5870 echo "${ECHO_T}$ac_cv_search_opendir" >&6
5871 if test "$ac_cv_search_opendir" != no; then
5872 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
5887 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
5889 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5890 echo "$as_me:$LINENO: checking for $ac_func" >&5
5891 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5892 if eval "test \"\${$as_ac_var+set}\" = set"; then
5893 echo $ECHO_N "(cached) $ECHO_C" >&6
5895 cat >conftest.$ac_ext <<_ACEOF
5896 #line $LINENO "configure"
5899 cat confdefs.h >>conftest.$ac_ext
5900 cat >>conftest.$ac_ext <<_ACEOF
5901 /* end confdefs.h. */
5902 /* System header to define __stub macros and hopefully few prototypes,
5903 which can conflict with char $ac_func (); below.
5904 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5905 <limits.h> exists even on freestanding compilers. */
5907 # include <limits.h>
5909 # include <assert.h>
5911 /* Override any gcc2 internal prototype to avoid an error. */
5916 /* We use char because int might match the return type of a gcc2
5917 builtin and then its argument prototype would still apply. */
5919 /* The GNU C library defines this for functions which it implements
5920 to always fail with ENOSYS. Some functions are actually named
5921 something starting with __ and the normal name is an alias. */
5922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5925 char (*f) () = $ac_func;
5934 return f != $ac_func;
5939 rm -f conftest.$ac_objext conftest$ac_exeext
5940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5941 (eval $ac_link) 2>&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } &&
5945 { ac_try='test -s conftest$ac_exeext'
5946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }; }; then
5951 eval "$as_ac_var=yes"
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5956 eval "$as_ac_var=no"
5958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5960 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5961 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5962 if test `eval echo '${'$as_ac_var'}'` = yes; then
5963 cat >>confdefs.h <<_ACEOF
5964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5971 for ac_func in nanosleep
5973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5974 echo "$as_me:$LINENO: checking for $ac_func" >&5
5975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5976 if eval "test \"\${$as_ac_var+set}\" = set"; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 cat >conftest.$ac_ext <<_ACEOF
5980 #line $LINENO "configure"
5983 cat confdefs.h >>conftest.$ac_ext
5984 cat >>conftest.$ac_ext <<_ACEOF
5985 /* end confdefs.h. */
5986 /* System header to define __stub macros and hopefully few prototypes,
5987 which can conflict with char $ac_func (); below.
5988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5989 <limits.h> exists even on freestanding compilers. */
5991 # include <limits.h>
5993 # include <assert.h>
5995 /* Override any gcc2 internal prototype to avoid an error. */
6000 /* We use char because int might match the return type of a gcc2
6001 builtin and then its argument prototype would still apply. */
6003 /* The GNU C library defines this for functions which it implements
6004 to always fail with ENOSYS. Some functions are actually named
6005 something starting with __ and the normal name is an alias. */
6006 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6009 char (*f) () = $ac_func;
6018 return f != $ac_func;
6023 rm -f conftest.$ac_objext conftest$ac_exeext
6024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6025 (eval $ac_link) 2>&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } &&
6029 { ac_try='test -s conftest$ac_exeext'
6030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); }; }; then
6035 eval "$as_ac_var=yes"
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.$ac_ext >&5
6040 eval "$as_ac_var=no"
6042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6044 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6045 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6046 if test `eval echo '${'$as_ac_var'}'` = yes; then
6047 cat >>confdefs.h <<_ACEOF
6048 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6056 for ac_header in varargs.h
6058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6060 echo "$as_me:$LINENO: checking for $ac_header" >&5
6061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6062 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6063 echo $ECHO_N "(cached) $ECHO_C" >&6
6065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6066 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6068 # Is the header compilable?
6069 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6070 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6071 cat >conftest.$ac_ext <<_ACEOF
6072 #line $LINENO "configure"
6075 cat confdefs.h >>conftest.$ac_ext
6076 cat >>conftest.$ac_ext <<_ACEOF
6077 /* end confdefs.h. */
6078 $ac_includes_default
6079 #include <$ac_header>
6081 rm -f conftest.$ac_objext
6082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6083 (eval $ac_compile) 2>&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } &&
6087 { ac_try='test -s conftest.$ac_objext'
6088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }; }; then
6093 ac_header_compiler=yes
6095 echo "$as_me: failed program was:" >&5
6096 sed 's/^/| /' conftest.$ac_ext >&5
6098 ac_header_compiler=no
6100 rm -f conftest.$ac_objext conftest.$ac_ext
6101 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6102 echo "${ECHO_T}$ac_header_compiler" >&6
6104 # Is the header present?
6105 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6107 cat >conftest.$ac_ext <<_ACEOF
6108 #line $LINENO "configure"
6111 cat confdefs.h >>conftest.$ac_ext
6112 cat >>conftest.$ac_ext <<_ACEOF
6113 /* end confdefs.h. */
6114 #include <$ac_header>
6116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6119 grep -v '^ *+' conftest.er1 >conftest.err
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } >/dev/null; then
6124 if test -s conftest.err; then
6125 ac_cpp_err=$ac_c_preproc_warn_flag
6132 if test -z "$ac_cpp_err"; then
6133 ac_header_preproc=yes
6135 echo "$as_me: failed program was:" >&5
6136 sed 's/^/| /' conftest.$ac_ext >&5
6138 ac_header_preproc=no
6140 rm -f conftest.err conftest.$ac_ext
6141 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6142 echo "${ECHO_T}$ac_header_preproc" >&6
6144 # So? What about this header?
6145 case $ac_header_compiler:$ac_header_preproc in
6147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6153 ## ------------------------------------ ##
6154 ## Report this to bug-autoconf@gnu.org. ##
6155 ## ------------------------------------ ##
6158 sed "s/^/$as_me: WARNING: /" >&2
6161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6169 ## ------------------------------------ ##
6170 ## Report this to bug-autoconf@gnu.org. ##
6171 ## ------------------------------------ ##
6174 sed "s/^/$as_me: WARNING: /" >&2
6177 echo "$as_me:$LINENO: checking for $ac_header" >&5
6178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6180 echo $ECHO_N "(cached) $ECHO_C" >&6
6182 eval "$as_ac_Header=$ac_header_preproc"
6184 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6185 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6189 cat >>confdefs.h <<_ACEOF
6190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6198 # End of readline stuff
6199 # -----------------------------------------------------------------------
6202 # ---------------------------------------------------
6203 # Check for GMP support/directory
6204 # ---------------------------------------------------
6208 # [ --with-gmp[=DIR] Specify gmp library directory],
6210 # case "$with_gmp" in
6213 # if test "$with_gmp" != "yes"; then
6214 # GMP_INC="-I$with_gmp"
6216 # GMP_LDFLAGS="-L$with_gmp"
6218 # with_gmp="/usr/include"
6220 # AC_CHECK_HEADER($with_gmp/gmp.h,
6221 # [ AC_MSG_RESULT(yes)
6222 # AC_DEFINE(HAVE_GMP)
6226 # [ AC_MSG_ERROR([*** gmp library missing])
6232 # # check for standard gmp library
6233 # AC_CHECK_HEADER(/usr/include/gmp.h,
6234 # [ AC_MSG_RESULT(yes)
6235 # AC_DEFINE(HAVE_GMP)
6240 # # Did not find standard library, so use our own
6241 # AC_MSG_RESULT(yes)
6242 # AC_DEFINE(HAVE_GMP)
6245 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6247 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6248 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6254 #AC_SUBST(GMP_LDFLAGS)
6258 # -----------------------------------------------------------------------
6261 # ---------------------------------------------------
6262 # Check for CWEB support/directory
6263 # ---------------------------------------------------
6268 # [ --with-cweb[=DIR] Specify cweb library directory],
6270 # case "$with_cweb" in
6273 # if test "$with_cweb" != "yes"; then
6274 # CWEB_INC="-I$with_cweb"
6275 # CWEB_LIBS="-lcweb"
6276 # CWEB_LDFLAGS="-L$with_cweb"
6278 # with_cweb="/usr/include"
6280 # AC_CHECK_HEADER($with_cweb/cweb.h,
6281 # [ AC_MSG_RESULT(yes)
6282 # AC_DEFINE(HAVE_CWEB)
6283 # CWEB_LIBS="-lcweb"
6286 # [ AC_MSG_ERROR([*** cweb library missing])
6292 # # check for standard cweb library
6293 # AC_CHECK_HEADER(/usr/include/cweb.h,
6294 # [ AC_MSG_RESULT(yes)
6295 # AC_DEFINE(HAVE_CWEB)
6298 # CWEB_LIBS="-lcweb"
6300 # # Did not find starndard library, so use our own
6301 # AC_MSG_RESULT(yes)
6302 # AC_DEFINE(HAVE_CWEB)
6305 # CWEB=${TOP_DIR}/depkgs/cweb
6306 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6307 # CWEB_LIBS="-lcweb"
6308 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6309 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6315 #AC_SUBST(CWEB_LIBS)
6316 #AC_SUBST(CWEB_LDFLAGS)
6320 # -----------------------------------------------------------------------
6324 # -----------------------------------------------------------
6325 # Check whether user wants TCP wrappers support (default off)
6326 # -----------------------------------------------------------
6329 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6330 if test "${with_tcp_wrappers+set}" = set; then
6331 withval="$with_tcp_wrappers"
6333 if test "x$withval" != "xno" ; then
6335 LIBS="$saved_LIBS -lwrap"
6336 echo "$as_me:$LINENO: checking for libwrap" >&5
6337 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6338 cat >conftest.$ac_ext <<_ACEOF
6339 #line $LINENO "configure"
6342 cat confdefs.h >>conftest.$ac_ext
6343 cat >>conftest.$ac_ext <<_ACEOF
6344 /* end confdefs.h. */
6346 int deny_severity = 0;
6347 int allow_severity = 0;
6348 struct request_info *req;
6357 rm -f conftest.$ac_objext conftest$ac_exeext
6358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6359 (eval $ac_link) 2>&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } &&
6363 { ac_try='test -s conftest$ac_exeext'
6364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }; }; then
6370 echo "$as_me:$LINENO: result: yes" >&5
6371 echo "${ECHO_T}yes" >&6
6372 cat >>confdefs.h <<\_ACEOF
6373 #define HAVE_LIBWRAP 1
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6383 LIBS="$saved_LIBS -lwrap -lnsl"
6384 cat >conftest.$ac_ext <<_ACEOF
6385 #line $LINENO "configure"
6388 cat confdefs.h >>conftest.$ac_ext
6389 cat >>conftest.$ac_ext <<_ACEOF
6390 /* end confdefs.h. */
6392 int deny_severity = 0;
6393 int allow_severity = 0;
6394 struct request_info *req;
6403 rm -f conftest.$ac_objext conftest$ac_exeext
6404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6405 (eval $ac_link) 2>&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } &&
6409 { ac_try='test -s conftest$ac_exeext'
6410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6414 (exit $ac_status); }; }; then
6416 echo "$as_me:$LINENO: result: yes" >&5
6417 echo "${ECHO_T}yes" >&6
6418 cat >>confdefs.h <<\_ACEOF
6419 #define HAVE_LIBWRAP 1
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.$ac_ext >&5
6428 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6429 echo "$as_me: error: *** libwrap missing" >&2;}
6430 { (exit 1); exit 1; }; }
6433 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6436 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6442 # ------------------------------------------
6443 # Where to place working dir
6444 # ------------------------------------------
6445 working_dir=`eval echo ${sysconfdir}/working`
6447 # Check whether --with-working-dir or --without-working-dir was given.
6448 if test "${with_working_dir+set}" = set; then
6449 withval="$with_working_dir"
6451 if test "x$withval" != "xno" ; then
6452 working_dir=$withval
6461 # ------------------------------------------
6462 # Where to place scriptdir (script files)
6463 # ------------------------------------------
6464 scriptdir=`eval echo ${sysconfdir}`
6466 # Check whether --with-scriptdir or --without-scriptdir was given.
6467 if test "${with_scriptdir+set}" = set; then
6468 withval="$with_scriptdir"
6470 if test "x$withval" != "xno" ; then
6480 # ------------------------------------------
6481 # Where to send dump email
6482 # ------------------------------------------
6483 dump_email=root@localhost
6485 # Check whether --with-dump-email or --without-dump-email was given.
6486 if test "${with_dump_email+set}" = set; then
6487 withval="$with_dump_email"
6489 if test "x$withval" != "xno" ; then
6498 # ------------------------------------------
6499 # Where to send job email
6500 # ------------------------------------------
6501 job_email=root@localhost
6503 # Check whether --with-job-email or --without-job-email was given.
6504 if test "${with_job_email+set}" = set; then
6505 withval="$with_job_email"
6507 if test "x$withval" != "xno" ; then
6516 # ------------------------------------------
6517 # Where to find smtp host
6518 # ------------------------------------------
6521 # Check whether --with-smtp_host or --without-smtp_host was given.
6522 if test "${with_smtp_host+set}" = set; then
6523 withval="$with_smtp_host"
6525 if test "x$withval" != "xno" ; then
6535 # ------------------------------------
6536 # Where to place pid files
6537 # ------------------------------------
6540 # Check whether --with-pid-dir or --without-pid-dir was given.
6541 if test "${with_pid_dir+set}" = set; then
6542 withval="$with_pid_dir"
6544 if test "x$withval" != "xno" ; then
6551 cat >>confdefs.h <<_ACEOF
6552 #define _PATH_BACULA_PIDDIR "$piddir"
6558 # ------------------------------------
6559 # Where to place subsys "lock file"
6560 # ------------------------------------
6561 subsysdir=/var/run/subsys
6563 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6564 if test "${with_subsys_dir+set}" = set; then
6565 withval="$with_subsys_dir"
6567 if test "x$withval" != "xno" ; then
6578 # ------------------------------------
6579 # Where to start assigning ports
6580 # ------------------------------------
6583 # Check whether --with-baseport or --without-baseport was given.
6584 if test "${with_baseport+set}" = set; then
6585 withval="$with_baseport"
6587 if test "x$withval" != "xno" ; then
6595 dir_port=`expr $baseport`
6596 fd_port=`expr $baseport + 1`
6597 sd_port=`expr $fd_port + 1`
6604 # ------------------------------------------
6605 # Generate passwords
6606 # ------------------------------------------
6609 # Check whether --with-dir-password or --without-dir-password was given.
6610 if test "${with_dir_password+set}" = set; then
6611 withval="$with_dir_password"
6613 if test "x$withval" != "xno" ; then
6614 dir_password=$withval
6620 if test "x$dir_password" = "x" ; then
6621 if test "x$OPENSSL" = "xnone" ; then
6622 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6623 key=`autoconf/randpass 33`
6625 key=`openssl rand -base64 33`
6632 # Check whether --with-fd-password or --without-fd-password was given.
6633 if test "${with_fd_password+set}" = set; then
6634 withval="$with_fd_password"
6636 if test "x$withval" != "xno" ; then
6637 fd_password=$withval
6643 if test "x$fd_password" = "x" ; then
6644 if test "x$OPENSSL" = "xnone" ; then
6645 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6646 key=`autoconf/randpass 37`
6648 key=`openssl rand -base64 33`
6655 # Check whether --with-sd-password or --without-sd-password was given.
6656 if test "${with_sd_password+set}" = set; then
6657 withval="$with_sd_password"
6659 if test "x$withval" != "xno" ; then
6660 sd_password=$withval
6666 if test "x$sd_password" = "x" ; then
6667 if test "x$OPENSSL" = "xnone" ; then
6668 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6669 key=`autoconf/randpass 41`
6671 key=`openssl rand -base64 33`
6683 # Handle users and groups for each daemon
6687 # Check whether --with-dir_user or --without-dir_user was given.
6688 if test "${with_dir_user+set}" = set; then
6689 withval="$with_dir_user"
6691 if test "x$withval" != "x" ; then
6700 # Check whether --with-dir_group or --without-dir_group was given.
6701 if test "${with_dir_group+set}" = set; then
6702 withval="$with_dir_group"
6704 if test "x$withval" != "x" ; then
6713 # Check whether --with-sd_user or --without-sd_user was given.
6714 if test "${with_sd_user+set}" = set; then
6715 withval="$with_sd_user"
6717 if test "x$withval" != "x" ; then
6726 # Check whether --with-sd_group or --without-sd_group was given.
6727 if test "${with_sd_group+set}" = set; then
6728 withval="$with_sd_group"
6730 if test "x$withval" != "x" ; then
6739 # Check whether --with-fd_user or --without-fd_user was given.
6740 if test "${with_fd_user+set}" = set; then
6741 withval="$with_fd_user"
6743 if test "x$withval" != "x" ; then
6752 # Check whether --with-fd_group or --without-fd_group was given.
6753 if test "${with_fd_group+set}" = set; then
6754 withval="$with_fd_group"
6756 if test "x$withval" != "x" ; then
6773 # ------------------------------------------------
6774 # Bacula check for various SQL database engines
6775 # ------------------------------------------------
6778 echo "$as_me:$LINENO: checking for MySQL support" >&5
6779 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
6781 # Check whether --with-mysql or --without-mysql was given.
6782 if test "${with_mysql+set}" = set; then
6783 withval="$with_mysql"
6785 if test "$withval" != "no"; then
6786 if test "$withval" = "yes"; then
6787 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6788 MYSQL_INCDIR=/usr/local/mysql/include/mysql
6789 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6790 MYSQL_BINDIR=/usr/local/mysql/bin
6791 elif test -f /usr/include/mysql/mysql.h; then
6792 MYSQL_INCDIR=/usr/include/mysql
6793 MYSQL_LIBDIR=/usr/lib/mysql
6794 MYSQL_BINDIR=/usr/bin
6795 elif test -f /usr/include/mysql.h; then
6796 MYSQL_INCDIR=/usr/include
6797 MYSQL_LIBDIR=/usr/lib
6798 MYSQL_BINDIR=/usr/bin
6799 elif test -f /usr/local/include/mysql/mysql.h; then
6800 MYSQL_INCDIR=/usr/local/include/mysql
6801 MYSQL_LIBDIR=/usr/local/lib/mysql
6802 MYSQL_BINDIR=/usr/local/bin
6803 elif test -f /usr/local/include/mysql.h; then
6804 MYSQL_INCDIR=/usr/local/include
6805 MYSQL_LIBDIR=/usr/local/lib
6806 MYSQL_BINDIR=/usr/local/bin
6808 echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6
6810 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6811 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6812 { (exit 1); exit 1; }; }
6815 if test -f $withval/include/mysql/mysql.h; then
6816 MYSQL_INCDIR=$withval/include/mysql
6817 MYSQL_LIBDIR=$withval/lib/mysql
6818 MYSQL_BINDIR=$withval/bin
6819 elif test -f $withval/include/mysql.h; then
6820 MYSQL_INCDIR=$withval/include
6821 MYSQL_LIBDIR=$withval/lib
6822 MYSQL_BINDIR=$withval/bin
6824 echo "$as_me:$LINENO: result: no" >&5
6825 echo "${ECHO_T}no" >&6
6826 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6827 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6828 { (exit 1); exit 1; }; }
6831 SQL_INCLUDE=-I$MYSQL_INCDIR
6832 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
6833 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
6834 cat >>confdefs.h <<\_ACEOF
6835 #define HAVE_THREAD_SAFE_MYSQL 1
6839 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
6841 SQL_BINDIR=$MYSQL_BINDIR
6843 cat >>confdefs.h <<\_ACEOF
6844 #define HAVE_MYSQL 1
6847 echo "$as_me:$LINENO: result: yes" >&5
6848 echo "${ECHO_T}yes" >&6
6855 echo "$as_me:$LINENO: result: no" >&5
6856 echo "${ECHO_T}no" >&6
6861 echo "$as_me:$LINENO: result: no" >&5
6862 echo "${ECHO_T}no" >&6
6867 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
6868 if test "${with_embedded_mysql+set}" = set; then
6869 withval="$with_embedded_mysql"
6871 if test "$withval" != "no"; then
6872 if test "$withval" = "yes"; then
6873 if test -f /usr/local/mysql/include/mysql/mysql.h; then
6874 MYSQL_INCDIR=/usr/local/mysql/include/mysql
6875 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
6876 MYSQL_BINDIR=/usr/local/mysql/bin
6877 elif test -f /usr/include/mysql/mysql.h; then
6878 MYSQL_INCDIR=/usr/include/mysql
6879 MYSQL_LIBDIR=/usr/lib/mysql
6880 MYSQL_BINDIR=/usr/bin
6881 elif test -f /usr/include/mysql.h; then
6882 MYSQL_INCDIR=/usr/include
6883 MYSQL_LIBDIR=/usr/lib
6884 MYSQL_BINDIR=/usr/bin
6885 elif test -f /usr/local/include/mysql/mysql.h; then
6886 MYSQL_INCDIR=/usr/local/include/mysql
6887 MYSQL_LIBDIR=/usr/local/lib/mysql
6888 MYSQL_BINDIR=/usr/local/bin
6889 elif test -f /usr/local/include/mysql.h; then
6890 MYSQL_INCDIR=/usr/local/include
6891 MYSQL_LIBDIR=/usr/local/lib
6892 MYSQL_BINDIR=/usr/local/bin
6894 echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6
6896 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
6897 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
6898 { (exit 1); exit 1; }; }
6901 if test -f $withval/include/mysql/mysql.h; then
6902 MYSQL_INCDIR=$withval/include/mysql
6903 MYSQL_LIBDIR=$withval/lib/mysql
6904 MYSQL_BINDIR=$withval/bin
6905 elif test -f $withval/include/mysql.h; then
6906 MYSQL_INCDIR=$withval/include
6907 MYSQL_LIBDIR=$withval/lib
6908 MYSQL_BINDIR=$withval/bin
6910 echo "$as_me:$LINENO: result: no" >&5
6911 echo "${ECHO_T}no" >&6
6912 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
6913 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
6914 { (exit 1); exit 1; }; }
6917 SQL_INCLUDE=-I$MYSQL_INCDIR
6918 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
6919 SQL_BINDIR=$MYSQL_BINDIR
6921 cat >>confdefs.h <<\_ACEOF
6922 #define HAVE_MYSQL 1
6925 cat >>confdefs.h <<\_ACEOF
6926 #define HAVE_EMBEDDED_MYSQL 1
6929 echo "$as_me:$LINENO: result: yes" >&5
6930 echo "${ECHO_T}yes" >&6
6937 echo "$as_me:$LINENO: result: no" >&5
6938 echo "${ECHO_T}no" >&6
6943 echo "$as_me:$LINENO: result: no" >&5
6944 echo "${ECHO_T}no" >&6
6956 # ------------------------------------------------
6957 # Bacula check for various SQL database engines
6958 # ------------------------------------------------
6961 echo "$as_me:$LINENO: checking for SQLite support" >&5
6962 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
6964 # Check whether --with-sqlite or --without-sqlite was given.
6965 if test "${with_sqlite+set}" = set; then
6966 withval="$with_sqlite"
6968 if test "$withval" != "no"; then
6969 if test "$withval" = "yes"; then
6970 if test -f /usr/local/include/sqlite.h; then
6971 SQLITE_INCDIR=/usr/local/include
6972 SQLITE_LIBDIR=/usr/local/lib
6973 SQLITE_BINDIR=/usr/local/bin
6974 elif test -f /usr/include/sqlite.h; then
6975 SQLITE_INCDIR=/usr/include
6976 SQLITE_LIBDIR=/usr/lib
6977 SQLITE_BINDIR=/usr/bin
6979 echo "$as_me:$LINENO: result: no" >&5
6980 echo "${ECHO_T}no" >&6
6981 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
6982 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
6983 { (exit 1); exit 1; }; }
6986 if test -f $withval/sqlite.h; then
6987 SQLITE_INCDIR=$withval
6988 SQLITE_LIBDIR=$withval
6989 SQLITE_BINDIR=$withval
6991 echo "$as_me:$LINENO: result: no" >&5
6992 echo "${ECHO_T}no" >&6
6993 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
6994 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
6995 { (exit 1); exit 1; }; }
6998 SQL_INCLUDE=-I$SQLITE_INCDIR
6999 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7000 SQL_BINDIR=$SQLITE_BINDIR
7002 cat >>confdefs.h <<\_ACEOF
7003 #define HAVE_SQLITE 1
7006 echo "$as_me:$LINENO: result: yes" >&5
7007 echo "${ECHO_T}yes" >&6
7014 echo "$as_me:$LINENO: result: no" >&5
7015 echo "${ECHO_T}no" >&6
7020 echo "$as_me:$LINENO: result: no" >&5
7021 echo "${ECHO_T}no" >&6
7033 cat >>confdefs.h <<\_ACEOF
7034 #define PROTOTYPES 1
7038 if test -z "$CFLAGS"; then
7039 if test -z "$CCOPTS"; then
7048 largefile_support="no"
7050 # Check whether --enable-largefile or --disable-largefile was given.
7051 if test "${enable_largefile+set}" = set; then
7052 enableval="$enable_largefile"
7055 if test "$enable_largefile" != no; then
7056 if test -n "$ac_tool_prefix"; then
7057 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7058 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7059 echo "$as_me:$LINENO: checking for $ac_word" >&5
7060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7061 if test "${ac_cv_prog_GETCONF+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 if test -n "$GETCONF"; then
7065 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7074 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 GETCONF=$ac_cv_prog_GETCONF
7084 if test -n "$GETCONF"; then
7085 echo "$as_me:$LINENO: result: $GETCONF" >&5
7086 echo "${ECHO_T}$GETCONF" >&6
7088 echo "$as_me:$LINENO: result: no" >&5
7089 echo "${ECHO_T}no" >&6
7093 if test -z "$ac_cv_prog_GETCONF"; then
7094 ac_ct_GETCONF=$GETCONF
7095 # Extract the first word of "getconf", so it can be a program name with args.
7096 set dummy getconf; ac_word=$2
7097 echo "$as_me:$LINENO: checking for $ac_word" >&5
7098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7099 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7100 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 if test -n "$ac_ct_GETCONF"; then
7103 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7112 ac_cv_prog_ac_ct_GETCONF="getconf"
7113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7121 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7122 if test -n "$ac_ct_GETCONF"; then
7123 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7124 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7126 echo "$as_me:$LINENO: result: no" >&5
7127 echo "${ECHO_T}no" >&6
7130 GETCONF=$ac_ct_GETCONF
7132 GETCONF="$ac_cv_prog_GETCONF"
7135 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7136 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7137 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7140 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7141 ac_cv_sys_largefile_CFLAGS=no
7143 # IRIX 6.2 and later require cc -n32.
7144 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7145 if test "$GCC" != yes; then
7146 ac_cv_sys_largefile_CFLAGS=-n32
7149 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7150 cat >conftest.$ac_ext <<_ACEOF
7151 #line $LINENO "configure"
7154 cat confdefs.h >>conftest.$ac_ext
7155 cat >>conftest.$ac_ext <<_ACEOF
7156 /* end confdefs.h. */
7166 rm -f conftest.$ac_objext conftest$ac_exeext
7167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7168 (eval $ac_link) 2>&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } &&
7172 { ac_try='test -s conftest$ac_exeext'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.$ac_ext >&5
7183 ac_cv_sys_largefile_CFLAGS=no
7185 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7190 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7191 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7192 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7193 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7194 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7195 echo $ECHO_N "(cached) $ECHO_C" >&6
7197 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7198 ac_cv_sys_largefile_LDFLAGS=no
7202 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7203 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7204 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7205 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7206 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7209 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7210 ac_cv_sys_largefile_LIBS=no
7214 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7215 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7217 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7220 -D_FILE_OFFSET_BITS=*) ;;
7221 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7222 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7228 '') CPPFLAGS="$ac_flag" ;;
7229 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7237 '') CFLAGS="$ac_flag" ;;
7238 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7243 case "$ac_cv_sys_largefile_LDFLAGS" in
7247 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7248 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7251 case "$ac_cv_sys_largefile_LIBS" in
7255 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7256 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7259 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7260 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7261 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 ac_cv_sys_file_offset_bits=no
7266 # HP-UX 10.20 and later
7267 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7268 ac_cv_sys_file_offset_bits=64 ;;
7270 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7272 -D_FILE_OFFSET_BITS)
7273 ac_cv_sys_file_offset_bits=1 ;;
7274 -D_FILE_OFFSET_BITS=*)
7275 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7280 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7281 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7282 if test "$ac_cv_sys_file_offset_bits" != no; then
7284 cat >>confdefs.h <<_ACEOF
7285 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7289 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7290 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7291 if test "${ac_cv_sys_largefile_source+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 ac_cv_sys_largefile_source=no
7296 # HP-UX 10.20 and later
7297 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7298 ac_cv_sys_largefile_source=1 ;;
7300 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7302 -D_LARGEFILE_SOURCE)
7303 ac_cv_sys_largefile_source=1 ;;
7304 -D_LARGEFILE_SOURCE=*)
7305 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7310 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7311 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7312 if test "$ac_cv_sys_largefile_source" != no; then
7314 cat >>confdefs.h <<_ACEOF
7315 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7319 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7320 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7321 if test "${ac_cv_sys_large_files+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7324 ac_cv_sys_large_files=no
7327 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7328 ac_cv_sys_large_files=1 ;;
7330 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7333 ac_cv_sys_large_files=1 ;;
7335 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7340 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7341 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7342 if test "$ac_cv_sys_large_files" != no; then
7344 cat >>confdefs.h <<_ACEOF
7345 #define _LARGE_FILES $ac_cv_sys_large_files
7353 echo "$as_me:$LINENO: checking for X" >&5
7354 echo $ECHO_N "checking for X... $ECHO_C" >&6
7357 # Check whether --with-x or --without-x was given.
7358 if test "${with_x+set}" = set; then
7362 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7363 if test "x$with_x" = xno; then
7364 # The user explicitly disabled X.
7367 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7368 # Both variables are already set.
7371 if test "${ac_cv_have_x+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 # One or both of the vars are not set, and there is no cached value.
7375 ac_x_includes=no ac_x_libraries=no
7377 if mkdir conftest.dir; then
7379 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7380 cat >Imakefile <<'_ACEOF'
7382 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7384 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7385 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7386 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7387 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7388 for ac_extension in a so sl; do
7389 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7390 test -f $ac_im_libdir/libX11.$ac_extension; then
7391 ac_im_usrlibdir=$ac_im_libdir; break
7394 # Screen out bogus values from the imake configuration. They are
7395 # bogus both because they are the default anyway, and because
7396 # using them would break gcc on systems where it needs fixed includes.
7397 case $ac_im_incroot in
7399 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7401 case $ac_im_usrlibdir in
7403 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7410 # Standard set of common directories for X headers.
7411 # Check X11 before X11Rn because it is often a symlink to the current release.
7423 /usr/local/X11/include
7424 /usr/local/X11R6/include
7425 /usr/local/X11R5/include
7426 /usr/local/X11R4/include
7428 /usr/local/include/X11
7429 /usr/local/include/X11R6
7430 /usr/local/include/X11R5
7431 /usr/local/include/X11R4
7435 /usr/XFree86/include/X11
7439 /usr/unsupported/include
7441 /usr/local/x11r5/include
7442 /usr/lpp/Xamples/include
7444 /usr/openwin/include
7445 /usr/openwin/share/include'
7447 if test "$ac_x_includes" = no; then
7448 # Guess where to find include files, by looking for Intrinsic.h.
7449 # First, try using that file with no special directory specified.
7450 cat >conftest.$ac_ext <<_ACEOF
7451 #line $LINENO "configure"
7454 cat confdefs.h >>conftest.$ac_ext
7455 cat >>conftest.$ac_ext <<_ACEOF
7456 /* end confdefs.h. */
7457 #include <X11/Intrinsic.h>
7459 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7462 grep -v '^ *+' conftest.er1 >conftest.err
7464 cat conftest.err >&5
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); } >/dev/null; then
7467 if test -s conftest.err; then
7468 ac_cpp_err=$ac_c_preproc_warn_flag
7475 if test -z "$ac_cpp_err"; then
7476 # We can compile using X headers with no special include directory.
7479 echo "$as_me: failed program was:" >&5
7480 sed 's/^/| /' conftest.$ac_ext >&5
7482 for ac_dir in $ac_x_header_dirs; do
7483 if test -r "$ac_dir/X11/Intrinsic.h"; then
7484 ac_x_includes=$ac_dir
7489 rm -f conftest.err conftest.$ac_ext
7490 fi # $ac_x_includes = no
7492 if test "$ac_x_libraries" = no; then
7493 # Check for the libraries.
7494 # See if we find them without any special options.
7495 # Don't add to $LIBS permanently.
7498 cat >conftest.$ac_ext <<_ACEOF
7499 #line $LINENO "configure"
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h. */
7505 #include <X11/Intrinsic.h>
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7516 (eval $ac_link) 2>&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); } &&
7520 { ac_try='test -s conftest$ac_exeext'
7521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); }; }; then
7527 # We can link X programs with no special library path.
7530 echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.$ac_ext >&5
7534 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7536 # Don't even attempt the hair of trying to link an X program!
7537 for ac_extension in a so sl; do
7538 if test -r $ac_dir/libXt.$ac_extension; then
7539 ac_x_libraries=$ac_dir
7545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7546 fi # $ac_x_libraries = no
7548 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7549 # Didn't find X anywhere. Cache the known absence of X.
7550 ac_cv_have_x="have_x=no"
7552 # Record where we found X for the cache.
7553 ac_cv_have_x="have_x=yes \
7554 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7559 eval "$ac_cv_have_x"
7562 if test "$have_x" != yes; then
7563 echo "$as_me:$LINENO: result: $have_x" >&5
7564 echo "${ECHO_T}$have_x" >&6
7567 # If each of the values was on the command line, it overrides each guess.
7568 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7569 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7570 # Update the cache value to reflect the command line values.
7571 ac_cv_have_x="have_x=yes \
7572 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7573 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7574 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7577 if test "$no_x" = yes; then
7578 # Not all programs may use this symbol, but it does not hurt to define it.
7580 cat >>confdefs.h <<\_ACEOF
7581 #define X_DISPLAY_MISSING 1
7584 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7586 if test -n "$x_includes"; then
7587 X_CFLAGS="$X_CFLAGS -I$x_includes"
7590 # It would also be nice to do this for all -L options, not just this one.
7591 if test -n "$x_libraries"; then
7592 X_LIBS="$X_LIBS -L$x_libraries"
7593 # For Solaris; some versions of Sun CC require a space after -R and
7594 # others require no space. Words are not sufficient . . . .
7595 case `(uname -sr) 2>/dev/null` in
7597 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7598 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7599 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7600 cat >conftest.$ac_ext <<_ACEOF
7601 #line $LINENO "configure"
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7616 rm -f conftest.$ac_objext conftest$ac_exeext
7617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7618 (eval $ac_link) 2>&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } &&
7622 { ac_try='test -s conftest$ac_exeext'
7623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); }; }; then
7630 echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7636 if test $ac_R_nospace = yes; then
7637 echo "$as_me:$LINENO: result: no" >&5
7638 echo "${ECHO_T}no" >&6
7639 X_LIBS="$X_LIBS -R$x_libraries"
7641 LIBS="$ac_xsave_LIBS -R $x_libraries"
7642 cat >conftest.$ac_ext <<_ACEOF
7643 #line $LINENO "configure"
7646 cat confdefs.h >>conftest.$ac_ext
7647 cat >>conftest.$ac_ext <<_ACEOF
7648 /* end confdefs.h. */
7658 rm -f conftest.$ac_objext conftest$ac_exeext
7659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7660 (eval $ac_link) 2>&5
7662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7663 (exit $ac_status); } &&
7664 { ac_try='test -s conftest$ac_exeext'
7665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); }; }; then
7672 echo "$as_me: failed program was:" >&5
7673 sed 's/^/| /' conftest.$ac_ext >&5
7677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7678 if test $ac_R_space = yes; then
7679 echo "$as_me:$LINENO: result: yes" >&5
7680 echo "${ECHO_T}yes" >&6
7681 X_LIBS="$X_LIBS -R $x_libraries"
7683 echo "$as_me:$LINENO: result: neither works" >&5
7684 echo "${ECHO_T}neither works" >&6
7691 # Check for system-dependent libraries X programs must link with.
7692 # Do this before checking for the system-independent R6 libraries
7693 # (-lICE), since we may need -lsocket or whatever for X linking.
7695 if test "$ISC" = yes; then
7696 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7698 # Martyn Johnson says this is needed for Ultrix, if the X
7699 # libraries were built with DECnet support. And Karl Berry says
7700 # the Alpha needs dnet_stub (dnet does not exist).
7701 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
7702 cat >conftest.$ac_ext <<_ACEOF
7703 #line $LINENO "configure"
7706 cat confdefs.h >>conftest.$ac_ext
7707 cat >>conftest.$ac_ext <<_ACEOF
7708 /* end confdefs.h. */
7710 /* Override any gcc2 internal prototype to avoid an error. */
7714 /* We use char because int might match the return type of a gcc2
7715 builtin and then its argument prototype would still apply. */
7716 char XOpenDisplay ();
7725 rm -f conftest.$ac_objext conftest$ac_exeext
7726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7727 (eval $ac_link) 2>&5
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); } &&
7731 { ac_try='test -s conftest$ac_exeext'
7732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7736 (exit $ac_status); }; }; then
7739 echo "$as_me: failed program was:" >&5
7740 sed 's/^/| /' conftest.$ac_ext >&5
7742 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7743 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
7744 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 ac_check_lib_save_LIBS=$LIBS
7749 cat >conftest.$ac_ext <<_ACEOF
7750 #line $LINENO "configure"
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7757 /* Override any gcc2 internal prototype to avoid an error. */
7761 /* We use char because int might match the return type of a gcc2
7762 builtin and then its argument prototype would still apply. */
7772 rm -f conftest.$ac_objext conftest$ac_exeext
7773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7774 (eval $ac_link) 2>&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } &&
7778 { ac_try='test -s conftest$ac_exeext'
7779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); }; }; then
7784 ac_cv_lib_dnet_dnet_ntoa=yes
7786 echo "$as_me: failed program was:" >&5
7787 sed 's/^/| /' conftest.$ac_ext >&5
7789 ac_cv_lib_dnet_dnet_ntoa=no
7791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7792 LIBS=$ac_check_lib_save_LIBS
7794 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7795 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
7796 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7797 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7800 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
7801 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
7802 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
7803 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 ac_check_lib_save_LIBS=$LIBS
7807 LIBS="-ldnet_stub $LIBS"
7808 cat >conftest.$ac_ext <<_ACEOF
7809 #line $LINENO "configure"
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h. */
7816 /* Override any gcc2 internal prototype to avoid an error. */
7820 /* We use char because int might match the return type of a gcc2
7821 builtin and then its argument prototype would still apply. */
7831 rm -f conftest.$ac_objext conftest$ac_exeext
7832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7833 (eval $ac_link) 2>&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } &&
7837 { ac_try='test -s conftest$ac_exeext'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; }; then
7843 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7845 echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7848 ac_cv_lib_dnet_stub_dnet_ntoa=no
7850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7851 LIBS=$ac_check_lib_save_LIBS
7853 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
7854 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
7855 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
7856 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7862 LIBS="$ac_xsave_LIBS"
7864 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7865 # to get the SysV transport functions.
7866 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7868 # The nsl library prevents programs from opening the X display
7869 # on Irix 5.2, according to T.E. Dickey.
7870 # The functions gethostbyname, getservbyname, and inet_addr are
7871 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
7872 echo "$as_me:$LINENO: checking for gethostbyname" >&5
7873 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
7874 if test "${ac_cv_func_gethostbyname+set}" = set; then
7875 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 cat >conftest.$ac_ext <<_ACEOF
7878 #line $LINENO "configure"
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h. */
7884 /* System header to define __stub macros and hopefully few prototypes,
7885 which can conflict with char gethostbyname (); below.
7886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7887 <limits.h> exists even on freestanding compilers. */
7889 # include <limits.h>
7891 # include <assert.h>
7893 /* Override any gcc2 internal prototype to avoid an error. */
7898 /* We use char because int might match the return type of a gcc2
7899 builtin and then its argument prototype would still apply. */
7900 char gethostbyname ();
7901 /* The GNU C library defines this for functions which it implements
7902 to always fail with ENOSYS. Some functions are actually named
7903 something starting with __ and the normal name is an alias. */
7904 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
7907 char (*f) () = gethostbyname;
7916 return f != gethostbyname;
7921 rm -f conftest.$ac_objext conftest$ac_exeext
7922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7923 (eval $ac_link) 2>&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } &&
7927 { ac_try='test -s conftest$ac_exeext'
7928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); }; }; then
7933 ac_cv_func_gethostbyname=yes
7935 echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7938 ac_cv_func_gethostbyname=no
7940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7942 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
7943 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
7945 if test $ac_cv_func_gethostbyname = no; then
7946 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
7947 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
7948 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
7949 echo $ECHO_N "(cached) $ECHO_C" >&6
7951 ac_check_lib_save_LIBS=$LIBS
7953 cat >conftest.$ac_ext <<_ACEOF
7954 #line $LINENO "configure"
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7961 /* Override any gcc2 internal prototype to avoid an error. */
7965 /* We use char because int might match the return type of a gcc2
7966 builtin and then its argument prototype would still apply. */
7967 char gethostbyname ();
7976 rm -f conftest.$ac_objext conftest$ac_exeext
7977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7978 (eval $ac_link) 2>&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } &&
7982 { ac_try='test -s conftest$ac_exeext'
7983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; }; then
7988 ac_cv_lib_nsl_gethostbyname=yes
7990 echo "$as_me: failed program was:" >&5
7991 sed 's/^/| /' conftest.$ac_ext >&5
7993 ac_cv_lib_nsl_gethostbyname=no
7995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7996 LIBS=$ac_check_lib_save_LIBS
7998 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
7999 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8000 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8001 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8004 if test $ac_cv_lib_nsl_gethostbyname = no; then
8005 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8006 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8007 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8010 ac_check_lib_save_LIBS=$LIBS
8012 cat >conftest.$ac_ext <<_ACEOF
8013 #line $LINENO "configure"
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h. */
8020 /* Override any gcc2 internal prototype to avoid an error. */
8024 /* We use char because int might match the return type of a gcc2
8025 builtin and then its argument prototype would still apply. */
8026 char gethostbyname ();
8035 rm -f conftest.$ac_objext conftest$ac_exeext
8036 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8037 (eval $ac_link) 2>&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } &&
8041 { ac_try='test -s conftest$ac_exeext'
8042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); }; }; then
8047 ac_cv_lib_bsd_gethostbyname=yes
8049 echo "$as_me: failed program was:" >&5
8050 sed 's/^/| /' conftest.$ac_ext >&5
8052 ac_cv_lib_bsd_gethostbyname=no
8054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8055 LIBS=$ac_check_lib_save_LIBS
8057 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8058 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8059 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8060 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8066 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8067 # socket/setsockopt and other routines are undefined under SCO ODT
8068 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8069 # on later versions), says Simon Leinen: it contains gethostby*
8070 # variants that don't use the name server (or something). -lsocket
8071 # must be given before -lnsl if both are needed. We assume that
8072 # if connect needs -lnsl, so does gethostbyname.
8073 echo "$as_me:$LINENO: checking for connect" >&5
8074 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8075 if test "${ac_cv_func_connect+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8078 cat >conftest.$ac_ext <<_ACEOF
8079 #line $LINENO "configure"
8082 cat confdefs.h >>conftest.$ac_ext
8083 cat >>conftest.$ac_ext <<_ACEOF
8084 /* end confdefs.h. */
8085 /* System header to define __stub macros and hopefully few prototypes,
8086 which can conflict with char connect (); below.
8087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8088 <limits.h> exists even on freestanding compilers. */
8090 # include <limits.h>
8092 # include <assert.h>
8094 /* Override any gcc2 internal prototype to avoid an error. */
8099 /* We use char because int might match the return type of a gcc2
8100 builtin and then its argument prototype would still apply. */
8102 /* The GNU C library defines this for functions which it implements
8103 to always fail with ENOSYS. Some functions are actually named
8104 something starting with __ and the normal name is an alias. */
8105 #if defined (__stub_connect) || defined (__stub___connect)
8108 char (*f) () = connect;
8117 return f != connect;
8122 rm -f conftest.$ac_objext conftest$ac_exeext
8123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8124 (eval $ac_link) 2>&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -s conftest$ac_exeext'
8129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8133 (exit $ac_status); }; }; then
8134 ac_cv_func_connect=yes
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8139 ac_cv_func_connect=no
8141 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8143 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8144 echo "${ECHO_T}$ac_cv_func_connect" >&6
8146 if test $ac_cv_func_connect = no; then
8147 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8148 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8149 if test "${ac_cv_lib_socket_connect+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8152 ac_check_lib_save_LIBS=$LIBS
8153 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8154 cat >conftest.$ac_ext <<_ACEOF
8155 #line $LINENO "configure"
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h. */
8162 /* Override any gcc2 internal prototype to avoid an error. */
8166 /* We use char because int might match the return type of a gcc2
8167 builtin and then its argument prototype would still apply. */
8177 rm -f conftest.$ac_objext conftest$ac_exeext
8178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8179 (eval $ac_link) 2>&5
8181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8182 (exit $ac_status); } &&
8183 { ac_try='test -s conftest$ac_exeext'
8184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); }; }; then
8189 ac_cv_lib_socket_connect=yes
8191 echo "$as_me: failed program was:" >&5
8192 sed 's/^/| /' conftest.$ac_ext >&5
8194 ac_cv_lib_socket_connect=no
8196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8197 LIBS=$ac_check_lib_save_LIBS
8199 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8200 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8201 if test $ac_cv_lib_socket_connect = yes; then
8202 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8207 # Guillermo Gomez says -lposix is necessary on A/UX.
8208 echo "$as_me:$LINENO: checking for remove" >&5
8209 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8210 if test "${ac_cv_func_remove+set}" = set; then
8211 echo $ECHO_N "(cached) $ECHO_C" >&6
8213 cat >conftest.$ac_ext <<_ACEOF
8214 #line $LINENO "configure"
8217 cat confdefs.h >>conftest.$ac_ext
8218 cat >>conftest.$ac_ext <<_ACEOF
8219 /* end confdefs.h. */
8220 /* System header to define __stub macros and hopefully few prototypes,
8221 which can conflict with char remove (); below.
8222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8223 <limits.h> exists even on freestanding compilers. */
8225 # include <limits.h>
8227 # include <assert.h>
8229 /* Override any gcc2 internal prototype to avoid an error. */
8234 /* We use char because int might match the return type of a gcc2
8235 builtin and then its argument prototype would still apply. */
8237 /* The GNU C library defines this for functions which it implements
8238 to always fail with ENOSYS. Some functions are actually named
8239 something starting with __ and the normal name is an alias. */
8240 #if defined (__stub_remove) || defined (__stub___remove)
8243 char (*f) () = remove;
8257 rm -f conftest.$ac_objext conftest$ac_exeext
8258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8259 (eval $ac_link) 2>&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } &&
8263 { ac_try='test -s conftest$ac_exeext'
8264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; }; then
8269 ac_cv_func_remove=yes
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8274 ac_cv_func_remove=no
8276 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8278 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8279 echo "${ECHO_T}$ac_cv_func_remove" >&6
8281 if test $ac_cv_func_remove = no; then
8282 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8283 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8284 if test "${ac_cv_lib_posix_remove+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8287 ac_check_lib_save_LIBS=$LIBS
8288 LIBS="-lposix $LIBS"
8289 cat >conftest.$ac_ext <<_ACEOF
8290 #line $LINENO "configure"
8293 cat confdefs.h >>conftest.$ac_ext
8294 cat >>conftest.$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8297 /* Override any gcc2 internal prototype to avoid an error. */
8301 /* We use char because int might match the return type of a gcc2
8302 builtin and then its argument prototype would still apply. */
8312 rm -f conftest.$ac_objext conftest$ac_exeext
8313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8314 (eval $ac_link) 2>&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } &&
8318 { ac_try='test -s conftest$ac_exeext'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; }; then
8324 ac_cv_lib_posix_remove=yes
8326 echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8329 ac_cv_lib_posix_remove=no
8331 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8332 LIBS=$ac_check_lib_save_LIBS
8334 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8335 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8336 if test $ac_cv_lib_posix_remove = yes; then
8337 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8342 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8343 echo "$as_me:$LINENO: checking for shmat" >&5
8344 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8345 if test "${ac_cv_func_shmat+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 cat >conftest.$ac_ext <<_ACEOF
8349 #line $LINENO "configure"
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8355 /* System header to define __stub macros and hopefully few prototypes,
8356 which can conflict with char shmat (); below.
8357 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8358 <limits.h> exists even on freestanding compilers. */
8360 # include <limits.h>
8362 # include <assert.h>
8364 /* Override any gcc2 internal prototype to avoid an error. */
8369 /* We use char because int might match the return type of a gcc2
8370 builtin and then its argument prototype would still apply. */
8372 /* The GNU C library defines this for functions which it implements
8373 to always fail with ENOSYS. Some functions are actually named
8374 something starting with __ and the normal name is an alias. */
8375 #if defined (__stub_shmat) || defined (__stub___shmat)
8378 char (*f) () = shmat;
8392 rm -f conftest.$ac_objext conftest$ac_exeext
8393 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8394 (eval $ac_link) 2>&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } &&
8398 { ac_try='test -s conftest$ac_exeext'
8399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); }; }; then
8404 ac_cv_func_shmat=yes
8406 echo "$as_me: failed program was:" >&5
8407 sed 's/^/| /' conftest.$ac_ext >&5
8411 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8413 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8414 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8416 if test $ac_cv_func_shmat = no; then
8417 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8418 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8419 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8420 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 ac_check_lib_save_LIBS=$LIBS
8424 cat >conftest.$ac_ext <<_ACEOF
8425 #line $LINENO "configure"
8428 cat confdefs.h >>conftest.$ac_ext
8429 cat >>conftest.$ac_ext <<_ACEOF
8430 /* end confdefs.h. */
8432 /* Override any gcc2 internal prototype to avoid an error. */
8436 /* We use char because int might match the return type of a gcc2
8437 builtin and then its argument prototype would still apply. */
8447 rm -f conftest.$ac_objext conftest$ac_exeext
8448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8449 (eval $ac_link) 2>&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } &&
8453 { ac_try='test -s conftest$ac_exeext'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then
8459 ac_cv_lib_ipc_shmat=yes
8461 echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8464 ac_cv_lib_ipc_shmat=no
8466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8467 LIBS=$ac_check_lib_save_LIBS
8469 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8470 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8471 if test $ac_cv_lib_ipc_shmat = yes; then
8472 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8478 # Check for libraries that X11R6 Xt/Xaw programs need.
8479 ac_save_LDFLAGS=$LDFLAGS
8480 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8481 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8482 # check for ICE first), but we must link in the order -lSM -lICE or
8483 # we get undefined symbols. So assume we have SM if we have ICE.
8484 # These have to be linked with before -lX11, unlike the other
8485 # libraries we check for below, so use a different variable.
8486 # John Interrante, Karl Berry
8487 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8488 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8489 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 ac_check_lib_save_LIBS=$LIBS
8493 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8494 cat >conftest.$ac_ext <<_ACEOF
8495 #line $LINENO "configure"
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8502 /* Override any gcc2 internal prototype to avoid an error. */
8506 /* We use char because int might match the return type of a gcc2
8507 builtin and then its argument prototype would still apply. */
8508 char IceConnectionNumber ();
8512 IceConnectionNumber ();
8517 rm -f conftest.$ac_objext conftest$ac_exeext
8518 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8519 (eval $ac_link) 2>&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } &&
8523 { ac_try='test -s conftest$ac_exeext'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; }; then
8529 ac_cv_lib_ICE_IceConnectionNumber=yes
8531 echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8534 ac_cv_lib_ICE_IceConnectionNumber=no
8536 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8537 LIBS=$ac_check_lib_save_LIBS
8539 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8540 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8541 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8542 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8545 LDFLAGS=$ac_save_LDFLAGS
8597 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8598 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8599 echo "$as_me:$LINENO: checking for $ac_header" >&5
8600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8601 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8607 # Is the header compilable?
8608 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8610 cat >conftest.$ac_ext <<_ACEOF
8611 #line $LINENO "configure"
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8617 $ac_includes_default
8618 #include <$ac_header>
8620 rm -f conftest.$ac_objext
8621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8622 (eval $ac_compile) 2>&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); } &&
8626 { ac_try='test -s conftest.$ac_objext'
8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; }; then
8632 ac_header_compiler=yes
8634 echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.$ac_ext >&5
8637 ac_header_compiler=no
8639 rm -f conftest.$ac_objext conftest.$ac_ext
8640 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8641 echo "${ECHO_T}$ac_header_compiler" >&6
8643 # Is the header present?
8644 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8646 cat >conftest.$ac_ext <<_ACEOF
8647 #line $LINENO "configure"
8650 cat confdefs.h >>conftest.$ac_ext
8651 cat >>conftest.$ac_ext <<_ACEOF
8652 /* end confdefs.h. */
8653 #include <$ac_header>
8655 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8656 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8658 grep -v '^ *+' conftest.er1 >conftest.err
8660 cat conftest.err >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } >/dev/null; then
8663 if test -s conftest.err; then
8664 ac_cpp_err=$ac_c_preproc_warn_flag
8671 if test -z "$ac_cpp_err"; then
8672 ac_header_preproc=yes
8674 echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.$ac_ext >&5
8677 ac_header_preproc=no
8679 rm -f conftest.err conftest.$ac_ext
8680 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8681 echo "${ECHO_T}$ac_header_preproc" >&6
8683 # So? What about this header?
8684 case $ac_header_compiler:$ac_header_preproc in
8686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8692 ## ------------------------------------ ##
8693 ## Report this to bug-autoconf@gnu.org. ##
8694 ## ------------------------------------ ##
8697 sed "s/^/$as_me: WARNING: /" >&2
8700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8703 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8708 ## ------------------------------------ ##
8709 ## Report this to bug-autoconf@gnu.org. ##
8710 ## ------------------------------------ ##
8713 sed "s/^/$as_me: WARNING: /" >&2
8716 echo "$as_me:$LINENO: checking for $ac_header" >&5
8717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8718 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8719 echo $ECHO_N "(cached) $ECHO_C" >&6
8721 eval "$as_ac_Header=$ac_header_preproc"
8723 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8724 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8727 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8728 cat >>confdefs.h <<_ACEOF
8729 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8736 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8737 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8738 if test "${ac_cv_header_stdc+set}" = set; then
8739 echo $ECHO_N "(cached) $ECHO_C" >&6
8741 cat >conftest.$ac_ext <<_ACEOF
8742 #line $LINENO "configure"
8745 cat confdefs.h >>conftest.$ac_ext
8746 cat >>conftest.$ac_ext <<_ACEOF
8747 /* end confdefs.h. */
8761 rm -f conftest.$ac_objext
8762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8763 (eval $ac_compile) 2>&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } &&
8767 { ac_try='test -s conftest.$ac_objext'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; }; then
8773 ac_cv_header_stdc=yes
8775 echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8778 ac_cv_header_stdc=no
8780 rm -f conftest.$ac_objext conftest.$ac_ext
8782 if test $ac_cv_header_stdc = yes; then
8783 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8784 cat >conftest.$ac_ext <<_ACEOF
8785 #line $LINENO "configure"
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h. */
8794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8795 $EGREP "memchr" >/dev/null 2>&1; then
8798 ac_cv_header_stdc=no
8804 if test $ac_cv_header_stdc = yes; then
8805 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8806 cat >conftest.$ac_ext <<_ACEOF
8807 #line $LINENO "configure"
8810 cat confdefs.h >>conftest.$ac_ext
8811 cat >>conftest.$ac_ext <<_ACEOF
8812 /* end confdefs.h. */
8816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8817 $EGREP "free" >/dev/null 2>&1; then
8820 ac_cv_header_stdc=no
8826 if test $ac_cv_header_stdc = yes; then
8827 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8828 if test "$cross_compiling" = yes; then
8831 cat >conftest.$ac_ext <<_ACEOF
8832 #line $LINENO "configure"
8835 cat confdefs.h >>conftest.$ac_ext
8836 cat >>conftest.$ac_ext <<_ACEOF
8837 /* end confdefs.h. */
8839 #if ((' ' & 0x0FF) == 0x020)
8840 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8841 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8843 # define ISLOWER(c) \
8844 (('a' <= (c) && (c) <= 'i') \
8845 || ('j' <= (c) && (c) <= 'r') \
8846 || ('s' <= (c) && (c) <= 'z'))
8847 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8850 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8855 for (i = 0; i < 256; i++)
8856 if (XOR (islower (i), ISLOWER (i))
8857 || toupper (i) != TOUPPER (i))
8862 rm -f conftest$ac_exeext
8863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864 (eval $ac_link) 2>&5
8866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8867 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; }; then
8875 echo "$as_me: program exited with status $ac_status" >&5
8876 echo "$as_me: failed program was:" >&5
8877 sed 's/^/| /' conftest.$ac_ext >&5
8880 ac_cv_header_stdc=no
8882 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8886 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8887 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8888 if test $ac_cv_header_stdc = yes; then
8890 cat >>confdefs.h <<\_ACEOF
8891 #define STDC_HEADERS 1
8896 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
8897 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
8898 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8901 cat >conftest.$ac_ext <<_ACEOF
8902 #line $LINENO "configure"
8905 cat confdefs.h >>conftest.$ac_ext
8906 cat >>conftest.$ac_ext <<_ACEOF
8907 /* end confdefs.h. */
8908 #include <sys/types.h>
8912 return makedev(0, 0);
8917 rm -f conftest.$ac_objext conftest$ac_exeext
8918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8919 (eval $ac_link) 2>&5
8921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922 (exit $ac_status); } &&
8923 { ac_try='test -s conftest$ac_exeext'
8924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; }; then
8929 ac_cv_header_sys_types_h_makedev=yes
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8934 ac_cv_header_sys_types_h_makedev=no
8936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8939 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
8940 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
8942 if test $ac_cv_header_sys_types_h_makedev = no; then
8943 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8944 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
8945 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
8946 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8949 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
8950 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
8952 # Is the header compilable?
8953 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
8954 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
8955 cat >conftest.$ac_ext <<_ACEOF
8956 #line $LINENO "configure"
8959 cat confdefs.h >>conftest.$ac_ext
8960 cat >>conftest.$ac_ext <<_ACEOF
8961 /* end confdefs.h. */
8962 $ac_includes_default
8963 #include <sys/mkdev.h>
8965 rm -f conftest.$ac_objext
8966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8967 (eval $ac_compile) 2>&5
8969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8970 (exit $ac_status); } &&
8971 { ac_try='test -s conftest.$ac_objext'
8972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; }; then
8977 ac_header_compiler=yes
8979 echo "$as_me: failed program was:" >&5
8980 sed 's/^/| /' conftest.$ac_ext >&5
8982 ac_header_compiler=no
8984 rm -f conftest.$ac_objext conftest.$ac_ext
8985 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8986 echo "${ECHO_T}$ac_header_compiler" >&6
8988 # Is the header present?
8989 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
8990 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
8991 cat >conftest.$ac_ext <<_ACEOF
8992 #line $LINENO "configure"
8995 cat confdefs.h >>conftest.$ac_ext
8996 cat >>conftest.$ac_ext <<_ACEOF
8997 /* end confdefs.h. */
8998 #include <sys/mkdev.h>
9000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9003 grep -v '^ *+' conftest.er1 >conftest.err
9005 cat conftest.err >&5
9006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007 (exit $ac_status); } >/dev/null; then
9008 if test -s conftest.err; then
9009 ac_cpp_err=$ac_c_preproc_warn_flag
9016 if test -z "$ac_cpp_err"; then
9017 ac_header_preproc=yes
9019 echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9022 ac_header_preproc=no
9024 rm -f conftest.err conftest.$ac_ext
9025 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9026 echo "${ECHO_T}$ac_header_preproc" >&6
9028 # So? What about this header?
9029 case $ac_header_compiler:$ac_header_preproc in
9031 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9032 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9033 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9034 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9037 ## ------------------------------------ ##
9038 ## Report this to bug-autoconf@gnu.org. ##
9039 ## ------------------------------------ ##
9042 sed "s/^/$as_me: WARNING: /" >&2
9045 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9046 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9047 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9048 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9049 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9050 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9053 ## ------------------------------------ ##
9054 ## Report this to bug-autoconf@gnu.org. ##
9055 ## ------------------------------------ ##
9058 sed "s/^/$as_me: WARNING: /" >&2
9061 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9062 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9063 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9064 echo $ECHO_N "(cached) $ECHO_C" >&6
9066 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9068 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9069 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9072 if test $ac_cv_header_sys_mkdev_h = yes; then
9074 cat >>confdefs.h <<\_ACEOF
9075 #define MAJOR_IN_MKDEV 1
9082 if test $ac_cv_header_sys_mkdev_h = no; then
9083 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9084 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9085 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9086 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9089 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9090 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9092 # Is the header compilable?
9093 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9094 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9095 cat >conftest.$ac_ext <<_ACEOF
9096 #line $LINENO "configure"
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9102 $ac_includes_default
9103 #include <sys/sysmacros.h>
9105 rm -f conftest.$ac_objext
9106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9107 (eval $ac_compile) 2>&5
9109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9110 (exit $ac_status); } &&
9111 { ac_try='test -s conftest.$ac_objext'
9112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
9117 ac_header_compiler=yes
9119 echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9122 ac_header_compiler=no
9124 rm -f conftest.$ac_objext conftest.$ac_ext
9125 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9126 echo "${ECHO_T}$ac_header_compiler" >&6
9128 # Is the header present?
9129 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9130 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9131 cat >conftest.$ac_ext <<_ACEOF
9132 #line $LINENO "configure"
9135 cat confdefs.h >>conftest.$ac_ext
9136 cat >>conftest.$ac_ext <<_ACEOF
9137 /* end confdefs.h. */
9138 #include <sys/sysmacros.h>
9140 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9141 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9143 grep -v '^ *+' conftest.er1 >conftest.err
9145 cat conftest.err >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } >/dev/null; then
9148 if test -s conftest.err; then
9149 ac_cpp_err=$ac_c_preproc_warn_flag
9156 if test -z "$ac_cpp_err"; then
9157 ac_header_preproc=yes
9159 echo "$as_me: failed program was:" >&5
9160 sed 's/^/| /' conftest.$ac_ext >&5
9162 ac_header_preproc=no
9164 rm -f conftest.err conftest.$ac_ext
9165 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9166 echo "${ECHO_T}$ac_header_preproc" >&6
9168 # So? What about this header?
9169 case $ac_header_compiler:$ac_header_preproc in
9171 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9172 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9173 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9174 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9177 ## ------------------------------------ ##
9178 ## Report this to bug-autoconf@gnu.org. ##
9179 ## ------------------------------------ ##
9182 sed "s/^/$as_me: WARNING: /" >&2
9185 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9186 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9187 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9188 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9189 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9190 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9193 ## ------------------------------------ ##
9194 ## Report this to bug-autoconf@gnu.org. ##
9195 ## ------------------------------------ ##
9198 sed "s/^/$as_me: WARNING: /" >&2
9201 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9202 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9203 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9204 echo $ECHO_N "(cached) $ECHO_C" >&6
9206 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9208 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9209 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9212 if test $ac_cv_header_sys_sysmacros_h = yes; then
9214 cat >>confdefs.h <<\_ACEOF
9215 #define MAJOR_IN_SYSMACROS 1
9230 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9231 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9232 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9233 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9235 echo $ECHO_N "(cached) $ECHO_C" >&6
9237 cat >conftest.$ac_ext <<_ACEOF
9238 #line $LINENO "configure"
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9244 #include <sys/types.h>
9256 rm -f conftest.$ac_objext
9257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9258 (eval $ac_compile) 2>&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); } &&
9262 { ac_try='test -s conftest.$ac_objext'
9263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267 (exit $ac_status); }; }; then
9268 eval "$as_ac_Header=yes"
9270 echo "$as_me: failed program was:" >&5
9271 sed 's/^/| /' conftest.$ac_ext >&5
9273 eval "$as_ac_Header=no"
9275 rm -f conftest.$ac_objext conftest.$ac_ext
9277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9278 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9280 cat >>confdefs.h <<_ACEOF
9281 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9284 ac_header_dirent=$ac_hdr; break
9288 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9289 if test $ac_header_dirent = dirent.h; then
9290 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9291 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9292 if test "${ac_cv_search_opendir+set}" = set; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 ac_func_search_save_LIBS=$LIBS
9296 ac_cv_search_opendir=no
9297 cat >conftest.$ac_ext <<_ACEOF
9298 #line $LINENO "configure"
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9305 /* Override any gcc2 internal prototype to avoid an error. */
9309 /* We use char because int might match the return type of a gcc2
9310 builtin and then its argument prototype would still apply. */
9320 rm -f conftest.$ac_objext conftest$ac_exeext
9321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9322 (eval $ac_link) 2>&5
9324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9325 (exit $ac_status); } &&
9326 { ac_try='test -s conftest$ac_exeext'
9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; }; then
9332 ac_cv_search_opendir="none required"
9334 echo "$as_me: failed program was:" >&5
9335 sed 's/^/| /' conftest.$ac_ext >&5
9338 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9339 if test "$ac_cv_search_opendir" = no; then
9340 for ac_lib in dir; do
9341 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9342 cat >conftest.$ac_ext <<_ACEOF
9343 #line $LINENO "configure"
9346 cat confdefs.h >>conftest.$ac_ext
9347 cat >>conftest.$ac_ext <<_ACEOF
9348 /* end confdefs.h. */
9350 /* Override any gcc2 internal prototype to avoid an error. */
9354 /* We use char because int might match the return type of a gcc2
9355 builtin and then its argument prototype would still apply. */
9365 rm -f conftest.$ac_objext conftest$ac_exeext
9366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9367 (eval $ac_link) 2>&5
9369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9370 (exit $ac_status); } &&
9371 { ac_try='test -s conftest$ac_exeext'
9372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); }; }; then
9377 ac_cv_search_opendir="-l$ac_lib"
9380 echo "$as_me: failed program was:" >&5
9381 sed 's/^/| /' conftest.$ac_ext >&5
9384 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9387 LIBS=$ac_func_search_save_LIBS
9389 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9390 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9391 if test "$ac_cv_search_opendir" != no; then
9392 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9397 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9398 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9399 if test "${ac_cv_search_opendir+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9402 ac_func_search_save_LIBS=$LIBS
9403 ac_cv_search_opendir=no
9404 cat >conftest.$ac_ext <<_ACEOF
9405 #line $LINENO "configure"
9408 cat confdefs.h >>conftest.$ac_ext
9409 cat >>conftest.$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9412 /* Override any gcc2 internal prototype to avoid an error. */
9416 /* We use char because int might match the return type of a gcc2
9417 builtin and then its argument prototype would still apply. */
9427 rm -f conftest.$ac_objext conftest$ac_exeext
9428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9429 (eval $ac_link) 2>&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } &&
9433 { ac_try='test -s conftest$ac_exeext'
9434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; }; then
9439 ac_cv_search_opendir="none required"
9441 echo "$as_me: failed program was:" >&5
9442 sed 's/^/| /' conftest.$ac_ext >&5
9445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9446 if test "$ac_cv_search_opendir" = no; then
9448 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9449 cat >conftest.$ac_ext <<_ACEOF
9450 #line $LINENO "configure"
9453 cat confdefs.h >>conftest.$ac_ext
9454 cat >>conftest.$ac_ext <<_ACEOF
9455 /* end confdefs.h. */
9457 /* Override any gcc2 internal prototype to avoid an error. */
9461 /* We use char because int might match the return type of a gcc2
9462 builtin and then its argument prototype would still apply. */
9472 rm -f conftest.$ac_objext conftest$ac_exeext
9473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9474 (eval $ac_link) 2>&5
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); } &&
9478 { ac_try='test -s conftest$ac_exeext'
9479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); }; }; then
9484 ac_cv_search_opendir="-l$ac_lib"
9487 echo "$as_me: failed program was:" >&5
9488 sed 's/^/| /' conftest.$ac_ext >&5
9491 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9494 LIBS=$ac_func_search_save_LIBS
9496 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9497 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9498 if test "$ac_cv_search_opendir" != no; then
9499 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9505 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9506 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9507 if test "${ac_cv_header_stat_broken+set}" = set; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 cat >conftest.$ac_ext <<_ACEOF
9511 #line $LINENO "configure"
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h. */
9517 #include <sys/types.h>
9518 #include <sys/stat.h>
9520 #if defined(S_ISBLK) && defined(S_IFDIR)
9521 # if S_ISBLK (S_IFDIR)
9526 #if defined(S_ISBLK) && defined(S_IFCHR)
9527 # if S_ISBLK (S_IFCHR)
9532 #if defined(S_ISLNK) && defined(S_IFREG)
9533 # if S_ISLNK (S_IFREG)
9538 #if defined(S_ISSOCK) && defined(S_IFREG)
9539 # if S_ISSOCK (S_IFREG)
9545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9546 $EGREP "You lose" >/dev/null 2>&1; then
9547 ac_cv_header_stat_broken=yes
9549 ac_cv_header_stat_broken=no
9554 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9555 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
9556 if test $ac_cv_header_stat_broken = yes; then
9558 cat >>confdefs.h <<\_ACEOF
9559 #define STAT_MACROS_BROKEN 1
9564 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9565 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9566 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
9569 cat >conftest.$ac_ext <<_ACEOF
9570 #line $LINENO "configure"
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h. */
9576 #include <sys/types.h>
9577 #include <sys/wait.h>
9579 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9582 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9590 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9595 rm -f conftest.$ac_objext
9596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9597 (eval $ac_compile) 2>&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } &&
9601 { ac_try='test -s conftest.$ac_objext'
9602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
9607 ac_cv_header_sys_wait_h=yes
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9612 ac_cv_header_sys_wait_h=no
9614 rm -f conftest.$ac_objext conftest.$ac_ext
9616 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9617 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9618 if test $ac_cv_header_sys_wait_h = yes; then
9620 cat >>confdefs.h <<\_ACEOF
9621 #define HAVE_SYS_WAIT_H 1
9626 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9627 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9628 if test "${ac_cv_header_time+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 cat >conftest.$ac_ext <<_ACEOF
9632 #line $LINENO "configure"
9635 cat confdefs.h >>conftest.$ac_ext
9636 cat >>conftest.$ac_ext <<_ACEOF
9637 /* end confdefs.h. */
9638 #include <sys/types.h>
9639 #include <sys/time.h>
9645 if ((struct tm *) 0)
9651 rm -f conftest.$ac_objext
9652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9653 (eval $ac_compile) 2>&5
9655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9656 (exit $ac_status); } &&
9657 { ac_try='test -s conftest.$ac_objext'
9658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); }; }; then
9663 ac_cv_header_time=yes
9665 echo "$as_me: failed program was:" >&5
9666 sed 's/^/| /' conftest.$ac_ext >&5
9668 ac_cv_header_time=no
9670 rm -f conftest.$ac_objext conftest.$ac_ext
9672 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9673 echo "${ECHO_T}$ac_cv_header_time" >&6
9674 if test $ac_cv_header_time = yes; then
9676 cat >>confdefs.h <<\_ACEOF
9677 #define TIME_WITH_SYS_TIME 1
9683 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
9684 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
9685 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
9686 echo $ECHO_N "(cached) $ECHO_C" >&6
9688 cat >conftest.$ac_ext <<_ACEOF
9689 #line $LINENO "configure"
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h. */
9695 $ac_includes_default
9699 static struct stat ac_aggr;
9700 if (ac_aggr.st_blksize)
9706 rm -f conftest.$ac_objext
9707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9708 (eval $ac_compile) 2>&5
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); } &&
9712 { ac_try='test -s conftest.$ac_objext'
9713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); }; }; then
9718 ac_cv_member_struct_stat_st_blksize=yes
9720 echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.$ac_ext >&5
9723 cat >conftest.$ac_ext <<_ACEOF
9724 #line $LINENO "configure"
9727 cat confdefs.h >>conftest.$ac_ext
9728 cat >>conftest.$ac_ext <<_ACEOF
9729 /* end confdefs.h. */
9730 $ac_includes_default
9734 static struct stat ac_aggr;
9735 if (sizeof ac_aggr.st_blksize)
9741 rm -f conftest.$ac_objext
9742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9743 (eval $ac_compile) 2>&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } &&
9747 { ac_try='test -s conftest.$ac_objext'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; }; then
9753 ac_cv_member_struct_stat_st_blksize=yes
9755 echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9758 ac_cv_member_struct_stat_st_blksize=no
9760 rm -f conftest.$ac_objext conftest.$ac_ext
9762 rm -f conftest.$ac_objext conftest.$ac_ext
9764 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
9765 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
9766 if test $ac_cv_member_struct_stat_st_blksize = yes; then
9768 cat >>confdefs.h <<_ACEOF
9769 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
9773 cat >>confdefs.h <<\_ACEOF
9774 #define HAVE_ST_BLKSIZE 1
9780 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
9781 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
9782 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
9783 echo $ECHO_N "(cached) $ECHO_C" >&6
9785 cat >conftest.$ac_ext <<_ACEOF
9786 #line $LINENO "configure"
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9792 $ac_includes_default
9796 static struct stat ac_aggr;
9797 if (ac_aggr.st_blocks)
9803 rm -f conftest.$ac_objext
9804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9805 (eval $ac_compile) 2>&5
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); } &&
9809 { ac_try='test -s conftest.$ac_objext'
9810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
9815 ac_cv_member_struct_stat_st_blocks=yes
9817 echo "$as_me: failed program was:" >&5
9818 sed 's/^/| /' conftest.$ac_ext >&5
9820 cat >conftest.$ac_ext <<_ACEOF
9821 #line $LINENO "configure"
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9827 $ac_includes_default
9831 static struct stat ac_aggr;
9832 if (sizeof ac_aggr.st_blocks)
9838 rm -f conftest.$ac_objext
9839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9840 (eval $ac_compile) 2>&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } &&
9844 { ac_try='test -s conftest.$ac_objext'
9845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); }; }; then
9850 ac_cv_member_struct_stat_st_blocks=yes
9852 echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9855 ac_cv_member_struct_stat_st_blocks=no
9857 rm -f conftest.$ac_objext conftest.$ac_ext
9859 rm -f conftest.$ac_objext conftest.$ac_ext
9861 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
9862 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
9863 if test $ac_cv_member_struct_stat_st_blocks = yes; then
9865 cat >>confdefs.h <<_ACEOF
9866 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
9870 cat >>confdefs.h <<\_ACEOF
9871 #define HAVE_ST_BLOCKS 1
9875 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
9879 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
9880 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
9881 if test "${ac_cv_struct_tm+set}" = set; then
9882 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 cat >conftest.$ac_ext <<_ACEOF
9885 #line $LINENO "configure"
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 #include <sys/types.h>
9897 struct tm *tp; tp->tm_sec;
9902 rm -f conftest.$ac_objext
9903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9904 (eval $ac_compile) 2>&5
9906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9907 (exit $ac_status); } &&
9908 { ac_try='test -s conftest.$ac_objext'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; }; then
9914 ac_cv_struct_tm=time.h
9916 echo "$as_me: failed program was:" >&5
9917 sed 's/^/| /' conftest.$ac_ext >&5
9919 ac_cv_struct_tm=sys/time.h
9921 rm -f conftest.$ac_objext conftest.$ac_ext
9923 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
9924 echo "${ECHO_T}$ac_cv_struct_tm" >&6
9925 if test $ac_cv_struct_tm = sys/time.h; then
9927 cat >>confdefs.h <<\_ACEOF
9928 #define TM_IN_SYS_TIME 1
9933 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
9934 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
9935 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
9936 echo $ECHO_N "(cached) $ECHO_C" >&6
9938 cat >conftest.$ac_ext <<_ACEOF
9939 #line $LINENO "configure"
9942 cat confdefs.h >>conftest.$ac_ext
9943 cat >>conftest.$ac_ext <<_ACEOF
9944 /* end confdefs.h. */
9945 #include <sys/types.h>
9946 #include <$ac_cv_struct_tm>
9952 static struct tm ac_aggr;
9953 if (ac_aggr.tm_zone)
9959 rm -f conftest.$ac_objext
9960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9961 (eval $ac_compile) 2>&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -s conftest.$ac_objext'
9966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; }; then
9971 ac_cv_member_struct_tm_tm_zone=yes
9973 echo "$as_me: failed program was:" >&5
9974 sed 's/^/| /' conftest.$ac_ext >&5
9976 cat >conftest.$ac_ext <<_ACEOF
9977 #line $LINENO "configure"
9980 cat confdefs.h >>conftest.$ac_ext
9981 cat >>conftest.$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9983 #include <sys/types.h>
9984 #include <$ac_cv_struct_tm>
9990 static struct tm ac_aggr;
9991 if (sizeof ac_aggr.tm_zone)
9997 rm -f conftest.$ac_objext
9998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9999 (eval $ac_compile) 2>&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } &&
10003 { ac_try='test -s conftest.$ac_objext'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; }; then
10009 ac_cv_member_struct_tm_tm_zone=yes
10011 echo "$as_me: failed program was:" >&5
10012 sed 's/^/| /' conftest.$ac_ext >&5
10014 ac_cv_member_struct_tm_tm_zone=no
10016 rm -f conftest.$ac_objext conftest.$ac_ext
10018 rm -f conftest.$ac_objext conftest.$ac_ext
10020 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10021 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10022 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10024 cat >>confdefs.h <<_ACEOF
10025 #define HAVE_STRUCT_TM_TM_ZONE 1
10031 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10033 cat >>confdefs.h <<\_ACEOF
10034 #define HAVE_TM_ZONE 1
10038 echo "$as_me:$LINENO: checking for tzname" >&5
10039 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10040 if test "${ac_cv_var_tzname+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 cat >conftest.$ac_ext <<_ACEOF
10044 #line $LINENO "configure"
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h. */
10051 #ifndef tzname /* For SGI. */
10052 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10063 rm -f conftest.$ac_objext conftest$ac_exeext
10064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10065 (eval $ac_link) 2>&5
10067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068 (exit $ac_status); } &&
10069 { ac_try='test -s conftest$ac_exeext'
10070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10071 (eval $ac_try) 2>&5
10073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10074 (exit $ac_status); }; }; then
10075 ac_cv_var_tzname=yes
10077 echo "$as_me: failed program was:" >&5
10078 sed 's/^/| /' conftest.$ac_ext >&5
10080 ac_cv_var_tzname=no
10082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10084 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10085 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10086 if test $ac_cv_var_tzname = yes; then
10088 cat >>confdefs.h <<\_ACEOF
10089 #define HAVE_TZNAME 1
10096 echo "$as_me:$LINENO: checking for utime.h" >&5
10097 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10098 if test "${ba_cv_header_utime_h+set}" = set; then
10099 echo $ECHO_N "(cached) $ECHO_C" >&6
10101 cat >conftest.$ac_ext <<_ACEOF
10102 #line $LINENO "configure"
10105 cat confdefs.h >>conftest.$ac_ext
10106 cat >>conftest.$ac_ext <<_ACEOF
10107 /* end confdefs.h. */
10109 #include <sys/types.h>
10119 rm -f conftest.$ac_objext
10120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10121 (eval $ac_compile) 2>&5
10123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124 (exit $ac_status); } &&
10125 { ac_try='test -s conftest.$ac_objext'
10126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10127 (eval $ac_try) 2>&5
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; }; then
10131 ba_cv_header_utime_h=yes
10133 echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10136 ba_cv_header_utime_h=no
10138 rm -f conftest.$ac_objext conftest.$ac_ext
10140 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10141 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10142 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10143 #define HAVE_UTIME_H 1
10147 echo "$as_me:$LINENO: checking for socklen_t" >&5
10148 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10149 if test "${ba_cv_header_socklen_t+set}" = set; then
10150 echo $ECHO_N "(cached) $ECHO_C" >&6
10152 cat >conftest.$ac_ext <<_ACEOF
10153 #line $LINENO "configure"
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h. */
10160 #include <sys/types.h>
10161 #include <sys/socket.h>
10170 rm -f conftest.$ac_objext
10171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10172 (eval $ac_compile) 2>&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); } &&
10176 { ac_try='test -s conftest.$ac_objext'
10177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10178 (eval $ac_try) 2>&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); }; }; then
10182 ba_cv_header_socklen_t=yes
10184 echo "$as_me: failed program was:" >&5
10185 sed 's/^/| /' conftest.$ac_ext >&5
10187 ba_cv_header_socklen_t=no
10189 rm -f conftest.$ac_objext conftest.$ac_ext
10191 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10192 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10193 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10194 #define HAVE_SOCKLEN_T 1
10198 echo "$as_me:$LINENO: checking for bigendian" >&5
10199 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10200 if test "${ba_cv_bigendian+set}" = set; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 if test "$cross_compiling" = yes; then
10206 cat >conftest.$ac_ext <<_ACEOF
10207 #line $LINENO "configure"
10210 cat confdefs.h >>conftest.$ac_ext
10211 cat >>conftest.$ac_ext <<_ACEOF
10212 /* end confdefs.h. */
10213 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10215 rm -f conftest$ac_exeext
10216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10217 (eval $ac_link) 2>&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10222 (eval $ac_try) 2>&5
10224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10225 (exit $ac_status); }; }; then
10226 ba_cv_bigendian=yes
10228 echo "$as_me: program exited with status $ac_status" >&5
10229 echo "$as_me: failed program was:" >&5
10230 sed 's/^/| /' conftest.$ac_ext >&5
10232 ( exit $ac_status )
10235 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10238 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10239 echo "${ECHO_T}$ba_cv_bigendian" >&6
10240 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10241 #define HAVE_BIGENDIAN 1
10246 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10247 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10248 if test "${ac_cv_c_const+set}" = set; then
10249 echo $ECHO_N "(cached) $ECHO_C" >&6
10251 cat >conftest.$ac_ext <<_ACEOF
10252 #line $LINENO "configure"
10255 cat confdefs.h >>conftest.$ac_ext
10256 cat >>conftest.$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10262 /* FIXME: Include the comments suggested by Paul. */
10263 #ifndef __cplusplus
10264 /* Ultrix mips cc rejects this. */
10265 typedef int charset[2];
10267 /* SunOS 4.1.1 cc rejects this. */
10268 char const *const *ccp;
10270 /* NEC SVR4.0.2 mips cc rejects this. */
10271 struct point {int x, y;};
10272 static struct point const zero = {0,0};
10273 /* AIX XL C 1.02.0.0 rejects this.
10274 It does not let you subtract one const X* pointer from another in
10275 an arm of an if-expression whose if-part is not a constant
10277 const char *g = "string";
10278 ccp = &g + (g ? g-g : 0);
10279 /* HPUX 7.0 cc rejects these. */
10282 ccp = (char const *const *) p;
10283 { /* SCO 3.2v4 cc rejects this. */
10285 char const *s = 0 ? (char *) 0 : (char const *) 0;
10289 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10290 int x[] = {25, 17};
10291 const int *foo = &x[0];
10294 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10295 typedef const int *iptr;
10299 { /* AIX XL C 1.02.0.0 rejects this saying
10300 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10301 struct s { int j; const int *ap[3]; };
10302 struct s *b; b->j = 5;
10304 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10305 const int foo = 10;
10313 rm -f conftest.$ac_objext
10314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10315 (eval $ac_compile) 2>&5
10317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318 (exit $ac_status); } &&
10319 { ac_try='test -s conftest.$ac_objext'
10320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10321 (eval $ac_try) 2>&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; }; then
10327 echo "$as_me: failed program was:" >&5
10328 sed 's/^/| /' conftest.$ac_ext >&5
10332 rm -f conftest.$ac_objext conftest.$ac_ext
10334 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10335 echo "${ECHO_T}$ac_cv_c_const" >&6
10336 if test $ac_cv_c_const = no; then
10338 cat >>confdefs.h <<\_ACEOF
10346 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10347 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10349 # The order of these tests is important.
10350 cat >conftest.$ac_ext <<_ACEOF
10351 #line $LINENO "configure"
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10357 #include <sys/statvfs.h>
10358 #include <sys/fstyp.h>
10360 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10363 grep -v '^ *+' conftest.er1 >conftest.err
10365 cat conftest.err >&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); } >/dev/null; then
10368 if test -s conftest.err; then
10369 ac_cpp_err=$ac_c_preproc_warn_flag
10376 if test -z "$ac_cpp_err"; then
10377 cat >>confdefs.h <<\_ACEOF
10378 #define FSTYPE_STATVFS 1
10382 echo "$as_me: failed program was:" >&5
10383 sed 's/^/| /' conftest.$ac_ext >&5
10387 rm -f conftest.err conftest.$ac_ext
10388 if test $fstype = no; then
10389 cat >conftest.$ac_ext <<_ACEOF
10390 #line $LINENO "configure"
10393 cat confdefs.h >>conftest.$ac_ext
10394 cat >>conftest.$ac_ext <<_ACEOF
10395 /* end confdefs.h. */
10396 #include <sys/statfs.h>
10397 #include <sys/fstyp.h>
10399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10402 grep -v '^ *+' conftest.er1 >conftest.err
10404 cat conftest.err >&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406 (exit $ac_status); } >/dev/null; then
10407 if test -s conftest.err; then
10408 ac_cpp_err=$ac_c_preproc_warn_flag
10415 if test -z "$ac_cpp_err"; then
10416 cat >>confdefs.h <<\_ACEOF
10417 #define FSTYPE_USG_STATFS 1
10421 echo "$as_me: failed program was:" >&5
10422 sed 's/^/| /' conftest.$ac_ext >&5
10426 rm -f conftest.err conftest.$ac_ext
10428 if test $fstype = no; then
10429 cat >conftest.$ac_ext <<_ACEOF
10430 #line $LINENO "configure"
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10436 #include <sys/statfs.h>
10437 #include <sys/vmount.h>
10439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10442 grep -v '^ *+' conftest.er1 >conftest.err
10444 cat conftest.err >&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); } >/dev/null; then
10447 if test -s conftest.err; then
10448 ac_cpp_err=$ac_c_preproc_warn_flag
10455 if test -z "$ac_cpp_err"; then
10456 cat >>confdefs.h <<\_ACEOF
10457 #define FSTYPE_AIX_STATFS 1
10461 echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10466 rm -f conftest.err conftest.$ac_ext
10468 if test $fstype = no; then
10469 cat >conftest.$ac_ext <<_ACEOF
10470 #line $LINENO "configure"
10473 cat confdefs.h >>conftest.$ac_ext
10474 cat >>conftest.$ac_ext <<_ACEOF
10475 /* end confdefs.h. */
10476 #include <mntent.h>
10478 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10479 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10481 grep -v '^ *+' conftest.er1 >conftest.err
10483 cat conftest.err >&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } >/dev/null; then
10486 if test -s conftest.err; then
10487 ac_cpp_err=$ac_c_preproc_warn_flag
10494 if test -z "$ac_cpp_err"; then
10495 cat >>confdefs.h <<\_ACEOF
10496 #define FSTYPE_MNTENT 1
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10505 rm -f conftest.err conftest.$ac_ext
10507 if test $fstype = no; then
10508 cat >conftest.$ac_ext <<_ACEOF
10509 #line $LINENO "configure"
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h. */
10515 #include <sys/mount.h>
10518 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10519 $EGREP "f_type;" >/dev/null 2>&1; then
10520 cat >>confdefs.h <<\_ACEOF
10521 #define FSTYPE_STATFS 1
10528 if test $fstype = no; then
10529 cat >conftest.$ac_ext <<_ACEOF
10530 #line $LINENO "configure"
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10536 #include <sys/mount.h>
10537 #include <sys/fs_types.h>
10539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10542 grep -v '^ *+' conftest.er1 >conftest.err
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10546 (exit $ac_status); } >/dev/null; then
10547 if test -s conftest.err; then
10548 ac_cpp_err=$ac_c_preproc_warn_flag
10555 if test -z "$ac_cpp_err"; then
10556 cat >>confdefs.h <<\_ACEOF
10557 #define FSTYPE_GETMNT 1
10561 echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.$ac_ext >&5
10566 rm -f conftest.err conftest.$ac_ext
10568 echo "$as_me:$LINENO: result: $fstype" >&5
10569 echo "${ECHO_T}$fstype" >&6
10571 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10572 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10573 if test "${ac_cv_type_signal+set}" = set; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10576 cat >conftest.$ac_ext <<_ACEOF
10577 #line $LINENO "configure"
10580 cat confdefs.h >>conftest.$ac_ext
10581 cat >>conftest.$ac_ext <<_ACEOF
10582 /* end confdefs.h. */
10583 #include <sys/types.h>
10584 #include <signal.h>
10589 extern "C" void (*signal (int, void (*)(int)))(int);
10591 void (*signal ()) ();
10602 rm -f conftest.$ac_objext
10603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10604 (eval $ac_compile) 2>&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } &&
10608 { ac_try='test -s conftest.$ac_objext'
10609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10610 (eval $ac_try) 2>&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); }; }; then
10614 ac_cv_type_signal=void
10616 echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.$ac_ext >&5
10619 ac_cv_type_signal=int
10621 rm -f conftest.$ac_objext conftest.$ac_ext
10623 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10624 echo "${ECHO_T}$ac_cv_type_signal" >&6
10626 cat >>confdefs.h <<_ACEOF
10627 #define RETSIGTYPE $ac_cv_type_signal
10632 echo "$as_me:$LINENO: checking for type of signal functions" >&5
10633 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
10634 if test "${bash_cv_signal_vintage+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10638 cat >conftest.$ac_ext <<_ACEOF
10639 #line $LINENO "configure"
10642 cat confdefs.h >>conftest.$ac_ext
10643 cat >>conftest.$ac_ext <<_ACEOF
10644 /* end confdefs.h. */
10645 #include <signal.h>
10651 struct sigaction sa;
10652 sigemptyset(&ss); sigsuspend(&ss);
10653 sigaction(SIGINT, &sa, (struct sigaction *) 0);
10654 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
10660 rm -f conftest.$ac_objext conftest$ac_exeext
10661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10662 (eval $ac_link) 2>&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 (exit $ac_status); } &&
10666 { ac_try='test -s conftest$ac_exeext'
10667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10668 (eval $ac_try) 2>&5
10670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10671 (exit $ac_status); }; }; then
10672 bash_cv_signal_vintage=posix
10674 echo "$as_me: failed program was:" >&5
10675 sed 's/^/| /' conftest.$ac_ext >&5
10678 cat >conftest.$ac_ext <<_ACEOF
10679 #line $LINENO "configure"
10682 cat confdefs.h >>conftest.$ac_ext
10683 cat >>conftest.$ac_ext <<_ACEOF
10684 /* end confdefs.h. */
10685 #include <signal.h>
10690 int mask = sigmask(SIGINT);
10691 sigsetmask(mask); sigblock(mask); sigpause(mask);
10697 rm -f conftest.$ac_objext conftest$ac_exeext
10698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10699 (eval $ac_link) 2>&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } &&
10703 { ac_try='test -s conftest$ac_exeext'
10704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10705 (eval $ac_try) 2>&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); }; }; then
10709 bash_cv_signal_vintage=4.2bsd
10711 echo "$as_me: failed program was:" >&5
10712 sed 's/^/| /' conftest.$ac_ext >&5
10715 cat >conftest.$ac_ext <<_ACEOF
10716 #line $LINENO "configure"
10719 cat confdefs.h >>conftest.$ac_ext
10720 cat >>conftest.$ac_ext <<_ACEOF
10721 /* end confdefs.h. */
10723 #include <signal.h>
10724 RETSIGTYPE foo() { }
10729 int mask = sigmask(SIGINT);
10730 sigset(SIGINT, foo); sigrelse(SIGINT);
10731 sighold(SIGINT); sigpause(SIGINT);
10737 rm -f conftest.$ac_objext conftest$ac_exeext
10738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10739 (eval $ac_link) 2>&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } &&
10743 { ac_try='test -s conftest$ac_exeext'
10744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10745 (eval $ac_try) 2>&5
10747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10748 (exit $ac_status); }; }; then
10749 bash_cv_signal_vintage=svr3
10751 echo "$as_me: failed program was:" >&5
10752 sed 's/^/| /' conftest.$ac_ext >&5
10754 bash_cv_signal_vintage=v7
10757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10767 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
10768 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
10769 if test "$bash_cv_signal_vintage" = posix; then
10770 cat >>confdefs.h <<\_ACEOF
10771 #define HAVE_POSIX_SIGNALS 1
10774 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
10775 cat >>confdefs.h <<\_ACEOF
10776 #define HAVE_BSD_SIGNALS 1
10779 elif test "$bash_cv_signal_vintage" = svr3; then
10780 cat >>confdefs.h <<\_ACEOF
10781 #define HAVE_USG_SIGHOLD 1
10786 echo "$as_me:$LINENO: checking for mode_t" >&5
10787 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10788 if test "${ac_cv_type_mode_t+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 cat >conftest.$ac_ext <<_ACEOF
10792 #line $LINENO "configure"
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h. */
10798 $ac_includes_default
10804 if (sizeof (mode_t))
10810 rm -f conftest.$ac_objext
10811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10812 (eval $ac_compile) 2>&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); } &&
10816 { ac_try='test -s conftest.$ac_objext'
10817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10818 (eval $ac_try) 2>&5
10820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }; }; then
10822 ac_cv_type_mode_t=yes
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10827 ac_cv_type_mode_t=no
10829 rm -f conftest.$ac_objext conftest.$ac_ext
10831 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10832 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10833 if test $ac_cv_type_mode_t = yes; then
10837 cat >>confdefs.h <<_ACEOF
10843 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
10844 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
10845 if test "${ac_cv_type_uid_t+set}" = set; then
10846 echo $ECHO_N "(cached) $ECHO_C" >&6
10848 cat >conftest.$ac_ext <<_ACEOF
10849 #line $LINENO "configure"
10852 cat confdefs.h >>conftest.$ac_ext
10853 cat >>conftest.$ac_ext <<_ACEOF
10854 /* end confdefs.h. */
10855 #include <sys/types.h>
10858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10859 $EGREP "uid_t" >/dev/null 2>&1; then
10860 ac_cv_type_uid_t=yes
10862 ac_cv_type_uid_t=no
10867 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
10868 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
10869 if test $ac_cv_type_uid_t = no; then
10871 cat >>confdefs.h <<\_ACEOF
10876 cat >>confdefs.h <<\_ACEOF
10882 echo "$as_me:$LINENO: checking for size_t" >&5
10883 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10884 if test "${ac_cv_type_size_t+set}" = set; then
10885 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 cat >conftest.$ac_ext <<_ACEOF
10888 #line $LINENO "configure"
10891 cat confdefs.h >>conftest.$ac_ext
10892 cat >>conftest.$ac_ext <<_ACEOF
10893 /* end confdefs.h. */
10894 $ac_includes_default
10900 if (sizeof (size_t))
10906 rm -f conftest.$ac_objext
10907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10908 (eval $ac_compile) 2>&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); } &&
10912 { ac_try='test -s conftest.$ac_objext'
10913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914 (eval $ac_try) 2>&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }; }; then
10918 ac_cv_type_size_t=yes
10920 echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10923 ac_cv_type_size_t=no
10925 rm -f conftest.$ac_objext conftest.$ac_ext
10927 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10928 echo "${ECHO_T}$ac_cv_type_size_t" >&6
10929 if test $ac_cv_type_size_t = yes; then
10933 cat >>confdefs.h <<_ACEOF
10934 #define size_t unsigned
10939 echo "$as_me:$LINENO: checking for pid_t" >&5
10940 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10941 if test "${ac_cv_type_pid_t+set}" = set; then
10942 echo $ECHO_N "(cached) $ECHO_C" >&6
10944 cat >conftest.$ac_ext <<_ACEOF
10945 #line $LINENO "configure"
10948 cat confdefs.h >>conftest.$ac_ext
10949 cat >>conftest.$ac_ext <<_ACEOF
10950 /* end confdefs.h. */
10951 $ac_includes_default
10957 if (sizeof (pid_t))
10963 rm -f conftest.$ac_objext
10964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10965 (eval $ac_compile) 2>&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); } &&
10969 { ac_try='test -s conftest.$ac_objext'
10970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10971 (eval $ac_try) 2>&5
10973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974 (exit $ac_status); }; }; then
10975 ac_cv_type_pid_t=yes
10977 echo "$as_me: failed program was:" >&5
10978 sed 's/^/| /' conftest.$ac_ext >&5
10980 ac_cv_type_pid_t=no
10982 rm -f conftest.$ac_objext conftest.$ac_ext
10984 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10985 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10986 if test $ac_cv_type_pid_t = yes; then
10990 cat >>confdefs.h <<_ACEOF
10996 echo "$as_me:$LINENO: checking for off_t" >&5
10997 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10998 if test "${ac_cv_type_off_t+set}" = set; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 cat >conftest.$ac_ext <<_ACEOF
11002 #line $LINENO "configure"
11005 cat confdefs.h >>conftest.$ac_ext
11006 cat >>conftest.$ac_ext <<_ACEOF
11007 /* end confdefs.h. */
11008 $ac_includes_default
11014 if (sizeof (off_t))
11020 rm -f conftest.$ac_objext
11021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11022 (eval $ac_compile) 2>&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } &&
11026 { ac_try='test -s conftest.$ac_objext'
11027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11028 (eval $ac_try) 2>&5
11030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11031 (exit $ac_status); }; }; then
11032 ac_cv_type_off_t=yes
11034 echo "$as_me: failed program was:" >&5
11035 sed 's/^/| /' conftest.$ac_ext >&5
11037 ac_cv_type_off_t=no
11039 rm -f conftest.$ac_objext conftest.$ac_ext
11041 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11042 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11043 if test $ac_cv_type_off_t = yes; then
11047 cat >>confdefs.h <<_ACEOF
11053 echo "$as_me:$LINENO: checking for ino_t" >&5
11054 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11055 if test "${ac_cv_type_ino_t+set}" = set; then
11056 echo $ECHO_N "(cached) $ECHO_C" >&6
11058 cat >conftest.$ac_ext <<_ACEOF
11059 #line $LINENO "configure"
11062 cat confdefs.h >>conftest.$ac_ext
11063 cat >>conftest.$ac_ext <<_ACEOF
11064 /* end confdefs.h. */
11065 $ac_includes_default
11071 if (sizeof (ino_t))
11077 rm -f conftest.$ac_objext
11078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11079 (eval $ac_compile) 2>&5
11081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); } &&
11083 { ac_try='test -s conftest.$ac_objext'
11084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11085 (eval $ac_try) 2>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); }; }; then
11089 ac_cv_type_ino_t=yes
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.$ac_ext >&5
11094 ac_cv_type_ino_t=no
11096 rm -f conftest.$ac_objext conftest.$ac_ext
11098 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11099 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11100 if test $ac_cv_type_ino_t = yes; then
11104 cat >>confdefs.h <<_ACEOF
11105 #define ino_t unsigned long
11110 echo "$as_me:$LINENO: checking for dev_t" >&5
11111 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11112 if test "${ac_cv_type_dev_t+set}" = set; then
11113 echo $ECHO_N "(cached) $ECHO_C" >&6
11115 cat >conftest.$ac_ext <<_ACEOF
11116 #line $LINENO "configure"
11119 cat confdefs.h >>conftest.$ac_ext
11120 cat >>conftest.$ac_ext <<_ACEOF
11121 /* end confdefs.h. */
11122 $ac_includes_default
11128 if (sizeof (dev_t))
11134 rm -f conftest.$ac_objext
11135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11136 (eval $ac_compile) 2>&5
11138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11139 (exit $ac_status); } &&
11140 { ac_try='test -s conftest.$ac_objext'
11141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11142 (eval $ac_try) 2>&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); }; }; then
11146 ac_cv_type_dev_t=yes
11148 echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.$ac_ext >&5
11151 ac_cv_type_dev_t=no
11153 rm -f conftest.$ac_objext conftest.$ac_ext
11155 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11156 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11157 if test $ac_cv_type_dev_t = yes; then
11161 cat >>confdefs.h <<_ACEOF
11162 #define dev_t unsigned long
11167 echo "$as_me:$LINENO: checking for daddr_t" >&5
11168 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11169 if test "${ac_cv_type_daddr_t+set}" = set; then
11170 echo $ECHO_N "(cached) $ECHO_C" >&6
11172 cat >conftest.$ac_ext <<_ACEOF
11173 #line $LINENO "configure"
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h. */
11179 $ac_includes_default
11185 if (sizeof (daddr_t))
11191 rm -f conftest.$ac_objext
11192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11193 (eval $ac_compile) 2>&5
11195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11196 (exit $ac_status); } &&
11197 { ac_try='test -s conftest.$ac_objext'
11198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11199 (eval $ac_try) 2>&5
11201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); }; }; then
11203 ac_cv_type_daddr_t=yes
11205 echo "$as_me: failed program was:" >&5
11206 sed 's/^/| /' conftest.$ac_ext >&5
11208 ac_cv_type_daddr_t=no
11210 rm -f conftest.$ac_objext conftest.$ac_ext
11212 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11213 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11214 if test $ac_cv_type_daddr_t = yes; then
11218 cat >>confdefs.h <<_ACEOF
11219 #define daddr_t long
11224 echo "$as_me:$LINENO: checking for major_t" >&5
11225 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11226 if test "${ac_cv_type_major_t+set}" = set; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11229 cat >conftest.$ac_ext <<_ACEOF
11230 #line $LINENO "configure"
11233 cat confdefs.h >>conftest.$ac_ext
11234 cat >>conftest.$ac_ext <<_ACEOF
11235 /* end confdefs.h. */
11236 $ac_includes_default
11242 if (sizeof (major_t))
11248 rm -f conftest.$ac_objext
11249 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11250 (eval $ac_compile) 2>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } &&
11254 { ac_try='test -s conftest.$ac_objext'
11255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11256 (eval $ac_try) 2>&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); }; }; then
11260 ac_cv_type_major_t=yes
11262 echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11265 ac_cv_type_major_t=no
11267 rm -f conftest.$ac_objext conftest.$ac_ext
11269 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11270 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11271 if test $ac_cv_type_major_t = yes; then
11275 cat >>confdefs.h <<_ACEOF
11276 #define major_t int
11281 echo "$as_me:$LINENO: checking for minor_t" >&5
11282 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11283 if test "${ac_cv_type_minor_t+set}" = set; then
11284 echo $ECHO_N "(cached) $ECHO_C" >&6
11286 cat >conftest.$ac_ext <<_ACEOF
11287 #line $LINENO "configure"
11290 cat confdefs.h >>conftest.$ac_ext
11291 cat >>conftest.$ac_ext <<_ACEOF
11292 /* end confdefs.h. */
11293 $ac_includes_default
11299 if (sizeof (minor_t))
11305 rm -f conftest.$ac_objext
11306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11307 (eval $ac_compile) 2>&5
11309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11310 (exit $ac_status); } &&
11311 { ac_try='test -s conftest.$ac_objext'
11312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11313 (eval $ac_try) 2>&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); }; }; then
11317 ac_cv_type_minor_t=yes
11319 echo "$as_me: failed program was:" >&5
11320 sed 's/^/| /' conftest.$ac_ext >&5
11322 ac_cv_type_minor_t=no
11324 rm -f conftest.$ac_objext conftest.$ac_ext
11326 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11327 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11328 if test $ac_cv_type_minor_t = yes; then
11332 cat >>confdefs.h <<_ACEOF
11333 #define minor_t int
11338 echo "$as_me:$LINENO: checking for ssize_t" >&5
11339 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11340 if test "${ac_cv_type_ssize_t+set}" = set; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11343 cat >conftest.$ac_ext <<_ACEOF
11344 #line $LINENO "configure"
11347 cat confdefs.h >>conftest.$ac_ext
11348 cat >>conftest.$ac_ext <<_ACEOF
11349 /* end confdefs.h. */
11350 $ac_includes_default
11356 if (sizeof (ssize_t))
11362 rm -f conftest.$ac_objext
11363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11364 (eval $ac_compile) 2>&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); } &&
11368 { ac_try='test -s conftest.$ac_objext'
11369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11370 (eval $ac_try) 2>&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); }; }; then
11374 ac_cv_type_ssize_t=yes
11376 echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.$ac_ext >&5
11379 ac_cv_type_ssize_t=no
11381 rm -f conftest.$ac_objext conftest.$ac_ext
11383 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11384 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11385 if test $ac_cv_type_ssize_t = yes; then
11389 cat >>confdefs.h <<_ACEOF
11390 #define ssize_t int
11395 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11396 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11397 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11398 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 cat >conftest.$ac_ext <<_ACEOF
11401 #line $LINENO "configure"
11404 cat confdefs.h >>conftest.$ac_ext
11405 cat >>conftest.$ac_ext <<_ACEOF
11406 /* end confdefs.h. */
11407 $ac_includes_default
11411 static struct stat ac_aggr;
11412 if (ac_aggr.st_blocks)
11418 rm -f conftest.$ac_objext
11419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11420 (eval $ac_compile) 2>&5
11422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11423 (exit $ac_status); } &&
11424 { ac_try='test -s conftest.$ac_objext'
11425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11426 (eval $ac_try) 2>&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); }; }; then
11430 ac_cv_member_struct_stat_st_blocks=yes
11432 echo "$as_me: failed program was:" >&5
11433 sed 's/^/| /' conftest.$ac_ext >&5
11435 cat >conftest.$ac_ext <<_ACEOF
11436 #line $LINENO "configure"
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h. */
11442 $ac_includes_default
11446 static struct stat ac_aggr;
11447 if (sizeof ac_aggr.st_blocks)
11453 rm -f conftest.$ac_objext
11454 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11455 (eval $ac_compile) 2>&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } &&
11459 { ac_try='test -s conftest.$ac_objext'
11460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11461 (eval $ac_try) 2>&5
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); }; }; then
11465 ac_cv_member_struct_stat_st_blocks=yes
11467 echo "$as_me: failed program was:" >&5
11468 sed 's/^/| /' conftest.$ac_ext >&5
11470 ac_cv_member_struct_stat_st_blocks=no
11472 rm -f conftest.$ac_objext conftest.$ac_ext
11474 rm -f conftest.$ac_objext conftest.$ac_ext
11476 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11477 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11478 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11480 cat >>confdefs.h <<_ACEOF
11481 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11485 cat >>confdefs.h <<\_ACEOF
11486 #define HAVE_ST_BLOCKS 1
11490 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11495 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11496 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11497 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11498 echo $ECHO_N "(cached) $ECHO_C" >&6
11500 cat >conftest.$ac_ext <<_ACEOF
11501 #line $LINENO "configure"
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h. */
11507 $ac_includes_default
11511 static struct stat ac_aggr;
11512 if (ac_aggr.st_rdev)
11518 rm -f conftest.$ac_objext
11519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11520 (eval $ac_compile) 2>&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } &&
11524 { ac_try='test -s conftest.$ac_objext'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; }; then
11530 ac_cv_member_struct_stat_st_rdev=yes
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11535 cat >conftest.$ac_ext <<_ACEOF
11536 #line $LINENO "configure"
11539 cat confdefs.h >>conftest.$ac_ext
11540 cat >>conftest.$ac_ext <<_ACEOF
11541 /* end confdefs.h. */
11542 $ac_includes_default
11546 static struct stat ac_aggr;
11547 if (sizeof ac_aggr.st_rdev)
11553 rm -f conftest.$ac_objext
11554 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11555 (eval $ac_compile) 2>&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } &&
11559 { ac_try='test -s conftest.$ac_objext'
11560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11561 (eval $ac_try) 2>&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; }; then
11565 ac_cv_member_struct_stat_st_rdev=yes
11567 echo "$as_me: failed program was:" >&5
11568 sed 's/^/| /' conftest.$ac_ext >&5
11570 ac_cv_member_struct_stat_st_rdev=no
11572 rm -f conftest.$ac_objext conftest.$ac_ext
11574 rm -f conftest.$ac_objext conftest.$ac_ext
11576 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
11577 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
11578 if test $ac_cv_member_struct_stat_st_rdev = yes; then
11580 cat >>confdefs.h <<_ACEOF
11581 #define HAVE_STRUCT_STAT_ST_RDEV 1
11585 cat >>confdefs.h <<\_ACEOF
11586 #define HAVE_ST_RDEV 1
11592 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11593 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11594 if test "${ac_cv_struct_tm+set}" = set; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11597 cat >conftest.$ac_ext <<_ACEOF
11598 #line $LINENO "configure"
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11604 #include <sys/types.h>
11610 struct tm *tp; tp->tm_sec;
11615 rm -f conftest.$ac_objext
11616 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11617 (eval $ac_compile) 2>&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); } &&
11621 { ac_try='test -s conftest.$ac_objext'
11622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11623 (eval $ac_try) 2>&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); }; }; then
11627 ac_cv_struct_tm=time.h
11629 echo "$as_me: failed program was:" >&5
11630 sed 's/^/| /' conftest.$ac_ext >&5
11632 ac_cv_struct_tm=sys/time.h
11634 rm -f conftest.$ac_objext conftest.$ac_ext
11636 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11637 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11638 if test $ac_cv_struct_tm = sys/time.h; then
11640 cat >>confdefs.h <<\_ACEOF
11641 #define TM_IN_SYS_TIME 1
11646 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11647 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11648 if test "${ac_cv_c_const+set}" = set; then
11649 echo $ECHO_N "(cached) $ECHO_C" >&6
11651 cat >conftest.$ac_ext <<_ACEOF
11652 #line $LINENO "configure"
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h. */
11662 /* FIXME: Include the comments suggested by Paul. */
11663 #ifndef __cplusplus
11664 /* Ultrix mips cc rejects this. */
11665 typedef int charset[2];
11667 /* SunOS 4.1.1 cc rejects this. */
11668 char const *const *ccp;
11670 /* NEC SVR4.0.2 mips cc rejects this. */
11671 struct point {int x, y;};
11672 static struct point const zero = {0,0};
11673 /* AIX XL C 1.02.0.0 rejects this.
11674 It does not let you subtract one const X* pointer from another in
11675 an arm of an if-expression whose if-part is not a constant
11677 const char *g = "string";
11678 ccp = &g + (g ? g-g : 0);
11679 /* HPUX 7.0 cc rejects these. */
11682 ccp = (char const *const *) p;
11683 { /* SCO 3.2v4 cc rejects this. */
11685 char const *s = 0 ? (char *) 0 : (char const *) 0;
11689 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11690 int x[] = {25, 17};
11691 const int *foo = &x[0];
11694 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11695 typedef const int *iptr;
11699 { /* AIX XL C 1.02.0.0 rejects this saying
11700 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11701 struct s { int j; const int *ap[3]; };
11702 struct s *b; b->j = 5;
11704 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11705 const int foo = 10;
11713 rm -f conftest.$ac_objext
11714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11715 (eval $ac_compile) 2>&5
11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718 (exit $ac_status); } &&
11719 { ac_try='test -s conftest.$ac_objext'
11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721 (eval $ac_try) 2>&5
11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724 (exit $ac_status); }; }; then
11727 echo "$as_me: failed program was:" >&5
11728 sed 's/^/| /' conftest.$ac_ext >&5
11732 rm -f conftest.$ac_objext conftest.$ac_ext
11734 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11735 echo "${ECHO_T}$ac_cv_c_const" >&6
11736 if test $ac_cv_c_const = no; then
11738 cat >>confdefs.h <<\_ACEOF
11746 echo "$as_me:$LINENO: checking for char" >&5
11747 echo $ECHO_N "checking for char... $ECHO_C" >&6
11748 if test "${ac_cv_type_char+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11751 cat >conftest.$ac_ext <<_ACEOF
11752 #line $LINENO "configure"
11755 cat confdefs.h >>conftest.$ac_ext
11756 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */
11758 $ac_includes_default
11770 rm -f conftest.$ac_objext
11771 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11772 (eval $ac_compile) 2>&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } &&
11776 { ac_try='test -s conftest.$ac_objext'
11777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11778 (eval $ac_try) 2>&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; }; then
11782 ac_cv_type_char=yes
11784 echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11789 rm -f conftest.$ac_objext conftest.$ac_ext
11791 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
11792 echo "${ECHO_T}$ac_cv_type_char" >&6
11794 echo "$as_me:$LINENO: checking size of char" >&5
11795 echo $ECHO_N "checking size of char... $ECHO_C" >&6
11796 if test "${ac_cv_sizeof_char+set}" = set; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11799 if test "$ac_cv_type_char" = yes; then
11800 # The cast to unsigned long works around a bug in the HP C Compiler
11801 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11802 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11803 # This bug is HP SR number 8606223364.
11804 if test "$cross_compiling" = yes; then
11805 # Depending upon the size, compute the lo and hi bounds.
11806 cat >conftest.$ac_ext <<_ACEOF
11807 #line $LINENO "configure"
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h. */
11813 $ac_includes_default
11817 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
11824 rm -f conftest.$ac_objext
11825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11826 (eval $ac_compile) 2>&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); } &&
11830 { ac_try='test -s conftest.$ac_objext'
11831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11832 (eval $ac_try) 2>&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); }; }; then
11838 cat >conftest.$ac_ext <<_ACEOF
11839 #line $LINENO "configure"
11842 cat confdefs.h >>conftest.$ac_ext
11843 cat >>conftest.$ac_ext <<_ACEOF
11844 /* end confdefs.h. */
11845 $ac_includes_default
11849 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11856 rm -f conftest.$ac_objext
11857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11858 (eval $ac_compile) 2>&5
11860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
11862 { ac_try='test -s conftest.$ac_objext'
11863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11864 (eval $ac_try) 2>&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); }; }; then
11868 ac_hi=$ac_mid; break
11870 echo "$as_me: failed program was:" >&5
11871 sed 's/^/| /' conftest.$ac_ext >&5
11873 ac_lo=`expr $ac_mid + 1`
11874 if test $ac_lo -le $ac_mid; then
11878 ac_mid=`expr 2 '*' $ac_mid + 1`
11880 rm -f conftest.$ac_objext conftest.$ac_ext
11883 echo "$as_me: failed program was:" >&5
11884 sed 's/^/| /' conftest.$ac_ext >&5
11886 cat >conftest.$ac_ext <<_ACEOF
11887 #line $LINENO "configure"
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h. */
11893 $ac_includes_default
11897 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
11904 rm -f conftest.$ac_objext
11905 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11906 (eval $ac_compile) 2>&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } &&
11910 { ac_try='test -s conftest.$ac_objext'
11911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11912 (eval $ac_try) 2>&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); }; }; then
11918 cat >conftest.$ac_ext <<_ACEOF
11919 #line $LINENO "configure"
11922 cat confdefs.h >>conftest.$ac_ext
11923 cat >>conftest.$ac_ext <<_ACEOF
11924 /* end confdefs.h. */
11925 $ac_includes_default
11929 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
11936 rm -f conftest.$ac_objext
11937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11938 (eval $ac_compile) 2>&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } &&
11942 { ac_try='test -s conftest.$ac_objext'
11943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11944 (eval $ac_try) 2>&5
11946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11947 (exit $ac_status); }; }; then
11948 ac_lo=$ac_mid; break
11950 echo "$as_me: failed program was:" >&5
11951 sed 's/^/| /' conftest.$ac_ext >&5
11953 ac_hi=`expr '(' $ac_mid ')' - 1`
11954 if test $ac_mid -le $ac_hi; then
11958 ac_mid=`expr 2 '*' $ac_mid`
11960 rm -f conftest.$ac_objext conftest.$ac_ext
11963 echo "$as_me: failed program was:" >&5
11964 sed 's/^/| /' conftest.$ac_ext >&5
11968 rm -f conftest.$ac_objext conftest.$ac_ext
11970 rm -f conftest.$ac_objext conftest.$ac_ext
11971 # Binary search between lo and hi bounds.
11972 while test "x$ac_lo" != "x$ac_hi"; do
11973 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
11974 cat >conftest.$ac_ext <<_ACEOF
11975 #line $LINENO "configure"
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11981 $ac_includes_default
11985 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
11992 rm -f conftest.$ac_objext
11993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11994 (eval $ac_compile) 2>&5
11996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997 (exit $ac_status); } &&
11998 { ac_try='test -s conftest.$ac_objext'
11999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12000 (eval $ac_try) 2>&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); }; }; then
12006 echo "$as_me: failed program was:" >&5
12007 sed 's/^/| /' conftest.$ac_ext >&5
12009 ac_lo=`expr '(' $ac_mid ')' + 1`
12011 rm -f conftest.$ac_objext conftest.$ac_ext
12014 ?*) ac_cv_sizeof_char=$ac_lo;;
12015 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12016 See \`config.log' for more details." >&5
12017 echo "$as_me: error: cannot compute sizeof (char), 77
12018 See \`config.log' for more details." >&2;}
12019 { (exit 1); exit 1; }; } ;;
12022 if test "$cross_compiling" = yes; then
12023 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12024 See \`config.log' for more details." >&5
12025 echo "$as_me: error: cannot run test program while cross compiling
12026 See \`config.log' for more details." >&2;}
12027 { (exit 1); exit 1; }; }
12029 cat >conftest.$ac_ext <<_ACEOF
12030 #line $LINENO "configure"
12033 cat confdefs.h >>conftest.$ac_ext
12034 cat >>conftest.$ac_ext <<_ACEOF
12035 /* end confdefs.h. */
12036 $ac_includes_default
12037 long longval () { return (long) (sizeof (char)); }
12038 unsigned long ulongval () { return (long) (sizeof (char)); }
12040 #include <stdlib.h>
12045 FILE *f = fopen ("conftest.val", "w");
12048 if (((long) (sizeof (char))) < 0)
12050 long i = longval ();
12051 if (i != ((long) (sizeof (char))))
12053 fprintf (f, "%ld\n", i);
12057 unsigned long i = ulongval ();
12058 if (i != ((long) (sizeof (char))))
12060 fprintf (f, "%lu\n", i);
12062 exit (ferror (f) || fclose (f) != 0);
12068 rm -f conftest$ac_exeext
12069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12070 (eval $ac_link) 2>&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12075 (eval $ac_try) 2>&5
12077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12078 (exit $ac_status); }; }; then
12079 ac_cv_sizeof_char=`cat conftest.val`
12081 echo "$as_me: program exited with status $ac_status" >&5
12082 echo "$as_me: failed program was:" >&5
12083 sed 's/^/| /' conftest.$ac_ext >&5
12085 ( exit $ac_status )
12086 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12087 See \`config.log' for more details." >&5
12088 echo "$as_me: error: cannot compute sizeof (char), 77
12089 See \`config.log' for more details." >&2;}
12090 { (exit 1); exit 1; }; }
12092 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12097 ac_cv_sizeof_char=0
12100 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12101 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12102 cat >>confdefs.h <<_ACEOF
12103 #define SIZEOF_CHAR $ac_cv_sizeof_char
12107 echo "$as_me:$LINENO: checking for short int" >&5
12108 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12109 if test "${ac_cv_type_short_int+set}" = set; then
12110 echo $ECHO_N "(cached) $ECHO_C" >&6
12112 cat >conftest.$ac_ext <<_ACEOF
12113 #line $LINENO "configure"
12116 cat confdefs.h >>conftest.$ac_ext
12117 cat >>conftest.$ac_ext <<_ACEOF
12118 /* end confdefs.h. */
12119 $ac_includes_default
12123 if ((short int *) 0)
12125 if (sizeof (short int))
12131 rm -f conftest.$ac_objext
12132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12133 (eval $ac_compile) 2>&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } &&
12137 { ac_try='test -s conftest.$ac_objext'
12138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12139 (eval $ac_try) 2>&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); }; }; then
12143 ac_cv_type_short_int=yes
12145 echo "$as_me: failed program was:" >&5
12146 sed 's/^/| /' conftest.$ac_ext >&5
12148 ac_cv_type_short_int=no
12150 rm -f conftest.$ac_objext conftest.$ac_ext
12152 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12153 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12155 echo "$as_me:$LINENO: checking size of short int" >&5
12156 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12157 if test "${ac_cv_sizeof_short_int+set}" = set; then
12158 echo $ECHO_N "(cached) $ECHO_C" >&6
12160 if test "$ac_cv_type_short_int" = yes; then
12161 # The cast to unsigned long works around a bug in the HP C Compiler
12162 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12163 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12164 # This bug is HP SR number 8606223364.
12165 if test "$cross_compiling" = yes; then
12166 # Depending upon the size, compute the lo and hi bounds.
12167 cat >conftest.$ac_ext <<_ACEOF
12168 #line $LINENO "configure"
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 $ac_includes_default
12178 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12185 rm -f conftest.$ac_objext
12186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12187 (eval $ac_compile) 2>&5
12189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12190 (exit $ac_status); } &&
12191 { ac_try='test -s conftest.$ac_objext'
12192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12193 (eval $ac_try) 2>&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); }; }; then
12199 cat >conftest.$ac_ext <<_ACEOF
12200 #line $LINENO "configure"
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h. */
12206 $ac_includes_default
12210 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12217 rm -f conftest.$ac_objext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12219 (eval $ac_compile) 2>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } &&
12223 { ac_try='test -s conftest.$ac_objext'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 ac_hi=$ac_mid; break
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12234 ac_lo=`expr $ac_mid + 1`
12235 if test $ac_lo -le $ac_mid; then
12239 ac_mid=`expr 2 '*' $ac_mid + 1`
12241 rm -f conftest.$ac_objext conftest.$ac_ext
12244 echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.$ac_ext >&5
12247 cat >conftest.$ac_ext <<_ACEOF
12248 #line $LINENO "configure"
12251 cat confdefs.h >>conftest.$ac_ext
12252 cat >>conftest.$ac_ext <<_ACEOF
12253 /* end confdefs.h. */
12254 $ac_includes_default
12258 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12265 rm -f conftest.$ac_objext
12266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12267 (eval $ac_compile) 2>&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } &&
12271 { ac_try='test -s conftest.$ac_objext'
12272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12273 (eval $ac_try) 2>&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); }; }; then
12279 cat >conftest.$ac_ext <<_ACEOF
12280 #line $LINENO "configure"
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286 $ac_includes_default
12290 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12297 rm -f conftest.$ac_objext
12298 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12299 (eval $ac_compile) 2>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } &&
12303 { ac_try='test -s conftest.$ac_objext'
12304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12305 (eval $ac_try) 2>&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; }; then
12309 ac_lo=$ac_mid; break
12311 echo "$as_me: failed program was:" >&5
12312 sed 's/^/| /' conftest.$ac_ext >&5
12314 ac_hi=`expr '(' $ac_mid ')' - 1`
12315 if test $ac_mid -le $ac_hi; then
12319 ac_mid=`expr 2 '*' $ac_mid`
12321 rm -f conftest.$ac_objext conftest.$ac_ext
12324 echo "$as_me: failed program was:" >&5
12325 sed 's/^/| /' conftest.$ac_ext >&5
12329 rm -f conftest.$ac_objext conftest.$ac_ext
12331 rm -f conftest.$ac_objext conftest.$ac_ext
12332 # Binary search between lo and hi bounds.
12333 while test "x$ac_lo" != "x$ac_hi"; do
12334 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12335 cat >conftest.$ac_ext <<_ACEOF
12336 #line $LINENO "configure"
12339 cat confdefs.h >>conftest.$ac_ext
12340 cat >>conftest.$ac_ext <<_ACEOF
12341 /* end confdefs.h. */
12342 $ac_includes_default
12346 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12353 rm -f conftest.$ac_objext
12354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12355 (eval $ac_compile) 2>&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } &&
12359 { ac_try='test -s conftest.$ac_objext'
12360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361 (eval $ac_try) 2>&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); }; }; then
12367 echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12370 ac_lo=`expr '(' $ac_mid ')' + 1`
12372 rm -f conftest.$ac_objext conftest.$ac_ext
12375 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12376 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12377 See \`config.log' for more details." >&5
12378 echo "$as_me: error: cannot compute sizeof (short int), 77
12379 See \`config.log' for more details." >&2;}
12380 { (exit 1); exit 1; }; } ;;
12383 if test "$cross_compiling" = yes; then
12384 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12385 See \`config.log' for more details." >&5
12386 echo "$as_me: error: cannot run test program while cross compiling
12387 See \`config.log' for more details." >&2;}
12388 { (exit 1); exit 1; }; }
12390 cat >conftest.$ac_ext <<_ACEOF
12391 #line $LINENO "configure"
12394 cat confdefs.h >>conftest.$ac_ext
12395 cat >>conftest.$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12397 $ac_includes_default
12398 long longval () { return (long) (sizeof (short int)); }
12399 unsigned long ulongval () { return (long) (sizeof (short int)); }
12401 #include <stdlib.h>
12406 FILE *f = fopen ("conftest.val", "w");
12409 if (((long) (sizeof (short int))) < 0)
12411 long i = longval ();
12412 if (i != ((long) (sizeof (short int))))
12414 fprintf (f, "%ld\n", i);
12418 unsigned long i = ulongval ();
12419 if (i != ((long) (sizeof (short int))))
12421 fprintf (f, "%lu\n", i);
12423 exit (ferror (f) || fclose (f) != 0);
12429 rm -f conftest$ac_exeext
12430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12431 (eval $ac_link) 2>&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; }; then
12440 ac_cv_sizeof_short_int=`cat conftest.val`
12442 echo "$as_me: program exited with status $ac_status" >&5
12443 echo "$as_me: failed program was:" >&5
12444 sed 's/^/| /' conftest.$ac_ext >&5
12446 ( exit $ac_status )
12447 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12448 See \`config.log' for more details." >&5
12449 echo "$as_me: error: cannot compute sizeof (short int), 77
12450 See \`config.log' for more details." >&2;}
12451 { (exit 1); exit 1; }; }
12453 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12458 ac_cv_sizeof_short_int=0
12461 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12462 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12463 cat >>confdefs.h <<_ACEOF
12464 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12468 echo "$as_me:$LINENO: checking for int" >&5
12469 echo $ECHO_N "checking for int... $ECHO_C" >&6
12470 if test "${ac_cv_type_int+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12473 cat >conftest.$ac_ext <<_ACEOF
12474 #line $LINENO "configure"
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h. */
12480 $ac_includes_default
12492 rm -f conftest.$ac_objext
12493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12494 (eval $ac_compile) 2>&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); } &&
12498 { ac_try='test -s conftest.$ac_objext'
12499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12500 (eval $ac_try) 2>&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); }; }; then
12506 echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12511 rm -f conftest.$ac_objext conftest.$ac_ext
12513 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12514 echo "${ECHO_T}$ac_cv_type_int" >&6
12516 echo "$as_me:$LINENO: checking size of int" >&5
12517 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12518 if test "${ac_cv_sizeof_int+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12521 if test "$ac_cv_type_int" = yes; then
12522 # The cast to unsigned long works around a bug in the HP C Compiler
12523 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12524 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12525 # This bug is HP SR number 8606223364.
12526 if test "$cross_compiling" = yes; then
12527 # Depending upon the size, compute the lo and hi bounds.
12528 cat >conftest.$ac_ext <<_ACEOF
12529 #line $LINENO "configure"
12532 cat confdefs.h >>conftest.$ac_ext
12533 cat >>conftest.$ac_ext <<_ACEOF
12534 /* end confdefs.h. */
12535 $ac_includes_default
12539 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12546 rm -f conftest.$ac_objext
12547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12548 (eval $ac_compile) 2>&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } &&
12552 { ac_try='test -s conftest.$ac_objext'
12553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554 (eval $ac_try) 2>&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); }; }; then
12560 cat >conftest.$ac_ext <<_ACEOF
12561 #line $LINENO "configure"
12564 cat confdefs.h >>conftest.$ac_ext
12565 cat >>conftest.$ac_ext <<_ACEOF
12566 /* end confdefs.h. */
12567 $ac_includes_default
12571 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12578 rm -f conftest.$ac_objext
12579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12580 (eval $ac_compile) 2>&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } &&
12584 { ac_try='test -s conftest.$ac_objext'
12585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586 (eval $ac_try) 2>&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; }; then
12590 ac_hi=$ac_mid; break
12592 echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12595 ac_lo=`expr $ac_mid + 1`
12596 if test $ac_lo -le $ac_mid; then
12600 ac_mid=`expr 2 '*' $ac_mid + 1`
12602 rm -f conftest.$ac_objext conftest.$ac_ext
12605 echo "$as_me: failed program was:" >&5
12606 sed 's/^/| /' conftest.$ac_ext >&5
12608 cat >conftest.$ac_ext <<_ACEOF
12609 #line $LINENO "configure"
12612 cat confdefs.h >>conftest.$ac_ext
12613 cat >>conftest.$ac_ext <<_ACEOF
12614 /* end confdefs.h. */
12615 $ac_includes_default
12619 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12626 rm -f conftest.$ac_objext
12627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12628 (eval $ac_compile) 2>&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); } &&
12632 { ac_try='test -s conftest.$ac_objext'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; }; then
12640 cat >conftest.$ac_ext <<_ACEOF
12641 #line $LINENO "configure"
12644 cat confdefs.h >>conftest.$ac_ext
12645 cat >>conftest.$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12647 $ac_includes_default
12651 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12658 rm -f conftest.$ac_objext
12659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12660 (eval $ac_compile) 2>&5
12662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663 (exit $ac_status); } &&
12664 { ac_try='test -s conftest.$ac_objext'
12665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12666 (eval $ac_try) 2>&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); }; }; then
12670 ac_lo=$ac_mid; break
12672 echo "$as_me: failed program was:" >&5
12673 sed 's/^/| /' conftest.$ac_ext >&5
12675 ac_hi=`expr '(' $ac_mid ')' - 1`
12676 if test $ac_mid -le $ac_hi; then
12680 ac_mid=`expr 2 '*' $ac_mid`
12682 rm -f conftest.$ac_objext conftest.$ac_ext
12685 echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12690 rm -f conftest.$ac_objext conftest.$ac_ext
12692 rm -f conftest.$ac_objext conftest.$ac_ext
12693 # Binary search between lo and hi bounds.
12694 while test "x$ac_lo" != "x$ac_hi"; do
12695 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12696 cat >conftest.$ac_ext <<_ACEOF
12697 #line $LINENO "configure"
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h. */
12703 $ac_includes_default
12707 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12714 rm -f conftest.$ac_objext
12715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12716 (eval $ac_compile) 2>&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); } &&
12720 { ac_try='test -s conftest.$ac_objext'
12721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12722 (eval $ac_try) 2>&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); }; }; then
12728 echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.$ac_ext >&5
12731 ac_lo=`expr '(' $ac_mid ')' + 1`
12733 rm -f conftest.$ac_objext conftest.$ac_ext
12736 ?*) ac_cv_sizeof_int=$ac_lo;;
12737 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12738 See \`config.log' for more details." >&5
12739 echo "$as_me: error: cannot compute sizeof (int), 77
12740 See \`config.log' for more details." >&2;}
12741 { (exit 1); exit 1; }; } ;;
12744 if test "$cross_compiling" = yes; then
12745 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12746 See \`config.log' for more details." >&5
12747 echo "$as_me: error: cannot run test program while cross compiling
12748 See \`config.log' for more details." >&2;}
12749 { (exit 1); exit 1; }; }
12751 cat >conftest.$ac_ext <<_ACEOF
12752 #line $LINENO "configure"
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h. */
12758 $ac_includes_default
12759 long longval () { return (long) (sizeof (int)); }
12760 unsigned long ulongval () { return (long) (sizeof (int)); }
12762 #include <stdlib.h>
12767 FILE *f = fopen ("conftest.val", "w");
12770 if (((long) (sizeof (int))) < 0)
12772 long i = longval ();
12773 if (i != ((long) (sizeof (int))))
12775 fprintf (f, "%ld\n", i);
12779 unsigned long i = ulongval ();
12780 if (i != ((long) (sizeof (int))))
12782 fprintf (f, "%lu\n", i);
12784 exit (ferror (f) || fclose (f) != 0);
12790 rm -f conftest$ac_exeext
12791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12792 (eval $ac_link) 2>&5
12794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12795 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12797 (eval $ac_try) 2>&5
12799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12800 (exit $ac_status); }; }; then
12801 ac_cv_sizeof_int=`cat conftest.val`
12803 echo "$as_me: program exited with status $ac_status" >&5
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12807 ( exit $ac_status )
12808 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
12809 See \`config.log' for more details." >&5
12810 echo "$as_me: error: cannot compute sizeof (int), 77
12811 See \`config.log' for more details." >&2;}
12812 { (exit 1); exit 1; }; }
12814 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12822 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
12823 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
12824 cat >>confdefs.h <<_ACEOF
12825 #define SIZEOF_INT $ac_cv_sizeof_int
12829 echo "$as_me:$LINENO: checking for long int" >&5
12830 echo $ECHO_N "checking for long int... $ECHO_C" >&6
12831 if test "${ac_cv_type_long_int+set}" = set; then
12832 echo $ECHO_N "(cached) $ECHO_C" >&6
12834 cat >conftest.$ac_ext <<_ACEOF
12835 #line $LINENO "configure"
12838 cat confdefs.h >>conftest.$ac_ext
12839 cat >>conftest.$ac_ext <<_ACEOF
12840 /* end confdefs.h. */
12841 $ac_includes_default
12845 if ((long int *) 0)
12847 if (sizeof (long int))
12853 rm -f conftest.$ac_objext
12854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12855 (eval $ac_compile) 2>&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); } &&
12859 { ac_try='test -s conftest.$ac_objext'
12860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12861 (eval $ac_try) 2>&5
12863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12864 (exit $ac_status); }; }; then
12865 ac_cv_type_long_int=yes
12867 echo "$as_me: failed program was:" >&5
12868 sed 's/^/| /' conftest.$ac_ext >&5
12870 ac_cv_type_long_int=no
12872 rm -f conftest.$ac_objext conftest.$ac_ext
12874 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
12875 echo "${ECHO_T}$ac_cv_type_long_int" >&6
12877 echo "$as_me:$LINENO: checking size of long int" >&5
12878 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
12879 if test "${ac_cv_sizeof_long_int+set}" = set; then
12880 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 if test "$ac_cv_type_long_int" = yes; then
12883 # The cast to unsigned long works around a bug in the HP C Compiler
12884 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12885 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12886 # This bug is HP SR number 8606223364.
12887 if test "$cross_compiling" = yes; then
12888 # Depending upon the size, compute the lo and hi bounds.
12889 cat >conftest.$ac_ext <<_ACEOF
12890 #line $LINENO "configure"
12893 cat confdefs.h >>conftest.$ac_ext
12894 cat >>conftest.$ac_ext <<_ACEOF
12895 /* end confdefs.h. */
12896 $ac_includes_default
12900 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
12907 rm -f conftest.$ac_objext
12908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12909 (eval $ac_compile) 2>&5
12911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12912 (exit $ac_status); } &&
12913 { ac_try='test -s conftest.$ac_objext'
12914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12915 (eval $ac_try) 2>&5
12917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12918 (exit $ac_status); }; }; then
12921 cat >conftest.$ac_ext <<_ACEOF
12922 #line $LINENO "configure"
12925 cat confdefs.h >>conftest.$ac_ext
12926 cat >>conftest.$ac_ext <<_ACEOF
12927 /* end confdefs.h. */
12928 $ac_includes_default
12932 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
12939 rm -f conftest.$ac_objext
12940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12941 (eval $ac_compile) 2>&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); } &&
12945 { ac_try='test -s conftest.$ac_objext'
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947 (eval $ac_try) 2>&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; }; then
12951 ac_hi=$ac_mid; break
12953 echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12956 ac_lo=`expr $ac_mid + 1`
12957 if test $ac_lo -le $ac_mid; then
12961 ac_mid=`expr 2 '*' $ac_mid + 1`
12963 rm -f conftest.$ac_objext conftest.$ac_ext
12966 echo "$as_me: failed program was:" >&5
12967 sed 's/^/| /' conftest.$ac_ext >&5
12969 cat >conftest.$ac_ext <<_ACEOF
12970 #line $LINENO "configure"
12973 cat confdefs.h >>conftest.$ac_ext
12974 cat >>conftest.$ac_ext <<_ACEOF
12975 /* end confdefs.h. */
12976 $ac_includes_default
12980 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
12987 rm -f conftest.$ac_objext
12988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12989 (eval $ac_compile) 2>&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } &&
12993 { ac_try='test -s conftest.$ac_objext'
12994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12995 (eval $ac_try) 2>&5
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); }; }; then
13001 cat >conftest.$ac_ext <<_ACEOF
13002 #line $LINENO "configure"
13005 cat confdefs.h >>conftest.$ac_ext
13006 cat >>conftest.$ac_ext <<_ACEOF
13007 /* end confdefs.h. */
13008 $ac_includes_default
13012 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13019 rm -f conftest.$ac_objext
13020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13021 (eval $ac_compile) 2>&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } &&
13025 { ac_try='test -s conftest.$ac_objext'
13026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13027 (eval $ac_try) 2>&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); }; }; then
13031 ac_lo=$ac_mid; break
13033 echo "$as_me: failed program was:" >&5
13034 sed 's/^/| /' conftest.$ac_ext >&5
13036 ac_hi=`expr '(' $ac_mid ')' - 1`
13037 if test $ac_mid -le $ac_hi; then
13041 ac_mid=`expr 2 '*' $ac_mid`
13043 rm -f conftest.$ac_objext conftest.$ac_ext
13046 echo "$as_me: failed program was:" >&5
13047 sed 's/^/| /' conftest.$ac_ext >&5
13051 rm -f conftest.$ac_objext conftest.$ac_ext
13053 rm -f conftest.$ac_objext conftest.$ac_ext
13054 # Binary search between lo and hi bounds.
13055 while test "x$ac_lo" != "x$ac_hi"; do
13056 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13057 cat >conftest.$ac_ext <<_ACEOF
13058 #line $LINENO "configure"
13061 cat confdefs.h >>conftest.$ac_ext
13062 cat >>conftest.$ac_ext <<_ACEOF
13063 /* end confdefs.h. */
13064 $ac_includes_default
13068 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13075 rm -f conftest.$ac_objext
13076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13077 (eval $ac_compile) 2>&5
13079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } &&
13081 { ac_try='test -s conftest.$ac_objext'
13082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13083 (eval $ac_try) 2>&5
13085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13086 (exit $ac_status); }; }; then
13089 echo "$as_me: failed program was:" >&5
13090 sed 's/^/| /' conftest.$ac_ext >&5
13092 ac_lo=`expr '(' $ac_mid ')' + 1`
13094 rm -f conftest.$ac_objext conftest.$ac_ext
13097 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13098 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13099 See \`config.log' for more details." >&5
13100 echo "$as_me: error: cannot compute sizeof (long int), 77
13101 See \`config.log' for more details." >&2;}
13102 { (exit 1); exit 1; }; } ;;
13105 if test "$cross_compiling" = yes; then
13106 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13107 See \`config.log' for more details." >&5
13108 echo "$as_me: error: cannot run test program while cross compiling
13109 See \`config.log' for more details." >&2;}
13110 { (exit 1); exit 1; }; }
13112 cat >conftest.$ac_ext <<_ACEOF
13113 #line $LINENO "configure"
13116 cat confdefs.h >>conftest.$ac_ext
13117 cat >>conftest.$ac_ext <<_ACEOF
13118 /* end confdefs.h. */
13119 $ac_includes_default
13120 long longval () { return (long) (sizeof (long int)); }
13121 unsigned long ulongval () { return (long) (sizeof (long int)); }
13123 #include <stdlib.h>
13128 FILE *f = fopen ("conftest.val", "w");
13131 if (((long) (sizeof (long int))) < 0)
13133 long i = longval ();
13134 if (i != ((long) (sizeof (long int))))
13136 fprintf (f, "%ld\n", i);
13140 unsigned long i = ulongval ();
13141 if (i != ((long) (sizeof (long int))))
13143 fprintf (f, "%lu\n", i);
13145 exit (ferror (f) || fclose (f) != 0);
13151 rm -f conftest$ac_exeext
13152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13153 (eval $ac_link) 2>&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13158 (eval $ac_try) 2>&5
13160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13161 (exit $ac_status); }; }; then
13162 ac_cv_sizeof_long_int=`cat conftest.val`
13164 echo "$as_me: program exited with status $ac_status" >&5
13165 echo "$as_me: failed program was:" >&5
13166 sed 's/^/| /' conftest.$ac_ext >&5
13168 ( exit $ac_status )
13169 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13170 See \`config.log' for more details." >&5
13171 echo "$as_me: error: cannot compute sizeof (long int), 77
13172 See \`config.log' for more details." >&2;}
13173 { (exit 1); exit 1; }; }
13175 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13180 ac_cv_sizeof_long_int=0
13183 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13184 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13185 cat >>confdefs.h <<_ACEOF
13186 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13190 echo "$as_me:$LINENO: checking for long long int" >&5
13191 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13192 if test "${ac_cv_type_long_long_int+set}" = set; then
13193 echo $ECHO_N "(cached) $ECHO_C" >&6
13195 cat >conftest.$ac_ext <<_ACEOF
13196 #line $LINENO "configure"
13199 cat confdefs.h >>conftest.$ac_ext
13200 cat >>conftest.$ac_ext <<_ACEOF
13201 /* end confdefs.h. */
13202 $ac_includes_default
13206 if ((long long int *) 0)
13208 if (sizeof (long long int))
13214 rm -f conftest.$ac_objext
13215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13216 (eval $ac_compile) 2>&5
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } &&
13220 { ac_try='test -s conftest.$ac_objext'
13221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13222 (eval $ac_try) 2>&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); }; }; then
13226 ac_cv_type_long_long_int=yes
13228 echo "$as_me: failed program was:" >&5
13229 sed 's/^/| /' conftest.$ac_ext >&5
13231 ac_cv_type_long_long_int=no
13233 rm -f conftest.$ac_objext conftest.$ac_ext
13235 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13236 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13238 echo "$as_me:$LINENO: checking size of long long int" >&5
13239 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13240 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13241 echo $ECHO_N "(cached) $ECHO_C" >&6
13243 if test "$ac_cv_type_long_long_int" = yes; then
13244 # The cast to unsigned long works around a bug in the HP C Compiler
13245 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13246 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13247 # This bug is HP SR number 8606223364.
13248 if test "$cross_compiling" = yes; then
13249 # Depending upon the size, compute the lo and hi bounds.
13250 cat >conftest.$ac_ext <<_ACEOF
13251 #line $LINENO "configure"
13254 cat confdefs.h >>conftest.$ac_ext
13255 cat >>conftest.$ac_ext <<_ACEOF
13256 /* end confdefs.h. */
13257 $ac_includes_default
13261 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13268 rm -f conftest.$ac_objext
13269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13270 (eval $ac_compile) 2>&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); } &&
13274 { ac_try='test -s conftest.$ac_objext'
13275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13276 (eval $ac_try) 2>&5
13278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13279 (exit $ac_status); }; }; then
13282 cat >conftest.$ac_ext <<_ACEOF
13283 #line $LINENO "configure"
13286 cat confdefs.h >>conftest.$ac_ext
13287 cat >>conftest.$ac_ext <<_ACEOF
13288 /* end confdefs.h. */
13289 $ac_includes_default
13293 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13300 rm -f conftest.$ac_objext
13301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13302 (eval $ac_compile) 2>&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } &&
13306 { ac_try='test -s conftest.$ac_objext'
13307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308 (eval $ac_try) 2>&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; }; then
13312 ac_hi=$ac_mid; break
13314 echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13317 ac_lo=`expr $ac_mid + 1`
13318 if test $ac_lo -le $ac_mid; then
13322 ac_mid=`expr 2 '*' $ac_mid + 1`
13324 rm -f conftest.$ac_objext conftest.$ac_ext
13327 echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13330 cat >conftest.$ac_ext <<_ACEOF
13331 #line $LINENO "configure"
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h. */
13337 $ac_includes_default
13341 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13348 rm -f conftest.$ac_objext
13349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13350 (eval $ac_compile) 2>&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); } &&
13354 { ac_try='test -s conftest.$ac_objext'
13355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13356 (eval $ac_try) 2>&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); }; }; then
13362 cat >conftest.$ac_ext <<_ACEOF
13363 #line $LINENO "configure"
13366 cat confdefs.h >>conftest.$ac_ext
13367 cat >>conftest.$ac_ext <<_ACEOF
13368 /* end confdefs.h. */
13369 $ac_includes_default
13373 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13380 rm -f conftest.$ac_objext
13381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13382 (eval $ac_compile) 2>&5
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } &&
13386 { ac_try='test -s conftest.$ac_objext'
13387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13388 (eval $ac_try) 2>&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); }; }; then
13392 ac_lo=$ac_mid; break
13394 echo "$as_me: failed program was:" >&5
13395 sed 's/^/| /' conftest.$ac_ext >&5
13397 ac_hi=`expr '(' $ac_mid ')' - 1`
13398 if test $ac_mid -le $ac_hi; then
13402 ac_mid=`expr 2 '*' $ac_mid`
13404 rm -f conftest.$ac_objext conftest.$ac_ext
13407 echo "$as_me: failed program was:" >&5
13408 sed 's/^/| /' conftest.$ac_ext >&5
13412 rm -f conftest.$ac_objext conftest.$ac_ext
13414 rm -f conftest.$ac_objext conftest.$ac_ext
13415 # Binary search between lo and hi bounds.
13416 while test "x$ac_lo" != "x$ac_hi"; do
13417 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13418 cat >conftest.$ac_ext <<_ACEOF
13419 #line $LINENO "configure"
13422 cat confdefs.h >>conftest.$ac_ext
13423 cat >>conftest.$ac_ext <<_ACEOF
13424 /* end confdefs.h. */
13425 $ac_includes_default
13429 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13436 rm -f conftest.$ac_objext
13437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13438 (eval $ac_compile) 2>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); } &&
13442 { ac_try='test -s conftest.$ac_objext'
13443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13444 (eval $ac_try) 2>&5
13446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447 (exit $ac_status); }; }; then
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13453 ac_lo=`expr '(' $ac_mid ')' + 1`
13455 rm -f conftest.$ac_objext conftest.$ac_ext
13458 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13459 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13460 See \`config.log' for more details." >&5
13461 echo "$as_me: error: cannot compute sizeof (long long int), 77
13462 See \`config.log' for more details." >&2;}
13463 { (exit 1); exit 1; }; } ;;
13466 if test "$cross_compiling" = yes; then
13467 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13468 See \`config.log' for more details." >&5
13469 echo "$as_me: error: cannot run test program while cross compiling
13470 See \`config.log' for more details." >&2;}
13471 { (exit 1); exit 1; }; }
13473 cat >conftest.$ac_ext <<_ACEOF
13474 #line $LINENO "configure"
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h. */
13480 $ac_includes_default
13481 long longval () { return (long) (sizeof (long long int)); }
13482 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13484 #include <stdlib.h>
13489 FILE *f = fopen ("conftest.val", "w");
13492 if (((long) (sizeof (long long int))) < 0)
13494 long i = longval ();
13495 if (i != ((long) (sizeof (long long int))))
13497 fprintf (f, "%ld\n", i);
13501 unsigned long i = ulongval ();
13502 if (i != ((long) (sizeof (long long int))))
13504 fprintf (f, "%lu\n", i);
13506 exit (ferror (f) || fclose (f) != 0);
13512 rm -f conftest$ac_exeext
13513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13514 (eval $ac_link) 2>&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13519 (eval $ac_try) 2>&5
13521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13522 (exit $ac_status); }; }; then
13523 ac_cv_sizeof_long_long_int=`cat conftest.val`
13525 echo "$as_me: program exited with status $ac_status" >&5
13526 echo "$as_me: failed program was:" >&5
13527 sed 's/^/| /' conftest.$ac_ext >&5
13529 ( exit $ac_status )
13530 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13531 See \`config.log' for more details." >&5
13532 echo "$as_me: error: cannot compute sizeof (long long int), 77
13533 See \`config.log' for more details." >&2;}
13534 { (exit 1); exit 1; }; }
13536 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13541 ac_cv_sizeof_long_long_int=0
13544 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13545 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13546 cat >>confdefs.h <<_ACEOF
13547 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13551 echo "$as_me:$LINENO: checking for int *" >&5
13552 echo $ECHO_N "checking for int *... $ECHO_C" >&6
13553 if test "${ac_cv_type_int_p+set}" = set; then
13554 echo $ECHO_N "(cached) $ECHO_C" >&6
13556 cat >conftest.$ac_ext <<_ACEOF
13557 #line $LINENO "configure"
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h. */
13563 $ac_includes_default
13569 if (sizeof (int *))
13575 rm -f conftest.$ac_objext
13576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13577 (eval $ac_compile) 2>&5
13579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } &&
13581 { ac_try='test -s conftest.$ac_objext'
13582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13583 (eval $ac_try) 2>&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); }; }; then
13587 ac_cv_type_int_p=yes
13589 echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.$ac_ext >&5
13592 ac_cv_type_int_p=no
13594 rm -f conftest.$ac_objext conftest.$ac_ext
13596 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13597 echo "${ECHO_T}$ac_cv_type_int_p" >&6
13599 echo "$as_me:$LINENO: checking size of int *" >&5
13600 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13601 if test "${ac_cv_sizeof_int_p+set}" = set; then
13602 echo $ECHO_N "(cached) $ECHO_C" >&6
13604 if test "$ac_cv_type_int_p" = yes; then
13605 # The cast to unsigned long works around a bug in the HP C Compiler
13606 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13607 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13608 # This bug is HP SR number 8606223364.
13609 if test "$cross_compiling" = yes; then
13610 # Depending upon the size, compute the lo and hi bounds.
13611 cat >conftest.$ac_ext <<_ACEOF
13612 #line $LINENO "configure"
13615 cat confdefs.h >>conftest.$ac_ext
13616 cat >>conftest.$ac_ext <<_ACEOF
13617 /* end confdefs.h. */
13618 $ac_includes_default
13622 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13629 rm -f conftest.$ac_objext
13630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13631 (eval $ac_compile) 2>&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } &&
13635 { ac_try='test -s conftest.$ac_objext'
13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13637 (eval $ac_try) 2>&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); }; }; then
13643 cat >conftest.$ac_ext <<_ACEOF
13644 #line $LINENO "configure"
13647 cat confdefs.h >>conftest.$ac_ext
13648 cat >>conftest.$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13650 $ac_includes_default
13654 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13661 rm -f conftest.$ac_objext
13662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13663 (eval $ac_compile) 2>&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); } &&
13667 { ac_try='test -s conftest.$ac_objext'
13668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; }; then
13673 ac_hi=$ac_mid; break
13675 echo "$as_me: failed program was:" >&5
13676 sed 's/^/| /' conftest.$ac_ext >&5
13678 ac_lo=`expr $ac_mid + 1`
13679 if test $ac_lo -le $ac_mid; then
13683 ac_mid=`expr 2 '*' $ac_mid + 1`
13685 rm -f conftest.$ac_objext conftest.$ac_ext
13688 echo "$as_me: failed program was:" >&5
13689 sed 's/^/| /' conftest.$ac_ext >&5
13691 cat >conftest.$ac_ext <<_ACEOF
13692 #line $LINENO "configure"
13695 cat confdefs.h >>conftest.$ac_ext
13696 cat >>conftest.$ac_ext <<_ACEOF
13697 /* end confdefs.h. */
13698 $ac_includes_default
13702 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
13709 rm -f conftest.$ac_objext
13710 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13711 (eval $ac_compile) 2>&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); } &&
13715 { ac_try='test -s conftest.$ac_objext'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; }; then
13723 cat >conftest.$ac_ext <<_ACEOF
13724 #line $LINENO "configure"
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h. */
13730 $ac_includes_default
13734 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
13741 rm -f conftest.$ac_objext
13742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13743 (eval $ac_compile) 2>&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
13747 { ac_try='test -s conftest.$ac_objext'
13748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13749 (eval $ac_try) 2>&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); }; }; then
13753 ac_lo=$ac_mid; break
13755 echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13758 ac_hi=`expr '(' $ac_mid ')' - 1`
13759 if test $ac_mid -le $ac_hi; then
13763 ac_mid=`expr 2 '*' $ac_mid`
13765 rm -f conftest.$ac_objext conftest.$ac_ext
13768 echo "$as_me: failed program was:" >&5
13769 sed 's/^/| /' conftest.$ac_ext >&5
13773 rm -f conftest.$ac_objext conftest.$ac_ext
13775 rm -f conftest.$ac_objext conftest.$ac_ext
13776 # Binary search between lo and hi bounds.
13777 while test "x$ac_lo" != "x$ac_hi"; do
13778 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13779 cat >conftest.$ac_ext <<_ACEOF
13780 #line $LINENO "configure"
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h. */
13786 $ac_includes_default
13790 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13797 rm -f conftest.$ac_objext
13798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13799 (eval $ac_compile) 2>&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } &&
13803 { ac_try='test -s conftest.$ac_objext'
13804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805 (eval $ac_try) 2>&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); }; }; then
13811 echo "$as_me: failed program was:" >&5
13812 sed 's/^/| /' conftest.$ac_ext >&5
13814 ac_lo=`expr '(' $ac_mid ')' + 1`
13816 rm -f conftest.$ac_objext conftest.$ac_ext
13819 ?*) ac_cv_sizeof_int_p=$ac_lo;;
13820 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13821 See \`config.log' for more details." >&5
13822 echo "$as_me: error: cannot compute sizeof (int *), 77
13823 See \`config.log' for more details." >&2;}
13824 { (exit 1); exit 1; }; } ;;
13827 if test "$cross_compiling" = yes; then
13828 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13829 See \`config.log' for more details." >&5
13830 echo "$as_me: error: cannot run test program while cross compiling
13831 See \`config.log' for more details." >&2;}
13832 { (exit 1); exit 1; }; }
13834 cat >conftest.$ac_ext <<_ACEOF
13835 #line $LINENO "configure"
13838 cat confdefs.h >>conftest.$ac_ext
13839 cat >>conftest.$ac_ext <<_ACEOF
13840 /* end confdefs.h. */
13841 $ac_includes_default
13842 long longval () { return (long) (sizeof (int *)); }
13843 unsigned long ulongval () { return (long) (sizeof (int *)); }
13845 #include <stdlib.h>
13850 FILE *f = fopen ("conftest.val", "w");
13853 if (((long) (sizeof (int *))) < 0)
13855 long i = longval ();
13856 if (i != ((long) (sizeof (int *))))
13858 fprintf (f, "%ld\n", i);
13862 unsigned long i = ulongval ();
13863 if (i != ((long) (sizeof (int *))))
13865 fprintf (f, "%lu\n", i);
13867 exit (ferror (f) || fclose (f) != 0);
13873 rm -f conftest$ac_exeext
13874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13875 (eval $ac_link) 2>&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880 (eval $ac_try) 2>&5
13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883 (exit $ac_status); }; }; then
13884 ac_cv_sizeof_int_p=`cat conftest.val`
13886 echo "$as_me: program exited with status $ac_status" >&5
13887 echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13890 ( exit $ac_status )
13891 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
13892 See \`config.log' for more details." >&5
13893 echo "$as_me: error: cannot compute sizeof (int *), 77
13894 See \`config.log' for more details." >&2;}
13895 { (exit 1); exit 1; }; }
13897 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13902 ac_cv_sizeof_int_p=0
13905 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
13906 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
13907 cat >>confdefs.h <<_ACEOF
13908 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
13913 # Check for sys/types.h types
13914 echo "$as_me:$LINENO: checking for u_int type" >&5
13915 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
13916 if test "${ac_cv_have_u_int+set}" = set; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13920 cat >conftest.$ac_ext <<_ACEOF
13921 #line $LINENO "configure"
13924 cat confdefs.h >>conftest.$ac_ext
13925 cat >>conftest.$ac_ext <<_ACEOF
13926 /* end confdefs.h. */
13927 #include <sys/types.h>
13936 rm -f conftest.$ac_objext
13937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13938 (eval $ac_compile) 2>&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); } &&
13942 { ac_try='test -s conftest.$ac_objext'
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948 ac_cv_have_u_int="yes"
13950 echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13953 ac_cv_have_u_int="no"
13956 rm -f conftest.$ac_objext conftest.$ac_ext
13959 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
13960 echo "${ECHO_T}$ac_cv_have_u_int" >&6
13961 if test "x$ac_cv_have_u_int" = "xyes" ; then
13962 cat >>confdefs.h <<\_ACEOF
13963 #define HAVE_U_INT 1
13969 echo "$as_me:$LINENO: checking for intmax_t type" >&5
13970 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
13971 if test "${ac_cv_have_intmax_t+set}" = set; then
13972 echo $ECHO_N "(cached) $ECHO_C" >&6
13975 cat >conftest.$ac_ext <<_ACEOF
13976 #line $LINENO "configure"
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h. */
13982 #include <sys/types.h>
13991 rm -f conftest.$ac_objext
13992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13993 (eval $ac_compile) 2>&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); } &&
13997 { ac_try='test -s conftest.$ac_objext'
13998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13999 (eval $ac_try) 2>&5
14001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14002 (exit $ac_status); }; }; then
14003 ac_cv_have_intmax_t="yes"
14005 echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.$ac_ext >&5
14009 cat >conftest.$ac_ext <<_ACEOF
14010 #line $LINENO "configure"
14013 cat confdefs.h >>conftest.$ac_ext
14014 cat >>conftest.$ac_ext <<_ACEOF
14015 /* end confdefs.h. */
14016 #include <stdint.h>
14025 rm -f conftest.$ac_objext
14026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14027 (eval $ac_compile) 2>&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); } &&
14031 { ac_try='test -s conftest.$ac_objext'
14032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14033 (eval $ac_try) 2>&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; }; then
14037 ac_cv_have_intmax_t="yes"
14039 echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14042 ac_cv_have_intmax_t="no"
14045 rm -f conftest.$ac_objext conftest.$ac_ext
14049 rm -f conftest.$ac_objext conftest.$ac_ext
14053 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14054 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14055 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14056 cat >>confdefs.h <<\_ACEOF
14057 #define HAVE_INTMAX_T 1
14064 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14065 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14066 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14070 cat >conftest.$ac_ext <<_ACEOF
14071 #line $LINENO "configure"
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h. */
14077 #include <sys/types.h>
14081 u_intmax_t a; a = 1;
14086 rm -f conftest.$ac_objext
14087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14088 (eval $ac_compile) 2>&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } &&
14092 { ac_try='test -s conftest.$ac_objext'
14093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14094 (eval $ac_try) 2>&5
14096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14097 (exit $ac_status); }; }; then
14098 ac_cv_have_u_intmax_t="yes"
14100 echo "$as_me: failed program was:" >&5
14101 sed 's/^/| /' conftest.$ac_ext >&5
14104 cat >conftest.$ac_ext <<_ACEOF
14105 #line $LINENO "configure"
14108 cat confdefs.h >>conftest.$ac_ext
14109 cat >>conftest.$ac_ext <<_ACEOF
14110 /* end confdefs.h. */
14111 #include <stdint.h>
14115 u_intmax_t a; a = 1;
14120 rm -f conftest.$ac_objext
14121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14122 (eval $ac_compile) 2>&5
14124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14125 (exit $ac_status); } &&
14126 { ac_try='test -s conftest.$ac_objext'
14127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14128 (eval $ac_try) 2>&5
14130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14131 (exit $ac_status); }; }; then
14132 ac_cv_have_u_intmax_t="yes"
14134 echo "$as_me: failed program was:" >&5
14135 sed 's/^/| /' conftest.$ac_ext >&5
14137 ac_cv_have_u_intmax_t="no"
14140 rm -f conftest.$ac_objext conftest.$ac_ext
14144 rm -f conftest.$ac_objext conftest.$ac_ext
14147 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14148 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14149 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14150 cat >>confdefs.h <<\_ACEOF
14151 #define HAVE_U_INTMAX_T 1
14158 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14159 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14160 if test "${ac_cv_have_intxx_t+set}" = set; then
14161 echo $ECHO_N "(cached) $ECHO_C" >&6
14164 cat >conftest.$ac_ext <<_ACEOF
14165 #line $LINENO "configure"
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h. */
14171 #include <sys/types.h>
14175 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14180 rm -f conftest.$ac_objext
14181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14182 (eval $ac_compile) 2>&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); } &&
14186 { ac_try='test -s conftest.$ac_objext'
14187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14188 (eval $ac_try) 2>&5
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); }; }; then
14192 ac_cv_have_intxx_t="yes"
14194 echo "$as_me: failed program was:" >&5
14195 sed 's/^/| /' conftest.$ac_ext >&5
14197 ac_cv_have_intxx_t="no"
14200 rm -f conftest.$ac_objext conftest.$ac_ext
14203 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14204 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14205 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14206 cat >>confdefs.h <<\_ACEOF
14207 #define HAVE_INTXX_T 1
14213 echo "$as_me:$LINENO: checking for int64_t type" >&5
14214 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14215 if test "${ac_cv_have_int64_t+set}" = set; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14219 cat >conftest.$ac_ext <<_ACEOF
14220 #line $LINENO "configure"
14223 cat confdefs.h >>conftest.$ac_ext
14224 cat >>conftest.$ac_ext <<_ACEOF
14225 /* end confdefs.h. */
14226 #include <sys/types.h>
14235 rm -f conftest.$ac_objext
14236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14237 (eval $ac_compile) 2>&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); } &&
14241 { ac_try='test -s conftest.$ac_objext'
14242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14243 (eval $ac_try) 2>&5
14245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14246 (exit $ac_status); }; }; then
14247 ac_cv_have_int64_t="yes"
14249 echo "$as_me: failed program was:" >&5
14250 sed 's/^/| /' conftest.$ac_ext >&5
14252 ac_cv_have_int64_t="no"
14255 rm -f conftest.$ac_objext conftest.$ac_ext
14258 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14259 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14260 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14261 cat >>confdefs.h <<\_ACEOF
14262 #define HAVE_INT64_T 1
14268 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14269 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14270 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14271 echo $ECHO_N "(cached) $ECHO_C" >&6
14274 cat >conftest.$ac_ext <<_ACEOF
14275 #line $LINENO "configure"
14278 cat confdefs.h >>conftest.$ac_ext
14279 cat >>conftest.$ac_ext <<_ACEOF
14280 /* end confdefs.h. */
14281 #include <sys/types.h>
14285 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14290 rm -f conftest.$ac_objext
14291 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14292 (eval $ac_compile) 2>&5
14294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14295 (exit $ac_status); } &&
14296 { ac_try='test -s conftest.$ac_objext'
14297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14298 (eval $ac_try) 2>&5
14300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); }; }; then
14302 ac_cv_have_u_intxx_t="yes"
14304 echo "$as_me: failed program was:" >&5
14305 sed 's/^/| /' conftest.$ac_ext >&5
14307 ac_cv_have_u_intxx_t="no"
14310 rm -f conftest.$ac_objext conftest.$ac_ext
14313 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14314 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14315 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14316 cat >>confdefs.h <<\_ACEOF
14317 #define HAVE_U_INTXX_T 1
14323 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14324 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14325 if test "${ac_cv_have_u_int64_t+set}" = set; then
14326 echo $ECHO_N "(cached) $ECHO_C" >&6
14329 cat >conftest.$ac_ext <<_ACEOF
14330 #line $LINENO "configure"
14333 cat confdefs.h >>conftest.$ac_ext
14334 cat >>conftest.$ac_ext <<_ACEOF
14335 /* end confdefs.h. */
14336 #include <sys/types.h>
14340 u_int64_t a; a = 1;
14345 rm -f conftest.$ac_objext
14346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14347 (eval $ac_compile) 2>&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } &&
14351 { ac_try='test -s conftest.$ac_objext'
14352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14353 (eval $ac_try) 2>&5
14355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356 (exit $ac_status); }; }; then
14357 ac_cv_have_u_int64_t="yes"
14359 echo "$as_me: failed program was:" >&5
14360 sed 's/^/| /' conftest.$ac_ext >&5
14362 ac_cv_have_u_int64_t="no"
14365 rm -f conftest.$ac_objext conftest.$ac_ext
14368 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14369 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14370 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14371 cat >>confdefs.h <<\_ACEOF
14372 #define HAVE_U_INT64_T 1
14378 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14379 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14381 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14382 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14383 cat >conftest.$ac_ext <<_ACEOF
14384 #line $LINENO "configure"
14387 cat confdefs.h >>conftest.$ac_ext
14388 cat >>conftest.$ac_ext <<_ACEOF
14389 /* end confdefs.h. */
14390 #include <sys/bitypes.h>
14394 int8_t a; int16_t b; int32_t c;
14395 u_int8_t e; u_int16_t f; u_int32_t g;
14396 a = b = c = e = f = g = 1;
14401 rm -f conftest.$ac_objext
14402 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14403 (eval $ac_compile) 2>&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } &&
14407 { ac_try='test -s conftest.$ac_objext'
14408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14409 (eval $ac_try) 2>&5
14411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14412 (exit $ac_status); }; }; then
14413 cat >>confdefs.h <<\_ACEOF
14414 #define HAVE_U_INTXX_T 1
14417 cat >>confdefs.h <<\_ACEOF
14418 #define HAVE_INTXX_T 1
14421 cat >>confdefs.h <<\_ACEOF
14422 #define HAVE_SYS_BITYPES_H 1
14425 echo "$as_me:$LINENO: result: yes" >&5
14426 echo "${ECHO_T}yes" >&6
14428 echo "$as_me: failed program was:" >&5
14429 sed 's/^/| /' conftest.$ac_ext >&5
14431 echo "$as_me:$LINENO: result: no" >&5
14432 echo "${ECHO_T}no" >&6
14435 rm -f conftest.$ac_objext conftest.$ac_ext
14438 if test -z "$have_u_intxx_t" ; then
14439 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14440 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14441 if test "${ac_cv_have_uintxx_t+set}" = set; then
14442 echo $ECHO_N "(cached) $ECHO_C" >&6
14445 cat >conftest.$ac_ext <<_ACEOF
14446 #line $LINENO "configure"
14449 cat confdefs.h >>conftest.$ac_ext
14450 cat >>conftest.$ac_ext <<_ACEOF
14451 /* end confdefs.h. */
14452 #include <sys/types.h>
14456 uint8_t a; uint16_t b;
14457 uint32_t c; a = b = c = 1;
14462 rm -f conftest.$ac_objext
14463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14464 (eval $ac_compile) 2>&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); } &&
14468 { ac_try='test -s conftest.$ac_objext'
14469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14470 (eval $ac_try) 2>&5
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); }; }; then
14474 ac_cv_have_uintxx_t="yes"
14476 echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14479 ac_cv_have_uintxx_t="no"
14482 rm -f conftest.$ac_objext conftest.$ac_ext
14485 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14486 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14487 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14488 cat >>confdefs.h <<\_ACEOF
14489 #define HAVE_UINTXX_T 1
14525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14526 echo "$as_me:$LINENO: checking for $ac_func" >&5
14527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14528 if eval "test \"\${$as_ac_var+set}\" = set"; then
14529 echo $ECHO_N "(cached) $ECHO_C" >&6
14531 cat >conftest.$ac_ext <<_ACEOF
14532 #line $LINENO "configure"
14535 cat confdefs.h >>conftest.$ac_ext
14536 cat >>conftest.$ac_ext <<_ACEOF
14537 /* end confdefs.h. */
14538 /* System header to define __stub macros and hopefully few prototypes,
14539 which can conflict with char $ac_func (); below.
14540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14541 <limits.h> exists even on freestanding compilers. */
14543 # include <limits.h>
14545 # include <assert.h>
14547 /* Override any gcc2 internal prototype to avoid an error. */
14552 /* We use char because int might match the return type of a gcc2
14553 builtin and then its argument prototype would still apply. */
14555 /* The GNU C library defines this for functions which it implements
14556 to always fail with ENOSYS. Some functions are actually named
14557 something starting with __ and the normal name is an alias. */
14558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14561 char (*f) () = $ac_func;
14570 return f != $ac_func;
14575 rm -f conftest.$ac_objext conftest$ac_exeext
14576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14577 (eval $ac_link) 2>&5
14579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14580 (exit $ac_status); } &&
14581 { ac_try='test -s conftest$ac_exeext'
14582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14583 (eval $ac_try) 2>&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); }; }; then
14587 eval "$as_ac_var=yes"
14589 echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14592 eval "$as_ac_var=no"
14594 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14596 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14597 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14598 if test `eval echo '${'$as_ac_var'}'` = yes; then
14599 cat >>confdefs.h <<_ACEOF
14600 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14604 echo 'configure: cannot find needed function.'; exit 1
14611 for ac_func in fchdir
14613 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14614 echo "$as_me:$LINENO: checking for $ac_func" >&5
14615 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14616 if eval "test \"\${$as_ac_var+set}\" = set"; then
14617 echo $ECHO_N "(cached) $ECHO_C" >&6
14619 cat >conftest.$ac_ext <<_ACEOF
14620 #line $LINENO "configure"
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h. */
14626 /* System header to define __stub macros and hopefully few prototypes,
14627 which can conflict with char $ac_func (); below.
14628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14629 <limits.h> exists even on freestanding compilers. */
14631 # include <limits.h>
14633 # include <assert.h>
14635 /* Override any gcc2 internal prototype to avoid an error. */
14640 /* We use char because int might match the return type of a gcc2
14641 builtin and then its argument prototype would still apply. */
14643 /* The GNU C library defines this for functions which it implements
14644 to always fail with ENOSYS. Some functions are actually named
14645 something starting with __ and the normal name is an alias. */
14646 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14649 char (*f) () = $ac_func;
14658 return f != $ac_func;
14663 rm -f conftest.$ac_objext conftest$ac_exeext
14664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14665 (eval $ac_link) 2>&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } &&
14669 { ac_try='test -s conftest$ac_exeext'
14670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14671 (eval $ac_try) 2>&5
14673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14674 (exit $ac_status); }; }; then
14675 eval "$as_ac_var=yes"
14677 echo "$as_me: failed program was:" >&5
14678 sed 's/^/| /' conftest.$ac_ext >&5
14680 eval "$as_ac_var=no"
14682 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14685 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14686 if test `eval echo '${'$as_ac_var'}'` = yes; then
14687 cat >>confdefs.h <<_ACEOF
14688 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14690 cat >>confdefs.h <<\_ACEOF
14691 #define HAVE_FCHDIR 1
14698 for ac_func in strtoll
14700 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14701 echo "$as_me:$LINENO: checking for $ac_func" >&5
14702 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14703 if eval "test \"\${$as_ac_var+set}\" = set"; then
14704 echo $ECHO_N "(cached) $ECHO_C" >&6
14706 cat >conftest.$ac_ext <<_ACEOF
14707 #line $LINENO "configure"
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h. */
14713 /* System header to define __stub macros and hopefully few prototypes,
14714 which can conflict with char $ac_func (); below.
14715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14716 <limits.h> exists even on freestanding compilers. */
14718 # include <limits.h>
14720 # include <assert.h>
14722 /* Override any gcc2 internal prototype to avoid an error. */
14727 /* We use char because int might match the return type of a gcc2
14728 builtin and then its argument prototype would still apply. */
14730 /* The GNU C library defines this for functions which it implements
14731 to always fail with ENOSYS. Some functions are actually named
14732 something starting with __ and the normal name is an alias. */
14733 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14736 char (*f) () = $ac_func;
14745 return f != $ac_func;
14750 rm -f conftest.$ac_objext conftest$ac_exeext
14751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14752 (eval $ac_link) 2>&5
14754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14755 (exit $ac_status); } &&
14756 { ac_try='test -s conftest$ac_exeext'
14757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14758 (eval $ac_try) 2>&5
14760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14761 (exit $ac_status); }; }; then
14762 eval "$as_ac_var=yes"
14764 echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14767 eval "$as_ac_var=no"
14769 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14771 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14772 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14773 if test `eval echo '${'$as_ac_var'}'` = yes; then
14774 cat >>confdefs.h <<_ACEOF
14775 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14777 cat >>confdefs.h <<\_ACEOF
14778 #define HAVE_STRTOLL 1
14786 for ac_func in chflags
14788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14789 echo "$as_me:$LINENO: checking for $ac_func" >&5
14790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14791 if eval "test \"\${$as_ac_var+set}\" = set"; then
14792 echo $ECHO_N "(cached) $ECHO_C" >&6
14794 cat >conftest.$ac_ext <<_ACEOF
14795 #line $LINENO "configure"
14798 cat confdefs.h >>conftest.$ac_ext
14799 cat >>conftest.$ac_ext <<_ACEOF
14800 /* end confdefs.h. */
14801 /* System header to define __stub macros and hopefully few prototypes,
14802 which can conflict with char $ac_func (); below.
14803 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14804 <limits.h> exists even on freestanding compilers. */
14806 # include <limits.h>
14808 # include <assert.h>
14810 /* Override any gcc2 internal prototype to avoid an error. */
14815 /* We use char because int might match the return type of a gcc2
14816 builtin and then its argument prototype would still apply. */
14818 /* The GNU C library defines this for functions which it implements
14819 to always fail with ENOSYS. Some functions are actually named
14820 something starting with __ and the normal name is an alias. */
14821 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14824 char (*f) () = $ac_func;
14833 return f != $ac_func;
14838 rm -f conftest.$ac_objext conftest$ac_exeext
14839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14840 (eval $ac_link) 2>&5
14842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14843 (exit $ac_status); } &&
14844 { ac_try='test -s conftest$ac_exeext'
14845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14846 (eval $ac_try) 2>&5
14848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14849 (exit $ac_status); }; }; then
14850 eval "$as_ac_var=yes"
14852 echo "$as_me: failed program was:" >&5
14853 sed 's/^/| /' conftest.$ac_ext >&5
14855 eval "$as_ac_var=no"
14857 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14859 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14860 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14861 if test `eval echo '${'$as_ac_var'}'` = yes; then
14862 cat >>confdefs.h <<_ACEOF
14863 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14874 for ac_func in snprintf vsnprintf gethostid getdomainname
14876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14877 echo "$as_me:$LINENO: checking for $ac_func" >&5
14878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14879 if eval "test \"\${$as_ac_var+set}\" = set"; then
14880 echo $ECHO_N "(cached) $ECHO_C" >&6
14882 cat >conftest.$ac_ext <<_ACEOF
14883 #line $LINENO "configure"
14886 cat confdefs.h >>conftest.$ac_ext
14887 cat >>conftest.$ac_ext <<_ACEOF
14888 /* end confdefs.h. */
14889 /* System header to define __stub macros and hopefully few prototypes,
14890 which can conflict with char $ac_func (); below.
14891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14892 <limits.h> exists even on freestanding compilers. */
14894 # include <limits.h>
14896 # include <assert.h>
14898 /* Override any gcc2 internal prototype to avoid an error. */
14903 /* We use char because int might match the return type of a gcc2
14904 builtin and then its argument prototype would still apply. */
14906 /* The GNU C library defines this for functions which it implements
14907 to always fail with ENOSYS. Some functions are actually named
14908 something starting with __ and the normal name is an alias. */
14909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14912 char (*f) () = $ac_func;
14921 return f != $ac_func;
14926 rm -f conftest.$ac_objext conftest$ac_exeext
14927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14928 (eval $ac_link) 2>&5
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); } &&
14932 { ac_try='test -s conftest$ac_exeext'
14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14934 (eval $ac_try) 2>&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; }; then
14938 eval "$as_ac_var=yes"
14940 echo "$as_me: failed program was:" >&5
14941 sed 's/^/| /' conftest.$ac_ext >&5
14943 eval "$as_ac_var=no"
14945 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14949 if test `eval echo '${'$as_ac_var'}'` = yes; then
14950 cat >>confdefs.h <<_ACEOF
14951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14962 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
14964 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14965 echo "$as_me:$LINENO: checking for $ac_func" >&5
14966 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14967 if eval "test \"\${$as_ac_var+set}\" = set"; then
14968 echo $ECHO_N "(cached) $ECHO_C" >&6
14970 cat >conftest.$ac_ext <<_ACEOF
14971 #line $LINENO "configure"
14974 cat confdefs.h >>conftest.$ac_ext
14975 cat >>conftest.$ac_ext <<_ACEOF
14976 /* end confdefs.h. */
14977 /* System header to define __stub macros and hopefully few prototypes,
14978 which can conflict with char $ac_func (); below.
14979 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14980 <limits.h> exists even on freestanding compilers. */
14982 # include <limits.h>
14984 # include <assert.h>
14986 /* Override any gcc2 internal prototype to avoid an error. */
14991 /* We use char because int might match the return type of a gcc2
14992 builtin and then its argument prototype would still apply. */
14994 /* The GNU C library defines this for functions which it implements
14995 to always fail with ENOSYS. Some functions are actually named
14996 something starting with __ and the normal name is an alias. */
14997 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15000 char (*f) () = $ac_func;
15009 return f != $ac_func;
15014 rm -f conftest.$ac_objext conftest$ac_exeext
15015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15016 (eval $ac_link) 2>&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } &&
15020 { ac_try='test -s conftest$ac_exeext'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; }; then
15026 eval "$as_ac_var=yes"
15028 echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15031 eval "$as_ac_var=no"
15033 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15037 if test `eval echo '${'$as_ac_var'}'` = yes; then
15038 cat >>confdefs.h <<_ACEOF
15039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15046 # If resolver functions are not in libc check for -lnsl or -lresolv.
15047 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15048 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15049 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15050 echo $ECHO_N "(cached) $ECHO_C" >&6
15052 cat >conftest.$ac_ext <<_ACEOF
15053 #line $LINENO "configure"
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h. */
15059 /* System header to define __stub macros and hopefully few prototypes,
15060 which can conflict with char gethostbyname_r (); below.
15061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15062 <limits.h> exists even on freestanding compilers. */
15064 # include <limits.h>
15066 # include <assert.h>
15068 /* Override any gcc2 internal prototype to avoid an error. */
15073 /* We use char because int might match the return type of a gcc2
15074 builtin and then its argument prototype would still apply. */
15075 char gethostbyname_r ();
15076 /* The GNU C library defines this for functions which it implements
15077 to always fail with ENOSYS. Some functions are actually named
15078 something starting with __ and the normal name is an alias. */
15079 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15082 char (*f) () = gethostbyname_r;
15091 return f != gethostbyname_r;
15096 rm -f conftest.$ac_objext conftest$ac_exeext
15097 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15098 (eval $ac_link) 2>&5
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); } &&
15102 { ac_try='test -s conftest$ac_exeext'
15103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15104 (eval $ac_try) 2>&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }; }; then
15108 ac_cv_func_gethostbyname_r=yes
15110 echo "$as_me: failed program was:" >&5
15111 sed 's/^/| /' conftest.$ac_ext >&5
15113 ac_cv_func_gethostbyname_r=no
15115 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15117 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15118 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15119 if test $ac_cv_func_gethostbyname_r = yes; then
15120 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15121 echo "${ECHO_T}using libc's resolver" >&6
15124 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15125 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15126 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15127 echo $ECHO_N "(cached) $ECHO_C" >&6
15129 ac_check_lib_save_LIBS=$LIBS
15131 cat >conftest.$ac_ext <<_ACEOF
15132 #line $LINENO "configure"
15135 cat confdefs.h >>conftest.$ac_ext
15136 cat >>conftest.$ac_ext <<_ACEOF
15137 /* end confdefs.h. */
15139 /* Override any gcc2 internal prototype to avoid an error. */
15143 /* We use char because int might match the return type of a gcc2
15144 builtin and then its argument prototype would still apply. */
15145 char gethostbyname_r ();
15149 gethostbyname_r ();
15154 rm -f conftest.$ac_objext conftest$ac_exeext
15155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15156 (eval $ac_link) 2>&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); } &&
15160 { ac_try='test -s conftest$ac_exeext'
15161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15162 (eval $ac_try) 2>&5
15164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15165 (exit $ac_status); }; }; then
15166 ac_cv_lib_nsl_gethostbyname_r=yes
15168 echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15171 ac_cv_lib_nsl_gethostbyname_r=no
15173 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15174 LIBS=$ac_check_lib_save_LIBS
15176 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15177 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15178 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15179 cat >>confdefs.h <<_ACEOF
15180 #define HAVE_LIBNSL 1
15188 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15189 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15190 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15193 ac_check_lib_save_LIBS=$LIBS
15194 LIBS="-lresolv $LIBS"
15195 cat >conftest.$ac_ext <<_ACEOF
15196 #line $LINENO "configure"
15199 cat confdefs.h >>conftest.$ac_ext
15200 cat >>conftest.$ac_ext <<_ACEOF
15201 /* end confdefs.h. */
15203 /* Override any gcc2 internal prototype to avoid an error. */
15207 /* We use char because int might match the return type of a gcc2
15208 builtin and then its argument prototype would still apply. */
15209 char gethostbyname_r ();
15213 gethostbyname_r ();
15218 rm -f conftest.$ac_objext conftest$ac_exeext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15220 (eval $ac_link) 2>&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } &&
15224 { ac_try='test -s conftest$ac_exeext'
15225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15226 (eval $ac_try) 2>&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); }; }; then
15230 ac_cv_lib_resolv_gethostbyname_r=yes
15232 echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15235 ac_cv_lib_resolv_gethostbyname_r=no
15237 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15238 LIBS=$ac_check_lib_save_LIBS
15240 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15241 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15242 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15243 cat >>confdefs.h <<_ACEOF
15244 #define HAVE_LIBRESOLV 1
15247 LIBS="-lresolv $LIBS"
15255 # Find where sockets are (especially for Solaris)
15256 echo "$as_me:$LINENO: checking for socket" >&5
15257 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15258 if test "${ac_cv_func_socket+set}" = set; then
15259 echo $ECHO_N "(cached) $ECHO_C" >&6
15261 cat >conftest.$ac_ext <<_ACEOF
15262 #line $LINENO "configure"
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h. */
15268 /* System header to define __stub macros and hopefully few prototypes,
15269 which can conflict with char socket (); below.
15270 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15271 <limits.h> exists even on freestanding compilers. */
15273 # include <limits.h>
15275 # include <assert.h>
15277 /* Override any gcc2 internal prototype to avoid an error. */
15282 /* We use char because int might match the return type of a gcc2
15283 builtin and then its argument prototype would still apply. */
15285 /* The GNU C library defines this for functions which it implements
15286 to always fail with ENOSYS. Some functions are actually named
15287 something starting with __ and the normal name is an alias. */
15288 #if defined (__stub_socket) || defined (__stub___socket)
15291 char (*f) () = socket;
15300 return f != socket;
15305 rm -f conftest.$ac_objext conftest$ac_exeext
15306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15307 (eval $ac_link) 2>&5
15309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310 (exit $ac_status); } &&
15311 { ac_try='test -s conftest$ac_exeext'
15312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15313 (eval $ac_try) 2>&5
15315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); }; }; then
15317 ac_cv_func_socket=yes
15319 echo "$as_me: failed program was:" >&5
15320 sed 's/^/| /' conftest.$ac_ext >&5
15322 ac_cv_func_socket=no
15324 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15326 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15327 echo "${ECHO_T}$ac_cv_func_socket" >&6
15328 if test $ac_cv_func_socket = yes; then
15329 echo "$as_me:$LINENO: result: using libc's socket" >&5
15330 echo "${ECHO_T}using libc's socket" >&6
15333 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15334 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15335 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15336 echo $ECHO_N "(cached) $ECHO_C" >&6
15338 ac_check_lib_save_LIBS=$LIBS
15339 LIBS="-lxnet $LIBS"
15340 cat >conftest.$ac_ext <<_ACEOF
15341 #line $LINENO "configure"
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15348 /* Override any gcc2 internal prototype to avoid an error. */
15352 /* We use char because int might match the return type of a gcc2
15353 builtin and then its argument prototype would still apply. */
15363 rm -f conftest.$ac_objext conftest$ac_exeext
15364 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15365 (eval $ac_link) 2>&5
15367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15368 (exit $ac_status); } &&
15369 { ac_try='test -s conftest$ac_exeext'
15370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15371 (eval $ac_try) 2>&5
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; }; then
15375 ac_cv_lib_xnet_socket=yes
15377 echo "$as_me: failed program was:" >&5
15378 sed 's/^/| /' conftest.$ac_ext >&5
15380 ac_cv_lib_xnet_socket=no
15382 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15383 LIBS=$ac_check_lib_save_LIBS
15385 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15386 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15387 if test $ac_cv_lib_xnet_socket = yes; then
15388 cat >>confdefs.h <<_ACEOF
15389 #define HAVE_LIBXNET 1
15392 LIBS="-lxnet $LIBS"
15397 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15398 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15399 if test "${ac_cv_lib_socket_socket+set}" = set; then
15400 echo $ECHO_N "(cached) $ECHO_C" >&6
15402 ac_check_lib_save_LIBS=$LIBS
15403 LIBS="-lsocket $LIBS"
15404 cat >conftest.$ac_ext <<_ACEOF
15405 #line $LINENO "configure"
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15412 /* Override any gcc2 internal prototype to avoid an error. */
15416 /* We use char because int might match the return type of a gcc2
15417 builtin and then its argument prototype would still apply. */
15427 rm -f conftest.$ac_objext conftest$ac_exeext
15428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15429 (eval $ac_link) 2>&5
15431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15432 (exit $ac_status); } &&
15433 { ac_try='test -s conftest$ac_exeext'
15434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15435 (eval $ac_try) 2>&5
15437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15438 (exit $ac_status); }; }; then
15439 ac_cv_lib_socket_socket=yes
15441 echo "$as_me: failed program was:" >&5
15442 sed 's/^/| /' conftest.$ac_ext >&5
15444 ac_cv_lib_socket_socket=no
15446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15447 LIBS=$ac_check_lib_save_LIBS
15449 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15450 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15451 if test $ac_cv_lib_socket_socket = yes; then
15452 cat >>confdefs.h <<_ACEOF
15453 #define HAVE_LIBSOCKET 1
15456 LIBS="-lsocket $LIBS"
15461 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15462 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15463 if test "${ac_cv_lib_inet_socket+set}" = set; then
15464 echo $ECHO_N "(cached) $ECHO_C" >&6
15466 ac_check_lib_save_LIBS=$LIBS
15467 LIBS="-linet $LIBS"
15468 cat >conftest.$ac_ext <<_ACEOF
15469 #line $LINENO "configure"
15472 cat confdefs.h >>conftest.$ac_ext
15473 cat >>conftest.$ac_ext <<_ACEOF
15474 /* end confdefs.h. */
15476 /* Override any gcc2 internal prototype to avoid an error. */
15480 /* We use char because int might match the return type of a gcc2
15481 builtin and then its argument prototype would still apply. */
15491 rm -f conftest.$ac_objext conftest$ac_exeext
15492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15493 (eval $ac_link) 2>&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } &&
15497 { ac_try='test -s conftest$ac_exeext'
15498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15499 (eval $ac_try) 2>&5
15501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15502 (exit $ac_status); }; }; then
15503 ac_cv_lib_inet_socket=yes
15505 echo "$as_me: failed program was:" >&5
15506 sed 's/^/| /' conftest.$ac_ext >&5
15508 ac_cv_lib_inet_socket=no
15510 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15511 LIBS=$ac_check_lib_save_LIBS
15513 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15514 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15515 if test $ac_cv_lib_inet_socket = yes; then
15516 cat >>confdefs.h <<_ACEOF
15517 #define HAVE_LIBINET 1
15520 LIBS="-linet $LIBS"
15528 for ac_func in inet_pton
15530 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15531 echo "$as_me:$LINENO: checking for $ac_func" >&5
15532 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15533 if eval "test \"\${$as_ac_var+set}\" = set"; then
15534 echo $ECHO_N "(cached) $ECHO_C" >&6
15536 cat >conftest.$ac_ext <<_ACEOF
15537 #line $LINENO "configure"
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h. */
15543 /* System header to define __stub macros and hopefully few prototypes,
15544 which can conflict with char $ac_func (); below.
15545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15546 <limits.h> exists even on freestanding compilers. */
15548 # include <limits.h>
15550 # include <assert.h>
15552 /* Override any gcc2 internal prototype to avoid an error. */
15557 /* We use char because int might match the return type of a gcc2
15558 builtin and then its argument prototype would still apply. */
15560 /* The GNU C library defines this for functions which it implements
15561 to always fail with ENOSYS. Some functions are actually named
15562 something starting with __ and the normal name is an alias. */
15563 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15566 char (*f) () = $ac_func;
15575 return f != $ac_func;
15580 rm -f conftest.$ac_objext conftest$ac_exeext
15581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15582 (eval $ac_link) 2>&5
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); } &&
15586 { ac_try='test -s conftest$ac_exeext'
15587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15588 (eval $ac_try) 2>&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); }; }; then
15592 eval "$as_ac_var=yes"
15594 echo "$as_me: failed program was:" >&5
15595 sed 's/^/| /' conftest.$ac_ext >&5
15597 eval "$as_ac_var=no"
15599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15601 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15602 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15603 if test `eval echo '${'$as_ac_var'}'` = yes; then
15604 cat >>confdefs.h <<_ACEOF
15605 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15607 cat >>confdefs.h <<\_ACEOF
15608 #define HAVE_INET_PTON 1
15616 for ac_func in strftime
15618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15619 echo "$as_me:$LINENO: checking for $ac_func" >&5
15620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15621 if eval "test \"\${$as_ac_var+set}\" = set"; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15624 cat >conftest.$ac_ext <<_ACEOF
15625 #line $LINENO "configure"
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15631 /* System header to define __stub macros and hopefully few prototypes,
15632 which can conflict with char $ac_func (); below.
15633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15634 <limits.h> exists even on freestanding compilers. */
15636 # include <limits.h>
15638 # include <assert.h>
15640 /* Override any gcc2 internal prototype to avoid an error. */
15645 /* We use char because int might match the return type of a gcc2
15646 builtin and then its argument prototype would still apply. */
15648 /* The GNU C library defines this for functions which it implements
15649 to always fail with ENOSYS. Some functions are actually named
15650 something starting with __ and the normal name is an alias. */
15651 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15654 char (*f) () = $ac_func;
15663 return f != $ac_func;
15668 rm -f conftest.$ac_objext conftest$ac_exeext
15669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15670 (eval $ac_link) 2>&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); } &&
15674 { ac_try='test -s conftest$ac_exeext'
15675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15676 (eval $ac_try) 2>&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); }; }; then
15680 eval "$as_ac_var=yes"
15682 echo "$as_me: failed program was:" >&5
15683 sed 's/^/| /' conftest.$ac_ext >&5
15685 eval "$as_ac_var=no"
15687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15691 if test `eval echo '${'$as_ac_var'}'` = yes; then
15692 cat >>confdefs.h <<_ACEOF
15693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15697 # strftime is in -lintl on SCO UNIX.
15698 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
15699 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
15700 if test "${ac_cv_lib_intl_strftime+set}" = set; then
15701 echo $ECHO_N "(cached) $ECHO_C" >&6
15703 ac_check_lib_save_LIBS=$LIBS
15704 LIBS="-lintl $LIBS"
15705 cat >conftest.$ac_ext <<_ACEOF
15706 #line $LINENO "configure"
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h. */
15713 /* Override any gcc2 internal prototype to avoid an error. */
15717 /* We use char because int might match the return type of a gcc2
15718 builtin and then its argument prototype would still apply. */
15728 rm -f conftest.$ac_objext conftest$ac_exeext
15729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15730 (eval $ac_link) 2>&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } &&
15734 { ac_try='test -s conftest$ac_exeext'
15735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15736 (eval $ac_try) 2>&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 (exit $ac_status); }; }; then
15740 ac_cv_lib_intl_strftime=yes
15742 echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.$ac_ext >&5
15745 ac_cv_lib_intl_strftime=no
15747 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15748 LIBS=$ac_check_lib_save_LIBS
15750 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
15751 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
15752 if test $ac_cv_lib_intl_strftime = yes; then
15753 cat >>confdefs.h <<\_ACEOF
15754 #define HAVE_STRFTIME 1
15757 LIBS="-lintl $LIBS"
15764 for ac_func in vprintf
15766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15767 echo "$as_me:$LINENO: checking for $ac_func" >&5
15768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15769 if eval "test \"\${$as_ac_var+set}\" = set"; then
15770 echo $ECHO_N "(cached) $ECHO_C" >&6
15772 cat >conftest.$ac_ext <<_ACEOF
15773 #line $LINENO "configure"
15776 cat confdefs.h >>conftest.$ac_ext
15777 cat >>conftest.$ac_ext <<_ACEOF
15778 /* end confdefs.h. */
15779 /* System header to define __stub macros and hopefully few prototypes,
15780 which can conflict with char $ac_func (); below.
15781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15782 <limits.h> exists even on freestanding compilers. */
15784 # include <limits.h>
15786 # include <assert.h>
15788 /* Override any gcc2 internal prototype to avoid an error. */
15793 /* We use char because int might match the return type of a gcc2
15794 builtin and then its argument prototype would still apply. */
15796 /* The GNU C library defines this for functions which it implements
15797 to always fail with ENOSYS. Some functions are actually named
15798 something starting with __ and the normal name is an alias. */
15799 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15802 char (*f) () = $ac_func;
15811 return f != $ac_func;
15816 rm -f conftest.$ac_objext conftest$ac_exeext
15817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15818 (eval $ac_link) 2>&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); } &&
15822 { ac_try='test -s conftest$ac_exeext'
15823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15824 (eval $ac_try) 2>&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; }; then
15828 eval "$as_ac_var=yes"
15830 echo "$as_me: failed program was:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15833 eval "$as_ac_var=no"
15835 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15837 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15838 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15839 if test `eval echo '${'$as_ac_var'}'` = yes; then
15840 cat >>confdefs.h <<_ACEOF
15841 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15844 echo "$as_me:$LINENO: checking for _doprnt" >&5
15845 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
15846 if test "${ac_cv_func__doprnt+set}" = set; then
15847 echo $ECHO_N "(cached) $ECHO_C" >&6
15849 cat >conftest.$ac_ext <<_ACEOF
15850 #line $LINENO "configure"
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h. */
15856 /* System header to define __stub macros and hopefully few prototypes,
15857 which can conflict with char _doprnt (); below.
15858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15859 <limits.h> exists even on freestanding compilers. */
15861 # include <limits.h>
15863 # include <assert.h>
15865 /* Override any gcc2 internal prototype to avoid an error. */
15870 /* We use char because int might match the return type of a gcc2
15871 builtin and then its argument prototype would still apply. */
15873 /* The GNU C library defines this for functions which it implements
15874 to always fail with ENOSYS. Some functions are actually named
15875 something starting with __ and the normal name is an alias. */
15876 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15879 char (*f) () = _doprnt;
15888 return f != _doprnt;
15893 rm -f conftest.$ac_objext conftest$ac_exeext
15894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15895 (eval $ac_link) 2>&5
15897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15898 (exit $ac_status); } &&
15899 { ac_try='test -s conftest$ac_exeext'
15900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15901 (eval $ac_try) 2>&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); }; }; then
15905 ac_cv_func__doprnt=yes
15907 echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15910 ac_cv_func__doprnt=no
15912 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15914 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
15915 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
15916 if test $ac_cv_func__doprnt = yes; then
15918 cat >>confdefs.h <<\_ACEOF
15919 #define HAVE_DOPRNT 1
15928 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15929 # for constant arguments. Useless!
15930 echo "$as_me:$LINENO: checking for working alloca.h" >&5
15931 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15932 if test "${ac_cv_working_alloca_h+set}" = set; then
15933 echo $ECHO_N "(cached) $ECHO_C" >&6
15935 cat >conftest.$ac_ext <<_ACEOF
15936 #line $LINENO "configure"
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h. */
15942 #include <alloca.h>
15946 char *p = (char *) alloca (2 * sizeof (int));
15951 rm -f conftest.$ac_objext conftest$ac_exeext
15952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15953 (eval $ac_link) 2>&5
15955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956 (exit $ac_status); } &&
15957 { ac_try='test -s conftest$ac_exeext'
15958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15959 (eval $ac_try) 2>&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); }; }; then
15963 ac_cv_working_alloca_h=yes
15965 echo "$as_me: failed program was:" >&5
15966 sed 's/^/| /' conftest.$ac_ext >&5
15968 ac_cv_working_alloca_h=no
15970 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15972 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15973 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15974 if test $ac_cv_working_alloca_h = yes; then
15976 cat >>confdefs.h <<\_ACEOF
15977 #define HAVE_ALLOCA_H 1
15982 echo "$as_me:$LINENO: checking for alloca" >&5
15983 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15984 if test "${ac_cv_func_alloca_works+set}" = set; then
15985 echo $ECHO_N "(cached) $ECHO_C" >&6
15987 cat >conftest.$ac_ext <<_ACEOF
15988 #line $LINENO "configure"
15991 cat confdefs.h >>conftest.$ac_ext
15992 cat >>conftest.$ac_ext <<_ACEOF
15993 /* end confdefs.h. */
15995 # define alloca __builtin_alloca
15998 # include <malloc.h>
15999 # define alloca _alloca
16002 # include <alloca.h>
16007 # ifndef alloca /* predefined by HP cc +Olibcalls */
16018 char *p = (char *) alloca (1);
16023 rm -f conftest.$ac_objext conftest$ac_exeext
16024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16025 (eval $ac_link) 2>&5
16027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); } &&
16029 { ac_try='test -s conftest$ac_exeext'
16030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16031 (eval $ac_try) 2>&5
16033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16034 (exit $ac_status); }; }; then
16035 ac_cv_func_alloca_works=yes
16037 echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16040 ac_cv_func_alloca_works=no
16042 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16044 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16045 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16047 if test $ac_cv_func_alloca_works = yes; then
16049 cat >>confdefs.h <<\_ACEOF
16050 #define HAVE_ALLOCA 1
16054 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16055 # that cause trouble. Some versions do not even contain alloca or
16056 # contain a buggy version. If you still want to use their alloca,
16057 # use ar to extract alloca.o from them instead of compiling alloca.c.
16059 ALLOCA=alloca.$ac_objext
16061 cat >>confdefs.h <<\_ACEOF
16066 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16067 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16068 if test "${ac_cv_os_cray+set}" = set; then
16069 echo $ECHO_N "(cached) $ECHO_C" >&6
16071 cat >conftest.$ac_ext <<_ACEOF
16072 #line $LINENO "configure"
16075 cat confdefs.h >>conftest.$ac_ext
16076 cat >>conftest.$ac_ext <<_ACEOF
16077 /* end confdefs.h. */
16078 #if defined(CRAY) && ! defined(CRAY2)
16085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16086 $EGREP "webecray" >/dev/null 2>&1; then
16094 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16095 echo "${ECHO_T}$ac_cv_os_cray" >&6
16096 if test $ac_cv_os_cray = yes; then
16097 for ac_func in _getb67 GETB67 getb67; do
16098 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16099 echo "$as_me:$LINENO: checking for $ac_func" >&5
16100 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16101 if eval "test \"\${$as_ac_var+set}\" = set"; then
16102 echo $ECHO_N "(cached) $ECHO_C" >&6
16104 cat >conftest.$ac_ext <<_ACEOF
16105 #line $LINENO "configure"
16108 cat confdefs.h >>conftest.$ac_ext
16109 cat >>conftest.$ac_ext <<_ACEOF
16110 /* end confdefs.h. */
16111 /* System header to define __stub macros and hopefully few prototypes,
16112 which can conflict with char $ac_func (); below.
16113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16114 <limits.h> exists even on freestanding compilers. */
16116 # include <limits.h>
16118 # include <assert.h>
16120 /* Override any gcc2 internal prototype to avoid an error. */
16125 /* We use char because int might match the return type of a gcc2
16126 builtin and then its argument prototype would still apply. */
16128 /* The GNU C library defines this for functions which it implements
16129 to always fail with ENOSYS. Some functions are actually named
16130 something starting with __ and the normal name is an alias. */
16131 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16134 char (*f) () = $ac_func;
16143 return f != $ac_func;
16148 rm -f conftest.$ac_objext conftest$ac_exeext
16149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16150 (eval $ac_link) 2>&5
16152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16153 (exit $ac_status); } &&
16154 { ac_try='test -s conftest$ac_exeext'
16155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16156 (eval $ac_try) 2>&5
16158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16159 (exit $ac_status); }; }; then
16160 eval "$as_ac_var=yes"
16162 echo "$as_me: failed program was:" >&5
16163 sed 's/^/| /' conftest.$ac_ext >&5
16165 eval "$as_ac_var=no"
16167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16170 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16171 if test `eval echo '${'$as_ac_var'}'` = yes; then
16173 cat >>confdefs.h <<_ACEOF
16174 #define CRAY_STACKSEG_END $ac_func
16183 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16184 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16185 if test "${ac_cv_c_stack_direction+set}" = set; then
16186 echo $ECHO_N "(cached) $ECHO_C" >&6
16188 if test "$cross_compiling" = yes; then
16189 ac_cv_c_stack_direction=0
16191 cat >conftest.$ac_ext <<_ACEOF
16192 #line $LINENO "configure"
16195 cat confdefs.h >>conftest.$ac_ext
16196 cat >>conftest.$ac_ext <<_ACEOF
16197 /* end confdefs.h. */
16199 find_stack_direction ()
16201 static char *addr = 0;
16206 return find_stack_direction ();
16209 return (&dummy > addr) ? 1 : -1;
16215 exit (find_stack_direction () < 0);
16218 rm -f conftest$ac_exeext
16219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16220 (eval $ac_link) 2>&5
16222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16225 (eval $ac_try) 2>&5
16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16228 (exit $ac_status); }; }; then
16229 ac_cv_c_stack_direction=1
16231 echo "$as_me: program exited with status $ac_status" >&5
16232 echo "$as_me: failed program was:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16235 ( exit $ac_status )
16236 ac_cv_c_stack_direction=-1
16238 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16241 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16242 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16244 cat >>confdefs.h <<_ACEOF
16245 #define STACK_DIRECTION $ac_cv_c_stack_direction
16251 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16252 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16253 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16254 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16255 echo $ECHO_N "(cached) $ECHO_C" >&6
16257 ac_check_lib_save_LIBS=$LIBS
16259 cat >conftest.$ac_ext <<_ACEOF
16260 #line $LINENO "configure"
16263 cat confdefs.h >>conftest.$ac_ext
16264 cat >>conftest.$ac_ext <<_ACEOF
16265 /* end confdefs.h. */
16267 /* Override any gcc2 internal prototype to avoid an error. */
16271 /* We use char because int might match the return type of a gcc2
16272 builtin and then its argument prototype would still apply. */
16282 rm -f conftest.$ac_objext conftest$ac_exeext
16283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16284 (eval $ac_link) 2>&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); } &&
16288 { ac_try='test -s conftest$ac_exeext'
16289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290 (eval $ac_try) 2>&5
16292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293 (exit $ac_status); }; }; then
16294 ac_cv_lib_sun_getmntent=yes
16296 echo "$as_me: failed program was:" >&5
16297 sed 's/^/| /' conftest.$ac_ext >&5
16299 ac_cv_lib_sun_getmntent=no
16301 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16302 LIBS=$ac_check_lib_save_LIBS
16304 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16305 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16306 if test $ac_cv_lib_sun_getmntent = yes; then
16309 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16310 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16311 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16312 echo $ECHO_N "(cached) $ECHO_C" >&6
16314 ac_check_lib_save_LIBS=$LIBS
16316 cat >conftest.$ac_ext <<_ACEOF
16317 #line $LINENO "configure"
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h. */
16324 /* Override any gcc2 internal prototype to avoid an error. */
16328 /* We use char because int might match the return type of a gcc2
16329 builtin and then its argument prototype would still apply. */
16339 rm -f conftest.$ac_objext conftest$ac_exeext
16340 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16341 (eval $ac_link) 2>&5
16343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16344 (exit $ac_status); } &&
16345 { ac_try='test -s conftest$ac_exeext'
16346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16347 (eval $ac_try) 2>&5
16349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16350 (exit $ac_status); }; }; then
16351 ac_cv_lib_seq_getmntent=yes
16353 echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16356 ac_cv_lib_seq_getmntent=no
16358 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16359 LIBS=$ac_check_lib_save_LIBS
16361 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16362 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16363 if test $ac_cv_lib_seq_getmntent = yes; then
16366 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16367 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16368 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16369 echo $ECHO_N "(cached) $ECHO_C" >&6
16371 ac_check_lib_save_LIBS=$LIBS
16373 cat >conftest.$ac_ext <<_ACEOF
16374 #line $LINENO "configure"
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h. */
16381 /* Override any gcc2 internal prototype to avoid an error. */
16385 /* We use char because int might match the return type of a gcc2
16386 builtin and then its argument prototype would still apply. */
16396 rm -f conftest.$ac_objext conftest$ac_exeext
16397 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16398 (eval $ac_link) 2>&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); } &&
16402 { ac_try='test -s conftest$ac_exeext'
16403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16404 (eval $ac_try) 2>&5
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); }; }; then
16408 ac_cv_lib_gen_getmntent=yes
16410 echo "$as_me: failed program was:" >&5
16411 sed 's/^/| /' conftest.$ac_ext >&5
16413 ac_cv_lib_gen_getmntent=no
16415 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16416 LIBS=$ac_check_lib_save_LIBS
16418 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16419 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16420 if test $ac_cv_lib_gen_getmntent = yes; then
16429 for ac_func in getmntent
16431 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16432 echo "$as_me:$LINENO: checking for $ac_func" >&5
16433 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16434 if eval "test \"\${$as_ac_var+set}\" = set"; then
16435 echo $ECHO_N "(cached) $ECHO_C" >&6
16437 cat >conftest.$ac_ext <<_ACEOF
16438 #line $LINENO "configure"
16441 cat confdefs.h >>conftest.$ac_ext
16442 cat >>conftest.$ac_ext <<_ACEOF
16443 /* end confdefs.h. */
16444 /* System header to define __stub macros and hopefully few prototypes,
16445 which can conflict with char $ac_func (); below.
16446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16447 <limits.h> exists even on freestanding compilers. */
16449 # include <limits.h>
16451 # include <assert.h>
16453 /* Override any gcc2 internal prototype to avoid an error. */
16458 /* We use char because int might match the return type of a gcc2
16459 builtin and then its argument prototype would still apply. */
16461 /* The GNU C library defines this for functions which it implements
16462 to always fail with ENOSYS. Some functions are actually named
16463 something starting with __ and the normal name is an alias. */
16464 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16467 char (*f) () = $ac_func;
16476 return f != $ac_func;
16481 rm -f conftest.$ac_objext conftest$ac_exeext
16482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16483 (eval $ac_link) 2>&5
16485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } &&
16487 { ac_try='test -s conftest$ac_exeext'
16488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16489 (eval $ac_try) 2>&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; }; then
16493 eval "$as_ac_var=yes"
16495 echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16498 eval "$as_ac_var=no"
16500 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16502 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16503 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16504 if test `eval echo '${'$as_ac_var'}'` = yes; then
16505 cat >>confdefs.h <<_ACEOF
16506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16513 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16514 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16515 if test "${ac_cv_func_closedir_void+set}" = set; then
16516 echo $ECHO_N "(cached) $ECHO_C" >&6
16518 if test "$cross_compiling" = yes; then
16519 ac_cv_func_closedir_void=yes
16521 cat >conftest.$ac_ext <<_ACEOF
16522 #line $LINENO "configure"
16525 cat confdefs.h >>conftest.$ac_ext
16526 cat >>conftest.$ac_ext <<_ACEOF
16527 /* end confdefs.h. */
16528 $ac_includes_default
16529 #include <$ac_header_dirent>
16530 #ifndef __cplusplus
16537 exit (closedir (opendir (".")) != 0);
16542 rm -f conftest$ac_exeext
16543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16544 (eval $ac_link) 2>&5
16546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16549 (eval $ac_try) 2>&5
16551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16552 (exit $ac_status); }; }; then
16553 ac_cv_func_closedir_void=no
16555 echo "$as_me: program exited with status $ac_status" >&5
16556 echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16559 ( exit $ac_status )
16560 ac_cv_func_closedir_void=yes
16562 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16565 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
16566 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
16567 if test $ac_cv_func_closedir_void = yes; then
16569 cat >>confdefs.h <<\_ACEOF
16570 #define CLOSEDIR_VOID 1
16575 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16576 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16577 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16578 echo $ECHO_N "(cached) $ECHO_C" >&6
16580 if test "$cross_compiling" = yes; then
16581 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16582 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16583 { (exit 1); exit 1; }; }
16585 cat >conftest.$ac_ext <<_ACEOF
16586 #line $LINENO "configure"
16589 cat confdefs.h >>conftest.$ac_ext
16590 cat >>conftest.$ac_ext <<_ACEOF
16591 /* end confdefs.h. */
16593 # include <unistd.h>
16599 /* If this system has a BSD-style setpgrp which takes arguments,
16600 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16601 exit successfully. */
16602 exit (setpgrp (1,1) == -1 ? 0 : 1);
16607 rm -f conftest$ac_exeext
16608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16609 (eval $ac_link) 2>&5
16611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16614 (eval $ac_try) 2>&5
16616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16617 (exit $ac_status); }; }; then
16618 ac_cv_func_setpgrp_void=no
16620 echo "$as_me: program exited with status $ac_status" >&5
16621 echo "$as_me: failed program was:" >&5
16622 sed 's/^/| /' conftest.$ac_ext >&5
16624 ( exit $ac_status )
16625 ac_cv_func_setpgrp_void=yes
16627 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16630 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16631 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16632 if test $ac_cv_func_setpgrp_void = yes; then
16634 cat >>confdefs.h <<\_ACEOF
16635 #define SETPGRP_VOID 1
16639 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
16640 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
16641 if test "${ac_cv_func_fnmatch_works+set}" = set; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16644 # Some versions of Solaris, SCO, and the GNU C Library
16645 # have a broken or incompatible fnmatch.
16646 # So we run a test program. If we are cross-compiling, take no chance.
16647 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
16648 if test "$cross_compiling" = yes; then
16649 ac_cv_func_fnmatch_works=cross
16651 cat >conftest.$ac_ext <<_ACEOF
16652 #line $LINENO "configure"
16655 cat confdefs.h >>conftest.$ac_ext
16656 cat >>conftest.$ac_ext <<_ACEOF
16657 /* end confdefs.h. */
16658 #include <fnmatch.h>
16659 # define y(a, b, c) (fnmatch (a, b, c) == 0)
16660 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
16666 (!(y ("a*", "abc", 0)
16667 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
16668 && y ("a\\\\bc", "abc", 0)
16669 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
16670 && y ("*x", ".x", 0)
16671 && n ("*x", ".x", FNM_PERIOD)
16677 rm -f conftest$ac_exeext
16678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16679 (eval $ac_link) 2>&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16684 (eval $ac_try) 2>&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); }; }; then
16688 ac_cv_func_fnmatch_works=yes
16690 echo "$as_me: program exited with status $ac_status" >&5
16691 echo "$as_me: failed program was:" >&5
16692 sed 's/^/| /' conftest.$ac_ext >&5
16694 ( exit $ac_status )
16695 ac_cv_func_fnmatch_works=no
16697 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16700 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
16701 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
16702 if test $ac_cv_func_fnmatch_works = yes; then
16704 cat >>confdefs.h <<\_ACEOF
16705 #define HAVE_FNMATCH 1
16714 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
16715 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
16716 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
16717 echo $ECHO_N "(cached) $ECHO_C" >&6
16719 ac_check_lib_save_LIBS=$LIBS
16720 LIBS="-lxpg4 $LIBS"
16721 cat >conftest.$ac_ext <<_ACEOF
16722 #line $LINENO "configure"
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h. */
16729 /* Override any gcc2 internal prototype to avoid an error. */
16733 /* We use char because int might match the return type of a gcc2
16734 builtin and then its argument prototype would still apply. */
16744 rm -f conftest.$ac_objext conftest$ac_exeext
16745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16746 (eval $ac_link) 2>&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); } &&
16750 { ac_try='test -s conftest$ac_exeext'
16751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16752 (eval $ac_try) 2>&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; }; then
16756 ac_cv_lib_xpg4_setlocale=yes
16758 echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16761 ac_cv_lib_xpg4_setlocale=no
16763 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16764 LIBS=$ac_check_lib_save_LIBS
16766 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
16767 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
16768 if test $ac_cv_lib_xpg4_setlocale = yes; then
16769 LIBS="$LIBS -lxpg4"
16775 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
16776 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
16777 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
16778 echo $ECHO_N "(cached) $ECHO_C" >&6
16780 ac_check_lib_save_LIBS=$LIBS
16782 cat >conftest.$ac_ext <<_ACEOF
16783 #line $LINENO "configure"
16786 cat confdefs.h >>conftest.$ac_ext
16787 cat >>conftest.$ac_ext <<_ACEOF
16788 /* end confdefs.h. */
16790 /* Override any gcc2 internal prototype to avoid an error. */
16794 /* We use char because int might match the return type of a gcc2
16795 builtin and then its argument prototype would still apply. */
16805 rm -f conftest.$ac_objext conftest$ac_exeext
16806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16807 (eval $ac_link) 2>&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); } &&
16811 { ac_try='test -s conftest$ac_exeext'
16812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16813 (eval $ac_try) 2>&5
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); }; }; then
16817 ac_cv_lib_sun_getpwnam=yes
16819 echo "$as_me: failed program was:" >&5
16820 sed 's/^/| /' conftest.$ac_ext >&5
16822 ac_cv_lib_sun_getpwnam=no
16824 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16825 LIBS=$ac_check_lib_save_LIBS
16827 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
16828 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
16829 if test $ac_cv_lib_sun_getpwnam = yes; then
16830 cat >>confdefs.h <<_ACEOF
16831 #define HAVE_LIBSUN 1
16840 for ac_header in zlib.h
16842 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16843 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16844 echo "$as_me:$LINENO: checking for $ac_header" >&5
16845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16846 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16849 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16850 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16852 # Is the header compilable?
16853 echo "$as_me:$LINENO: checking $ac_header usability" >&5
16854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
16855 cat >conftest.$ac_ext <<_ACEOF
16856 #line $LINENO "configure"
16859 cat confdefs.h >>conftest.$ac_ext
16860 cat >>conftest.$ac_ext <<_ACEOF
16861 /* end confdefs.h. */
16862 $ac_includes_default
16863 #include <$ac_header>
16865 rm -f conftest.$ac_objext
16866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16867 (eval $ac_compile) 2>&5
16869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16870 (exit $ac_status); } &&
16871 { ac_try='test -s conftest.$ac_objext'
16872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16873 (eval $ac_try) 2>&5
16875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16876 (exit $ac_status); }; }; then
16877 ac_header_compiler=yes
16879 echo "$as_me: failed program was:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16882 ac_header_compiler=no
16884 rm -f conftest.$ac_objext conftest.$ac_ext
16885 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16886 echo "${ECHO_T}$ac_header_compiler" >&6
16888 # Is the header present?
16889 echo "$as_me:$LINENO: checking $ac_header presence" >&5
16890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
16891 cat >conftest.$ac_ext <<_ACEOF
16892 #line $LINENO "configure"
16895 cat confdefs.h >>conftest.$ac_ext
16896 cat >>conftest.$ac_ext <<_ACEOF
16897 /* end confdefs.h. */
16898 #include <$ac_header>
16900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16903 grep -v '^ *+' conftest.er1 >conftest.err
16905 cat conftest.err >&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } >/dev/null; then
16908 if test -s conftest.err; then
16909 ac_cpp_err=$ac_c_preproc_warn_flag
16916 if test -z "$ac_cpp_err"; then
16917 ac_header_preproc=yes
16919 echo "$as_me: failed program was:" >&5
16920 sed 's/^/| /' conftest.$ac_ext >&5
16922 ac_header_preproc=no
16924 rm -f conftest.err conftest.$ac_ext
16925 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16926 echo "${ECHO_T}$ac_header_preproc" >&6
16928 # So? What about this header?
16929 case $ac_header_compiler:$ac_header_preproc in
16931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16937 ## ------------------------------------ ##
16938 ## Report this to bug-autoconf@gnu.org. ##
16939 ## ------------------------------------ ##
16942 sed "s/^/$as_me: WARNING: /" >&2
16945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16953 ## ------------------------------------ ##
16954 ## Report this to bug-autoconf@gnu.org. ##
16955 ## ------------------------------------ ##
16958 sed "s/^/$as_me: WARNING: /" >&2
16961 echo "$as_me:$LINENO: checking for $ac_header" >&5
16962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
16964 echo $ECHO_N "(cached) $ECHO_C" >&6
16966 eval "$as_ac_Header=$ac_header_preproc"
16968 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16969 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16972 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16973 cat >>confdefs.h <<_ACEOF
16974 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16981 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
16982 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
16983 if test "${ac_cv_lib_z_deflate+set}" = set; then
16984 echo $ECHO_N "(cached) $ECHO_C" >&6
16986 ac_check_lib_save_LIBS=$LIBS
16988 cat >conftest.$ac_ext <<_ACEOF
16989 #line $LINENO "configure"
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16996 /* Override any gcc2 internal prototype to avoid an error. */
17000 /* We use char because int might match the return type of a gcc2
17001 builtin and then its argument prototype would still apply. */
17011 rm -f conftest.$ac_objext conftest$ac_exeext
17012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17013 (eval $ac_link) 2>&5
17015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016 (exit $ac_status); } &&
17017 { ac_try='test -s conftest$ac_exeext'
17018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17019 (eval $ac_try) 2>&5
17021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022 (exit $ac_status); }; }; then
17023 ac_cv_lib_z_deflate=yes
17025 echo "$as_me: failed program was:" >&5
17026 sed 's/^/| /' conftest.$ac_ext >&5
17028 ac_cv_lib_z_deflate=no
17030 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17031 LIBS=$ac_check_lib_save_LIBS
17033 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17034 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17035 if test $ac_cv_lib_z_deflate = yes; then
17040 if test x$FDLIBS = x-lz; then
17041 cat >>confdefs.h <<\_ACEOF
17042 #define HAVE_LIBZ 1
17049 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17050 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17051 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17052 echo $ECHO_N "(cached) $ECHO_C" >&6
17054 ac_check_lib_save_LIBS=$LIBS
17055 LIBS="-lpthread $LIBS"
17056 cat >conftest.$ac_ext <<_ACEOF
17057 #line $LINENO "configure"
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h. */
17064 /* Override any gcc2 internal prototype to avoid an error. */
17068 /* We use char because int might match the return type of a gcc2
17069 builtin and then its argument prototype would still apply. */
17070 char pthread_create ();
17079 rm -f conftest.$ac_objext conftest$ac_exeext
17080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17081 (eval $ac_link) 2>&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } &&
17085 { ac_try='test -s conftest$ac_exeext'
17086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17087 (eval $ac_try) 2>&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; }; then
17091 ac_cv_lib_pthread_pthread_create=yes
17093 echo "$as_me: failed program was:" >&5
17094 sed 's/^/| /' conftest.$ac_ext >&5
17096 ac_cv_lib_pthread_pthread_create=no
17098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17099 LIBS=$ac_check_lib_save_LIBS
17101 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17102 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17103 if test $ac_cv_lib_pthread_pthread_create = yes; then
17104 PTHREAD_LIB="-lpthread"
17106 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17107 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17108 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17109 echo $ECHO_N "(cached) $ECHO_C" >&6
17111 ac_check_lib_save_LIBS=$LIBS
17112 LIBS="-lpthreads $LIBS"
17113 cat >conftest.$ac_ext <<_ACEOF
17114 #line $LINENO "configure"
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
17119 /* end confdefs.h. */
17121 /* Override any gcc2 internal prototype to avoid an error. */
17125 /* We use char because int might match the return type of a gcc2
17126 builtin and then its argument prototype would still apply. */
17127 char pthread_create ();
17136 rm -f conftest.$ac_objext conftest$ac_exeext
17137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17138 (eval $ac_link) 2>&5
17140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17141 (exit $ac_status); } &&
17142 { ac_try='test -s conftest$ac_exeext'
17143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17144 (eval $ac_try) 2>&5
17146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17147 (exit $ac_status); }; }; then
17148 ac_cv_lib_pthreads_pthread_create=yes
17150 echo "$as_me: failed program was:" >&5
17151 sed 's/^/| /' conftest.$ac_ext >&5
17153 ac_cv_lib_pthreads_pthread_create=no
17155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17156 LIBS=$ac_check_lib_save_LIBS
17158 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17159 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17160 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17161 PTHREAD_LIB="-lpthreads"
17163 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17164 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17165 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17166 echo $ECHO_N "(cached) $ECHO_C" >&6
17168 ac_check_lib_save_LIBS=$LIBS
17170 cat >conftest.$ac_ext <<_ACEOF
17171 #line $LINENO "configure"
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h. */
17178 /* Override any gcc2 internal prototype to avoid an error. */
17182 /* We use char because int might match the return type of a gcc2
17183 builtin and then its argument prototype would still apply. */
17184 char pthread_create ();
17193 rm -f conftest.$ac_objext conftest$ac_exeext
17194 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17195 (eval $ac_link) 2>&5
17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17198 (exit $ac_status); } &&
17199 { ac_try='test -s conftest$ac_exeext'
17200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17201 (eval $ac_try) 2>&5
17203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204 (exit $ac_status); }; }; then
17205 ac_cv_lib_c_r_pthread_create=yes
17207 echo "$as_me: failed program was:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17210 ac_cv_lib_c_r_pthread_create=no
17212 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17213 LIBS=$ac_check_lib_save_LIBS
17215 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17216 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17217 if test $ac_cv_lib_c_r_pthread_create = yes; then
17218 PTHREAD_LIB="-lc_r"
17220 echo "$as_me:$LINENO: checking for pthread_create" >&5
17221 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17222 if test "${ac_cv_func_pthread_create+set}" = set; then
17223 echo $ECHO_N "(cached) $ECHO_C" >&6
17225 cat >conftest.$ac_ext <<_ACEOF
17226 #line $LINENO "configure"
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h. */
17232 /* System header to define __stub macros and hopefully few prototypes,
17233 which can conflict with char pthread_create (); below.
17234 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17235 <limits.h> exists even on freestanding compilers. */
17237 # include <limits.h>
17239 # include <assert.h>
17241 /* Override any gcc2 internal prototype to avoid an error. */
17246 /* We use char because int might match the return type of a gcc2
17247 builtin and then its argument prototype would still apply. */
17248 char pthread_create ();
17249 /* The GNU C library defines this for functions which it implements
17250 to always fail with ENOSYS. Some functions are actually named
17251 something starting with __ and the normal name is an alias. */
17252 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17255 char (*f) () = pthread_create;
17264 return f != pthread_create;
17269 rm -f conftest.$ac_objext conftest$ac_exeext
17270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17271 (eval $ac_link) 2>&5
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); } &&
17275 { ac_try='test -s conftest$ac_exeext'
17276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; }; then
17281 ac_cv_func_pthread_create=yes
17283 echo "$as_me: failed program was:" >&5
17284 sed 's/^/| /' conftest.$ac_ext >&5
17286 ac_cv_func_pthread_create=no
17288 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17290 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17291 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17304 cat >>confdefs.h <<\_ACEOF
17310 CFLAGS=${CFLAGS--O}
17311 LDFLAGS=${LDFLAGS--O}
17312 DB_LIBS="${SQL_LFLAGS}"
17314 CPPFLAGS="$CPPFLAGS"
17339 # Finally we set appropriate distribution specific
17340 # variables and defaults
17342 # PFILES are platform specific files
17343 PFILES="platforms/Makefile"
17346 hostname=`uname -n`
17347 case "$DISTNAME" in
17350 PSCMD="ps -e -o pid,comm"
17351 PFILES="${PFILES} \
17352 platforms/aix/Makefile"
17353 TAPEDRIVE="/dev/rmt0.1"
17357 PTHREAD_LIB="-lpthread -lexc"
17358 if test "${CC}" = "gcc" ; then
17365 TAPEDRIVE="/dev/nrmt0"
17368 DISTVER=`uname -a |awk '{print $3}'`
17369 TAPEDRIVE="/dev/nrmt0"
17370 PTHREAD_LIB="-pthread"
17371 CFLAGS="${CFLAGS} -pthread"
17372 PSCMD="ps -x -o pid,command"
17375 PFILES="${PFILES} \
17376 platforms/bsdi/Makefile \
17377 platforms/bsdi/bacula-fd \
17378 platforms/bsdi/bacula-sd \
17379 platforms/bsdi/bacula-dir"
17380 hostname=`hostname -s`
17381 largefile_support="yes"
17384 DISTVER=`uname -a |awk '{print $3}'`
17385 TAPEDRIVE="/dev/nrst0"
17387 WCFLAGS="-mwindows"
17388 WLDFLAGS="-mwindows"
17392 TAPEDRIVE="/dev/nst0"
17393 PSCMD="ps -e -o pid,command"
17394 hostname=`hostname -s`
17395 PFILES="${PFILES} \
17396 platforms/darwin/Makefile"
17399 DISTVER=`cat /etc/debian_version`
17400 TAPEDRIVE="/dev/nrst0"
17401 PSCMD="ps -e -o pid,command"
17402 hostname=`hostname -s`
17405 DISTVER=`uname -a |awk '{print $3}'`
17406 VER=`echo $DISTVER | cut -c 1`
17407 if test x$VER = x4 ; then
17408 PTHREAD_LIB="-pthread"
17409 CFLAGS="${CFLAGS} -pthread"
17413 TAPEDRIVE="/dev/nrsa0"
17414 PSCMD="ps -x -o pid,command"
17415 PFILES="${PFILES} \
17416 platforms/freebsd/Makefile \
17417 platforms/freebsd/bacula-fd \
17418 platforms/freebsd/bacula-sd \
17419 platforms/freebsd/bacula-dir"
17420 hostname=`hostname -s`
17421 largefile_support="yes"
17425 TAPEDRIVE="/dev/rmt/0hnb"
17429 TAPEDRIVE="/dev/rmt/0cbn"
17430 PSCMD="ps -e -o pid,comm"
17431 PFILES="${PFILES} \
17432 platforms/irix/Makefile \
17433 platforms/irix/bacula-fd \
17434 platforms/irix/bacula-sd \
17435 platforms/irix/bacula-dir"
17438 DISTVER=`uname -a |awk '{print $3}'`
17441 TAPEDRIVE="/dev/nrst0"
17442 PSCMD="ps -a -o pid,command"
17443 PTHREAD_LIB="-pthread"
17444 CFLAGS="${CFLAGS} -pthread"
17447 DISTVER=`uname -a |awk '{print $3}'`
17450 TAPEDRIVE="/dev/nrst0"
17451 PSCMD="ps -a -o pid,command"
17452 PTHREAD_LIB="-pthread"
17453 CFLAGS="${CFLAGS} -pthread"
17454 PFILES="${PFILES} \
17455 platforms/openbsd/Makefile \
17456 platforms/openbsd/bacula-fd \
17457 platforms/openbsd/bacula-sd \
17458 platforms/openbsd/bacula-dir"
17461 DISTVER=`cat /etc/redhat-release | grep release |\
17463 TAPEDRIVE="/dev/nst0"
17464 PSCMD="ps -e -o pid,command"
17465 PFILES="${PFILES} \
17466 platforms/redhat/Makefile \
17467 platforms/redhat/bacula-fd \
17468 platforms/redhat/bacula-sd \
17469 platforms/redhat/bacula-dir \
17470 platforms/redhat/bacula.spec \
17472 hostname=`hostname -s`
17475 DISTVER=`cat /etc/mandrake-release | grep release |\
17477 TAPEDRIVE="/dev/nst0"
17478 PSCMD="ps -e -o pid,command"
17479 PFILES="${PFILES} \
17480 platforms/mandrake/Makefile \
17481 platforms/mandrake/bacula-fd \
17482 platforms/mandrake/bacula-sd \
17483 platforms/mandrake/bacula-dir \
17484 platforms/mandrake/bacula.spec \
17486 hostname=`hostname -s`
17489 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17490 TAPEDRIVE="/dev/nst0"
17491 PSCMD="ps -e -o pid,command"
17492 PFILES="${PFILES} \
17493 platforms/gentoo/Makefile \
17494 platforms/gentoo/bacula-fd \
17495 platforms/gentoo/bacula-sd \
17496 platforms/gentoo/bacula-dir"
17497 hostname=`hostname -s`
17501 DISTVER=`cat /etc/slackware-version`
17502 TAPEDRIVE="/dev/nst0"
17503 PSCMD="ps -e -o pid,command"
17504 hostname=`hostname -s`
17508 TAPEDRIVE="/dev/rmt/0cbn"
17509 PSCMD="ps -e -o pid,comm"
17510 PFILES="${PFILES} \
17511 platforms/solaris/Makefile \
17512 platforms/solaris/bacula-fd \
17513 platforms/solaris/bacula-sd \
17514 platforms/solaris/bacula-dir"
17515 if test x$DISTVER = x5.6 ; then
17516 cat >>confdefs.h <<\_ACEOF
17517 #define HAVE_OLD_SOCKOPT 1
17523 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17525 TAPEDRIVE="/dev/nst0"
17526 PSCMD="ps -e -o pid,command"
17527 hostname=`hostname -s`
17532 TAPEDRIVE="/dev/nst0"
17533 PSCMD="ps -e -o pid,command"
17534 hostname=`hostname -s`
17538 TAPEDRIVE="/dev/nst0"
17541 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
17547 LIBS="$PTHREAD_LIB $LIBS"
17549 cat >>confdefs.h <<_ACEOF
17553 cat >>confdefs.h <<_ACEOF
17563 MCOMMON=./autoconf/Make.common
17566 if test "x${subsysdir}" = "x${sbindir}" ; then
17569 echo "You have set both --sbindir and --with-subsys-dir"
17570 echo " equal to: ${subsysdir} "
17571 echo "This is not permitted. Please reconfigure."
17573 echo "Aborting configuration ..."
17579 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/bconsole 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/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/tconsole/Makefile src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/make_mysql_tables src/cats/drop_mysql_tables src/cats/update_mysql_tables src/cats/create_mysql_database src/cats/grant_mysql_privileges src/cats/make_sqlite_tables src/cats/drop_sqlite_tables src/cats/update_sqlite_tables src/cats/create_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/make_bdb_tables src/cats/drop_bdb_tables src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/update_bacula_tables src/findlib/Makefile src/tools/Makefile $PFILES"
17580 ac_config_commands="$ac_config_commands default"
17581 cat >confcache <<\_ACEOF
17582 # This file is a shell script that caches the results of configure
17583 # tests run on this system so they can be shared between configure
17584 # scripts and configure runs, see configure's option --config-cache.
17585 # It is not useful on other systems. If it contains results you don't
17586 # want to keep, you may remove or edit it.
17588 # config.status only pays attention to the cache file if you give it
17589 # the --recheck option to rerun configure.
17591 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17592 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17593 # following values.
17597 # The following way of writing the cache mishandles newlines in values,
17598 # but we know of no workaround that is simple, portable, and efficient.
17599 # So, don't put newlines in cache variables' values.
17600 # Ultrix sh set writes to stderr and can't be redirected directly,
17601 # and sets the high bit in the cache file unless we assign to the vars.
17604 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17606 # `set' does not quote correctly, so add quotes (double-quote
17607 # substitution turns \\\\ into \\, and sed turns \\ into \).
17610 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17613 # `set' quotes correctly as required by POSIX, so do not add quotes.
17615 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17622 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17624 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17626 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17627 if test -w $cache_file; then
17628 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17629 cat confcache >$cache_file
17631 echo "not updating unwritable cache $cache_file"
17636 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17637 # Let make expand exec_prefix.
17638 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17640 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17641 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17642 # trailing colons and then remove the whole line if VPATH becomes empty
17643 # (actually we leave an empty line to preserve line numbers).
17644 if test "x$srcdir" = x.; then
17645 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17646 s/:*\$(srcdir):*/:/;
17647 s/:*\${srcdir}:*/:/;
17649 s/^\([^=]*=[ ]*\):*/\1/;
17655 DEFS=-DHAVE_CONFIG_H
17659 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17660 # 1. Remove the extension, and $U if already installed.
17661 ac_i=`echo "$ac_i" |
17662 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17664 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17665 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17667 LIBOBJS=$ac_libobjs
17669 LTLIBOBJS=$ac_ltlibobjs
17673 : ${CONFIG_STATUS=./config.status}
17674 ac_clean_files_save=$ac_clean_files
17675 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17676 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17677 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17678 cat >$CONFIG_STATUS <<_ACEOF
17680 # Generated by $as_me.
17681 # Run this file to recreate the current configuration.
17682 # Compiler output produced by configure, useful for debugging
17683 # configure, is in config.log if it exists.
17686 ac_cs_recheck=false
17688 SHELL=\${CONFIG_SHELL-$SHELL}
17691 cat >>$CONFIG_STATUS <<\_ACEOF
17692 ## --------------------- ##
17693 ## M4sh Initialization. ##
17694 ## --------------------- ##
17696 # Be Bourne compatible
17697 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17700 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17701 # is contrary to our usage. Disable this feature.
17702 alias -g '${1+"$@"}'='"$@"'
17703 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
17707 # Support unset when possible.
17708 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
17715 # Work around bugs in pre-3.0 UWIN ksh.
17716 $as_unset ENV MAIL MAILPATH
17723 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
17724 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
17725 LC_TELEPHONE LC_TIME
17727 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
17728 eval $as_var=C; export $as_var
17734 # Required to use basename.
17735 if expr a : '\(a\)' >/dev/null 2>&1; then
17741 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
17742 as_basename=basename
17748 # Name of the executable.
17749 as_me=`$as_basename "$0" ||
17750 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17751 X"$0" : 'X\(//\)$' \| \
17752 X"$0" : 'X\(/\)$' \| \
17753 . : '\(.\)' 2>/dev/null ||
17755 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
17756 /^X\/\(\/\/\)$/{ s//\1/; q; }
17757 /^X\/\(\/\).*/{ s//\1/; q; }
17761 # PATH needs CR, and LINENO needs CR and PATH.
17762 # Avoid depending upon Character Ranges.
17763 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17764 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17765 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17766 as_cr_digits='0123456789'
17767 as_cr_alnum=$as_cr_Letters$as_cr_digits
17769 # The user is always right.
17770 if test "${PATH_SEPARATOR+set}" != set; then
17771 echo "#! /bin/sh" >conf$$.sh
17772 echo "exit 0" >>conf$$.sh
17774 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17783 as_lineno_1=$LINENO
17784 as_lineno_2=$LINENO
17785 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17786 test "x$as_lineno_1" != "x$as_lineno_2" &&
17787 test "x$as_lineno_3" = "x$as_lineno_2" || {
17788 # Find who we are. Look in the path if we contain no path at all
17791 *[\\/]* ) as_myself=$0 ;;
17792 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17793 for as_dir in $PATH
17796 test -z "$as_dir" && as_dir=.
17797 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17802 # We did not find ourselves, most probably we were run as `sh COMMAND'
17803 # in which case we are not to be found in the path.
17804 if test "x$as_myself" = x; then
17807 if test ! -f "$as_myself"; then
17808 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
17809 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
17810 { (exit 1); exit 1; }; }
17812 case $CONFIG_SHELL in
17814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17815 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
17818 test -z "$as_dir" && as_dir=.
17819 for as_base in sh bash ksh sh5; do
17822 if ("$as_dir/$as_base" -c '
17823 as_lineno_1=$LINENO
17824 as_lineno_2=$LINENO
17825 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
17826 test "x$as_lineno_1" != "x$as_lineno_2" &&
17827 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
17828 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
17829 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
17830 CONFIG_SHELL=$as_dir/$as_base
17831 export CONFIG_SHELL
17832 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
17840 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17841 # uniformly replaced by the line number. The first 'sed' inserts a
17842 # line-number line before each line; the second 'sed' does the real
17843 # work. The second script uses 'N' to pair each line-number line
17844 # with the numbered line, and appends trailing '-' during
17845 # substitution so that $LINENO is not a special case at line end.
17846 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17847 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
17848 sed '=' <$as_myself |
17853 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
17856 s,^['$as_cr_digits']*\n,,
17857 ' >$as_me.lineno &&
17858 chmod +x $as_me.lineno ||
17859 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
17860 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
17861 { (exit 1); exit 1; }; }
17863 # Don't try to exec as it changes $[0], causing all sort of problems
17864 # (the dirname of $[0] is not the place where we might find the
17865 # original and so on. Autoconf is especially sensible to this).
17867 # Exit status is that of the last command.
17872 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
17873 *c*,-n*) ECHO_N= ECHO_C='
17875 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
17876 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
17879 if expr a : '\(a\)' >/dev/null 2>&1; then
17885 rm -f conf$$ conf$$.exe conf$$.file
17887 if ln -s conf$$.file conf$$ 2>/dev/null; then
17888 # We could just check for DJGPP; but this test a) works b) is more generic
17889 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
17890 if test -f conf$$.exe; then
17891 # Don't use ln at all; we don't have any links
17896 elif ln conf$$.file conf$$ 2>/dev/null; then
17901 rm -f conf$$ conf$$.exe conf$$.file
17903 if mkdir -p . 2>/dev/null; then
17909 as_executable_p="test -f"
17911 # Sed expression to map a string onto a valid CPP name.
17912 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17914 # Sed expression to map a string onto a valid variable name.
17915 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17919 # We need space, tab and new line, in precisely that order.
17929 # Open the log real soon, to keep \$[0] and so on meaningful, and to
17930 # report actual input values of CONFIG_FILES etc. instead of their
17931 # values after options handling. Logging --version etc. is OK.
17935 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17936 ## Running $as_me. ##
17941 This file was extended by $as_me, which was
17942 generated by GNU Autoconf 2.57. Invocation command line was
17944 CONFIG_FILES = $CONFIG_FILES
17945 CONFIG_HEADERS = $CONFIG_HEADERS
17946 CONFIG_LINKS = $CONFIG_LINKS
17947 CONFIG_COMMANDS = $CONFIG_COMMANDS
17951 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
17955 # Files that config.status was made for.
17956 if test -n "$ac_config_files"; then
17957 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
17960 if test -n "$ac_config_headers"; then
17961 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
17964 if test -n "$ac_config_links"; then
17965 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
17968 if test -n "$ac_config_commands"; then
17969 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
17972 cat >>$CONFIG_STATUS <<\_ACEOF
17975 \`$as_me' instantiates files from templates according to the
17976 current configuration.
17978 Usage: $0 [OPTIONS] [FILE]...
17980 -h, --help print this help, then exit
17981 -V, --version print version number, then exit
17982 -q, --quiet do not print progress messages
17983 -d, --debug don't remove temporary files
17984 --recheck update $as_me by reconfiguring in the same conditions
17985 --file=FILE[:TEMPLATE]
17986 instantiate the configuration file FILE
17987 --header=FILE[:TEMPLATE]
17988 instantiate the configuration header FILE
17990 Configuration files:
17993 Configuration headers:
17996 Configuration commands:
17999 Report bugs to <bug-autoconf@gnu.org>."
18002 cat >>$CONFIG_STATUS <<_ACEOF
18005 configured by $0, generated by GNU Autoconf 2.57,
18006 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18008 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18009 Free Software Foundation, Inc.
18010 This config.status script is free software; the Free Software Foundation
18011 gives unlimited permission to copy, distribute and modify it."
18016 cat >>$CONFIG_STATUS <<\_ACEOF
18017 # If no file are specified by the user, then we need to provide default
18018 # value. By we need to know if files were specified by the user.
18024 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18025 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18033 *) # This is not an option, so the user has probably given explicit
18036 ac_need_defaults=false;;
18040 # Handling of the options.
18042 cat >>$CONFIG_STATUS <<\_ACEOF
18043 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18045 --version | --vers* | -V )
18046 echo "$ac_cs_version"; exit 0 ;;
18048 # Conflict between --help and --header
18049 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18050 Try \`$0 --help' for more information." >&5
18051 echo "$as_me: error: ambiguous option: $1
18052 Try \`$0 --help' for more information." >&2;}
18053 { (exit 1); exit 1; }; };;
18054 --help | --hel | -h )
18055 echo "$ac_cs_usage"; exit 0 ;;
18056 --debug | --d* | -d )
18058 --file | --fil | --fi | --f )
18060 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18061 ac_need_defaults=false;;
18062 --header | --heade | --head | --hea )
18064 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18065 ac_need_defaults=false;;
18066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18067 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18070 # This is an error.
18071 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18072 Try \`$0 --help' for more information." >&5
18073 echo "$as_me: error: unrecognized option: $1
18074 Try \`$0 --help' for more information." >&2;}
18075 { (exit 1); exit 1; }; } ;;
18077 *) ac_config_targets="$ac_config_targets $1" ;;
18083 ac_configure_extra_args=
18085 if $ac_cs_silent; then
18087 ac_configure_extra_args="$ac_configure_extra_args --silent"
18091 cat >>$CONFIG_STATUS <<_ACEOF
18092 if \$ac_cs_recheck; then
18093 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18094 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18103 cat >>$CONFIG_STATUS <<\_ACEOF
18104 for ac_config_target in $ac_config_targets
18106 case "$ac_config_target" in
18107 # Handling of arguments.
18108 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18109 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18110 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18111 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18112 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18113 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18114 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18115 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18116 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18117 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18118 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18119 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18120 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18121 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18122 "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18123 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18124 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18125 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18126 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18127 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18128 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18129 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18130 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18131 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18132 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18133 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18134 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18135 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18136 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18137 "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18138 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18139 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18140 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18141 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18142 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18143 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18144 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18145 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18146 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18147 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18148 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18149 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18150 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18151 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18152 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18153 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18154 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18155 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18156 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18157 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18158 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18159 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18160 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18161 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18162 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18163 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18164 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18165 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18166 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18167 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18168 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18169 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18170 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18171 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18172 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18173 { (exit 1); exit 1; }; };;
18177 # If the user did not use the arguments to specify the items to instantiate,
18178 # then the envvar interface is used. Set only those that are not.
18179 # We use the long form for the default assignment because of an extremely
18180 # bizarre bug on SunOS 4.1.3.
18181 if $ac_need_defaults; then
18182 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18183 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18184 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18187 # Have a temporary directory for convenience. Make it in the build tree
18188 # simply because there is no reason to put it here, and in addition,
18189 # creating and moving files from /tmp can sometimes cause problems.
18190 # Create a temporary directory, and hook for its removal unless debugging.
18193 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18194 trap '{ (exit 1); exit 1; }' 1 2 13 15
18197 # Create a (secure) tmp directory for tmp files.
18200 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18201 test -n "$tmp" && test -d "$tmp"
18204 tmp=./confstat$$-$RANDOM
18205 (umask 077 && mkdir $tmp)
18208 echo "$me: cannot create a temporary directory in ." >&2
18209 { (exit 1); exit 1; }
18214 cat >>$CONFIG_STATUS <<_ACEOF
18217 # CONFIG_FILES section.
18220 # No need to generate the scripts if there are no CONFIG_FILES.
18221 # This happens for instance when ./config.status config.h
18222 if test -n "\$CONFIG_FILES"; then
18223 # Protect against being on the right side of a sed subst in config.status.
18224 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18225 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18226 s,@SHELL@,$SHELL,;t t
18227 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18228 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18229 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18230 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18231 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18232 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18233 s,@exec_prefix@,$exec_prefix,;t t
18234 s,@prefix@,$prefix,;t t
18235 s,@program_transform_name@,$program_transform_name,;t t
18236 s,@bindir@,$bindir,;t t
18237 s,@sbindir@,$sbindir,;t t
18238 s,@libexecdir@,$libexecdir,;t t
18239 s,@datadir@,$datadir,;t t
18240 s,@sysconfdir@,$sysconfdir,;t t
18241 s,@sharedstatedir@,$sharedstatedir,;t t
18242 s,@localstatedir@,$localstatedir,;t t
18243 s,@libdir@,$libdir,;t t
18244 s,@includedir@,$includedir,;t t
18245 s,@oldincludedir@,$oldincludedir,;t t
18246 s,@infodir@,$infodir,;t t
18247 s,@mandir@,$mandir,;t t
18248 s,@build_alias@,$build_alias,;t t
18249 s,@host_alias@,$host_alias,;t t
18250 s,@target_alias@,$target_alias,;t t
18251 s,@DEFS@,$DEFS,;t t
18252 s,@ECHO_C@,$ECHO_C,;t t
18253 s,@ECHO_N@,$ECHO_N,;t t
18254 s,@ECHO_T@,$ECHO_T,;t t
18255 s,@LIBS@,$LIBS,;t t
18256 s,@BUILD_DIR@,$BUILD_DIR,;t t
18257 s,@TRUEPRG@,$TRUEPRG,;t t
18258 s,@FALSEPRG@,$FALSEPRG,;t t
18259 s,@build@,$build,;t t
18260 s,@build_cpu@,$build_cpu,;t t
18261 s,@build_vendor@,$build_vendor,;t t
18262 s,@build_os@,$build_os,;t t
18263 s,@host@,$host,;t t
18264 s,@host_cpu@,$host_cpu,;t t
18265 s,@host_vendor@,$host_vendor,;t t
18266 s,@host_os@,$host_os,;t t
18267 s,@VERSION@,$VERSION,;t t
18268 s,@DATE@,$DATE,;t t
18269 s,@LSMDATE@,$LSMDATE,;t t
18271 s,@CFLAGS@,$CFLAGS,;t t
18272 s,@LDFLAGS@,$LDFLAGS,;t t
18273 s,@CPPFLAGS@,$CPPFLAGS,;t t
18274 s,@ac_ct_CC@,$ac_ct_CC,;t t
18275 s,@EXEEXT@,$EXEEXT,;t t
18276 s,@OBJEXT@,$OBJEXT,;t t
18278 s,@CXXFLAGS@,$CXXFLAGS,;t t
18279 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18281 s,@EGREP@,$EGREP,;t t
18282 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18283 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18284 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18285 s,@RANLIB@,$RANLIB,;t t
18286 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18292 s,@ECHO@,$ECHO,;t t
18296 s,@OPENSSL@,$OPENSSL,;t t
18298 s,@PKGCONFIG@,$PKGCONFIG,;t t
18299 s,@ARFLAGS@,$ARFLAGS,;t t
18300 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18301 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18302 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18303 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18304 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18305 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18306 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18307 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18308 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18309 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18310 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18311 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18312 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18313 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18314 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18315 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18316 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18317 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18318 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18319 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18320 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18321 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18322 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18323 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18324 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18325 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18326 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18327 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18328 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18329 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18330 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18331 s,@MSGFMT@,$MSGFMT,;t t
18332 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18333 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18334 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18335 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18336 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18337 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18338 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18339 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18340 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18341 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18342 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18343 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18344 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18345 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18346 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18347 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18348 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18349 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18350 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18351 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18352 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18353 s,@GNOME_DIR@,$GNOME_DIR,;t t
18354 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18355 s,@STATIC_FD@,$STATIC_FD,;t t
18356 s,@STATIC_SD@,$STATIC_SD,;t t
18357 s,@STATIC_DIR@,$STATIC_DIR,;t t
18358 s,@STATIC_CONS@,$STATIC_CONS,;t t
18359 s,@ALL_DIRS@,$ALL_DIRS,;t t
18360 s,@CONS_INC@,$CONS_INC,;t t
18361 s,@CONS_LIBS@,$CONS_LIBS,;t t
18362 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18363 s,@READLINE_SRC@,$READLINE_SRC,;t t
18364 s,@working_dir@,$working_dir,;t t
18365 s,@scriptdir@,$scriptdir,;t t
18366 s,@dump_email@,$dump_email,;t t
18367 s,@job_email@,$job_email,;t t
18368 s,@smtp_host@,$smtp_host,;t t
18369 s,@piddir@,$piddir,;t t
18370 s,@subsysdir@,$subsysdir,;t t
18371 s,@baseport@,$baseport,;t t
18372 s,@dir_port@,$dir_port,;t t
18373 s,@fd_port@,$fd_port,;t t
18374 s,@sd_port@,$sd_port,;t t
18375 s,@dir_password@,$dir_password,;t t
18376 s,@fd_password@,$fd_password,;t t
18377 s,@sd_password@,$sd_password,;t t
18378 s,@dir_user@,$dir_user,;t t
18379 s,@dir_group@,$dir_group,;t t
18380 s,@sd_user@,$sd_user,;t t
18381 s,@sd_group@,$sd_group,;t t
18382 s,@fd_user@,$fd_user,;t t
18383 s,@fd_group@,$fd_group,;t t
18384 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18385 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18386 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18387 s,@cats@,$cats,;t t
18388 s,@DB_NAME@,$DB_NAME,;t t
18389 s,@GETCONF@,$GETCONF,;t t
18390 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18391 s,@X_CFLAGS@,$X_CFLAGS,;t t
18392 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18393 s,@X_LIBS@,$X_LIBS,;t t
18394 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18395 s,@LIBOBJS@,$LIBOBJS,;t t
18396 s,@ALLOCA@,$ALLOCA,;t t
18397 s,@FDLIBS@,$FDLIBS,;t t
18398 s,@DEBUG@,$DEBUG,;t t
18399 s,@DINCLUDE@,$DINCLUDE,;t t
18400 s,@DLIB@,$DLIB,;t t
18401 s,@DB_LIBS@,$DB_LIBS,;t t
18402 s,@WCFLAGS@,$WCFLAGS,;t t
18403 s,@WLDFLAGS@,$WLDFLAGS,;t t
18404 s,@OBJLIST@,$OBJLIST,;t t
18405 s,@hostname@,$hostname,;t t
18406 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18407 s,@PSCMD@,$PSCMD,;t t
18408 s,@WIN32@,$WIN32,;t t
18409 s,@DISTNAME@,$DISTNAME,;t t
18410 s,@DISTVER@,$DISTVER,;t t
18411 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18412 /@MCOMMON@/r $MCOMMON
18418 cat >>$CONFIG_STATUS <<\_ACEOF
18419 # Split the substitutions into bite-sized pieces for seds with
18420 # small command number limits, like on Digital OSF/1 and HP-UX.
18421 ac_max_sed_lines=48
18422 ac_sed_frag=1 # Number of current file.
18423 ac_beg=1 # First line for current file.
18424 ac_end=$ac_max_sed_lines # Line after last line for current file.
18427 while $ac_more_lines; do
18428 if test $ac_beg -gt 1; then
18429 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18431 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18433 if test ! -s $tmp/subs.frag; then
18434 ac_more_lines=false
18436 # The purpose of the label and of the branching condition is to
18437 # speed up the sed processing (if there are no `@' at all, there
18438 # is no need to browse any of the substitutions).
18439 # These are the two extra sed commands mentioned above.
18441 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18442 if test -z "$ac_sed_cmds"; then
18443 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18445 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18447 ac_sed_frag=`expr $ac_sed_frag + 1`
18449 ac_end=`expr $ac_end + $ac_max_sed_lines`
18452 if test -z "$ac_sed_cmds"; then
18455 fi # test -n "$CONFIG_FILES"
18458 cat >>$CONFIG_STATUS <<\_ACEOF
18459 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18460 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18462 - | *:- | *:-:* ) # input from stdin
18464 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18465 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18466 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18467 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18468 * ) ac_file_in=$ac_file.in ;;
18471 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18472 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18473 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18474 X"$ac_file" : 'X\(//\)[^/]' \| \
18475 X"$ac_file" : 'X\(//\)$' \| \
18476 X"$ac_file" : 'X\(/\)' \| \
18477 . : '\(.\)' 2>/dev/null ||
18479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18480 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18481 /^X\(\/\/\)$/{ s//\1/; q; }
18482 /^X\(\/\).*/{ s//\1/; q; }
18484 { if $as_mkdir_p; then
18489 while test ! -d "$as_dir"; do
18490 as_dirs="$as_dir $as_dirs"
18491 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18492 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18493 X"$as_dir" : 'X\(//\)[^/]' \| \
18494 X"$as_dir" : 'X\(//\)$' \| \
18495 X"$as_dir" : 'X\(/\)' \| \
18496 . : '\(.\)' 2>/dev/null ||
18498 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18499 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18500 /^X\(\/\/\)$/{ s//\1/; q; }
18501 /^X\(\/\).*/{ s//\1/; q; }
18504 test ! -n "$as_dirs" || mkdir $as_dirs
18505 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18506 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18507 { (exit 1); exit 1; }; }; }
18511 if test "$ac_dir" != .; then
18512 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18513 # A "../" for each directory in $ac_dir_suffix.
18514 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18516 ac_dir_suffix= ac_top_builddir=
18520 .) # No --srcdir option. We are building in place.
18522 if test -z "$ac_top_builddir"; then
18525 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18527 [\\/]* | ?:[\\/]* ) # Absolute path.
18528 ac_srcdir=$srcdir$ac_dir_suffix;
18529 ac_top_srcdir=$srcdir ;;
18530 *) # Relative path.
18531 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18532 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18534 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18536 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18537 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18538 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18539 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18543 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18544 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18547 if test x"$ac_file" != x-; then
18548 { echo "$as_me:$LINENO: creating $ac_file" >&5
18549 echo "$as_me: creating $ac_file" >&6;}
18552 # Let's still pretend it is `configure' which instantiates (i.e., don't
18553 # use $as_me), people would be surprised to read:
18554 # /* config.h. Generated by config.status. */
18555 if test x"$ac_file" = x-; then
18558 configure_input="$ac_file. "
18560 configure_input=$configure_input"Generated from `echo $ac_file_in |
18561 sed 's,.*/,,'` by configure."
18563 # First look for the input files in the build tree, otherwise in the
18565 ac_file_inputs=`IFS=:
18566 for f in $ac_file_in; do
18568 -) echo $tmp/stdin ;;
18570 # Absolute (can't be DOS-style, as IFS=:)
18571 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18572 echo "$as_me: error: cannot find input file: $f" >&2;}
18573 { (exit 1); exit 1; }; }
18576 if test -f "$f"; then
18579 elif test -f "$srcdir/$f"; then
18584 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18585 echo "$as_me: error: cannot find input file: $f" >&2;}
18586 { (exit 1); exit 1; }; }
18589 done` || { (exit 1); exit 1; }
18591 cat >>$CONFIG_STATUS <<_ACEOF
18595 cat >>$CONFIG_STATUS <<\_ACEOF
18597 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18598 s,@configure_input@,$configure_input,;t t
18599 s,@srcdir@,$ac_srcdir,;t t
18600 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18601 s,@top_srcdir@,$ac_top_srcdir,;t t
18602 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18603 s,@builddir@,$ac_builddir,;t t
18604 s,@abs_builddir@,$ac_abs_builddir,;t t
18605 s,@top_builddir@,$ac_top_builddir,;t t
18606 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18607 s,@INSTALL@,$ac_INSTALL,;t t
18608 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18610 if test x"$ac_file" != x-; then
18611 mv $tmp/out $ac_file
18619 cat >>$CONFIG_STATUS <<\_ACEOF
18622 # CONFIG_HEADER section.
18625 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18626 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18628 # ac_d sets the value in "#define NAME VALUE" lines.
18629 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18630 ac_dB='[ ].*$,\1#\2'
18633 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18634 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18635 ac_uB='$,\1#\2define\3'
18639 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18640 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18642 - | *:- | *:-:* ) # input from stdin
18644 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18645 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18646 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18647 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18648 * ) ac_file_in=$ac_file.in ;;
18651 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18652 echo "$as_me: creating $ac_file" >&6;}
18654 # First look for the input files in the build tree, otherwise in the
18656 ac_file_inputs=`IFS=:
18657 for f in $ac_file_in; do
18659 -) echo $tmp/stdin ;;
18661 # Absolute (can't be DOS-style, as IFS=:)
18662 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18663 echo "$as_me: error: cannot find input file: $f" >&2;}
18664 { (exit 1); exit 1; }; }
18667 if test -f "$f"; then
18670 elif test -f "$srcdir/$f"; then
18675 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18676 echo "$as_me: error: cannot find input file: $f" >&2;}
18677 { (exit 1); exit 1; }; }
18680 done` || { (exit 1); exit 1; }
18681 # Remove the trailing spaces.
18682 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
18686 # Transform confdefs.h into two sed scripts, `conftest.defines' and
18687 # `conftest.undefs', that substitutes the proper values into
18688 # config.h.in to produce config.h. The first handles `#define'
18689 # templates, and the second `#undef' templates.
18690 # And first: Protect against being on the right side of a sed subst in
18691 # config.status. Protect against being in an unquoted here document
18692 # in config.status.
18693 rm -f conftest.defines conftest.undefs
18694 # Using a here document instead of a string reduces the quoting nightmare.
18695 # Putting comments in sed scripts is not portable.
18697 # `end' is used to avoid that the second main sed command (meant for
18698 # 0-ary CPP macros) applies to n-ary macro definitions.
18699 # See the Autoconf documentation for `clear'.
18700 cat >confdef2sed.sed <<\_ACEOF
18705 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
18707 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
18710 # If some macros were called several times there might be several times
18711 # the same #defines, which is useless. Nevertheless, we may not want to
18712 # sort them, since we want the *last* AC-DEFINE to be honored.
18713 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
18714 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
18715 rm -f confdef2sed.sed
18717 # This sed command replaces #undef with comments. This is necessary, for
18718 # example, in the case of _POSIX_SOURCE, which is predefined and required
18719 # on some systems where configure will not decide to define it.
18720 cat >>conftest.undefs <<\_ACEOF
18721 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
18724 # Break up conftest.defines because some shells have a limit on the size
18725 # of here documents, and old seds have small limits too (100 cmds).
18726 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
18727 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
18728 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
18729 echo ' :' >>$CONFIG_STATUS
18730 rm -f conftest.tail
18731 while grep . conftest.defines >/dev/null
18733 # Write a limited-size here document to $tmp/defines.sed.
18734 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
18735 # Speed up: don't consider the non `#define' lines.
18736 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
18737 # Work around the forget-to-reset-the-flag bug.
18738 echo 't clr' >>$CONFIG_STATUS
18739 echo ': clr' >>$CONFIG_STATUS
18740 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
18742 sed -f $tmp/defines.sed $tmp/in >$tmp/out
18744 mv $tmp/out $tmp/in
18746 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
18747 rm -f conftest.defines
18748 mv conftest.tail conftest.defines
18750 rm -f conftest.defines
18751 echo ' fi # grep' >>$CONFIG_STATUS
18752 echo >>$CONFIG_STATUS
18754 # Break up conftest.undefs because some shells have a limit on the size
18755 # of here documents, and old seds have small limits too (100 cmds).
18756 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
18757 rm -f conftest.tail
18758 while grep . conftest.undefs >/dev/null
18760 # Write a limited-size here document to $tmp/undefs.sed.
18761 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
18762 # Speed up: don't consider the non `#undef'
18763 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
18764 # Work around the forget-to-reset-the-flag bug.
18765 echo 't clr' >>$CONFIG_STATUS
18766 echo ': clr' >>$CONFIG_STATUS
18767 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
18769 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
18771 mv $tmp/out $tmp/in
18773 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
18774 rm -f conftest.undefs
18775 mv conftest.tail conftest.undefs
18777 rm -f conftest.undefs
18779 cat >>$CONFIG_STATUS <<\_ACEOF
18780 # Let's still pretend it is `configure' which instantiates (i.e., don't
18781 # use $as_me), people would be surprised to read:
18782 # /* config.h. Generated by config.status. */
18783 if test x"$ac_file" = x-; then
18784 echo "/* Generated by configure. */" >$tmp/config.h
18786 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
18788 cat $tmp/in >>$tmp/config.h
18790 if test x"$ac_file" != x-; then
18791 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
18792 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18793 echo "$as_me: $ac_file is unchanged" >&6;}
18795 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18796 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18797 X"$ac_file" : 'X\(//\)[^/]' \| \
18798 X"$ac_file" : 'X\(//\)$' \| \
18799 X"$ac_file" : 'X\(/\)' \| \
18800 . : '\(.\)' 2>/dev/null ||
18802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18803 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18804 /^X\(\/\/\)$/{ s//\1/; q; }
18805 /^X\(\/\).*/{ s//\1/; q; }
18807 { if $as_mkdir_p; then
18812 while test ! -d "$as_dir"; do
18813 as_dirs="$as_dir $as_dirs"
18814 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18815 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18816 X"$as_dir" : 'X\(//\)[^/]' \| \
18817 X"$as_dir" : 'X\(//\)$' \| \
18818 X"$as_dir" : 'X\(/\)' \| \
18819 . : '\(.\)' 2>/dev/null ||
18821 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18822 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18823 /^X\(\/\/\)$/{ s//\1/; q; }
18824 /^X\(\/\).*/{ s//\1/; q; }
18827 test ! -n "$as_dirs" || mkdir $as_dirs
18828 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18829 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18830 { (exit 1); exit 1; }; }; }
18833 mv $tmp/config.h $ac_file
18837 rm -f $tmp/config.h
18841 cat >>$CONFIG_STATUS <<\_ACEOF
18844 # CONFIG_COMMANDS section.
18846 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
18847 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
18848 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
18849 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
18850 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18851 X"$ac_dest" : 'X\(//\)[^/]' \| \
18852 X"$ac_dest" : 'X\(//\)$' \| \
18853 X"$ac_dest" : 'X\(/\)' \| \
18854 . : '\(.\)' 2>/dev/null ||
18856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18857 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18858 /^X\(\/\/\)$/{ s//\1/; q; }
18859 /^X\(\/\).*/{ s//\1/; q; }
18863 if test "$ac_dir" != .; then
18864 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18865 # A "../" for each directory in $ac_dir_suffix.
18866 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18868 ac_dir_suffix= ac_top_builddir=
18872 .) # No --srcdir option. We are building in place.
18874 if test -z "$ac_top_builddir"; then
18877 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18879 [\\/]* | ?:[\\/]* ) # Absolute path.
18880 ac_srcdir=$srcdir$ac_dir_suffix;
18881 ac_top_srcdir=$srcdir ;;
18882 *) # Relative path.
18883 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18884 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18886 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18888 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18889 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18890 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18891 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18894 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
18895 echo "$as_me: executing $ac_dest commands" >&6;}
18897 default ) (echo "Doing make of dependencies"; make depend;)
18903 cat >>$CONFIG_STATUS <<\_ACEOF
18905 { (exit 0); exit 0; }
18907 chmod +x $CONFIG_STATUS
18908 ac_clean_files=$ac_clean_files_save
18911 # configure is writing to config.log, and then calls config.status.
18912 # config.status does its own redirection, appending to config.log.
18913 # Unfortunately, on DOS this fails, as config.log is still kept open
18914 # by configure, so config.status won't be able to write to it; its
18915 # output is simply discarded. So we exec the FD to /dev/null,
18916 # effectively closing config.log, so it can be properly (re)opened and
18917 # appended to by config.status. When coming back to configure, we
18918 # need to make the FD available again.
18919 if test "$no_create" != yes; then
18921 ac_config_status_args=
18922 test "$silent" = yes &&
18923 ac_config_status_args="$ac_config_status_args --quiet"
18925 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18927 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18928 # would make configure fail if this is the last instruction.
18929 $ac_cs_success || { (exit 1); exit 1; }
18934 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
18935 chmod 755 bconsole gconsole mtx-changer
18937 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
18938 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
18939 chmod 755 src/cats/create_mysql_database
18940 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
18941 chmod 755 src/cats/grant_mysql_privileges
18942 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
18943 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
18944 chmod 755 src/cats/update_bacula_tables src/cats/update_mysql_tables
18945 chmod 755 src/cats/update/mysql_tables
18946 chmod 755 src/cats/create_sqlite_database
18947 chmod 755 src/cats/sqlite
18948 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
18949 chmod 755 src/cats/create_bdb_database
18951 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
18952 largefile_support="yes"
18956 # A whole lot of hand springs to get the compiler version.
18957 # This is because gcc changed the output in version 3.0
18959 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18960 if test "x${CCVERSION}" = "x" ; then
18961 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18963 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
18964 if test x"${CXXVERSION}" = x ; then
18965 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
18968 if test "x${subsysdir}" = "x${sbindir}" ; then
18971 echo "You have set --sbindir and --with-subsys-dir"
18972 echo " both equal to: ${subsysdir} "
18973 echo " This is not permitted. Please reconfigure."
18974 echo "Aborting configuration ..."
18981 Configuration on `date`:
18983 Host: $host -- ${DISTNAME} ${DISTVER}
18984 Bacula version: ${VERSION} (${DATE})
18985 Source code location: ${srcdir}
18986 Install binaries: ${sbindir}
18987 Install config files: ${sysconfdir}
18988 Scripts directory: ${scriptdir}
18989 Working directory: ${working_dir}
18990 PID directory: ${piddir}
18991 Subsys directory: ${subsysdir}
18992 C Compiler: ${CC} ${CCVERSION}
18993 C++ Compiler: ${CXX} ${CXXVERSION}
18994 Compiler flags: ${WCFLAGS} ${CFLAGS}
18995 Linker flags: ${WLDFLAGS} ${LDFLAGS}
18997 Statically Linked Tools: ${support_static_tools}
18998 Statically Linked FD: ${support_static_fd}
18999 Statically Linked SD: ${support_static_sd}
19000 Statically Linked DIR: ${support_static_dir}
19001 Statically Linked CONS: ${support_static_cons}
19002 Database type: ${db_name}
19003 Database lib: ${DB_LIBS}
19005 Job Output Email: ${job_email}
19006 Traceback Email: ${dump_email}
19007 SMTP Host Address: ${smtp_host}
19009 Director Port: ${dir_port}
19010 File daemon Port: ${fd_port}
19011 Storage daemon Port: ${sd_port}
19013 Director User: ${dir_user}
19014 Director Group: ${dir_group}
19015 Storage Daemon User: ${dir_user}
19016 Storage DaemonGroup: ${dir_group}
19017 File Daemon User: ${dir_user}
19018 File Daemon Group: ${dir_group}
19020 SQL binaries Directory ${SQL_BINDIR}
19022 Large file support: $largefile_support
19023 readline support: ${got_readline} ${PRTREADLINE_SRC}
19024 TCP Wrappers support: ${TCPW_MSG}
19025 ZLIB support: ${have_zlib}
19026 enable-smartalloc: ${support_smartalloc}
19027 enable-gnome: ${support_gnome}
19028 client-only: ${build_client_only}
19035 # cweb support: ${got_cweb} ${CWEB_SRC}
19036 # gmp support: ${got_gmp} ${GMP_SRC}