2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC 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-conio disable conio support enabled
868 --disable-readline disable readline support disable
870 --disable-largefile omit support for large files
873 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
874 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
875 --with-gnome-includes Specify location of GNOME headers
876 --with-gnome-libs Specify location of GNOME libs
877 --with-gnome Specify prefix for GNOME files
878 --with-readline=DIR specify readline library directory
879 --with-tcp-wrappers=DIR enable tcpwrappers support
880 --with-working-dir=PATH specify path of Bacula working directory
881 --with-scriptdir=PATH specify path of Bacula scripts directory
882 --with-dump-email=EMAIL dump email address
883 --with-job-email=EMAIL job output email address
884 --with-smtp-host=HOST SMTP mail host address
885 --with-pid-dir=PATH specify location of Bacula pid files
886 --with-subsys-dir=PATH specify location of Bacula subsys file
887 --with-baseport=PORT specify base port address for daemons
888 --with-dir-password=PASSWORD specify Director's password
889 --with-fd-password=PASSWORD specify Client's password
890 --with-sd-password=PASSWORD specify Storage daemon's password
891 --with-dir-user=USER specify user for Director daemon
892 --with-dir-group=GROUP specify group for Director daemon
893 --with-sd-user=USER specify user for Storage daemon
894 --with-sd-group=GROUP specify group for Storage daemon
895 --with-fd-user=USER specify user for File daemon
896 --with-fd-group=GROUP specify group for File daemon
897 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
898 base install directory, defaults to /usr/local/pgsql
900 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
901 install directory, default is to search through
902 a number of common places for the MySQL files.
904 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
905 install directory, default is to search through
906 a number of common places for the MySQL files.
908 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
909 install directory, default is to search through
910 a number of common places for the SQLite files.
911 --with-x use the X Window System
913 Some influential environment variables:
914 CC C compiler command
915 CFLAGS C compiler flags
916 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
917 nonstandard directory <lib dir>
918 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
919 headers in a nonstandard directory <include dir>
920 CXX C++ compiler command
921 CXXFLAGS C++ compiler flags
924 Use these variables to override the choices made by `configure' or to help
925 it to find libraries and programs with nonstandard names/locations.
930 if test "$ac_init_help" = "recursive"; then
931 # If there are subdirs, report their specific --help.
933 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
934 test -d $ac_dir || continue
937 if test "$ac_dir" != .; then
938 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
939 # A "../" for each directory in $ac_dir_suffix.
940 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
942 ac_dir_suffix= ac_top_builddir=
946 .) # No --srcdir option. We are building in place.
948 if test -z "$ac_top_builddir"; then
951 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
953 [\\/]* | ?:[\\/]* ) # Absolute path.
954 ac_srcdir=$srcdir$ac_dir_suffix;
955 ac_top_srcdir=$srcdir ;;
957 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
958 ac_top_srcdir=$ac_top_builddir$srcdir ;;
960 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
962 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
963 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
964 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
965 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
968 # Check for guested configure; otherwise get Cygnus style configure.
969 if test -f $ac_srcdir/configure.gnu; then
971 $SHELL $ac_srcdir/configure.gnu --help=recursive
972 elif test -f $ac_srcdir/configure; then
974 $SHELL $ac_srcdir/configure --help=recursive
975 elif test -f $ac_srcdir/configure.ac ||
976 test -f $ac_srcdir/configure.in; then
980 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
986 test -n "$ac_init_help" && exit 0
987 if $ac_init_version; then
990 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
991 Free Software Foundation, Inc.
992 This configure script is free software; the Free Software Foundation
993 gives unlimited permission to copy, distribute and modify it.
999 This file contains any messages produced by compilers while
1000 running configure, to aid debugging if configure makes a mistake.
1002 It was created by $as_me, which was
1003 generated by GNU Autoconf 2.57. Invocation command line was
1014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1021 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1023 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1024 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1026 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1027 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1028 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1029 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037 test -z "$as_dir" && as_dir=.
1038 echo "PATH: $as_dir"
1053 # Keep a trace of the command line.
1054 # Strip out --no-create and --no-recursion so they do not pile up.
1055 # Strip out --silent because we don't want to record it for future runs.
1056 # Also quote any args containing shell meta-characters.
1057 # Make two passes to allow for proper duplicate-argument suppression.
1062 ac_must_keep_next=false
1068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1072 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1073 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1076 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1078 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1079 if test $ac_must_keep_next = true; then
1080 ac_must_keep_next=false # Got value, back to normal.
1083 *=* | --config-cache | -C | -disable-* | --disable-* \
1084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1086 | -with-* | --with-* | -without-* | --without-* | --x)
1087 case "$ac_configure_args0 " in
1088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1091 -* ) ac_must_keep_next=true ;;
1094 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1095 # Get rid of the leading space.
1101 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1102 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1104 # When interrupted or exit'd, cleanup temporary files, and complete
1105 # config.log. We remove comments because anyway the quotes in there
1106 # would cause problems or look ugly.
1107 # WARNING: Be sure not to use single quotes in there, as some shells,
1108 # such as our DU 5.0 friend, will then `close' the trap.
1109 trap 'exit_status=$?
1110 # Save into config.log some information that might help in debugging.
1115 ## ---------------- ##
1116 ## Cache variables. ##
1117 ## ---------------- ##
1120 # The following way of writing the cache mishandles newlines in values,
1123 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1126 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1138 ## ----------------- ##
1139 ## Output variables. ##
1140 ## ----------------- ##
1143 for ac_var in $ac_subst_vars
1145 eval ac_val=$`echo $ac_var`
1146 echo "$ac_var='"'"'$ac_val'"'"'"
1150 if test -n "$ac_subst_files"; then
1157 for ac_var in $ac_subst_files
1159 eval ac_val=$`echo $ac_var`
1160 echo "$ac_var='"'"'$ac_val'"'"'"
1165 if test -s confdefs.h; then
1172 sed "/^$/d" confdefs.h | sort
1175 test "$ac_signal" != 0 &&
1176 echo "$as_me: caught signal $ac_signal"
1177 echo "$as_me: exit $exit_status"
1179 rm -f core core.* *.core &&
1180 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1183 for ac_signal in 1 2 13 15; do
1184 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1189 rm -rf conftest* confdefs.h
1190 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1193 # Predefined preprocessor variables.
1195 cat >>confdefs.h <<_ACEOF
1196 #define PACKAGE_NAME "$PACKAGE_NAME"
1200 cat >>confdefs.h <<_ACEOF
1201 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1205 cat >>confdefs.h <<_ACEOF
1206 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1210 cat >>confdefs.h <<_ACEOF
1211 #define PACKAGE_STRING "$PACKAGE_STRING"
1215 cat >>confdefs.h <<_ACEOF
1216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1220 # Let the site file select an alternate cache file if it wants to.
1221 # Prefer explicitly selected file to automatically selected ones.
1222 if test -z "$CONFIG_SITE"; then
1223 if test "x$prefix" != xNONE; then
1224 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1226 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1229 for ac_site_file in $CONFIG_SITE; do
1230 if test -r "$ac_site_file"; then
1231 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1232 echo "$as_me: loading site script $ac_site_file" >&6;}
1233 sed 's/^/| /' "$ac_site_file" >&5
1238 if test -r "$cache_file"; then
1239 # Some versions of bash will fail to source /dev/null (special
1240 # files actually), so we avoid doing that.
1241 if test -f "$cache_file"; then
1242 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1243 echo "$as_me: loading cache $cache_file" >&6;}
1245 [\\/]* | ?:[\\/]* ) . $cache_file;;
1246 *) . ./$cache_file;;
1250 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1251 echo "$as_me: creating cache $cache_file" >&6;}
1255 # Check that the precious variables saved in the cache have kept the same
1257 ac_cache_corrupted=false
1258 for ac_var in `(set) 2>&1 |
1259 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1260 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1261 eval ac_new_set=\$ac_env_${ac_var}_set
1262 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1263 eval ac_new_val="\$ac_env_${ac_var}_value"
1264 case $ac_old_set,$ac_new_set in
1266 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1267 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1268 ac_cache_corrupted=: ;;
1270 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1271 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1272 ac_cache_corrupted=: ;;
1275 if test "x$ac_old_val" != "x$ac_new_val"; then
1276 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1277 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1278 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1279 echo "$as_me: former value: $ac_old_val" >&2;}
1280 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1281 echo "$as_me: current value: $ac_new_val" >&2;}
1282 ac_cache_corrupted=:
1285 # Pass precious variables to config.status.
1286 if test "$ac_new_set" = set; then
1288 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1289 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1290 *) ac_arg=$ac_var=$ac_new_val ;;
1292 case " $ac_configure_args " in
1293 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1294 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298 if $ac_cache_corrupted; then
1299 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1300 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1301 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1302 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1303 { (exit 1); exit 1; }; }
1307 ac_cpp='$CPP $CPPFLAGS'
1308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1336 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1337 if test -f $ac_dir/install-sh; then
1339 ac_install_sh="$ac_aux_dir/install-sh -c"
1341 elif test -f $ac_dir/install.sh; then
1343 ac_install_sh="$ac_aux_dir/install.sh -c"
1345 elif test -f $ac_dir/shtool; then
1347 ac_install_sh="$ac_aux_dir/shtool install -c"
1351 if test -z "$ac_aux_dir"; then
1352 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1353 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1354 { (exit 1); exit 1; }; }
1356 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1357 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1358 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1360 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1368 # Extract the first word of "$ac_prog", so it can be a program name with args.
1369 set dummy $ac_prog; ac_word=$2
1370 echo "$as_me:$LINENO: checking for $ac_word" >&5
1371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1372 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1373 echo $ECHO_N "(cached) $ECHO_C" >&6
1377 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1384 test -z "$as_dir" && as_dir=.
1385 for ac_exec_ext in '' $ac_executable_extensions; do
1386 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1387 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1397 TRUEPRG=$ac_cv_path_TRUEPRG
1399 if test -n "$TRUEPRG"; then
1400 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1401 echo "${ECHO_T}$TRUEPRG" >&6
1403 echo "$as_me:$LINENO: result: no" >&5
1404 echo "${ECHO_T}no" >&6
1407 test -n "$TRUEPRG" && break
1409 test -n "$TRUEPRG" || TRUEPRG=":"
1411 for ac_prog in false
1413 # Extract the first word of "$ac_prog", so it can be a program name with args.
1414 set dummy $ac_prog; ac_word=$2
1415 echo "$as_me:$LINENO: checking for $ac_word" >&5
1416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1417 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1418 echo $ECHO_N "(cached) $ECHO_C" >&6
1422 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1429 test -z "$as_dir" && as_dir=.
1430 for ac_exec_ext in '' $ac_executable_extensions; do
1431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1432 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1442 FALSEPRG=$ac_cv_path_FALSEPRG
1444 if test -n "$FALSEPRG"; then
1445 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1446 echo "${ECHO_T}$FALSEPRG" >&6
1448 echo "$as_me:$LINENO: result: no" >&5
1449 echo "${ECHO_T}no" >&6
1452 test -n "$FALSEPRG" && break
1454 test -n "$FALSEPRG" || FALSEPRG=":"
1457 # Make sure we can run config.sub.
1458 $ac_config_sub sun4 >/dev/null 2>&1 ||
1459 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1460 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1461 { (exit 1); exit 1; }; }
1463 echo "$as_me:$LINENO: checking build system type" >&5
1464 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1465 if test "${ac_cv_build+set}" = set; then
1466 echo $ECHO_N "(cached) $ECHO_C" >&6
1468 ac_cv_build_alias=$build_alias
1469 test -z "$ac_cv_build_alias" &&
1470 ac_cv_build_alias=`$ac_config_guess`
1471 test -z "$ac_cv_build_alias" &&
1472 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1473 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1474 { (exit 1); exit 1; }; }
1475 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1476 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1477 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1478 { (exit 1); exit 1; }; }
1481 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1482 echo "${ECHO_T}$ac_cv_build" >&6
1484 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1485 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1486 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1489 echo "$as_me:$LINENO: checking host system type" >&5
1490 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1491 if test "${ac_cv_host+set}" = set; then
1492 echo $ECHO_N "(cached) $ECHO_C" >&6
1494 ac_cv_host_alias=$host_alias
1495 test -z "$ac_cv_host_alias" &&
1496 ac_cv_host_alias=$ac_cv_build_alias
1497 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1498 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1499 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1500 { (exit 1); exit 1; }; }
1503 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1504 echo "${ECHO_T}$ac_cv_host" >&6
1506 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1507 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1508 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1512 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1513 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1514 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1515 echo "configuring for bacula $VERSION ($DATE)"
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524 if test -n "$ac_tool_prefix"; then
1525 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_CC+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 if test -n "$CC"; then
1533 ac_cv_prog_CC="$CC" # Let the user override the test.
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539 test -z "$as_dir" && as_dir=.
1540 for ac_exec_ext in '' $ac_executable_extensions; do
1541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1552 if test -n "$CC"; then
1553 echo "$as_me:$LINENO: result: $CC" >&5
1554 echo "${ECHO_T}$CC" >&6
1556 echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1561 if test -z "$ac_cv_prog_CC"; then
1563 # Extract the first word of "gcc", so it can be a program name with args.
1564 set dummy gcc; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 if test -n "$ac_ct_CC"; then
1571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1577 test -z "$as_dir" && as_dir=.
1578 for ac_exec_ext in '' $ac_executable_extensions; do
1579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580 ac_cv_prog_ac_ct_CC="gcc"
1581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1590 if test -n "$ac_ct_CC"; then
1591 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1592 echo "${ECHO_T}$ac_ct_CC" >&6
1594 echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1603 if test -z "$CC"; then
1604 if test -n "$ac_tool_prefix"; then
1605 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1606 set dummy ${ac_tool_prefix}cc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_CC+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 if test -n "$CC"; then
1613 ac_cv_prog_CC="$CC" # Let the user override the test.
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 test -z "$as_dir" && as_dir=.
1620 for ac_exec_ext in '' $ac_executable_extensions; do
1621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622 ac_cv_prog_CC="${ac_tool_prefix}cc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632 if test -n "$CC"; then
1633 echo "$as_me:$LINENO: result: $CC" >&5
1634 echo "${ECHO_T}$CC" >&6
1636 echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1641 if test -z "$ac_cv_prog_CC"; then
1643 # Extract the first word of "cc", so it can be a program name with args.
1644 set dummy cc; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1650 if test -n "$ac_ct_CC"; then
1651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 test -z "$as_dir" && as_dir=.
1658 for ac_exec_ext in '' $ac_executable_extensions; do
1659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660 ac_cv_prog_ac_ct_CC="cc"
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1674 echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1684 if test -z "$CC"; then
1685 # Extract the first word of "cc", so it can be a program name with args.
1686 set dummy cc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 if test -n "$CC"; then
1693 ac_cv_prog_CC="$CC" # Let the user override the test.
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1704 ac_prog_rejected=yes
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 if test $ac_prog_rejected = yes; then
1715 # We found a bogon in the path, so make sure we never use it.
1716 set dummy $ac_cv_prog_CC
1718 if test $# != 0; then
1719 # We chose a different compiler from the bogus one.
1720 # However, it has the same basename, so the bogon will be chosen
1721 # first if we set CC to just the basename; use the full file name.
1723 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1729 if test -n "$CC"; then
1730 echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1738 if test -z "$CC"; then
1739 if test -n "$ac_tool_prefix"; then
1742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1744 echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746 if test "${ac_cv_prog_CC+set}" = set; then
1747 echo $ECHO_N "(cached) $ECHO_C" >&6
1749 if test -n "$CC"; then
1750 ac_cv_prog_CC="$CC" # Let the user override the test.
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 test -z "$as_dir" && as_dir=.
1757 for ac_exec_ext in '' $ac_executable_extensions; do
1758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769 if test -n "$CC"; then
1770 echo "$as_me:$LINENO: result: $CC" >&5
1771 echo "${ECHO_T}$CC" >&6
1773 echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1777 test -n "$CC" && break
1780 if test -z "$CC"; then
1784 # Extract the first word of "$ac_prog", so it can be a program name with args.
1785 set dummy $ac_prog; ac_word=$2
1786 echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1789 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 if test -n "$ac_ct_CC"; then
1792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 test -z "$as_dir" && as_dir=.
1799 for ac_exec_ext in '' $ac_executable_extensions; do
1800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801 ac_cv_prog_ac_ct_CC="$ac_prog"
1802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1811 if test -n "$ac_ct_CC"; then
1812 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1813 echo "${ECHO_T}$ac_ct_CC" >&6
1815 echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1819 test -n "$ac_ct_CC" && break
1828 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: no acceptable C compiler found in \$PATH
1831 See \`config.log' for more details." >&2;}
1832 { (exit 1); exit 1; }; }
1834 # Provide some information about the compiler.
1835 echo "$as_me:$LINENO:" \
1836 "checking for C compiler version" >&5
1837 ac_compiler=`set X $ac_compile; echo $2`
1838 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1839 (eval $ac_compiler --version </dev/null >&5) 2>&5
1841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842 (exit $ac_status); }
1843 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1844 (eval $ac_compiler -v </dev/null >&5) 2>&5
1846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847 (exit $ac_status); }
1848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1849 (eval $ac_compiler -V </dev/null >&5) 2>&5
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }
1854 cat >conftest.$ac_ext <<_ACEOF
1855 #line $LINENO "configure"
1858 cat confdefs.h >>conftest.$ac_ext
1859 cat >>conftest.$ac_ext <<_ACEOF
1860 /* end confdefs.h. */
1870 ac_clean_files_save=$ac_clean_files
1871 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1872 # Try to create an executable without -o first, disregard a.out.
1873 # It will help us diagnose broken compilers, and finding out an intuition
1875 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1876 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1877 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1878 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1879 (eval $ac_link_default) 2>&5
1881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1882 (exit $ac_status); }; then
1883 # Find the output, starting from the most likely. This scheme is
1884 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1887 # Be careful to initialize this variable, since it used to be cached.
1888 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1890 # b.out is created by i960 compilers.
1891 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1893 test -f "$ac_file" || continue
1895 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1898 # This is the source file.
1901 # We found the default executable, but exeext='' is most
1905 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1906 # FIXME: I believe we export ac_cv_exeext for Libtool,
1907 # but it would be cool to find out if it's true. Does anybody
1908 # maintain Libtool? --akim.
1916 echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1919 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1920 See \`config.log' for more details." >&5
1921 echo "$as_me: error: C compiler cannot create executables
1922 See \`config.log' for more details." >&2;}
1923 { (exit 77); exit 77; }; }
1926 ac_exeext=$ac_cv_exeext
1927 echo "$as_me:$LINENO: result: $ac_file" >&5
1928 echo "${ECHO_T}$ac_file" >&6
1930 # Check the compiler produces executables we can run. If not, either
1931 # the compiler is broken, or we cross compile.
1932 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1933 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1934 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1935 # If not cross compiling, check that we can run a simple program.
1936 if test "$cross_compiling" != yes; then
1937 if { ac_try='./$ac_file'
1938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; }; then
1945 if test "$cross_compiling" = maybe; then
1948 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1949 If you meant to cross compile, use \`--host'.
1950 See \`config.log' for more details." >&5
1951 echo "$as_me: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&2;}
1954 { (exit 1); exit 1; }; }
1958 echo "$as_me:$LINENO: result: yes" >&5
1959 echo "${ECHO_T}yes" >&6
1961 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1962 ac_clean_files=$ac_clean_files_save
1963 # Check the compiler produces executables we can run. If not, either
1964 # the compiler is broken, or we cross compile.
1965 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1966 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1967 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1968 echo "${ECHO_T}$cross_compiling" >&6
1970 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1971 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1973 (eval $ac_link) 2>&5
1975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1976 (exit $ac_status); }; then
1977 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1978 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1979 # work properly (i.e., refer to `conftest.exe'), while it won't with
1981 for ac_file in conftest.exe conftest conftest.*; do
1982 test -f "$ac_file" || continue
1984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1985 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1992 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1993 See \`config.log' for more details." >&5
1994 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1995 See \`config.log' for more details." >&2;}
1996 { (exit 1); exit 1; }; }
1999 rm -f conftest$ac_cv_exeext
2000 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2001 echo "${ECHO_T}$ac_cv_exeext" >&6
2003 rm -f conftest.$ac_ext
2004 EXEEXT=$ac_cv_exeext
2006 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2007 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2008 if test "${ac_cv_objext+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 cat >conftest.$ac_ext <<_ACEOF
2012 #line $LINENO "configure"
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h. */
2027 rm -f conftest.o conftest.obj
2028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029 (eval $ac_compile) 2>&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; then
2033 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2036 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2041 echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2044 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2045 See \`config.log' for more details." >&5
2046 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2047 See \`config.log' for more details." >&2;}
2048 { (exit 1); exit 1; }; }
2051 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2053 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2054 echo "${ECHO_T}$ac_cv_objext" >&6
2055 OBJEXT=$ac_cv_objext
2057 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2058 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2059 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 cat >conftest.$ac_ext <<_ACEOF
2063 #line $LINENO "configure"
2066 cat confdefs.h >>conftest.$ac_ext
2067 cat >>conftest.$ac_ext <<_ACEOF
2068 /* end confdefs.h. */
2081 rm -f conftest.$ac_objext
2082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2083 (eval $ac_compile) 2>&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); } &&
2087 { ac_try='test -s conftest.$ac_objext'
2088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; }; then
2095 echo "$as_me: failed program was:" >&5
2096 sed 's/^/| /' conftest.$ac_ext >&5
2100 rm -f conftest.$ac_objext conftest.$ac_ext
2101 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2104 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2105 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2106 GCC=`test $ac_compiler_gnu = yes && echo yes`
2107 ac_test_CFLAGS=${CFLAGS+set}
2108 ac_save_CFLAGS=$CFLAGS
2110 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2111 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2112 if test "${ac_cv_prog_cc_g+set}" = set; then
2113 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 cat >conftest.$ac_ext <<_ACEOF
2116 #line $LINENO "configure"
2119 cat confdefs.h >>conftest.$ac_ext
2120 cat >>conftest.$ac_ext <<_ACEOF
2121 /* end confdefs.h. */
2131 rm -f conftest.$ac_objext
2132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2133 (eval $ac_compile) 2>&5
2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2136 (exit $ac_status); } &&
2137 { ac_try='test -s conftest.$ac_objext'
2138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2142 (exit $ac_status); }; }; then
2145 echo "$as_me: failed program was:" >&5
2146 sed 's/^/| /' conftest.$ac_ext >&5
2150 rm -f conftest.$ac_objext conftest.$ac_ext
2152 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2153 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2154 if test "$ac_test_CFLAGS" = set; then
2155 CFLAGS=$ac_save_CFLAGS
2156 elif test $ac_cv_prog_cc_g = yes; then
2157 if test "$GCC" = yes; then
2163 if test "$GCC" = yes; then
2169 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2170 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2171 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2174 ac_cv_prog_cc_stdc=no
2176 cat >conftest.$ac_ext <<_ACEOF
2177 #line $LINENO "configure"
2180 cat confdefs.h >>conftest.$ac_ext
2181 cat >>conftest.$ac_ext <<_ACEOF
2182 /* end confdefs.h. */
2185 #include <sys/types.h>
2186 #include <sys/stat.h>
2187 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2188 struct buf { int x; };
2189 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2190 static char *e (p, i)
2196 static char *f (char * (*g) (char **, int), char **p, ...)
2201 s = g (p, va_arg (v,int));
2205 int test (int i, double x);
2206 struct s1 {int (*f) (int a);};
2207 struct s2 {int (*f) (double a);};
2208 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2214 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2219 # Don't try gcc -ansi; that turns off useful extensions and
2220 # breaks some systems' header files.
2221 # AIX -qlanglvl=ansi
2222 # Ultrix and OSF/1 -std1
2223 # HP-UX 10.20 and later -Ae
2224 # HP-UX older versions -Aa -D_HPUX_SOURCE
2225 # SVR4 -Xc -D__EXTENSIONS__
2226 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2228 CC="$ac_save_CC $ac_arg"
2229 rm -f conftest.$ac_objext
2230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231 (eval $ac_compile) 2>&5
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); } &&
2235 { ac_try='test -s conftest.$ac_objext'
2236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2241 ac_cv_prog_cc_stdc=$ac_arg
2244 echo "$as_me: failed program was:" >&5
2245 sed 's/^/| /' conftest.$ac_ext >&5
2248 rm -f conftest.$ac_objext
2250 rm -f conftest.$ac_ext conftest.$ac_objext
2255 case "x$ac_cv_prog_cc_stdc" in
2257 echo "$as_me:$LINENO: result: none needed" >&5
2258 echo "${ECHO_T}none needed" >&6 ;;
2260 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2261 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2262 CC="$CC $ac_cv_prog_cc_stdc" ;;
2265 # Some people use a C++ compiler to compile C. Since we use `exit',
2266 # in C++ we need to declare it. In case someone uses the same compiler
2267 # for both compiling C and C++ we need to have the C++ compiler decide
2268 # the declaration of exit, since it's the most demanding environment.
2269 cat >conftest.$ac_ext <<_ACEOF
2274 rm -f conftest.$ac_objext
2275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2276 (eval $ac_compile) 2>&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); } &&
2280 { ac_try='test -s conftest.$ac_objext'
2281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; }; then
2286 for ac_declaration in \
2288 '#include <stdlib.h>' \
2289 'extern "C" void std::exit (int) throw (); using std::exit;' \
2290 'extern "C" void std::exit (int); using std::exit;' \
2291 'extern "C" void exit (int) throw ();' \
2292 'extern "C" void exit (int);' \
2295 cat >conftest.$ac_ext <<_ACEOF
2296 #line $LINENO "configure"
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2312 rm -f conftest.$ac_objext
2313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314 (eval $ac_compile) 2>&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
2318 { ac_try='test -s conftest.$ac_objext'
2319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323 (exit $ac_status); }; }; then
2326 echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2331 rm -f conftest.$ac_objext conftest.$ac_ext
2332 cat >conftest.$ac_ext <<_ACEOF
2333 #line $LINENO "configure"
2336 cat confdefs.h >>conftest.$ac_ext
2337 cat >>conftest.$ac_ext <<_ACEOF
2338 /* end confdefs.h. */
2348 rm -f conftest.$ac_objext
2349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2350 (eval $ac_compile) 2>&5
2352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
2354 { ac_try='test -s conftest.$ac_objext'
2355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }; }; then
2362 echo "$as_me: failed program was:" >&5
2363 sed 's/^/| /' conftest.$ac_ext >&5
2366 rm -f conftest.$ac_objext conftest.$ac_ext
2369 if test -n "$ac_declaration"; then
2370 echo '#ifdef __cplusplus' >>confdefs.h
2371 echo $ac_declaration >>confdefs.h
2372 echo '#endif' >>confdefs.h
2376 echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2380 rm -f conftest.$ac_objext conftest.$ac_ext
2382 ac_cpp='$CPP $CPPFLAGS'
2383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2388 ac_cpp='$CXXCPP $CPPFLAGS'
2389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2392 if test -n "$ac_tool_prefix"; then
2393 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2395 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2396 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2397 echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2399 if test "${ac_cv_prog_CXX+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 if test -n "$CXX"; then
2403 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409 test -z "$as_dir" && as_dir=.
2410 for ac_exec_ext in '' $ac_executable_extensions; do
2411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2412 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2422 if test -n "$CXX"; then
2423 echo "$as_me:$LINENO: result: $CXX" >&5
2424 echo "${ECHO_T}$CXX" >&6
2426 echo "$as_me:$LINENO: result: no" >&5
2427 echo "${ECHO_T}no" >&6
2430 test -n "$CXX" && break
2433 if test -z "$CXX"; then
2435 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2437 # Extract the first word of "$ac_prog", so it can be a program name with args.
2438 set dummy $ac_prog; ac_word=$2
2439 echo "$as_me:$LINENO: checking for $ac_word" >&5
2440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2441 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2442 echo $ECHO_N "(cached) $ECHO_C" >&6
2444 if test -n "$ac_ct_CXX"; then
2445 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451 test -z "$as_dir" && as_dir=.
2452 for ac_exec_ext in '' $ac_executable_extensions; do
2453 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2454 ac_cv_prog_ac_ct_CXX="$ac_prog"
2455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2463 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2464 if test -n "$ac_ct_CXX"; then
2465 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2466 echo "${ECHO_T}$ac_ct_CXX" >&6
2468 echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6
2472 test -n "$ac_ct_CXX" && break
2474 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2480 # Provide some information about the compiler.
2481 echo "$as_me:$LINENO:" \
2482 "checking for C++ compiler version" >&5
2483 ac_compiler=`set X $ac_compile; echo $2`
2484 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2485 (eval $ac_compiler --version </dev/null >&5) 2>&5
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }
2489 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2490 (eval $ac_compiler -v </dev/null >&5) 2>&5
2492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493 (exit $ac_status); }
2494 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2495 (eval $ac_compiler -V </dev/null >&5) 2>&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }
2500 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2501 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2502 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2503 echo $ECHO_N "(cached) $ECHO_C" >&6
2505 cat >conftest.$ac_ext <<_ACEOF
2506 #line $LINENO "configure"
2509 cat confdefs.h >>conftest.$ac_ext
2510 cat >>conftest.$ac_ext <<_ACEOF
2511 /* end confdefs.h. */
2524 rm -f conftest.$ac_objext
2525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2526 (eval $ac_compile) 2>&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); } &&
2530 { ac_try='test -s conftest.$ac_objext'
2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); }; }; then
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2543 rm -f conftest.$ac_objext conftest.$ac_ext
2544 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2547 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2548 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2549 GXX=`test $ac_compiler_gnu = yes && echo yes`
2550 ac_test_CXXFLAGS=${CXXFLAGS+set}
2551 ac_save_CXXFLAGS=$CXXFLAGS
2553 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2554 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2555 if test "${ac_cv_prog_cxx_g+set}" = set; then
2556 echo $ECHO_N "(cached) $ECHO_C" >&6
2558 cat >conftest.$ac_ext <<_ACEOF
2559 #line $LINENO "configure"
2562 cat confdefs.h >>conftest.$ac_ext
2563 cat >>conftest.$ac_ext <<_ACEOF
2564 /* end confdefs.h. */
2574 rm -f conftest.$ac_objext
2575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2576 (eval $ac_compile) 2>&5
2578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2579 (exit $ac_status); } &&
2580 { ac_try='test -s conftest.$ac_objext'
2581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; }; then
2586 ac_cv_prog_cxx_g=yes
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2593 rm -f conftest.$ac_objext conftest.$ac_ext
2595 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2596 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2597 if test "$ac_test_CXXFLAGS" = set; then
2598 CXXFLAGS=$ac_save_CXXFLAGS
2599 elif test $ac_cv_prog_cxx_g = yes; then
2600 if test "$GXX" = yes; then
2606 if test "$GXX" = yes; then
2612 for ac_declaration in \
2614 '#include <stdlib.h>' \
2615 'extern "C" void std::exit (int) throw (); using std::exit;' \
2616 'extern "C" void std::exit (int); using std::exit;' \
2617 'extern "C" void exit (int) throw ();' \
2618 'extern "C" void exit (int);' \
2621 cat >conftest.$ac_ext <<_ACEOF
2622 #line $LINENO "configure"
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2638 rm -f conftest.$ac_objext
2639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2640 (eval $ac_compile) 2>&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } &&
2644 { ac_try='test -s conftest.$ac_objext'
2645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2649 (exit $ac_status); }; }; then
2652 echo "$as_me: failed program was:" >&5
2653 sed 's/^/| /' conftest.$ac_ext >&5
2657 rm -f conftest.$ac_objext conftest.$ac_ext
2658 cat >conftest.$ac_ext <<_ACEOF
2659 #line $LINENO "configure"
2662 cat confdefs.h >>conftest.$ac_ext
2663 cat >>conftest.$ac_ext <<_ACEOF
2664 /* end confdefs.h. */
2674 rm -f conftest.$ac_objext
2675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2676 (eval $ac_compile) 2>&5
2678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679 (exit $ac_status); } &&
2680 { ac_try='test -s conftest.$ac_objext'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; }; then
2688 echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2692 rm -f conftest.$ac_objext conftest.$ac_ext
2695 if test -n "$ac_declaration"; then
2696 echo '#ifdef __cplusplus' >>confdefs.h
2697 echo $ac_declaration >>confdefs.h
2698 echo '#endif' >>confdefs.h
2702 ac_cpp='$CPP $CPPFLAGS'
2703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2707 if test "x$CC" != xcc; then
2708 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2709 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2711 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2712 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2714 set dummy $CC; ac_cc=`echo $2 |
2715 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2716 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 cat >conftest.$ac_ext <<_ACEOF
2720 #line $LINENO "configure"
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h. */
2735 # Make sure it works both with $CC and with simple cc.
2736 # We do the test twice because some compilers refuse to overwrite an
2737 # existing .o file with -o, though they will create one.
2738 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2739 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } &&
2744 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); };
2750 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2751 if test "x$CC" != xcc; then
2752 # Test first that cc exists at all.
2753 if { ac_try='cc -c conftest.$ac_ext >&5'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2759 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2760 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); };
2774 # cc exists but doesn't like -o.
2775 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2780 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2785 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2786 echo "$as_me:$LINENO: result: yes" >&5
2787 echo "${ECHO_T}yes" >&6
2789 echo "$as_me:$LINENO: result: no" >&5
2790 echo "${ECHO_T}no" >&6
2792 cat >>confdefs.h <<\_ACEOF
2793 #define NO_MINUS_C_MINUS_O 1
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2803 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2804 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2805 # On Suns, sometimes $CPP names a directory.
2806 if test -n "$CPP" && test -d "$CPP"; then
2809 if test -z "$CPP"; then
2810 if test "${ac_cv_prog_CPP+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2813 # Double quotes because CPP needs to be expanded
2814 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2817 for ac_c_preproc_warn_flag in '' yes
2819 # Use a header file that comes with gcc, so configuring glibc
2820 # with a fresh cross-compiler works.
2821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2822 # <limits.h> exists even on freestanding compilers.
2823 # On the NeXT, cc -E runs the code through the compiler's parser,
2824 # not just through cpp. "Syntax error" is here to catch this case.
2825 cat >conftest.$ac_ext <<_ACEOF
2826 #line $LINENO "configure"
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h. */
2833 # include <limits.h>
2835 # include <assert.h>
2839 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2842 grep -v '^ *+' conftest.er1 >conftest.err
2844 cat conftest.err >&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); } >/dev/null; then
2847 if test -s conftest.err; then
2848 ac_cpp_err=$ac_c_preproc_warn_flag
2855 if test -z "$ac_cpp_err"; then
2858 echo "$as_me: failed program was:" >&5
2859 sed 's/^/| /' conftest.$ac_ext >&5
2861 # Broken: fails on valid input.
2864 rm -f conftest.err conftest.$ac_ext
2866 # OK, works on sane cases. Now check whether non-existent headers
2867 # can be detected and how.
2868 cat >conftest.$ac_ext <<_ACEOF
2869 #line $LINENO "configure"
2872 cat confdefs.h >>conftest.$ac_ext
2873 cat >>conftest.$ac_ext <<_ACEOF
2874 /* end confdefs.h. */
2875 #include <ac_nonexistent.h>
2877 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2880 grep -v '^ *+' conftest.er1 >conftest.err
2882 cat conftest.err >&5
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } >/dev/null; then
2885 if test -s conftest.err; then
2886 ac_cpp_err=$ac_c_preproc_warn_flag
2893 if test -z "$ac_cpp_err"; then
2894 # Broken: success on invalid input.
2897 echo "$as_me: failed program was:" >&5
2898 sed 's/^/| /' conftest.$ac_ext >&5
2900 # Passes both tests.
2904 rm -f conftest.err conftest.$ac_ext
2907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2908 rm -f conftest.err conftest.$ac_ext
2909 if $ac_preproc_ok; then
2921 echo "$as_me:$LINENO: result: $CPP" >&5
2922 echo "${ECHO_T}$CPP" >&6
2924 for ac_c_preproc_warn_flag in '' yes
2926 # Use a header file that comes with gcc, so configuring glibc
2927 # with a fresh cross-compiler works.
2928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2929 # <limits.h> exists even on freestanding compilers.
2930 # On the NeXT, cc -E runs the code through the compiler's parser,
2931 # not just through cpp. "Syntax error" is here to catch this case.
2932 cat >conftest.$ac_ext <<_ACEOF
2933 #line $LINENO "configure"
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2940 # include <limits.h>
2942 # include <assert.h>
2946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2949 grep -v '^ *+' conftest.er1 >conftest.err
2951 cat conftest.err >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } >/dev/null; then
2954 if test -s conftest.err; then
2955 ac_cpp_err=$ac_c_preproc_warn_flag
2962 if test -z "$ac_cpp_err"; then
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2968 # Broken: fails on valid input.
2971 rm -f conftest.err conftest.$ac_ext
2973 # OK, works on sane cases. Now check whether non-existent headers
2974 # can be detected and how.
2975 cat >conftest.$ac_ext <<_ACEOF
2976 #line $LINENO "configure"
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2982 #include <ac_nonexistent.h>
2984 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2987 grep -v '^ *+' conftest.er1 >conftest.err
2989 cat conftest.err >&5
2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991 (exit $ac_status); } >/dev/null; then
2992 if test -s conftest.err; then
2993 ac_cpp_err=$ac_c_preproc_warn_flag
3000 if test -z "$ac_cpp_err"; then
3001 # Broken: success on invalid input.
3004 echo "$as_me: failed program was:" >&5
3005 sed 's/^/| /' conftest.$ac_ext >&5
3007 # Passes both tests.
3011 rm -f conftest.err conftest.$ac_ext
3014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3015 rm -f conftest.err conftest.$ac_ext
3016 if $ac_preproc_ok; then
3019 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3020 See \`config.log' for more details." >&5
3021 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3022 See \`config.log' for more details." >&2;}
3023 { (exit 1); exit 1; }; }
3027 ac_cpp='$CPP $CPPFLAGS'
3028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3033 echo "$as_me:$LINENO: checking for egrep" >&5
3034 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3035 if test "${ac_cv_prog_egrep+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3039 then ac_cv_prog_egrep='grep -E'
3040 else ac_cv_prog_egrep='egrep'
3043 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3044 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3045 EGREP=$ac_cv_prog_egrep
3048 if test $ac_cv_c_compiler_gnu = yes; then
3049 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3050 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3051 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3052 echo $ECHO_N "(cached) $ECHO_C" >&6
3054 ac_pattern="Autoconf.*'x'"
3055 cat >conftest.$ac_ext <<_ACEOF
3056 #line $LINENO "configure"
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3066 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3067 ac_cv_prog_gcc_traditional=yes
3069 ac_cv_prog_gcc_traditional=no
3074 if test $ac_cv_prog_gcc_traditional = no; then
3075 cat >conftest.$ac_ext <<_ACEOF
3076 #line $LINENO "configure"
3079 cat confdefs.h >>conftest.$ac_ext
3080 cat >>conftest.$ac_ext <<_ACEOF
3081 /* end confdefs.h. */
3085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3086 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3087 ac_cv_prog_gcc_traditional=yes
3093 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3094 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3095 if test $ac_cv_prog_gcc_traditional = yes; then
3096 CC="$CC -traditional"
3102 cat >>confdefs.h <<\_ACEOF
3108 # Find a good install program. We prefer a C program (faster),
3109 # so one script is as good as another. But avoid the broken or
3110 # incompatible versions:
3111 # SysV /etc/install, /usr/sbin/install
3112 # SunOS /usr/etc/install
3113 # IRIX /sbin/install
3115 # AmigaOS /C/install, which installs bootblocks on floppy discs
3116 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3117 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3118 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3119 # ./install, which can be erroneously created by make from ./install.sh.
3120 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3121 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3122 if test -z "$INSTALL"; then
3123 if test "${ac_cv_path_install+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 test -z "$as_dir" && as_dir=.
3131 # Account for people who put trailing slashes in PATH elements.
3133 ./ | .// | /cC/* | \
3134 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3137 # OSF1 and SCO ODT 3.0 have their own names for install.
3138 # Don't use installbsd from OSF since it installs stuff as root
3140 for ac_prog in ginstall scoinst install; do
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3143 if test $ac_prog = install &&
3144 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3145 # AIX install. It has an incompatible calling convention.
3147 elif test $ac_prog = install &&
3148 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3149 # program-specific install script used by HP pwplus--don't use.
3152 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3164 if test "${ac_cv_path_install+set}" = set; then
3165 INSTALL=$ac_cv_path_install
3167 # As a last resort, use the slow shell script. We don't cache a
3168 # path for INSTALL within a source directory, because that will
3169 # break other packages using the cache if that directory is
3170 # removed, or if the path is relative.
3171 INSTALL=$ac_install_sh
3174 echo "$as_me:$LINENO: result: $INSTALL" >&5
3175 echo "${ECHO_T}$INSTALL" >&6
3177 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3178 # It thinks the first close brace ends the variable substitution.
3179 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3181 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3183 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3185 if test -n "$ac_tool_prefix"; then
3186 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3187 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3188 echo "$as_me:$LINENO: checking for $ac_word" >&5
3189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3190 if test "${ac_cv_prog_RANLIB+set}" = set; then
3191 echo $ECHO_N "(cached) $ECHO_C" >&6
3193 if test -n "$RANLIB"; then
3194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3212 RANLIB=$ac_cv_prog_RANLIB
3213 if test -n "$RANLIB"; then
3214 echo "$as_me:$LINENO: result: $RANLIB" >&5
3215 echo "${ECHO_T}$RANLIB" >&6
3217 echo "$as_me:$LINENO: result: no" >&5
3218 echo "${ECHO_T}no" >&6
3222 if test -z "$ac_cv_prog_RANLIB"; then
3223 ac_ct_RANLIB=$RANLIB
3224 # Extract the first word of "ranlib", so it can be a program name with args.
3225 set dummy ranlib; ac_word=$2
3226 echo "$as_me:$LINENO: checking for $ac_word" >&5
3227 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3228 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 if test -n "$ac_ct_RANLIB"; then
3232 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_ac_ct_RANLIB="ranlib"
3242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3251 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3252 if test -n "$ac_ct_RANLIB"; then
3253 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3254 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3256 echo "$as_me:$LINENO: result: no" >&5
3257 echo "${ECHO_T}no" >&6
3260 RANLIB=$ac_ct_RANLIB
3262 RANLIB="$ac_cv_prog_RANLIB"
3265 # Extract the first word of "mv", so it can be a program name with args.
3266 set dummy mv; ac_word=$2
3267 echo "$as_me:$LINENO: checking for $ac_word" >&5
3268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3269 if test "${ac_cv_path_MV+set}" = set; then
3270 echo $ECHO_N "(cached) $ECHO_C" >&6
3274 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 test -z "$as_dir" && as_dir=.
3282 for ac_exec_ext in '' $ac_executable_extensions; do
3283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3291 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3297 if test -n "$MV"; then
3298 echo "$as_me:$LINENO: result: $MV" >&5
3299 echo "${ECHO_T}$MV" >&6
3301 echo "$as_me:$LINENO: result: no" >&5
3302 echo "${ECHO_T}no" >&6
3305 # Extract the first word of "rm", so it can be a program name with args.
3306 set dummy rm; ac_word=$2
3307 echo "$as_me:$LINENO: checking for $ac_word" >&5
3308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3309 if test "${ac_cv_path_RM+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 test -z "$as_dir" && as_dir=.
3322 for ac_exec_ext in '' $ac_executable_extensions; do
3323 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3324 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3337 if test -n "$RM"; then
3338 echo "$as_me:$LINENO: result: $RM" >&5
3339 echo "${ECHO_T}$RM" >&6
3341 echo "$as_me:$LINENO: result: no" >&5
3342 echo "${ECHO_T}no" >&6
3345 # Extract the first word of "cp", so it can be a program name with args.
3346 set dummy cp; ac_word=$2
3347 echo "$as_me:$LINENO: checking for $ac_word" >&5
3348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3349 if test "${ac_cv_path_CP+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3354 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 test -z "$as_dir" && as_dir=.
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3364 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3371 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3377 if test -n "$CP"; then
3378 echo "$as_me:$LINENO: result: $CP" >&5
3379 echo "${ECHO_T}$CP" >&6
3381 echo "$as_me:$LINENO: result: no" >&5
3382 echo "${ECHO_T}no" >&6
3385 # Extract the first word of "sed", so it can be a program name with args.
3386 set dummy sed; ac_word=$2
3387 echo "$as_me:$LINENO: checking for $ac_word" >&5
3388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3389 if test "${ac_cv_path_SED+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3394 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 test -z "$as_dir" && as_dir=.
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3404 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3417 if test -n "$SED"; then
3418 echo "$as_me:$LINENO: result: $SED" >&5
3419 echo "${ECHO_T}$SED" >&6
3421 echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6
3425 # Extract the first word of "awk", so it can be a program name with args.
3426 set dummy awk; ac_word=$2
3427 echo "$as_me:$LINENO: checking for $ac_word" >&5
3428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3429 if test "${ac_cv_path_AWK+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3444 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3451 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3457 if test -n "$AWK"; then
3458 echo "$as_me:$LINENO: result: $AWK" >&5
3459 echo "${ECHO_T}$AWK" >&6
3461 echo "$as_me:$LINENO: result: no" >&5
3462 echo "${ECHO_T}no" >&6
3465 # Extract the first word of "echo", so it can be a program name with args.
3466 set dummy echo; ac_word=$2
3467 echo "$as_me:$LINENO: checking for $ac_word" >&5
3468 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3469 if test "${ac_cv_path_ECHO+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3474 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 test -z "$as_dir" && as_dir=.
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3484 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3491 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3495 ECHO=$ac_cv_path_ECHO
3497 if test -n "$ECHO"; then
3498 echo "$as_me:$LINENO: result: $ECHO" >&5
3499 echo "${ECHO_T}$ECHO" >&6
3501 echo "$as_me:$LINENO: result: no" >&5
3502 echo "${ECHO_T}no" >&6
3505 # Extract the first word of "cmp", so it can be a program name with args.
3506 set dummy cmp; ac_word=$2
3507 echo "$as_me:$LINENO: checking for $ac_word" >&5
3508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3509 if test "${ac_cv_path_CMP+set}" = set; then
3510 echo $ECHO_N "(cached) $ECHO_C" >&6
3514 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 test -z "$as_dir" && as_dir=.
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3524 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3537 if test -n "$CMP"; then
3538 echo "$as_me:$LINENO: result: $CMP" >&5
3539 echo "${ECHO_T}$CMP" >&6
3541 echo "$as_me:$LINENO: result: no" >&5
3542 echo "${ECHO_T}no" >&6
3545 # Extract the first word of "tbl", so it can be a program name with args.
3546 set dummy tbl; ac_word=$2
3547 echo "$as_me:$LINENO: checking for $ac_word" >&5
3548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3549 if test "${ac_cv_path_TBL+set}" = set; then
3550 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3564 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3577 if test -n "$TBL"; then
3578 echo "$as_me:$LINENO: result: $TBL" >&5
3579 echo "${ECHO_T}$TBL" >&6
3581 echo "$as_me:$LINENO: result: no" >&5
3582 echo "${ECHO_T}no" >&6
3585 # Extract the first word of "ar", so it can be a program name with args.
3586 set dummy ar; ac_word=$2
3587 echo "$as_me:$LINENO: checking for $ac_word" >&5
3588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3589 if test "${ac_cv_path_AR+set}" = set; then
3590 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601 test -z "$as_dir" && as_dir=.
3602 for ac_exec_ext in '' $ac_executable_extensions; do
3603 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3604 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3611 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3617 if test -n "$AR"; then
3618 echo "$as_me:$LINENO: result: $AR" >&5
3619 echo "${ECHO_T}$AR" >&6
3621 echo "$as_me:$LINENO: result: no" >&5
3622 echo "${ECHO_T}no" >&6
3625 # Extract the first word of "ranlib", so it can be a program name with args.
3626 set dummy ranlib; ac_word=$2
3627 echo "$as_me:$LINENO: checking for $ac_word" >&5
3628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3629 if test "${ac_cv_path_RANLIB+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3634 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 test -z "$as_dir" && as_dir=.
3642 for ac_exec_ext in '' $ac_executable_extensions; do
3643 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3644 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3655 RANLIB=$ac_cv_path_RANLIB
3657 if test -n "$RANLIB"; then
3658 echo "$as_me:$LINENO: result: $RANLIB" >&5
3659 echo "${ECHO_T}$RANLIB" >&6
3661 echo "$as_me:$LINENO: result: no" >&5
3662 echo "${ECHO_T}no" >&6
3665 # Extract the first word of "openssl", so it can be a program name with args.
3666 set dummy openssl; ac_word=$2
3667 echo "$as_me:$LINENO: checking for $ac_word" >&5
3668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3669 if test "${ac_cv_path_OPENSSL+set}" = set; then
3670 echo $ECHO_N "(cached) $ECHO_C" >&6
3674 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3681 test -z "$as_dir" && as_dir=.
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3684 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3695 OPENSSL=$ac_cv_path_OPENSSL
3697 if test -n "$OPENSSL"; then
3698 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3699 echo "${ECHO_T}$OPENSSL" >&6
3701 echo "$as_me:$LINENO: result: no" >&5
3702 echo "${ECHO_T}no" >&6
3705 # Extract the first word of "mtx", so it can be a program name with args.
3706 set dummy mtx; ac_word=$2
3707 echo "$as_me:$LINENO: checking for $ac_word" >&5
3708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3709 if test "${ac_cv_path_MTX+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3721 test -z "$as_dir" && as_dir=.
3722 for ac_exec_ext in '' $ac_executable_extensions; do
3723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3724 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3737 if test -n "$MTX"; then
3738 echo "$as_me:$LINENO: result: $MTX" >&5
3739 echo "${ECHO_T}$MTX" >&6
3741 echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6
3745 # Extract the first word of "pkg-config", so it can be a program name with args.
3746 set dummy pkg-config; ac_word=$2
3747 echo "$as_me:$LINENO: checking for $ac_word" >&5
3748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3749 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3754 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3761 test -z "$as_dir" && as_dir=.
3762 for ac_exec_ext in '' $ac_executable_extensions; do
3763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3764 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3775 PKGCONFIG=$ac_cv_path_PKGCONFIG
3777 if test -n "$PKGCONFIG"; then
3778 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3779 echo "${ECHO_T}$PKGCONFIG" >&6
3781 echo "$as_me:$LINENO: result: no" >&5
3782 echo "${ECHO_T}no" >&6
3786 test -n "$ARFLAG" || ARFLAGS="cr"
3799 echo "$as_me:$LINENO: checking for Operating System" >&5
3800 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3803 *cygwin* ) CYGWIN=yes;;
3807 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3813 HAVE_SUN_OS_FALSE='#'
3815 HAVE_SUN_OS_TRUE='#'
3818 cat >>confdefs.h <<\_ACEOF
3819 #define HAVE_SUN_OS 1
3827 HAVE_SUN_OS_FALSE='#'
3829 HAVE_SUN_OS_TRUE='#'
3834 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3840 HAVE_OSF1_OS_FALSE='#'
3842 HAVE_OSF1_OS_TRUE='#'
3845 cat >>confdefs.h <<\_ACEOF
3846 #define HAVE_OSF1_OS 1
3854 HAVE_OSF1_OS_FALSE='#'
3856 HAVE_OSF1_OS_TRUE='#'
3861 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3867 HAVE_AIX_OS_FALSE='#'
3869 HAVE_AIX_OS_TRUE='#'
3872 cat >>confdefs.h <<\_ACEOF
3873 #define HAVE_AIX_OS 1
3881 HAVE_AIX_OS_FALSE='#'
3883 HAVE_AIX_OS_TRUE='#'
3888 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3894 HAVE_HPUX_OS_FALSE='#'
3896 HAVE_HPUX_OS_TRUE='#'
3899 cat >>confdefs.h <<\_ACEOF
3900 #define HAVE_HPUX_OS 1
3908 HAVE_HPUX_OS_FALSE='#'
3910 HAVE_HPUX_OS_TRUE='#'
3915 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3921 HAVE_LINUX_OS_FALSE='#'
3923 HAVE_LINUX_OS_TRUE='#'
3924 HAVE_LINUX_OS_FALSE=
3926 cat >>confdefs.h <<\_ACEOF
3927 #define HAVE_LINUX_OS 1
3935 HAVE_LINUX_OS_FALSE='#'
3937 HAVE_LINUX_OS_TRUE='#'
3938 HAVE_LINUX_OS_FALSE=
3942 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3947 HAVE_FREEBSD_OS_TRUE=
3948 HAVE_FREEBSD_OS_FALSE='#'
3950 HAVE_FREEBSD_OS_TRUE='#'
3951 HAVE_FREEBSD_OS_FALSE=
3953 cat >>confdefs.h <<\_ACEOF
3954 #define HAVE_FREEBSD_OS 1
3961 HAVE_FREEBSD_OS_TRUE=
3962 HAVE_FREEBSD_OS_FALSE='#'
3964 HAVE_FREEBSD_OS_TRUE='#'
3965 HAVE_FREEBSD_OS_FALSE=
3969 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3974 HAVE_NETBSD_OS_TRUE=
3975 HAVE_NETBSD_OS_FALSE='#'
3977 HAVE_NETBSD_OS_TRUE='#'
3978 HAVE_NETBSD_OS_FALSE=
3980 cat >>confdefs.h <<\_ACEOF
3981 #define HAVE_NETBSD_OS 1
3988 HAVE_NETBSD_OS_TRUE=
3989 HAVE_NETBSD_OS_FALSE='#'
3991 HAVE_NETBSD_OS_TRUE='#'
3992 HAVE_NETBSD_OS_FALSE=
3996 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4001 HAVE_OPENBSD_OS_TRUE=
4002 HAVE_OPENBSD_OS_FALSE='#'
4004 HAVE_OPENBSD_OS_TRUE='#'
4005 HAVE_OPENBSD_OS_FALSE=
4007 cat >>confdefs.h <<\_ACEOF
4008 #define HAVE_OPENBSD_OS 1
4015 HAVE_OPENBSD_OS_TRUE=
4016 HAVE_OPENBSD_OS_FALSE='#'
4018 HAVE_OPENBSD_OS_TRUE='#'
4019 HAVE_OPENBSD_OS_FALSE=
4023 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4029 HAVE_BSDI_OS_FALSE='#'
4031 HAVE_BSDI_OS_TRUE='#'
4034 cat >>confdefs.h <<\_ACEOF
4035 #define HAVE_BSDI_OS 1
4043 HAVE_BSDI_OS_FALSE='#'
4045 HAVE_BSDI_OS_TRUE='#'
4050 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4056 HAVE_SGI_OS_FALSE='#'
4058 HAVE_SGI_OS_TRUE='#'
4061 cat >>confdefs.h <<\_ACEOF
4062 #define HAVE_SGI_OS 1
4070 HAVE_SGI_OS_FALSE='#'
4072 HAVE_SGI_OS_TRUE='#'
4077 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4083 HAVE_IRIX_OS_FALSE='#'
4085 HAVE_IRIX_OS_TRUE='#'
4088 cat >>confdefs.h <<\_ACEOF
4089 #define HAVE_IRIX_OS 1
4097 HAVE_IRIX_OS_FALSE='#'
4099 HAVE_IRIX_OS_TRUE='#'
4104 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4109 HAVE_DARWIN_OS_TRUE=
4110 HAVE_DARWIN_OS_FALSE='#'
4112 HAVE_DARWIN_OS_TRUE='#'
4113 HAVE_DARWIN_OS_FALSE=
4115 cat >>confdefs.h <<\_ACEOF
4116 #define HAVE_DARWIN_OS 1
4123 HAVE_DARWIN_OS_TRUE=
4124 HAVE_DARWIN_OS_FALSE='#'
4126 HAVE_DARWIN_OS_TRUE='#'
4127 HAVE_DARWIN_OS_FALSE=
4131 echo "$as_me:$LINENO: result: \" \"" >&5
4132 echo "${ECHO_T}\" \"" >&6
4135 # -----------------------------------------------------------
4136 # ----------------------------------------------------------
4137 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4138 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4139 if test "x$DISTNAME" != "x"
4141 echo "distname set to $DISTNAME"
4142 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4145 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4148 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4151 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4154 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4157 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4160 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4163 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4166 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4169 elif test -f /etc/SuSE-release
4172 elif test -d /etc/SuSEconfig
4175 elif test -f /etc/mandrake-release
4178 elif test -f /etc/redhat-release
4181 elif test -f /etc/gentoo-release
4184 elif test -f /etc/debian_version
4187 elif test -f /etc/slackware-version
4190 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4193 elif test -f /etc/engarde-version
4196 elif test "$CYGWIN" = yes
4199 cat >>confdefs.h <<\_ACEOF
4200 #define HAVE_CYGWIN 1
4206 echo "$as_me:$LINENO: result: \" \"" >&5
4207 echo "${ECHO_T}\" \"" >&6
4210 # -----------------------------------------------------------
4211 # ----------------------------------------------------------
4216 INSIDE_GNOME_COMMON_TRUE=
4217 INSIDE_GNOME_COMMON_FALSE='#'
4219 INSIDE_GNOME_COMMON_TRUE='#'
4220 INSIDE_GNOME_COMMON_FALSE=
4223 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4225 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4228 # ------------------------------------------------------------------
4229 # If the user has not set --prefix, we set our default to nothing.
4230 # In this case, if the user has not set --sysconfdir, we set it
4231 # to the package default of /etc/bacula. If either --prefix or
4232 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4233 # ------------------------------------------------------------------
4234 if test x${prefix} = xNONE ; then
4235 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4236 sysconfdir=/etc/bacula
4240 sysconfdir=`eval echo ${sysconfdir}`
4242 # -------------------------------------------------------------------------
4243 # If the user has not set --exec-prefix, we default to ${prefix}
4244 # -------------------------------------------------------------------------
4245 if test x${exec_prefix} = xNONE ; then
4246 exec_prefix=${prefix}
4249 # ------------------------------------------------------------------
4250 # If the user has not set --sbindir, we set our default as /sbin
4251 # ------------------------------------------------------------------
4252 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4253 sbindir=${exec_prefix}/sbin
4255 sbindir=`eval echo ${sbindir}`
4257 # ------------------------------------------------------------------
4258 # All list of languages for which a translation exist. Each
4259 # language is separated by a space.
4260 # ------------------------------------------------------------------
4263 for ac_prog in msgfmt
4265 # Extract the first word of "$ac_prog", so it can be a program name with args.
4266 set dummy $ac_prog; ac_word=$2
4267 echo "$as_me:$LINENO: checking for $ac_word" >&5
4268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4269 if test "${ac_cv_path_MSGFMT+set}" = set; then
4270 echo $ECHO_N "(cached) $ECHO_C" >&6
4274 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281 test -z "$as_dir" && as_dir=.
4282 for ac_exec_ext in '' $ac_executable_extensions; do
4283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4284 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 MSGFMT=$ac_cv_path_MSGFMT
4296 if test -n "$MSGFMT"; then
4297 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4298 echo "${ECHO_T}$MSGFMT" >&6
4300 echo "$as_me:$LINENO: result: no" >&5
4301 echo "${ECHO_T}no" >&6
4304 test -n "$MSGFMT" && break
4306 test -n "$MSGFMT" || MSGFMT="no"
4308 if test "$MSGFMT" = "no"
4310 echo 'msgfmt program not found, disabling NLS !'
4312 USE_INCLUDED_LIBINTL=no
4320 support_postgresql=no
4321 support_smartalloc=yes
4326 support_static_tools=no
4327 support_static_fd=no
4328 support_static_sd=no
4329 support_static_dir=no
4330 support_static_cons=no
4331 build_client_only=no
4337 # -------------------------------------------
4338 # gnome (default off)
4339 # -------------------------------------------
4340 # Check whether --enable-gnome or --disable-gnome was given.
4341 if test "${enable_gnome+set}" = set; then
4342 enableval="$enable_gnome"
4343 if test x$enableval = xyes; then
4349 if test x$support_gnome = xyes; then
4350 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4352 if test $pkg = 0; then
4353 GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4354 GNOMEUI_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4355 GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4356 GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4361 GNOME_DIR=src/gnome2-console
4362 gnome_version="Version 2.x"
4375 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4376 if test "${with_gnome_includes+set}" = set; then
4377 withval="$with_gnome_includes"
4379 CFLAGS="$CFLAGS -I$withval"
4384 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4385 if test "${with_gnome_libs+set}" = set; then
4386 withval="$with_gnome_libs"
4388 LDFLAGS="$LDFLAGS -L$withval"
4389 gnome_prefix=$withval
4394 # Check whether --with-gnome or --without-gnome was given.
4395 if test "${with_gnome+set}" = set; then
4396 withval="$with_gnome"
4397 if test x$withval = xyes; then
4401 if test "x$withval" = xno; then
4405 LDFLAGS="$LDFLAGS -L$withval/lib"
4406 CFLAGS="$CFLAGS -I$withval/include"
4407 gnome_prefix=$withval/lib
4414 if test "x$want_gnome" = xyes; then
4416 # Extract the first word of "gnome-config", so it can be a program name with args.
4417 set dummy gnome-config; ac_word=$2
4418 echo "$as_me:$LINENO: checking for $ac_word" >&5
4419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4420 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 case $GNOME_CONFIG in
4425 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 test -z "$as_dir" && as_dir=.
4433 for ac_exec_ext in '' $ac_executable_extensions; do
4434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4435 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4442 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4446 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4448 if test -n "$GNOME_CONFIG"; then
4449 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4450 echo "${ECHO_T}$GNOME_CONFIG" >&6
4452 echo "$as_me:$LINENO: result: no" >&5
4453 echo "${ECHO_T}no" >&6
4456 if test "$GNOME_CONFIG" = "no"; then
4457 no_gnome_config="yes"
4459 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4460 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4461 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4462 echo "$as_me:$LINENO: result: yes" >&5
4463 echo "${ECHO_T}yes" >&6
4466 # Extract the first word of "orbit-config", so it can be a program name with args.
4467 set dummy orbit-config; ac_word=$2
4468 echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4470 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 case $ORBIT_CONFIG in
4475 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 test -z "$as_dir" && as_dir=.
4483 for ac_exec_ext in '' $ac_executable_extensions; do
4484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4485 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4496 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4498 if test -n "$ORBIT_CONFIG"; then
4499 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4500 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4502 echo "$as_me:$LINENO: result: no" >&5
4503 echo "${ECHO_T}no" >&6
4506 # Extract the first word of "orbit-idl", so it can be a program name with args.
4507 set dummy orbit-idl; ac_word=$2
4508 echo "$as_me:$LINENO: checking for $ac_word" >&5
4509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4510 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4522 test -z "$as_dir" && as_dir=.
4523 for ac_exec_ext in '' $ac_executable_extensions; do
4524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4525 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4536 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4538 if test -n "$ORBIT_IDL"; then
4539 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4540 echo "${ECHO_T}$ORBIT_IDL" >&6
4542 echo "$as_me:$LINENO: result: no" >&5
4543 echo "${ECHO_T}no" >&6
4546 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4547 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4548 if test "${gnome_cv_orbit_found+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4553 gnome_cv_orbit_found=no
4555 gnome_cv_orbit_found=yes
4559 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4560 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4563 if test x$gnome_cv_orbit_found = xyes; then
4565 HAVE_ORBIT_FALSE='#'
4570 if test x$gnome_cv_orbit_found = xyes; then
4572 ORBIT_CFLAGS=`orbit-config --cflags client server`
4573 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4577 if test xfail = xfailure; then
4578 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4579 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4580 { (exit 1); exit 1; }; }
4584 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4585 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4586 if test "${gnome_cv_gnorba_found+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4590 gnome_cv_gnorba_found=no
4591 if test x$gnome_cv_orbit_found = xyes; then
4592 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4593 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4594 if test -n "$GNORBA_LIBS"; then
4595 gnome_cv_gnorba_found=yes
4600 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4601 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4604 if test x$gnome_cv_gnorba_found = xyes; then
4606 HAVE_GNORBA_FALSE='#'
4608 HAVE_GNORBA_TRUE='#'
4611 if test x$gnome_cv_orbit_found = xyes; then
4613 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4614 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4618 if test xfail = xfailure; then
4619 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4620 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4621 { (exit 1); exit 1; }; }
4625 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4626 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4627 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4628 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4629 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4630 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4631 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4634 echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6
4636 no_gnome_config="yes"
4640 if test x$exec_prefix = xNONE; then
4641 if test x$prefix = xNONE; then
4642 gnome_prefix=$ac_default_prefix/lib
4644 gnome_prefix=$prefix/lib
4647 gnome_prefix=`eval echo \`echo $libdir\``
4650 if test "$no_gnome_config" = "yes"; then
4651 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4652 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4653 if test -f $gnome_prefix/gnomeConf.sh; then
4654 echo "$as_me:$LINENO: result: found" >&5
4655 echo "${ECHO_T}found" >&6
4656 echo "loading gnome configuration from" \
4657 "$gnome_prefix/gnomeConf.sh"
4658 . $gnome_prefix/gnomeConf.sh
4661 echo "$as_me:$LINENO: result: not found" >&5
4662 echo "${ECHO_T}not found" >&6
4663 if test xfail = xfail; then
4664 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4665 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4666 { (exit 1); exit 1; }; }
4675 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4676 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4680 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4681 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4682 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4685 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4686 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4687 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4690 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4691 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4692 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4694 echo "$as_me:$LINENO: result: unknown library" >&5
4695 echo "${ECHO_T}unknown library" >&6
4697 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4698 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4703 GNOME_DIR=src/gnome-console
4704 gnome_version="Version 1.4"
4710 # -------------------------------------------
4711 # smartalloc (default off)
4712 # -------------------------------------------
4713 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4714 if test "${enable_smartalloc+set}" = set; then
4715 enableval="$enable_smartalloc"
4716 if test x$enableval = xno; then
4717 support_smartalloc=no
4721 if test x$support_smartalloc = xyes; then
4722 cat >>confdefs.h <<\_ACEOF
4723 #define SMARTALLOC 1
4728 # -------------------------------------------
4729 # static-tools (default off)
4730 # -------------------------------------------
4731 # Check whether --enable-static-tools or --disable-static-tools was given.
4732 if test "${enable_static_tools+set}" = set; then
4733 enableval="$enable_static_tools"
4734 if test x$enableval = xyes; then
4735 support_static_tools=yes
4740 if test x$support_static_tools = xyes; then
4741 TTOOL_LDFLAGS="-static"
4745 # -------------------------------------------
4746 # static-fd (default off)
4747 # -------------------------------------------
4748 # Check whether --enable-static-fd or --disable-static-fd was given.
4749 if test "${enable_static_fd+set}" = set; then
4750 enableval="$enable_static_fd"
4751 if test x$enableval = xyes; then
4752 support_static_fd=yes
4757 if test x$support_static_fd = xyes; then
4758 STATIC_FD="static-bacula-fd"
4762 # -------------------------------------------
4763 # static-sd (default off)
4764 # -------------------------------------------
4765 # Check whether --enable-static-sd or --disable-static-sd was given.
4766 if test "${enable_static_sd+set}" = set; then
4767 enableval="$enable_static_sd"
4768 if test x$enableval = xyes; then
4769 support_static_sd=yes
4774 if test x$support_static_sd = xyes; then
4775 STATIC_SD="static-bacula-sd"
4779 # -------------------------------------------
4780 # static-dir (default off)
4781 # -------------------------------------------
4782 # Check whether --enable-static-dir or --disable-static-dir was given.
4783 if test "${enable_static_dir+set}" = set; then
4784 enableval="$enable_static_dir"
4785 if test x$enableval = xyes; then
4786 support_static_dir=yes
4791 if test x$support_static_dir = xyes; then
4792 STATIC_DIR="static-bacula-dir"
4796 # -------------------------------------------
4797 # static-cons (default off)
4798 # -------------------------------------------
4799 # Check whether --enable-static-cons or --disable-static-cons was given.
4800 if test "${enable_static_cons+set}" = set; then
4801 enableval="$enable_static_cons"
4802 if test x$enableval = xyes; then
4803 support_static_cons=yes
4809 if test x$support_static_cons = xyes; then
4810 STATIC_CONS="static-bconsole"
4811 STATIC_GNOME_CONS="static-gnome-console"
4816 # -------------------------------------------
4817 # client_only (default off)
4818 # -------------------------------------------
4819 # Check whether --enable-client-only or --disable-client-only was given.
4820 if test "${enable_client_only+set}" = set; then
4821 enableval="$enable_client_only"
4822 if test x$enableval = xyes; then
4823 build_client_only=yes
4826 if test x$build_client_only = xno; then
4833 # ---------------------------------------------------
4834 # Check for conio (Bacula readline substitute)(
4835 # ---------------------------------------------------
4836 # this allows you to turn it completely off
4837 # Check whether --enable-conio or --disable-conio was given.
4838 if test "${enable_conio+set}" = set; then
4839 enableval="$enable_conio"
4840 if test x$enableval = xno; then
4846 if test x$support_conio = xyes; then
4850 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4851 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4852 if test "${ac_cv_header_stdc+set}" = set; then
4853 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 cat >conftest.$ac_ext <<_ACEOF
4856 #line $LINENO "configure"
4859 cat confdefs.h >>conftest.$ac_ext
4860 cat >>conftest.$ac_ext <<_ACEOF
4861 /* end confdefs.h. */
4875 rm -f conftest.$ac_objext
4876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4877 (eval $ac_compile) 2>&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } &&
4881 { ac_try='test -s conftest.$ac_objext'
4882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; }; then
4887 ac_cv_header_stdc=yes
4889 echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.$ac_ext >&5
4892 ac_cv_header_stdc=no
4894 rm -f conftest.$ac_objext conftest.$ac_ext
4896 if test $ac_cv_header_stdc = yes; then
4897 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4898 cat >conftest.$ac_ext <<_ACEOF
4899 #line $LINENO "configure"
4902 cat confdefs.h >>conftest.$ac_ext
4903 cat >>conftest.$ac_ext <<_ACEOF
4904 /* end confdefs.h. */
4908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4909 $EGREP "memchr" >/dev/null 2>&1; then
4912 ac_cv_header_stdc=no
4918 if test $ac_cv_header_stdc = yes; then
4919 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4920 cat >conftest.$ac_ext <<_ACEOF
4921 #line $LINENO "configure"
4924 cat confdefs.h >>conftest.$ac_ext
4925 cat >>conftest.$ac_ext <<_ACEOF
4926 /* end confdefs.h. */
4930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4931 $EGREP "free" >/dev/null 2>&1; then
4934 ac_cv_header_stdc=no
4940 if test $ac_cv_header_stdc = yes; then
4941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4942 if test "$cross_compiling" = yes; then
4945 cat >conftest.$ac_ext <<_ACEOF
4946 #line $LINENO "configure"
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4953 #if ((' ' & 0x0FF) == 0x020)
4954 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4955 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4957 # define ISLOWER(c) \
4958 (('a' <= (c) && (c) <= 'i') \
4959 || ('j' <= (c) && (c) <= 'r') \
4960 || ('s' <= (c) && (c) <= 'z'))
4961 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4964 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4969 for (i = 0; i < 256; i++)
4970 if (XOR (islower (i), ISLOWER (i))
4971 || toupper (i) != TOUPPER (i))
4976 rm -f conftest$ac_exeext
4977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4978 (eval $ac_link) 2>&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; }; then
4989 echo "$as_me: program exited with status $ac_status" >&5
4990 echo "$as_me: failed program was:" >&5
4991 sed 's/^/| /' conftest.$ac_ext >&5
4994 ac_cv_header_stdc=no
4996 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5000 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5001 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5002 if test $ac_cv_header_stdc = yes; then
5004 cat >>confdefs.h <<\_ACEOF
5005 #define STDC_HEADERS 1
5010 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5020 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5021 inttypes.h stdint.h unistd.h
5023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5024 echo "$as_me:$LINENO: checking for $ac_header" >&5
5025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5026 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5029 cat >conftest.$ac_ext <<_ACEOF
5030 #line $LINENO "configure"
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h. */
5036 $ac_includes_default
5038 #include <$ac_header>
5040 rm -f conftest.$ac_objext
5041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5042 (eval $ac_compile) 2>&5
5044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5045 (exit $ac_status); } &&
5046 { ac_try='test -s conftest.$ac_objext'
5047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; }; then
5052 eval "$as_ac_Header=yes"
5054 echo "$as_me: failed program was:" >&5
5055 sed 's/^/| /' conftest.$ac_ext >&5
5057 eval "$as_ac_Header=no"
5059 rm -f conftest.$ac_objext conftest.$ac_ext
5061 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5062 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5064 cat >>confdefs.h <<_ACEOF
5065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5074 for ac_header in termcap.h
5076 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5077 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5078 echo "$as_me:$LINENO: checking for $ac_header" >&5
5079 echo $ECHO_N "checking for $ac_header... $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 $ac_header usability" >&5
5088 echo $ECHO_N "checking $ac_header 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 <$ac_header>
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 $ac_header presence" >&5
5124 echo $ECHO_N "checking $ac_header 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 <$ac_header>
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: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5168 echo "$as_me: WARNING: $ac_header: 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: $ac_header: present but cannot be compiled" >&5
5180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5184 echo "$as_me: WARNING: $ac_header: 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 $ac_header" >&5
5196 echo $ECHO_N "checking for $ac_header... $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 `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5215 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5216 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5217 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5218 echo $ECHO_N "(cached) $ECHO_C" >&6
5220 ac_check_lib_save_LIBS=$LIBS
5221 LIBS="-ltermcap $LIBS"
5222 cat >conftest.$ac_ext <<_ACEOF
5223 #line $LINENO "configure"
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h. */
5230 /* Override any gcc2 internal prototype to avoid an error. */
5234 /* We use char because int might match the return type of a gcc2
5235 builtin and then its argument prototype would still apply. */
5245 rm -f conftest.$ac_objext conftest$ac_exeext
5246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5247 (eval $ac_link) 2>&5
5249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250 (exit $ac_status); } &&
5251 { ac_try='test -s conftest$ac_exeext'
5252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); }; }; then
5257 ac_cv_lib_termcap_tgetent=yes
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5262 ac_cv_lib_termcap_tgetent=no
5264 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5265 LIBS=$ac_check_lib_save_LIBS
5267 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5268 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5269 if test $ac_cv_lib_termcap_tgetent = yes; then
5270 CONS_LIBS="-ltermcap"
5275 cat >>confdefs.h <<\_ACEOF
5276 #define HAVE_CONIO 1
5282 # ---------------------------------------------------
5283 # Check for readline support/directory (default off)
5284 # ---------------------------------------------------
5285 # this allows you to turn it completely off
5286 # Check whether --enable-readline or --disable-readline was given.
5287 if test "${enable_readline+set}" = set; then
5288 enableval="$enable_readline"
5289 if test x$enableval = xno; then
5296 if test x$support_readline = xyes; then
5298 # Check whether --with-readline or --without-readline was given.
5299 if test "${with_readline+set}" = set; then
5300 withval="$with_readline"
5302 case "$with_readline" in
5305 if test "$with_readline" != "yes"; then
5306 CONS_INC="-I${with_readline}"
5307 CONS_LDFLAGS="-L$with_readline"
5309 with_readline="/usr/include/readline"
5311 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5313 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5314 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5315 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5321 # Is the header compilable?
5322 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5323 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5324 cat >conftest.$ac_ext <<_ACEOF
5325 #line $LINENO "configure"
5328 cat confdefs.h >>conftest.$ac_ext
5329 cat >>conftest.$ac_ext <<_ACEOF
5330 /* end confdefs.h. */
5331 $ac_includes_default
5332 #include <${with_readline}/readline.h>
5334 rm -f conftest.$ac_objext
5335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5336 (eval $ac_compile) 2>&5
5338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339 (exit $ac_status); } &&
5340 { ac_try='test -s conftest.$ac_objext'
5341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345 (exit $ac_status); }; }; then
5346 ac_header_compiler=yes
5348 echo "$as_me: failed program was:" >&5
5349 sed 's/^/| /' conftest.$ac_ext >&5
5351 ac_header_compiler=no
5353 rm -f conftest.$ac_objext conftest.$ac_ext
5354 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5355 echo "${ECHO_T}$ac_header_compiler" >&6
5357 # Is the header present?
5358 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5359 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5360 cat >conftest.$ac_ext <<_ACEOF
5361 #line $LINENO "configure"
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h. */
5367 #include <${with_readline}/readline.h>
5369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5372 grep -v '^ *+' conftest.er1 >conftest.err
5374 cat conftest.err >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); } >/dev/null; then
5377 if test -s conftest.err; then
5378 ac_cpp_err=$ac_c_preproc_warn_flag
5385 if test -z "$ac_cpp_err"; then
5386 ac_header_preproc=yes
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5391 ac_header_preproc=no
5393 rm -f conftest.err conftest.$ac_ext
5394 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5395 echo "${ECHO_T}$ac_header_preproc" >&6
5397 # So? What about this header?
5398 case $ac_header_compiler:$ac_header_preproc in
5400 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5401 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5402 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5403 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5406 ## ------------------------------------ ##
5407 ## Report this to bug-autoconf@gnu.org. ##
5408 ## ------------------------------------ ##
5411 sed "s/^/$as_me: WARNING: /" >&2
5414 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5415 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5417 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5418 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5419 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5422 ## ------------------------------------ ##
5423 ## Report this to bug-autoconf@gnu.org. ##
5424 ## ------------------------------------ ##
5427 sed "s/^/$as_me: WARNING: /" >&2
5430 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5431 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5432 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5433 echo $ECHO_N "(cached) $ECHO_C" >&6
5435 eval "$as_ac_Header=$ac_header_preproc"
5437 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5438 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5442 cat >>confdefs.h <<\_ACEOF
5443 #define HAVE_READLINE 1
5446 CONS_LIBS="-lreadline -ltermcap"
5450 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5451 echo "$as_me: error: *** readline library missing" >&2;}
5452 { (exit 1); exit 1; }; }
5463 # check for standard readline library
5464 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5465 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5466 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5467 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5468 echo $ECHO_N "(cached) $ECHO_C" >&6
5470 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5471 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5473 # Is the header compilable?
5474 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5475 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5476 cat >conftest.$ac_ext <<_ACEOF
5477 #line $LINENO "configure"
5480 cat confdefs.h >>conftest.$ac_ext
5481 cat >>conftest.$ac_ext <<_ACEOF
5482 /* end confdefs.h. */
5483 $ac_includes_default
5484 #include </usr/include/readline/readline.h>
5486 rm -f conftest.$ac_objext
5487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5488 (eval $ac_compile) 2>&5
5490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491 (exit $ac_status); } &&
5492 { ac_try='test -s conftest.$ac_objext'
5493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); }; }; then
5498 ac_header_compiler=yes
5500 echo "$as_me: failed program was:" >&5
5501 sed 's/^/| /' conftest.$ac_ext >&5
5503 ac_header_compiler=no
5505 rm -f conftest.$ac_objext conftest.$ac_ext
5506 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5507 echo "${ECHO_T}$ac_header_compiler" >&6
5509 # Is the header present?
5510 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5511 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5512 cat >conftest.$ac_ext <<_ACEOF
5513 #line $LINENO "configure"
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5519 #include </usr/include/readline/readline.h>
5521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5524 grep -v '^ *+' conftest.er1 >conftest.err
5526 cat conftest.err >&5
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); } >/dev/null; then
5529 if test -s conftest.err; then
5530 ac_cpp_err=$ac_c_preproc_warn_flag
5537 if test -z "$ac_cpp_err"; then
5538 ac_header_preproc=yes
5540 echo "$as_me: failed program was:" >&5
5541 sed 's/^/| /' conftest.$ac_ext >&5
5543 ac_header_preproc=no
5545 rm -f conftest.err conftest.$ac_ext
5546 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5547 echo "${ECHO_T}$ac_header_preproc" >&6
5549 # So? What about this header?
5550 case $ac_header_compiler:$ac_header_preproc in
5552 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5553 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5554 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5555 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5558 ## ------------------------------------ ##
5559 ## Report this to bug-autoconf@gnu.org. ##
5560 ## ------------------------------------ ##
5563 sed "s/^/$as_me: WARNING: /" >&2
5566 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5567 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5568 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5569 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5570 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5571 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5574 ## ------------------------------------ ##
5575 ## Report this to bug-autoconf@gnu.org. ##
5576 ## ------------------------------------ ##
5579 sed "s/^/$as_me: WARNING: /" >&2
5582 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5583 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5584 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5585 echo $ECHO_N "(cached) $ECHO_C" >&6
5587 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5589 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5590 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5593 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5594 cat >>confdefs.h <<\_ACEOF
5595 #define HAVE_READLINE 1
5599 CONS_INC="-I/usr/include/readline"
5600 CONS_LIBS="-lreadline -ltermcap"
5604 # Did not find standard library, so try Bacula's default
5605 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5607 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5608 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5609 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5612 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5613 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5615 # Is the header compilable?
5616 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5617 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5618 cat >conftest.$ac_ext <<_ACEOF
5619 #line $LINENO "configure"
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h. */
5625 $ac_includes_default
5626 #include <${TOP_DIR}/depkgs/readline/readline.h>
5628 rm -f conftest.$ac_objext
5629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5630 (eval $ac_compile) 2>&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } &&
5634 { ac_try='test -s conftest.$ac_objext'
5635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); }; }; then
5640 ac_header_compiler=yes
5642 echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5645 ac_header_compiler=no
5647 rm -f conftest.$ac_objext conftest.$ac_ext
5648 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5649 echo "${ECHO_T}$ac_header_compiler" >&6
5651 # Is the header present?
5652 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5653 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5654 cat >conftest.$ac_ext <<_ACEOF
5655 #line $LINENO "configure"
5658 cat confdefs.h >>conftest.$ac_ext
5659 cat >>conftest.$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 #include <${TOP_DIR}/depkgs/readline/readline.h>
5663 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5664 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5666 grep -v '^ *+' conftest.er1 >conftest.err
5668 cat conftest.err >&5
5669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5670 (exit $ac_status); } >/dev/null; then
5671 if test -s conftest.err; then
5672 ac_cpp_err=$ac_c_preproc_warn_flag
5679 if test -z "$ac_cpp_err"; then
5680 ac_header_preproc=yes
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5685 ac_header_preproc=no
5687 rm -f conftest.err conftest.$ac_ext
5688 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5689 echo "${ECHO_T}$ac_header_preproc" >&6
5691 # So? What about this header?
5692 case $ac_header_compiler:$ac_header_preproc in
5694 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5695 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5696 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5697 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5700 ## ------------------------------------ ##
5701 ## Report this to bug-autoconf@gnu.org. ##
5702 ## ------------------------------------ ##
5705 sed "s/^/$as_me: WARNING: /" >&2
5708 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5709 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5710 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5711 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5712 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5713 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5716 ## ------------------------------------ ##
5717 ## Report this to bug-autoconf@gnu.org. ##
5718 ## ------------------------------------ ##
5721 sed "s/^/$as_me: WARNING: /" >&2
5724 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5725 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 eval "$as_ac_Header=$ac_header_preproc"
5731 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5732 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5736 cat >>confdefs.h <<\_ACEOF
5737 #define HAVE_READLINE 1
5741 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5742 CONS_LIBS="-lreadline -lhistory -ltermcap"
5743 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5744 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5747 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5748 echo "$as_me: error: *** readline library missing" >&2;}
5749 { (exit 1); exit 1; }; }
5774 # Minimal stuff for readline Makefile configuration
5778 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5779 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5780 if test "${ac_cv_header_stat_broken+set}" = set; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 cat >conftest.$ac_ext <<_ACEOF
5784 #line $LINENO "configure"
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5790 #include <sys/types.h>
5791 #include <sys/stat.h>
5793 #if defined(S_ISBLK) && defined(S_IFDIR)
5794 # if S_ISBLK (S_IFDIR)
5799 #if defined(S_ISBLK) && defined(S_IFCHR)
5800 # if S_ISBLK (S_IFCHR)
5805 #if defined(S_ISLNK) && defined(S_IFREG)
5806 # if S_ISLNK (S_IFREG)
5811 #if defined(S_ISSOCK) && defined(S_IFREG)
5812 # if S_ISSOCK (S_IFREG)
5818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5819 $EGREP "You lose" >/dev/null 2>&1; then
5820 ac_cv_header_stat_broken=yes
5822 ac_cv_header_stat_broken=no
5827 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5828 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5829 if test $ac_cv_header_stat_broken = yes; then
5831 cat >>confdefs.h <<\_ACEOF
5832 #define STAT_MACROS_BROKEN 1
5843 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5844 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5845 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5846 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5847 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 cat >conftest.$ac_ext <<_ACEOF
5851 #line $LINENO "configure"
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5857 #include <sys/types.h>
5869 rm -f conftest.$ac_objext
5870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5871 (eval $ac_compile) 2>&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } &&
5875 { ac_try='test -s conftest.$ac_objext'
5876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; }; then
5881 eval "$as_ac_Header=yes"
5883 echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5886 eval "$as_ac_Header=no"
5888 rm -f conftest.$ac_objext conftest.$ac_ext
5890 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5891 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5893 cat >>confdefs.h <<_ACEOF
5894 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5897 ac_header_dirent=$ac_hdr; break
5901 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5902 if test $ac_header_dirent = dirent.h; then
5903 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5904 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5905 if test "${ac_cv_search_opendir+set}" = set; then
5906 echo $ECHO_N "(cached) $ECHO_C" >&6
5908 ac_func_search_save_LIBS=$LIBS
5909 ac_cv_search_opendir=no
5910 cat >conftest.$ac_ext <<_ACEOF
5911 #line $LINENO "configure"
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5918 /* Override any gcc2 internal prototype to avoid an error. */
5922 /* We use char because int might match the return type of a gcc2
5923 builtin and then its argument prototype would still apply. */
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5935 (eval $ac_link) 2>&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); } &&
5939 { ac_try='test -s conftest$ac_exeext'
5940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; }; then
5945 ac_cv_search_opendir="none required"
5947 echo "$as_me: failed program was:" >&5
5948 sed 's/^/| /' conftest.$ac_ext >&5
5951 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5952 if test "$ac_cv_search_opendir" = no; then
5953 for ac_lib in dir; do
5954 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5955 cat >conftest.$ac_ext <<_ACEOF
5956 #line $LINENO "configure"
5959 cat confdefs.h >>conftest.$ac_ext
5960 cat >>conftest.$ac_ext <<_ACEOF
5961 /* end confdefs.h. */
5963 /* Override any gcc2 internal prototype to avoid an error. */
5967 /* We use char because int might match the return type of a gcc2
5968 builtin and then its argument prototype would still apply. */
5978 rm -f conftest.$ac_objext conftest$ac_exeext
5979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5980 (eval $ac_link) 2>&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } &&
5984 { ac_try='test -s conftest$ac_exeext'
5985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; }; then
5990 ac_cv_search_opendir="-l$ac_lib"
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5997 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6000 LIBS=$ac_func_search_save_LIBS
6002 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6003 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6004 if test "$ac_cv_search_opendir" != no; then
6005 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6010 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6011 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6012 if test "${ac_cv_search_opendir+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 ac_func_search_save_LIBS=$LIBS
6016 ac_cv_search_opendir=no
6017 cat >conftest.$ac_ext <<_ACEOF
6018 #line $LINENO "configure"
6021 cat confdefs.h >>conftest.$ac_ext
6022 cat >>conftest.$ac_ext <<_ACEOF
6023 /* end confdefs.h. */
6025 /* Override any gcc2 internal prototype to avoid an error. */
6029 /* We use char because int might match the return type of a gcc2
6030 builtin and then its argument prototype would still apply. */
6040 rm -f conftest.$ac_objext conftest$ac_exeext
6041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6042 (eval $ac_link) 2>&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); } &&
6046 { ac_try='test -s conftest$ac_exeext'
6047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); }; }; then
6052 ac_cv_search_opendir="none required"
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6059 if test "$ac_cv_search_opendir" = no; then
6061 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6062 cat >conftest.$ac_ext <<_ACEOF
6063 #line $LINENO "configure"
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6070 /* Override any gcc2 internal prototype to avoid an error. */
6074 /* We use char because int might match the return type of a gcc2
6075 builtin and then its argument prototype would still apply. */
6085 rm -f conftest.$ac_objext conftest$ac_exeext
6086 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6087 (eval $ac_link) 2>&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); } &&
6091 { ac_try='test -s conftest$ac_exeext'
6092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); }; }; then
6097 ac_cv_search_opendir="-l$ac_lib"
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.$ac_ext >&5
6104 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6107 LIBS=$ac_func_search_save_LIBS
6109 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6110 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6111 if test "$ac_cv_search_opendir" != no; then
6112 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6127 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6129 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6130 echo "$as_me:$LINENO: checking for $ac_func" >&5
6131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6132 if eval "test \"\${$as_ac_var+set}\" = set"; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 cat >conftest.$ac_ext <<_ACEOF
6136 #line $LINENO "configure"
6139 cat confdefs.h >>conftest.$ac_ext
6140 cat >>conftest.$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 /* System header to define __stub macros and hopefully few prototypes,
6143 which can conflict with char $ac_func (); below.
6144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6145 <limits.h> exists even on freestanding compilers. */
6147 # include <limits.h>
6149 # include <assert.h>
6151 /* Override any gcc2 internal prototype to avoid an error. */
6156 /* We use char because int might match the return type of a gcc2
6157 builtin and then its argument prototype would still apply. */
6159 /* The GNU C library defines this for functions which it implements
6160 to always fail with ENOSYS. Some functions are actually named
6161 something starting with __ and the normal name is an alias. */
6162 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6165 char (*f) () = $ac_func;
6174 return f != $ac_func;
6179 rm -f conftest.$ac_objext conftest$ac_exeext
6180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6181 (eval $ac_link) 2>&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try='test -s conftest$ac_exeext'
6186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); }; }; then
6191 eval "$as_ac_var=yes"
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6196 eval "$as_ac_var=no"
6198 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6202 if test `eval echo '${'$as_ac_var'}'` = yes; then
6203 cat >>confdefs.h <<_ACEOF
6204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6211 for ac_func in nanosleep
6213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6214 echo "$as_me:$LINENO: checking for $ac_func" >&5
6215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6216 if eval "test \"\${$as_ac_var+set}\" = set"; then
6217 echo $ECHO_N "(cached) $ECHO_C" >&6
6219 cat >conftest.$ac_ext <<_ACEOF
6220 #line $LINENO "configure"
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h. */
6226 /* System header to define __stub macros and hopefully few prototypes,
6227 which can conflict with char $ac_func (); below.
6228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6229 <limits.h> exists even on freestanding compilers. */
6231 # include <limits.h>
6233 # include <assert.h>
6235 /* Override any gcc2 internal prototype to avoid an error. */
6240 /* We use char because int might match the return type of a gcc2
6241 builtin and then its argument prototype would still apply. */
6243 /* The GNU C library defines this for functions which it implements
6244 to always fail with ENOSYS. Some functions are actually named
6245 something starting with __ and the normal name is an alias. */
6246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6249 char (*f) () = $ac_func;
6258 return f != $ac_func;
6263 rm -f conftest.$ac_objext conftest$ac_exeext
6264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6265 (eval $ac_link) 2>&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } &&
6269 { ac_try='test -s conftest$ac_exeext'
6270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6274 (exit $ac_status); }; }; then
6275 eval "$as_ac_var=yes"
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6280 eval "$as_ac_var=no"
6282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6286 if test `eval echo '${'$as_ac_var'}'` = yes; then
6287 cat >>confdefs.h <<_ACEOF
6288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6296 for ac_header in varargs.h
6298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6300 echo "$as_me:$LINENO: checking for $ac_header" >&5
6301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6303 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6308 # Is the header compilable?
6309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6311 cat >conftest.$ac_ext <<_ACEOF
6312 #line $LINENO "configure"
6315 cat confdefs.h >>conftest.$ac_ext
6316 cat >>conftest.$ac_ext <<_ACEOF
6317 /* end confdefs.h. */
6318 $ac_includes_default
6319 #include <$ac_header>
6321 rm -f conftest.$ac_objext
6322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6323 (eval $ac_compile) 2>&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } &&
6327 { ac_try='test -s conftest.$ac_objext'
6328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; }; then
6333 ac_header_compiler=yes
6335 echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.$ac_ext >&5
6338 ac_header_compiler=no
6340 rm -f conftest.$ac_objext conftest.$ac_ext
6341 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6342 echo "${ECHO_T}$ac_header_compiler" >&6
6344 # Is the header present?
6345 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6346 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6347 cat >conftest.$ac_ext <<_ACEOF
6348 #line $LINENO "configure"
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h. */
6354 #include <$ac_header>
6356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6359 grep -v '^ *+' conftest.er1 >conftest.err
6361 cat conftest.err >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } >/dev/null; then
6364 if test -s conftest.err; then
6365 ac_cpp_err=$ac_c_preproc_warn_flag
6372 if test -z "$ac_cpp_err"; then
6373 ac_header_preproc=yes
6375 echo "$as_me: failed program was:" >&5
6376 sed 's/^/| /' conftest.$ac_ext >&5
6378 ac_header_preproc=no
6380 rm -f conftest.err conftest.$ac_ext
6381 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6382 echo "${ECHO_T}$ac_header_preproc" >&6
6384 # So? What about this header?
6385 case $ac_header_compiler:$ac_header_preproc in
6387 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6388 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6393 ## ------------------------------------ ##
6394 ## Report this to bug-autoconf@gnu.org. ##
6395 ## ------------------------------------ ##
6398 sed "s/^/$as_me: WARNING: /" >&2
6401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6406 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6409 ## ------------------------------------ ##
6410 ## Report this to bug-autoconf@gnu.org. ##
6411 ## ------------------------------------ ##
6414 sed "s/^/$as_me: WARNING: /" >&2
6417 echo "$as_me:$LINENO: checking for $ac_header" >&5
6418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6419 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 eval "$as_ac_Header=$ac_header_preproc"
6424 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6425 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6429 cat >>confdefs.h <<_ACEOF
6430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6438 # End of readline/conio stuff
6439 # -----------------------------------------------------------------------
6442 # ---------------------------------------------------
6443 # Check for GMP support/directory
6444 # ---------------------------------------------------
6448 # [ --with-gmp[=DIR] Specify gmp library directory],
6450 # case "$with_gmp" in
6453 # if test "$with_gmp" != "yes"; then
6454 # GMP_INC="-I$with_gmp"
6456 # GMP_LDFLAGS="-L$with_gmp"
6458 # with_gmp="/usr/include"
6460 # AC_CHECK_HEADER($with_gmp/gmp.h,
6461 # [ AC_MSG_RESULT(yes)
6462 # AC_DEFINE(HAVE_GMP)
6466 # [ AC_MSG_ERROR([*** gmp library missing])
6472 # # check for standard gmp library
6473 # AC_CHECK_HEADER(/usr/include/gmp.h,
6474 # [ AC_MSG_RESULT(yes)
6475 # AC_DEFINE(HAVE_GMP)
6480 # # Did not find standard library, so use our own
6481 # AC_MSG_RESULT(yes)
6482 # AC_DEFINE(HAVE_GMP)
6485 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6487 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6488 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6494 #AC_SUBST(GMP_LDFLAGS)
6498 # -----------------------------------------------------------------------
6501 # ---------------------------------------------------
6502 # Check for CWEB support/directory
6503 # ---------------------------------------------------
6508 # [ --with-cweb[=DIR] Specify cweb library directory],
6510 # case "$with_cweb" in
6513 # if test "$with_cweb" != "yes"; then
6514 # CWEB_INC="-I$with_cweb"
6515 # CWEB_LIBS="-lcweb"
6516 # CWEB_LDFLAGS="-L$with_cweb"
6518 # with_cweb="/usr/include"
6520 # AC_CHECK_HEADER($with_cweb/cweb.h,
6521 # [ AC_MSG_RESULT(yes)
6522 # AC_DEFINE(HAVE_CWEB)
6523 # CWEB_LIBS="-lcweb"
6526 # [ AC_MSG_ERROR([*** cweb library missing])
6532 # # check for standard cweb library
6533 # AC_CHECK_HEADER(/usr/include/cweb.h,
6534 # [ AC_MSG_RESULT(yes)
6535 # AC_DEFINE(HAVE_CWEB)
6538 # CWEB_LIBS="-lcweb"
6540 # # Did not find starndard library, so use our own
6541 # AC_MSG_RESULT(yes)
6542 # AC_DEFINE(HAVE_CWEB)
6545 # CWEB=${TOP_DIR}/depkgs/cweb
6546 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6547 # CWEB_LIBS="-lcweb"
6548 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6549 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6555 #AC_SUBST(CWEB_LIBS)
6556 #AC_SUBST(CWEB_LDFLAGS)
6560 # -----------------------------------------------------------------------
6564 # -----------------------------------------------------------
6565 # Check whether user wants TCP wrappers support (default off)
6566 # -----------------------------------------------------------
6569 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6570 if test "${with_tcp_wrappers+set}" = set; then
6571 withval="$with_tcp_wrappers"
6573 if test "x$withval" != "xno" ; then
6575 LIBS="$saved_LIBS -lwrap"
6576 echo "$as_me:$LINENO: checking for libwrap" >&5
6577 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6578 cat >conftest.$ac_ext <<_ACEOF
6579 #line $LINENO "configure"
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h. */
6586 int deny_severity = 0;
6587 int allow_severity = 0;
6588 struct request_info *req;
6597 rm -f conftest.$ac_objext conftest$ac_exeext
6598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6599 (eval $ac_link) 2>&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
6603 { ac_try='test -s conftest$ac_exeext'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; }; then
6610 echo "$as_me:$LINENO: result: yes" >&5
6611 echo "${ECHO_T}yes" >&6
6612 cat >>confdefs.h <<\_ACEOF
6613 #define HAVE_LIBWRAP 1
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6623 LIBS="$saved_LIBS -lwrap -lnsl"
6624 cat >conftest.$ac_ext <<_ACEOF
6625 #line $LINENO "configure"
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6632 int deny_severity = 0;
6633 int allow_severity = 0;
6634 struct request_info *req;
6643 rm -f conftest.$ac_objext conftest$ac_exeext
6644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6645 (eval $ac_link) 2>&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } &&
6649 { ac_try='test -s conftest$ac_exeext'
6650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); }; }; then
6656 echo "$as_me:$LINENO: result: yes" >&5
6657 echo "${ECHO_T}yes" >&6
6658 cat >>confdefs.h <<\_ACEOF
6659 #define HAVE_LIBWRAP 1
6665 echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6668 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6669 echo "$as_me: error: *** libwrap missing" >&2;}
6670 { (exit 1); exit 1; }; }
6673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6676 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6682 # ------------------------------------------
6683 # Where to place working dir
6684 # ------------------------------------------
6685 working_dir=`eval echo ${prefix}/var/bacula/working`
6687 # Check whether --with-working-dir or --without-working-dir was given.
6688 if test "${with_working_dir+set}" = set; then
6689 withval="$with_working_dir"
6691 if test "x$withval" != "xno" ; then
6692 working_dir=$withval
6701 # ------------------------------------------
6702 # Where to place scriptdir (script files)
6703 # ------------------------------------------
6704 scriptdir=`eval echo ${sysconfdir}`
6706 # Check whether --with-scriptdir or --without-scriptdir was given.
6707 if test "${with_scriptdir+set}" = set; then
6708 withval="$with_scriptdir"
6710 if test "x$withval" != "xno" ; then
6720 # ------------------------------------------
6721 # Where to send dump email
6722 # ------------------------------------------
6723 dump_email=root@localhost
6725 # Check whether --with-dump-email or --without-dump-email was given.
6726 if test "${with_dump_email+set}" = set; then
6727 withval="$with_dump_email"
6729 if test "x$withval" != "xno" ; then
6738 # ------------------------------------------
6739 # Where to send job email
6740 # ------------------------------------------
6741 job_email=root@localhost
6743 # Check whether --with-job-email or --without-job-email was given.
6744 if test "${with_job_email+set}" = set; then
6745 withval="$with_job_email"
6747 if test "x$withval" != "xno" ; then
6756 # ------------------------------------------
6757 # Where to find smtp host
6758 # ------------------------------------------
6761 # Check whether --with-smtp_host or --without-smtp_host was given.
6762 if test "${with_smtp_host+set}" = set; then
6763 withval="$with_smtp_host"
6765 if test "x$withval" != "xno" ; then
6775 # ------------------------------------
6776 # Where to place pid files
6777 # ------------------------------------
6780 # Check whether --with-pid-dir or --without-pid-dir was given.
6781 if test "${with_pid_dir+set}" = set; then
6782 withval="$with_pid_dir"
6784 if test "x$withval" != "xno" ; then
6791 cat >>confdefs.h <<_ACEOF
6792 #define _PATH_BACULA_PIDDIR "$piddir"
6798 # ------------------------------------
6799 # Where to place subsys "lock file"
6800 # ------------------------------------
6801 subsysdir=/var/run/subsys
6803 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6804 if test "${with_subsys_dir+set}" = set; then
6805 withval="$with_subsys_dir"
6807 if test "x$withval" != "xno" ; then
6818 # ------------------------------------
6819 # Where to start assigning ports
6820 # ------------------------------------
6823 # Check whether --with-baseport or --without-baseport was given.
6824 if test "${with_baseport+set}" = set; then
6825 withval="$with_baseport"
6827 if test "x$withval" != "xno" ; then
6835 dir_port=`expr $baseport`
6836 fd_port=`expr $baseport + 1`
6837 sd_port=`expr $fd_port + 1`
6844 # ------------------------------------------
6845 # Generate passwords
6846 # ------------------------------------------
6849 # Check whether --with-dir-password or --without-dir-password was given.
6850 if test "${with_dir_password+set}" = set; then
6851 withval="$with_dir_password"
6853 if test "x$withval" != "xno" ; then
6854 dir_password=$withval
6860 if test "x$dir_password" = "x" ; then
6861 if test "x$OPENSSL" = "xnone" ; then
6862 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6863 key=`autoconf/randpass 33`
6865 key=`openssl rand -base64 33`
6872 # Check whether --with-fd-password or --without-fd-password was given.
6873 if test "${with_fd_password+set}" = set; then
6874 withval="$with_fd_password"
6876 if test "x$withval" != "xno" ; then
6877 fd_password=$withval
6883 if test "x$fd_password" = "x" ; then
6884 if test "x$OPENSSL" = "xnone" ; then
6885 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6886 key=`autoconf/randpass 37`
6888 key=`openssl rand -base64 33`
6895 # Check whether --with-sd-password or --without-sd-password was given.
6896 if test "${with_sd_password+set}" = set; then
6897 withval="$with_sd_password"
6899 if test "x$withval" != "xno" ; then
6900 sd_password=$withval
6906 if test "x$sd_password" = "x" ; then
6907 if test "x$OPENSSL" = "xnone" ; then
6908 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6909 key=`autoconf/randpass 41`
6911 key=`openssl rand -base64 33`
6923 # Handle users and groups for each daemon
6927 # Check whether --with-dir_user or --without-dir_user was given.
6928 if test "${with_dir_user+set}" = set; then
6929 withval="$with_dir_user"
6931 if test "x$withval" != "x" ; then
6940 # Check whether --with-dir_group or --without-dir_group was given.
6941 if test "${with_dir_group+set}" = set; then
6942 withval="$with_dir_group"
6944 if test "x$withval" != "x" ; then
6953 # Check whether --with-sd_user or --without-sd_user was given.
6954 if test "${with_sd_user+set}" = set; then
6955 withval="$with_sd_user"
6957 if test "x$withval" != "x" ; then
6966 # Check whether --with-sd_group or --without-sd_group was given.
6967 if test "${with_sd_group+set}" = set; then
6968 withval="$with_sd_group"
6970 if test "x$withval" != "x" ; then
6979 # Check whether --with-fd_user or --without-fd_user was given.
6980 if test "${with_fd_user+set}" = set; then
6981 withval="$with_fd_user"
6983 if test "x$withval" != "x" ; then
6992 # Check whether --with-fd_group or --without-fd_group was given.
6993 if test "${with_fd_group+set}" = set; then
6994 withval="$with_fd_group"
6996 if test "x$withval" != "x" ; then
7013 # ------------------------------------------------
7014 # Bacula check for various SQL database engines
7015 # ------------------------------------------------
7018 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7019 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7021 # Check whether --with-postgresql or --without-postgresql was given.
7022 if test "${with_postgresql+set}" = set; then
7023 withval="$with_postgresql"
7025 if test "$withval" != "no"; then
7026 if test "$db_found" = "yes"; then
7027 echo "$as_me:$LINENO: result: error" >&5
7028 echo "${ECHO_T}error" >&6
7029 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7030 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7031 { (exit 1); exit 1; }; };
7033 if test "$withval" = "yes"; then
7034 if test -f /usr/local/include/libpq-fe.h; then
7035 POSTGRESQL_INCDIR=/usr/local/include
7036 POSTGRESQL_LIBDIR=/usr/local/lib
7037 POSTGRESQL_BINDIR=/usr/local/bin
7038 elif test -f /usr/include/libpq-fe.h; then
7039 POSTGRESQL_INCDIR=/usr/include
7040 POSTGRESQL_LIBDIR=/usr/lib
7041 POSTGRESQL_BINDIR=/usr/bin
7042 elif test -f /usr/include/pgsql/libpq-fe.h; then
7043 POSTGRESQL_INCDIR=/usr/include/pgsql
7044 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7045 POSTGRESQL_BINDIR=/usr/bin
7047 echo "$as_me:$LINENO: result: no" >&5
7048 echo "${ECHO_T}no" >&6
7049 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7050 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7051 { (exit 1); exit 1; }; }
7053 elif test -f $withval/libpq-fe.h; then
7054 POSTGRESQL_INCDIR=$withval
7055 POSTGRESQL_LIBDIR=$withval
7056 POSTGRESQL_BINDIR=$withval
7058 echo "$as_me:$LINENO: result: no" >&5
7059 echo "${ECHO_T}no" >&6
7060 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7061 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7062 { (exit 1); exit 1; }; }
7064 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7065 echo "$as_me:$LINENO: checking for crypt" >&5
7066 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7067 if test "${ac_cv_func_crypt+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 cat >conftest.$ac_ext <<_ACEOF
7071 #line $LINENO "configure"
7074 cat confdefs.h >>conftest.$ac_ext
7075 cat >>conftest.$ac_ext <<_ACEOF
7076 /* end confdefs.h. */
7077 /* System header to define __stub macros and hopefully few prototypes,
7078 which can conflict with char crypt (); below.
7079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7080 <limits.h> exists even on freestanding compilers. */
7082 # include <limits.h>
7084 # include <assert.h>
7086 /* Override any gcc2 internal prototype to avoid an error. */
7091 /* We use char because int might match the return type of a gcc2
7092 builtin and then its argument prototype would still apply. */
7094 /* The GNU C library defines this for functions which it implements
7095 to always fail with ENOSYS. Some functions are actually named
7096 something starting with __ and the normal name is an alias. */
7097 #if defined (__stub_crypt) || defined (__stub___crypt)
7100 char (*f) () = crypt;
7114 rm -f conftest.$ac_objext conftest$ac_exeext
7115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7116 (eval $ac_link) 2>&5
7118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7119 (exit $ac_status); } &&
7120 { ac_try='test -s conftest$ac_exeext'
7121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125 (exit $ac_status); }; }; then
7126 ac_cv_func_crypt=yes
7128 echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7135 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7136 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7137 if test $ac_cv_func_crypt = yes; then
7140 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7141 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7142 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7143 echo $ECHO_N "(cached) $ECHO_C" >&6
7145 ac_check_lib_save_LIBS=$LIBS
7146 LIBS="-lcrypt $LIBS"
7147 cat >conftest.$ac_ext <<_ACEOF
7148 #line $LINENO "configure"
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h. */
7155 /* Override any gcc2 internal prototype to avoid an error. */
7159 /* We use char because int might match the return type of a gcc2
7160 builtin and then its argument prototype would still apply. */
7170 rm -f conftest.$ac_objext conftest$ac_exeext
7171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7172 (eval $ac_link) 2>&5
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); } &&
7176 { ac_try='test -s conftest$ac_exeext'
7177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7181 (exit $ac_status); }; }; then
7182 ac_cv_lib_crypt_crypt=yes
7184 echo "$as_me: failed program was:" >&5
7185 sed 's/^/| /' conftest.$ac_ext >&5
7187 ac_cv_lib_crypt_crypt=no
7189 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7190 LIBS=$ac_check_lib_save_LIBS
7192 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7193 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7194 if test $ac_cv_lib_crypt_crypt = yes; then
7195 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7200 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7201 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7202 SQL_BINDIR=$POSTGRESQL_BINDIR
7203 cat >>confdefs.h <<\_ACEOF
7204 #define HAVE_POSTGRESQL 1
7207 echo "$as_me:$LINENO: result: yes" >&5
7208 echo "${ECHO_T}yes" >&6
7210 support_postgresql=yes
7214 echo "$as_me:$LINENO: result: no" >&5
7215 echo "${ECHO_T}no" >&6
7220 echo "$as_me:$LINENO: result: no" >&5
7221 echo "${ECHO_T}no" >&6
7232 echo "$as_me:$LINENO: checking for MySQL support" >&5
7233 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7235 # Check whether --with-mysql or --without-mysql was given.
7236 if test "${with_mysql+set}" = set; then
7237 withval="$with_mysql"
7239 if test "$withval" != "no"; then
7240 if test "$withval" = "yes"; then
7241 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7242 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7243 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7244 MYSQL_BINDIR=/usr/local/mysql/bin
7245 elif test -f /usr/include/mysql/mysql.h; then
7246 MYSQL_INCDIR=/usr/include/mysql
7247 MYSQL_LIBDIR=/usr/lib/mysql
7248 MYSQL_BINDIR=/usr/bin
7249 elif test -f /usr/include/mysql.h; then
7250 MYSQL_INCDIR=/usr/include
7251 MYSQL_LIBDIR=/usr/lib
7252 MYSQL_BINDIR=/usr/bin
7253 elif test -f /usr/local/include/mysql/mysql.h; then
7254 MYSQL_INCDIR=/usr/local/include/mysql
7255 MYSQL_LIBDIR=/usr/local/lib/mysql
7256 MYSQL_BINDIR=/usr/local/bin
7257 elif test -f /usr/local/include/mysql.h; then
7258 MYSQL_INCDIR=/usr/local/include
7259 MYSQL_LIBDIR=/usr/local/lib
7260 MYSQL_BINDIR=/usr/local/bin
7262 echo "$as_me:$LINENO: result: no" >&5
7263 echo "${ECHO_T}no" >&6
7264 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7265 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7266 { (exit 1); exit 1; }; }
7269 if test -f $withval/include/mysql/mysql.h; then
7270 MYSQL_INCDIR=$withval/include/mysql
7271 MYSQL_LIBDIR=$withval/lib/mysql
7272 MYSQL_BINDIR=$withval/bin
7273 elif test -f $withval/include/mysql.h; then
7274 MYSQL_INCDIR=$withval/include
7275 MYSQL_LIBDIR=$withval/lib
7276 MYSQL_BINDIR=$withval/bin
7278 echo "$as_me:$LINENO: result: no" >&5
7279 echo "${ECHO_T}no" >&6
7280 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7281 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7282 { (exit 1); exit 1; }; }
7285 SQL_INCLUDE=-I$MYSQL_INCDIR
7286 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7287 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7288 cat >>confdefs.h <<\_ACEOF
7289 #define HAVE_THREAD_SAFE_MYSQL 1
7293 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7295 SQL_BINDIR=$MYSQL_BINDIR
7297 cat >>confdefs.h <<\_ACEOF
7298 #define HAVE_MYSQL 1
7301 echo "$as_me:$LINENO: result: yes" >&5
7302 echo "${ECHO_T}yes" >&6
7309 echo "$as_me:$LINENO: result: no" >&5
7310 echo "${ECHO_T}no" >&6
7315 echo "$as_me:$LINENO: result: no" >&5
7316 echo "${ECHO_T}no" >&6
7321 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7322 if test "${with_embedded_mysql+set}" = set; then
7323 withval="$with_embedded_mysql"
7325 if test "$withval" != "no"; then
7326 if test "$withval" = "yes"; then
7327 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7328 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7329 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7330 MYSQL_BINDIR=/usr/local/mysql/bin
7331 elif test -f /usr/include/mysql/mysql.h; then
7332 MYSQL_INCDIR=/usr/include/mysql
7333 MYSQL_LIBDIR=/usr/lib/mysql
7334 MYSQL_BINDIR=/usr/bin
7335 elif test -f /usr/include/mysql.h; then
7336 MYSQL_INCDIR=/usr/include
7337 MYSQL_LIBDIR=/usr/lib
7338 MYSQL_BINDIR=/usr/bin
7339 elif test -f /usr/local/include/mysql/mysql.h; then
7340 MYSQL_INCDIR=/usr/local/include/mysql
7341 MYSQL_LIBDIR=/usr/local/lib/mysql
7342 MYSQL_BINDIR=/usr/local/bin
7343 elif test -f /usr/local/include/mysql.h; then
7344 MYSQL_INCDIR=/usr/local/include
7345 MYSQL_LIBDIR=/usr/local/lib
7346 MYSQL_BINDIR=/usr/local/bin
7348 echo "$as_me:$LINENO: result: no" >&5
7349 echo "${ECHO_T}no" >&6
7350 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7351 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7352 { (exit 1); exit 1; }; }
7355 if test -f $withval/include/mysql/mysql.h; then
7356 MYSQL_INCDIR=$withval/include/mysql
7357 MYSQL_LIBDIR=$withval/lib/mysql
7358 MYSQL_BINDIR=$withval/bin
7359 elif test -f $withval/include/mysql.h; then
7360 MYSQL_INCDIR=$withval/include
7361 MYSQL_LIBDIR=$withval/lib
7362 MYSQL_BINDIR=$withval/bin
7364 echo "$as_me:$LINENO: result: no" >&5
7365 echo "${ECHO_T}no" >&6
7366 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7367 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7368 { (exit 1); exit 1; }; }
7371 SQL_INCLUDE=-I$MYSQL_INCDIR
7372 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7373 SQL_BINDIR=$MYSQL_BINDIR
7375 cat >>confdefs.h <<\_ACEOF
7376 #define HAVE_MYSQL 1
7379 cat >>confdefs.h <<\_ACEOF
7380 #define HAVE_EMBEDDED_MYSQL 1
7383 echo "$as_me:$LINENO: result: yes" >&5
7384 echo "${ECHO_T}yes" >&6
7391 echo "$as_me:$LINENO: result: no" >&5
7392 echo "${ECHO_T}no" >&6
7397 echo "$as_me:$LINENO: result: no" >&5
7398 echo "${ECHO_T}no" >&6
7411 echo "$as_me:$LINENO: checking for SQLite support" >&5
7412 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7414 # Check whether --with-sqlite or --without-sqlite was given.
7415 if test "${with_sqlite+set}" = set; then
7416 withval="$with_sqlite"
7418 if test "$withval" != "no"; then
7419 if test "$withval" = "yes"; then
7420 if test -f /usr/local/include/sqlite.h; then
7421 SQLITE_INCDIR=/usr/local/include
7422 SQLITE_LIBDIR=/usr/local/lib
7423 SQLITE_BINDIR=/usr/local/bin
7424 elif test -f /usr/include/sqlite.h; then
7425 SQLITE_INCDIR=/usr/include
7426 SQLITE_LIBDIR=/usr/lib
7427 SQLITE_BINDIR=/usr/bin
7429 echo "$as_me:$LINENO: result: no" >&5
7430 echo "${ECHO_T}no" >&6
7431 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7432 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7433 { (exit 1); exit 1; }; }
7436 if test -f $withval/sqlite.h; then
7437 SQLITE_INCDIR=$withval
7438 SQLITE_LIBDIR=$withval
7439 SQLITE_BINDIR=$withval
7441 echo "$as_me:$LINENO: result: no" >&5
7442 echo "${ECHO_T}no" >&6
7443 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7444 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7445 { (exit 1); exit 1; }; }
7448 SQL_INCLUDE=-I$SQLITE_INCDIR
7449 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7450 SQL_BINDIR=$SQLITE_BINDIR
7452 cat >>confdefs.h <<\_ACEOF
7453 #define HAVE_SQLITE 1
7456 echo "$as_me:$LINENO: result: yes" >&5
7457 echo "${ECHO_T}yes" >&6
7464 echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6
7470 echo "$as_me:$LINENO: result: no" >&5
7471 echo "${ECHO_T}no" >&6
7483 cat >>confdefs.h <<\_ACEOF
7484 #define PROTOTYPES 1
7488 if test -z "$CFLAGS"; then
7489 if test -z "$CCOPTS"; then
7498 largefile_support="no"
7500 # Check whether --enable-largefile or --disable-largefile was given.
7501 if test "${enable_largefile+set}" = set; then
7502 enableval="$enable_largefile"
7505 if test "$enable_largefile" != no; then
7506 if test -n "$ac_tool_prefix"; then
7507 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7508 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7509 echo "$as_me:$LINENO: checking for $ac_word" >&5
7510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7511 if test "${ac_cv_prog_GETCONF+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 if test -n "$GETCONF"; then
7515 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7524 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 GETCONF=$ac_cv_prog_GETCONF
7534 if test -n "$GETCONF"; then
7535 echo "$as_me:$LINENO: result: $GETCONF" >&5
7536 echo "${ECHO_T}$GETCONF" >&6
7538 echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6
7543 if test -z "$ac_cv_prog_GETCONF"; then
7544 ac_ct_GETCONF=$GETCONF
7545 # Extract the first word of "getconf", so it can be a program name with args.
7546 set dummy getconf; ac_word=$2
7547 echo "$as_me:$LINENO: checking for $ac_word" >&5
7548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7549 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 if test -n "$ac_ct_GETCONF"; then
7553 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7562 ac_cv_prog_ac_ct_GETCONF="getconf"
7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7572 if test -n "$ac_ct_GETCONF"; then
7573 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7574 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7576 echo "$as_me:$LINENO: result: no" >&5
7577 echo "${ECHO_T}no" >&6
7580 GETCONF=$ac_ct_GETCONF
7582 GETCONF="$ac_cv_prog_GETCONF"
7585 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7586 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7587 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7588 echo $ECHO_N "(cached) $ECHO_C" >&6
7590 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7591 ac_cv_sys_largefile_CFLAGS=no
7593 # IRIX 6.2 and later require cc -n32.
7594 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7595 if test "$GCC" != yes; then
7596 ac_cv_sys_largefile_CFLAGS=-n32
7599 CC="$CC $ac_cv_sys_largefile_CFLAGS"
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
7633 ac_cv_sys_largefile_CFLAGS=no
7635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7640 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7641 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7642 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7643 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7644 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7645 echo $ECHO_N "(cached) $ECHO_C" >&6
7647 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7648 ac_cv_sys_largefile_LDFLAGS=no
7652 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7653 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7654 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7655 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7656 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7657 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7660 ac_cv_sys_largefile_LIBS=no
7664 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7665 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7667 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7670 -D_FILE_OFFSET_BITS=*) ;;
7671 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7672 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7678 '') CPPFLAGS="$ac_flag" ;;
7679 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7687 '') CFLAGS="$ac_flag" ;;
7688 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7693 case "$ac_cv_sys_largefile_LDFLAGS" in
7697 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7698 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7701 case "$ac_cv_sys_largefile_LIBS" in
7705 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7706 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7709 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7710 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7711 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7714 ac_cv_sys_file_offset_bits=no
7716 # HP-UX 10.20 and later
7717 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7718 ac_cv_sys_file_offset_bits=64 ;;
7720 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7722 -D_FILE_OFFSET_BITS)
7723 ac_cv_sys_file_offset_bits=1 ;;
7724 -D_FILE_OFFSET_BITS=*)
7725 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7730 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7731 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7732 if test "$ac_cv_sys_file_offset_bits" != no; then
7734 cat >>confdefs.h <<_ACEOF
7735 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7739 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7740 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7741 if test "${ac_cv_sys_largefile_source+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 ac_cv_sys_largefile_source=no
7746 # HP-UX 10.20 and later
7747 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7748 ac_cv_sys_largefile_source=1 ;;
7750 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7752 -D_LARGEFILE_SOURCE)
7753 ac_cv_sys_largefile_source=1 ;;
7754 -D_LARGEFILE_SOURCE=*)
7755 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7760 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7761 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7762 if test "$ac_cv_sys_largefile_source" != no; then
7764 cat >>confdefs.h <<_ACEOF
7765 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7769 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7770 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7771 if test "${ac_cv_sys_large_files+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 ac_cv_sys_large_files=no
7777 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7778 ac_cv_sys_large_files=1 ;;
7780 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7783 ac_cv_sys_large_files=1 ;;
7785 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7790 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7791 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7792 if test "$ac_cv_sys_large_files" != no; then
7794 cat >>confdefs.h <<_ACEOF
7795 #define _LARGE_FILES $ac_cv_sys_large_files
7803 echo "$as_me:$LINENO: checking for X" >&5
7804 echo $ECHO_N "checking for X... $ECHO_C" >&6
7807 # Check whether --with-x or --without-x was given.
7808 if test "${with_x+set}" = set; then
7812 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7813 if test "x$with_x" = xno; then
7814 # The user explicitly disabled X.
7817 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7818 # Both variables are already set.
7821 if test "${ac_cv_have_x+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 # One or both of the vars are not set, and there is no cached value.
7825 ac_x_includes=no ac_x_libraries=no
7827 if mkdir conftest.dir; then
7829 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7830 cat >Imakefile <<'_ACEOF'
7832 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7834 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7835 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7836 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7837 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7838 for ac_extension in a so sl; do
7839 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7840 test -f $ac_im_libdir/libX11.$ac_extension; then
7841 ac_im_usrlibdir=$ac_im_libdir; break
7844 # Screen out bogus values from the imake configuration. They are
7845 # bogus both because they are the default anyway, and because
7846 # using them would break gcc on systems where it needs fixed includes.
7847 case $ac_im_incroot in
7849 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7851 case $ac_im_usrlibdir in
7853 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7860 # Standard set of common directories for X headers.
7861 # Check X11 before X11Rn because it is often a symlink to the current release.
7873 /usr/local/X11/include
7874 /usr/local/X11R6/include
7875 /usr/local/X11R5/include
7876 /usr/local/X11R4/include
7878 /usr/local/include/X11
7879 /usr/local/include/X11R6
7880 /usr/local/include/X11R5
7881 /usr/local/include/X11R4
7885 /usr/XFree86/include/X11
7889 /usr/unsupported/include
7891 /usr/local/x11r5/include
7892 /usr/lpp/Xamples/include
7894 /usr/openwin/include
7895 /usr/openwin/share/include'
7897 if test "$ac_x_includes" = no; then
7898 # Guess where to find include files, by looking for Intrinsic.h.
7899 # First, try using that file with no special directory specified.
7900 cat >conftest.$ac_ext <<_ACEOF
7901 #line $LINENO "configure"
7904 cat confdefs.h >>conftest.$ac_ext
7905 cat >>conftest.$ac_ext <<_ACEOF
7906 /* end confdefs.h. */
7907 #include <X11/Intrinsic.h>
7909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7912 grep -v '^ *+' conftest.er1 >conftest.err
7914 cat conftest.err >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } >/dev/null; then
7917 if test -s conftest.err; then
7918 ac_cpp_err=$ac_c_preproc_warn_flag
7925 if test -z "$ac_cpp_err"; then
7926 # We can compile using X headers with no special include directory.
7929 echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.$ac_ext >&5
7932 for ac_dir in $ac_x_header_dirs; do
7933 if test -r "$ac_dir/X11/Intrinsic.h"; then
7934 ac_x_includes=$ac_dir
7939 rm -f conftest.err conftest.$ac_ext
7940 fi # $ac_x_includes = no
7942 if test "$ac_x_libraries" = no; then
7943 # Check for the libraries.
7944 # See if we find them without any special options.
7945 # Don't add to $LIBS permanently.
7948 cat >conftest.$ac_ext <<_ACEOF
7949 #line $LINENO "configure"
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h. */
7955 #include <X11/Intrinsic.h>
7964 rm -f conftest.$ac_objext conftest$ac_exeext
7965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7966 (eval $ac_link) 2>&5
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } &&
7970 { ac_try='test -s conftest$ac_exeext'
7971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; }; then
7977 # We can link X programs with no special library path.
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.$ac_ext >&5
7984 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7986 # Don't even attempt the hair of trying to link an X program!
7987 for ac_extension in a so sl; do
7988 if test -r $ac_dir/libXt.$ac_extension; then
7989 ac_x_libraries=$ac_dir
7995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7996 fi # $ac_x_libraries = no
7998 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7999 # Didn't find X anywhere. Cache the known absence of X.
8000 ac_cv_have_x="have_x=no"
8002 # Record where we found X for the cache.
8003 ac_cv_have_x="have_x=yes \
8004 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8009 eval "$ac_cv_have_x"
8012 if test "$have_x" != yes; then
8013 echo "$as_me:$LINENO: result: $have_x" >&5
8014 echo "${ECHO_T}$have_x" >&6
8017 # If each of the values was on the command line, it overrides each guess.
8018 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8019 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8020 # Update the cache value to reflect the command line values.
8021 ac_cv_have_x="have_x=yes \
8022 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8023 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8024 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8027 if test "$no_x" = yes; then
8028 # Not all programs may use this symbol, but it does not hurt to define it.
8030 cat >>confdefs.h <<\_ACEOF
8031 #define X_DISPLAY_MISSING 1
8034 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8036 if test -n "$x_includes"; then
8037 X_CFLAGS="$X_CFLAGS -I$x_includes"
8040 # It would also be nice to do this for all -L options, not just this one.
8041 if test -n "$x_libraries"; then
8042 X_LIBS="$X_LIBS -L$x_libraries"
8043 # For Solaris; some versions of Sun CC require a space after -R and
8044 # others require no space. Words are not sufficient . . . .
8045 case `(uname -sr) 2>/dev/null` in
8047 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8048 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8049 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8050 cat >conftest.$ac_ext <<_ACEOF
8051 #line $LINENO "configure"
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8066 rm -f conftest.$ac_objext conftest$ac_exeext
8067 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8068 (eval $ac_link) 2>&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } &&
8072 { ac_try='test -s conftest$ac_exeext'
8073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8080 echo "$as_me: failed program was:" >&5
8081 sed 's/^/| /' conftest.$ac_ext >&5
8085 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8086 if test $ac_R_nospace = yes; then
8087 echo "$as_me:$LINENO: result: no" >&5
8088 echo "${ECHO_T}no" >&6
8089 X_LIBS="$X_LIBS -R$x_libraries"
8091 LIBS="$ac_xsave_LIBS -R $x_libraries"
8092 cat >conftest.$ac_ext <<_ACEOF
8093 #line $LINENO "configure"
8096 cat confdefs.h >>conftest.$ac_ext
8097 cat >>conftest.$ac_ext <<_ACEOF
8098 /* end confdefs.h. */
8108 rm -f conftest.$ac_objext conftest$ac_exeext
8109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8110 (eval $ac_link) 2>&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } &&
8114 { ac_try='test -s conftest$ac_exeext'
8115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); }; }; then
8122 echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8128 if test $ac_R_space = yes; then
8129 echo "$as_me:$LINENO: result: yes" >&5
8130 echo "${ECHO_T}yes" >&6
8131 X_LIBS="$X_LIBS -R $x_libraries"
8133 echo "$as_me:$LINENO: result: neither works" >&5
8134 echo "${ECHO_T}neither works" >&6
8141 # Check for system-dependent libraries X programs must link with.
8142 # Do this before checking for the system-independent R6 libraries
8143 # (-lICE), since we may need -lsocket or whatever for X linking.
8145 if test "$ISC" = yes; then
8146 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8148 # Martyn Johnson says this is needed for Ultrix, if the X
8149 # libraries were built with DECnet support. And Karl Berry says
8150 # the Alpha needs dnet_stub (dnet does not exist).
8151 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8152 cat >conftest.$ac_ext <<_ACEOF
8153 #line $LINENO "configure"
8156 cat confdefs.h >>conftest.$ac_ext
8157 cat >>conftest.$ac_ext <<_ACEOF
8158 /* end confdefs.h. */
8160 /* Override any gcc2 internal prototype to avoid an error. */
8164 /* We use char because int might match the return type of a gcc2
8165 builtin and then its argument prototype would still apply. */
8166 char XOpenDisplay ();
8175 rm -f conftest.$ac_objext conftest$ac_exeext
8176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8177 (eval $ac_link) 2>&5
8179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8180 (exit $ac_status); } &&
8181 { ac_try='test -s conftest$ac_exeext'
8182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); }; }; then
8189 echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8192 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8193 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8194 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8197 ac_check_lib_save_LIBS=$LIBS
8199 cat >conftest.$ac_ext <<_ACEOF
8200 #line $LINENO "configure"
8203 cat confdefs.h >>conftest.$ac_ext
8204 cat >>conftest.$ac_ext <<_ACEOF
8205 /* end confdefs.h. */
8207 /* Override any gcc2 internal prototype to avoid an error. */
8211 /* We use char because int might match the return type of a gcc2
8212 builtin and then its argument prototype would still apply. */
8222 rm -f conftest.$ac_objext conftest$ac_exeext
8223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8224 (eval $ac_link) 2>&5
8226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8227 (exit $ac_status); } &&
8228 { ac_try='test -s conftest$ac_exeext'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; }; then
8234 ac_cv_lib_dnet_dnet_ntoa=yes
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.$ac_ext >&5
8239 ac_cv_lib_dnet_dnet_ntoa=no
8241 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8242 LIBS=$ac_check_lib_save_LIBS
8244 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8245 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8246 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8247 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8250 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8251 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8252 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8253 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8254 echo $ECHO_N "(cached) $ECHO_C" >&6
8256 ac_check_lib_save_LIBS=$LIBS
8257 LIBS="-ldnet_stub $LIBS"
8258 cat >conftest.$ac_ext <<_ACEOF
8259 #line $LINENO "configure"
8262 cat confdefs.h >>conftest.$ac_ext
8263 cat >>conftest.$ac_ext <<_ACEOF
8264 /* end confdefs.h. */
8266 /* Override any gcc2 internal prototype to avoid an error. */
8270 /* We use char because int might match the return type of a gcc2
8271 builtin and then its argument prototype would still apply. */
8281 rm -f conftest.$ac_objext conftest$ac_exeext
8282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8283 (eval $ac_link) 2>&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } &&
8287 { ac_try='test -s conftest$ac_exeext'
8288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; }; then
8293 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8295 echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.$ac_ext >&5
8298 ac_cv_lib_dnet_stub_dnet_ntoa=no
8300 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8301 LIBS=$ac_check_lib_save_LIBS
8303 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8304 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8305 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8306 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8311 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8312 LIBS="$ac_xsave_LIBS"
8314 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8315 # to get the SysV transport functions.
8316 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8318 # The nsl library prevents programs from opening the X display
8319 # on Irix 5.2, according to T.E. Dickey.
8320 # The functions gethostbyname, getservbyname, and inet_addr are
8321 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8322 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8323 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8324 if test "${ac_cv_func_gethostbyname+set}" = set; then
8325 echo $ECHO_N "(cached) $ECHO_C" >&6
8327 cat >conftest.$ac_ext <<_ACEOF
8328 #line $LINENO "configure"
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h. */
8334 /* System header to define __stub macros and hopefully few prototypes,
8335 which can conflict with char gethostbyname (); below.
8336 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8337 <limits.h> exists even on freestanding compilers. */
8339 # include <limits.h>
8341 # include <assert.h>
8343 /* Override any gcc2 internal prototype to avoid an error. */
8348 /* We use char because int might match the return type of a gcc2
8349 builtin and then its argument prototype would still apply. */
8350 char gethostbyname ();
8351 /* The GNU C library defines this for functions which it implements
8352 to always fail with ENOSYS. Some functions are actually named
8353 something starting with __ and the normal name is an alias. */
8354 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8357 char (*f) () = gethostbyname;
8366 return f != gethostbyname;
8371 rm -f conftest.$ac_objext conftest$ac_exeext
8372 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8373 (eval $ac_link) 2>&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } &&
8377 { ac_try='test -s conftest$ac_exeext'
8378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); }; }; then
8383 ac_cv_func_gethostbyname=yes
8385 echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8388 ac_cv_func_gethostbyname=no
8390 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8392 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8393 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8395 if test $ac_cv_func_gethostbyname = no; then
8396 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8397 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8398 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8401 ac_check_lib_save_LIBS=$LIBS
8403 cat >conftest.$ac_ext <<_ACEOF
8404 #line $LINENO "configure"
8407 cat confdefs.h >>conftest.$ac_ext
8408 cat >>conftest.$ac_ext <<_ACEOF
8409 /* end confdefs.h. */
8411 /* Override any gcc2 internal prototype to avoid an error. */
8415 /* We use char because int might match the return type of a gcc2
8416 builtin and then its argument prototype would still apply. */
8417 char gethostbyname ();
8426 rm -f conftest.$ac_objext conftest$ac_exeext
8427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8428 (eval $ac_link) 2>&5
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try='test -s conftest$ac_exeext'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
8438 ac_cv_lib_nsl_gethostbyname=yes
8440 echo "$as_me: failed program was:" >&5
8441 sed 's/^/| /' conftest.$ac_ext >&5
8443 ac_cv_lib_nsl_gethostbyname=no
8445 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8446 LIBS=$ac_check_lib_save_LIBS
8448 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8449 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8450 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8451 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8454 if test $ac_cv_lib_nsl_gethostbyname = no; then
8455 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8456 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8457 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8458 echo $ECHO_N "(cached) $ECHO_C" >&6
8460 ac_check_lib_save_LIBS=$LIBS
8462 cat >conftest.$ac_ext <<_ACEOF
8463 #line $LINENO "configure"
8466 cat confdefs.h >>conftest.$ac_ext
8467 cat >>conftest.$ac_ext <<_ACEOF
8468 /* end confdefs.h. */
8470 /* Override any gcc2 internal prototype to avoid an error. */
8474 /* We use char because int might match the return type of a gcc2
8475 builtin and then its argument prototype would still apply. */
8476 char gethostbyname ();
8485 rm -f conftest.$ac_objext conftest$ac_exeext
8486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8487 (eval $ac_link) 2>&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } &&
8491 { ac_try='test -s conftest$ac_exeext'
8492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); }; }; then
8497 ac_cv_lib_bsd_gethostbyname=yes
8499 echo "$as_me: failed program was:" >&5
8500 sed 's/^/| /' conftest.$ac_ext >&5
8502 ac_cv_lib_bsd_gethostbyname=no
8504 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8505 LIBS=$ac_check_lib_save_LIBS
8507 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8508 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8509 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8510 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8516 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8517 # socket/setsockopt and other routines are undefined under SCO ODT
8518 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8519 # on later versions), says Simon Leinen: it contains gethostby*
8520 # variants that don't use the name server (or something). -lsocket
8521 # must be given before -lnsl if both are needed. We assume that
8522 # if connect needs -lnsl, so does gethostbyname.
8523 echo "$as_me:$LINENO: checking for connect" >&5
8524 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8525 if test "${ac_cv_func_connect+set}" = set; then
8526 echo $ECHO_N "(cached) $ECHO_C" >&6
8528 cat >conftest.$ac_ext <<_ACEOF
8529 #line $LINENO "configure"
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8535 /* System header to define __stub macros and hopefully few prototypes,
8536 which can conflict with char connect (); below.
8537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8538 <limits.h> exists even on freestanding compilers. */
8540 # include <limits.h>
8542 # include <assert.h>
8544 /* Override any gcc2 internal prototype to avoid an error. */
8549 /* We use char because int might match the return type of a gcc2
8550 builtin and then its argument prototype would still apply. */
8552 /* The GNU C library defines this for functions which it implements
8553 to always fail with ENOSYS. Some functions are actually named
8554 something starting with __ and the normal name is an alias. */
8555 #if defined (__stub_connect) || defined (__stub___connect)
8558 char (*f) () = connect;
8567 return f != connect;
8572 rm -f conftest.$ac_objext conftest$ac_exeext
8573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8574 (eval $ac_link) 2>&5
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } &&
8578 { ac_try='test -s conftest$ac_exeext'
8579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); }; }; then
8584 ac_cv_func_connect=yes
8586 echo "$as_me: failed program was:" >&5
8587 sed 's/^/| /' conftest.$ac_ext >&5
8589 ac_cv_func_connect=no
8591 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8593 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8594 echo "${ECHO_T}$ac_cv_func_connect" >&6
8596 if test $ac_cv_func_connect = no; then
8597 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8598 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8599 if test "${ac_cv_lib_socket_connect+set}" = set; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
8602 ac_check_lib_save_LIBS=$LIBS
8603 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8604 cat >conftest.$ac_ext <<_ACEOF
8605 #line $LINENO "configure"
8608 cat confdefs.h >>conftest.$ac_ext
8609 cat >>conftest.$ac_ext <<_ACEOF
8610 /* end confdefs.h. */
8612 /* Override any gcc2 internal prototype to avoid an error. */
8616 /* We use char because int might match the return type of a gcc2
8617 builtin and then its argument prototype would still apply. */
8627 rm -f conftest.$ac_objext conftest$ac_exeext
8628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8629 (eval $ac_link) 2>&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } &&
8633 { ac_try='test -s conftest$ac_exeext'
8634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638 (exit $ac_status); }; }; then
8639 ac_cv_lib_socket_connect=yes
8641 echo "$as_me: failed program was:" >&5
8642 sed 's/^/| /' conftest.$ac_ext >&5
8644 ac_cv_lib_socket_connect=no
8646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8647 LIBS=$ac_check_lib_save_LIBS
8649 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8650 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8651 if test $ac_cv_lib_socket_connect = yes; then
8652 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8657 # Guillermo Gomez says -lposix is necessary on A/UX.
8658 echo "$as_me:$LINENO: checking for remove" >&5
8659 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8660 if test "${ac_cv_func_remove+set}" = set; then
8661 echo $ECHO_N "(cached) $ECHO_C" >&6
8663 cat >conftest.$ac_ext <<_ACEOF
8664 #line $LINENO "configure"
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h. */
8670 /* System header to define __stub macros and hopefully few prototypes,
8671 which can conflict with char remove (); below.
8672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8673 <limits.h> exists even on freestanding compilers. */
8675 # include <limits.h>
8677 # include <assert.h>
8679 /* Override any gcc2 internal prototype to avoid an error. */
8684 /* We use char because int might match the return type of a gcc2
8685 builtin and then its argument prototype would still apply. */
8687 /* The GNU C library defines this for functions which it implements
8688 to always fail with ENOSYS. Some functions are actually named
8689 something starting with __ and the normal name is an alias. */
8690 #if defined (__stub_remove) || defined (__stub___remove)
8693 char (*f) () = remove;
8707 rm -f conftest.$ac_objext conftest$ac_exeext
8708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8709 (eval $ac_link) 2>&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } &&
8713 { ac_try='test -s conftest$ac_exeext'
8714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); }; }; then
8719 ac_cv_func_remove=yes
8721 echo "$as_me: failed program was:" >&5
8722 sed 's/^/| /' conftest.$ac_ext >&5
8724 ac_cv_func_remove=no
8726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8728 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8729 echo "${ECHO_T}$ac_cv_func_remove" >&6
8731 if test $ac_cv_func_remove = no; then
8732 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8733 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8734 if test "${ac_cv_lib_posix_remove+set}" = set; then
8735 echo $ECHO_N "(cached) $ECHO_C" >&6
8737 ac_check_lib_save_LIBS=$LIBS
8738 LIBS="-lposix $LIBS"
8739 cat >conftest.$ac_ext <<_ACEOF
8740 #line $LINENO "configure"
8743 cat confdefs.h >>conftest.$ac_ext
8744 cat >>conftest.$ac_ext <<_ACEOF
8745 /* end confdefs.h. */
8747 /* Override any gcc2 internal prototype to avoid an error. */
8751 /* We use char because int might match the return type of a gcc2
8752 builtin and then its argument prototype would still apply. */
8762 rm -f conftest.$ac_objext conftest$ac_exeext
8763 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8764 (eval $ac_link) 2>&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } &&
8768 { ac_try='test -s conftest$ac_exeext'
8769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8773 (exit $ac_status); }; }; then
8774 ac_cv_lib_posix_remove=yes
8776 echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8779 ac_cv_lib_posix_remove=no
8781 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8782 LIBS=$ac_check_lib_save_LIBS
8784 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8785 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8786 if test $ac_cv_lib_posix_remove = yes; then
8787 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8792 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8793 echo "$as_me:$LINENO: checking for shmat" >&5
8794 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8795 if test "${ac_cv_func_shmat+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8798 cat >conftest.$ac_ext <<_ACEOF
8799 #line $LINENO "configure"
8802 cat confdefs.h >>conftest.$ac_ext
8803 cat >>conftest.$ac_ext <<_ACEOF
8804 /* end confdefs.h. */
8805 /* System header to define __stub macros and hopefully few prototypes,
8806 which can conflict with char shmat (); below.
8807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8808 <limits.h> exists even on freestanding compilers. */
8810 # include <limits.h>
8812 # include <assert.h>
8814 /* Override any gcc2 internal prototype to avoid an error. */
8819 /* We use char because int might match the return type of a gcc2
8820 builtin and then its argument prototype would still apply. */
8822 /* The GNU C library defines this for functions which it implements
8823 to always fail with ENOSYS. Some functions are actually named
8824 something starting with __ and the normal name is an alias. */
8825 #if defined (__stub_shmat) || defined (__stub___shmat)
8828 char (*f) () = shmat;
8842 rm -f conftest.$ac_objext conftest$ac_exeext
8843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8844 (eval $ac_link) 2>&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); } &&
8848 { ac_try='test -s conftest$ac_exeext'
8849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); }; }; then
8854 ac_cv_func_shmat=yes
8856 echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8861 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8863 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8864 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8866 if test $ac_cv_func_shmat = no; then
8867 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8868 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8869 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8870 echo $ECHO_N "(cached) $ECHO_C" >&6
8872 ac_check_lib_save_LIBS=$LIBS
8874 cat >conftest.$ac_ext <<_ACEOF
8875 #line $LINENO "configure"
8878 cat confdefs.h >>conftest.$ac_ext
8879 cat >>conftest.$ac_ext <<_ACEOF
8880 /* end confdefs.h. */
8882 /* Override any gcc2 internal prototype to avoid an error. */
8886 /* We use char because int might match the return type of a gcc2
8887 builtin and then its argument prototype would still apply. */
8897 rm -f conftest.$ac_objext conftest$ac_exeext
8898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8899 (eval $ac_link) 2>&5
8901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8902 (exit $ac_status); } &&
8903 { ac_try='test -s conftest$ac_exeext'
8904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); }; }; then
8909 ac_cv_lib_ipc_shmat=yes
8911 echo "$as_me: failed program was:" >&5
8912 sed 's/^/| /' conftest.$ac_ext >&5
8914 ac_cv_lib_ipc_shmat=no
8916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8917 LIBS=$ac_check_lib_save_LIBS
8919 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8920 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8921 if test $ac_cv_lib_ipc_shmat = yes; then
8922 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8928 # Check for libraries that X11R6 Xt/Xaw programs need.
8929 ac_save_LDFLAGS=$LDFLAGS
8930 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8931 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8932 # check for ICE first), but we must link in the order -lSM -lICE or
8933 # we get undefined symbols. So assume we have SM if we have ICE.
8934 # These have to be linked with before -lX11, unlike the other
8935 # libraries we check for below, so use a different variable.
8936 # John Interrante, Karl Berry
8937 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8938 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8939 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
8942 ac_check_lib_save_LIBS=$LIBS
8943 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8944 cat >conftest.$ac_ext <<_ACEOF
8945 #line $LINENO "configure"
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h. */
8952 /* Override any gcc2 internal prototype to avoid an error. */
8956 /* We use char because int might match the return type of a gcc2
8957 builtin and then its argument prototype would still apply. */
8958 char IceConnectionNumber ();
8962 IceConnectionNumber ();
8967 rm -f conftest.$ac_objext conftest$ac_exeext
8968 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8969 (eval $ac_link) 2>&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); } &&
8973 { ac_try='test -s conftest$ac_exeext'
8974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8978 (exit $ac_status); }; }; then
8979 ac_cv_lib_ICE_IceConnectionNumber=yes
8981 echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.$ac_ext >&5
8984 ac_cv_lib_ICE_IceConnectionNumber=no
8986 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8987 LIBS=$ac_check_lib_save_LIBS
8989 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8990 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8991 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8992 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8995 LDFLAGS=$ac_save_LDFLAGS
9047 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9049 echo "$as_me:$LINENO: checking for $ac_header" >&5
9050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9052 echo $ECHO_N "(cached) $ECHO_C" >&6
9054 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9055 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9057 # Is the header compilable?
9058 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9060 cat >conftest.$ac_ext <<_ACEOF
9061 #line $LINENO "configure"
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9067 $ac_includes_default
9068 #include <$ac_header>
9070 rm -f conftest.$ac_objext
9071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9072 (eval $ac_compile) 2>&5
9074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9075 (exit $ac_status); } &&
9076 { ac_try='test -s conftest.$ac_objext'
9077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9081 (exit $ac_status); }; }; then
9082 ac_header_compiler=yes
9084 echo "$as_me: failed program was:" >&5
9085 sed 's/^/| /' conftest.$ac_ext >&5
9087 ac_header_compiler=no
9089 rm -f conftest.$ac_objext conftest.$ac_ext
9090 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9091 echo "${ECHO_T}$ac_header_compiler" >&6
9093 # Is the header present?
9094 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9095 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9096 cat >conftest.$ac_ext <<_ACEOF
9097 #line $LINENO "configure"
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9103 #include <$ac_header>
9105 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9106 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9108 grep -v '^ *+' conftest.er1 >conftest.err
9110 cat conftest.err >&5
9111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112 (exit $ac_status); } >/dev/null; then
9113 if test -s conftest.err; then
9114 ac_cpp_err=$ac_c_preproc_warn_flag
9121 if test -z "$ac_cpp_err"; then
9122 ac_header_preproc=yes
9124 echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9127 ac_header_preproc=no
9129 rm -f conftest.err conftest.$ac_ext
9130 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9131 echo "${ECHO_T}$ac_header_preproc" >&6
9133 # So? What about this header?
9134 case $ac_header_compiler:$ac_header_preproc in
9136 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9137 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9142 ## ------------------------------------ ##
9143 ## Report this to bug-autoconf@gnu.org. ##
9144 ## ------------------------------------ ##
9147 sed "s/^/$as_me: WARNING: /" >&2
9150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9154 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9155 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9158 ## ------------------------------------ ##
9159 ## Report this to bug-autoconf@gnu.org. ##
9160 ## ------------------------------------ ##
9163 sed "s/^/$as_me: WARNING: /" >&2
9166 echo "$as_me:$LINENO: checking for $ac_header" >&5
9167 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9168 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9169 echo $ECHO_N "(cached) $ECHO_C" >&6
9171 eval "$as_ac_Header=$ac_header_preproc"
9173 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9174 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9178 cat >>confdefs.h <<_ACEOF
9179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9186 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9187 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9188 if test "${ac_cv_header_stdc+set}" = set; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9191 cat >conftest.$ac_ext <<_ACEOF
9192 #line $LINENO "configure"
9195 cat confdefs.h >>conftest.$ac_ext
9196 cat >>conftest.$ac_ext <<_ACEOF
9197 /* end confdefs.h. */
9211 rm -f conftest.$ac_objext
9212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9213 (eval $ac_compile) 2>&5
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); } &&
9217 { ac_try='test -s conftest.$ac_objext'
9218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9222 (exit $ac_status); }; }; then
9223 ac_cv_header_stdc=yes
9225 echo "$as_me: failed program was:" >&5
9226 sed 's/^/| /' conftest.$ac_ext >&5
9228 ac_cv_header_stdc=no
9230 rm -f conftest.$ac_objext conftest.$ac_ext
9232 if test $ac_cv_header_stdc = yes; then
9233 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9234 cat >conftest.$ac_ext <<_ACEOF
9235 #line $LINENO "configure"
9238 cat confdefs.h >>conftest.$ac_ext
9239 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h. */
9244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9245 $EGREP "memchr" >/dev/null 2>&1; then
9248 ac_cv_header_stdc=no
9254 if test $ac_cv_header_stdc = yes; then
9255 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9256 cat >conftest.$ac_ext <<_ACEOF
9257 #line $LINENO "configure"
9260 cat confdefs.h >>conftest.$ac_ext
9261 cat >>conftest.$ac_ext <<_ACEOF
9262 /* end confdefs.h. */
9266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9267 $EGREP "free" >/dev/null 2>&1; then
9270 ac_cv_header_stdc=no
9276 if test $ac_cv_header_stdc = yes; then
9277 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9278 if test "$cross_compiling" = yes; then
9281 cat >conftest.$ac_ext <<_ACEOF
9282 #line $LINENO "configure"
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
9287 /* end confdefs.h. */
9289 #if ((' ' & 0x0FF) == 0x020)
9290 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9291 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9293 # define ISLOWER(c) \
9294 (('a' <= (c) && (c) <= 'i') \
9295 || ('j' <= (c) && (c) <= 'r') \
9296 || ('s' <= (c) && (c) <= 'z'))
9297 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9300 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9305 for (i = 0; i < 256; i++)
9306 if (XOR (islower (i), ISLOWER (i))
9307 || toupper (i) != TOUPPER (i))
9312 rm -f conftest$ac_exeext
9313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9314 (eval $ac_link) 2>&5
9316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); }; }; then
9325 echo "$as_me: program exited with status $ac_status" >&5
9326 echo "$as_me: failed program was:" >&5
9327 sed 's/^/| /' conftest.$ac_ext >&5
9330 ac_cv_header_stdc=no
9332 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9336 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9337 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9338 if test $ac_cv_header_stdc = yes; then
9340 cat >>confdefs.h <<\_ACEOF
9341 #define STDC_HEADERS 1
9346 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9347 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9348 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9349 echo $ECHO_N "(cached) $ECHO_C" >&6
9351 cat >conftest.$ac_ext <<_ACEOF
9352 #line $LINENO "configure"
9355 cat confdefs.h >>conftest.$ac_ext
9356 cat >>conftest.$ac_ext <<_ACEOF
9357 /* end confdefs.h. */
9358 #include <sys/types.h>
9362 return makedev(0, 0);
9367 rm -f conftest.$ac_objext conftest$ac_exeext
9368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9369 (eval $ac_link) 2>&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); } &&
9373 { ac_try='test -s conftest$ac_exeext'
9374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); }; }; then
9379 ac_cv_header_sys_types_h_makedev=yes
9381 echo "$as_me: failed program was:" >&5
9382 sed 's/^/| /' conftest.$ac_ext >&5
9384 ac_cv_header_sys_types_h_makedev=no
9386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9389 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9390 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9392 if test $ac_cv_header_sys_types_h_makedev = no; then
9393 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9394 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9395 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9396 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9397 echo $ECHO_N "(cached) $ECHO_C" >&6
9399 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9400 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9402 # Is the header compilable?
9403 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9404 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9405 cat >conftest.$ac_ext <<_ACEOF
9406 #line $LINENO "configure"
9409 cat confdefs.h >>conftest.$ac_ext
9410 cat >>conftest.$ac_ext <<_ACEOF
9411 /* end confdefs.h. */
9412 $ac_includes_default
9413 #include <sys/mkdev.h>
9415 rm -f conftest.$ac_objext
9416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9417 (eval $ac_compile) 2>&5
9419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420 (exit $ac_status); } &&
9421 { ac_try='test -s conftest.$ac_objext'
9422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 ac_header_compiler=yes
9429 echo "$as_me: failed program was:" >&5
9430 sed 's/^/| /' conftest.$ac_ext >&5
9432 ac_header_compiler=no
9434 rm -f conftest.$ac_objext conftest.$ac_ext
9435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9436 echo "${ECHO_T}$ac_header_compiler" >&6
9438 # Is the header present?
9439 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9440 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9441 cat >conftest.$ac_ext <<_ACEOF
9442 #line $LINENO "configure"
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9448 #include <sys/mkdev.h>
9450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9453 grep -v '^ *+' conftest.er1 >conftest.err
9455 cat conftest.err >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } >/dev/null; then
9458 if test -s conftest.err; then
9459 ac_cpp_err=$ac_c_preproc_warn_flag
9466 if test -z "$ac_cpp_err"; then
9467 ac_header_preproc=yes
9469 echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.$ac_ext >&5
9472 ac_header_preproc=no
9474 rm -f conftest.err conftest.$ac_ext
9475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9476 echo "${ECHO_T}$ac_header_preproc" >&6
9478 # So? What about this header?
9479 case $ac_header_compiler:$ac_header_preproc in
9481 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9482 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9483 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9484 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9487 ## ------------------------------------ ##
9488 ## Report this to bug-autoconf@gnu.org. ##
9489 ## ------------------------------------ ##
9492 sed "s/^/$as_me: WARNING: /" >&2
9495 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9496 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9497 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9498 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9499 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9500 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9503 ## ------------------------------------ ##
9504 ## Report this to bug-autoconf@gnu.org. ##
9505 ## ------------------------------------ ##
9508 sed "s/^/$as_me: WARNING: /" >&2
9511 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9512 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9513 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9514 echo $ECHO_N "(cached) $ECHO_C" >&6
9516 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9518 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9519 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9522 if test $ac_cv_header_sys_mkdev_h = yes; then
9524 cat >>confdefs.h <<\_ACEOF
9525 #define MAJOR_IN_MKDEV 1
9532 if test $ac_cv_header_sys_mkdev_h = no; then
9533 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9534 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9535 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9536 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9537 echo $ECHO_N "(cached) $ECHO_C" >&6
9539 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9540 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9542 # Is the header compilable?
9543 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9544 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9545 cat >conftest.$ac_ext <<_ACEOF
9546 #line $LINENO "configure"
9549 cat confdefs.h >>conftest.$ac_ext
9550 cat >>conftest.$ac_ext <<_ACEOF
9551 /* end confdefs.h. */
9552 $ac_includes_default
9553 #include <sys/sysmacros.h>
9555 rm -f conftest.$ac_objext
9556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9557 (eval $ac_compile) 2>&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); } &&
9561 { ac_try='test -s conftest.$ac_objext'
9562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9566 (exit $ac_status); }; }; then
9567 ac_header_compiler=yes
9569 echo "$as_me: failed program was:" >&5
9570 sed 's/^/| /' conftest.$ac_ext >&5
9572 ac_header_compiler=no
9574 rm -f conftest.$ac_objext conftest.$ac_ext
9575 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9576 echo "${ECHO_T}$ac_header_compiler" >&6
9578 # Is the header present?
9579 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9580 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9581 cat >conftest.$ac_ext <<_ACEOF
9582 #line $LINENO "configure"
9585 cat confdefs.h >>conftest.$ac_ext
9586 cat >>conftest.$ac_ext <<_ACEOF
9587 /* end confdefs.h. */
9588 #include <sys/sysmacros.h>
9590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9593 grep -v '^ *+' conftest.er1 >conftest.err
9595 cat conftest.err >&5
9596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597 (exit $ac_status); } >/dev/null; then
9598 if test -s conftest.err; then
9599 ac_cpp_err=$ac_c_preproc_warn_flag
9606 if test -z "$ac_cpp_err"; then
9607 ac_header_preproc=yes
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9612 ac_header_preproc=no
9614 rm -f conftest.err conftest.$ac_ext
9615 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9616 echo "${ECHO_T}$ac_header_preproc" >&6
9618 # So? What about this header?
9619 case $ac_header_compiler:$ac_header_preproc in
9621 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9622 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9623 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9624 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9627 ## ------------------------------------ ##
9628 ## Report this to bug-autoconf@gnu.org. ##
9629 ## ------------------------------------ ##
9632 sed "s/^/$as_me: WARNING: /" >&2
9635 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9636 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9637 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9638 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9639 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9640 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9643 ## ------------------------------------ ##
9644 ## Report this to bug-autoconf@gnu.org. ##
9645 ## ------------------------------------ ##
9648 sed "s/^/$as_me: WARNING: /" >&2
9651 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9652 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9653 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9656 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9658 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9659 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9662 if test $ac_cv_header_sys_sysmacros_h = yes; then
9664 cat >>confdefs.h <<\_ACEOF
9665 #define MAJOR_IN_SYSMACROS 1
9680 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9681 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9682 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9683 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
9687 cat >conftest.$ac_ext <<_ACEOF
9688 #line $LINENO "configure"
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9694 #include <sys/types.h>
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 eval "$as_ac_Header=yes"
9720 echo "$as_me: failed program was:" >&5
9721 sed 's/^/| /' conftest.$ac_ext >&5
9723 eval "$as_ac_Header=no"
9725 rm -f conftest.$ac_objext conftest.$ac_ext
9727 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9728 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9730 cat >>confdefs.h <<_ACEOF
9731 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9734 ac_header_dirent=$ac_hdr; break
9738 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9739 if test $ac_header_dirent = dirent.h; then
9740 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9741 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9742 if test "${ac_cv_search_opendir+set}" = set; then
9743 echo $ECHO_N "(cached) $ECHO_C" >&6
9745 ac_func_search_save_LIBS=$LIBS
9746 ac_cv_search_opendir=no
9747 cat >conftest.$ac_ext <<_ACEOF
9748 #line $LINENO "configure"
9751 cat confdefs.h >>conftest.$ac_ext
9752 cat >>conftest.$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9755 /* Override any gcc2 internal prototype to avoid an error. */
9759 /* We use char because int might match the return type of a gcc2
9760 builtin and then its argument prototype would still apply. */
9770 rm -f conftest.$ac_objext conftest$ac_exeext
9771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9772 (eval $ac_link) 2>&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } &&
9776 { ac_try='test -s conftest$ac_exeext'
9777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); }; }; then
9782 ac_cv_search_opendir="none required"
9784 echo "$as_me: failed program was:" >&5
9785 sed 's/^/| /' conftest.$ac_ext >&5
9788 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9789 if test "$ac_cv_search_opendir" = no; then
9790 for ac_lib in dir; do
9791 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9792 cat >conftest.$ac_ext <<_ACEOF
9793 #line $LINENO "configure"
9796 cat confdefs.h >>conftest.$ac_ext
9797 cat >>conftest.$ac_ext <<_ACEOF
9798 /* end confdefs.h. */
9800 /* Override any gcc2 internal prototype to avoid an error. */
9804 /* We use char because int might match the return type of a gcc2
9805 builtin and then its argument prototype would still apply. */
9815 rm -f conftest.$ac_objext conftest$ac_exeext
9816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9817 (eval $ac_link) 2>&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); } &&
9821 { ac_try='test -s conftest$ac_exeext'
9822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); }; }; then
9827 ac_cv_search_opendir="-l$ac_lib"
9830 echo "$as_me: failed program was:" >&5
9831 sed 's/^/| /' conftest.$ac_ext >&5
9834 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9837 LIBS=$ac_func_search_save_LIBS
9839 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9840 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9841 if test "$ac_cv_search_opendir" != no; then
9842 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9847 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9848 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9849 if test "${ac_cv_search_opendir+set}" = set; then
9850 echo $ECHO_N "(cached) $ECHO_C" >&6
9852 ac_func_search_save_LIBS=$LIBS
9853 ac_cv_search_opendir=no
9854 cat >conftest.$ac_ext <<_ACEOF
9855 #line $LINENO "configure"
9858 cat confdefs.h >>conftest.$ac_ext
9859 cat >>conftest.$ac_ext <<_ACEOF
9860 /* end confdefs.h. */
9862 /* Override any gcc2 internal prototype to avoid an error. */
9866 /* We use char because int might match the return type of a gcc2
9867 builtin and then its argument prototype would still apply. */
9877 rm -f conftest.$ac_objext conftest$ac_exeext
9878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9879 (eval $ac_link) 2>&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } &&
9883 { ac_try='test -s conftest$ac_exeext'
9884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
9889 ac_cv_search_opendir="none required"
9891 echo "$as_me: failed program was:" >&5
9892 sed 's/^/| /' conftest.$ac_ext >&5
9895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9896 if test "$ac_cv_search_opendir" = no; then
9898 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9899 cat >conftest.$ac_ext <<_ACEOF
9900 #line $LINENO "configure"
9903 cat confdefs.h >>conftest.$ac_ext
9904 cat >>conftest.$ac_ext <<_ACEOF
9905 /* end confdefs.h. */
9907 /* Override any gcc2 internal prototype to avoid an error. */
9911 /* We use char because int might match the return type of a gcc2
9912 builtin and then its argument prototype would still apply. */
9922 rm -f conftest.$ac_objext conftest$ac_exeext
9923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9924 (eval $ac_link) 2>&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); } &&
9928 { ac_try='test -s conftest$ac_exeext'
9929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9933 (exit $ac_status); }; }; then
9934 ac_cv_search_opendir="-l$ac_lib"
9937 echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9944 LIBS=$ac_func_search_save_LIBS
9946 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9947 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9948 if test "$ac_cv_search_opendir" != no; then
9949 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9955 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9956 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9957 if test "${ac_cv_header_stat_broken+set}" = set; then
9958 echo $ECHO_N "(cached) $ECHO_C" >&6
9960 cat >conftest.$ac_ext <<_ACEOF
9961 #line $LINENO "configure"
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9967 #include <sys/types.h>
9968 #include <sys/stat.h>
9970 #if defined(S_ISBLK) && defined(S_IFDIR)
9971 # if S_ISBLK (S_IFDIR)
9976 #if defined(S_ISBLK) && defined(S_IFCHR)
9977 # if S_ISBLK (S_IFCHR)
9982 #if defined(S_ISLNK) && defined(S_IFREG)
9983 # if S_ISLNK (S_IFREG)
9988 #if defined(S_ISSOCK) && defined(S_IFREG)
9989 # if S_ISSOCK (S_IFREG)
9995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9996 $EGREP "You lose" >/dev/null 2>&1; then
9997 ac_cv_header_stat_broken=yes
9999 ac_cv_header_stat_broken=no
10004 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10005 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10006 if test $ac_cv_header_stat_broken = yes; then
10008 cat >>confdefs.h <<\_ACEOF
10009 #define STAT_MACROS_BROKEN 1
10014 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10015 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10016 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 cat >conftest.$ac_ext <<_ACEOF
10020 #line $LINENO "configure"
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h. */
10026 #include <sys/types.h>
10027 #include <sys/wait.h>
10028 #ifndef WEXITSTATUS
10029 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10032 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10040 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10045 rm -f conftest.$ac_objext
10046 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10047 (eval $ac_compile) 2>&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } &&
10051 { ac_try='test -s conftest.$ac_objext'
10052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10053 (eval $ac_try) 2>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); }; }; then
10057 ac_cv_header_sys_wait_h=yes
10059 echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10062 ac_cv_header_sys_wait_h=no
10064 rm -f conftest.$ac_objext conftest.$ac_ext
10066 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10067 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10068 if test $ac_cv_header_sys_wait_h = yes; then
10070 cat >>confdefs.h <<\_ACEOF
10071 #define HAVE_SYS_WAIT_H 1
10076 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10077 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10078 if test "${ac_cv_header_time+set}" = set; then
10079 echo $ECHO_N "(cached) $ECHO_C" >&6
10081 cat >conftest.$ac_ext <<_ACEOF
10082 #line $LINENO "configure"
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h. */
10088 #include <sys/types.h>
10089 #include <sys/time.h>
10095 if ((struct tm *) 0)
10101 rm -f conftest.$ac_objext
10102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10103 (eval $ac_compile) 2>&5
10105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10106 (exit $ac_status); } &&
10107 { ac_try='test -s conftest.$ac_objext'
10108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10109 (eval $ac_try) 2>&5
10111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10112 (exit $ac_status); }; }; then
10113 ac_cv_header_time=yes
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.$ac_ext >&5
10118 ac_cv_header_time=no
10120 rm -f conftest.$ac_objext conftest.$ac_ext
10122 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10123 echo "${ECHO_T}$ac_cv_header_time" >&6
10124 if test $ac_cv_header_time = yes; then
10126 cat >>confdefs.h <<\_ACEOF
10127 #define TIME_WITH_SYS_TIME 1
10133 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10134 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10135 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10136 echo $ECHO_N "(cached) $ECHO_C" >&6
10138 cat >conftest.$ac_ext <<_ACEOF
10139 #line $LINENO "configure"
10142 cat confdefs.h >>conftest.$ac_ext
10143 cat >>conftest.$ac_ext <<_ACEOF
10144 /* end confdefs.h. */
10145 $ac_includes_default
10149 static struct stat ac_aggr;
10150 if (ac_aggr.st_blksize)
10156 rm -f conftest.$ac_objext
10157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10158 (eval $ac_compile) 2>&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); } &&
10162 { ac_try='test -s conftest.$ac_objext'
10163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10164 (eval $ac_try) 2>&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); }; }; then
10168 ac_cv_member_struct_stat_st_blksize=yes
10170 echo "$as_me: failed program was:" >&5
10171 sed 's/^/| /' conftest.$ac_ext >&5
10173 cat >conftest.$ac_ext <<_ACEOF
10174 #line $LINENO "configure"
10177 cat confdefs.h >>conftest.$ac_ext
10178 cat >>conftest.$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10180 $ac_includes_default
10184 static struct stat ac_aggr;
10185 if (sizeof ac_aggr.st_blksize)
10191 rm -f conftest.$ac_objext
10192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10193 (eval $ac_compile) 2>&5
10195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196 (exit $ac_status); } &&
10197 { ac_try='test -s conftest.$ac_objext'
10198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10199 (eval $ac_try) 2>&5
10201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10202 (exit $ac_status); }; }; then
10203 ac_cv_member_struct_stat_st_blksize=yes
10205 echo "$as_me: failed program was:" >&5
10206 sed 's/^/| /' conftest.$ac_ext >&5
10208 ac_cv_member_struct_stat_st_blksize=no
10210 rm -f conftest.$ac_objext conftest.$ac_ext
10212 rm -f conftest.$ac_objext conftest.$ac_ext
10214 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10215 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10216 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10218 cat >>confdefs.h <<_ACEOF
10219 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10223 cat >>confdefs.h <<\_ACEOF
10224 #define HAVE_ST_BLKSIZE 1
10230 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10231 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10232 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 cat >conftest.$ac_ext <<_ACEOF
10236 #line $LINENO "configure"
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10242 $ac_includes_default
10246 static struct stat ac_aggr;
10247 if (ac_aggr.st_blocks)
10253 rm -f conftest.$ac_objext
10254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10255 (eval $ac_compile) 2>&5
10257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10258 (exit $ac_status); } &&
10259 { ac_try='test -s conftest.$ac_objext'
10260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10261 (eval $ac_try) 2>&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); }; }; then
10265 ac_cv_member_struct_stat_st_blocks=yes
10267 echo "$as_me: failed program was:" >&5
10268 sed 's/^/| /' conftest.$ac_ext >&5
10270 cat >conftest.$ac_ext <<_ACEOF
10271 #line $LINENO "configure"
10274 cat confdefs.h >>conftest.$ac_ext
10275 cat >>conftest.$ac_ext <<_ACEOF
10276 /* end confdefs.h. */
10277 $ac_includes_default
10281 static struct stat ac_aggr;
10282 if (sizeof ac_aggr.st_blocks)
10288 rm -f conftest.$ac_objext
10289 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10290 (eval $ac_compile) 2>&5
10292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10293 (exit $ac_status); } &&
10294 { ac_try='test -s conftest.$ac_objext'
10295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10296 (eval $ac_try) 2>&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); }; }; then
10300 ac_cv_member_struct_stat_st_blocks=yes
10302 echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10305 ac_cv_member_struct_stat_st_blocks=no
10307 rm -f conftest.$ac_objext conftest.$ac_ext
10309 rm -f conftest.$ac_objext conftest.$ac_ext
10311 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10312 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10313 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10315 cat >>confdefs.h <<_ACEOF
10316 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10320 cat >>confdefs.h <<\_ACEOF
10321 #define HAVE_ST_BLOCKS 1
10325 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10329 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10330 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10331 if test "${ac_cv_struct_tm+set}" = set; then
10332 echo $ECHO_N "(cached) $ECHO_C" >&6
10334 cat >conftest.$ac_ext <<_ACEOF
10335 #line $LINENO "configure"
10338 cat confdefs.h >>conftest.$ac_ext
10339 cat >>conftest.$ac_ext <<_ACEOF
10340 /* end confdefs.h. */
10341 #include <sys/types.h>
10347 struct tm *tp; tp->tm_sec;
10352 rm -f conftest.$ac_objext
10353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10354 (eval $ac_compile) 2>&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } &&
10358 { ac_try='test -s conftest.$ac_objext'
10359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360 (eval $ac_try) 2>&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; }; then
10364 ac_cv_struct_tm=time.h
10366 echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10369 ac_cv_struct_tm=sys/time.h
10371 rm -f conftest.$ac_objext conftest.$ac_ext
10373 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10374 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10375 if test $ac_cv_struct_tm = sys/time.h; then
10377 cat >>confdefs.h <<\_ACEOF
10378 #define TM_IN_SYS_TIME 1
10383 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10384 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10385 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 cat >conftest.$ac_ext <<_ACEOF
10389 #line $LINENO "configure"
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h. */
10395 #include <sys/types.h>
10396 #include <$ac_cv_struct_tm>
10402 static struct tm ac_aggr;
10403 if (ac_aggr.tm_zone)
10409 rm -f conftest.$ac_objext
10410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10411 (eval $ac_compile) 2>&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); } &&
10415 { ac_try='test -s conftest.$ac_objext'
10416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10417 (eval $ac_try) 2>&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); }; }; then
10421 ac_cv_member_struct_tm_tm_zone=yes
10423 echo "$as_me: failed program was:" >&5
10424 sed 's/^/| /' conftest.$ac_ext >&5
10426 cat >conftest.$ac_ext <<_ACEOF
10427 #line $LINENO "configure"
10430 cat confdefs.h >>conftest.$ac_ext
10431 cat >>conftest.$ac_ext <<_ACEOF
10432 /* end confdefs.h. */
10433 #include <sys/types.h>
10434 #include <$ac_cv_struct_tm>
10440 static struct tm ac_aggr;
10441 if (sizeof ac_aggr.tm_zone)
10447 rm -f conftest.$ac_objext
10448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10449 (eval $ac_compile) 2>&5
10451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10452 (exit $ac_status); } &&
10453 { ac_try='test -s conftest.$ac_objext'
10454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455 (eval $ac_try) 2>&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; }; then
10459 ac_cv_member_struct_tm_tm_zone=yes
10461 echo "$as_me: failed program was:" >&5
10462 sed 's/^/| /' conftest.$ac_ext >&5
10464 ac_cv_member_struct_tm_tm_zone=no
10466 rm -f conftest.$ac_objext conftest.$ac_ext
10468 rm -f conftest.$ac_objext conftest.$ac_ext
10470 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10471 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10472 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10474 cat >>confdefs.h <<_ACEOF
10475 #define HAVE_STRUCT_TM_TM_ZONE 1
10481 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10483 cat >>confdefs.h <<\_ACEOF
10484 #define HAVE_TM_ZONE 1
10488 echo "$as_me:$LINENO: checking for tzname" >&5
10489 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10490 if test "${ac_cv_var_tzname+set}" = set; then
10491 echo $ECHO_N "(cached) $ECHO_C" >&6
10493 cat >conftest.$ac_ext <<_ACEOF
10494 #line $LINENO "configure"
10497 cat confdefs.h >>conftest.$ac_ext
10498 cat >>conftest.$ac_ext <<_ACEOF
10499 /* end confdefs.h. */
10501 #ifndef tzname /* For SGI. */
10502 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10513 rm -f conftest.$ac_objext conftest$ac_exeext
10514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10515 (eval $ac_link) 2>&5
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); } &&
10519 { ac_try='test -s conftest$ac_exeext'
10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; }; then
10525 ac_cv_var_tzname=yes
10527 echo "$as_me: failed program was:" >&5
10528 sed 's/^/| /' conftest.$ac_ext >&5
10530 ac_cv_var_tzname=no
10532 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10534 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10535 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10536 if test $ac_cv_var_tzname = yes; then
10538 cat >>confdefs.h <<\_ACEOF
10539 #define HAVE_TZNAME 1
10546 echo "$as_me:$LINENO: checking for utime.h" >&5
10547 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10548 if test "${ba_cv_header_utime_h+set}" = set; then
10549 echo $ECHO_N "(cached) $ECHO_C" >&6
10551 cat >conftest.$ac_ext <<_ACEOF
10552 #line $LINENO "configure"
10555 cat confdefs.h >>conftest.$ac_ext
10556 cat >>conftest.$ac_ext <<_ACEOF
10557 /* end confdefs.h. */
10559 #include <sys/types.h>
10569 rm -f conftest.$ac_objext
10570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10571 (eval $ac_compile) 2>&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try='test -s conftest.$ac_objext'
10576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10577 (eval $ac_try) 2>&5
10579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580 (exit $ac_status); }; }; then
10581 ba_cv_header_utime_h=yes
10583 echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10586 ba_cv_header_utime_h=no
10588 rm -f conftest.$ac_objext conftest.$ac_ext
10590 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10591 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10592 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10593 #define HAVE_UTIME_H 1
10597 echo "$as_me:$LINENO: checking for socklen_t" >&5
10598 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10599 if test "${ba_cv_header_socklen_t+set}" = set; then
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
10602 cat >conftest.$ac_ext <<_ACEOF
10603 #line $LINENO "configure"
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h. */
10610 #include <sys/types.h>
10611 #include <sys/socket.h>
10620 rm -f conftest.$ac_objext
10621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10622 (eval $ac_compile) 2>&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } &&
10626 { ac_try='test -s conftest.$ac_objext'
10627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10628 (eval $ac_try) 2>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; }; then
10632 ba_cv_header_socklen_t=yes
10634 echo "$as_me: failed program was:" >&5
10635 sed 's/^/| /' conftest.$ac_ext >&5
10637 ba_cv_header_socklen_t=no
10639 rm -f conftest.$ac_objext conftest.$ac_ext
10641 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10642 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10643 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10644 #define HAVE_SOCKLEN_T 1
10648 echo "$as_me:$LINENO: checking for bigendian" >&5
10649 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10650 if test "${ba_cv_bigendian+set}" = set; then
10651 echo $ECHO_N "(cached) $ECHO_C" >&6
10653 if test "$cross_compiling" = yes; then
10656 cat >conftest.$ac_ext <<_ACEOF
10657 #line $LINENO "configure"
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h. */
10663 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10665 rm -f conftest$ac_exeext
10666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10667 (eval $ac_link) 2>&5
10669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10672 (eval $ac_try) 2>&5
10674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10675 (exit $ac_status); }; }; then
10676 ba_cv_bigendian=yes
10678 echo "$as_me: program exited with status $ac_status" >&5
10679 echo "$as_me: failed program was:" >&5
10680 sed 's/^/| /' conftest.$ac_ext >&5
10682 ( exit $ac_status )
10685 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10688 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10689 echo "${ECHO_T}$ba_cv_bigendian" >&6
10690 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10691 #define HAVE_BIGENDIAN 1
10696 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10697 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10698 if test "${ac_cv_c_const+set}" = set; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10701 cat >conftest.$ac_ext <<_ACEOF
10702 #line $LINENO "configure"
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h. */
10712 /* FIXME: Include the comments suggested by Paul. */
10713 #ifndef __cplusplus
10714 /* Ultrix mips cc rejects this. */
10715 typedef int charset[2];
10717 /* SunOS 4.1.1 cc rejects this. */
10718 char const *const *ccp;
10720 /* NEC SVR4.0.2 mips cc rejects this. */
10721 struct point {int x, y;};
10722 static struct point const zero = {0,0};
10723 /* AIX XL C 1.02.0.0 rejects this.
10724 It does not let you subtract one const X* pointer from another in
10725 an arm of an if-expression whose if-part is not a constant
10727 const char *g = "string";
10728 ccp = &g + (g ? g-g : 0);
10729 /* HPUX 7.0 cc rejects these. */
10732 ccp = (char const *const *) p;
10733 { /* SCO 3.2v4 cc rejects this. */
10735 char const *s = 0 ? (char *) 0 : (char const *) 0;
10739 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10740 int x[] = {25, 17};
10741 const int *foo = &x[0];
10744 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10745 typedef const int *iptr;
10749 { /* AIX XL C 1.02.0.0 rejects this saying
10750 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10751 struct s { int j; const int *ap[3]; };
10752 struct s *b; b->j = 5;
10754 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10755 const int foo = 10;
10763 rm -f conftest.$ac_objext
10764 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10765 (eval $ac_compile) 2>&5
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } &&
10769 { ac_try='test -s conftest.$ac_objext'
10770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10777 echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10782 rm -f conftest.$ac_objext conftest.$ac_ext
10784 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10785 echo "${ECHO_T}$ac_cv_c_const" >&6
10786 if test $ac_cv_c_const = no; then
10788 cat >>confdefs.h <<\_ACEOF
10796 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10797 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10799 # The order of these tests is important.
10800 cat >conftest.$ac_ext <<_ACEOF
10801 #line $LINENO "configure"
10804 cat confdefs.h >>conftest.$ac_ext
10805 cat >>conftest.$ac_ext <<_ACEOF
10806 /* end confdefs.h. */
10807 #include <sys/statvfs.h>
10808 #include <sys/fstyp.h>
10810 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10811 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10813 grep -v '^ *+' conftest.er1 >conftest.err
10815 cat conftest.err >&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } >/dev/null; then
10818 if test -s conftest.err; then
10819 ac_cpp_err=$ac_c_preproc_warn_flag
10826 if test -z "$ac_cpp_err"; then
10827 cat >>confdefs.h <<\_ACEOF
10828 #define FSTYPE_STATVFS 1
10832 echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10837 rm -f conftest.err conftest.$ac_ext
10838 if test $fstype = no; then
10839 cat >conftest.$ac_ext <<_ACEOF
10840 #line $LINENO "configure"
10843 cat confdefs.h >>conftest.$ac_ext
10844 cat >>conftest.$ac_ext <<_ACEOF
10845 /* end confdefs.h. */
10846 #include <sys/statfs.h>
10847 #include <sys/fstyp.h>
10849 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10850 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10852 grep -v '^ *+' conftest.er1 >conftest.err
10854 cat conftest.err >&5
10855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856 (exit $ac_status); } >/dev/null; then
10857 if test -s conftest.err; then
10858 ac_cpp_err=$ac_c_preproc_warn_flag
10865 if test -z "$ac_cpp_err"; then
10866 cat >>confdefs.h <<\_ACEOF
10867 #define FSTYPE_USG_STATFS 1
10871 echo "$as_me: failed program was:" >&5
10872 sed 's/^/| /' conftest.$ac_ext >&5
10876 rm -f conftest.err conftest.$ac_ext
10878 if test $fstype = no; then
10879 cat >conftest.$ac_ext <<_ACEOF
10880 #line $LINENO "configure"
10883 cat confdefs.h >>conftest.$ac_ext
10884 cat >>conftest.$ac_ext <<_ACEOF
10885 /* end confdefs.h. */
10886 #include <sys/statfs.h>
10887 #include <sys/vmount.h>
10889 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10892 grep -v '^ *+' conftest.er1 >conftest.err
10894 cat conftest.err >&5
10895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10896 (exit $ac_status); } >/dev/null; then
10897 if test -s conftest.err; then
10898 ac_cpp_err=$ac_c_preproc_warn_flag
10905 if test -z "$ac_cpp_err"; then
10906 cat >>confdefs.h <<\_ACEOF
10907 #define FSTYPE_AIX_STATFS 1
10911 echo "$as_me: failed program was:" >&5
10912 sed 's/^/| /' conftest.$ac_ext >&5
10916 rm -f conftest.err conftest.$ac_ext
10918 if test $fstype = no; then
10919 cat >conftest.$ac_ext <<_ACEOF
10920 #line $LINENO "configure"
10923 cat confdefs.h >>conftest.$ac_ext
10924 cat >>conftest.$ac_ext <<_ACEOF
10925 /* end confdefs.h. */
10926 #include <mntent.h>
10928 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10929 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10931 grep -v '^ *+' conftest.er1 >conftest.err
10933 cat conftest.err >&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } >/dev/null; then
10936 if test -s conftest.err; then
10937 ac_cpp_err=$ac_c_preproc_warn_flag
10944 if test -z "$ac_cpp_err"; then
10945 cat >>confdefs.h <<\_ACEOF
10946 #define FSTYPE_MNTENT 1
10950 echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.$ac_ext >&5
10955 rm -f conftest.err conftest.$ac_ext
10957 if test $fstype = no; then
10958 cat >conftest.$ac_ext <<_ACEOF
10959 #line $LINENO "configure"
10962 cat confdefs.h >>conftest.$ac_ext
10963 cat >>conftest.$ac_ext <<_ACEOF
10964 /* end confdefs.h. */
10965 #include <sys/mount.h>
10968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10969 $EGREP "f_type;" >/dev/null 2>&1; then
10970 cat >>confdefs.h <<\_ACEOF
10971 #define FSTYPE_STATFS 1
10978 if test $fstype = no; then
10979 cat >conftest.$ac_ext <<_ACEOF
10980 #line $LINENO "configure"
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h. */
10986 #include <sys/mount.h>
10987 #include <sys/fs_types.h>
10989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10992 grep -v '^ *+' conftest.er1 >conftest.err
10994 cat conftest.err >&5
10995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996 (exit $ac_status); } >/dev/null; then
10997 if test -s conftest.err; then
10998 ac_cpp_err=$ac_c_preproc_warn_flag
11005 if test -z "$ac_cpp_err"; then
11006 cat >>confdefs.h <<\_ACEOF
11007 #define FSTYPE_GETMNT 1
11011 echo "$as_me: failed program was:" >&5
11012 sed 's/^/| /' conftest.$ac_ext >&5
11016 rm -f conftest.err conftest.$ac_ext
11018 echo "$as_me:$LINENO: result: $fstype" >&5
11019 echo "${ECHO_T}$fstype" >&6
11021 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11022 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11023 if test "${ac_cv_type_signal+set}" = set; then
11024 echo $ECHO_N "(cached) $ECHO_C" >&6
11026 cat >conftest.$ac_ext <<_ACEOF
11027 #line $LINENO "configure"
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h. */
11033 #include <sys/types.h>
11034 #include <signal.h>
11039 extern "C" void (*signal (int, void (*)(int)))(int);
11041 void (*signal ()) ();
11052 rm -f conftest.$ac_objext
11053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11054 (eval $ac_compile) 2>&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } &&
11058 { ac_try='test -s conftest.$ac_objext'
11059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11060 (eval $ac_try) 2>&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063 (exit $ac_status); }; }; then
11064 ac_cv_type_signal=void
11066 echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11069 ac_cv_type_signal=int
11071 rm -f conftest.$ac_objext conftest.$ac_ext
11073 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11074 echo "${ECHO_T}$ac_cv_type_signal" >&6
11076 cat >>confdefs.h <<_ACEOF
11077 #define RETSIGTYPE $ac_cv_type_signal
11082 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11083 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11084 if test "${bash_cv_signal_vintage+set}" = set; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11088 cat >conftest.$ac_ext <<_ACEOF
11089 #line $LINENO "configure"
11092 cat confdefs.h >>conftest.$ac_ext
11093 cat >>conftest.$ac_ext <<_ACEOF
11094 /* end confdefs.h. */
11095 #include <signal.h>
11101 struct sigaction sa;
11102 sigemptyset(&ss); sigsuspend(&ss);
11103 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11104 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11110 rm -f conftest.$ac_objext conftest$ac_exeext
11111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11112 (eval $ac_link) 2>&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); } &&
11116 { ac_try='test -s conftest$ac_exeext'
11117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11118 (eval $ac_try) 2>&5
11120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11121 (exit $ac_status); }; }; then
11122 bash_cv_signal_vintage=posix
11124 echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11128 cat >conftest.$ac_ext <<_ACEOF
11129 #line $LINENO "configure"
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h. */
11135 #include <signal.h>
11140 int mask = sigmask(SIGINT);
11141 sigsetmask(mask); sigblock(mask); sigpause(mask);
11147 rm -f conftest.$ac_objext conftest$ac_exeext
11148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11149 (eval $ac_link) 2>&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); } &&
11153 { ac_try='test -s conftest$ac_exeext'
11154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11155 (eval $ac_try) 2>&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); }; }; then
11159 bash_cv_signal_vintage=4.2bsd
11161 echo "$as_me: failed program was:" >&5
11162 sed 's/^/| /' conftest.$ac_ext >&5
11165 cat >conftest.$ac_ext <<_ACEOF
11166 #line $LINENO "configure"
11169 cat confdefs.h >>conftest.$ac_ext
11170 cat >>conftest.$ac_ext <<_ACEOF
11171 /* end confdefs.h. */
11173 #include <signal.h>
11174 RETSIGTYPE foo() { }
11179 int mask = sigmask(SIGINT);
11180 sigset(SIGINT, foo); sigrelse(SIGINT);
11181 sighold(SIGINT); sigpause(SIGINT);
11187 rm -f conftest.$ac_objext conftest$ac_exeext
11188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11189 (eval $ac_link) 2>&5
11191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11192 (exit $ac_status); } &&
11193 { ac_try='test -s conftest$ac_exeext'
11194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11195 (eval $ac_try) 2>&5
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }; }; then
11199 bash_cv_signal_vintage=svr3
11201 echo "$as_me: failed program was:" >&5
11202 sed 's/^/| /' conftest.$ac_ext >&5
11204 bash_cv_signal_vintage=v7
11207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11217 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11218 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11219 if test "$bash_cv_signal_vintage" = posix; then
11220 cat >>confdefs.h <<\_ACEOF
11221 #define HAVE_POSIX_SIGNALS 1
11224 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11225 cat >>confdefs.h <<\_ACEOF
11226 #define HAVE_BSD_SIGNALS 1
11229 elif test "$bash_cv_signal_vintage" = svr3; then
11230 cat >>confdefs.h <<\_ACEOF
11231 #define HAVE_USG_SIGHOLD 1
11236 echo "$as_me:$LINENO: checking for mode_t" >&5
11237 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11238 if test "${ac_cv_type_mode_t+set}" = set; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11241 cat >conftest.$ac_ext <<_ACEOF
11242 #line $LINENO "configure"
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h. */
11248 $ac_includes_default
11254 if (sizeof (mode_t))
11260 rm -f conftest.$ac_objext
11261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11262 (eval $ac_compile) 2>&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
11266 { ac_try='test -s conftest.$ac_objext'
11267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11268 (eval $ac_try) 2>&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); }; }; then
11272 ac_cv_type_mode_t=yes
11274 echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11277 ac_cv_type_mode_t=no
11279 rm -f conftest.$ac_objext conftest.$ac_ext
11281 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11282 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11283 if test $ac_cv_type_mode_t = yes; then
11287 cat >>confdefs.h <<_ACEOF
11293 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11294 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11295 if test "${ac_cv_type_uid_t+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11298 cat >conftest.$ac_ext <<_ACEOF
11299 #line $LINENO "configure"
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h. */
11305 #include <sys/types.h>
11308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11309 $EGREP "uid_t" >/dev/null 2>&1; then
11310 ac_cv_type_uid_t=yes
11312 ac_cv_type_uid_t=no
11317 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11318 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11319 if test $ac_cv_type_uid_t = no; then
11321 cat >>confdefs.h <<\_ACEOF
11326 cat >>confdefs.h <<\_ACEOF
11332 echo "$as_me:$LINENO: checking for size_t" >&5
11333 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11334 if test "${ac_cv_type_size_t+set}" = set; then
11335 echo $ECHO_N "(cached) $ECHO_C" >&6
11337 cat >conftest.$ac_ext <<_ACEOF
11338 #line $LINENO "configure"
11341 cat confdefs.h >>conftest.$ac_ext
11342 cat >>conftest.$ac_ext <<_ACEOF
11343 /* end confdefs.h. */
11344 $ac_includes_default
11350 if (sizeof (size_t))
11356 rm -f conftest.$ac_objext
11357 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11358 (eval $ac_compile) 2>&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } &&
11362 { ac_try='test -s conftest.$ac_objext'
11363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11364 (eval $ac_try) 2>&5
11366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367 (exit $ac_status); }; }; then
11368 ac_cv_type_size_t=yes
11370 echo "$as_me: failed program was:" >&5
11371 sed 's/^/| /' conftest.$ac_ext >&5
11373 ac_cv_type_size_t=no
11375 rm -f conftest.$ac_objext conftest.$ac_ext
11377 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11378 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11379 if test $ac_cv_type_size_t = yes; then
11383 cat >>confdefs.h <<_ACEOF
11384 #define size_t unsigned
11389 echo "$as_me:$LINENO: checking for pid_t" >&5
11390 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11391 if test "${ac_cv_type_pid_t+set}" = set; then
11392 echo $ECHO_N "(cached) $ECHO_C" >&6
11394 cat >conftest.$ac_ext <<_ACEOF
11395 #line $LINENO "configure"
11398 cat confdefs.h >>conftest.$ac_ext
11399 cat >>conftest.$ac_ext <<_ACEOF
11400 /* end confdefs.h. */
11401 $ac_includes_default
11407 if (sizeof (pid_t))
11413 rm -f conftest.$ac_objext
11414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11415 (eval $ac_compile) 2>&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); } &&
11419 { ac_try='test -s conftest.$ac_objext'
11420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421 (eval $ac_try) 2>&5
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }; then
11425 ac_cv_type_pid_t=yes
11427 echo "$as_me: failed program was:" >&5
11428 sed 's/^/| /' conftest.$ac_ext >&5
11430 ac_cv_type_pid_t=no
11432 rm -f conftest.$ac_objext conftest.$ac_ext
11434 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11435 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11436 if test $ac_cv_type_pid_t = yes; then
11440 cat >>confdefs.h <<_ACEOF
11446 echo "$as_me:$LINENO: checking for off_t" >&5
11447 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11448 if test "${ac_cv_type_off_t+set}" = set; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 cat >conftest.$ac_ext <<_ACEOF
11452 #line $LINENO "configure"
11455 cat confdefs.h >>conftest.$ac_ext
11456 cat >>conftest.$ac_ext <<_ACEOF
11457 /* end confdefs.h. */
11458 $ac_includes_default
11464 if (sizeof (off_t))
11470 rm -f conftest.$ac_objext
11471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11472 (eval $ac_compile) 2>&5
11474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11475 (exit $ac_status); } &&
11476 { ac_try='test -s conftest.$ac_objext'
11477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11478 (eval $ac_try) 2>&5
11480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11481 (exit $ac_status); }; }; then
11482 ac_cv_type_off_t=yes
11484 echo "$as_me: failed program was:" >&5
11485 sed 's/^/| /' conftest.$ac_ext >&5
11487 ac_cv_type_off_t=no
11489 rm -f conftest.$ac_objext conftest.$ac_ext
11491 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11492 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11493 if test $ac_cv_type_off_t = yes; then
11497 cat >>confdefs.h <<_ACEOF
11503 echo "$as_me:$LINENO: checking for ino_t" >&5
11504 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11505 if test "${ac_cv_type_ino_t+set}" = set; then
11506 echo $ECHO_N "(cached) $ECHO_C" >&6
11508 cat >conftest.$ac_ext <<_ACEOF
11509 #line $LINENO "configure"
11512 cat confdefs.h >>conftest.$ac_ext
11513 cat >>conftest.$ac_ext <<_ACEOF
11514 /* end confdefs.h. */
11515 $ac_includes_default
11521 if (sizeof (ino_t))
11527 rm -f conftest.$ac_objext
11528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11529 (eval $ac_compile) 2>&5
11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11532 (exit $ac_status); } &&
11533 { ac_try='test -s conftest.$ac_objext'
11534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535 (eval $ac_try) 2>&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; }; then
11539 ac_cv_type_ino_t=yes
11541 echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11544 ac_cv_type_ino_t=no
11546 rm -f conftest.$ac_objext conftest.$ac_ext
11548 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11549 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11550 if test $ac_cv_type_ino_t = yes; then
11554 cat >>confdefs.h <<_ACEOF
11555 #define ino_t unsigned long
11560 echo "$as_me:$LINENO: checking for dev_t" >&5
11561 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11562 if test "${ac_cv_type_dev_t+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 cat >conftest.$ac_ext <<_ACEOF
11566 #line $LINENO "configure"
11569 cat confdefs.h >>conftest.$ac_ext
11570 cat >>conftest.$ac_ext <<_ACEOF
11571 /* end confdefs.h. */
11572 $ac_includes_default
11578 if (sizeof (dev_t))
11584 rm -f conftest.$ac_objext
11585 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11586 (eval $ac_compile) 2>&5
11588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); } &&
11590 { ac_try='test -s conftest.$ac_objext'
11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 ac_cv_type_dev_t=yes
11598 echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.$ac_ext >&5
11601 ac_cv_type_dev_t=no
11603 rm -f conftest.$ac_objext conftest.$ac_ext
11605 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11606 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11607 if test $ac_cv_type_dev_t = yes; then
11611 cat >>confdefs.h <<_ACEOF
11612 #define dev_t unsigned long
11617 echo "$as_me:$LINENO: checking for daddr_t" >&5
11618 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11619 if test "${ac_cv_type_daddr_t+set}" = set; then
11620 echo $ECHO_N "(cached) $ECHO_C" >&6
11622 cat >conftest.$ac_ext <<_ACEOF
11623 #line $LINENO "configure"
11626 cat confdefs.h >>conftest.$ac_ext
11627 cat >>conftest.$ac_ext <<_ACEOF
11628 /* end confdefs.h. */
11629 $ac_includes_default
11635 if (sizeof (daddr_t))
11641 rm -f conftest.$ac_objext
11642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11643 (eval $ac_compile) 2>&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } &&
11647 { ac_try='test -s conftest.$ac_objext'
11648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11649 (eval $ac_try) 2>&5
11651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11652 (exit $ac_status); }; }; then
11653 ac_cv_type_daddr_t=yes
11655 echo "$as_me: failed program was:" >&5
11656 sed 's/^/| /' conftest.$ac_ext >&5
11658 ac_cv_type_daddr_t=no
11660 rm -f conftest.$ac_objext conftest.$ac_ext
11662 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11663 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11664 if test $ac_cv_type_daddr_t = yes; then
11668 cat >>confdefs.h <<_ACEOF
11669 #define daddr_t long
11674 echo "$as_me:$LINENO: checking for major_t" >&5
11675 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11676 if test "${ac_cv_type_major_t+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 cat >conftest.$ac_ext <<_ACEOF
11680 #line $LINENO "configure"
11683 cat confdefs.h >>conftest.$ac_ext
11684 cat >>conftest.$ac_ext <<_ACEOF
11685 /* end confdefs.h. */
11686 $ac_includes_default
11692 if (sizeof (major_t))
11698 rm -f conftest.$ac_objext
11699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11700 (eval $ac_compile) 2>&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } &&
11704 { ac_try='test -s conftest.$ac_objext'
11705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11706 (eval $ac_try) 2>&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; }; then
11710 ac_cv_type_major_t=yes
11712 echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11715 ac_cv_type_major_t=no
11717 rm -f conftest.$ac_objext conftest.$ac_ext
11719 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11720 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11721 if test $ac_cv_type_major_t = yes; then
11725 cat >>confdefs.h <<_ACEOF
11726 #define major_t int
11731 echo "$as_me:$LINENO: checking for minor_t" >&5
11732 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11733 if test "${ac_cv_type_minor_t+set}" = set; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11736 cat >conftest.$ac_ext <<_ACEOF
11737 #line $LINENO "configure"
11740 cat confdefs.h >>conftest.$ac_ext
11741 cat >>conftest.$ac_ext <<_ACEOF
11742 /* end confdefs.h. */
11743 $ac_includes_default
11749 if (sizeof (minor_t))
11755 rm -f conftest.$ac_objext
11756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11757 (eval $ac_compile) 2>&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
11761 { ac_try='test -s conftest.$ac_objext'
11762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763 (eval $ac_try) 2>&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; }; then
11767 ac_cv_type_minor_t=yes
11769 echo "$as_me: failed program was:" >&5
11770 sed 's/^/| /' conftest.$ac_ext >&5
11772 ac_cv_type_minor_t=no
11774 rm -f conftest.$ac_objext conftest.$ac_ext
11776 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11777 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11778 if test $ac_cv_type_minor_t = yes; then
11782 cat >>confdefs.h <<_ACEOF
11783 #define minor_t int
11788 echo "$as_me:$LINENO: checking for ssize_t" >&5
11789 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11790 if test "${ac_cv_type_ssize_t+set}" = set; then
11791 echo $ECHO_N "(cached) $ECHO_C" >&6
11793 cat >conftest.$ac_ext <<_ACEOF
11794 #line $LINENO "configure"
11797 cat confdefs.h >>conftest.$ac_ext
11798 cat >>conftest.$ac_ext <<_ACEOF
11799 /* end confdefs.h. */
11800 $ac_includes_default
11806 if (sizeof (ssize_t))
11812 rm -f conftest.$ac_objext
11813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11814 (eval $ac_compile) 2>&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); } &&
11818 { ac_try='test -s conftest.$ac_objext'
11819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11820 (eval $ac_try) 2>&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); }; }; then
11824 ac_cv_type_ssize_t=yes
11826 echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.$ac_ext >&5
11829 ac_cv_type_ssize_t=no
11831 rm -f conftest.$ac_objext conftest.$ac_ext
11833 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11834 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11835 if test $ac_cv_type_ssize_t = yes; then
11839 cat >>confdefs.h <<_ACEOF
11840 #define ssize_t int
11845 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11846 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11847 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11850 cat >conftest.$ac_ext <<_ACEOF
11851 #line $LINENO "configure"
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h. */
11857 $ac_includes_default
11861 static struct stat ac_aggr;
11862 if (ac_aggr.st_blocks)
11868 rm -f conftest.$ac_objext
11869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11870 (eval $ac_compile) 2>&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } &&
11874 { ac_try='test -s conftest.$ac_objext'
11875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11876 (eval $ac_try) 2>&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 ac_cv_member_struct_stat_st_blocks=yes
11882 echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11885 cat >conftest.$ac_ext <<_ACEOF
11886 #line $LINENO "configure"
11889 cat confdefs.h >>conftest.$ac_ext
11890 cat >>conftest.$ac_ext <<_ACEOF
11891 /* end confdefs.h. */
11892 $ac_includes_default
11896 static struct stat ac_aggr;
11897 if (sizeof ac_aggr.st_blocks)
11903 rm -f conftest.$ac_objext
11904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11905 (eval $ac_compile) 2>&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
11909 { ac_try='test -s conftest.$ac_objext'
11910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11911 (eval $ac_try) 2>&5
11913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11914 (exit $ac_status); }; }; then
11915 ac_cv_member_struct_stat_st_blocks=yes
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11920 ac_cv_member_struct_stat_st_blocks=no
11922 rm -f conftest.$ac_objext conftest.$ac_ext
11924 rm -f conftest.$ac_objext conftest.$ac_ext
11926 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11927 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11928 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11930 cat >>confdefs.h <<_ACEOF
11931 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11935 cat >>confdefs.h <<\_ACEOF
11936 #define HAVE_ST_BLOCKS 1
11940 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11945 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11946 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11947 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 cat >conftest.$ac_ext <<_ACEOF
11951 #line $LINENO "configure"
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h. */
11957 $ac_includes_default
11961 static struct stat ac_aggr;
11962 if (ac_aggr.st_rdev)
11968 rm -f conftest.$ac_objext
11969 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11970 (eval $ac_compile) 2>&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
11974 { ac_try='test -s conftest.$ac_objext'
11975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976 (eval $ac_try) 2>&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); }; }; then
11980 ac_cv_member_struct_stat_st_rdev=yes
11982 echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11985 cat >conftest.$ac_ext <<_ACEOF
11986 #line $LINENO "configure"
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h. */
11992 $ac_includes_default
11996 static struct stat ac_aggr;
11997 if (sizeof ac_aggr.st_rdev)
12003 rm -f conftest.$ac_objext
12004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12005 (eval $ac_compile) 2>&5
12007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008 (exit $ac_status); } &&
12009 { ac_try='test -s conftest.$ac_objext'
12010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12011 (eval $ac_try) 2>&5
12013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12014 (exit $ac_status); }; }; then
12015 ac_cv_member_struct_stat_st_rdev=yes
12017 echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12020 ac_cv_member_struct_stat_st_rdev=no
12022 rm -f conftest.$ac_objext conftest.$ac_ext
12024 rm -f conftest.$ac_objext conftest.$ac_ext
12026 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12027 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12028 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12030 cat >>confdefs.h <<_ACEOF
12031 #define HAVE_STRUCT_STAT_ST_RDEV 1
12035 cat >>confdefs.h <<\_ACEOF
12036 #define HAVE_ST_RDEV 1
12042 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12043 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12044 if test "${ac_cv_struct_tm+set}" = set; then
12045 echo $ECHO_N "(cached) $ECHO_C" >&6
12047 cat >conftest.$ac_ext <<_ACEOF
12048 #line $LINENO "configure"
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h. */
12054 #include <sys/types.h>
12060 struct tm *tp; tp->tm_sec;
12065 rm -f conftest.$ac_objext
12066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12067 (eval $ac_compile) 2>&5
12069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12070 (exit $ac_status); } &&
12071 { ac_try='test -s conftest.$ac_objext'
12072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12073 (eval $ac_try) 2>&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; }; then
12077 ac_cv_struct_tm=time.h
12079 echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12082 ac_cv_struct_tm=sys/time.h
12084 rm -f conftest.$ac_objext conftest.$ac_ext
12086 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12087 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12088 if test $ac_cv_struct_tm = sys/time.h; then
12090 cat >>confdefs.h <<\_ACEOF
12091 #define TM_IN_SYS_TIME 1
12096 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12097 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12098 if test "${ac_cv_c_const+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12101 cat >conftest.$ac_ext <<_ACEOF
12102 #line $LINENO "configure"
12105 cat confdefs.h >>conftest.$ac_ext
12106 cat >>conftest.$ac_ext <<_ACEOF
12107 /* end confdefs.h. */
12112 /* FIXME: Include the comments suggested by Paul. */
12113 #ifndef __cplusplus
12114 /* Ultrix mips cc rejects this. */
12115 typedef int charset[2];
12117 /* SunOS 4.1.1 cc rejects this. */
12118 char const *const *ccp;
12120 /* NEC SVR4.0.2 mips cc rejects this. */
12121 struct point {int x, y;};
12122 static struct point const zero = {0,0};
12123 /* AIX XL C 1.02.0.0 rejects this.
12124 It does not let you subtract one const X* pointer from another in
12125 an arm of an if-expression whose if-part is not a constant
12127 const char *g = "string";
12128 ccp = &g + (g ? g-g : 0);
12129 /* HPUX 7.0 cc rejects these. */
12132 ccp = (char const *const *) p;
12133 { /* SCO 3.2v4 cc rejects this. */
12135 char const *s = 0 ? (char *) 0 : (char const *) 0;
12139 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12140 int x[] = {25, 17};
12141 const int *foo = &x[0];
12144 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12145 typedef const int *iptr;
12149 { /* AIX XL C 1.02.0.0 rejects this saying
12150 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12151 struct s { int j; const int *ap[3]; };
12152 struct s *b; b->j = 5;
12154 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12155 const int foo = 10;
12163 rm -f conftest.$ac_objext
12164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12165 (eval $ac_compile) 2>&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); } &&
12169 { ac_try='test -s conftest.$ac_objext'
12170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12171 (eval $ac_try) 2>&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; }; then
12177 echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12182 rm -f conftest.$ac_objext conftest.$ac_ext
12184 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12185 echo "${ECHO_T}$ac_cv_c_const" >&6
12186 if test $ac_cv_c_const = no; then
12188 cat >>confdefs.h <<\_ACEOF
12196 echo "$as_me:$LINENO: checking for char" >&5
12197 echo $ECHO_N "checking for char... $ECHO_C" >&6
12198 if test "${ac_cv_type_char+set}" = set; then
12199 echo $ECHO_N "(cached) $ECHO_C" >&6
12201 cat >conftest.$ac_ext <<_ACEOF
12202 #line $LINENO "configure"
12205 cat confdefs.h >>conftest.$ac_ext
12206 cat >>conftest.$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12208 $ac_includes_default
12220 rm -f conftest.$ac_objext
12221 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12222 (eval $ac_compile) 2>&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } &&
12226 { ac_try='test -s conftest.$ac_objext'
12227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12228 (eval $ac_try) 2>&5
12230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12231 (exit $ac_status); }; }; then
12232 ac_cv_type_char=yes
12234 echo "$as_me: failed program was:" >&5
12235 sed 's/^/| /' conftest.$ac_ext >&5
12239 rm -f conftest.$ac_objext conftest.$ac_ext
12241 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12242 echo "${ECHO_T}$ac_cv_type_char" >&6
12244 echo "$as_me:$LINENO: checking size of char" >&5
12245 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12246 if test "${ac_cv_sizeof_char+set}" = set; then
12247 echo $ECHO_N "(cached) $ECHO_C" >&6
12249 if test "$ac_cv_type_char" = yes; then
12250 # The cast to unsigned long works around a bug in the HP C Compiler
12251 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12252 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12253 # This bug is HP SR number 8606223364.
12254 if test "$cross_compiling" = yes; then
12255 # Depending upon the size, compute the lo and hi bounds.
12256 cat >conftest.$ac_ext <<_ACEOF
12257 #line $LINENO "configure"
12260 cat confdefs.h >>conftest.$ac_ext
12261 cat >>conftest.$ac_ext <<_ACEOF
12262 /* end confdefs.h. */
12263 $ac_includes_default
12267 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12274 rm -f conftest.$ac_objext
12275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12276 (eval $ac_compile) 2>&5
12278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12279 (exit $ac_status); } &&
12280 { ac_try='test -s conftest.$ac_objext'
12281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12282 (eval $ac_try) 2>&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); }; }; then
12288 cat >conftest.$ac_ext <<_ACEOF
12289 #line $LINENO "configure"
12292 cat confdefs.h >>conftest.$ac_ext
12293 cat >>conftest.$ac_ext <<_ACEOF
12294 /* end confdefs.h. */
12295 $ac_includes_default
12299 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12306 rm -f conftest.$ac_objext
12307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12308 (eval $ac_compile) 2>&5
12310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12311 (exit $ac_status); } &&
12312 { ac_try='test -s conftest.$ac_objext'
12313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12314 (eval $ac_try) 2>&5
12316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317 (exit $ac_status); }; }; then
12318 ac_hi=$ac_mid; break
12320 echo "$as_me: failed program was:" >&5
12321 sed 's/^/| /' conftest.$ac_ext >&5
12323 ac_lo=`expr $ac_mid + 1`
12324 if test $ac_lo -le $ac_mid; then
12328 ac_mid=`expr 2 '*' $ac_mid + 1`
12330 rm -f conftest.$ac_objext conftest.$ac_ext
12333 echo "$as_me: failed program was:" >&5
12334 sed 's/^/| /' conftest.$ac_ext >&5
12336 cat >conftest.$ac_ext <<_ACEOF
12337 #line $LINENO "configure"
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12343 $ac_includes_default
12347 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12354 rm -f conftest.$ac_objext
12355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12356 (eval $ac_compile) 2>&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } &&
12360 { ac_try='test -s conftest.$ac_objext'
12361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362 (eval $ac_try) 2>&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; }; then
12368 cat >conftest.$ac_ext <<_ACEOF
12369 #line $LINENO "configure"
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h. */
12375 $ac_includes_default
12379 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12386 rm -f conftest.$ac_objext
12387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12388 (eval $ac_compile) 2>&5
12390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12391 (exit $ac_status); } &&
12392 { ac_try='test -s conftest.$ac_objext'
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; }; then
12398 ac_lo=$ac_mid; break
12400 echo "$as_me: failed program was:" >&5
12401 sed 's/^/| /' conftest.$ac_ext >&5
12403 ac_hi=`expr '(' $ac_mid ')' - 1`
12404 if test $ac_mid -le $ac_hi; then
12408 ac_mid=`expr 2 '*' $ac_mid`
12410 rm -f conftest.$ac_objext conftest.$ac_ext
12413 echo "$as_me: failed program was:" >&5
12414 sed 's/^/| /' conftest.$ac_ext >&5
12418 rm -f conftest.$ac_objext conftest.$ac_ext
12420 rm -f conftest.$ac_objext conftest.$ac_ext
12421 # Binary search between lo and hi bounds.
12422 while test "x$ac_lo" != "x$ac_hi"; do
12423 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12424 cat >conftest.$ac_ext <<_ACEOF
12425 #line $LINENO "configure"
12428 cat confdefs.h >>conftest.$ac_ext
12429 cat >>conftest.$ac_ext <<_ACEOF
12430 /* end confdefs.h. */
12431 $ac_includes_default
12435 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12442 rm -f conftest.$ac_objext
12443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12444 (eval $ac_compile) 2>&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -s conftest.$ac_objext'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; }; then
12456 echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.$ac_ext >&5
12459 ac_lo=`expr '(' $ac_mid ')' + 1`
12461 rm -f conftest.$ac_objext conftest.$ac_ext
12464 ?*) ac_cv_sizeof_char=$ac_lo;;
12465 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12466 See \`config.log' for more details." >&5
12467 echo "$as_me: error: cannot compute sizeof (char), 77
12468 See \`config.log' for more details." >&2;}
12469 { (exit 1); exit 1; }; } ;;
12472 if test "$cross_compiling" = yes; then
12473 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12474 See \`config.log' for more details." >&5
12475 echo "$as_me: error: cannot run test program while cross compiling
12476 See \`config.log' for more details." >&2;}
12477 { (exit 1); exit 1; }; }
12479 cat >conftest.$ac_ext <<_ACEOF
12480 #line $LINENO "configure"
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h. */
12486 $ac_includes_default
12487 long longval () { return (long) (sizeof (char)); }
12488 unsigned long ulongval () { return (long) (sizeof (char)); }
12490 #include <stdlib.h>
12495 FILE *f = fopen ("conftest.val", "w");
12498 if (((long) (sizeof (char))) < 0)
12500 long i = longval ();
12501 if (i != ((long) (sizeof (char))))
12503 fprintf (f, "%ld\n", i);
12507 unsigned long i = ulongval ();
12508 if (i != ((long) (sizeof (char))))
12510 fprintf (f, "%lu\n", i);
12512 exit (ferror (f) || fclose (f) != 0);
12518 rm -f conftest$ac_exeext
12519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12520 (eval $ac_link) 2>&5
12522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12523 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12525 (eval $ac_try) 2>&5
12527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12528 (exit $ac_status); }; }; then
12529 ac_cv_sizeof_char=`cat conftest.val`
12531 echo "$as_me: program exited with status $ac_status" >&5
12532 echo "$as_me: failed program was:" >&5
12533 sed 's/^/| /' conftest.$ac_ext >&5
12535 ( exit $ac_status )
12536 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12537 See \`config.log' for more details." >&5
12538 echo "$as_me: error: cannot compute sizeof (char), 77
12539 See \`config.log' for more details." >&2;}
12540 { (exit 1); exit 1; }; }
12542 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12547 ac_cv_sizeof_char=0
12550 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12551 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12552 cat >>confdefs.h <<_ACEOF
12553 #define SIZEOF_CHAR $ac_cv_sizeof_char
12557 echo "$as_me:$LINENO: checking for short int" >&5
12558 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12559 if test "${ac_cv_type_short_int+set}" = set; then
12560 echo $ECHO_N "(cached) $ECHO_C" >&6
12562 cat >conftest.$ac_ext <<_ACEOF
12563 #line $LINENO "configure"
12566 cat confdefs.h >>conftest.$ac_ext
12567 cat >>conftest.$ac_ext <<_ACEOF
12568 /* end confdefs.h. */
12569 $ac_includes_default
12573 if ((short int *) 0)
12575 if (sizeof (short int))
12581 rm -f conftest.$ac_objext
12582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12583 (eval $ac_compile) 2>&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } &&
12587 { ac_try='test -s conftest.$ac_objext'
12588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12589 (eval $ac_try) 2>&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; }; then
12593 ac_cv_type_short_int=yes
12595 echo "$as_me: failed program was:" >&5
12596 sed 's/^/| /' conftest.$ac_ext >&5
12598 ac_cv_type_short_int=no
12600 rm -f conftest.$ac_objext conftest.$ac_ext
12602 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12603 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12605 echo "$as_me:$LINENO: checking size of short int" >&5
12606 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12607 if test "${ac_cv_sizeof_short_int+set}" = set; then
12608 echo $ECHO_N "(cached) $ECHO_C" >&6
12610 if test "$ac_cv_type_short_int" = yes; then
12611 # The cast to unsigned long works around a bug in the HP C Compiler
12612 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12613 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12614 # This bug is HP SR number 8606223364.
12615 if test "$cross_compiling" = yes; then
12616 # Depending upon the size, compute the lo and hi bounds.
12617 cat >conftest.$ac_ext <<_ACEOF
12618 #line $LINENO "configure"
12621 cat confdefs.h >>conftest.$ac_ext
12622 cat >>conftest.$ac_ext <<_ACEOF
12623 /* end confdefs.h. */
12624 $ac_includes_default
12628 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12635 rm -f conftest.$ac_objext
12636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12637 (eval $ac_compile) 2>&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } &&
12641 { ac_try='test -s conftest.$ac_objext'
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; }; then
12649 cat >conftest.$ac_ext <<_ACEOF
12650 #line $LINENO "configure"
12653 cat confdefs.h >>conftest.$ac_ext
12654 cat >>conftest.$ac_ext <<_ACEOF
12655 /* end confdefs.h. */
12656 $ac_includes_default
12660 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12667 rm -f conftest.$ac_objext
12668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12669 (eval $ac_compile) 2>&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } &&
12673 { ac_try='test -s conftest.$ac_objext'
12674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12675 (eval $ac_try) 2>&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); }; }; then
12679 ac_hi=$ac_mid; break
12681 echo "$as_me: failed program was:" >&5
12682 sed 's/^/| /' conftest.$ac_ext >&5
12684 ac_lo=`expr $ac_mid + 1`
12685 if test $ac_lo -le $ac_mid; then
12689 ac_mid=`expr 2 '*' $ac_mid + 1`
12691 rm -f conftest.$ac_objext conftest.$ac_ext
12694 echo "$as_me: failed program was:" >&5
12695 sed 's/^/| /' conftest.$ac_ext >&5
12697 cat >conftest.$ac_ext <<_ACEOF
12698 #line $LINENO "configure"
12701 cat confdefs.h >>conftest.$ac_ext
12702 cat >>conftest.$ac_ext <<_ACEOF
12703 /* end confdefs.h. */
12704 $ac_includes_default
12708 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12715 rm -f conftest.$ac_objext
12716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12717 (eval $ac_compile) 2>&5
12719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720 (exit $ac_status); } &&
12721 { ac_try='test -s conftest.$ac_objext'
12722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12723 (eval $ac_try) 2>&5
12725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12726 (exit $ac_status); }; }; then
12729 cat >conftest.$ac_ext <<_ACEOF
12730 #line $LINENO "configure"
12733 cat confdefs.h >>conftest.$ac_ext
12734 cat >>conftest.$ac_ext <<_ACEOF
12735 /* end confdefs.h. */
12736 $ac_includes_default
12740 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12747 rm -f conftest.$ac_objext
12748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12749 (eval $ac_compile) 2>&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); } &&
12753 { ac_try='test -s conftest.$ac_objext'
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; }; then
12759 ac_lo=$ac_mid; break
12761 echo "$as_me: failed program was:" >&5
12762 sed 's/^/| /' conftest.$ac_ext >&5
12764 ac_hi=`expr '(' $ac_mid ')' - 1`
12765 if test $ac_mid -le $ac_hi; then
12769 ac_mid=`expr 2 '*' $ac_mid`
12771 rm -f conftest.$ac_objext conftest.$ac_ext
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12779 rm -f conftest.$ac_objext conftest.$ac_ext
12781 rm -f conftest.$ac_objext conftest.$ac_ext
12782 # Binary search between lo and hi bounds.
12783 while test "x$ac_lo" != "x$ac_hi"; do
12784 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12785 cat >conftest.$ac_ext <<_ACEOF
12786 #line $LINENO "configure"
12789 cat confdefs.h >>conftest.$ac_ext
12790 cat >>conftest.$ac_ext <<_ACEOF
12791 /* end confdefs.h. */
12792 $ac_includes_default
12796 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12803 rm -f conftest.$ac_objext
12804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12805 (eval $ac_compile) 2>&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } &&
12809 { ac_try='test -s conftest.$ac_objext'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; }; then
12817 echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12820 ac_lo=`expr '(' $ac_mid ')' + 1`
12822 rm -f conftest.$ac_objext conftest.$ac_ext
12825 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12826 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12827 See \`config.log' for more details." >&5
12828 echo "$as_me: error: cannot compute sizeof (short int), 77
12829 See \`config.log' for more details." >&2;}
12830 { (exit 1); exit 1; }; } ;;
12833 if test "$cross_compiling" = yes; then
12834 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12835 See \`config.log' for more details." >&5
12836 echo "$as_me: error: cannot run test program while cross compiling
12837 See \`config.log' for more details." >&2;}
12838 { (exit 1); exit 1; }; }
12840 cat >conftest.$ac_ext <<_ACEOF
12841 #line $LINENO "configure"
12844 cat confdefs.h >>conftest.$ac_ext
12845 cat >>conftest.$ac_ext <<_ACEOF
12846 /* end confdefs.h. */
12847 $ac_includes_default
12848 long longval () { return (long) (sizeof (short int)); }
12849 unsigned long ulongval () { return (long) (sizeof (short int)); }
12851 #include <stdlib.h>
12856 FILE *f = fopen ("conftest.val", "w");
12859 if (((long) (sizeof (short int))) < 0)
12861 long i = longval ();
12862 if (i != ((long) (sizeof (short int))))
12864 fprintf (f, "%ld\n", i);
12868 unsigned long i = ulongval ();
12869 if (i != ((long) (sizeof (short int))))
12871 fprintf (f, "%lu\n", i);
12873 exit (ferror (f) || fclose (f) != 0);
12879 rm -f conftest$ac_exeext
12880 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12881 (eval $ac_link) 2>&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; }; then
12890 ac_cv_sizeof_short_int=`cat conftest.val`
12892 echo "$as_me: program exited with status $ac_status" >&5
12893 echo "$as_me: failed program was:" >&5
12894 sed 's/^/| /' conftest.$ac_ext >&5
12896 ( exit $ac_status )
12897 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12898 See \`config.log' for more details." >&5
12899 echo "$as_me: error: cannot compute sizeof (short int), 77
12900 See \`config.log' for more details." >&2;}
12901 { (exit 1); exit 1; }; }
12903 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12908 ac_cv_sizeof_short_int=0
12911 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12912 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12913 cat >>confdefs.h <<_ACEOF
12914 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12918 echo "$as_me:$LINENO: checking for int" >&5
12919 echo $ECHO_N "checking for int... $ECHO_C" >&6
12920 if test "${ac_cv_type_int+set}" = set; then
12921 echo $ECHO_N "(cached) $ECHO_C" >&6
12923 cat >conftest.$ac_ext <<_ACEOF
12924 #line $LINENO "configure"
12927 cat confdefs.h >>conftest.$ac_ext
12928 cat >>conftest.$ac_ext <<_ACEOF
12929 /* end confdefs.h. */
12930 $ac_includes_default
12942 rm -f conftest.$ac_objext
12943 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12944 (eval $ac_compile) 2>&5
12946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12947 (exit $ac_status); } &&
12948 { ac_try='test -s conftest.$ac_objext'
12949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12950 (eval $ac_try) 2>&5
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); }; }; then
12956 echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.$ac_ext >&5
12961 rm -f conftest.$ac_objext conftest.$ac_ext
12963 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12964 echo "${ECHO_T}$ac_cv_type_int" >&6
12966 echo "$as_me:$LINENO: checking size of int" >&5
12967 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12968 if test "${ac_cv_sizeof_int+set}" = set; then
12969 echo $ECHO_N "(cached) $ECHO_C" >&6
12971 if test "$ac_cv_type_int" = yes; then
12972 # The cast to unsigned long works around a bug in the HP C Compiler
12973 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12974 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12975 # This bug is HP SR number 8606223364.
12976 if test "$cross_compiling" = yes; then
12977 # Depending upon the size, compute the lo and hi bounds.
12978 cat >conftest.$ac_ext <<_ACEOF
12979 #line $LINENO "configure"
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12985 $ac_includes_default
12989 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12996 rm -f conftest.$ac_objext
12997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12998 (eval $ac_compile) 2>&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } &&
13002 { ac_try='test -s conftest.$ac_objext'
13003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13004 (eval $ac_try) 2>&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); }; }; then
13010 cat >conftest.$ac_ext <<_ACEOF
13011 #line $LINENO "configure"
13014 cat confdefs.h >>conftest.$ac_ext
13015 cat >>conftest.$ac_ext <<_ACEOF
13016 /* end confdefs.h. */
13017 $ac_includes_default
13021 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13028 rm -f conftest.$ac_objext
13029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13030 (eval $ac_compile) 2>&5
13032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033 (exit $ac_status); } &&
13034 { ac_try='test -s conftest.$ac_objext'
13035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13036 (eval $ac_try) 2>&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); }; }; then
13040 ac_hi=$ac_mid; break
13042 echo "$as_me: failed program was:" >&5
13043 sed 's/^/| /' conftest.$ac_ext >&5
13045 ac_lo=`expr $ac_mid + 1`
13046 if test $ac_lo -le $ac_mid; then
13050 ac_mid=`expr 2 '*' $ac_mid + 1`
13052 rm -f conftest.$ac_objext conftest.$ac_ext
13055 echo "$as_me: failed program was:" >&5
13056 sed 's/^/| /' conftest.$ac_ext >&5
13058 cat >conftest.$ac_ext <<_ACEOF
13059 #line $LINENO "configure"
13062 cat confdefs.h >>conftest.$ac_ext
13063 cat >>conftest.$ac_ext <<_ACEOF
13064 /* end confdefs.h. */
13065 $ac_includes_default
13069 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13076 rm -f conftest.$ac_objext
13077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13078 (eval $ac_compile) 2>&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } &&
13082 { ac_try='test -s conftest.$ac_objext'
13083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13084 (eval $ac_try) 2>&5
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; }; then
13090 cat >conftest.$ac_ext <<_ACEOF
13091 #line $LINENO "configure"
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13097 $ac_includes_default
13101 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13108 rm -f conftest.$ac_objext
13109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13110 (eval $ac_compile) 2>&5
13112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); } &&
13114 { ac_try='test -s conftest.$ac_objext'
13115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13116 (eval $ac_try) 2>&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); }; }; then
13120 ac_lo=$ac_mid; break
13122 echo "$as_me: failed program was:" >&5
13123 sed 's/^/| /' conftest.$ac_ext >&5
13125 ac_hi=`expr '(' $ac_mid ')' - 1`
13126 if test $ac_mid -le $ac_hi; then
13130 ac_mid=`expr 2 '*' $ac_mid`
13132 rm -f conftest.$ac_objext conftest.$ac_ext
13135 echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13140 rm -f conftest.$ac_objext conftest.$ac_ext
13142 rm -f conftest.$ac_objext conftest.$ac_ext
13143 # Binary search between lo and hi bounds.
13144 while test "x$ac_lo" != "x$ac_hi"; do
13145 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13146 cat >conftest.$ac_ext <<_ACEOF
13147 #line $LINENO "configure"
13150 cat confdefs.h >>conftest.$ac_ext
13151 cat >>conftest.$ac_ext <<_ACEOF
13152 /* end confdefs.h. */
13153 $ac_includes_default
13157 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13164 rm -f conftest.$ac_objext
13165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13166 (eval $ac_compile) 2>&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } &&
13170 { ac_try='test -s conftest.$ac_objext'
13171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172 (eval $ac_try) 2>&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; }; then
13178 echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13181 ac_lo=`expr '(' $ac_mid ')' + 1`
13183 rm -f conftest.$ac_objext conftest.$ac_ext
13186 ?*) ac_cv_sizeof_int=$ac_lo;;
13187 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13188 See \`config.log' for more details." >&5
13189 echo "$as_me: error: cannot compute sizeof (int), 77
13190 See \`config.log' for more details." >&2;}
13191 { (exit 1); exit 1; }; } ;;
13194 if test "$cross_compiling" = yes; then
13195 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13196 See \`config.log' for more details." >&5
13197 echo "$as_me: error: cannot run test program while cross compiling
13198 See \`config.log' for more details." >&2;}
13199 { (exit 1); exit 1; }; }
13201 cat >conftest.$ac_ext <<_ACEOF
13202 #line $LINENO "configure"
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13208 $ac_includes_default
13209 long longval () { return (long) (sizeof (int)); }
13210 unsigned long ulongval () { return (long) (sizeof (int)); }
13212 #include <stdlib.h>
13217 FILE *f = fopen ("conftest.val", "w");
13220 if (((long) (sizeof (int))) < 0)
13222 long i = longval ();
13223 if (i != ((long) (sizeof (int))))
13225 fprintf (f, "%ld\n", i);
13229 unsigned long i = ulongval ();
13230 if (i != ((long) (sizeof (int))))
13232 fprintf (f, "%lu\n", i);
13234 exit (ferror (f) || fclose (f) != 0);
13240 rm -f conftest$ac_exeext
13241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13242 (eval $ac_link) 2>&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13247 (eval $ac_try) 2>&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; }; then
13251 ac_cv_sizeof_int=`cat conftest.val`
13253 echo "$as_me: program exited with status $ac_status" >&5
13254 echo "$as_me: failed program was:" >&5
13255 sed 's/^/| /' conftest.$ac_ext >&5
13257 ( exit $ac_status )
13258 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13259 See \`config.log' for more details." >&5
13260 echo "$as_me: error: cannot compute sizeof (int), 77
13261 See \`config.log' for more details." >&2;}
13262 { (exit 1); exit 1; }; }
13264 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13272 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13273 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13274 cat >>confdefs.h <<_ACEOF
13275 #define SIZEOF_INT $ac_cv_sizeof_int
13279 echo "$as_me:$LINENO: checking for long int" >&5
13280 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13281 if test "${ac_cv_type_long_int+set}" = set; then
13282 echo $ECHO_N "(cached) $ECHO_C" >&6
13284 cat >conftest.$ac_ext <<_ACEOF
13285 #line $LINENO "configure"
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h. */
13291 $ac_includes_default
13295 if ((long int *) 0)
13297 if (sizeof (long int))
13303 rm -f conftest.$ac_objext
13304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13305 (eval $ac_compile) 2>&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } &&
13309 { ac_try='test -s conftest.$ac_objext'
13310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13311 (eval $ac_try) 2>&5
13313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13314 (exit $ac_status); }; }; then
13315 ac_cv_type_long_int=yes
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13320 ac_cv_type_long_int=no
13322 rm -f conftest.$ac_objext conftest.$ac_ext
13324 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13325 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13327 echo "$as_me:$LINENO: checking size of long int" >&5
13328 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13329 if test "${ac_cv_sizeof_long_int+set}" = set; then
13330 echo $ECHO_N "(cached) $ECHO_C" >&6
13332 if test "$ac_cv_type_long_int" = yes; then
13333 # The cast to unsigned long works around a bug in the HP C Compiler
13334 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13335 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13336 # This bug is HP SR number 8606223364.
13337 if test "$cross_compiling" = yes; then
13338 # Depending upon the size, compute the lo and hi bounds.
13339 cat >conftest.$ac_ext <<_ACEOF
13340 #line $LINENO "configure"
13343 cat confdefs.h >>conftest.$ac_ext
13344 cat >>conftest.$ac_ext <<_ACEOF
13345 /* end confdefs.h. */
13346 $ac_includes_default
13350 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13357 rm -f conftest.$ac_objext
13358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13359 (eval $ac_compile) 2>&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } &&
13363 { ac_try='test -s conftest.$ac_objext'
13364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13365 (eval $ac_try) 2>&5
13367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13368 (exit $ac_status); }; }; then
13371 cat >conftest.$ac_ext <<_ACEOF
13372 #line $LINENO "configure"
13375 cat confdefs.h >>conftest.$ac_ext
13376 cat >>conftest.$ac_ext <<_ACEOF
13377 /* end confdefs.h. */
13378 $ac_includes_default
13382 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13389 rm -f conftest.$ac_objext
13390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13391 (eval $ac_compile) 2>&5
13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394 (exit $ac_status); } &&
13395 { ac_try='test -s conftest.$ac_objext'
13396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13397 (eval $ac_try) 2>&5
13399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13400 (exit $ac_status); }; }; then
13401 ac_hi=$ac_mid; break
13403 echo "$as_me: failed program was:" >&5
13404 sed 's/^/| /' conftest.$ac_ext >&5
13406 ac_lo=`expr $ac_mid + 1`
13407 if test $ac_lo -le $ac_mid; then
13411 ac_mid=`expr 2 '*' $ac_mid + 1`
13413 rm -f conftest.$ac_objext conftest.$ac_ext
13416 echo "$as_me: failed program was:" >&5
13417 sed 's/^/| /' conftest.$ac_ext >&5
13419 cat >conftest.$ac_ext <<_ACEOF
13420 #line $LINENO "configure"
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13426 $ac_includes_default
13430 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13437 rm -f conftest.$ac_objext
13438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13439 (eval $ac_compile) 2>&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); } &&
13443 { ac_try='test -s conftest.$ac_objext'
13444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13445 (eval $ac_try) 2>&5
13447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13448 (exit $ac_status); }; }; then
13451 cat >conftest.$ac_ext <<_ACEOF
13452 #line $LINENO "configure"
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h. */
13458 $ac_includes_default
13462 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13469 rm -f conftest.$ac_objext
13470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13471 (eval $ac_compile) 2>&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); } &&
13475 { ac_try='test -s conftest.$ac_objext'
13476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13477 (eval $ac_try) 2>&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); }; }; then
13481 ac_lo=$ac_mid; break
13483 echo "$as_me: failed program was:" >&5
13484 sed 's/^/| /' conftest.$ac_ext >&5
13486 ac_hi=`expr '(' $ac_mid ')' - 1`
13487 if test $ac_mid -le $ac_hi; then
13491 ac_mid=`expr 2 '*' $ac_mid`
13493 rm -f conftest.$ac_objext conftest.$ac_ext
13496 echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13501 rm -f conftest.$ac_objext conftest.$ac_ext
13503 rm -f conftest.$ac_objext conftest.$ac_ext
13504 # Binary search between lo and hi bounds.
13505 while test "x$ac_lo" != "x$ac_hi"; do
13506 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13507 cat >conftest.$ac_ext <<_ACEOF
13508 #line $LINENO "configure"
13511 cat confdefs.h >>conftest.$ac_ext
13512 cat >>conftest.$ac_ext <<_ACEOF
13513 /* end confdefs.h. */
13514 $ac_includes_default
13518 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13525 rm -f conftest.$ac_objext
13526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13527 (eval $ac_compile) 2>&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } &&
13531 { ac_try='test -s conftest.$ac_objext'
13532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533 (eval $ac_try) 2>&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; }; then
13539 echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13542 ac_lo=`expr '(' $ac_mid ')' + 1`
13544 rm -f conftest.$ac_objext conftest.$ac_ext
13547 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13548 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13549 See \`config.log' for more details." >&5
13550 echo "$as_me: error: cannot compute sizeof (long int), 77
13551 See \`config.log' for more details." >&2;}
13552 { (exit 1); exit 1; }; } ;;
13555 if test "$cross_compiling" = yes; then
13556 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13557 See \`config.log' for more details." >&5
13558 echo "$as_me: error: cannot run test program while cross compiling
13559 See \`config.log' for more details." >&2;}
13560 { (exit 1); exit 1; }; }
13562 cat >conftest.$ac_ext <<_ACEOF
13563 #line $LINENO "configure"
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h. */
13569 $ac_includes_default
13570 long longval () { return (long) (sizeof (long int)); }
13571 unsigned long ulongval () { return (long) (sizeof (long int)); }
13573 #include <stdlib.h>
13578 FILE *f = fopen ("conftest.val", "w");
13581 if (((long) (sizeof (long int))) < 0)
13583 long i = longval ();
13584 if (i != ((long) (sizeof (long int))))
13586 fprintf (f, "%ld\n", i);
13590 unsigned long i = ulongval ();
13591 if (i != ((long) (sizeof (long int))))
13593 fprintf (f, "%lu\n", i);
13595 exit (ferror (f) || fclose (f) != 0);
13601 rm -f conftest$ac_exeext
13602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13603 (eval $ac_link) 2>&5
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13608 (eval $ac_try) 2>&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); }; }; then
13612 ac_cv_sizeof_long_int=`cat conftest.val`
13614 echo "$as_me: program exited with status $ac_status" >&5
13615 echo "$as_me: failed program was:" >&5
13616 sed 's/^/| /' conftest.$ac_ext >&5
13618 ( exit $ac_status )
13619 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13620 See \`config.log' for more details." >&5
13621 echo "$as_me: error: cannot compute sizeof (long int), 77
13622 See \`config.log' for more details." >&2;}
13623 { (exit 1); exit 1; }; }
13625 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13630 ac_cv_sizeof_long_int=0
13633 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13634 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13635 cat >>confdefs.h <<_ACEOF
13636 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13640 echo "$as_me:$LINENO: checking for long long int" >&5
13641 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13642 if test "${ac_cv_type_long_long_int+set}" = set; then
13643 echo $ECHO_N "(cached) $ECHO_C" >&6
13645 cat >conftest.$ac_ext <<_ACEOF
13646 #line $LINENO "configure"
13649 cat confdefs.h >>conftest.$ac_ext
13650 cat >>conftest.$ac_ext <<_ACEOF
13651 /* end confdefs.h. */
13652 $ac_includes_default
13656 if ((long long int *) 0)
13658 if (sizeof (long long int))
13664 rm -f conftest.$ac_objext
13665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13666 (eval $ac_compile) 2>&5
13668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13669 (exit $ac_status); } &&
13670 { ac_try='test -s conftest.$ac_objext'
13671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13672 (eval $ac_try) 2>&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); }; }; then
13676 ac_cv_type_long_long_int=yes
13678 echo "$as_me: failed program was:" >&5
13679 sed 's/^/| /' conftest.$ac_ext >&5
13681 ac_cv_type_long_long_int=no
13683 rm -f conftest.$ac_objext conftest.$ac_ext
13685 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13686 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13688 echo "$as_me:$LINENO: checking size of long long int" >&5
13689 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13690 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13691 echo $ECHO_N "(cached) $ECHO_C" >&6
13693 if test "$ac_cv_type_long_long_int" = yes; then
13694 # The cast to unsigned long works around a bug in the HP C Compiler
13695 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13696 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13697 # This bug is HP SR number 8606223364.
13698 if test "$cross_compiling" = yes; then
13699 # Depending upon the size, compute the lo and hi bounds.
13700 cat >conftest.$ac_ext <<_ACEOF
13701 #line $LINENO "configure"
13704 cat confdefs.h >>conftest.$ac_ext
13705 cat >>conftest.$ac_ext <<_ACEOF
13706 /* end confdefs.h. */
13707 $ac_includes_default
13711 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13718 rm -f conftest.$ac_objext
13719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13720 (eval $ac_compile) 2>&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } &&
13724 { ac_try='test -s conftest.$ac_objext'
13725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13726 (eval $ac_try) 2>&5
13728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13729 (exit $ac_status); }; }; then
13732 cat >conftest.$ac_ext <<_ACEOF
13733 #line $LINENO "configure"
13736 cat confdefs.h >>conftest.$ac_ext
13737 cat >>conftest.$ac_ext <<_ACEOF
13738 /* end confdefs.h. */
13739 $ac_includes_default
13743 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13750 rm -f conftest.$ac_objext
13751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13752 (eval $ac_compile) 2>&5
13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13755 (exit $ac_status); } &&
13756 { ac_try='test -s conftest.$ac_objext'
13757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13758 (eval $ac_try) 2>&5
13760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13761 (exit $ac_status); }; }; then
13762 ac_hi=$ac_mid; break
13764 echo "$as_me: failed program was:" >&5
13765 sed 's/^/| /' conftest.$ac_ext >&5
13767 ac_lo=`expr $ac_mid + 1`
13768 if test $ac_lo -le $ac_mid; then
13772 ac_mid=`expr 2 '*' $ac_mid + 1`
13774 rm -f conftest.$ac_objext conftest.$ac_ext
13777 echo "$as_me: failed program was:" >&5
13778 sed 's/^/| /' conftest.$ac_ext >&5
13780 cat >conftest.$ac_ext <<_ACEOF
13781 #line $LINENO "configure"
13784 cat confdefs.h >>conftest.$ac_ext
13785 cat >>conftest.$ac_ext <<_ACEOF
13786 /* end confdefs.h. */
13787 $ac_includes_default
13791 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13798 rm -f conftest.$ac_objext
13799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13800 (eval $ac_compile) 2>&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); } &&
13804 { ac_try='test -s conftest.$ac_objext'
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; }; then
13812 cat >conftest.$ac_ext <<_ACEOF
13813 #line $LINENO "configure"
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13819 $ac_includes_default
13823 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13830 rm -f conftest.$ac_objext
13831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13832 (eval $ac_compile) 2>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); } &&
13836 { ac_try='test -s conftest.$ac_objext'
13837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13838 (eval $ac_try) 2>&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); }; }; then
13842 ac_lo=$ac_mid; break
13844 echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13847 ac_hi=`expr '(' $ac_mid ')' - 1`
13848 if test $ac_mid -le $ac_hi; then
13852 ac_mid=`expr 2 '*' $ac_mid`
13854 rm -f conftest.$ac_objext conftest.$ac_ext
13857 echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.$ac_ext >&5
13862 rm -f conftest.$ac_objext conftest.$ac_ext
13864 rm -f conftest.$ac_objext conftest.$ac_ext
13865 # Binary search between lo and hi bounds.
13866 while test "x$ac_lo" != "x$ac_hi"; do
13867 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13868 cat >conftest.$ac_ext <<_ACEOF
13869 #line $LINENO "configure"
13872 cat confdefs.h >>conftest.$ac_ext
13873 cat >>conftest.$ac_ext <<_ACEOF
13874 /* end confdefs.h. */
13875 $ac_includes_default
13879 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13886 rm -f conftest.$ac_objext
13887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13888 (eval $ac_compile) 2>&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
13892 { ac_try='test -s conftest.$ac_objext'
13893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
13900 echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.$ac_ext >&5
13903 ac_lo=`expr '(' $ac_mid ')' + 1`
13905 rm -f conftest.$ac_objext conftest.$ac_ext
13908 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13909 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13910 See \`config.log' for more details." >&5
13911 echo "$as_me: error: cannot compute sizeof (long long int), 77
13912 See \`config.log' for more details." >&2;}
13913 { (exit 1); exit 1; }; } ;;
13916 if test "$cross_compiling" = yes; then
13917 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13918 See \`config.log' for more details." >&5
13919 echo "$as_me: error: cannot run test program while cross compiling
13920 See \`config.log' for more details." >&2;}
13921 { (exit 1); exit 1; }; }
13923 cat >conftest.$ac_ext <<_ACEOF
13924 #line $LINENO "configure"
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 $ac_includes_default
13931 long longval () { return (long) (sizeof (long long int)); }
13932 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13934 #include <stdlib.h>
13939 FILE *f = fopen ("conftest.val", "w");
13942 if (((long) (sizeof (long long int))) < 0)
13944 long i = longval ();
13945 if (i != ((long) (sizeof (long long int))))
13947 fprintf (f, "%ld\n", i);
13951 unsigned long i = ulongval ();
13952 if (i != ((long) (sizeof (long long int))))
13954 fprintf (f, "%lu\n", i);
13956 exit (ferror (f) || fclose (f) != 0);
13962 rm -f conftest$ac_exeext
13963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13964 (eval $ac_link) 2>&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13969 (eval $ac_try) 2>&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); }; }; then
13973 ac_cv_sizeof_long_long_int=`cat conftest.val`
13975 echo "$as_me: program exited with status $ac_status" >&5
13976 echo "$as_me: failed program was:" >&5
13977 sed 's/^/| /' conftest.$ac_ext >&5
13979 ( exit $ac_status )
13980 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13981 See \`config.log' for more details." >&5
13982 echo "$as_me: error: cannot compute sizeof (long long int), 77
13983 See \`config.log' for more details." >&2;}
13984 { (exit 1); exit 1; }; }
13986 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13991 ac_cv_sizeof_long_long_int=0
13994 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13995 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13996 cat >>confdefs.h <<_ACEOF
13997 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14001 echo "$as_me:$LINENO: checking for int *" >&5
14002 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14003 if test "${ac_cv_type_int_p+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 cat >conftest.$ac_ext <<_ACEOF
14007 #line $LINENO "configure"
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14013 $ac_includes_default
14019 if (sizeof (int *))
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_type_int_p=yes
14039 echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.$ac_ext >&5
14042 ac_cv_type_int_p=no
14044 rm -f conftest.$ac_objext conftest.$ac_ext
14046 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14047 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14049 echo "$as_me:$LINENO: checking size of int *" >&5
14050 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14051 if test "${ac_cv_sizeof_int_p+set}" = set; then
14052 echo $ECHO_N "(cached) $ECHO_C" >&6
14054 if test "$ac_cv_type_int_p" = yes; then
14055 # The cast to unsigned long works around a bug in the HP C Compiler
14056 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14057 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14058 # This bug is HP SR number 8606223364.
14059 if test "$cross_compiling" = yes; then
14060 # Depending upon the size, compute the lo and hi bounds.
14061 cat >conftest.$ac_ext <<_ACEOF
14062 #line $LINENO "configure"
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
14067 /* end confdefs.h. */
14068 $ac_includes_default
14072 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14079 rm -f conftest.$ac_objext
14080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14081 (eval $ac_compile) 2>&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); } &&
14085 { ac_try='test -s conftest.$ac_objext'
14086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087 (eval $ac_try) 2>&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; }; then
14093 cat >conftest.$ac_ext <<_ACEOF
14094 #line $LINENO "configure"
14097 cat confdefs.h >>conftest.$ac_ext
14098 cat >>conftest.$ac_ext <<_ACEOF
14099 /* end confdefs.h. */
14100 $ac_includes_default
14104 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14111 rm -f conftest.$ac_objext
14112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14113 (eval $ac_compile) 2>&5
14115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14116 (exit $ac_status); } &&
14117 { ac_try='test -s conftest.$ac_objext'
14118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14119 (eval $ac_try) 2>&5
14121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122 (exit $ac_status); }; }; then
14123 ac_hi=$ac_mid; break
14125 echo "$as_me: failed program was:" >&5
14126 sed 's/^/| /' conftest.$ac_ext >&5
14128 ac_lo=`expr $ac_mid + 1`
14129 if test $ac_lo -le $ac_mid; then
14133 ac_mid=`expr 2 '*' $ac_mid + 1`
14135 rm -f conftest.$ac_objext conftest.$ac_ext
14138 echo "$as_me: failed program was:" >&5
14139 sed 's/^/| /' conftest.$ac_ext >&5
14141 cat >conftest.$ac_ext <<_ACEOF
14142 #line $LINENO "configure"
14145 cat confdefs.h >>conftest.$ac_ext
14146 cat >>conftest.$ac_ext <<_ACEOF
14147 /* end confdefs.h. */
14148 $ac_includes_default
14152 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14159 rm -f conftest.$ac_objext
14160 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14161 (eval $ac_compile) 2>&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); } &&
14165 { ac_try='test -s conftest.$ac_objext'
14166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14167 (eval $ac_try) 2>&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); }; }; then
14173 cat >conftest.$ac_ext <<_ACEOF
14174 #line $LINENO "configure"
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h. */
14180 $ac_includes_default
14184 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14191 rm -f conftest.$ac_objext
14192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14193 (eval $ac_compile) 2>&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); } &&
14197 { ac_try='test -s conftest.$ac_objext'
14198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199 (eval $ac_try) 2>&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; }; then
14203 ac_lo=$ac_mid; break
14205 echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14208 ac_hi=`expr '(' $ac_mid ')' - 1`
14209 if test $ac_mid -le $ac_hi; then
14213 ac_mid=`expr 2 '*' $ac_mid`
14215 rm -f conftest.$ac_objext conftest.$ac_ext
14218 echo "$as_me: failed program was:" >&5
14219 sed 's/^/| /' conftest.$ac_ext >&5
14223 rm -f conftest.$ac_objext conftest.$ac_ext
14225 rm -f conftest.$ac_objext conftest.$ac_ext
14226 # Binary search between lo and hi bounds.
14227 while test "x$ac_lo" != "x$ac_hi"; do
14228 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14229 cat >conftest.$ac_ext <<_ACEOF
14230 #line $LINENO "configure"
14233 cat confdefs.h >>conftest.$ac_ext
14234 cat >>conftest.$ac_ext <<_ACEOF
14235 /* end confdefs.h. */
14236 $ac_includes_default
14240 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14247 rm -f conftest.$ac_objext
14248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14249 (eval $ac_compile) 2>&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } &&
14253 { ac_try='test -s conftest.$ac_objext'
14254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255 (eval $ac_try) 2>&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; }; then
14261 echo "$as_me: failed program was:" >&5
14262 sed 's/^/| /' conftest.$ac_ext >&5
14264 ac_lo=`expr '(' $ac_mid ')' + 1`
14266 rm -f conftest.$ac_objext conftest.$ac_ext
14269 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14270 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14271 See \`config.log' for more details." >&5
14272 echo "$as_me: error: cannot compute sizeof (int *), 77
14273 See \`config.log' for more details." >&2;}
14274 { (exit 1); exit 1; }; } ;;
14277 if test "$cross_compiling" = yes; then
14278 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14279 See \`config.log' for more details." >&5
14280 echo "$as_me: error: cannot run test program while cross compiling
14281 See \`config.log' for more details." >&2;}
14282 { (exit 1); exit 1; }; }
14284 cat >conftest.$ac_ext <<_ACEOF
14285 #line $LINENO "configure"
14288 cat confdefs.h >>conftest.$ac_ext
14289 cat >>conftest.$ac_ext <<_ACEOF
14290 /* end confdefs.h. */
14291 $ac_includes_default
14292 long longval () { return (long) (sizeof (int *)); }
14293 unsigned long ulongval () { return (long) (sizeof (int *)); }
14295 #include <stdlib.h>
14300 FILE *f = fopen ("conftest.val", "w");
14303 if (((long) (sizeof (int *))) < 0)
14305 long i = longval ();
14306 if (i != ((long) (sizeof (int *))))
14308 fprintf (f, "%ld\n", i);
14312 unsigned long i = ulongval ();
14313 if (i != ((long) (sizeof (int *))))
14315 fprintf (f, "%lu\n", i);
14317 exit (ferror (f) || fclose (f) != 0);
14323 rm -f conftest$ac_exeext
14324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14325 (eval $ac_link) 2>&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
14334 ac_cv_sizeof_int_p=`cat conftest.val`
14336 echo "$as_me: program exited with status $ac_status" >&5
14337 echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.$ac_ext >&5
14340 ( exit $ac_status )
14341 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14342 See \`config.log' for more details." >&5
14343 echo "$as_me: error: cannot compute sizeof (int *), 77
14344 See \`config.log' for more details." >&2;}
14345 { (exit 1); exit 1; }; }
14347 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14352 ac_cv_sizeof_int_p=0
14355 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14356 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14357 cat >>confdefs.h <<_ACEOF
14358 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14363 # Check for sys/types.h types
14364 echo "$as_me:$LINENO: checking for u_int type" >&5
14365 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14366 if test "${ac_cv_have_u_int+set}" = set; then
14367 echo $ECHO_N "(cached) $ECHO_C" >&6
14370 cat >conftest.$ac_ext <<_ACEOF
14371 #line $LINENO "configure"
14374 cat confdefs.h >>conftest.$ac_ext
14375 cat >>conftest.$ac_ext <<_ACEOF
14376 /* end confdefs.h. */
14377 #include <sys/types.h>
14386 rm -f conftest.$ac_objext
14387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14388 (eval $ac_compile) 2>&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); } &&
14392 { ac_try='test -s conftest.$ac_objext'
14393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14394 (eval $ac_try) 2>&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; }; then
14398 ac_cv_have_u_int="yes"
14400 echo "$as_me: failed program was:" >&5
14401 sed 's/^/| /' conftest.$ac_ext >&5
14403 ac_cv_have_u_int="no"
14406 rm -f conftest.$ac_objext conftest.$ac_ext
14409 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14410 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14411 if test "x$ac_cv_have_u_int" = "xyes" ; then
14412 cat >>confdefs.h <<\_ACEOF
14413 #define HAVE_U_INT 1
14419 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14420 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14421 if test "${ac_cv_have_intmax_t+set}" = set; then
14422 echo $ECHO_N "(cached) $ECHO_C" >&6
14425 cat >conftest.$ac_ext <<_ACEOF
14426 #line $LINENO "configure"
14429 cat confdefs.h >>conftest.$ac_ext
14430 cat >>conftest.$ac_ext <<_ACEOF
14431 /* end confdefs.h. */
14432 #include <sys/types.h>
14441 rm -f conftest.$ac_objext
14442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14443 (eval $ac_compile) 2>&5
14445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14446 (exit $ac_status); } &&
14447 { ac_try='test -s conftest.$ac_objext'
14448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14449 (eval $ac_try) 2>&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); }; }; then
14453 ac_cv_have_intmax_t="yes"
14455 echo "$as_me: failed program was:" >&5
14456 sed 's/^/| /' conftest.$ac_ext >&5
14459 cat >conftest.$ac_ext <<_ACEOF
14460 #line $LINENO "configure"
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h. */
14466 #include <stdint.h>
14475 rm -f conftest.$ac_objext
14476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14477 (eval $ac_compile) 2>&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); } &&
14481 { ac_try='test -s conftest.$ac_objext'
14482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14483 (eval $ac_try) 2>&5
14485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14486 (exit $ac_status); }; }; then
14487 ac_cv_have_intmax_t="yes"
14489 echo "$as_me: failed program was:" >&5
14490 sed 's/^/| /' conftest.$ac_ext >&5
14492 ac_cv_have_intmax_t="no"
14495 rm -f conftest.$ac_objext conftest.$ac_ext
14499 rm -f conftest.$ac_objext conftest.$ac_ext
14503 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14504 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14505 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14506 cat >>confdefs.h <<\_ACEOF
14507 #define HAVE_INTMAX_T 1
14514 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14515 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14516 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14517 echo $ECHO_N "(cached) $ECHO_C" >&6
14520 cat >conftest.$ac_ext <<_ACEOF
14521 #line $LINENO "configure"
14524 cat confdefs.h >>conftest.$ac_ext
14525 cat >>conftest.$ac_ext <<_ACEOF
14526 /* end confdefs.h. */
14527 #include <sys/types.h>
14531 u_intmax_t a; a = 1;
14536 rm -f conftest.$ac_objext
14537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14538 (eval $ac_compile) 2>&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } &&
14542 { ac_try='test -s conftest.$ac_objext'
14543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14544 (eval $ac_try) 2>&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); }; }; then
14548 ac_cv_have_u_intmax_t="yes"
14550 echo "$as_me: failed program was:" >&5
14551 sed 's/^/| /' conftest.$ac_ext >&5
14554 cat >conftest.$ac_ext <<_ACEOF
14555 #line $LINENO "configure"
14558 cat confdefs.h >>conftest.$ac_ext
14559 cat >>conftest.$ac_ext <<_ACEOF
14560 /* end confdefs.h. */
14561 #include <stdint.h>
14565 u_intmax_t a; a = 1;
14570 rm -f conftest.$ac_objext
14571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14572 (eval $ac_compile) 2>&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } &&
14576 { ac_try='test -s conftest.$ac_objext'
14577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14578 (eval $ac_try) 2>&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); }; }; then
14582 ac_cv_have_u_intmax_t="yes"
14584 echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.$ac_ext >&5
14587 ac_cv_have_u_intmax_t="no"
14590 rm -f conftest.$ac_objext conftest.$ac_ext
14594 rm -f conftest.$ac_objext conftest.$ac_ext
14597 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14598 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14599 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14600 cat >>confdefs.h <<\_ACEOF
14601 #define HAVE_U_INTMAX_T 1
14608 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14609 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14610 if test "${ac_cv_have_intxx_t+set}" = set; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
14614 cat >conftest.$ac_ext <<_ACEOF
14615 #line $LINENO "configure"
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h. */
14621 #include <sys/types.h>
14625 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14630 rm -f conftest.$ac_objext
14631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14632 (eval $ac_compile) 2>&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } &&
14636 { ac_try='test -s conftest.$ac_objext'
14637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14638 (eval $ac_try) 2>&5
14640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14641 (exit $ac_status); }; }; then
14642 ac_cv_have_intxx_t="yes"
14644 echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14647 ac_cv_have_intxx_t="no"
14650 rm -f conftest.$ac_objext conftest.$ac_ext
14653 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14654 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14655 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14656 cat >>confdefs.h <<\_ACEOF
14657 #define HAVE_INTXX_T 1
14663 echo "$as_me:$LINENO: checking for int64_t type" >&5
14664 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14665 if test "${ac_cv_have_int64_t+set}" = set; then
14666 echo $ECHO_N "(cached) $ECHO_C" >&6
14669 cat >conftest.$ac_ext <<_ACEOF
14670 #line $LINENO "configure"
14673 cat confdefs.h >>conftest.$ac_ext
14674 cat >>conftest.$ac_ext <<_ACEOF
14675 /* end confdefs.h. */
14676 #include <sys/types.h>
14685 rm -f conftest.$ac_objext
14686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14687 (eval $ac_compile) 2>&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } &&
14691 { ac_try='test -s conftest.$ac_objext'
14692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693 (eval $ac_try) 2>&5
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }; }; then
14697 ac_cv_have_int64_t="yes"
14699 echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14702 ac_cv_have_int64_t="no"
14705 rm -f conftest.$ac_objext conftest.$ac_ext
14708 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14709 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14710 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14711 cat >>confdefs.h <<\_ACEOF
14712 #define HAVE_INT64_T 1
14718 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14719 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14720 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14721 echo $ECHO_N "(cached) $ECHO_C" >&6
14724 cat >conftest.$ac_ext <<_ACEOF
14725 #line $LINENO "configure"
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14731 #include <sys/types.h>
14735 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14740 rm -f conftest.$ac_objext
14741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14742 (eval $ac_compile) 2>&5
14744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14745 (exit $ac_status); } &&
14746 { ac_try='test -s conftest.$ac_objext'
14747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14748 (eval $ac_try) 2>&5
14750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751 (exit $ac_status); }; }; then
14752 ac_cv_have_u_intxx_t="yes"
14754 echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14757 ac_cv_have_u_intxx_t="no"
14760 rm -f conftest.$ac_objext conftest.$ac_ext
14763 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14764 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14765 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14766 cat >>confdefs.h <<\_ACEOF
14767 #define HAVE_U_INTXX_T 1
14773 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14774 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14775 if test "${ac_cv_have_u_int64_t+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14779 cat >conftest.$ac_ext <<_ACEOF
14780 #line $LINENO "configure"
14783 cat confdefs.h >>conftest.$ac_ext
14784 cat >>conftest.$ac_ext <<_ACEOF
14785 /* end confdefs.h. */
14786 #include <sys/types.h>
14790 u_int64_t a; a = 1;
14795 rm -f conftest.$ac_objext
14796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14797 (eval $ac_compile) 2>&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } &&
14801 { ac_try='test -s conftest.$ac_objext'
14802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14803 (eval $ac_try) 2>&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); }; }; then
14807 ac_cv_have_u_int64_t="yes"
14809 echo "$as_me: failed program was:" >&5
14810 sed 's/^/| /' conftest.$ac_ext >&5
14812 ac_cv_have_u_int64_t="no"
14815 rm -f conftest.$ac_objext conftest.$ac_ext
14818 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14819 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14820 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14821 cat >>confdefs.h <<\_ACEOF
14822 #define HAVE_U_INT64_T 1
14828 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14829 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14831 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14832 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14833 cat >conftest.$ac_ext <<_ACEOF
14834 #line $LINENO "configure"
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h. */
14840 #include <sys/bitypes.h>
14844 int8_t a; int16_t b; int32_t c;
14845 u_int8_t e; u_int16_t f; u_int32_t g;
14846 a = b = c = e = f = g = 1;
14851 rm -f conftest.$ac_objext
14852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14853 (eval $ac_compile) 2>&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } &&
14857 { ac_try='test -s conftest.$ac_objext'
14858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14859 (eval $ac_try) 2>&5
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); }; }; then
14863 cat >>confdefs.h <<\_ACEOF
14864 #define HAVE_U_INTXX_T 1
14867 cat >>confdefs.h <<\_ACEOF
14868 #define HAVE_INTXX_T 1
14871 cat >>confdefs.h <<\_ACEOF
14872 #define HAVE_SYS_BITYPES_H 1
14875 echo "$as_me:$LINENO: result: yes" >&5
14876 echo "${ECHO_T}yes" >&6
14878 echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14881 echo "$as_me:$LINENO: result: no" >&5
14882 echo "${ECHO_T}no" >&6
14885 rm -f conftest.$ac_objext conftest.$ac_ext
14888 if test -z "$have_u_intxx_t" ; then
14889 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14890 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14891 if test "${ac_cv_have_uintxx_t+set}" = set; then
14892 echo $ECHO_N "(cached) $ECHO_C" >&6
14895 cat >conftest.$ac_ext <<_ACEOF
14896 #line $LINENO "configure"
14899 cat confdefs.h >>conftest.$ac_ext
14900 cat >>conftest.$ac_ext <<_ACEOF
14901 /* end confdefs.h. */
14902 #include <sys/types.h>
14906 uint8_t a; uint16_t b;
14907 uint32_t c; a = b = c = 1;
14912 rm -f conftest.$ac_objext
14913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14914 (eval $ac_compile) 2>&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); } &&
14918 { ac_try='test -s conftest.$ac_objext'
14919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14920 (eval $ac_try) 2>&5
14922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14923 (exit $ac_status); }; }; then
14924 ac_cv_have_uintxx_t="yes"
14926 echo "$as_me: failed program was:" >&5
14927 sed 's/^/| /' conftest.$ac_ext >&5
14929 ac_cv_have_uintxx_t="no"
14932 rm -f conftest.$ac_objext conftest.$ac_ext
14935 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14936 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14937 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14938 cat >>confdefs.h <<\_ACEOF
14939 #define HAVE_UINTXX_T 1
14975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14976 echo "$as_me:$LINENO: checking for $ac_func" >&5
14977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14978 if eval "test \"\${$as_ac_var+set}\" = set"; then
14979 echo $ECHO_N "(cached) $ECHO_C" >&6
14981 cat >conftest.$ac_ext <<_ACEOF
14982 #line $LINENO "configure"
14985 cat confdefs.h >>conftest.$ac_ext
14986 cat >>conftest.$ac_ext <<_ACEOF
14987 /* end confdefs.h. */
14988 /* System header to define __stub macros and hopefully few prototypes,
14989 which can conflict with char $ac_func (); below.
14990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14991 <limits.h> exists even on freestanding compilers. */
14993 # include <limits.h>
14995 # include <assert.h>
14997 /* Override any gcc2 internal prototype to avoid an error. */
15002 /* We use char because int might match the return type of a gcc2
15003 builtin and then its argument prototype would still apply. */
15005 /* The GNU C library defines this for functions which it implements
15006 to always fail with ENOSYS. Some functions are actually named
15007 something starting with __ and the normal name is an alias. */
15008 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15011 char (*f) () = $ac_func;
15020 return f != $ac_func;
15025 rm -f conftest.$ac_objext conftest$ac_exeext
15026 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15027 (eval $ac_link) 2>&5
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } &&
15031 { ac_try='test -s conftest$ac_exeext'
15032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15033 (eval $ac_try) 2>&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; }; then
15037 eval "$as_ac_var=yes"
15039 echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15042 eval "$as_ac_var=no"
15044 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15046 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15047 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15048 if test `eval echo '${'$as_ac_var'}'` = yes; then
15049 cat >>confdefs.h <<_ACEOF
15050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15054 echo 'configure: cannot find needed function.'; exit 1
15061 for ac_func in fchdir
15063 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15064 echo "$as_me:$LINENO: checking for $ac_func" >&5
15065 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15066 if eval "test \"\${$as_ac_var+set}\" = set"; then
15067 echo $ECHO_N "(cached) $ECHO_C" >&6
15069 cat >conftest.$ac_ext <<_ACEOF
15070 #line $LINENO "configure"
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h. */
15076 /* System header to define __stub macros and hopefully few prototypes,
15077 which can conflict with char $ac_func (); below.
15078 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15079 <limits.h> exists even on freestanding compilers. */
15081 # include <limits.h>
15083 # include <assert.h>
15085 /* Override any gcc2 internal prototype to avoid an error. */
15090 /* We use char because int might match the return type of a gcc2
15091 builtin and then its argument prototype would still apply. */
15093 /* The GNU C library defines this for functions which it implements
15094 to always fail with ENOSYS. Some functions are actually named
15095 something starting with __ and the normal name is an alias. */
15096 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15099 char (*f) () = $ac_func;
15108 return f != $ac_func;
15113 rm -f conftest.$ac_objext conftest$ac_exeext
15114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15115 (eval $ac_link) 2>&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } &&
15119 { ac_try='test -s conftest$ac_exeext'
15120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15121 (eval $ac_try) 2>&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); }; }; then
15125 eval "$as_ac_var=yes"
15127 echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15130 eval "$as_ac_var=no"
15132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15134 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15135 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15136 if test `eval echo '${'$as_ac_var'}'` = yes; then
15137 cat >>confdefs.h <<_ACEOF
15138 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15140 cat >>confdefs.h <<\_ACEOF
15141 #define HAVE_FCHDIR 1
15148 for ac_func in strtoll
15150 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15151 echo "$as_me:$LINENO: checking for $ac_func" >&5
15152 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15153 if eval "test \"\${$as_ac_var+set}\" = set"; then
15154 echo $ECHO_N "(cached) $ECHO_C" >&6
15156 cat >conftest.$ac_ext <<_ACEOF
15157 #line $LINENO "configure"
15160 cat confdefs.h >>conftest.$ac_ext
15161 cat >>conftest.$ac_ext <<_ACEOF
15162 /* end confdefs.h. */
15163 /* System header to define __stub macros and hopefully few prototypes,
15164 which can conflict with char $ac_func (); below.
15165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15166 <limits.h> exists even on freestanding compilers. */
15168 # include <limits.h>
15170 # include <assert.h>
15172 /* Override any gcc2 internal prototype to avoid an error. */
15177 /* We use char because int might match the return type of a gcc2
15178 builtin and then its argument prototype would still apply. */
15180 /* The GNU C library defines this for functions which it implements
15181 to always fail with ENOSYS. Some functions are actually named
15182 something starting with __ and the normal name is an alias. */
15183 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15186 char (*f) () = $ac_func;
15195 return f != $ac_func;
15200 rm -f conftest.$ac_objext conftest$ac_exeext
15201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15202 (eval $ac_link) 2>&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } &&
15206 { ac_try='test -s conftest$ac_exeext'
15207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15208 (eval $ac_try) 2>&5
15210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211 (exit $ac_status); }; }; then
15212 eval "$as_ac_var=yes"
15214 echo "$as_me: failed program was:" >&5
15215 sed 's/^/| /' conftest.$ac_ext >&5
15217 eval "$as_ac_var=no"
15219 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15222 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15223 if test `eval echo '${'$as_ac_var'}'` = yes; then
15224 cat >>confdefs.h <<_ACEOF
15225 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15227 cat >>confdefs.h <<\_ACEOF
15228 #define HAVE_STRTOLL 1
15236 for ac_func in chflags
15238 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15239 echo "$as_me:$LINENO: checking for $ac_func" >&5
15240 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15241 if eval "test \"\${$as_ac_var+set}\" = set"; then
15242 echo $ECHO_N "(cached) $ECHO_C" >&6
15244 cat >conftest.$ac_ext <<_ACEOF
15245 #line $LINENO "configure"
15248 cat confdefs.h >>conftest.$ac_ext
15249 cat >>conftest.$ac_ext <<_ACEOF
15250 /* end confdefs.h. */
15251 /* System header to define __stub macros and hopefully few prototypes,
15252 which can conflict with char $ac_func (); below.
15253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15254 <limits.h> exists even on freestanding compilers. */
15256 # include <limits.h>
15258 # include <assert.h>
15260 /* Override any gcc2 internal prototype to avoid an error. */
15265 /* We use char because int might match the return type of a gcc2
15266 builtin and then its argument prototype would still apply. */
15268 /* The GNU C library defines this for functions which it implements
15269 to always fail with ENOSYS. Some functions are actually named
15270 something starting with __ and the normal name is an alias. */
15271 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15274 char (*f) () = $ac_func;
15283 return f != $ac_func;
15288 rm -f conftest.$ac_objext conftest$ac_exeext
15289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15290 (eval $ac_link) 2>&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); } &&
15294 { ac_try='test -s conftest$ac_exeext'
15295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15296 (eval $ac_try) 2>&5
15298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15299 (exit $ac_status); }; }; then
15300 eval "$as_ac_var=yes"
15302 echo "$as_me: failed program was:" >&5
15303 sed 's/^/| /' conftest.$ac_ext >&5
15305 eval "$as_ac_var=no"
15307 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15309 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15310 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15311 if test `eval echo '${'$as_ac_var'}'` = yes; then
15312 cat >>confdefs.h <<_ACEOF
15313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15324 for ac_func in snprintf vsnprintf gethostid getdomainname
15326 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15327 echo "$as_me:$LINENO: checking for $ac_func" >&5
15328 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15329 if eval "test \"\${$as_ac_var+set}\" = set"; then
15330 echo $ECHO_N "(cached) $ECHO_C" >&6
15332 cat >conftest.$ac_ext <<_ACEOF
15333 #line $LINENO "configure"
15336 cat confdefs.h >>conftest.$ac_ext
15337 cat >>conftest.$ac_ext <<_ACEOF
15338 /* end confdefs.h. */
15339 /* System header to define __stub macros and hopefully few prototypes,
15340 which can conflict with char $ac_func (); below.
15341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15342 <limits.h> exists even on freestanding compilers. */
15344 # include <limits.h>
15346 # include <assert.h>
15348 /* Override any gcc2 internal prototype to avoid an error. */
15353 /* We use char because int might match the return type of a gcc2
15354 builtin and then its argument prototype would still apply. */
15356 /* The GNU C library defines this for functions which it implements
15357 to always fail with ENOSYS. Some functions are actually named
15358 something starting with __ and the normal name is an alias. */
15359 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15362 char (*f) () = $ac_func;
15371 return f != $ac_func;
15376 rm -f conftest.$ac_objext conftest$ac_exeext
15377 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15378 (eval $ac_link) 2>&5
15380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); } &&
15382 { ac_try='test -s conftest$ac_exeext'
15383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15384 (eval $ac_try) 2>&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; }; then
15388 eval "$as_ac_var=yes"
15390 echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15393 eval "$as_ac_var=no"
15395 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15398 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15399 if test `eval echo '${'$as_ac_var'}'` = yes; then
15400 cat >>confdefs.h <<_ACEOF
15401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15412 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15415 echo "$as_me:$LINENO: checking for $ac_func" >&5
15416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15417 if eval "test \"\${$as_ac_var+set}\" = set"; then
15418 echo $ECHO_N "(cached) $ECHO_C" >&6
15420 cat >conftest.$ac_ext <<_ACEOF
15421 #line $LINENO "configure"
15424 cat confdefs.h >>conftest.$ac_ext
15425 cat >>conftest.$ac_ext <<_ACEOF
15426 /* end confdefs.h. */
15427 /* System header to define __stub macros and hopefully few prototypes,
15428 which can conflict with char $ac_func (); below.
15429 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15430 <limits.h> exists even on freestanding compilers. */
15432 # include <limits.h>
15434 # include <assert.h>
15436 /* Override any gcc2 internal prototype to avoid an error. */
15441 /* We use char because int might match the return type of a gcc2
15442 builtin and then its argument prototype would still apply. */
15444 /* The GNU C library defines this for functions which it implements
15445 to always fail with ENOSYS. Some functions are actually named
15446 something starting with __ and the normal name is an alias. */
15447 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15450 char (*f) () = $ac_func;
15459 return f != $ac_func;
15464 rm -f conftest.$ac_objext conftest$ac_exeext
15465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15466 (eval $ac_link) 2>&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } &&
15470 { ac_try='test -s conftest$ac_exeext'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15476 eval "$as_ac_var=yes"
15478 echo "$as_me: failed program was:" >&5
15479 sed 's/^/| /' conftest.$ac_ext >&5
15481 eval "$as_ac_var=no"
15483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15487 if test `eval echo '${'$as_ac_var'}'` = yes; then
15488 cat >>confdefs.h <<_ACEOF
15489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15496 # If resolver functions are not in libc check for -lnsl or -lresolv.
15497 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15498 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15499 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15500 echo $ECHO_N "(cached) $ECHO_C" >&6
15502 cat >conftest.$ac_ext <<_ACEOF
15503 #line $LINENO "configure"
15506 cat confdefs.h >>conftest.$ac_ext
15507 cat >>conftest.$ac_ext <<_ACEOF
15508 /* end confdefs.h. */
15509 /* System header to define __stub macros and hopefully few prototypes,
15510 which can conflict with char gethostbyname_r (); below.
15511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15512 <limits.h> exists even on freestanding compilers. */
15514 # include <limits.h>
15516 # include <assert.h>
15518 /* Override any gcc2 internal prototype to avoid an error. */
15523 /* We use char because int might match the return type of a gcc2
15524 builtin and then its argument prototype would still apply. */
15525 char gethostbyname_r ();
15526 /* The GNU C library defines this for functions which it implements
15527 to always fail with ENOSYS. Some functions are actually named
15528 something starting with __ and the normal name is an alias. */
15529 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15532 char (*f) () = gethostbyname_r;
15541 return f != gethostbyname_r;
15546 rm -f conftest.$ac_objext conftest$ac_exeext
15547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15548 (eval $ac_link) 2>&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); } &&
15552 { ac_try='test -s conftest$ac_exeext'
15553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554 (eval $ac_try) 2>&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
15558 ac_cv_func_gethostbyname_r=yes
15560 echo "$as_me: failed program was:" >&5
15561 sed 's/^/| /' conftest.$ac_ext >&5
15563 ac_cv_func_gethostbyname_r=no
15565 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15567 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15568 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15569 if test $ac_cv_func_gethostbyname_r = yes; then
15570 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15571 echo "${ECHO_T}using libc's resolver" >&6
15574 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15575 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15576 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15577 echo $ECHO_N "(cached) $ECHO_C" >&6
15579 ac_check_lib_save_LIBS=$LIBS
15581 cat >conftest.$ac_ext <<_ACEOF
15582 #line $LINENO "configure"
15585 cat confdefs.h >>conftest.$ac_ext
15586 cat >>conftest.$ac_ext <<_ACEOF
15587 /* end confdefs.h. */
15589 /* Override any gcc2 internal prototype to avoid an error. */
15593 /* We use char because int might match the return type of a gcc2
15594 builtin and then its argument prototype would still apply. */
15595 char gethostbyname_r ();
15599 gethostbyname_r ();
15604 rm -f conftest.$ac_objext conftest$ac_exeext
15605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15606 (eval $ac_link) 2>&5
15608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15609 (exit $ac_status); } &&
15610 { ac_try='test -s conftest$ac_exeext'
15611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15612 (eval $ac_try) 2>&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); }; }; then
15616 ac_cv_lib_nsl_gethostbyname_r=yes
15618 echo "$as_me: failed program was:" >&5
15619 sed 's/^/| /' conftest.$ac_ext >&5
15621 ac_cv_lib_nsl_gethostbyname_r=no
15623 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15624 LIBS=$ac_check_lib_save_LIBS
15626 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15627 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15628 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15629 cat >>confdefs.h <<_ACEOF
15630 #define HAVE_LIBNSL 1
15638 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15639 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15640 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15641 echo $ECHO_N "(cached) $ECHO_C" >&6
15643 ac_check_lib_save_LIBS=$LIBS
15644 LIBS="-lresolv $LIBS"
15645 cat >conftest.$ac_ext <<_ACEOF
15646 #line $LINENO "configure"
15649 cat confdefs.h >>conftest.$ac_ext
15650 cat >>conftest.$ac_ext <<_ACEOF
15651 /* end confdefs.h. */
15653 /* Override any gcc2 internal prototype to avoid an error. */
15657 /* We use char because int might match the return type of a gcc2
15658 builtin and then its argument prototype would still apply. */
15659 char gethostbyname_r ();
15663 gethostbyname_r ();
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 ac_cv_lib_resolv_gethostbyname_r=yes
15682 echo "$as_me: failed program was:" >&5
15683 sed 's/^/| /' conftest.$ac_ext >&5
15685 ac_cv_lib_resolv_gethostbyname_r=no
15687 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15688 LIBS=$ac_check_lib_save_LIBS
15690 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15691 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15692 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15693 cat >>confdefs.h <<_ACEOF
15694 #define HAVE_LIBRESOLV 1
15697 LIBS="-lresolv $LIBS"
15705 # Find where sockets are (especially for Solaris)
15706 echo "$as_me:$LINENO: checking for socket" >&5
15707 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15708 if test "${ac_cv_func_socket+set}" = set; then
15709 echo $ECHO_N "(cached) $ECHO_C" >&6
15711 cat >conftest.$ac_ext <<_ACEOF
15712 #line $LINENO "configure"
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h. */
15718 /* System header to define __stub macros and hopefully few prototypes,
15719 which can conflict with char socket (); below.
15720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15721 <limits.h> exists even on freestanding compilers. */
15723 # include <limits.h>
15725 # include <assert.h>
15727 /* Override any gcc2 internal prototype to avoid an error. */
15732 /* We use char because int might match the return type of a gcc2
15733 builtin and then its argument prototype would still apply. */
15735 /* The GNU C library defines this for functions which it implements
15736 to always fail with ENOSYS. Some functions are actually named
15737 something starting with __ and the normal name is an alias. */
15738 #if defined (__stub_socket) || defined (__stub___socket)
15741 char (*f) () = socket;
15750 return f != socket;
15755 rm -f conftest.$ac_objext conftest$ac_exeext
15756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15757 (eval $ac_link) 2>&5
15759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760 (exit $ac_status); } &&
15761 { ac_try='test -s conftest$ac_exeext'
15762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15763 (eval $ac_try) 2>&5
15765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15766 (exit $ac_status); }; }; then
15767 ac_cv_func_socket=yes
15769 echo "$as_me: failed program was:" >&5
15770 sed 's/^/| /' conftest.$ac_ext >&5
15772 ac_cv_func_socket=no
15774 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15776 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15777 echo "${ECHO_T}$ac_cv_func_socket" >&6
15778 if test $ac_cv_func_socket = yes; then
15779 echo "$as_me:$LINENO: result: using libc's socket" >&5
15780 echo "${ECHO_T}using libc's socket" >&6
15783 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15784 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15785 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15786 echo $ECHO_N "(cached) $ECHO_C" >&6
15788 ac_check_lib_save_LIBS=$LIBS
15789 LIBS="-lxnet $LIBS"
15790 cat >conftest.$ac_ext <<_ACEOF
15791 #line $LINENO "configure"
15794 cat confdefs.h >>conftest.$ac_ext
15795 cat >>conftest.$ac_ext <<_ACEOF
15796 /* end confdefs.h. */
15798 /* Override any gcc2 internal prototype to avoid an error. */
15802 /* We use char because int might match the return type of a gcc2
15803 builtin and then its argument prototype would still apply. */
15813 rm -f conftest.$ac_objext conftest$ac_exeext
15814 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15815 (eval $ac_link) 2>&5
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); } &&
15819 { ac_try='test -s conftest$ac_exeext'
15820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; }; then
15825 ac_cv_lib_xnet_socket=yes
15827 echo "$as_me: failed program was:" >&5
15828 sed 's/^/| /' conftest.$ac_ext >&5
15830 ac_cv_lib_xnet_socket=no
15832 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15833 LIBS=$ac_check_lib_save_LIBS
15835 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15836 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15837 if test $ac_cv_lib_xnet_socket = yes; then
15838 cat >>confdefs.h <<_ACEOF
15839 #define HAVE_LIBXNET 1
15842 LIBS="-lxnet $LIBS"
15847 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15848 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15849 if test "${ac_cv_lib_socket_socket+set}" = set; then
15850 echo $ECHO_N "(cached) $ECHO_C" >&6
15852 ac_check_lib_save_LIBS=$LIBS
15853 LIBS="-lsocket $LIBS"
15854 cat >conftest.$ac_ext <<_ACEOF
15855 #line $LINENO "configure"
15858 cat confdefs.h >>conftest.$ac_ext
15859 cat >>conftest.$ac_ext <<_ACEOF
15860 /* end confdefs.h. */
15862 /* Override any gcc2 internal prototype to avoid an error. */
15866 /* We use char because int might match the return type of a gcc2
15867 builtin and then its argument prototype would still apply. */
15877 rm -f conftest.$ac_objext conftest$ac_exeext
15878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15879 (eval $ac_link) 2>&5
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); } &&
15883 { ac_try='test -s conftest$ac_exeext'
15884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15885 (eval $ac_try) 2>&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); }; }; then
15889 ac_cv_lib_socket_socket=yes
15891 echo "$as_me: failed program was:" >&5
15892 sed 's/^/| /' conftest.$ac_ext >&5
15894 ac_cv_lib_socket_socket=no
15896 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15897 LIBS=$ac_check_lib_save_LIBS
15899 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15900 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15901 if test $ac_cv_lib_socket_socket = yes; then
15902 cat >>confdefs.h <<_ACEOF
15903 #define HAVE_LIBSOCKET 1
15906 LIBS="-lsocket $LIBS"
15911 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15912 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15913 if test "${ac_cv_lib_inet_socket+set}" = set; then
15914 echo $ECHO_N "(cached) $ECHO_C" >&6
15916 ac_check_lib_save_LIBS=$LIBS
15917 LIBS="-linet $LIBS"
15918 cat >conftest.$ac_ext <<_ACEOF
15919 #line $LINENO "configure"
15922 cat confdefs.h >>conftest.$ac_ext
15923 cat >>conftest.$ac_ext <<_ACEOF
15924 /* end confdefs.h. */
15926 /* Override any gcc2 internal prototype to avoid an error. */
15930 /* We use char because int might match the return type of a gcc2
15931 builtin and then its argument prototype would still apply. */
15941 rm -f conftest.$ac_objext conftest$ac_exeext
15942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15943 (eval $ac_link) 2>&5
15945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); } &&
15947 { ac_try='test -s conftest$ac_exeext'
15948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15949 (eval $ac_try) 2>&5
15951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15952 (exit $ac_status); }; }; then
15953 ac_cv_lib_inet_socket=yes
15955 echo "$as_me: failed program was:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15958 ac_cv_lib_inet_socket=no
15960 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15961 LIBS=$ac_check_lib_save_LIBS
15963 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15964 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15965 if test $ac_cv_lib_inet_socket = yes; then
15966 cat >>confdefs.h <<_ACEOF
15967 #define HAVE_LIBINET 1
15970 LIBS="-linet $LIBS"
15978 for ac_func in inet_pton
15980 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15981 echo "$as_me:$LINENO: checking for $ac_func" >&5
15982 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15983 if eval "test \"\${$as_ac_var+set}\" = set"; then
15984 echo $ECHO_N "(cached) $ECHO_C" >&6
15986 cat >conftest.$ac_ext <<_ACEOF
15987 #line $LINENO "configure"
15990 cat confdefs.h >>conftest.$ac_ext
15991 cat >>conftest.$ac_ext <<_ACEOF
15992 /* end confdefs.h. */
15993 /* System header to define __stub macros and hopefully few prototypes,
15994 which can conflict with char $ac_func (); below.
15995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15996 <limits.h> exists even on freestanding compilers. */
15998 # include <limits.h>
16000 # include <assert.h>
16002 /* Override any gcc2 internal prototype to avoid an error. */
16007 /* We use char because int might match the return type of a gcc2
16008 builtin and then its argument prototype would still apply. */
16010 /* The GNU C library defines this for functions which it implements
16011 to always fail with ENOSYS. Some functions are actually named
16012 something starting with __ and the normal name is an alias. */
16013 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16016 char (*f) () = $ac_func;
16025 return f != $ac_func;
16030 rm -f conftest.$ac_objext conftest$ac_exeext
16031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16032 (eval $ac_link) 2>&5
16034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16035 (exit $ac_status); } &&
16036 { ac_try='test -s conftest$ac_exeext'
16037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16038 (eval $ac_try) 2>&5
16040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16041 (exit $ac_status); }; }; then
16042 eval "$as_ac_var=yes"
16044 echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16047 eval "$as_ac_var=no"
16049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16053 if test `eval echo '${'$as_ac_var'}'` = yes; then
16054 cat >>confdefs.h <<_ACEOF
16055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16057 cat >>confdefs.h <<\_ACEOF
16058 #define HAVE_INET_PTON 1
16066 for ac_func in strftime
16068 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16069 echo "$as_me:$LINENO: checking for $ac_func" >&5
16070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16071 if eval "test \"\${$as_ac_var+set}\" = set"; then
16072 echo $ECHO_N "(cached) $ECHO_C" >&6
16074 cat >conftest.$ac_ext <<_ACEOF
16075 #line $LINENO "configure"
16078 cat confdefs.h >>conftest.$ac_ext
16079 cat >>conftest.$ac_ext <<_ACEOF
16080 /* end confdefs.h. */
16081 /* System header to define __stub macros and hopefully few prototypes,
16082 which can conflict with char $ac_func (); below.
16083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16084 <limits.h> exists even on freestanding compilers. */
16086 # include <limits.h>
16088 # include <assert.h>
16090 /* Override any gcc2 internal prototype to avoid an error. */
16095 /* We use char because int might match the return type of a gcc2
16096 builtin and then its argument prototype would still apply. */
16098 /* The GNU C library defines this for functions which it implements
16099 to always fail with ENOSYS. Some functions are actually named
16100 something starting with __ and the normal name is an alias. */
16101 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16104 char (*f) () = $ac_func;
16113 return f != $ac_func;
16118 rm -f conftest.$ac_objext conftest$ac_exeext
16119 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16120 (eval $ac_link) 2>&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); } &&
16124 { ac_try='test -s conftest$ac_exeext'
16125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126 (eval $ac_try) 2>&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; }; then
16130 eval "$as_ac_var=yes"
16132 echo "$as_me: failed program was:" >&5
16133 sed 's/^/| /' conftest.$ac_ext >&5
16135 eval "$as_ac_var=no"
16137 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16139 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16140 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16141 if test `eval echo '${'$as_ac_var'}'` = yes; then
16142 cat >>confdefs.h <<_ACEOF
16143 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16147 # strftime is in -lintl on SCO UNIX.
16148 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16149 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16150 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16151 echo $ECHO_N "(cached) $ECHO_C" >&6
16153 ac_check_lib_save_LIBS=$LIBS
16154 LIBS="-lintl $LIBS"
16155 cat >conftest.$ac_ext <<_ACEOF
16156 #line $LINENO "configure"
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h. */
16163 /* Override any gcc2 internal prototype to avoid an error. */
16167 /* We use char because int might match the return type of a gcc2
16168 builtin and then its argument prototype would still apply. */
16178 rm -f conftest.$ac_objext conftest$ac_exeext
16179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16180 (eval $ac_link) 2>&5
16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16183 (exit $ac_status); } &&
16184 { ac_try='test -s conftest$ac_exeext'
16185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16186 (eval $ac_try) 2>&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); }; }; then
16190 ac_cv_lib_intl_strftime=yes
16192 echo "$as_me: failed program was:" >&5
16193 sed 's/^/| /' conftest.$ac_ext >&5
16195 ac_cv_lib_intl_strftime=no
16197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16198 LIBS=$ac_check_lib_save_LIBS
16200 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16201 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16202 if test $ac_cv_lib_intl_strftime = yes; then
16203 cat >>confdefs.h <<\_ACEOF
16204 #define HAVE_STRFTIME 1
16207 LIBS="-lintl $LIBS"
16214 for ac_func in vprintf
16216 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16217 echo "$as_me:$LINENO: checking for $ac_func" >&5
16218 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16219 if eval "test \"\${$as_ac_var+set}\" = set"; then
16220 echo $ECHO_N "(cached) $ECHO_C" >&6
16222 cat >conftest.$ac_ext <<_ACEOF
16223 #line $LINENO "configure"
16226 cat confdefs.h >>conftest.$ac_ext
16227 cat >>conftest.$ac_ext <<_ACEOF
16228 /* end confdefs.h. */
16229 /* System header to define __stub macros and hopefully few prototypes,
16230 which can conflict with char $ac_func (); below.
16231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16232 <limits.h> exists even on freestanding compilers. */
16234 # include <limits.h>
16236 # include <assert.h>
16238 /* Override any gcc2 internal prototype to avoid an error. */
16243 /* We use char because int might match the return type of a gcc2
16244 builtin and then its argument prototype would still apply. */
16246 /* The GNU C library defines this for functions which it implements
16247 to always fail with ENOSYS. Some functions are actually named
16248 something starting with __ and the normal name is an alias. */
16249 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16252 char (*f) () = $ac_func;
16261 return f != $ac_func;
16266 rm -f conftest.$ac_objext conftest$ac_exeext
16267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16268 (eval $ac_link) 2>&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); } &&
16272 { ac_try='test -s conftest$ac_exeext'
16273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16274 (eval $ac_try) 2>&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); }; }; then
16278 eval "$as_ac_var=yes"
16280 echo "$as_me: failed program was:" >&5
16281 sed 's/^/| /' conftest.$ac_ext >&5
16283 eval "$as_ac_var=no"
16285 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16287 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16288 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16289 if test `eval echo '${'$as_ac_var'}'` = yes; then
16290 cat >>confdefs.h <<_ACEOF
16291 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16294 echo "$as_me:$LINENO: checking for _doprnt" >&5
16295 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16296 if test "${ac_cv_func__doprnt+set}" = set; then
16297 echo $ECHO_N "(cached) $ECHO_C" >&6
16299 cat >conftest.$ac_ext <<_ACEOF
16300 #line $LINENO "configure"
16303 cat confdefs.h >>conftest.$ac_ext
16304 cat >>conftest.$ac_ext <<_ACEOF
16305 /* end confdefs.h. */
16306 /* System header to define __stub macros and hopefully few prototypes,
16307 which can conflict with char _doprnt (); below.
16308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16309 <limits.h> exists even on freestanding compilers. */
16311 # include <limits.h>
16313 # include <assert.h>
16315 /* Override any gcc2 internal prototype to avoid an error. */
16320 /* We use char because int might match the return type of a gcc2
16321 builtin and then its argument prototype would still apply. */
16323 /* The GNU C library defines this for functions which it implements
16324 to always fail with ENOSYS. Some functions are actually named
16325 something starting with __ and the normal name is an alias. */
16326 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16329 char (*f) () = _doprnt;
16338 return f != _doprnt;
16343 rm -f conftest.$ac_objext conftest$ac_exeext
16344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16345 (eval $ac_link) 2>&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } &&
16349 { ac_try='test -s conftest$ac_exeext'
16350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16351 (eval $ac_try) 2>&5
16353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354 (exit $ac_status); }; }; then
16355 ac_cv_func__doprnt=yes
16357 echo "$as_me: failed program was:" >&5
16358 sed 's/^/| /' conftest.$ac_ext >&5
16360 ac_cv_func__doprnt=no
16362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16364 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16365 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16366 if test $ac_cv_func__doprnt = yes; then
16368 cat >>confdefs.h <<\_ACEOF
16369 #define HAVE_DOPRNT 1
16378 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16379 # for constant arguments. Useless!
16380 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16381 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16382 if test "${ac_cv_working_alloca_h+set}" = set; then
16383 echo $ECHO_N "(cached) $ECHO_C" >&6
16385 cat >conftest.$ac_ext <<_ACEOF
16386 #line $LINENO "configure"
16389 cat confdefs.h >>conftest.$ac_ext
16390 cat >>conftest.$ac_ext <<_ACEOF
16391 /* end confdefs.h. */
16392 #include <alloca.h>
16396 char *p = (char *) alloca (2 * sizeof (int));
16401 rm -f conftest.$ac_objext conftest$ac_exeext
16402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16403 (eval $ac_link) 2>&5
16405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16406 (exit $ac_status); } &&
16407 { ac_try='test -s conftest$ac_exeext'
16408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16409 (eval $ac_try) 2>&5
16411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16412 (exit $ac_status); }; }; then
16413 ac_cv_working_alloca_h=yes
16415 echo "$as_me: failed program was:" >&5
16416 sed 's/^/| /' conftest.$ac_ext >&5
16418 ac_cv_working_alloca_h=no
16420 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16422 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16423 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16424 if test $ac_cv_working_alloca_h = yes; then
16426 cat >>confdefs.h <<\_ACEOF
16427 #define HAVE_ALLOCA_H 1
16432 echo "$as_me:$LINENO: checking for alloca" >&5
16433 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16434 if test "${ac_cv_func_alloca_works+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. */
16445 # define alloca __builtin_alloca
16448 # include <malloc.h>
16449 # define alloca _alloca
16452 # include <alloca.h>
16457 # ifndef alloca /* predefined by HP cc +Olibcalls */
16468 char *p = (char *) alloca (1);
16473 rm -f conftest.$ac_objext conftest$ac_exeext
16474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16475 (eval $ac_link) 2>&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } &&
16479 { ac_try='test -s conftest$ac_exeext'
16480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16481 (eval $ac_try) 2>&5
16483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16484 (exit $ac_status); }; }; then
16485 ac_cv_func_alloca_works=yes
16487 echo "$as_me: failed program was:" >&5
16488 sed 's/^/| /' conftest.$ac_ext >&5
16490 ac_cv_func_alloca_works=no
16492 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16494 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16495 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16497 if test $ac_cv_func_alloca_works = yes; then
16499 cat >>confdefs.h <<\_ACEOF
16500 #define HAVE_ALLOCA 1
16504 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16505 # that cause trouble. Some versions do not even contain alloca or
16506 # contain a buggy version. If you still want to use their alloca,
16507 # use ar to extract alloca.o from them instead of compiling alloca.c.
16509 ALLOCA=alloca.$ac_objext
16511 cat >>confdefs.h <<\_ACEOF
16516 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16517 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16518 if test "${ac_cv_os_cray+set}" = set; then
16519 echo $ECHO_N "(cached) $ECHO_C" >&6
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 #if defined(CRAY) && ! defined(CRAY2)
16535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16536 $EGREP "webecray" >/dev/null 2>&1; then
16544 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16545 echo "${ECHO_T}$ac_cv_os_cray" >&6
16546 if test $ac_cv_os_cray = yes; then
16547 for ac_func in _getb67 GETB67 getb67; do
16548 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16549 echo "$as_me:$LINENO: checking for $ac_func" >&5
16550 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16551 if eval "test \"\${$as_ac_var+set}\" = set"; then
16552 echo $ECHO_N "(cached) $ECHO_C" >&6
16554 cat >conftest.$ac_ext <<_ACEOF
16555 #line $LINENO "configure"
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h. */
16561 /* System header to define __stub macros and hopefully few prototypes,
16562 which can conflict with char $ac_func (); below.
16563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16564 <limits.h> exists even on freestanding compilers. */
16566 # include <limits.h>
16568 # include <assert.h>
16570 /* Override any gcc2 internal prototype to avoid an error. */
16575 /* We use char because int might match the return type of a gcc2
16576 builtin and then its argument prototype would still apply. */
16578 /* The GNU C library defines this for functions which it implements
16579 to always fail with ENOSYS. Some functions are actually named
16580 something starting with __ and the normal name is an alias. */
16581 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16584 char (*f) () = $ac_func;
16593 return f != $ac_func;
16598 rm -f conftest.$ac_objext conftest$ac_exeext
16599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16600 (eval $ac_link) 2>&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } &&
16604 { ac_try='test -s conftest$ac_exeext'
16605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16606 (eval $ac_try) 2>&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); }; }; then
16610 eval "$as_ac_var=yes"
16612 echo "$as_me: failed program was:" >&5
16613 sed 's/^/| /' conftest.$ac_ext >&5
16615 eval "$as_ac_var=no"
16617 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16619 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16620 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16621 if test `eval echo '${'$as_ac_var'}'` = yes; then
16623 cat >>confdefs.h <<_ACEOF
16624 #define CRAY_STACKSEG_END $ac_func
16633 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16634 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16635 if test "${ac_cv_c_stack_direction+set}" = set; then
16636 echo $ECHO_N "(cached) $ECHO_C" >&6
16638 if test "$cross_compiling" = yes; then
16639 ac_cv_c_stack_direction=0
16641 cat >conftest.$ac_ext <<_ACEOF
16642 #line $LINENO "configure"
16645 cat confdefs.h >>conftest.$ac_ext
16646 cat >>conftest.$ac_ext <<_ACEOF
16647 /* end confdefs.h. */
16649 find_stack_direction ()
16651 static char *addr = 0;
16656 return find_stack_direction ();
16659 return (&dummy > addr) ? 1 : -1;
16665 exit (find_stack_direction () < 0);
16668 rm -f conftest$ac_exeext
16669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16670 (eval $ac_link) 2>&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16675 (eval $ac_try) 2>&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; }; then
16679 ac_cv_c_stack_direction=1
16681 echo "$as_me: program exited with status $ac_status" >&5
16682 echo "$as_me: failed program was:" >&5
16683 sed 's/^/| /' conftest.$ac_ext >&5
16685 ( exit $ac_status )
16686 ac_cv_c_stack_direction=-1
16688 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16691 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16692 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16694 cat >>confdefs.h <<_ACEOF
16695 #define STACK_DIRECTION $ac_cv_c_stack_direction
16701 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16702 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16703 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16704 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16705 echo $ECHO_N "(cached) $ECHO_C" >&6
16707 ac_check_lib_save_LIBS=$LIBS
16709 cat >conftest.$ac_ext <<_ACEOF
16710 #line $LINENO "configure"
16713 cat confdefs.h >>conftest.$ac_ext
16714 cat >>conftest.$ac_ext <<_ACEOF
16715 /* end confdefs.h. */
16717 /* Override any gcc2 internal prototype to avoid an error. */
16721 /* We use char because int might match the return type of a gcc2
16722 builtin and then its argument prototype would still apply. */
16732 rm -f conftest.$ac_objext conftest$ac_exeext
16733 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16734 (eval $ac_link) 2>&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } &&
16738 { ac_try='test -s conftest$ac_exeext'
16739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16740 (eval $ac_try) 2>&5
16742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16743 (exit $ac_status); }; }; then
16744 ac_cv_lib_sun_getmntent=yes
16746 echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16749 ac_cv_lib_sun_getmntent=no
16751 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16752 LIBS=$ac_check_lib_save_LIBS
16754 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16755 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16756 if test $ac_cv_lib_sun_getmntent = yes; then
16759 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16760 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16761 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16762 echo $ECHO_N "(cached) $ECHO_C" >&6
16764 ac_check_lib_save_LIBS=$LIBS
16766 cat >conftest.$ac_ext <<_ACEOF
16767 #line $LINENO "configure"
16770 cat confdefs.h >>conftest.$ac_ext
16771 cat >>conftest.$ac_ext <<_ACEOF
16772 /* end confdefs.h. */
16774 /* Override any gcc2 internal prototype to avoid an error. */
16778 /* We use char because int might match the return type of a gcc2
16779 builtin and then its argument prototype would still apply. */
16789 rm -f conftest.$ac_objext conftest$ac_exeext
16790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16791 (eval $ac_link) 2>&5
16793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); } &&
16795 { ac_try='test -s conftest$ac_exeext'
16796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16797 (eval $ac_try) 2>&5
16799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16800 (exit $ac_status); }; }; then
16801 ac_cv_lib_seq_getmntent=yes
16803 echo "$as_me: failed program was:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16806 ac_cv_lib_seq_getmntent=no
16808 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16809 LIBS=$ac_check_lib_save_LIBS
16811 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16812 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16813 if test $ac_cv_lib_seq_getmntent = yes; then
16816 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16817 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16818 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16819 echo $ECHO_N "(cached) $ECHO_C" >&6
16821 ac_check_lib_save_LIBS=$LIBS
16823 cat >conftest.$ac_ext <<_ACEOF
16824 #line $LINENO "configure"
16827 cat confdefs.h >>conftest.$ac_ext
16828 cat >>conftest.$ac_ext <<_ACEOF
16829 /* end confdefs.h. */
16831 /* Override any gcc2 internal prototype to avoid an error. */
16835 /* We use char because int might match the return type of a gcc2
16836 builtin and then its argument prototype would still apply. */
16846 rm -f conftest.$ac_objext conftest$ac_exeext
16847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16848 (eval $ac_link) 2>&5
16850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851 (exit $ac_status); } &&
16852 { ac_try='test -s conftest$ac_exeext'
16853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16854 (eval $ac_try) 2>&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; }; then
16858 ac_cv_lib_gen_getmntent=yes
16860 echo "$as_me: failed program was:" >&5
16861 sed 's/^/| /' conftest.$ac_ext >&5
16863 ac_cv_lib_gen_getmntent=no
16865 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16866 LIBS=$ac_check_lib_save_LIBS
16868 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16869 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16870 if test $ac_cv_lib_gen_getmntent = yes; then
16879 for ac_func in getmntent
16881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16882 echo "$as_me:$LINENO: checking for $ac_func" >&5
16883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16884 if eval "test \"\${$as_ac_var+set}\" = set"; then
16885 echo $ECHO_N "(cached) $ECHO_C" >&6
16887 cat >conftest.$ac_ext <<_ACEOF
16888 #line $LINENO "configure"
16891 cat confdefs.h >>conftest.$ac_ext
16892 cat >>conftest.$ac_ext <<_ACEOF
16893 /* end confdefs.h. */
16894 /* System header to define __stub macros and hopefully few prototypes,
16895 which can conflict with char $ac_func (); below.
16896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16897 <limits.h> exists even on freestanding compilers. */
16899 # include <limits.h>
16901 # include <assert.h>
16903 /* Override any gcc2 internal prototype to avoid an error. */
16908 /* We use char because int might match the return type of a gcc2
16909 builtin and then its argument prototype would still apply. */
16911 /* The GNU C library defines this for functions which it implements
16912 to always fail with ENOSYS. Some functions are actually named
16913 something starting with __ and the normal name is an alias. */
16914 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16917 char (*f) () = $ac_func;
16926 return f != $ac_func;
16931 rm -f conftest.$ac_objext conftest$ac_exeext
16932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16933 (eval $ac_link) 2>&5
16935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16936 (exit $ac_status); } &&
16937 { ac_try='test -s conftest$ac_exeext'
16938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16939 (eval $ac_try) 2>&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); }; }; then
16943 eval "$as_ac_var=yes"
16945 echo "$as_me: failed program was:" >&5
16946 sed 's/^/| /' conftest.$ac_ext >&5
16948 eval "$as_ac_var=no"
16950 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16952 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16953 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16954 if test `eval echo '${'$as_ac_var'}'` = yes; then
16955 cat >>confdefs.h <<_ACEOF
16956 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16963 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16964 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16965 if test "${ac_cv_func_closedir_void+set}" = set; then
16966 echo $ECHO_N "(cached) $ECHO_C" >&6
16968 if test "$cross_compiling" = yes; then
16969 ac_cv_func_closedir_void=yes
16971 cat >conftest.$ac_ext <<_ACEOF
16972 #line $LINENO "configure"
16975 cat confdefs.h >>conftest.$ac_ext
16976 cat >>conftest.$ac_ext <<_ACEOF
16977 /* end confdefs.h. */
16978 $ac_includes_default
16979 #include <$ac_header_dirent>
16980 #ifndef __cplusplus
16987 exit (closedir (opendir (".")) != 0);
16992 rm -f conftest$ac_exeext
16993 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16994 (eval $ac_link) 2>&5
16996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16999 (eval $ac_try) 2>&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; }; then
17003 ac_cv_func_closedir_void=no
17005 echo "$as_me: program exited with status $ac_status" >&5
17006 echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17009 ( exit $ac_status )
17010 ac_cv_func_closedir_void=yes
17012 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17015 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17016 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17017 if test $ac_cv_func_closedir_void = yes; then
17019 cat >>confdefs.h <<\_ACEOF
17020 #define CLOSEDIR_VOID 1
17025 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17026 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17027 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17028 echo $ECHO_N "(cached) $ECHO_C" >&6
17030 if test "$cross_compiling" = yes; then
17031 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17032 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17033 { (exit 1); exit 1; }; }
17035 cat >conftest.$ac_ext <<_ACEOF
17036 #line $LINENO "configure"
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17043 # include <unistd.h>
17049 /* If this system has a BSD-style setpgrp which takes arguments,
17050 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17051 exit successfully. */
17052 exit (setpgrp (1,1) == -1 ? 0 : 1);
17057 rm -f conftest$ac_exeext
17058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17059 (eval $ac_link) 2>&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17064 (eval $ac_try) 2>&5
17066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17067 (exit $ac_status); }; }; then
17068 ac_cv_func_setpgrp_void=no
17070 echo "$as_me: program exited with status $ac_status" >&5
17071 echo "$as_me: failed program was:" >&5
17072 sed 's/^/| /' conftest.$ac_ext >&5
17074 ( exit $ac_status )
17075 ac_cv_func_setpgrp_void=yes
17077 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17080 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17081 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17082 if test $ac_cv_func_setpgrp_void = yes; then
17084 cat >>confdefs.h <<\_ACEOF
17085 #define SETPGRP_VOID 1
17089 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17090 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17091 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17092 echo $ECHO_N "(cached) $ECHO_C" >&6
17094 # Some versions of Solaris, SCO, and the GNU C Library
17095 # have a broken or incompatible fnmatch.
17096 # So we run a test program. If we are cross-compiling, take no chance.
17097 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17098 if test "$cross_compiling" = yes; then
17099 ac_cv_func_fnmatch_works=cross
17101 cat >conftest.$ac_ext <<_ACEOF
17102 #line $LINENO "configure"
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h. */
17108 #include <fnmatch.h>
17109 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17110 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17116 (!(y ("a*", "abc", 0)
17117 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17118 && y ("a\\\\bc", "abc", 0)
17119 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17120 && y ("*x", ".x", 0)
17121 && n ("*x", ".x", FNM_PERIOD)
17127 rm -f conftest$ac_exeext
17128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17129 (eval $ac_link) 2>&5
17131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134 (eval $ac_try) 2>&5
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; }; then
17138 ac_cv_func_fnmatch_works=yes
17140 echo "$as_me: program exited with status $ac_status" >&5
17141 echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17144 ( exit $ac_status )
17145 ac_cv_func_fnmatch_works=no
17147 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17150 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17151 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17152 if test $ac_cv_func_fnmatch_works = yes; then
17154 cat >>confdefs.h <<\_ACEOF
17155 #define HAVE_FNMATCH 1
17164 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17165 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17166 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17167 echo $ECHO_N "(cached) $ECHO_C" >&6
17169 ac_check_lib_save_LIBS=$LIBS
17170 LIBS="-lxpg4 $LIBS"
17171 cat >conftest.$ac_ext <<_ACEOF
17172 #line $LINENO "configure"
17175 cat confdefs.h >>conftest.$ac_ext
17176 cat >>conftest.$ac_ext <<_ACEOF
17177 /* end confdefs.h. */
17179 /* Override any gcc2 internal prototype to avoid an error. */
17183 /* We use char because int might match the return type of a gcc2
17184 builtin and then its argument prototype would still apply. */
17194 rm -f conftest.$ac_objext conftest$ac_exeext
17195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17196 (eval $ac_link) 2>&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); } &&
17200 { ac_try='test -s conftest$ac_exeext'
17201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17202 (eval $ac_try) 2>&5
17204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17205 (exit $ac_status); }; }; then
17206 ac_cv_lib_xpg4_setlocale=yes
17208 echo "$as_me: failed program was:" >&5
17209 sed 's/^/| /' conftest.$ac_ext >&5
17211 ac_cv_lib_xpg4_setlocale=no
17213 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17214 LIBS=$ac_check_lib_save_LIBS
17216 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17217 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17218 if test $ac_cv_lib_xpg4_setlocale = yes; then
17219 LIBS="$LIBS -lxpg4"
17225 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17226 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17227 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17230 ac_check_lib_save_LIBS=$LIBS
17232 cat >conftest.$ac_ext <<_ACEOF
17233 #line $LINENO "configure"
17236 cat confdefs.h >>conftest.$ac_ext
17237 cat >>conftest.$ac_ext <<_ACEOF
17238 /* end confdefs.h. */
17240 /* Override any gcc2 internal prototype to avoid an error. */
17244 /* We use char because int might match the return type of a gcc2
17245 builtin and then its argument prototype would still apply. */
17255 rm -f conftest.$ac_objext conftest$ac_exeext
17256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17257 (eval $ac_link) 2>&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); } &&
17261 { ac_try='test -s conftest$ac_exeext'
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; }; then
17267 ac_cv_lib_sun_getpwnam=yes
17269 echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17272 ac_cv_lib_sun_getpwnam=no
17274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17275 LIBS=$ac_check_lib_save_LIBS
17277 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17278 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17279 if test $ac_cv_lib_sun_getpwnam = yes; then
17280 cat >>confdefs.h <<_ACEOF
17281 #define HAVE_LIBSUN 1
17290 for ac_header in zlib.h
17292 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17294 echo "$as_me:$LINENO: checking for $ac_header" >&5
17295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17297 echo $ECHO_N "(cached) $ECHO_C" >&6
17299 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17300 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17302 # Is the header compilable?
17303 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17304 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17305 cat >conftest.$ac_ext <<_ACEOF
17306 #line $LINENO "configure"
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h. */
17312 $ac_includes_default
17313 #include <$ac_header>
17315 rm -f conftest.$ac_objext
17316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17317 (eval $ac_compile) 2>&5
17319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17320 (exit $ac_status); } &&
17321 { ac_try='test -s conftest.$ac_objext'
17322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17323 (eval $ac_try) 2>&5
17325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17326 (exit $ac_status); }; }; then
17327 ac_header_compiler=yes
17329 echo "$as_me: failed program was:" >&5
17330 sed 's/^/| /' conftest.$ac_ext >&5
17332 ac_header_compiler=no
17334 rm -f conftest.$ac_objext conftest.$ac_ext
17335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17336 echo "${ECHO_T}$ac_header_compiler" >&6
17338 # Is the header present?
17339 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17340 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17341 cat >conftest.$ac_ext <<_ACEOF
17342 #line $LINENO "configure"
17345 cat confdefs.h >>conftest.$ac_ext
17346 cat >>conftest.$ac_ext <<_ACEOF
17347 /* end confdefs.h. */
17348 #include <$ac_header>
17350 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17351 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17353 grep -v '^ *+' conftest.er1 >conftest.err
17355 cat conftest.err >&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); } >/dev/null; then
17358 if test -s conftest.err; then
17359 ac_cpp_err=$ac_c_preproc_warn_flag
17366 if test -z "$ac_cpp_err"; then
17367 ac_header_preproc=yes
17369 echo "$as_me: failed program was:" >&5
17370 sed 's/^/| /' conftest.$ac_ext >&5
17372 ac_header_preproc=no
17374 rm -f conftest.err conftest.$ac_ext
17375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17376 echo "${ECHO_T}$ac_header_preproc" >&6
17378 # So? What about this header?
17379 case $ac_header_compiler:$ac_header_preproc in
17381 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17382 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17387 ## ------------------------------------ ##
17388 ## Report this to bug-autoconf@gnu.org. ##
17389 ## ------------------------------------ ##
17392 sed "s/^/$as_me: WARNING: /" >&2
17395 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17396 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17397 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17398 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17400 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17403 ## ------------------------------------ ##
17404 ## Report this to bug-autoconf@gnu.org. ##
17405 ## ------------------------------------ ##
17408 sed "s/^/$as_me: WARNING: /" >&2
17411 echo "$as_me:$LINENO: checking for $ac_header" >&5
17412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17413 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17414 echo $ECHO_N "(cached) $ECHO_C" >&6
17416 eval "$as_ac_Header=$ac_header_preproc"
17418 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17419 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17422 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17423 cat >>confdefs.h <<_ACEOF
17424 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17431 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17432 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17433 if test "${ac_cv_lib_z_deflate+set}" = set; then
17434 echo $ECHO_N "(cached) $ECHO_C" >&6
17436 ac_check_lib_save_LIBS=$LIBS
17438 cat >conftest.$ac_ext <<_ACEOF
17439 #line $LINENO "configure"
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h. */
17446 /* Override any gcc2 internal prototype to avoid an error. */
17450 /* We use char because int might match the return type of a gcc2
17451 builtin and then its argument prototype would still apply. */
17461 rm -f conftest.$ac_objext conftest$ac_exeext
17462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17463 (eval $ac_link) 2>&5
17465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17466 (exit $ac_status); } &&
17467 { ac_try='test -s conftest$ac_exeext'
17468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469 (eval $ac_try) 2>&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); }; }; then
17473 ac_cv_lib_z_deflate=yes
17475 echo "$as_me: failed program was:" >&5
17476 sed 's/^/| /' conftest.$ac_ext >&5
17478 ac_cv_lib_z_deflate=no
17480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17481 LIBS=$ac_check_lib_save_LIBS
17483 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17484 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17485 if test $ac_cv_lib_z_deflate = yes; then
17490 if test x$FDLIBS = x-lz; then
17491 cat >>confdefs.h <<\_ACEOF
17492 #define HAVE_LIBZ 1
17499 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17500 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17501 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17502 echo $ECHO_N "(cached) $ECHO_C" >&6
17504 ac_check_lib_save_LIBS=$LIBS
17505 LIBS="-lpthread $LIBS"
17506 cat >conftest.$ac_ext <<_ACEOF
17507 #line $LINENO "configure"
17510 cat confdefs.h >>conftest.$ac_ext
17511 cat >>conftest.$ac_ext <<_ACEOF
17512 /* end confdefs.h. */
17514 /* Override any gcc2 internal prototype to avoid an error. */
17518 /* We use char because int might match the return type of a gcc2
17519 builtin and then its argument prototype would still apply. */
17520 char pthread_create ();
17529 rm -f conftest.$ac_objext conftest$ac_exeext
17530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17531 (eval $ac_link) 2>&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } &&
17535 { ac_try='test -s conftest$ac_exeext'
17536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; }; then
17541 ac_cv_lib_pthread_pthread_create=yes
17543 echo "$as_me: failed program was:" >&5
17544 sed 's/^/| /' conftest.$ac_ext >&5
17546 ac_cv_lib_pthread_pthread_create=no
17548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17549 LIBS=$ac_check_lib_save_LIBS
17551 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17552 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17553 if test $ac_cv_lib_pthread_pthread_create = yes; then
17554 PTHREAD_LIB="-lpthread"
17556 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17557 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17558 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17559 echo $ECHO_N "(cached) $ECHO_C" >&6
17561 ac_check_lib_save_LIBS=$LIBS
17562 LIBS="-lpthreads $LIBS"
17563 cat >conftest.$ac_ext <<_ACEOF
17564 #line $LINENO "configure"
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17571 /* Override any gcc2 internal prototype to avoid an error. */
17575 /* We use char because int might match the return type of a gcc2
17576 builtin and then its argument prototype would still apply. */
17577 char pthread_create ();
17586 rm -f conftest.$ac_objext conftest$ac_exeext
17587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17588 (eval $ac_link) 2>&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); } &&
17592 { ac_try='test -s conftest$ac_exeext'
17593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; }; then
17598 ac_cv_lib_pthreads_pthread_create=yes
17600 echo "$as_me: failed program was:" >&5
17601 sed 's/^/| /' conftest.$ac_ext >&5
17603 ac_cv_lib_pthreads_pthread_create=no
17605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17606 LIBS=$ac_check_lib_save_LIBS
17608 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17609 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17610 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17611 PTHREAD_LIB="-lpthreads"
17613 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17614 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17615 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17616 echo $ECHO_N "(cached) $ECHO_C" >&6
17618 ac_check_lib_save_LIBS=$LIBS
17620 cat >conftest.$ac_ext <<_ACEOF
17621 #line $LINENO "configure"
17624 cat confdefs.h >>conftest.$ac_ext
17625 cat >>conftest.$ac_ext <<_ACEOF
17626 /* end confdefs.h. */
17628 /* Override any gcc2 internal prototype to avoid an error. */
17632 /* We use char because int might match the return type of a gcc2
17633 builtin and then its argument prototype would still apply. */
17634 char pthread_create ();
17643 rm -f conftest.$ac_objext conftest$ac_exeext
17644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17645 (eval $ac_link) 2>&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); } &&
17649 { ac_try='test -s conftest$ac_exeext'
17650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17651 (eval $ac_try) 2>&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; }; then
17655 ac_cv_lib_c_r_pthread_create=yes
17657 echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17660 ac_cv_lib_c_r_pthread_create=no
17662 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17663 LIBS=$ac_check_lib_save_LIBS
17665 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17666 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17667 if test $ac_cv_lib_c_r_pthread_create = yes; then
17668 PTHREAD_LIB="-lc_r"
17670 echo "$as_me:$LINENO: checking for pthread_create" >&5
17671 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17672 if test "${ac_cv_func_pthread_create+set}" = set; then
17673 echo $ECHO_N "(cached) $ECHO_C" >&6
17675 cat >conftest.$ac_ext <<_ACEOF
17676 #line $LINENO "configure"
17679 cat confdefs.h >>conftest.$ac_ext
17680 cat >>conftest.$ac_ext <<_ACEOF
17681 /* end confdefs.h. */
17682 /* System header to define __stub macros and hopefully few prototypes,
17683 which can conflict with char pthread_create (); below.
17684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17685 <limits.h> exists even on freestanding compilers. */
17687 # include <limits.h>
17689 # include <assert.h>
17691 /* Override any gcc2 internal prototype to avoid an error. */
17696 /* We use char because int might match the return type of a gcc2
17697 builtin and then its argument prototype would still apply. */
17698 char pthread_create ();
17699 /* The GNU C library defines this for functions which it implements
17700 to always fail with ENOSYS. Some functions are actually named
17701 something starting with __ and the normal name is an alias. */
17702 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17705 char (*f) () = pthread_create;
17714 return f != pthread_create;
17719 rm -f conftest.$ac_objext conftest$ac_exeext
17720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17721 (eval $ac_link) 2>&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); } &&
17725 { ac_try='test -s conftest$ac_exeext'
17726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17727 (eval $ac_try) 2>&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; }; then
17731 ac_cv_func_pthread_create=yes
17733 echo "$as_me: failed program was:" >&5
17734 sed 's/^/| /' conftest.$ac_ext >&5
17736 ac_cv_func_pthread_create=no
17738 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17740 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17741 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17754 cat >>confdefs.h <<\_ACEOF
17760 CFLAGS=${CFLAGS--O}
17761 LDFLAGS=${LDFLAGS--O}
17762 DB_LIBS="${SQL_LFLAGS}"
17764 CPPFLAGS="$CPPFLAGS"
17789 # Finally we set appropriate distribution specific
17790 # variables and defaults
17792 # PFILES are platform specific files
17793 PFILES="platforms/Makefile"
17796 hostname=`uname -n | cut -d '.' -f 1`
17797 case "$DISTNAME" in
17800 PSCMD="ps -e -o pid,comm"
17801 PFILES="${PFILES} \
17802 platforms/aix/Makefile"
17803 TAPEDRIVE="/dev/rmt0.1"
17807 PTHREAD_LIB="-lpthread -lexc"
17808 if test "${CC}" = "gcc" ; then
17815 TAPEDRIVE="/dev/nrmt0"
17818 DISTVER=`uname -a |awk '{print $3}'`
17819 TAPEDRIVE="/dev/nrmt0"
17820 PTHREAD_LIB="-pthread"
17821 CFLAGS="${CFLAGS} -pthread"
17822 PSCMD="ps -x -o pid,command"
17825 PFILES="${PFILES} \
17826 platforms/bsdi/Makefile \
17827 platforms/bsdi/bacula-fd \
17828 platforms/bsdi/bacula-sd \
17829 platforms/bsdi/bacula-dir"
17830 largefile_support="yes"
17833 DISTVER=`uname -a |awk '{print $3}'`
17834 TAPEDRIVE="/dev/nrst0"
17836 WCFLAGS="-mwindows"
17837 WLDFLAGS="-mwindows"
17841 TAPEDRIVE="/dev/nst0"
17842 PSCMD="ps -e -o pid,command"
17843 PFILES="${PFILES} \
17844 platforms/darwin/Makefile"
17847 DISTVER=`cat /etc/debian_version`
17848 TAPEDRIVE="/dev/nrst0"
17849 PSCMD="ps -e -o pid,command"
17852 DISTVER=`uname -a |awk '{print $3}'`
17853 VER=`echo $DISTVER | cut -c 1`
17854 if test x$VER = x4 ; then
17855 PTHREAD_LIB="-pthread"
17856 CFLAGS="${CFLAGS} -pthread"
17860 TAPEDRIVE="/dev/nrsa0"
17861 PSCMD="ps -x -o pid,command"
17862 PFILES="${PFILES} \
17863 platforms/freebsd/Makefile \
17864 platforms/freebsd/bacula-fd \
17865 platforms/freebsd/bacula-sd \
17866 platforms/freebsd/bacula-dir"
17867 largefile_support="yes"
17870 PSCMD="UNIX95=1 ps -e -o pid,comm"
17871 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
17873 TAPEDRIVE="/dev/rmt/0hnb"
17877 TAPEDRIVE="/dev/rmt/0cbn"
17878 PSCMD="ps -e -o pid,comm"
17879 PFILES="${PFILES} \
17880 platforms/irix/Makefile \
17881 platforms/irix/bacula-fd \
17882 platforms/irix/bacula-sd \
17883 platforms/irix/bacula-dir"
17886 DISTVER=`uname -a |awk '{print $3}'`
17889 TAPEDRIVE="/dev/nrst0"
17890 PSCMD="ps -a -o pid,command"
17891 PTHREAD_LIB="-pthread"
17892 CFLAGS="${CFLAGS} -pthread"
17895 DISTVER=`uname -a |awk '{print $3}'`
17898 TAPEDRIVE="/dev/nrst0"
17899 PSCMD="ps -a -o pid,command"
17900 PTHREAD_LIB="-pthread"
17901 CFLAGS="${CFLAGS} -pthread"
17902 PFILES="${PFILES} \
17903 platforms/openbsd/Makefile \
17904 platforms/openbsd/bacula-fd \
17905 platforms/openbsd/bacula-sd \
17906 platforms/openbsd/bacula-dir"
17909 if test `cat /etc/redhat-release | grep release |\
17910 cut -f 3 -d ' '`x = "Enterprise"x ; then
17911 DISTVER="Enterprise "`cat /etc/redhat-release | grep release |\
17914 DISTVER=`cat /etc/redhat-release | grep release |\
17917 TAPEDRIVE="/dev/nst0"
17918 PSCMD="ps -e -o pid,command"
17919 PFILES="${PFILES} \
17920 platforms/redhat/Makefile \
17921 platforms/redhat/bacula-fd \
17922 platforms/redhat/bacula-sd \
17923 platforms/redhat/bacula-dir \
17924 platforms/redhat/bacula.spec \
17926 hostname=`hostname -s`
17929 DISTVER=`cat /etc/mandrake-release | grep release |\
17931 TAPEDRIVE="/dev/nst0"
17932 PSCMD="ps -e -o pid,command"
17933 PFILES="${PFILES} \
17934 platforms/mandrake/Makefile \
17935 platforms/mandrake/bacula-fd \
17936 platforms/mandrake/bacula-sd \
17937 platforms/mandrake/bacula-dir \
17938 platforms/mandrake/bacula.spec \
17942 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17943 TAPEDRIVE="/dev/nst0"
17944 PSCMD="ps -e -o pid,command"
17945 PFILES="${PFILES} \
17946 platforms/gentoo/Makefile \
17947 platforms/gentoo/bacula-fd \
17948 platforms/gentoo/bacula-sd \
17949 platforms/gentoo/bacula-dir"
17952 DISTVER=`cat /etc/slackware-version`
17953 TAPEDRIVE="/dev/nst0"
17954 PSCMD="ps -e -o pid,command"
17955 PFILES="${PFILES} \
17956 platforms/slackware/Makefile \
17957 platforms/slackware/rc.bacula-fd \
17958 platforms/slackware/rc.bacula-sd \
17959 platforms/slackware/rc.bacula-dir\
17960 platforms/slackware/functions.bacula"
17964 TAPEDRIVE="/dev/rmt/0cbn"
17965 PSCMD="ps -e -o pid,comm"
17966 PFILES="${PFILES} \
17967 platforms/solaris/Makefile \
17968 platforms/solaris/bacula-fd \
17969 platforms/solaris/bacula-sd \
17970 platforms/solaris/bacula-dir"
17971 if test x$DISTVER = x5.6 ; then
17972 cat >>confdefs.h <<\_ACEOF
17973 #define HAVE_OLD_SOCKOPT 1
17979 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17981 TAPEDRIVE="/dev/nst0"
17982 PSCMD="ps -e -o pid,command"
17983 PFILES="${PFILES} \
17984 platforms/suse/Makefile \
17985 platforms/suse/bacula-fd \
17986 platforms/suse/bacula-sd \
17987 platforms/suse/bacula-dir \
17988 platforms/suse/bacula \
17989 platforms/suse/bacula.spec"
17994 TAPEDRIVE="/dev/nst0"
17995 PSCMD="ps -e -o pid,command"
17996 PFILES="${PFILES} \
17997 platforms/suse/Makefile \
17998 platforms/suse/bacula-fd \
17999 platforms/suse/bacula-sd \
18000 platforms/suse/bacula-dir"
18004 TAPEDRIVE="/dev/nst0"
18007 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18013 LIBS="$PTHREAD_LIB $LIBS"
18015 cat >>confdefs.h <<_ACEOF
18019 cat >>confdefs.h <<_ACEOF
18029 MCOMMON=./autoconf/Make.common
18032 if test "x${subsysdir}" = "x${sbindir}" ; then
18035 echo "You have set both --sbindir and --with-subsys-dir"
18036 echo " equal to: ${subsysdir} "
18037 echo "This is not permitted. Please reconfigure."
18039 echo "Aborting configuration ..."
18045 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/devel_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/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile $PFILES"
18046 ac_config_commands="$ac_config_commands default"
18047 cat >confcache <<\_ACEOF
18048 # This file is a shell script that caches the results of configure
18049 # tests run on this system so they can be shared between configure
18050 # scripts and configure runs, see configure's option --config-cache.
18051 # It is not useful on other systems. If it contains results you don't
18052 # want to keep, you may remove or edit it.
18054 # config.status only pays attention to the cache file if you give it
18055 # the --recheck option to rerun configure.
18057 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18058 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18059 # following values.
18063 # The following way of writing the cache mishandles newlines in values,
18064 # but we know of no workaround that is simple, portable, and efficient.
18065 # So, don't put newlines in cache variables' values.
18066 # Ultrix sh set writes to stderr and can't be redirected directly,
18067 # and sets the high bit in the cache file unless we assign to the vars.
18070 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18072 # `set' does not quote correctly, so add quotes (double-quote
18073 # substitution turns \\\\ into \\, and sed turns \\ into \).
18076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18079 # `set' quotes correctly as required by POSIX, so do not add quotes.
18081 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18088 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18090 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18092 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18093 if test -w $cache_file; then
18094 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18095 cat confcache >$cache_file
18097 echo "not updating unwritable cache $cache_file"
18102 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18103 # Let make expand exec_prefix.
18104 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18106 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18107 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18108 # trailing colons and then remove the whole line if VPATH becomes empty
18109 # (actually we leave an empty line to preserve line numbers).
18110 if test "x$srcdir" = x.; then
18111 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18112 s/:*\$(srcdir):*/:/;
18113 s/:*\${srcdir}:*/:/;
18115 s/^\([^=]*=[ ]*\):*/\1/;
18121 DEFS=-DHAVE_CONFIG_H
18125 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18126 # 1. Remove the extension, and $U if already installed.
18127 ac_i=`echo "$ac_i" |
18128 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18130 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18131 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18133 LIBOBJS=$ac_libobjs
18135 LTLIBOBJS=$ac_ltlibobjs
18139 : ${CONFIG_STATUS=./config.status}
18140 ac_clean_files_save=$ac_clean_files
18141 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18142 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18143 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18144 cat >$CONFIG_STATUS <<_ACEOF
18146 # Generated by $as_me.
18147 # Run this file to recreate the current configuration.
18148 # Compiler output produced by configure, useful for debugging
18149 # configure, is in config.log if it exists.
18152 ac_cs_recheck=false
18154 SHELL=\${CONFIG_SHELL-$SHELL}
18157 cat >>$CONFIG_STATUS <<\_ACEOF
18158 ## --------------------- ##
18159 ## M4sh Initialization. ##
18160 ## --------------------- ##
18162 # Be Bourne compatible
18163 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18166 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18167 # is contrary to our usage. Disable this feature.
18168 alias -g '${1+"$@"}'='"$@"'
18169 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18173 # Support unset when possible.
18174 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18181 # Work around bugs in pre-3.0 UWIN ksh.
18182 $as_unset ENV MAIL MAILPATH
18189 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18190 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18191 LC_TELEPHONE LC_TIME
18193 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18194 eval $as_var=C; export $as_var
18200 # Required to use basename.
18201 if expr a : '\(a\)' >/dev/null 2>&1; then
18207 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18208 as_basename=basename
18214 # Name of the executable.
18215 as_me=`$as_basename "$0" ||
18216 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18217 X"$0" : 'X\(//\)$' \| \
18218 X"$0" : 'X\(/\)$' \| \
18219 . : '\(.\)' 2>/dev/null ||
18221 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18222 /^X\/\(\/\/\)$/{ s//\1/; q; }
18223 /^X\/\(\/\).*/{ s//\1/; q; }
18227 # PATH needs CR, and LINENO needs CR and PATH.
18228 # Avoid depending upon Character Ranges.
18229 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18230 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18231 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18232 as_cr_digits='0123456789'
18233 as_cr_alnum=$as_cr_Letters$as_cr_digits
18235 # The user is always right.
18236 if test "${PATH_SEPARATOR+set}" != set; then
18237 echo "#! /bin/sh" >conf$$.sh
18238 echo "exit 0" >>conf$$.sh
18240 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18249 as_lineno_1=$LINENO
18250 as_lineno_2=$LINENO
18251 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18252 test "x$as_lineno_1" != "x$as_lineno_2" &&
18253 test "x$as_lineno_3" = "x$as_lineno_2" || {
18254 # Find who we are. Look in the path if we contain no path at all
18257 *[\\/]* ) as_myself=$0 ;;
18258 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18259 for as_dir in $PATH
18262 test -z "$as_dir" && as_dir=.
18263 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18268 # We did not find ourselves, most probably we were run as `sh COMMAND'
18269 # in which case we are not to be found in the path.
18270 if test "x$as_myself" = x; then
18273 if test ! -f "$as_myself"; then
18274 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18275 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18276 { (exit 1); exit 1; }; }
18278 case $CONFIG_SHELL in
18280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18281 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18284 test -z "$as_dir" && as_dir=.
18285 for as_base in sh bash ksh sh5; do
18288 if ("$as_dir/$as_base" -c '
18289 as_lineno_1=$LINENO
18290 as_lineno_2=$LINENO
18291 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18292 test "x$as_lineno_1" != "x$as_lineno_2" &&
18293 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18294 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18295 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18296 CONFIG_SHELL=$as_dir/$as_base
18297 export CONFIG_SHELL
18298 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18306 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18307 # uniformly replaced by the line number. The first 'sed' inserts a
18308 # line-number line before each line; the second 'sed' does the real
18309 # work. The second script uses 'N' to pair each line-number line
18310 # with the numbered line, and appends trailing '-' during
18311 # substitution so that $LINENO is not a special case at line end.
18312 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18313 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18314 sed '=' <$as_myself |
18319 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18322 s,^['$as_cr_digits']*\n,,
18323 ' >$as_me.lineno &&
18324 chmod +x $as_me.lineno ||
18325 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18326 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18327 { (exit 1); exit 1; }; }
18329 # Don't try to exec as it changes $[0], causing all sort of problems
18330 # (the dirname of $[0] is not the place where we might find the
18331 # original and so on. Autoconf is especially sensible to this).
18333 # Exit status is that of the last command.
18338 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18339 *c*,-n*) ECHO_N= ECHO_C='
18341 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18342 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18345 if expr a : '\(a\)' >/dev/null 2>&1; then
18351 rm -f conf$$ conf$$.exe conf$$.file
18353 if ln -s conf$$.file conf$$ 2>/dev/null; then
18354 # We could just check for DJGPP; but this test a) works b) is more generic
18355 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18356 if test -f conf$$.exe; then
18357 # Don't use ln at all; we don't have any links
18362 elif ln conf$$.file conf$$ 2>/dev/null; then
18367 rm -f conf$$ conf$$.exe conf$$.file
18369 if mkdir -p . 2>/dev/null; then
18375 as_executable_p="test -f"
18377 # Sed expression to map a string onto a valid CPP name.
18378 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18380 # Sed expression to map a string onto a valid variable name.
18381 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18385 # We need space, tab and new line, in precisely that order.
18395 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18396 # report actual input values of CONFIG_FILES etc. instead of their
18397 # values after options handling. Logging --version etc. is OK.
18401 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18402 ## Running $as_me. ##
18407 This file was extended by $as_me, which was
18408 generated by GNU Autoconf 2.57. Invocation command line was
18410 CONFIG_FILES = $CONFIG_FILES
18411 CONFIG_HEADERS = $CONFIG_HEADERS
18412 CONFIG_LINKS = $CONFIG_LINKS
18413 CONFIG_COMMANDS = $CONFIG_COMMANDS
18417 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18421 # Files that config.status was made for.
18422 if test -n "$ac_config_files"; then
18423 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18426 if test -n "$ac_config_headers"; then
18427 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18430 if test -n "$ac_config_links"; then
18431 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18434 if test -n "$ac_config_commands"; then
18435 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18438 cat >>$CONFIG_STATUS <<\_ACEOF
18441 \`$as_me' instantiates files from templates according to the
18442 current configuration.
18444 Usage: $0 [OPTIONS] [FILE]...
18446 -h, --help print this help, then exit
18447 -V, --version print version number, then exit
18448 -q, --quiet do not print progress messages
18449 -d, --debug don't remove temporary files
18450 --recheck update $as_me by reconfiguring in the same conditions
18451 --file=FILE[:TEMPLATE]
18452 instantiate the configuration file FILE
18453 --header=FILE[:TEMPLATE]
18454 instantiate the configuration header FILE
18456 Configuration files:
18459 Configuration headers:
18462 Configuration commands:
18465 Report bugs to <bug-autoconf@gnu.org>."
18468 cat >>$CONFIG_STATUS <<_ACEOF
18471 configured by $0, generated by GNU Autoconf 2.57,
18472 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18474 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18475 Free Software Foundation, Inc.
18476 This config.status script is free software; the Free Software Foundation
18477 gives unlimited permission to copy, distribute and modify it."
18482 cat >>$CONFIG_STATUS <<\_ACEOF
18483 # If no file are specified by the user, then we need to provide default
18484 # value. By we need to know if files were specified by the user.
18490 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18491 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18499 *) # This is not an option, so the user has probably given explicit
18502 ac_need_defaults=false;;
18506 # Handling of the options.
18508 cat >>$CONFIG_STATUS <<\_ACEOF
18509 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18511 --version | --vers* | -V )
18512 echo "$ac_cs_version"; exit 0 ;;
18514 # Conflict between --help and --header
18515 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18516 Try \`$0 --help' for more information." >&5
18517 echo "$as_me: error: ambiguous option: $1
18518 Try \`$0 --help' for more information." >&2;}
18519 { (exit 1); exit 1; }; };;
18520 --help | --hel | -h )
18521 echo "$ac_cs_usage"; exit 0 ;;
18522 --debug | --d* | -d )
18524 --file | --fil | --fi | --f )
18526 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18527 ac_need_defaults=false;;
18528 --header | --heade | --head | --hea )
18530 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18531 ac_need_defaults=false;;
18532 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18533 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18536 # This is an error.
18537 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18538 Try \`$0 --help' for more information." >&5
18539 echo "$as_me: error: unrecognized option: $1
18540 Try \`$0 --help' for more information." >&2;}
18541 { (exit 1); exit 1; }; } ;;
18543 *) ac_config_targets="$ac_config_targets $1" ;;
18549 ac_configure_extra_args=
18551 if $ac_cs_silent; then
18553 ac_configure_extra_args="$ac_configure_extra_args --silent"
18557 cat >>$CONFIG_STATUS <<_ACEOF
18558 if \$ac_cs_recheck; then
18559 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18560 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18569 cat >>$CONFIG_STATUS <<\_ACEOF
18570 for ac_config_target in $ac_config_targets
18572 case "$ac_config_target" in
18573 # Handling of arguments.
18574 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18575 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18576 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18577 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18578 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18579 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18580 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18581 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18582 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18583 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18584 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18585 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18586 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18587 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18588 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18589 "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18590 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18591 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18592 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18593 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18594 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18595 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18596 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18597 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18598 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18599 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18600 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18601 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18602 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18603 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18604 "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18605 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18606 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18607 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18608 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18609 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18610 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18611 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18612 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18613 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18614 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18615 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18616 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18617 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18618 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18619 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18620 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18621 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18622 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18623 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18624 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18625 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18626 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18627 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18628 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18629 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18630 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18631 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18632 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18633 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18634 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18635 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18636 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18637 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18638 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18639 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18640 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18641 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18642 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18643 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18644 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18645 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18646 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18647 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18648 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18649 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18650 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18651 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18652 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18653 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18654 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18655 { (exit 1); exit 1; }; };;
18659 # If the user did not use the arguments to specify the items to instantiate,
18660 # then the envvar interface is used. Set only those that are not.
18661 # We use the long form for the default assignment because of an extremely
18662 # bizarre bug on SunOS 4.1.3.
18663 if $ac_need_defaults; then
18664 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18665 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18666 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18669 # Have a temporary directory for convenience. Make it in the build tree
18670 # simply because there is no reason to put it here, and in addition,
18671 # creating and moving files from /tmp can sometimes cause problems.
18672 # Create a temporary directory, and hook for its removal unless debugging.
18675 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18676 trap '{ (exit 1); exit 1; }' 1 2 13 15
18679 # Create a (secure) tmp directory for tmp files.
18682 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18683 test -n "$tmp" && test -d "$tmp"
18686 tmp=./confstat$$-$RANDOM
18687 (umask 077 && mkdir $tmp)
18690 echo "$me: cannot create a temporary directory in ." >&2
18691 { (exit 1); exit 1; }
18696 cat >>$CONFIG_STATUS <<_ACEOF
18699 # CONFIG_FILES section.
18702 # No need to generate the scripts if there are no CONFIG_FILES.
18703 # This happens for instance when ./config.status config.h
18704 if test -n "\$CONFIG_FILES"; then
18705 # Protect against being on the right side of a sed subst in config.status.
18706 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18707 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18708 s,@SHELL@,$SHELL,;t t
18709 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18710 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18711 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18712 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18713 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18714 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18715 s,@exec_prefix@,$exec_prefix,;t t
18716 s,@prefix@,$prefix,;t t
18717 s,@program_transform_name@,$program_transform_name,;t t
18718 s,@bindir@,$bindir,;t t
18719 s,@sbindir@,$sbindir,;t t
18720 s,@libexecdir@,$libexecdir,;t t
18721 s,@datadir@,$datadir,;t t
18722 s,@sysconfdir@,$sysconfdir,;t t
18723 s,@sharedstatedir@,$sharedstatedir,;t t
18724 s,@localstatedir@,$localstatedir,;t t
18725 s,@libdir@,$libdir,;t t
18726 s,@includedir@,$includedir,;t t
18727 s,@oldincludedir@,$oldincludedir,;t t
18728 s,@infodir@,$infodir,;t t
18729 s,@mandir@,$mandir,;t t
18730 s,@build_alias@,$build_alias,;t t
18731 s,@host_alias@,$host_alias,;t t
18732 s,@target_alias@,$target_alias,;t t
18733 s,@DEFS@,$DEFS,;t t
18734 s,@ECHO_C@,$ECHO_C,;t t
18735 s,@ECHO_N@,$ECHO_N,;t t
18736 s,@ECHO_T@,$ECHO_T,;t t
18737 s,@LIBS@,$LIBS,;t t
18738 s,@BUILD_DIR@,$BUILD_DIR,;t t
18739 s,@TRUEPRG@,$TRUEPRG,;t t
18740 s,@FALSEPRG@,$FALSEPRG,;t t
18741 s,@build@,$build,;t t
18742 s,@build_cpu@,$build_cpu,;t t
18743 s,@build_vendor@,$build_vendor,;t t
18744 s,@build_os@,$build_os,;t t
18745 s,@host@,$host,;t t
18746 s,@host_cpu@,$host_cpu,;t t
18747 s,@host_vendor@,$host_vendor,;t t
18748 s,@host_os@,$host_os,;t t
18749 s,@VERSION@,$VERSION,;t t
18750 s,@DATE@,$DATE,;t t
18751 s,@LSMDATE@,$LSMDATE,;t t
18753 s,@CFLAGS@,$CFLAGS,;t t
18754 s,@LDFLAGS@,$LDFLAGS,;t t
18755 s,@CPPFLAGS@,$CPPFLAGS,;t t
18756 s,@ac_ct_CC@,$ac_ct_CC,;t t
18757 s,@EXEEXT@,$EXEEXT,;t t
18758 s,@OBJEXT@,$OBJEXT,;t t
18760 s,@CXXFLAGS@,$CXXFLAGS,;t t
18761 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18763 s,@EGREP@,$EGREP,;t t
18764 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18765 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18766 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18767 s,@RANLIB@,$RANLIB,;t t
18768 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18774 s,@ECHO@,$ECHO,;t t
18778 s,@OPENSSL@,$OPENSSL,;t t
18780 s,@PKGCONFIG@,$PKGCONFIG,;t t
18781 s,@ARFLAGS@,$ARFLAGS,;t t
18782 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18783 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18784 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18785 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18786 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18787 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18788 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18789 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18790 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18791 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18792 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18793 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18794 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18795 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18796 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18797 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18798 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18799 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18800 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18801 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18802 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18803 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18804 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18805 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18806 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18807 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18808 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18809 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18810 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18811 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18812 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18813 s,@MSGFMT@,$MSGFMT,;t t
18814 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18815 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18816 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18817 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18818 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18819 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18820 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18821 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18822 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18823 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18824 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18825 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18826 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18827 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18828 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18829 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18830 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18831 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18832 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18833 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18834 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18835 s,@GNOME_DIR@,$GNOME_DIR,;t t
18836 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18837 s,@STATIC_FD@,$STATIC_FD,;t t
18838 s,@STATIC_SD@,$STATIC_SD,;t t
18839 s,@STATIC_DIR@,$STATIC_DIR,;t t
18840 s,@STATIC_CONS@,$STATIC_CONS,;t t
18841 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
18842 s,@ALL_DIRS@,$ALL_DIRS,;t t
18843 s,@CONS_INC@,$CONS_INC,;t t
18844 s,@CONS_OBJ@,$CONS_OBJ,;t t
18845 s,@CONS_SRC@,$CONS_SRC,;t t
18846 s,@CONS_LIBS@,$CONS_LIBS,;t t
18847 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18848 s,@READLINE_SRC@,$READLINE_SRC,;t t
18849 s,@working_dir@,$working_dir,;t t
18850 s,@scriptdir@,$scriptdir,;t t
18851 s,@dump_email@,$dump_email,;t t
18852 s,@job_email@,$job_email,;t t
18853 s,@smtp_host@,$smtp_host,;t t
18854 s,@piddir@,$piddir,;t t
18855 s,@subsysdir@,$subsysdir,;t t
18856 s,@baseport@,$baseport,;t t
18857 s,@dir_port@,$dir_port,;t t
18858 s,@fd_port@,$fd_port,;t t
18859 s,@sd_port@,$sd_port,;t t
18860 s,@dir_password@,$dir_password,;t t
18861 s,@fd_password@,$fd_password,;t t
18862 s,@sd_password@,$sd_password,;t t
18863 s,@dir_user@,$dir_user,;t t
18864 s,@dir_group@,$dir_group,;t t
18865 s,@sd_user@,$sd_user,;t t
18866 s,@sd_group@,$sd_group,;t t
18867 s,@fd_user@,$fd_user,;t t
18868 s,@fd_group@,$fd_group,;t t
18869 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18870 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18871 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18872 s,@cats@,$cats,;t t
18873 s,@DB_NAME@,$DB_NAME,;t t
18874 s,@GETCONF@,$GETCONF,;t t
18875 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18876 s,@X_CFLAGS@,$X_CFLAGS,;t t
18877 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18878 s,@X_LIBS@,$X_LIBS,;t t
18879 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18880 s,@LIBOBJS@,$LIBOBJS,;t t
18881 s,@ALLOCA@,$ALLOCA,;t t
18882 s,@FDLIBS@,$FDLIBS,;t t
18883 s,@DEBUG@,$DEBUG,;t t
18884 s,@DINCLUDE@,$DINCLUDE,;t t
18885 s,@DLIB@,$DLIB,;t t
18886 s,@DB_LIBS@,$DB_LIBS,;t t
18887 s,@WCFLAGS@,$WCFLAGS,;t t
18888 s,@WLDFLAGS@,$WLDFLAGS,;t t
18889 s,@OBJLIST@,$OBJLIST,;t t
18890 s,@hostname@,$hostname,;t t
18891 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18892 s,@PSCMD@,$PSCMD,;t t
18893 s,@WIN32@,$WIN32,;t t
18894 s,@DISTNAME@,$DISTNAME,;t t
18895 s,@DISTVER@,$DISTVER,;t t
18896 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18897 /@MCOMMON@/r $MCOMMON
18903 cat >>$CONFIG_STATUS <<\_ACEOF
18904 # Split the substitutions into bite-sized pieces for seds with
18905 # small command number limits, like on Digital OSF/1 and HP-UX.
18906 ac_max_sed_lines=48
18907 ac_sed_frag=1 # Number of current file.
18908 ac_beg=1 # First line for current file.
18909 ac_end=$ac_max_sed_lines # Line after last line for current file.
18912 while $ac_more_lines; do
18913 if test $ac_beg -gt 1; then
18914 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18916 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18918 if test ! -s $tmp/subs.frag; then
18919 ac_more_lines=false
18921 # The purpose of the label and of the branching condition is to
18922 # speed up the sed processing (if there are no `@' at all, there
18923 # is no need to browse any of the substitutions).
18924 # These are the two extra sed commands mentioned above.
18926 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18927 if test -z "$ac_sed_cmds"; then
18928 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18930 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18932 ac_sed_frag=`expr $ac_sed_frag + 1`
18934 ac_end=`expr $ac_end + $ac_max_sed_lines`
18937 if test -z "$ac_sed_cmds"; then
18940 fi # test -n "$CONFIG_FILES"
18943 cat >>$CONFIG_STATUS <<\_ACEOF
18944 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18945 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18947 - | *:- | *:-:* ) # input from stdin
18949 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18950 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18951 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18952 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18953 * ) ac_file_in=$ac_file.in ;;
18956 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18957 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18958 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18959 X"$ac_file" : 'X\(//\)[^/]' \| \
18960 X"$ac_file" : 'X\(//\)$' \| \
18961 X"$ac_file" : 'X\(/\)' \| \
18962 . : '\(.\)' 2>/dev/null ||
18964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18965 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18966 /^X\(\/\/\)$/{ s//\1/; q; }
18967 /^X\(\/\).*/{ s//\1/; q; }
18969 { if $as_mkdir_p; then
18974 while test ! -d "$as_dir"; do
18975 as_dirs="$as_dir $as_dirs"
18976 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18977 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18978 X"$as_dir" : 'X\(//\)[^/]' \| \
18979 X"$as_dir" : 'X\(//\)$' \| \
18980 X"$as_dir" : 'X\(/\)' \| \
18981 . : '\(.\)' 2>/dev/null ||
18983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18984 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18985 /^X\(\/\/\)$/{ s//\1/; q; }
18986 /^X\(\/\).*/{ s//\1/; q; }
18989 test ! -n "$as_dirs" || mkdir $as_dirs
18990 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18991 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18992 { (exit 1); exit 1; }; }; }
18996 if test "$ac_dir" != .; then
18997 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18998 # A "../" for each directory in $ac_dir_suffix.
18999 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19001 ac_dir_suffix= ac_top_builddir=
19005 .) # No --srcdir option. We are building in place.
19007 if test -z "$ac_top_builddir"; then
19010 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19012 [\\/]* | ?:[\\/]* ) # Absolute path.
19013 ac_srcdir=$srcdir$ac_dir_suffix;
19014 ac_top_srcdir=$srcdir ;;
19015 *) # Relative path.
19016 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19017 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19019 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19021 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19022 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19023 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19024 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19028 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19029 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19032 if test x"$ac_file" != x-; then
19033 { echo "$as_me:$LINENO: creating $ac_file" >&5
19034 echo "$as_me: creating $ac_file" >&6;}
19037 # Let's still pretend it is `configure' which instantiates (i.e., don't
19038 # use $as_me), people would be surprised to read:
19039 # /* config.h. Generated by config.status. */
19040 if test x"$ac_file" = x-; then
19043 configure_input="$ac_file. "
19045 configure_input=$configure_input"Generated from `echo $ac_file_in |
19046 sed 's,.*/,,'` by configure."
19048 # First look for the input files in the build tree, otherwise in the
19050 ac_file_inputs=`IFS=:
19051 for f in $ac_file_in; do
19053 -) echo $tmp/stdin ;;
19055 # Absolute (can't be DOS-style, as IFS=:)
19056 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19057 echo "$as_me: error: cannot find input file: $f" >&2;}
19058 { (exit 1); exit 1; }; }
19061 if test -f "$f"; then
19064 elif test -f "$srcdir/$f"; then
19069 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19070 echo "$as_me: error: cannot find input file: $f" >&2;}
19071 { (exit 1); exit 1; }; }
19074 done` || { (exit 1); exit 1; }
19076 cat >>$CONFIG_STATUS <<_ACEOF
19080 cat >>$CONFIG_STATUS <<\_ACEOF
19082 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19083 s,@configure_input@,$configure_input,;t t
19084 s,@srcdir@,$ac_srcdir,;t t
19085 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19086 s,@top_srcdir@,$ac_top_srcdir,;t t
19087 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19088 s,@builddir@,$ac_builddir,;t t
19089 s,@abs_builddir@,$ac_abs_builddir,;t t
19090 s,@top_builddir@,$ac_top_builddir,;t t
19091 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19092 s,@INSTALL@,$ac_INSTALL,;t t
19093 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19095 if test x"$ac_file" != x-; then
19096 mv $tmp/out $ac_file
19104 cat >>$CONFIG_STATUS <<\_ACEOF
19107 # CONFIG_HEADER section.
19110 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19111 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19113 # ac_d sets the value in "#define NAME VALUE" lines.
19114 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19115 ac_dB='[ ].*$,\1#\2'
19118 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19119 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19120 ac_uB='$,\1#\2define\3'
19124 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19125 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19127 - | *:- | *:-:* ) # input from stdin
19129 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19130 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19131 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19132 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19133 * ) ac_file_in=$ac_file.in ;;
19136 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19137 echo "$as_me: creating $ac_file" >&6;}
19139 # First look for the input files in the build tree, otherwise in the
19141 ac_file_inputs=`IFS=:
19142 for f in $ac_file_in; do
19144 -) echo $tmp/stdin ;;
19146 # Absolute (can't be DOS-style, as IFS=:)
19147 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19148 echo "$as_me: error: cannot find input file: $f" >&2;}
19149 { (exit 1); exit 1; }; }
19152 if test -f "$f"; then
19155 elif test -f "$srcdir/$f"; then
19160 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19161 echo "$as_me: error: cannot find input file: $f" >&2;}
19162 { (exit 1); exit 1; }; }
19165 done` || { (exit 1); exit 1; }
19166 # Remove the trailing spaces.
19167 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19171 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19172 # `conftest.undefs', that substitutes the proper values into
19173 # config.h.in to produce config.h. The first handles `#define'
19174 # templates, and the second `#undef' templates.
19175 # And first: Protect against being on the right side of a sed subst in
19176 # config.status. Protect against being in an unquoted here document
19177 # in config.status.
19178 rm -f conftest.defines conftest.undefs
19179 # Using a here document instead of a string reduces the quoting nightmare.
19180 # Putting comments in sed scripts is not portable.
19182 # `end' is used to avoid that the second main sed command (meant for
19183 # 0-ary CPP macros) applies to n-ary macro definitions.
19184 # See the Autoconf documentation for `clear'.
19185 cat >confdef2sed.sed <<\_ACEOF
19190 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19192 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19195 # If some macros were called several times there might be several times
19196 # the same #defines, which is useless. Nevertheless, we may not want to
19197 # sort them, since we want the *last* AC-DEFINE to be honored.
19198 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19199 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19200 rm -f confdef2sed.sed
19202 # This sed command replaces #undef with comments. This is necessary, for
19203 # example, in the case of _POSIX_SOURCE, which is predefined and required
19204 # on some systems where configure will not decide to define it.
19205 cat >>conftest.undefs <<\_ACEOF
19206 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19209 # Break up conftest.defines because some shells have a limit on the size
19210 # of here documents, and old seds have small limits too (100 cmds).
19211 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19212 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19213 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19214 echo ' :' >>$CONFIG_STATUS
19215 rm -f conftest.tail
19216 while grep . conftest.defines >/dev/null
19218 # Write a limited-size here document to $tmp/defines.sed.
19219 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19220 # Speed up: don't consider the non `#define' lines.
19221 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19222 # Work around the forget-to-reset-the-flag bug.
19223 echo 't clr' >>$CONFIG_STATUS
19224 echo ': clr' >>$CONFIG_STATUS
19225 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19227 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19229 mv $tmp/out $tmp/in
19231 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19232 rm -f conftest.defines
19233 mv conftest.tail conftest.defines
19235 rm -f conftest.defines
19236 echo ' fi # grep' >>$CONFIG_STATUS
19237 echo >>$CONFIG_STATUS
19239 # Break up conftest.undefs because some shells have a limit on the size
19240 # of here documents, and old seds have small limits too (100 cmds).
19241 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19242 rm -f conftest.tail
19243 while grep . conftest.undefs >/dev/null
19245 # Write a limited-size here document to $tmp/undefs.sed.
19246 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19247 # Speed up: don't consider the non `#undef'
19248 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19249 # Work around the forget-to-reset-the-flag bug.
19250 echo 't clr' >>$CONFIG_STATUS
19251 echo ': clr' >>$CONFIG_STATUS
19252 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19254 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19256 mv $tmp/out $tmp/in
19258 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19259 rm -f conftest.undefs
19260 mv conftest.tail conftest.undefs
19262 rm -f conftest.undefs
19264 cat >>$CONFIG_STATUS <<\_ACEOF
19265 # Let's still pretend it is `configure' which instantiates (i.e., don't
19266 # use $as_me), people would be surprised to read:
19267 # /* config.h. Generated by config.status. */
19268 if test x"$ac_file" = x-; then
19269 echo "/* Generated by configure. */" >$tmp/config.h
19271 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19273 cat $tmp/in >>$tmp/config.h
19275 if test x"$ac_file" != x-; then
19276 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19277 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19278 echo "$as_me: $ac_file is unchanged" >&6;}
19280 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19281 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19282 X"$ac_file" : 'X\(//\)[^/]' \| \
19283 X"$ac_file" : 'X\(//\)$' \| \
19284 X"$ac_file" : 'X\(/\)' \| \
19285 . : '\(.\)' 2>/dev/null ||
19287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19288 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19289 /^X\(\/\/\)$/{ s//\1/; q; }
19290 /^X\(\/\).*/{ s//\1/; q; }
19292 { if $as_mkdir_p; then
19297 while test ! -d "$as_dir"; do
19298 as_dirs="$as_dir $as_dirs"
19299 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19301 X"$as_dir" : 'X\(//\)[^/]' \| \
19302 X"$as_dir" : 'X\(//\)$' \| \
19303 X"$as_dir" : 'X\(/\)' \| \
19304 . : '\(.\)' 2>/dev/null ||
19306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19307 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19308 /^X\(\/\/\)$/{ s//\1/; q; }
19309 /^X\(\/\).*/{ s//\1/; q; }
19312 test ! -n "$as_dirs" || mkdir $as_dirs
19313 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19314 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19315 { (exit 1); exit 1; }; }; }
19318 mv $tmp/config.h $ac_file
19322 rm -f $tmp/config.h
19326 cat >>$CONFIG_STATUS <<\_ACEOF
19329 # CONFIG_COMMANDS section.
19331 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19332 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19333 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19334 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19335 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19336 X"$ac_dest" : 'X\(//\)[^/]' \| \
19337 X"$ac_dest" : 'X\(//\)$' \| \
19338 X"$ac_dest" : 'X\(/\)' \| \
19339 . : '\(.\)' 2>/dev/null ||
19341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19342 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19343 /^X\(\/\/\)$/{ s//\1/; q; }
19344 /^X\(\/\).*/{ s//\1/; q; }
19348 if test "$ac_dir" != .; then
19349 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19350 # A "../" for each directory in $ac_dir_suffix.
19351 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19353 ac_dir_suffix= ac_top_builddir=
19357 .) # No --srcdir option. We are building in place.
19359 if test -z "$ac_top_builddir"; then
19362 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19364 [\\/]* | ?:[\\/]* ) # Absolute path.
19365 ac_srcdir=$srcdir$ac_dir_suffix;
19366 ac_top_srcdir=$srcdir ;;
19367 *) # Relative path.
19368 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19369 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19371 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19373 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19374 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19375 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19376 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19379 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19380 echo "$as_me: executing $ac_dest commands" >&6;}
19382 default ) (echo "Doing make of dependencies"; make depend;)
19388 cat >>$CONFIG_STATUS <<\_ACEOF
19390 { (exit 0); exit 0; }
19392 chmod +x $CONFIG_STATUS
19393 ac_clean_files=$ac_clean_files_save
19396 # configure is writing to config.log, and then calls config.status.
19397 # config.status does its own redirection, appending to config.log.
19398 # Unfortunately, on DOS this fails, as config.log is still kept open
19399 # by configure, so config.status won't be able to write to it; its
19400 # output is simply discarded. So we exec the FD to /dev/null,
19401 # effectively closing config.log, so it can be properly (re)opened and
19402 # appended to by config.status. When coming back to configure, we
19403 # need to make the FD available again.
19404 if test "$no_create" != yes; then
19406 ac_config_status_args=
19407 test "$silent" = yes &&
19408 ac_config_status_args="$ac_config_status_args --quiet"
19410 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19412 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19413 # would make configure fail if this is the last instruction.
19414 $ac_cs_success || { (exit 1); exit 1; }
19419 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19420 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19425 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
19426 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
19428 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
19429 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
19431 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
19432 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
19434 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
19435 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
19437 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
19438 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
19440 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19441 chmod 755 $c/sqlite
19444 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19445 largefile_support="yes"
19449 # A whole lot of hand springs to get the compiler version.
19450 # This is because gcc changed the output in version 3.0
19452 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19453 if test "x${CCVERSION}" = "x" ; then
19454 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19456 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19457 if test x"${CXXVERSION}" = x ; then
19458 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19461 if test "x${subsysdir}" = "x${sbindir}" ; then
19464 echo "You have set --sbindir and --with-subsys-dir"
19465 echo " both equal to: ${subsysdir} "
19466 echo " This is not permitted. Please reconfigure."
19467 echo "Aborting configuration ..."
19474 Configuration on `date`:
19476 Host: $host -- ${DISTNAME} ${DISTVER}
19477 Bacula version: ${VERSION} (${DATE})
19478 Source code location: ${srcdir}
19479 Install binaries: ${sbindir}
19480 Install config files: ${sysconfdir}
19481 Scripts directory: ${scriptdir}
19482 Working directory: ${working_dir}
19483 PID directory: ${piddir}
19484 Subsys directory: ${subsysdir}
19485 C Compiler: ${CC} ${CCVERSION}
19486 C++ Compiler: ${CXX} ${CXXVERSION}
19487 Compiler flags: ${WCFLAGS} ${CFLAGS}
19488 Linker flags: ${WLDFLAGS} ${LDFLAGS}
19490 Statically Linked Tools: ${support_static_tools}
19491 Statically Linked FD: ${support_static_fd}
19492 Statically Linked SD: ${support_static_sd}
19493 Statically Linked DIR: ${support_static_dir}
19494 Statically Linked CONS: ${support_static_cons}
19495 Database type: ${db_name}
19496 Database lib: ${DB_LIBS}
19498 Job Output Email: ${job_email}
19499 Traceback Email: ${dump_email}
19500 SMTP Host Address: ${smtp_host}
19502 Director Port: ${dir_port}
19503 File daemon Port: ${fd_port}
19504 Storage daemon Port: ${sd_port}
19506 Director User: ${dir_user}
19507 Director Group: ${dir_group}
19508 Storage Daemon User: ${sd_user}
19509 Storage DaemonGroup: ${sd_group}
19510 File Daemon User: ${fd_user}
19511 File Daemon Group: ${fd_group}
19513 SQL binaries Directory ${SQL_BINDIR}
19515 Large file support: $largefile_support
19516 Bacula conio support: ${got_conio} ${CONS_LIBS}
19517 readline support: ${got_readline} ${PRTREADLINE_SRC}
19518 TCP Wrappers support: ${TCPW_MSG}
19519 ZLIB support: ${have_zlib}
19520 enable-smartalloc: ${support_smartalloc}
19521 enable-gnome: ${support_gnome} ${gnome_version}
19522 client-only: ${build_client_only}
19529 # cweb support: ${got_cweb} ${CWEB_SRC}
19530 # gmp support: ${got_gmp} ${GMP_SRC}