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
4847 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4848 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4849 if test "${ac_cv_header_stdc+set}" = set; then
4850 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 cat >conftest.$ac_ext <<_ACEOF
4853 #line $LINENO "configure"
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4872 rm -f conftest.$ac_objext
4873 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4874 (eval $ac_compile) 2>&5
4876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877 (exit $ac_status); } &&
4878 { ac_try='test -s conftest.$ac_objext'
4879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4883 (exit $ac_status); }; }; then
4884 ac_cv_header_stdc=yes
4886 echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4889 ac_cv_header_stdc=no
4891 rm -f conftest.$ac_objext conftest.$ac_ext
4893 if test $ac_cv_header_stdc = yes; then
4894 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4895 cat >conftest.$ac_ext <<_ACEOF
4896 #line $LINENO "configure"
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h. */
4905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4906 $EGREP "memchr" >/dev/null 2>&1; then
4909 ac_cv_header_stdc=no
4915 if test $ac_cv_header_stdc = yes; then
4916 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4917 cat >conftest.$ac_ext <<_ACEOF
4918 #line $LINENO "configure"
4921 cat confdefs.h >>conftest.$ac_ext
4922 cat >>conftest.$ac_ext <<_ACEOF
4923 /* end confdefs.h. */
4927 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4928 $EGREP "free" >/dev/null 2>&1; then
4931 ac_cv_header_stdc=no
4937 if test $ac_cv_header_stdc = yes; then
4938 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4939 if test "$cross_compiling" = yes; then
4942 cat >conftest.$ac_ext <<_ACEOF
4943 #line $LINENO "configure"
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */
4950 #if ((' ' & 0x0FF) == 0x020)
4951 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4952 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4954 # define ISLOWER(c) \
4955 (('a' <= (c) && (c) <= 'i') \
4956 || ('j' <= (c) && (c) <= 'r') \
4957 || ('s' <= (c) && (c) <= 'z'))
4958 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4961 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4966 for (i = 0; i < 256; i++)
4967 if (XOR (islower (i), ISLOWER (i))
4968 || toupper (i) != TOUPPER (i))
4973 rm -f conftest$ac_exeext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4975 (eval $ac_link) 2>&5
4977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); }; }; then
4986 echo "$as_me: program exited with status $ac_status" >&5
4987 echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4991 ac_cv_header_stdc=no
4993 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4997 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4998 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4999 if test $ac_cv_header_stdc = yes; then
5001 cat >>confdefs.h <<\_ACEOF
5002 #define STDC_HEADERS 1
5007 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5017 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5018 inttypes.h stdint.h unistd.h
5020 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5021 echo "$as_me:$LINENO: checking for $ac_header" >&5
5022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5024 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 cat >conftest.$ac_ext <<_ACEOF
5027 #line $LINENO "configure"
5030 cat confdefs.h >>conftest.$ac_ext
5031 cat >>conftest.$ac_ext <<_ACEOF
5032 /* end confdefs.h. */
5033 $ac_includes_default
5035 #include <$ac_header>
5037 rm -f conftest.$ac_objext
5038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5039 (eval $ac_compile) 2>&5
5041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5042 (exit $ac_status); } &&
5043 { ac_try='test -s conftest.$ac_objext'
5044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; }; then
5049 eval "$as_ac_Header=yes"
5051 echo "$as_me: failed program was:" >&5
5052 sed 's/^/| /' conftest.$ac_ext >&5
5054 eval "$as_ac_Header=no"
5056 rm -f conftest.$ac_objext conftest.$ac_ext
5058 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5059 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5061 cat >>confdefs.h <<_ACEOF
5062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5070 if test "${ac_cv_header_termcap_h+set}" = set; then
5071 echo "$as_me:$LINENO: checking for termcap.h" >&5
5072 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5073 if test "${ac_cv_header_termcap_h+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5077 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5079 # Is the header compilable?
5080 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5081 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5082 cat >conftest.$ac_ext <<_ACEOF
5083 #line $LINENO "configure"
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5089 $ac_includes_default
5090 #include <termcap.h>
5092 rm -f conftest.$ac_objext
5093 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5094 (eval $ac_compile) 2>&5
5096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097 (exit $ac_status); } &&
5098 { ac_try='test -s conftest.$ac_objext'
5099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); }; }; then
5104 ac_header_compiler=yes
5106 echo "$as_me: failed program was:" >&5
5107 sed 's/^/| /' conftest.$ac_ext >&5
5109 ac_header_compiler=no
5111 rm -f conftest.$ac_objext conftest.$ac_ext
5112 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5113 echo "${ECHO_T}$ac_header_compiler" >&6
5115 # Is the header present?
5116 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5117 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5118 cat >conftest.$ac_ext <<_ACEOF
5119 #line $LINENO "configure"
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125 #include <termcap.h>
5127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5130 grep -v '^ *+' conftest.er1 >conftest.err
5132 cat conftest.err >&5
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); } >/dev/null; then
5135 if test -s conftest.err; then
5136 ac_cpp_err=$ac_c_preproc_warn_flag
5143 if test -z "$ac_cpp_err"; then
5144 ac_header_preproc=yes
5146 echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5149 ac_header_preproc=no
5151 rm -f conftest.err conftest.$ac_ext
5152 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5153 echo "${ECHO_T}$ac_header_preproc" >&6
5155 # So? What about this header?
5156 case $ac_header_compiler:$ac_header_preproc in
5158 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5159 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5160 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5161 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5164 ## ------------------------------------ ##
5165 ## Report this to bug-autoconf@gnu.org. ##
5166 ## ------------------------------------ ##
5169 sed "s/^/$as_me: WARNING: /" >&2
5172 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5173 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5174 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5175 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5176 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5177 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5180 ## ------------------------------------ ##
5181 ## Report this to bug-autoconf@gnu.org. ##
5182 ## ------------------------------------ ##
5185 sed "s/^/$as_me: WARNING: /" >&2
5188 echo "$as_me:$LINENO: checking for termcap.h" >&5
5189 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5190 if test "${ac_cv_header_termcap_h+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5193 ac_cv_header_termcap_h=$ac_header_preproc
5195 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5196 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5199 if test $ac_cv_header_termcap_h = yes; then
5200 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5201 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5202 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5205 ac_check_lib_save_LIBS=$LIBS
5206 LIBS="-ltermcap $LIBS"
5207 cat >conftest.$ac_ext <<_ACEOF
5208 #line $LINENO "configure"
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5215 /* Override any gcc2 internal prototype to avoid an error. */
5219 /* We use char because int might match the return type of a gcc2
5220 builtin and then its argument prototype would still apply. */
5230 rm -f conftest.$ac_objext conftest$ac_exeext
5231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5232 (eval $ac_link) 2>&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); } &&
5236 { ac_try='test -s conftest$ac_exeext'
5237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5241 (exit $ac_status); }; }; then
5242 ac_cv_lib_termcap_tgetent=yes
5244 echo "$as_me: failed program was:" >&5
5245 sed 's/^/| /' conftest.$ac_ext >&5
5247 ac_cv_lib_termcap_tgetent=no
5249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5250 LIBS=$ac_check_lib_save_LIBS
5252 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5253 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5254 if test $ac_cv_lib_termcap_tgetent = yes; then
5255 CONS_LIBS="-ltermcap"
5261 cat >>confdefs.h <<\_ACEOF
5262 #define HAVE_CONIO 1
5267 echo " "; echo "termcap library not found. CONIO turned off ..."; echo " "
5272 echo " "; echo "termcap.h not found. CONIO turned off ..."; echo " "
5279 # ---------------------------------------------------
5280 # Check for readline support/directory (default off)
5281 # ---------------------------------------------------
5282 # this allows you to turn it completely off
5283 # Check whether --enable-readline or --disable-readline was given.
5284 if test "${enable_readline+set}" = set; then
5285 enableval="$enable_readline"
5286 if test x$enableval = xno; then
5293 if test x$support_readline = xyes; then
5295 # Check whether --with-readline or --without-readline was given.
5296 if test "${with_readline+set}" = set; then
5297 withval="$with_readline"
5299 case "$with_readline" in
5302 if test "$with_readline" != "yes"; then
5303 CONS_INC="-I${with_readline}"
5304 CONS_LDFLAGS="-L$with_readline"
5306 with_readline="/usr/include/readline"
5308 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5310 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5311 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5312 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5313 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5316 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5318 # Is the header compilable?
5319 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5320 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5321 cat >conftest.$ac_ext <<_ACEOF
5322 #line $LINENO "configure"
5325 cat confdefs.h >>conftest.$ac_ext
5326 cat >>conftest.$ac_ext <<_ACEOF
5327 /* end confdefs.h. */
5328 $ac_includes_default
5329 #include <${with_readline}/readline.h>
5331 rm -f conftest.$ac_objext
5332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5333 (eval $ac_compile) 2>&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } &&
5337 { ac_try='test -s conftest.$ac_objext'
5338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5342 (exit $ac_status); }; }; then
5343 ac_header_compiler=yes
5345 echo "$as_me: failed program was:" >&5
5346 sed 's/^/| /' conftest.$ac_ext >&5
5348 ac_header_compiler=no
5350 rm -f conftest.$ac_objext conftest.$ac_ext
5351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5352 echo "${ECHO_T}$ac_header_compiler" >&6
5354 # Is the header present?
5355 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5356 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5357 cat >conftest.$ac_ext <<_ACEOF
5358 #line $LINENO "configure"
5361 cat confdefs.h >>conftest.$ac_ext
5362 cat >>conftest.$ac_ext <<_ACEOF
5363 /* end confdefs.h. */
5364 #include <${with_readline}/readline.h>
5366 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5369 grep -v '^ *+' conftest.er1 >conftest.err
5371 cat conftest.err >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } >/dev/null; then
5374 if test -s conftest.err; then
5375 ac_cpp_err=$ac_c_preproc_warn_flag
5382 if test -z "$ac_cpp_err"; then
5383 ac_header_preproc=yes
5385 echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5388 ac_header_preproc=no
5390 rm -f conftest.err conftest.$ac_ext
5391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5392 echo "${ECHO_T}$ac_header_preproc" >&6
5394 # So? What about this header?
5395 case $ac_header_compiler:$ac_header_preproc in
5397 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5398 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5399 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5400 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5403 ## ------------------------------------ ##
5404 ## Report this to bug-autoconf@gnu.org. ##
5405 ## ------------------------------------ ##
5408 sed "s/^/$as_me: WARNING: /" >&2
5411 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5412 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5413 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5414 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5415 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5416 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5419 ## ------------------------------------ ##
5420 ## Report this to bug-autoconf@gnu.org. ##
5421 ## ------------------------------------ ##
5424 sed "s/^/$as_me: WARNING: /" >&2
5427 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5428 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5429 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
5432 eval "$as_ac_Header=$ac_header_preproc"
5434 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5435 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5439 cat >>confdefs.h <<\_ACEOF
5440 #define HAVE_READLINE 1
5443 CONS_LIBS="-lreadline -ltermcap"
5447 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5448 echo "$as_me: error: *** readline library missing" >&2;}
5449 { (exit 1); exit 1; }; }
5460 # check for standard readline library
5461 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5462 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5463 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5464 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5468 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5470 # Is the header compilable?
5471 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5472 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5473 cat >conftest.$ac_ext <<_ACEOF
5474 #line $LINENO "configure"
5477 cat confdefs.h >>conftest.$ac_ext
5478 cat >>conftest.$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5480 $ac_includes_default
5481 #include </usr/include/readline/readline.h>
5483 rm -f conftest.$ac_objext
5484 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5485 (eval $ac_compile) 2>&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } &&
5489 { ac_try='test -s conftest.$ac_objext'
5490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); }; }; then
5495 ac_header_compiler=yes
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 ac_header_compiler=no
5502 rm -f conftest.$ac_objext conftest.$ac_ext
5503 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5504 echo "${ECHO_T}$ac_header_compiler" >&6
5506 # Is the header present?
5507 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5508 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5509 cat >conftest.$ac_ext <<_ACEOF
5510 #line $LINENO "configure"
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 #include </usr/include/readline/readline.h>
5518 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5519 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5521 grep -v '^ *+' conftest.er1 >conftest.err
5523 cat conftest.err >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } >/dev/null; then
5526 if test -s conftest.err; then
5527 ac_cpp_err=$ac_c_preproc_warn_flag
5534 if test -z "$ac_cpp_err"; then
5535 ac_header_preproc=yes
5537 echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5540 ac_header_preproc=no
5542 rm -f conftest.err conftest.$ac_ext
5543 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5544 echo "${ECHO_T}$ac_header_preproc" >&6
5546 # So? What about this header?
5547 case $ac_header_compiler:$ac_header_preproc in
5549 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5550 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5551 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5552 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5555 ## ------------------------------------ ##
5556 ## Report this to bug-autoconf@gnu.org. ##
5557 ## ------------------------------------ ##
5560 sed "s/^/$as_me: WARNING: /" >&2
5563 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5564 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5565 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5566 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5567 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5568 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5571 ## ------------------------------------ ##
5572 ## Report this to bug-autoconf@gnu.org. ##
5573 ## ------------------------------------ ##
5576 sed "s/^/$as_me: WARNING: /" >&2
5579 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5580 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5581 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5582 echo $ECHO_N "(cached) $ECHO_C" >&6
5584 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5586 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5587 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5590 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5591 cat >>confdefs.h <<\_ACEOF
5592 #define HAVE_READLINE 1
5596 CONS_INC="-I/usr/include/readline"
5597 CONS_LIBS="-lreadline -ltermcap"
5601 # Did not find standard library, so try Bacula's default
5602 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5603 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5604 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5605 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5606 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5607 echo $ECHO_N "(cached) $ECHO_C" >&6
5609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5612 # Is the header compilable?
5613 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5614 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5615 cat >conftest.$ac_ext <<_ACEOF
5616 #line $LINENO "configure"
5619 cat confdefs.h >>conftest.$ac_ext
5620 cat >>conftest.$ac_ext <<_ACEOF
5621 /* end confdefs.h. */
5622 $ac_includes_default
5623 #include <${TOP_DIR}/depkgs/readline/readline.h>
5625 rm -f conftest.$ac_objext
5626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5627 (eval $ac_compile) 2>&5
5629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5630 (exit $ac_status); } &&
5631 { ac_try='test -s conftest.$ac_objext'
5632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636 (exit $ac_status); }; }; then
5637 ac_header_compiler=yes
5639 echo "$as_me: failed program was:" >&5
5640 sed 's/^/| /' conftest.$ac_ext >&5
5642 ac_header_compiler=no
5644 rm -f conftest.$ac_objext conftest.$ac_ext
5645 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5646 echo "${ECHO_T}$ac_header_compiler" >&6
5648 # Is the header present?
5649 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5650 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5651 cat >conftest.$ac_ext <<_ACEOF
5652 #line $LINENO "configure"
5655 cat confdefs.h >>conftest.$ac_ext
5656 cat >>conftest.$ac_ext <<_ACEOF
5657 /* end confdefs.h. */
5658 #include <${TOP_DIR}/depkgs/readline/readline.h>
5660 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5663 grep -v '^ *+' conftest.er1 >conftest.err
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } >/dev/null; then
5668 if test -s conftest.err; then
5669 ac_cpp_err=$ac_c_preproc_warn_flag
5676 if test -z "$ac_cpp_err"; then
5677 ac_header_preproc=yes
5679 echo "$as_me: failed program was:" >&5
5680 sed 's/^/| /' conftest.$ac_ext >&5
5682 ac_header_preproc=no
5684 rm -f conftest.err conftest.$ac_ext
5685 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5686 echo "${ECHO_T}$ac_header_preproc" >&6
5688 # So? What about this header?
5689 case $ac_header_compiler:$ac_header_preproc in
5691 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5692 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5693 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5694 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5697 ## ------------------------------------ ##
5698 ## Report this to bug-autoconf@gnu.org. ##
5699 ## ------------------------------------ ##
5702 sed "s/^/$as_me: WARNING: /" >&2
5705 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5706 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5707 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5708 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5709 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5710 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5713 ## ------------------------------------ ##
5714 ## Report this to bug-autoconf@gnu.org. ##
5715 ## ------------------------------------ ##
5718 sed "s/^/$as_me: WARNING: /" >&2
5721 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5722 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 eval "$as_ac_Header=$ac_header_preproc"
5728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5733 cat >>confdefs.h <<\_ACEOF
5734 #define HAVE_READLINE 1
5738 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5739 CONS_LIBS="-lreadline -lhistory -ltermcap"
5740 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5741 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5744 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5745 echo "$as_me: error: *** readline library missing" >&2;}
5746 { (exit 1); exit 1; }; }
5771 # Minimal stuff for readline Makefile configuration
5775 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5776 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5777 if test "${ac_cv_header_stat_broken+set}" = set; then
5778 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 cat >conftest.$ac_ext <<_ACEOF
5781 #line $LINENO "configure"
5784 cat confdefs.h >>conftest.$ac_ext
5785 cat >>conftest.$ac_ext <<_ACEOF
5786 /* end confdefs.h. */
5787 #include <sys/types.h>
5788 #include <sys/stat.h>
5790 #if defined(S_ISBLK) && defined(S_IFDIR)
5791 # if S_ISBLK (S_IFDIR)
5796 #if defined(S_ISBLK) && defined(S_IFCHR)
5797 # if S_ISBLK (S_IFCHR)
5802 #if defined(S_ISLNK) && defined(S_IFREG)
5803 # if S_ISLNK (S_IFREG)
5808 #if defined(S_ISSOCK) && defined(S_IFREG)
5809 # if S_ISSOCK (S_IFREG)
5815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5816 $EGREP "You lose" >/dev/null 2>&1; then
5817 ac_cv_header_stat_broken=yes
5819 ac_cv_header_stat_broken=no
5824 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5825 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5826 if test $ac_cv_header_stat_broken = yes; then
5828 cat >>confdefs.h <<\_ACEOF
5829 #define STAT_MACROS_BROKEN 1
5840 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5841 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5842 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5843 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5844 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 cat >conftest.$ac_ext <<_ACEOF
5848 #line $LINENO "configure"
5851 cat confdefs.h >>conftest.$ac_ext
5852 cat >>conftest.$ac_ext <<_ACEOF
5853 /* end confdefs.h. */
5854 #include <sys/types.h>
5866 rm -f conftest.$ac_objext
5867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5868 (eval $ac_compile) 2>&5
5870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5871 (exit $ac_status); } &&
5872 { ac_try='test -s conftest.$ac_objext'
5873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877 (exit $ac_status); }; }; then
5878 eval "$as_ac_Header=yes"
5880 echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.$ac_ext >&5
5883 eval "$as_ac_Header=no"
5885 rm -f conftest.$ac_objext conftest.$ac_ext
5887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5890 cat >>confdefs.h <<_ACEOF
5891 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5894 ac_header_dirent=$ac_hdr; break
5898 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5899 if test $ac_header_dirent = dirent.h; then
5900 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5901 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5902 if test "${ac_cv_search_opendir+set}" = set; then
5903 echo $ECHO_N "(cached) $ECHO_C" >&6
5905 ac_func_search_save_LIBS=$LIBS
5906 ac_cv_search_opendir=no
5907 cat >conftest.$ac_ext <<_ACEOF
5908 #line $LINENO "configure"
5911 cat confdefs.h >>conftest.$ac_ext
5912 cat >>conftest.$ac_ext <<_ACEOF
5913 /* end confdefs.h. */
5915 /* Override any gcc2 internal prototype to avoid an error. */
5919 /* We use char because int might match the return type of a gcc2
5920 builtin and then its argument prototype would still apply. */
5930 rm -f conftest.$ac_objext conftest$ac_exeext
5931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5932 (eval $ac_link) 2>&5
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); } &&
5936 { ac_try='test -s conftest$ac_exeext'
5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; }; then
5942 ac_cv_search_opendir="none required"
5944 echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5948 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5949 if test "$ac_cv_search_opendir" = no; then
5950 for ac_lib in dir; do
5951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5952 cat >conftest.$ac_ext <<_ACEOF
5953 #line $LINENO "configure"
5956 cat confdefs.h >>conftest.$ac_ext
5957 cat >>conftest.$ac_ext <<_ACEOF
5958 /* end confdefs.h. */
5960 /* Override any gcc2 internal prototype to avoid an error. */
5964 /* We use char because int might match the return type of a gcc2
5965 builtin and then its argument prototype would still apply. */
5975 rm -f conftest.$ac_objext conftest$ac_exeext
5976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5977 (eval $ac_link) 2>&5
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } &&
5981 { ac_try='test -s conftest$ac_exeext'
5982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); }; }; then
5987 ac_cv_search_opendir="-l$ac_lib"
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5994 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5997 LIBS=$ac_func_search_save_LIBS
5999 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6000 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6001 if test "$ac_cv_search_opendir" != no; then
6002 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6007 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6008 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6009 if test "${ac_cv_search_opendir+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 ac_func_search_save_LIBS=$LIBS
6013 ac_cv_search_opendir=no
6014 cat >conftest.$ac_ext <<_ACEOF
6015 #line $LINENO "configure"
6018 cat confdefs.h >>conftest.$ac_ext
6019 cat >>conftest.$ac_ext <<_ACEOF
6020 /* end confdefs.h. */
6022 /* Override any gcc2 internal prototype to avoid an error. */
6026 /* We use char because int might match the return type of a gcc2
6027 builtin and then its argument prototype would still apply. */
6037 rm -f conftest.$ac_objext conftest$ac_exeext
6038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6039 (eval $ac_link) 2>&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); } &&
6043 { ac_try='test -s conftest$ac_exeext'
6044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
6049 ac_cv_search_opendir="none required"
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6056 if test "$ac_cv_search_opendir" = no; then
6058 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6059 cat >conftest.$ac_ext <<_ACEOF
6060 #line $LINENO "configure"
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6067 /* Override any gcc2 internal prototype to avoid an error. */
6071 /* We use char because int might match the return type of a gcc2
6072 builtin and then its argument prototype would still apply. */
6082 rm -f conftest.$ac_objext conftest$ac_exeext
6083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6084 (eval $ac_link) 2>&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } &&
6088 { ac_try='test -s conftest$ac_exeext'
6089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093 (exit $ac_status); }; }; then
6094 ac_cv_search_opendir="-l$ac_lib"
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6101 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6104 LIBS=$ac_func_search_save_LIBS
6106 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6107 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6108 if test "$ac_cv_search_opendir" != no; then
6109 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6124 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6127 echo "$as_me:$LINENO: checking for $ac_func" >&5
6128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6129 if eval "test \"\${$as_ac_var+set}\" = set"; then
6130 echo $ECHO_N "(cached) $ECHO_C" >&6
6132 cat >conftest.$ac_ext <<_ACEOF
6133 #line $LINENO "configure"
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6139 /* System header to define __stub macros and hopefully few prototypes,
6140 which can conflict with char $ac_func (); below.
6141 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6142 <limits.h> exists even on freestanding compilers. */
6144 # include <limits.h>
6146 # include <assert.h>
6148 /* Override any gcc2 internal prototype to avoid an error. */
6153 /* We use char because int might match the return type of a gcc2
6154 builtin and then its argument prototype would still apply. */
6156 /* The GNU C library defines this for functions which it implements
6157 to always fail with ENOSYS. Some functions are actually named
6158 something starting with __ and the normal name is an alias. */
6159 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6162 char (*f) () = $ac_func;
6171 return f != $ac_func;
6176 rm -f conftest.$ac_objext conftest$ac_exeext
6177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6178 (eval $ac_link) 2>&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); } &&
6182 { ac_try='test -s conftest$ac_exeext'
6183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); }; }; then
6188 eval "$as_ac_var=yes"
6190 echo "$as_me: failed program was:" >&5
6191 sed 's/^/| /' conftest.$ac_ext >&5
6193 eval "$as_ac_var=no"
6195 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6198 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6199 if test `eval echo '${'$as_ac_var'}'` = yes; then
6200 cat >>confdefs.h <<_ACEOF
6201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6208 for ac_func in nanosleep
6210 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6211 echo "$as_me:$LINENO: checking for $ac_func" >&5
6212 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6213 if eval "test \"\${$as_ac_var+set}\" = set"; then
6214 echo $ECHO_N "(cached) $ECHO_C" >&6
6216 cat >conftest.$ac_ext <<_ACEOF
6217 #line $LINENO "configure"
6220 cat confdefs.h >>conftest.$ac_ext
6221 cat >>conftest.$ac_ext <<_ACEOF
6222 /* end confdefs.h. */
6223 /* System header to define __stub macros and hopefully few prototypes,
6224 which can conflict with char $ac_func (); below.
6225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6226 <limits.h> exists even on freestanding compilers. */
6228 # include <limits.h>
6230 # include <assert.h>
6232 /* Override any gcc2 internal prototype to avoid an error. */
6237 /* We use char because int might match the return type of a gcc2
6238 builtin and then its argument prototype would still apply. */
6240 /* The GNU C library defines this for functions which it implements
6241 to always fail with ENOSYS. Some functions are actually named
6242 something starting with __ and the normal name is an alias. */
6243 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6246 char (*f) () = $ac_func;
6255 return f != $ac_func;
6260 rm -f conftest.$ac_objext conftest$ac_exeext
6261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6262 (eval $ac_link) 2>&5
6264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6265 (exit $ac_status); } &&
6266 { ac_try='test -s conftest$ac_exeext'
6267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6271 (exit $ac_status); }; }; then
6272 eval "$as_ac_var=yes"
6274 echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6277 eval "$as_ac_var=no"
6279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6283 if test `eval echo '${'$as_ac_var'}'` = yes; then
6284 cat >>confdefs.h <<_ACEOF
6285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6293 for ac_header in varargs.h
6295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6297 echo "$as_me:$LINENO: checking for $ac_header" >&5
6298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6305 # Is the header compilable?
6306 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6307 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6308 cat >conftest.$ac_ext <<_ACEOF
6309 #line $LINENO "configure"
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h. */
6315 $ac_includes_default
6316 #include <$ac_header>
6318 rm -f conftest.$ac_objext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6320 (eval $ac_compile) 2>&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
6324 { ac_try='test -s conftest.$ac_objext'
6325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }; }; then
6330 ac_header_compiler=yes
6332 echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6335 ac_header_compiler=no
6337 rm -f conftest.$ac_objext conftest.$ac_ext
6338 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6339 echo "${ECHO_T}$ac_header_compiler" >&6
6341 # Is the header present?
6342 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6344 cat >conftest.$ac_ext <<_ACEOF
6345 #line $LINENO "configure"
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6351 #include <$ac_header>
6353 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6354 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6356 grep -v '^ *+' conftest.er1 >conftest.err
6358 cat conftest.err >&5
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); } >/dev/null; then
6361 if test -s conftest.err; then
6362 ac_cpp_err=$ac_c_preproc_warn_flag
6369 if test -z "$ac_cpp_err"; then
6370 ac_header_preproc=yes
6372 echo "$as_me: failed program was:" >&5
6373 sed 's/^/| /' conftest.$ac_ext >&5
6375 ac_header_preproc=no
6377 rm -f conftest.err conftest.$ac_ext
6378 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6379 echo "${ECHO_T}$ac_header_preproc" >&6
6381 # So? What about this header?
6382 case $ac_header_compiler:$ac_header_preproc in
6384 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6385 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6386 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6387 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6390 ## ------------------------------------ ##
6391 ## Report this to bug-autoconf@gnu.org. ##
6392 ## ------------------------------------ ##
6395 sed "s/^/$as_me: WARNING: /" >&2
6398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6403 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6406 ## ------------------------------------ ##
6407 ## Report this to bug-autoconf@gnu.org. ##
6408 ## ------------------------------------ ##
6411 sed "s/^/$as_me: WARNING: /" >&2
6414 echo "$as_me:$LINENO: checking for $ac_header" >&5
6415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6416 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6417 echo $ECHO_N "(cached) $ECHO_C" >&6
6419 eval "$as_ac_Header=$ac_header_preproc"
6421 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6422 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6425 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6426 cat >>confdefs.h <<_ACEOF
6427 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6435 # End of readline/conio stuff
6436 # -----------------------------------------------------------------------
6439 # ---------------------------------------------------
6440 # Check for GMP support/directory
6441 # ---------------------------------------------------
6445 # [ --with-gmp[=DIR] Specify gmp library directory],
6447 # case "$with_gmp" in
6450 # if test "$with_gmp" != "yes"; then
6451 # GMP_INC="-I$with_gmp"
6453 # GMP_LDFLAGS="-L$with_gmp"
6455 # with_gmp="/usr/include"
6457 # AC_CHECK_HEADER($with_gmp/gmp.h,
6458 # [ AC_MSG_RESULT(yes)
6459 # AC_DEFINE(HAVE_GMP)
6463 # [ AC_MSG_ERROR([*** gmp library missing])
6469 # # check for standard gmp library
6470 # AC_CHECK_HEADER(/usr/include/gmp.h,
6471 # [ AC_MSG_RESULT(yes)
6472 # AC_DEFINE(HAVE_GMP)
6477 # # Did not find standard library, so use our own
6478 # AC_MSG_RESULT(yes)
6479 # AC_DEFINE(HAVE_GMP)
6482 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6484 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6485 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6491 #AC_SUBST(GMP_LDFLAGS)
6495 # -----------------------------------------------------------------------
6498 # ---------------------------------------------------
6499 # Check for CWEB support/directory
6500 # ---------------------------------------------------
6505 # [ --with-cweb[=DIR] Specify cweb library directory],
6507 # case "$with_cweb" in
6510 # if test "$with_cweb" != "yes"; then
6511 # CWEB_INC="-I$with_cweb"
6512 # CWEB_LIBS="-lcweb"
6513 # CWEB_LDFLAGS="-L$with_cweb"
6515 # with_cweb="/usr/include"
6517 # AC_CHECK_HEADER($with_cweb/cweb.h,
6518 # [ AC_MSG_RESULT(yes)
6519 # AC_DEFINE(HAVE_CWEB)
6520 # CWEB_LIBS="-lcweb"
6523 # [ AC_MSG_ERROR([*** cweb library missing])
6529 # # check for standard cweb library
6530 # AC_CHECK_HEADER(/usr/include/cweb.h,
6531 # [ AC_MSG_RESULT(yes)
6532 # AC_DEFINE(HAVE_CWEB)
6535 # CWEB_LIBS="-lcweb"
6537 # # Did not find starndard library, so use our own
6538 # AC_MSG_RESULT(yes)
6539 # AC_DEFINE(HAVE_CWEB)
6542 # CWEB=${TOP_DIR}/depkgs/cweb
6543 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6544 # CWEB_LIBS="-lcweb"
6545 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6546 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6552 #AC_SUBST(CWEB_LIBS)
6553 #AC_SUBST(CWEB_LDFLAGS)
6557 # -----------------------------------------------------------------------
6561 # -----------------------------------------------------------
6562 # Check whether user wants TCP wrappers support (default off)
6563 # -----------------------------------------------------------
6566 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6567 if test "${with_tcp_wrappers+set}" = set; then
6568 withval="$with_tcp_wrappers"
6570 if test "x$withval" != "xno" ; then
6572 LIBS="$saved_LIBS -lwrap"
6573 echo "$as_me:$LINENO: checking for libwrap" >&5
6574 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6575 cat >conftest.$ac_ext <<_ACEOF
6576 #line $LINENO "configure"
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6583 int deny_severity = 0;
6584 int allow_severity = 0;
6585 struct request_info *req;
6594 rm -f conftest.$ac_objext conftest$ac_exeext
6595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6596 (eval $ac_link) 2>&5
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); } &&
6600 { ac_try='test -s conftest$ac_exeext'
6601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); }; }; then
6607 echo "$as_me:$LINENO: result: yes" >&5
6608 echo "${ECHO_T}yes" >&6
6609 cat >>confdefs.h <<\_ACEOF
6610 #define HAVE_LIBWRAP 1
6616 echo "$as_me: failed program was:" >&5
6617 sed 's/^/| /' conftest.$ac_ext >&5
6620 LIBS="$saved_LIBS -lwrap -lnsl"
6621 cat >conftest.$ac_ext <<_ACEOF
6622 #line $LINENO "configure"
6625 cat confdefs.h >>conftest.$ac_ext
6626 cat >>conftest.$ac_ext <<_ACEOF
6627 /* end confdefs.h. */
6629 int deny_severity = 0;
6630 int allow_severity = 0;
6631 struct request_info *req;
6640 rm -f conftest.$ac_objext conftest$ac_exeext
6641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6642 (eval $ac_link) 2>&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } &&
6646 { ac_try='test -s conftest$ac_exeext'
6647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); }; }; then
6653 echo "$as_me:$LINENO: result: yes" >&5
6654 echo "${ECHO_T}yes" >&6
6655 cat >>confdefs.h <<\_ACEOF
6656 #define HAVE_LIBWRAP 1
6662 echo "$as_me: failed program was:" >&5
6663 sed 's/^/| /' conftest.$ac_ext >&5
6665 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6666 echo "$as_me: error: *** libwrap missing" >&2;}
6667 { (exit 1); exit 1; }; }
6670 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6679 # ------------------------------------------
6680 # Where to place working dir
6681 # ------------------------------------------
6682 working_dir=`eval echo ${prefix}/var/bacula/working`
6684 # Check whether --with-working-dir or --without-working-dir was given.
6685 if test "${with_working_dir+set}" = set; then
6686 withval="$with_working_dir"
6688 if test "x$withval" != "xno" ; then
6689 working_dir=$withval
6698 # ------------------------------------------
6699 # Where to place scriptdir (script files)
6700 # ------------------------------------------
6701 scriptdir=`eval echo ${sysconfdir}`
6703 # Check whether --with-scriptdir or --without-scriptdir was given.
6704 if test "${with_scriptdir+set}" = set; then
6705 withval="$with_scriptdir"
6707 if test "x$withval" != "xno" ; then
6717 # ------------------------------------------
6718 # Where to send dump email
6719 # ------------------------------------------
6720 dump_email=root@localhost
6722 # Check whether --with-dump-email or --without-dump-email was given.
6723 if test "${with_dump_email+set}" = set; then
6724 withval="$with_dump_email"
6726 if test "x$withval" != "xno" ; then
6735 # ------------------------------------------
6736 # Where to send job email
6737 # ------------------------------------------
6738 job_email=root@localhost
6740 # Check whether --with-job-email or --without-job-email was given.
6741 if test "${with_job_email+set}" = set; then
6742 withval="$with_job_email"
6744 if test "x$withval" != "xno" ; then
6753 # ------------------------------------------
6754 # Where to find smtp host
6755 # ------------------------------------------
6758 # Check whether --with-smtp_host or --without-smtp_host was given.
6759 if test "${with_smtp_host+set}" = set; then
6760 withval="$with_smtp_host"
6762 if test "x$withval" != "xno" ; then
6772 # ------------------------------------
6773 # Where to place pid files
6774 # ------------------------------------
6777 # Check whether --with-pid-dir or --without-pid-dir was given.
6778 if test "${with_pid_dir+set}" = set; then
6779 withval="$with_pid_dir"
6781 if test "x$withval" != "xno" ; then
6788 cat >>confdefs.h <<_ACEOF
6789 #define _PATH_BACULA_PIDDIR "$piddir"
6795 # ------------------------------------
6796 # Where to place subsys "lock file"
6797 # ------------------------------------
6798 subsysdir=/var/run/subsys
6800 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6801 if test "${with_subsys_dir+set}" = set; then
6802 withval="$with_subsys_dir"
6804 if test "x$withval" != "xno" ; then
6815 # ------------------------------------
6816 # Where to start assigning ports
6817 # ------------------------------------
6820 # Check whether --with-baseport or --without-baseport was given.
6821 if test "${with_baseport+set}" = set; then
6822 withval="$with_baseport"
6824 if test "x$withval" != "xno" ; then
6832 dir_port=`expr $baseport`
6833 fd_port=`expr $baseport + 1`
6834 sd_port=`expr $fd_port + 1`
6841 # ------------------------------------------
6842 # Generate passwords
6843 # ------------------------------------------
6846 # Check whether --with-dir-password or --without-dir-password was given.
6847 if test "${with_dir_password+set}" = set; then
6848 withval="$with_dir_password"
6850 if test "x$withval" != "xno" ; then
6851 dir_password=$withval
6857 if test "x$dir_password" = "x" ; then
6858 if test "x$OPENSSL" = "xnone" ; then
6859 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6860 key=`autoconf/randpass 33`
6862 key=`openssl rand -base64 33`
6869 # Check whether --with-fd-password or --without-fd-password was given.
6870 if test "${with_fd_password+set}" = set; then
6871 withval="$with_fd_password"
6873 if test "x$withval" != "xno" ; then
6874 fd_password=$withval
6880 if test "x$fd_password" = "x" ; then
6881 if test "x$OPENSSL" = "xnone" ; then
6882 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6883 key=`autoconf/randpass 37`
6885 key=`openssl rand -base64 33`
6892 # Check whether --with-sd-password or --without-sd-password was given.
6893 if test "${with_sd_password+set}" = set; then
6894 withval="$with_sd_password"
6896 if test "x$withval" != "xno" ; then
6897 sd_password=$withval
6903 if test "x$sd_password" = "x" ; then
6904 if test "x$OPENSSL" = "xnone" ; then
6905 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6906 key=`autoconf/randpass 41`
6908 key=`openssl rand -base64 33`
6920 # Handle users and groups for each daemon
6924 # Check whether --with-dir_user or --without-dir_user was given.
6925 if test "${with_dir_user+set}" = set; then
6926 withval="$with_dir_user"
6928 if test "x$withval" != "x" ; then
6937 # Check whether --with-dir_group or --without-dir_group was given.
6938 if test "${with_dir_group+set}" = set; then
6939 withval="$with_dir_group"
6941 if test "x$withval" != "x" ; then
6950 # Check whether --with-sd_user or --without-sd_user was given.
6951 if test "${with_sd_user+set}" = set; then
6952 withval="$with_sd_user"
6954 if test "x$withval" != "x" ; then
6963 # Check whether --with-sd_group or --without-sd_group was given.
6964 if test "${with_sd_group+set}" = set; then
6965 withval="$with_sd_group"
6967 if test "x$withval" != "x" ; then
6976 # Check whether --with-fd_user or --without-fd_user was given.
6977 if test "${with_fd_user+set}" = set; then
6978 withval="$with_fd_user"
6980 if test "x$withval" != "x" ; then
6989 # Check whether --with-fd_group or --without-fd_group was given.
6990 if test "${with_fd_group+set}" = set; then
6991 withval="$with_fd_group"
6993 if test "x$withval" != "x" ; then
7010 # ------------------------------------------------
7011 # Bacula check for various SQL database engines
7012 # ------------------------------------------------
7015 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7016 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7018 # Check whether --with-postgresql or --without-postgresql was given.
7019 if test "${with_postgresql+set}" = set; then
7020 withval="$with_postgresql"
7022 if test "$withval" != "no"; then
7023 if test "$db_found" = "yes"; then
7024 echo "$as_me:$LINENO: result: error" >&5
7025 echo "${ECHO_T}error" >&6
7026 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
7027 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
7028 { (exit 1); exit 1; }; };
7030 if test "$withval" = "yes"; then
7031 if test -f /usr/local/include/libpq-fe.h; then
7032 POSTGRESQL_INCDIR=/usr/local/include
7033 POSTGRESQL_LIBDIR=/usr/local/lib
7034 POSTGRESQL_BINDIR=/usr/local/bin
7035 elif test -f /usr/include/libpq-fe.h; then
7036 POSTGRESQL_INCDIR=/usr/include
7037 POSTGRESQL_LIBDIR=/usr/lib
7038 POSTGRESQL_BINDIR=/usr/bin
7039 elif test -f /usr/include/pgsql/libpq-fe.h; then
7040 POSTGRESQL_INCDIR=/usr/include/pgsql
7041 POSTGRESQL_LIBDIR=/usr/lib/pgsql
7042 POSTGRESQL_BINDIR=/usr/bin
7044 echo "$as_me:$LINENO: result: no" >&5
7045 echo "${ECHO_T}no" >&6
7046 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7047 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7048 { (exit 1); exit 1; }; }
7050 elif test -f $withval/libpq-fe.h; then
7051 POSTGRESQL_INCDIR=$withval
7052 POSTGRESQL_LIBDIR=$withval
7053 POSTGRESQL_BINDIR=$withval
7055 echo "$as_me:$LINENO: result: no" >&5
7056 echo "${ECHO_T}no" >&6
7057 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
7058 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
7059 { (exit 1); exit 1; }; }
7061 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
7062 echo "$as_me:$LINENO: checking for crypt" >&5
7063 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
7064 if test "${ac_cv_func_crypt+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7067 cat >conftest.$ac_ext <<_ACEOF
7068 #line $LINENO "configure"
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */
7074 /* System header to define __stub macros and hopefully few prototypes,
7075 which can conflict with char crypt (); below.
7076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7077 <limits.h> exists even on freestanding compilers. */
7079 # include <limits.h>
7081 # include <assert.h>
7083 /* Override any gcc2 internal prototype to avoid an error. */
7088 /* We use char because int might match the return type of a gcc2
7089 builtin and then its argument prototype would still apply. */
7091 /* The GNU C library defines this for functions which it implements
7092 to always fail with ENOSYS. Some functions are actually named
7093 something starting with __ and the normal name is an alias. */
7094 #if defined (__stub_crypt) || defined (__stub___crypt)
7097 char (*f) () = crypt;
7111 rm -f conftest.$ac_objext conftest$ac_exeext
7112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7113 (eval $ac_link) 2>&5
7115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7116 (exit $ac_status); } &&
7117 { ac_try='test -s conftest$ac_exeext'
7118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); }; }; then
7123 ac_cv_func_crypt=yes
7125 echo "$as_me: failed program was:" >&5
7126 sed 's/^/| /' conftest.$ac_ext >&5
7130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7132 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
7133 echo "${ECHO_T}$ac_cv_func_crypt" >&6
7134 if test $ac_cv_func_crypt = yes; then
7137 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
7138 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
7139 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7142 ac_check_lib_save_LIBS=$LIBS
7143 LIBS="-lcrypt $LIBS"
7144 cat >conftest.$ac_ext <<_ACEOF
7145 #line $LINENO "configure"
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h. */
7152 /* Override any gcc2 internal prototype to avoid an error. */
7156 /* We use char because int might match the return type of a gcc2
7157 builtin and then its argument prototype would still apply. */
7167 rm -f conftest.$ac_objext conftest$ac_exeext
7168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7169 (eval $ac_link) 2>&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } &&
7173 { ac_try='test -s conftest$ac_exeext'
7174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); }; }; then
7179 ac_cv_lib_crypt_crypt=yes
7181 echo "$as_me: failed program was:" >&5
7182 sed 's/^/| /' conftest.$ac_ext >&5
7184 ac_cv_lib_crypt_crypt=no
7186 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7187 LIBS=$ac_check_lib_save_LIBS
7189 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
7190 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
7191 if test $ac_cv_lib_crypt_crypt = yes; then
7192 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
7197 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7198 SQL_LFLAGS=$POSTGRESQL_LFLAGS
7199 SQL_BINDIR=$POSTGRESQL_BINDIR
7200 cat >>confdefs.h <<\_ACEOF
7201 #define HAVE_POSTGRESQL 1
7204 echo "$as_me:$LINENO: result: yes" >&5
7205 echo "${ECHO_T}yes" >&6
7207 support_postgresql=yes
7211 echo "$as_me:$LINENO: result: no" >&5
7212 echo "${ECHO_T}no" >&6
7217 echo "$as_me:$LINENO: result: no" >&5
7218 echo "${ECHO_T}no" >&6
7229 echo "$as_me:$LINENO: checking for MySQL support" >&5
7230 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7232 # Check whether --with-mysql or --without-mysql was given.
7233 if test "${with_mysql+set}" = set; then
7234 withval="$with_mysql"
7236 if test "$withval" != "no"; then
7237 if test "$withval" = "yes"; then
7238 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7239 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7240 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7241 MYSQL_BINDIR=/usr/local/mysql/bin
7242 elif test -f /usr/include/mysql/mysql.h; then
7243 MYSQL_INCDIR=/usr/include/mysql
7244 MYSQL_LIBDIR=/usr/lib/mysql
7245 MYSQL_BINDIR=/usr/bin
7246 elif test -f /usr/include/mysql.h; then
7247 MYSQL_INCDIR=/usr/include
7248 MYSQL_LIBDIR=/usr/lib
7249 MYSQL_BINDIR=/usr/bin
7250 elif test -f /usr/local/include/mysql/mysql.h; then
7251 MYSQL_INCDIR=/usr/local/include/mysql
7252 MYSQL_LIBDIR=/usr/local/lib/mysql
7253 MYSQL_BINDIR=/usr/local/bin
7254 elif test -f /usr/local/include/mysql.h; then
7255 MYSQL_INCDIR=/usr/local/include
7256 MYSQL_LIBDIR=/usr/local/lib
7257 MYSQL_BINDIR=/usr/local/bin
7259 echo "$as_me:$LINENO: result: no" >&5
7260 echo "${ECHO_T}no" >&6
7261 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7262 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7263 { (exit 1); exit 1; }; }
7266 if test -f $withval/include/mysql/mysql.h; then
7267 MYSQL_INCDIR=$withval/include/mysql
7268 MYSQL_LIBDIR=$withval/lib/mysql
7269 MYSQL_BINDIR=$withval/bin
7270 elif test -f $withval/include/mysql.h; then
7271 MYSQL_INCDIR=$withval/include
7272 MYSQL_LIBDIR=$withval/lib
7273 MYSQL_BINDIR=$withval/bin
7275 echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6
7277 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7278 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7279 { (exit 1); exit 1; }; }
7282 SQL_INCLUDE=-I$MYSQL_INCDIR
7283 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7284 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7285 cat >>confdefs.h <<\_ACEOF
7286 #define HAVE_THREAD_SAFE_MYSQL 1
7290 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7292 SQL_BINDIR=$MYSQL_BINDIR
7294 cat >>confdefs.h <<\_ACEOF
7295 #define HAVE_MYSQL 1
7298 echo "$as_me:$LINENO: result: yes" >&5
7299 echo "${ECHO_T}yes" >&6
7306 echo "$as_me:$LINENO: result: no" >&5
7307 echo "${ECHO_T}no" >&6
7312 echo "$as_me:$LINENO: result: no" >&5
7313 echo "${ECHO_T}no" >&6
7318 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7319 if test "${with_embedded_mysql+set}" = set; then
7320 withval="$with_embedded_mysql"
7322 if test "$withval" != "no"; then
7323 if test "$withval" = "yes"; then
7324 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7325 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7326 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7327 MYSQL_BINDIR=/usr/local/mysql/bin
7328 elif test -f /usr/include/mysql/mysql.h; then
7329 MYSQL_INCDIR=/usr/include/mysql
7330 MYSQL_LIBDIR=/usr/lib/mysql
7331 MYSQL_BINDIR=/usr/bin
7332 elif test -f /usr/include/mysql.h; then
7333 MYSQL_INCDIR=/usr/include
7334 MYSQL_LIBDIR=/usr/lib
7335 MYSQL_BINDIR=/usr/bin
7336 elif test -f /usr/local/include/mysql/mysql.h; then
7337 MYSQL_INCDIR=/usr/local/include/mysql
7338 MYSQL_LIBDIR=/usr/local/lib/mysql
7339 MYSQL_BINDIR=/usr/local/bin
7340 elif test -f /usr/local/include/mysql.h; then
7341 MYSQL_INCDIR=/usr/local/include
7342 MYSQL_LIBDIR=/usr/local/lib
7343 MYSQL_BINDIR=/usr/local/bin
7345 echo "$as_me:$LINENO: result: no" >&5
7346 echo "${ECHO_T}no" >&6
7347 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7348 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7349 { (exit 1); exit 1; }; }
7352 if test -f $withval/include/mysql/mysql.h; then
7353 MYSQL_INCDIR=$withval/include/mysql
7354 MYSQL_LIBDIR=$withval/lib/mysql
7355 MYSQL_BINDIR=$withval/bin
7356 elif test -f $withval/include/mysql.h; then
7357 MYSQL_INCDIR=$withval/include
7358 MYSQL_LIBDIR=$withval/lib
7359 MYSQL_BINDIR=$withval/bin
7361 echo "$as_me:$LINENO: result: no" >&5
7362 echo "${ECHO_T}no" >&6
7363 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7364 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7365 { (exit 1); exit 1; }; }
7368 SQL_INCLUDE=-I$MYSQL_INCDIR
7369 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7370 SQL_BINDIR=$MYSQL_BINDIR
7372 cat >>confdefs.h <<\_ACEOF
7373 #define HAVE_MYSQL 1
7376 cat >>confdefs.h <<\_ACEOF
7377 #define HAVE_EMBEDDED_MYSQL 1
7380 echo "$as_me:$LINENO: result: yes" >&5
7381 echo "${ECHO_T}yes" >&6
7388 echo "$as_me:$LINENO: result: no" >&5
7389 echo "${ECHO_T}no" >&6
7394 echo "$as_me:$LINENO: result: no" >&5
7395 echo "${ECHO_T}no" >&6
7408 echo "$as_me:$LINENO: checking for SQLite support" >&5
7409 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7411 # Check whether --with-sqlite or --without-sqlite was given.
7412 if test "${with_sqlite+set}" = set; then
7413 withval="$with_sqlite"
7415 if test "$withval" != "no"; then
7416 if test "$withval" = "yes"; then
7417 if test -f /usr/local/include/sqlite.h; then
7418 SQLITE_INCDIR=/usr/local/include
7419 SQLITE_LIBDIR=/usr/local/lib
7420 SQLITE_BINDIR=/usr/local/bin
7421 elif test -f /usr/include/sqlite.h; then
7422 SQLITE_INCDIR=/usr/include
7423 SQLITE_LIBDIR=/usr/lib
7424 SQLITE_BINDIR=/usr/bin
7426 echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6
7428 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7429 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7430 { (exit 1); exit 1; }; }
7433 if test -f $withval/sqlite.h; then
7434 SQLITE_INCDIR=$withval
7435 SQLITE_LIBDIR=$withval
7436 SQLITE_BINDIR=$withval
7438 echo "$as_me:$LINENO: result: no" >&5
7439 echo "${ECHO_T}no" >&6
7440 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7441 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7442 { (exit 1); exit 1; }; }
7445 SQL_INCLUDE=-I$SQLITE_INCDIR
7446 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7447 SQL_BINDIR=$SQLITE_BINDIR
7449 cat >>confdefs.h <<\_ACEOF
7450 #define HAVE_SQLITE 1
7453 echo "$as_me:$LINENO: result: yes" >&5
7454 echo "${ECHO_T}yes" >&6
7461 echo "$as_me:$LINENO: result: no" >&5
7462 echo "${ECHO_T}no" >&6
7467 echo "$as_me:$LINENO: result: no" >&5
7468 echo "${ECHO_T}no" >&6
7480 cat >>confdefs.h <<\_ACEOF
7481 #define PROTOTYPES 1
7485 if test -z "$CFLAGS"; then
7486 if test -z "$CCOPTS"; then
7495 largefile_support="no"
7497 # Check whether --enable-largefile or --disable-largefile was given.
7498 if test "${enable_largefile+set}" = set; then
7499 enableval="$enable_largefile"
7502 if test "$enable_largefile" != no; then
7503 if test -n "$ac_tool_prefix"; then
7504 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7505 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7506 echo "$as_me:$LINENO: checking for $ac_word" >&5
7507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7508 if test "${ac_cv_prog_GETCONF+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 if test -n "$GETCONF"; then
7512 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7521 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 GETCONF=$ac_cv_prog_GETCONF
7531 if test -n "$GETCONF"; then
7532 echo "$as_me:$LINENO: result: $GETCONF" >&5
7533 echo "${ECHO_T}$GETCONF" >&6
7535 echo "$as_me:$LINENO: result: no" >&5
7536 echo "${ECHO_T}no" >&6
7540 if test -z "$ac_cv_prog_GETCONF"; then
7541 ac_ct_GETCONF=$GETCONF
7542 # Extract the first word of "getconf", so it can be a program name with args.
7543 set dummy getconf; ac_word=$2
7544 echo "$as_me:$LINENO: checking for $ac_word" >&5
7545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7546 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7547 echo $ECHO_N "(cached) $ECHO_C" >&6
7549 if test -n "$ac_ct_GETCONF"; then
7550 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7556 test -z "$as_dir" && as_dir=.
7557 for ac_exec_ext in '' $ac_executable_extensions; do
7558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7559 ac_cv_prog_ac_ct_GETCONF="getconf"
7560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7569 if test -n "$ac_ct_GETCONF"; then
7570 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7571 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7573 echo "$as_me:$LINENO: result: no" >&5
7574 echo "${ECHO_T}no" >&6
7577 GETCONF=$ac_ct_GETCONF
7579 GETCONF="$ac_cv_prog_GETCONF"
7582 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7583 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7584 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7587 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7588 ac_cv_sys_largefile_CFLAGS=no
7590 # IRIX 6.2 and later require cc -n32.
7591 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7592 if test "$GCC" != yes; then
7593 ac_cv_sys_largefile_CFLAGS=-n32
7596 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7597 cat >conftest.$ac_ext <<_ACEOF
7598 #line $LINENO "configure"
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
7603 /* end confdefs.h. */
7613 rm -f conftest.$ac_objext conftest$ac_exeext
7614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7615 (eval $ac_link) 2>&5
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); } &&
7619 { ac_try='test -s conftest$ac_exeext'
7620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; }; then
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7630 ac_cv_sys_largefile_CFLAGS=no
7632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7637 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7638 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7639 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7640 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7641 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7642 echo $ECHO_N "(cached) $ECHO_C" >&6
7644 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7645 ac_cv_sys_largefile_LDFLAGS=no
7649 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7650 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7651 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7652 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7653 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7656 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7657 ac_cv_sys_largefile_LIBS=no
7661 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7662 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7664 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7667 -D_FILE_OFFSET_BITS=*) ;;
7668 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7669 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7675 '') CPPFLAGS="$ac_flag" ;;
7676 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7684 '') CFLAGS="$ac_flag" ;;
7685 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7690 case "$ac_cv_sys_largefile_LDFLAGS" in
7694 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7695 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7698 case "$ac_cv_sys_largefile_LIBS" in
7702 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7703 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7706 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7707 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7708 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7709 echo $ECHO_N "(cached) $ECHO_C" >&6
7711 ac_cv_sys_file_offset_bits=no
7713 # HP-UX 10.20 and later
7714 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7715 ac_cv_sys_file_offset_bits=64 ;;
7717 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7719 -D_FILE_OFFSET_BITS)
7720 ac_cv_sys_file_offset_bits=1 ;;
7721 -D_FILE_OFFSET_BITS=*)
7722 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7727 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7728 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7729 if test "$ac_cv_sys_file_offset_bits" != no; then
7731 cat >>confdefs.h <<_ACEOF
7732 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7736 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7737 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7738 if test "${ac_cv_sys_largefile_source+set}" = set; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 ac_cv_sys_largefile_source=no
7743 # HP-UX 10.20 and later
7744 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7745 ac_cv_sys_largefile_source=1 ;;
7747 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7749 -D_LARGEFILE_SOURCE)
7750 ac_cv_sys_largefile_source=1 ;;
7751 -D_LARGEFILE_SOURCE=*)
7752 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7757 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7758 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7759 if test "$ac_cv_sys_largefile_source" != no; then
7761 cat >>confdefs.h <<_ACEOF
7762 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7766 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7767 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7768 if test "${ac_cv_sys_large_files+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
7771 ac_cv_sys_large_files=no
7774 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7775 ac_cv_sys_large_files=1 ;;
7777 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7780 ac_cv_sys_large_files=1 ;;
7782 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7787 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7788 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7789 if test "$ac_cv_sys_large_files" != no; then
7791 cat >>confdefs.h <<_ACEOF
7792 #define _LARGE_FILES $ac_cv_sys_large_files
7800 echo "$as_me:$LINENO: checking for X" >&5
7801 echo $ECHO_N "checking for X... $ECHO_C" >&6
7804 # Check whether --with-x or --without-x was given.
7805 if test "${with_x+set}" = set; then
7809 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7810 if test "x$with_x" = xno; then
7811 # The user explicitly disabled X.
7814 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7815 # Both variables are already set.
7818 if test "${ac_cv_have_x+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7821 # One or both of the vars are not set, and there is no cached value.
7822 ac_x_includes=no ac_x_libraries=no
7824 if mkdir conftest.dir; then
7826 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7827 cat >Imakefile <<'_ACEOF'
7829 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7831 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7832 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7833 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7834 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7835 for ac_extension in a so sl; do
7836 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7837 test -f $ac_im_libdir/libX11.$ac_extension; then
7838 ac_im_usrlibdir=$ac_im_libdir; break
7841 # Screen out bogus values from the imake configuration. They are
7842 # bogus both because they are the default anyway, and because
7843 # using them would break gcc on systems where it needs fixed includes.
7844 case $ac_im_incroot in
7846 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7848 case $ac_im_usrlibdir in
7850 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7857 # Standard set of common directories for X headers.
7858 # Check X11 before X11Rn because it is often a symlink to the current release.
7870 /usr/local/X11/include
7871 /usr/local/X11R6/include
7872 /usr/local/X11R5/include
7873 /usr/local/X11R4/include
7875 /usr/local/include/X11
7876 /usr/local/include/X11R6
7877 /usr/local/include/X11R5
7878 /usr/local/include/X11R4
7882 /usr/XFree86/include/X11
7886 /usr/unsupported/include
7888 /usr/local/x11r5/include
7889 /usr/lpp/Xamples/include
7891 /usr/openwin/include
7892 /usr/openwin/share/include'
7894 if test "$ac_x_includes" = no; then
7895 # Guess where to find include files, by looking for Intrinsic.h.
7896 # First, try using that file with no special directory specified.
7897 cat >conftest.$ac_ext <<_ACEOF
7898 #line $LINENO "configure"
7901 cat confdefs.h >>conftest.$ac_ext
7902 cat >>conftest.$ac_ext <<_ACEOF
7903 /* end confdefs.h. */
7904 #include <X11/Intrinsic.h>
7906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7909 grep -v '^ *+' conftest.er1 >conftest.err
7911 cat conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } >/dev/null; then
7914 if test -s conftest.err; then
7915 ac_cpp_err=$ac_c_preproc_warn_flag
7922 if test -z "$ac_cpp_err"; then
7923 # We can compile using X headers with no special include directory.
7926 echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7929 for ac_dir in $ac_x_header_dirs; do
7930 if test -r "$ac_dir/X11/Intrinsic.h"; then
7931 ac_x_includes=$ac_dir
7936 rm -f conftest.err conftest.$ac_ext
7937 fi # $ac_x_includes = no
7939 if test "$ac_x_libraries" = no; then
7940 # Check for the libraries.
7941 # See if we find them without any special options.
7942 # Don't add to $LIBS permanently.
7945 cat >conftest.$ac_ext <<_ACEOF
7946 #line $LINENO "configure"
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h. */
7952 #include <X11/Intrinsic.h>
7961 rm -f conftest.$ac_objext conftest$ac_exeext
7962 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7963 (eval $ac_link) 2>&5
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } &&
7967 { ac_try='test -s conftest$ac_exeext'
7968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; }; then
7974 # We can link X programs with no special library path.
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.$ac_ext >&5
7981 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7983 # Don't even attempt the hair of trying to link an X program!
7984 for ac_extension in a so sl; do
7985 if test -r $ac_dir/libXt.$ac_extension; then
7986 ac_x_libraries=$ac_dir
7992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7993 fi # $ac_x_libraries = no
7995 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7996 # Didn't find X anywhere. Cache the known absence of X.
7997 ac_cv_have_x="have_x=no"
7999 # Record where we found X for the cache.
8000 ac_cv_have_x="have_x=yes \
8001 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8006 eval "$ac_cv_have_x"
8009 if test "$have_x" != yes; then
8010 echo "$as_me:$LINENO: result: $have_x" >&5
8011 echo "${ECHO_T}$have_x" >&6
8014 # If each of the values was on the command line, it overrides each guess.
8015 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8016 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8017 # Update the cache value to reflect the command line values.
8018 ac_cv_have_x="have_x=yes \
8019 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
8020 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
8021 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
8024 if test "$no_x" = yes; then
8025 # Not all programs may use this symbol, but it does not hurt to define it.
8027 cat >>confdefs.h <<\_ACEOF
8028 #define X_DISPLAY_MISSING 1
8031 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
8033 if test -n "$x_includes"; then
8034 X_CFLAGS="$X_CFLAGS -I$x_includes"
8037 # It would also be nice to do this for all -L options, not just this one.
8038 if test -n "$x_libraries"; then
8039 X_LIBS="$X_LIBS -L$x_libraries"
8040 # For Solaris; some versions of Sun CC require a space after -R and
8041 # others require no space. Words are not sufficient . . . .
8042 case `(uname -sr) 2>/dev/null` in
8044 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
8045 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
8046 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
8047 cat >conftest.$ac_ext <<_ACEOF
8048 #line $LINENO "configure"
8051 cat confdefs.h >>conftest.$ac_ext
8052 cat >>conftest.$ac_ext <<_ACEOF
8053 /* end confdefs.h. */
8063 rm -f conftest.$ac_objext conftest$ac_exeext
8064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8065 (eval $ac_link) 2>&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); } &&
8069 { ac_try='test -s conftest$ac_exeext'
8070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8074 (exit $ac_status); }; }; then
8077 echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.$ac_ext >&5
8082 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8083 if test $ac_R_nospace = yes; then
8084 echo "$as_me:$LINENO: result: no" >&5
8085 echo "${ECHO_T}no" >&6
8086 X_LIBS="$X_LIBS -R$x_libraries"
8088 LIBS="$ac_xsave_LIBS -R $x_libraries"
8089 cat >conftest.$ac_ext <<_ACEOF
8090 #line $LINENO "configure"
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h. */
8105 rm -f conftest.$ac_objext conftest$ac_exeext
8106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8107 (eval $ac_link) 2>&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } &&
8111 { ac_try='test -s conftest$ac_exeext'
8112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; }; then
8119 echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8125 if test $ac_R_space = yes; then
8126 echo "$as_me:$LINENO: result: yes" >&5
8127 echo "${ECHO_T}yes" >&6
8128 X_LIBS="$X_LIBS -R $x_libraries"
8130 echo "$as_me:$LINENO: result: neither works" >&5
8131 echo "${ECHO_T}neither works" >&6
8138 # Check for system-dependent libraries X programs must link with.
8139 # Do this before checking for the system-independent R6 libraries
8140 # (-lICE), since we may need -lsocket or whatever for X linking.
8142 if test "$ISC" = yes; then
8143 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8145 # Martyn Johnson says this is needed for Ultrix, if the X
8146 # libraries were built with DECnet support. And Karl Berry says
8147 # the Alpha needs dnet_stub (dnet does not exist).
8148 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8149 cat >conftest.$ac_ext <<_ACEOF
8150 #line $LINENO "configure"
8153 cat confdefs.h >>conftest.$ac_ext
8154 cat >>conftest.$ac_ext <<_ACEOF
8155 /* end confdefs.h. */
8157 /* Override any gcc2 internal prototype to avoid an error. */
8161 /* We use char because int might match the return type of a gcc2
8162 builtin and then its argument prototype would still apply. */
8163 char XOpenDisplay ();
8172 rm -f conftest.$ac_objext conftest$ac_exeext
8173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8174 (eval $ac_link) 2>&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } &&
8178 { ac_try='test -s conftest$ac_exeext'
8179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; }; then
8186 echo "$as_me: failed program was:" >&5
8187 sed 's/^/| /' conftest.$ac_ext >&5
8189 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8190 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8191 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 ac_check_lib_save_LIBS=$LIBS
8196 cat >conftest.$ac_ext <<_ACEOF
8197 #line $LINENO "configure"
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h. */
8204 /* Override any gcc2 internal prototype to avoid an error. */
8208 /* We use char because int might match the return type of a gcc2
8209 builtin and then its argument prototype would still apply. */
8219 rm -f conftest.$ac_objext conftest$ac_exeext
8220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8221 (eval $ac_link) 2>&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } &&
8225 { ac_try='test -s conftest$ac_exeext'
8226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; }; then
8231 ac_cv_lib_dnet_dnet_ntoa=yes
8233 echo "$as_me: failed program was:" >&5
8234 sed 's/^/| /' conftest.$ac_ext >&5
8236 ac_cv_lib_dnet_dnet_ntoa=no
8238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8239 LIBS=$ac_check_lib_save_LIBS
8241 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8242 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8243 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8244 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8247 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8248 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8249 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8250 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 ac_check_lib_save_LIBS=$LIBS
8254 LIBS="-ldnet_stub $LIBS"
8255 cat >conftest.$ac_ext <<_ACEOF
8256 #line $LINENO "configure"
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8263 /* Override any gcc2 internal prototype to avoid an error. */
8267 /* We use char because int might match the return type of a gcc2
8268 builtin and then its argument prototype would still apply. */
8278 rm -f conftest.$ac_objext conftest$ac_exeext
8279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8280 (eval $ac_link) 2>&5
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); } &&
8284 { ac_try='test -s conftest$ac_exeext'
8285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); }; }; then
8290 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8295 ac_cv_lib_dnet_stub_dnet_ntoa=no
8297 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8298 LIBS=$ac_check_lib_save_LIBS
8300 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8301 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8302 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8303 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8308 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8309 LIBS="$ac_xsave_LIBS"
8311 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8312 # to get the SysV transport functions.
8313 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8315 # The nsl library prevents programs from opening the X display
8316 # on Irix 5.2, according to T.E. Dickey.
8317 # The functions gethostbyname, getservbyname, and inet_addr are
8318 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8319 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8320 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8321 if test "${ac_cv_func_gethostbyname+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8324 cat >conftest.$ac_ext <<_ACEOF
8325 #line $LINENO "configure"
8328 cat confdefs.h >>conftest.$ac_ext
8329 cat >>conftest.$ac_ext <<_ACEOF
8330 /* end confdefs.h. */
8331 /* System header to define __stub macros and hopefully few prototypes,
8332 which can conflict with char gethostbyname (); below.
8333 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8334 <limits.h> exists even on freestanding compilers. */
8336 # include <limits.h>
8338 # include <assert.h>
8340 /* Override any gcc2 internal prototype to avoid an error. */
8345 /* We use char because int might match the return type of a gcc2
8346 builtin and then its argument prototype would still apply. */
8347 char gethostbyname ();
8348 /* The GNU C library defines this for functions which it implements
8349 to always fail with ENOSYS. Some functions are actually named
8350 something starting with __ and the normal name is an alias. */
8351 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8354 char (*f) () = gethostbyname;
8363 return f != gethostbyname;
8368 rm -f conftest.$ac_objext conftest$ac_exeext
8369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8370 (eval $ac_link) 2>&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } &&
8374 { ac_try='test -s conftest$ac_exeext'
8375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; }; then
8380 ac_cv_func_gethostbyname=yes
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8385 ac_cv_func_gethostbyname=no
8387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8389 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8390 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8392 if test $ac_cv_func_gethostbyname = no; then
8393 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8394 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8395 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8398 ac_check_lib_save_LIBS=$LIBS
8400 cat >conftest.$ac_ext <<_ACEOF
8401 #line $LINENO "configure"
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h. */
8408 /* Override any gcc2 internal prototype to avoid an error. */
8412 /* We use char because int might match the return type of a gcc2
8413 builtin and then its argument prototype would still apply. */
8414 char gethostbyname ();
8423 rm -f conftest.$ac_objext conftest$ac_exeext
8424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8425 (eval $ac_link) 2>&5
8427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8428 (exit $ac_status); } &&
8429 { ac_try='test -s conftest$ac_exeext'
8430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8434 (exit $ac_status); }; }; then
8435 ac_cv_lib_nsl_gethostbyname=yes
8437 echo "$as_me: failed program was:" >&5
8438 sed 's/^/| /' conftest.$ac_ext >&5
8440 ac_cv_lib_nsl_gethostbyname=no
8442 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8443 LIBS=$ac_check_lib_save_LIBS
8445 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8446 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8447 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8448 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8451 if test $ac_cv_lib_nsl_gethostbyname = no; then
8452 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8453 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8454 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 ac_check_lib_save_LIBS=$LIBS
8459 cat >conftest.$ac_ext <<_ACEOF
8460 #line $LINENO "configure"
8463 cat confdefs.h >>conftest.$ac_ext
8464 cat >>conftest.$ac_ext <<_ACEOF
8465 /* end confdefs.h. */
8467 /* Override any gcc2 internal prototype to avoid an error. */
8471 /* We use char because int might match the return type of a gcc2
8472 builtin and then its argument prototype would still apply. */
8473 char gethostbyname ();
8482 rm -f conftest.$ac_objext conftest$ac_exeext
8483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8484 (eval $ac_link) 2>&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } &&
8488 { ac_try='test -s conftest$ac_exeext'
8489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); }; }; then
8494 ac_cv_lib_bsd_gethostbyname=yes
8496 echo "$as_me: failed program was:" >&5
8497 sed 's/^/| /' conftest.$ac_ext >&5
8499 ac_cv_lib_bsd_gethostbyname=no
8501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8502 LIBS=$ac_check_lib_save_LIBS
8504 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8505 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8506 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8507 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8513 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8514 # socket/setsockopt and other routines are undefined under SCO ODT
8515 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8516 # on later versions), says Simon Leinen: it contains gethostby*
8517 # variants that don't use the name server (or something). -lsocket
8518 # must be given before -lnsl if both are needed. We assume that
8519 # if connect needs -lnsl, so does gethostbyname.
8520 echo "$as_me:$LINENO: checking for connect" >&5
8521 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8522 if test "${ac_cv_func_connect+set}" = set; then
8523 echo $ECHO_N "(cached) $ECHO_C" >&6
8525 cat >conftest.$ac_ext <<_ACEOF
8526 #line $LINENO "configure"
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8532 /* System header to define __stub macros and hopefully few prototypes,
8533 which can conflict with char connect (); below.
8534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8535 <limits.h> exists even on freestanding compilers. */
8537 # include <limits.h>
8539 # include <assert.h>
8541 /* Override any gcc2 internal prototype to avoid an error. */
8546 /* We use char because int might match the return type of a gcc2
8547 builtin and then its argument prototype would still apply. */
8549 /* The GNU C library defines this for functions which it implements
8550 to always fail with ENOSYS. Some functions are actually named
8551 something starting with __ and the normal name is an alias. */
8552 #if defined (__stub_connect) || defined (__stub___connect)
8555 char (*f) () = connect;
8564 return f != connect;
8569 rm -f conftest.$ac_objext conftest$ac_exeext
8570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8571 (eval $ac_link) 2>&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } &&
8575 { ac_try='test -s conftest$ac_exeext'
8576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8580 (exit $ac_status); }; }; then
8581 ac_cv_func_connect=yes
8583 echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8586 ac_cv_func_connect=no
8588 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8590 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8591 echo "${ECHO_T}$ac_cv_func_connect" >&6
8593 if test $ac_cv_func_connect = no; then
8594 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8595 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8596 if test "${ac_cv_lib_socket_connect+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8599 ac_check_lib_save_LIBS=$LIBS
8600 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8601 cat >conftest.$ac_ext <<_ACEOF
8602 #line $LINENO "configure"
8605 cat confdefs.h >>conftest.$ac_ext
8606 cat >>conftest.$ac_ext <<_ACEOF
8607 /* end confdefs.h. */
8609 /* Override any gcc2 internal prototype to avoid an error. */
8613 /* We use char because int might match the return type of a gcc2
8614 builtin and then its argument prototype would still apply. */
8624 rm -f conftest.$ac_objext conftest$ac_exeext
8625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8626 (eval $ac_link) 2>&5
8628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8629 (exit $ac_status); } &&
8630 { ac_try='test -s conftest$ac_exeext'
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; }; then
8636 ac_cv_lib_socket_connect=yes
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8641 ac_cv_lib_socket_connect=no
8643 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8644 LIBS=$ac_check_lib_save_LIBS
8646 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8647 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8648 if test $ac_cv_lib_socket_connect = yes; then
8649 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8654 # Guillermo Gomez says -lposix is necessary on A/UX.
8655 echo "$as_me:$LINENO: checking for remove" >&5
8656 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8657 if test "${ac_cv_func_remove+set}" = set; then
8658 echo $ECHO_N "(cached) $ECHO_C" >&6
8660 cat >conftest.$ac_ext <<_ACEOF
8661 #line $LINENO "configure"
8664 cat confdefs.h >>conftest.$ac_ext
8665 cat >>conftest.$ac_ext <<_ACEOF
8666 /* end confdefs.h. */
8667 /* System header to define __stub macros and hopefully few prototypes,
8668 which can conflict with char remove (); below.
8669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8670 <limits.h> exists even on freestanding compilers. */
8672 # include <limits.h>
8674 # include <assert.h>
8676 /* Override any gcc2 internal prototype to avoid an error. */
8681 /* We use char because int might match the return type of a gcc2
8682 builtin and then its argument prototype would still apply. */
8684 /* The GNU C library defines this for functions which it implements
8685 to always fail with ENOSYS. Some functions are actually named
8686 something starting with __ and the normal name is an alias. */
8687 #if defined (__stub_remove) || defined (__stub___remove)
8690 char (*f) () = remove;
8704 rm -f conftest.$ac_objext conftest$ac_exeext
8705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8706 (eval $ac_link) 2>&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } &&
8710 { ac_try='test -s conftest$ac_exeext'
8711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; }; then
8716 ac_cv_func_remove=yes
8718 echo "$as_me: failed program was:" >&5
8719 sed 's/^/| /' conftest.$ac_ext >&5
8721 ac_cv_func_remove=no
8723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8725 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8726 echo "${ECHO_T}$ac_cv_func_remove" >&6
8728 if test $ac_cv_func_remove = no; then
8729 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8730 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8731 if test "${ac_cv_lib_posix_remove+set}" = set; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8734 ac_check_lib_save_LIBS=$LIBS
8735 LIBS="-lposix $LIBS"
8736 cat >conftest.$ac_ext <<_ACEOF
8737 #line $LINENO "configure"
8740 cat confdefs.h >>conftest.$ac_ext
8741 cat >>conftest.$ac_ext <<_ACEOF
8742 /* end confdefs.h. */
8744 /* Override any gcc2 internal prototype to avoid an error. */
8748 /* We use char because int might match the return type of a gcc2
8749 builtin and then its argument prototype would still apply. */
8759 rm -f conftest.$ac_objext conftest$ac_exeext
8760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8761 (eval $ac_link) 2>&5
8763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8764 (exit $ac_status); } &&
8765 { ac_try='test -s conftest$ac_exeext'
8766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); }; }; then
8771 ac_cv_lib_posix_remove=yes
8773 echo "$as_me: failed program was:" >&5
8774 sed 's/^/| /' conftest.$ac_ext >&5
8776 ac_cv_lib_posix_remove=no
8778 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8779 LIBS=$ac_check_lib_save_LIBS
8781 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8782 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8783 if test $ac_cv_lib_posix_remove = yes; then
8784 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8789 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8790 echo "$as_me:$LINENO: checking for shmat" >&5
8791 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8792 if test "${ac_cv_func_shmat+set}" = set; then
8793 echo $ECHO_N "(cached) $ECHO_C" >&6
8795 cat >conftest.$ac_ext <<_ACEOF
8796 #line $LINENO "configure"
8799 cat confdefs.h >>conftest.$ac_ext
8800 cat >>conftest.$ac_ext <<_ACEOF
8801 /* end confdefs.h. */
8802 /* System header to define __stub macros and hopefully few prototypes,
8803 which can conflict with char shmat (); below.
8804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8805 <limits.h> exists even on freestanding compilers. */
8807 # include <limits.h>
8809 # include <assert.h>
8811 /* Override any gcc2 internal prototype to avoid an error. */
8816 /* We use char because int might match the return type of a gcc2
8817 builtin and then its argument prototype would still apply. */
8819 /* The GNU C library defines this for functions which it implements
8820 to always fail with ENOSYS. Some functions are actually named
8821 something starting with __ and the normal name is an alias. */
8822 #if defined (__stub_shmat) || defined (__stub___shmat)
8825 char (*f) () = shmat;
8839 rm -f conftest.$ac_objext conftest$ac_exeext
8840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8841 (eval $ac_link) 2>&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } &&
8845 { ac_try='test -s conftest$ac_exeext'
8846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8850 (exit $ac_status); }; }; then
8851 ac_cv_func_shmat=yes
8853 echo "$as_me: failed program was:" >&5
8854 sed 's/^/| /' conftest.$ac_ext >&5
8858 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8860 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8861 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8863 if test $ac_cv_func_shmat = no; then
8864 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8865 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8866 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8869 ac_check_lib_save_LIBS=$LIBS
8871 cat >conftest.$ac_ext <<_ACEOF
8872 #line $LINENO "configure"
8875 cat confdefs.h >>conftest.$ac_ext
8876 cat >>conftest.$ac_ext <<_ACEOF
8877 /* end confdefs.h. */
8879 /* Override any gcc2 internal prototype to avoid an error. */
8883 /* We use char because int might match the return type of a gcc2
8884 builtin and then its argument prototype would still apply. */
8894 rm -f conftest.$ac_objext conftest$ac_exeext
8895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8896 (eval $ac_link) 2>&5
8898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899 (exit $ac_status); } &&
8900 { ac_try='test -s conftest$ac_exeext'
8901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905 (exit $ac_status); }; }; then
8906 ac_cv_lib_ipc_shmat=yes
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8911 ac_cv_lib_ipc_shmat=no
8913 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8914 LIBS=$ac_check_lib_save_LIBS
8916 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8917 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8918 if test $ac_cv_lib_ipc_shmat = yes; then
8919 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8925 # Check for libraries that X11R6 Xt/Xaw programs need.
8926 ac_save_LDFLAGS=$LDFLAGS
8927 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8928 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8929 # check for ICE first), but we must link in the order -lSM -lICE or
8930 # we get undefined symbols. So assume we have SM if we have ICE.
8931 # These have to be linked with before -lX11, unlike the other
8932 # libraries we check for below, so use a different variable.
8933 # John Interrante, Karl Berry
8934 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8935 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8936 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 ac_check_lib_save_LIBS=$LIBS
8940 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8941 cat >conftest.$ac_ext <<_ACEOF
8942 #line $LINENO "configure"
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8949 /* Override any gcc2 internal prototype to avoid an error. */
8953 /* We use char because int might match the return type of a gcc2
8954 builtin and then its argument prototype would still apply. */
8955 char IceConnectionNumber ();
8959 IceConnectionNumber ();
8964 rm -f conftest.$ac_objext conftest$ac_exeext
8965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8966 (eval $ac_link) 2>&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } &&
8970 { ac_try='test -s conftest$ac_exeext'
8971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; }; then
8976 ac_cv_lib_ICE_IceConnectionNumber=yes
8978 echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8981 ac_cv_lib_ICE_IceConnectionNumber=no
8983 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8984 LIBS=$ac_check_lib_save_LIBS
8986 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8987 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8988 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8989 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8992 LDFLAGS=$ac_save_LDFLAGS
9044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9046 echo "$as_me:$LINENO: checking for $ac_header" >&5
9047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9054 # Is the header compilable?
9055 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9057 cat >conftest.$ac_ext <<_ACEOF
9058 #line $LINENO "configure"
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h. */
9064 $ac_includes_default
9065 #include <$ac_header>
9067 rm -f conftest.$ac_objext
9068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9069 (eval $ac_compile) 2>&5
9071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9072 (exit $ac_status); } &&
9073 { ac_try='test -s conftest.$ac_objext'
9074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 (exit $ac_status); }; }; then
9079 ac_header_compiler=yes
9081 echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9084 ac_header_compiler=no
9086 rm -f conftest.$ac_objext conftest.$ac_ext
9087 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9088 echo "${ECHO_T}$ac_header_compiler" >&6
9090 # Is the header present?
9091 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9093 cat >conftest.$ac_ext <<_ACEOF
9094 #line $LINENO "configure"
9097 cat confdefs.h >>conftest.$ac_ext
9098 cat >>conftest.$ac_ext <<_ACEOF
9099 /* end confdefs.h. */
9100 #include <$ac_header>
9102 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9103 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9105 grep -v '^ *+' conftest.er1 >conftest.err
9107 cat conftest.err >&5
9108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109 (exit $ac_status); } >/dev/null; then
9110 if test -s conftest.err; then
9111 ac_cpp_err=$ac_c_preproc_warn_flag
9118 if test -z "$ac_cpp_err"; then
9119 ac_header_preproc=yes
9121 echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9124 ac_header_preproc=no
9126 rm -f conftest.err conftest.$ac_ext
9127 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9128 echo "${ECHO_T}$ac_header_preproc" >&6
9130 # So? What about this header?
9131 case $ac_header_compiler:$ac_header_preproc in
9133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9134 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9139 ## ------------------------------------ ##
9140 ## Report this to bug-autoconf@gnu.org. ##
9141 ## ------------------------------------ ##
9144 sed "s/^/$as_me: WARNING: /" >&2
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9150 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9151 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9155 ## ------------------------------------ ##
9156 ## Report this to bug-autoconf@gnu.org. ##
9157 ## ------------------------------------ ##
9160 sed "s/^/$as_me: WARNING: /" >&2
9163 echo "$as_me:$LINENO: checking for $ac_header" >&5
9164 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9165 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9166 echo $ECHO_N "(cached) $ECHO_C" >&6
9168 eval "$as_ac_Header=$ac_header_preproc"
9170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9175 cat >>confdefs.h <<_ACEOF
9176 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9183 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9184 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9185 if test "${ac_cv_header_stdc+set}" = set; then
9186 echo $ECHO_N "(cached) $ECHO_C" >&6
9188 cat >conftest.$ac_ext <<_ACEOF
9189 #line $LINENO "configure"
9192 cat confdefs.h >>conftest.$ac_ext
9193 cat >>conftest.$ac_ext <<_ACEOF
9194 /* end confdefs.h. */
9208 rm -f conftest.$ac_objext
9209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9210 (eval $ac_compile) 2>&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } &&
9214 { ac_try='test -s conftest.$ac_objext'
9215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219 (exit $ac_status); }; }; then
9220 ac_cv_header_stdc=yes
9222 echo "$as_me: failed program was:" >&5
9223 sed 's/^/| /' conftest.$ac_ext >&5
9225 ac_cv_header_stdc=no
9227 rm -f conftest.$ac_objext conftest.$ac_ext
9229 if test $ac_cv_header_stdc = yes; then
9230 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9231 cat >conftest.$ac_ext <<_ACEOF
9232 #line $LINENO "configure"
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9242 $EGREP "memchr" >/dev/null 2>&1; then
9245 ac_cv_header_stdc=no
9251 if test $ac_cv_header_stdc = yes; then
9252 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9253 cat >conftest.$ac_ext <<_ACEOF
9254 #line $LINENO "configure"
9257 cat confdefs.h >>conftest.$ac_ext
9258 cat >>conftest.$ac_ext <<_ACEOF
9259 /* end confdefs.h. */
9263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9264 $EGREP "free" >/dev/null 2>&1; then
9267 ac_cv_header_stdc=no
9273 if test $ac_cv_header_stdc = yes; then
9274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9275 if test "$cross_compiling" = yes; then
9278 cat >conftest.$ac_ext <<_ACEOF
9279 #line $LINENO "configure"
9282 cat confdefs.h >>conftest.$ac_ext
9283 cat >>conftest.$ac_ext <<_ACEOF
9284 /* end confdefs.h. */
9286 #if ((' ' & 0x0FF) == 0x020)
9287 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9288 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9290 # define ISLOWER(c) \
9291 (('a' <= (c) && (c) <= 'i') \
9292 || ('j' <= (c) && (c) <= 'r') \
9293 || ('s' <= (c) && (c) <= 'z'))
9294 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9297 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9302 for (i = 0; i < 256; i++)
9303 if (XOR (islower (i), ISLOWER (i))
9304 || toupper (i) != TOUPPER (i))
9309 rm -f conftest$ac_exeext
9310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9311 (eval $ac_link) 2>&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 (exit $ac_status); }; }; then
9322 echo "$as_me: program exited with status $ac_status" >&5
9323 echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9327 ac_cv_header_stdc=no
9329 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9333 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9334 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9335 if test $ac_cv_header_stdc = yes; then
9337 cat >>confdefs.h <<\_ACEOF
9338 #define STDC_HEADERS 1
9343 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9344 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9345 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9348 cat >conftest.$ac_ext <<_ACEOF
9349 #line $LINENO "configure"
9352 cat confdefs.h >>conftest.$ac_ext
9353 cat >>conftest.$ac_ext <<_ACEOF
9354 /* end confdefs.h. */
9355 #include <sys/types.h>
9359 return makedev(0, 0);
9364 rm -f conftest.$ac_objext conftest$ac_exeext
9365 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9366 (eval $ac_link) 2>&5
9368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9369 (exit $ac_status); } &&
9370 { ac_try='test -s conftest$ac_exeext'
9371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); }; }; then
9376 ac_cv_header_sys_types_h_makedev=yes
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9381 ac_cv_header_sys_types_h_makedev=no
9383 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9386 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9387 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9389 if test $ac_cv_header_sys_types_h_makedev = no; then
9390 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9391 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9392 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9393 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9394 echo $ECHO_N "(cached) $ECHO_C" >&6
9396 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9397 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9399 # Is the header compilable?
9400 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9401 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9402 cat >conftest.$ac_ext <<_ACEOF
9403 #line $LINENO "configure"
9406 cat confdefs.h >>conftest.$ac_ext
9407 cat >>conftest.$ac_ext <<_ACEOF
9408 /* end confdefs.h. */
9409 $ac_includes_default
9410 #include <sys/mkdev.h>
9412 rm -f conftest.$ac_objext
9413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9414 (eval $ac_compile) 2>&5
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } &&
9418 { ac_try='test -s conftest.$ac_objext'
9419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9423 (exit $ac_status); }; }; then
9424 ac_header_compiler=yes
9426 echo "$as_me: failed program was:" >&5
9427 sed 's/^/| /' conftest.$ac_ext >&5
9429 ac_header_compiler=no
9431 rm -f conftest.$ac_objext conftest.$ac_ext
9432 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9433 echo "${ECHO_T}$ac_header_compiler" >&6
9435 # Is the header present?
9436 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9437 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9438 cat >conftest.$ac_ext <<_ACEOF
9439 #line $LINENO "configure"
9442 cat confdefs.h >>conftest.$ac_ext
9443 cat >>conftest.$ac_ext <<_ACEOF
9444 /* end confdefs.h. */
9445 #include <sys/mkdev.h>
9447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9450 grep -v '^ *+' conftest.er1 >conftest.err
9452 cat conftest.err >&5
9453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9454 (exit $ac_status); } >/dev/null; then
9455 if test -s conftest.err; then
9456 ac_cpp_err=$ac_c_preproc_warn_flag
9463 if test -z "$ac_cpp_err"; then
9464 ac_header_preproc=yes
9466 echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9469 ac_header_preproc=no
9471 rm -f conftest.err conftest.$ac_ext
9472 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9473 echo "${ECHO_T}$ac_header_preproc" >&6
9475 # So? What about this header?
9476 case $ac_header_compiler:$ac_header_preproc in
9478 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9479 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9480 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9481 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9484 ## ------------------------------------ ##
9485 ## Report this to bug-autoconf@gnu.org. ##
9486 ## ------------------------------------ ##
9489 sed "s/^/$as_me: WARNING: /" >&2
9492 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9493 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9494 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9495 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9496 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9497 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9500 ## ------------------------------------ ##
9501 ## Report this to bug-autoconf@gnu.org. ##
9502 ## ------------------------------------ ##
9505 sed "s/^/$as_me: WARNING: /" >&2
9508 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9509 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9510 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9513 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9515 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9516 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9519 if test $ac_cv_header_sys_mkdev_h = yes; then
9521 cat >>confdefs.h <<\_ACEOF
9522 #define MAJOR_IN_MKDEV 1
9529 if test $ac_cv_header_sys_mkdev_h = no; then
9530 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9531 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9532 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9533 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9534 echo $ECHO_N "(cached) $ECHO_C" >&6
9536 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9537 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9539 # Is the header compilable?
9540 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9541 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9542 cat >conftest.$ac_ext <<_ACEOF
9543 #line $LINENO "configure"
9546 cat confdefs.h >>conftest.$ac_ext
9547 cat >>conftest.$ac_ext <<_ACEOF
9548 /* end confdefs.h. */
9549 $ac_includes_default
9550 #include <sys/sysmacros.h>
9552 rm -f conftest.$ac_objext
9553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9554 (eval $ac_compile) 2>&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } &&
9558 { ac_try='test -s conftest.$ac_objext'
9559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); }; }; then
9564 ac_header_compiler=yes
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.$ac_ext >&5
9569 ac_header_compiler=no
9571 rm -f conftest.$ac_objext conftest.$ac_ext
9572 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9573 echo "${ECHO_T}$ac_header_compiler" >&6
9575 # Is the header present?
9576 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9577 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9578 cat >conftest.$ac_ext <<_ACEOF
9579 #line $LINENO "configure"
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9585 #include <sys/sysmacros.h>
9587 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9588 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9590 grep -v '^ *+' conftest.er1 >conftest.err
9592 cat conftest.err >&5
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); } >/dev/null; then
9595 if test -s conftest.err; then
9596 ac_cpp_err=$ac_c_preproc_warn_flag
9603 if test -z "$ac_cpp_err"; then
9604 ac_header_preproc=yes
9606 echo "$as_me: failed program was:" >&5
9607 sed 's/^/| /' conftest.$ac_ext >&5
9609 ac_header_preproc=no
9611 rm -f conftest.err conftest.$ac_ext
9612 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9613 echo "${ECHO_T}$ac_header_preproc" >&6
9615 # So? What about this header?
9616 case $ac_header_compiler:$ac_header_preproc in
9618 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9619 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9620 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9621 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9624 ## ------------------------------------ ##
9625 ## Report this to bug-autoconf@gnu.org. ##
9626 ## ------------------------------------ ##
9629 sed "s/^/$as_me: WARNING: /" >&2
9632 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9633 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9634 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9635 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9636 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9637 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9640 ## ------------------------------------ ##
9641 ## Report this to bug-autoconf@gnu.org. ##
9642 ## ------------------------------------ ##
9645 sed "s/^/$as_me: WARNING: /" >&2
9648 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9649 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9650 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9653 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9655 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9656 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9659 if test $ac_cv_header_sys_sysmacros_h = yes; then
9661 cat >>confdefs.h <<\_ACEOF
9662 #define MAJOR_IN_SYSMACROS 1
9677 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9678 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9679 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9680 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9682 echo $ECHO_N "(cached) $ECHO_C" >&6
9684 cat >conftest.$ac_ext <<_ACEOF
9685 #line $LINENO "configure"
9688 cat confdefs.h >>conftest.$ac_ext
9689 cat >>conftest.$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9691 #include <sys/types.h>
9703 rm -f conftest.$ac_objext
9704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9705 (eval $ac_compile) 2>&5
9707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708 (exit $ac_status); } &&
9709 { ac_try='test -s conftest.$ac_objext'
9710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); }; }; then
9715 eval "$as_ac_Header=yes"
9717 echo "$as_me: failed program was:" >&5
9718 sed 's/^/| /' conftest.$ac_ext >&5
9720 eval "$as_ac_Header=no"
9722 rm -f conftest.$ac_objext conftest.$ac_ext
9724 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9725 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9727 cat >>confdefs.h <<_ACEOF
9728 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9731 ac_header_dirent=$ac_hdr; break
9735 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9736 if test $ac_header_dirent = dirent.h; then
9737 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9738 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9739 if test "${ac_cv_search_opendir+set}" = set; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9742 ac_func_search_save_LIBS=$LIBS
9743 ac_cv_search_opendir=no
9744 cat >conftest.$ac_ext <<_ACEOF
9745 #line $LINENO "configure"
9748 cat confdefs.h >>conftest.$ac_ext
9749 cat >>conftest.$ac_ext <<_ACEOF
9750 /* end confdefs.h. */
9752 /* Override any gcc2 internal prototype to avoid an error. */
9756 /* We use char because int might match the return type of a gcc2
9757 builtin and then its argument prototype would still apply. */
9767 rm -f conftest.$ac_objext conftest$ac_exeext
9768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9769 (eval $ac_link) 2>&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } &&
9773 { ac_try='test -s conftest$ac_exeext'
9774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); }; }; then
9779 ac_cv_search_opendir="none required"
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9786 if test "$ac_cv_search_opendir" = no; then
9787 for ac_lib in dir; do
9788 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9789 cat >conftest.$ac_ext <<_ACEOF
9790 #line $LINENO "configure"
9793 cat confdefs.h >>conftest.$ac_ext
9794 cat >>conftest.$ac_ext <<_ACEOF
9795 /* end confdefs.h. */
9797 /* Override any gcc2 internal prototype to avoid an error. */
9801 /* We use char because int might match the return type of a gcc2
9802 builtin and then its argument prototype would still apply. */
9812 rm -f conftest.$ac_objext conftest$ac_exeext
9813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9814 (eval $ac_link) 2>&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } &&
9818 { ac_try='test -s conftest$ac_exeext'
9819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9823 (exit $ac_status); }; }; then
9824 ac_cv_search_opendir="-l$ac_lib"
9827 echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9834 LIBS=$ac_func_search_save_LIBS
9836 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9837 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9838 if test "$ac_cv_search_opendir" != no; then
9839 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9844 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9845 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9846 if test "${ac_cv_search_opendir+set}" = set; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9849 ac_func_search_save_LIBS=$LIBS
9850 ac_cv_search_opendir=no
9851 cat >conftest.$ac_ext <<_ACEOF
9852 #line $LINENO "configure"
9855 cat confdefs.h >>conftest.$ac_ext
9856 cat >>conftest.$ac_ext <<_ACEOF
9857 /* end confdefs.h. */
9859 /* Override any gcc2 internal prototype to avoid an error. */
9863 /* We use char because int might match the return type of a gcc2
9864 builtin and then its argument prototype would still apply. */
9874 rm -f conftest.$ac_objext conftest$ac_exeext
9875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9876 (eval $ac_link) 2>&5
9878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9879 (exit $ac_status); } &&
9880 { ac_try='test -s conftest$ac_exeext'
9881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9885 (exit $ac_status); }; }; then
9886 ac_cv_search_opendir="none required"
9888 echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9892 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9893 if test "$ac_cv_search_opendir" = no; then
9895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9896 cat >conftest.$ac_ext <<_ACEOF
9897 #line $LINENO "configure"
9900 cat confdefs.h >>conftest.$ac_ext
9901 cat >>conftest.$ac_ext <<_ACEOF
9902 /* end confdefs.h. */
9904 /* Override any gcc2 internal prototype to avoid an error. */
9908 /* We use char because int might match the return type of a gcc2
9909 builtin and then its argument prototype would still apply. */
9919 rm -f conftest.$ac_objext conftest$ac_exeext
9920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9921 (eval $ac_link) 2>&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } &&
9925 { ac_try='test -s conftest$ac_exeext'
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; }; then
9931 ac_cv_search_opendir="-l$ac_lib"
9934 echo "$as_me: failed program was:" >&5
9935 sed 's/^/| /' conftest.$ac_ext >&5
9938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9941 LIBS=$ac_func_search_save_LIBS
9943 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9944 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9945 if test "$ac_cv_search_opendir" != no; then
9946 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9952 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9953 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9954 if test "${ac_cv_header_stat_broken+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 cat >conftest.$ac_ext <<_ACEOF
9958 #line $LINENO "configure"
9961 cat confdefs.h >>conftest.$ac_ext
9962 cat >>conftest.$ac_ext <<_ACEOF
9963 /* end confdefs.h. */
9964 #include <sys/types.h>
9965 #include <sys/stat.h>
9967 #if defined(S_ISBLK) && defined(S_IFDIR)
9968 # if S_ISBLK (S_IFDIR)
9973 #if defined(S_ISBLK) && defined(S_IFCHR)
9974 # if S_ISBLK (S_IFCHR)
9979 #if defined(S_ISLNK) && defined(S_IFREG)
9980 # if S_ISLNK (S_IFREG)
9985 #if defined(S_ISSOCK) && defined(S_IFREG)
9986 # if S_ISSOCK (S_IFREG)
9992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9993 $EGREP "You lose" >/dev/null 2>&1; then
9994 ac_cv_header_stat_broken=yes
9996 ac_cv_header_stat_broken=no
10001 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10002 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10003 if test $ac_cv_header_stat_broken = yes; then
10005 cat >>confdefs.h <<\_ACEOF
10006 #define STAT_MACROS_BROKEN 1
10011 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
10012 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
10013 if test "${ac_cv_header_sys_wait_h+set}" = set; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10016 cat >conftest.$ac_ext <<_ACEOF
10017 #line $LINENO "configure"
10020 cat confdefs.h >>conftest.$ac_ext
10021 cat >>conftest.$ac_ext <<_ACEOF
10022 /* end confdefs.h. */
10023 #include <sys/types.h>
10024 #include <sys/wait.h>
10025 #ifndef WEXITSTATUS
10026 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
10029 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
10037 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
10042 rm -f conftest.$ac_objext
10043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10044 (eval $ac_compile) 2>&5
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); } &&
10048 { ac_try='test -s conftest.$ac_objext'
10049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10050 (eval $ac_try) 2>&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); }; }; then
10054 ac_cv_header_sys_wait_h=yes
10056 echo "$as_me: failed program was:" >&5
10057 sed 's/^/| /' conftest.$ac_ext >&5
10059 ac_cv_header_sys_wait_h=no
10061 rm -f conftest.$ac_objext conftest.$ac_ext
10063 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
10064 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
10065 if test $ac_cv_header_sys_wait_h = yes; then
10067 cat >>confdefs.h <<\_ACEOF
10068 #define HAVE_SYS_WAIT_H 1
10073 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10074 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10075 if test "${ac_cv_header_time+set}" = set; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
10078 cat >conftest.$ac_ext <<_ACEOF
10079 #line $LINENO "configure"
10082 cat confdefs.h >>conftest.$ac_ext
10083 cat >>conftest.$ac_ext <<_ACEOF
10084 /* end confdefs.h. */
10085 #include <sys/types.h>
10086 #include <sys/time.h>
10092 if ((struct tm *) 0)
10098 rm -f conftest.$ac_objext
10099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10100 (eval $ac_compile) 2>&5
10102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); } &&
10104 { ac_try='test -s conftest.$ac_objext'
10105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10106 (eval $ac_try) 2>&5
10108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); }; }; then
10110 ac_cv_header_time=yes
10112 echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.$ac_ext >&5
10115 ac_cv_header_time=no
10117 rm -f conftest.$ac_objext conftest.$ac_ext
10119 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10120 echo "${ECHO_T}$ac_cv_header_time" >&6
10121 if test $ac_cv_header_time = yes; then
10123 cat >>confdefs.h <<\_ACEOF
10124 #define TIME_WITH_SYS_TIME 1
10130 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
10131 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
10132 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10135 cat >conftest.$ac_ext <<_ACEOF
10136 #line $LINENO "configure"
10139 cat confdefs.h >>conftest.$ac_ext
10140 cat >>conftest.$ac_ext <<_ACEOF
10141 /* end confdefs.h. */
10142 $ac_includes_default
10146 static struct stat ac_aggr;
10147 if (ac_aggr.st_blksize)
10153 rm -f conftest.$ac_objext
10154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10155 (eval $ac_compile) 2>&5
10157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10158 (exit $ac_status); } &&
10159 { ac_try='test -s conftest.$ac_objext'
10160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10161 (eval $ac_try) 2>&5
10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164 (exit $ac_status); }; }; then
10165 ac_cv_member_struct_stat_st_blksize=yes
10167 echo "$as_me: failed program was:" >&5
10168 sed 's/^/| /' conftest.$ac_ext >&5
10170 cat >conftest.$ac_ext <<_ACEOF
10171 #line $LINENO "configure"
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h. */
10177 $ac_includes_default
10181 static struct stat ac_aggr;
10182 if (sizeof ac_aggr.st_blksize)
10188 rm -f conftest.$ac_objext
10189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10190 (eval $ac_compile) 2>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } &&
10194 { ac_try='test -s conftest.$ac_objext'
10195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10196 (eval $ac_try) 2>&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); }; }; then
10200 ac_cv_member_struct_stat_st_blksize=yes
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10205 ac_cv_member_struct_stat_st_blksize=no
10207 rm -f conftest.$ac_objext conftest.$ac_ext
10209 rm -f conftest.$ac_objext conftest.$ac_ext
10211 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10212 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10213 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10215 cat >>confdefs.h <<_ACEOF
10216 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10220 cat >>confdefs.h <<\_ACEOF
10221 #define HAVE_ST_BLKSIZE 1
10227 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10228 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10229 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 cat >conftest.$ac_ext <<_ACEOF
10233 #line $LINENO "configure"
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10239 $ac_includes_default
10243 static struct stat ac_aggr;
10244 if (ac_aggr.st_blocks)
10250 rm -f conftest.$ac_objext
10251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10252 (eval $ac_compile) 2>&5
10254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10255 (exit $ac_status); } &&
10256 { ac_try='test -s conftest.$ac_objext'
10257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10258 (eval $ac_try) 2>&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); }; }; then
10262 ac_cv_member_struct_stat_st_blocks=yes
10264 echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10267 cat >conftest.$ac_ext <<_ACEOF
10268 #line $LINENO "configure"
10271 cat confdefs.h >>conftest.$ac_ext
10272 cat >>conftest.$ac_ext <<_ACEOF
10273 /* end confdefs.h. */
10274 $ac_includes_default
10278 static struct stat ac_aggr;
10279 if (sizeof ac_aggr.st_blocks)
10285 rm -f conftest.$ac_objext
10286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10287 (eval $ac_compile) 2>&5
10289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10290 (exit $ac_status); } &&
10291 { ac_try='test -s conftest.$ac_objext'
10292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10293 (eval $ac_try) 2>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); }; }; then
10297 ac_cv_member_struct_stat_st_blocks=yes
10299 echo "$as_me: failed program was:" >&5
10300 sed 's/^/| /' conftest.$ac_ext >&5
10302 ac_cv_member_struct_stat_st_blocks=no
10304 rm -f conftest.$ac_objext conftest.$ac_ext
10306 rm -f conftest.$ac_objext conftest.$ac_ext
10308 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10309 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10310 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10312 cat >>confdefs.h <<_ACEOF
10313 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10317 cat >>confdefs.h <<\_ACEOF
10318 #define HAVE_ST_BLOCKS 1
10322 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10326 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10327 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10328 if test "${ac_cv_struct_tm+set}" = set; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10331 cat >conftest.$ac_ext <<_ACEOF
10332 #line $LINENO "configure"
10335 cat confdefs.h >>conftest.$ac_ext
10336 cat >>conftest.$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10338 #include <sys/types.h>
10344 struct tm *tp; tp->tm_sec;
10349 rm -f conftest.$ac_objext
10350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10351 (eval $ac_compile) 2>&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); } &&
10355 { ac_try='test -s conftest.$ac_objext'
10356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357 (eval $ac_try) 2>&5
10359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); }; }; then
10361 ac_cv_struct_tm=time.h
10363 echo "$as_me: failed program was:" >&5
10364 sed 's/^/| /' conftest.$ac_ext >&5
10366 ac_cv_struct_tm=sys/time.h
10368 rm -f conftest.$ac_objext conftest.$ac_ext
10370 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10371 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10372 if test $ac_cv_struct_tm = sys/time.h; then
10374 cat >>confdefs.h <<\_ACEOF
10375 #define TM_IN_SYS_TIME 1
10380 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10381 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10382 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 cat >conftest.$ac_ext <<_ACEOF
10386 #line $LINENO "configure"
10389 cat confdefs.h >>conftest.$ac_ext
10390 cat >>conftest.$ac_ext <<_ACEOF
10391 /* end confdefs.h. */
10392 #include <sys/types.h>
10393 #include <$ac_cv_struct_tm>
10399 static struct tm ac_aggr;
10400 if (ac_aggr.tm_zone)
10406 rm -f conftest.$ac_objext
10407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10408 (eval $ac_compile) 2>&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } &&
10412 { ac_try='test -s conftest.$ac_objext'
10413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414 (eval $ac_try) 2>&5
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); }; }; then
10418 ac_cv_member_struct_tm_tm_zone=yes
10420 echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10423 cat >conftest.$ac_ext <<_ACEOF
10424 #line $LINENO "configure"
10427 cat confdefs.h >>conftest.$ac_ext
10428 cat >>conftest.$ac_ext <<_ACEOF
10429 /* end confdefs.h. */
10430 #include <sys/types.h>
10431 #include <$ac_cv_struct_tm>
10437 static struct tm ac_aggr;
10438 if (sizeof ac_aggr.tm_zone)
10444 rm -f conftest.$ac_objext
10445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10446 (eval $ac_compile) 2>&5
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); } &&
10450 { ac_try='test -s conftest.$ac_objext'
10451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10452 (eval $ac_try) 2>&5
10454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); }; }; then
10456 ac_cv_member_struct_tm_tm_zone=yes
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10461 ac_cv_member_struct_tm_tm_zone=no
10463 rm -f conftest.$ac_objext conftest.$ac_ext
10465 rm -f conftest.$ac_objext conftest.$ac_ext
10467 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10468 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10469 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10471 cat >>confdefs.h <<_ACEOF
10472 #define HAVE_STRUCT_TM_TM_ZONE 1
10478 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10480 cat >>confdefs.h <<\_ACEOF
10481 #define HAVE_TM_ZONE 1
10485 echo "$as_me:$LINENO: checking for tzname" >&5
10486 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10487 if test "${ac_cv_var_tzname+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10490 cat >conftest.$ac_ext <<_ACEOF
10491 #line $LINENO "configure"
10494 cat confdefs.h >>conftest.$ac_ext
10495 cat >>conftest.$ac_ext <<_ACEOF
10496 /* end confdefs.h. */
10498 #ifndef tzname /* For SGI. */
10499 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10510 rm -f conftest.$ac_objext conftest$ac_exeext
10511 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10512 (eval $ac_link) 2>&5
10514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515 (exit $ac_status); } &&
10516 { ac_try='test -s conftest$ac_exeext'
10517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518 (eval $ac_try) 2>&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); }; }; then
10522 ac_cv_var_tzname=yes
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.$ac_ext >&5
10527 ac_cv_var_tzname=no
10529 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10531 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10532 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10533 if test $ac_cv_var_tzname = yes; then
10535 cat >>confdefs.h <<\_ACEOF
10536 #define HAVE_TZNAME 1
10543 echo "$as_me:$LINENO: checking for utime.h" >&5
10544 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10545 if test "${ba_cv_header_utime_h+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10548 cat >conftest.$ac_ext <<_ACEOF
10549 #line $LINENO "configure"
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h. */
10556 #include <sys/types.h>
10566 rm -f conftest.$ac_objext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10568 (eval $ac_compile) 2>&5
10570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10571 (exit $ac_status); } &&
10572 { ac_try='test -s conftest.$ac_objext'
10573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10574 (eval $ac_try) 2>&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; }; then
10578 ba_cv_header_utime_h=yes
10580 echo "$as_me: failed program was:" >&5
10581 sed 's/^/| /' conftest.$ac_ext >&5
10583 ba_cv_header_utime_h=no
10585 rm -f conftest.$ac_objext conftest.$ac_ext
10587 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10588 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10589 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10590 #define HAVE_UTIME_H 1
10594 echo "$as_me:$LINENO: checking for socklen_t" >&5
10595 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10596 if test "${ba_cv_header_socklen_t+set}" = set; then
10597 echo $ECHO_N "(cached) $ECHO_C" >&6
10599 cat >conftest.$ac_ext <<_ACEOF
10600 #line $LINENO "configure"
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h. */
10607 #include <sys/types.h>
10608 #include <sys/socket.h>
10617 rm -f conftest.$ac_objext
10618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10619 (eval $ac_compile) 2>&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } &&
10623 { ac_try='test -s conftest.$ac_objext'
10624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10625 (eval $ac_try) 2>&5
10627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628 (exit $ac_status); }; }; then
10629 ba_cv_header_socklen_t=yes
10631 echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.$ac_ext >&5
10634 ba_cv_header_socklen_t=no
10636 rm -f conftest.$ac_objext conftest.$ac_ext
10638 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10639 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10640 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10641 #define HAVE_SOCKLEN_T 1
10645 echo "$as_me:$LINENO: checking for bigendian" >&5
10646 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10647 if test "${ba_cv_bigendian+set}" = set; then
10648 echo $ECHO_N "(cached) $ECHO_C" >&6
10650 if test "$cross_compiling" = yes; then
10653 cat >conftest.$ac_ext <<_ACEOF
10654 #line $LINENO "configure"
10657 cat confdefs.h >>conftest.$ac_ext
10658 cat >>conftest.$ac_ext <<_ACEOF
10659 /* end confdefs.h. */
10660 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10662 rm -f conftest$ac_exeext
10663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10664 (eval $ac_link) 2>&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669 (eval $ac_try) 2>&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); }; }; then
10673 ba_cv_bigendian=yes
10675 echo "$as_me: program exited with status $ac_status" >&5
10676 echo "$as_me: failed program was:" >&5
10677 sed 's/^/| /' conftest.$ac_ext >&5
10679 ( exit $ac_status )
10682 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10685 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10686 echo "${ECHO_T}$ba_cv_bigendian" >&6
10687 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10688 #define HAVE_BIGENDIAN 1
10693 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10694 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10695 if test "${ac_cv_c_const+set}" = set; then
10696 echo $ECHO_N "(cached) $ECHO_C" >&6
10698 cat >conftest.$ac_ext <<_ACEOF
10699 #line $LINENO "configure"
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h. */
10709 /* FIXME: Include the comments suggested by Paul. */
10710 #ifndef __cplusplus
10711 /* Ultrix mips cc rejects this. */
10712 typedef int charset[2];
10714 /* SunOS 4.1.1 cc rejects this. */
10715 char const *const *ccp;
10717 /* NEC SVR4.0.2 mips cc rejects this. */
10718 struct point {int x, y;};
10719 static struct point const zero = {0,0};
10720 /* AIX XL C 1.02.0.0 rejects this.
10721 It does not let you subtract one const X* pointer from another in
10722 an arm of an if-expression whose if-part is not a constant
10724 const char *g = "string";
10725 ccp = &g + (g ? g-g : 0);
10726 /* HPUX 7.0 cc rejects these. */
10729 ccp = (char const *const *) p;
10730 { /* SCO 3.2v4 cc rejects this. */
10732 char const *s = 0 ? (char *) 0 : (char const *) 0;
10736 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10737 int x[] = {25, 17};
10738 const int *foo = &x[0];
10741 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10742 typedef const int *iptr;
10746 { /* AIX XL C 1.02.0.0 rejects this saying
10747 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10748 struct s { int j; const int *ap[3]; };
10749 struct s *b; b->j = 5;
10751 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10752 const int foo = 10;
10760 rm -f conftest.$ac_objext
10761 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10762 (eval $ac_compile) 2>&5
10764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10765 (exit $ac_status); } &&
10766 { ac_try='test -s conftest.$ac_objext'
10767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10768 (eval $ac_try) 2>&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); }; }; then
10774 echo "$as_me: failed program was:" >&5
10775 sed 's/^/| /' conftest.$ac_ext >&5
10779 rm -f conftest.$ac_objext conftest.$ac_ext
10781 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10782 echo "${ECHO_T}$ac_cv_c_const" >&6
10783 if test $ac_cv_c_const = no; then
10785 cat >>confdefs.h <<\_ACEOF
10793 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10794 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10796 # The order of these tests is important.
10797 cat >conftest.$ac_ext <<_ACEOF
10798 #line $LINENO "configure"
10801 cat confdefs.h >>conftest.$ac_ext
10802 cat >>conftest.$ac_ext <<_ACEOF
10803 /* end confdefs.h. */
10804 #include <sys/statvfs.h>
10805 #include <sys/fstyp.h>
10807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10808 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10810 grep -v '^ *+' conftest.er1 >conftest.err
10812 cat conftest.err >&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } >/dev/null; then
10815 if test -s conftest.err; then
10816 ac_cpp_err=$ac_c_preproc_warn_flag
10823 if test -z "$ac_cpp_err"; then
10824 cat >>confdefs.h <<\_ACEOF
10825 #define FSTYPE_STATVFS 1
10829 echo "$as_me: failed program was:" >&5
10830 sed 's/^/| /' conftest.$ac_ext >&5
10834 rm -f conftest.err conftest.$ac_ext
10835 if test $fstype = no; then
10836 cat >conftest.$ac_ext <<_ACEOF
10837 #line $LINENO "configure"
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10843 #include <sys/statfs.h>
10844 #include <sys/fstyp.h>
10846 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10847 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10849 grep -v '^ *+' conftest.er1 >conftest.err
10851 cat conftest.err >&5
10852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853 (exit $ac_status); } >/dev/null; then
10854 if test -s conftest.err; then
10855 ac_cpp_err=$ac_c_preproc_warn_flag
10862 if test -z "$ac_cpp_err"; then
10863 cat >>confdefs.h <<\_ACEOF
10864 #define FSTYPE_USG_STATFS 1
10868 echo "$as_me: failed program was:" >&5
10869 sed 's/^/| /' conftest.$ac_ext >&5
10873 rm -f conftest.err conftest.$ac_ext
10875 if test $fstype = no; then
10876 cat >conftest.$ac_ext <<_ACEOF
10877 #line $LINENO "configure"
10880 cat confdefs.h >>conftest.$ac_ext
10881 cat >>conftest.$ac_ext <<_ACEOF
10882 /* end confdefs.h. */
10883 #include <sys/statfs.h>
10884 #include <sys/vmount.h>
10886 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10887 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10889 grep -v '^ *+' conftest.er1 >conftest.err
10891 cat conftest.err >&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); } >/dev/null; then
10894 if test -s conftest.err; then
10895 ac_cpp_err=$ac_c_preproc_warn_flag
10902 if test -z "$ac_cpp_err"; then
10903 cat >>confdefs.h <<\_ACEOF
10904 #define FSTYPE_AIX_STATFS 1
10908 echo "$as_me: failed program was:" >&5
10909 sed 's/^/| /' conftest.$ac_ext >&5
10913 rm -f conftest.err conftest.$ac_ext
10915 if test $fstype = no; then
10916 cat >conftest.$ac_ext <<_ACEOF
10917 #line $LINENO "configure"
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h. */
10923 #include <mntent.h>
10925 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10926 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10928 grep -v '^ *+' conftest.er1 >conftest.err
10930 cat conftest.err >&5
10931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10932 (exit $ac_status); } >/dev/null; then
10933 if test -s conftest.err; then
10934 ac_cpp_err=$ac_c_preproc_warn_flag
10941 if test -z "$ac_cpp_err"; then
10942 cat >>confdefs.h <<\_ACEOF
10943 #define FSTYPE_MNTENT 1
10947 echo "$as_me: failed program was:" >&5
10948 sed 's/^/| /' conftest.$ac_ext >&5
10952 rm -f conftest.err conftest.$ac_ext
10954 if test $fstype = no; then
10955 cat >conftest.$ac_ext <<_ACEOF
10956 #line $LINENO "configure"
10959 cat confdefs.h >>conftest.$ac_ext
10960 cat >>conftest.$ac_ext <<_ACEOF
10961 /* end confdefs.h. */
10962 #include <sys/mount.h>
10965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10966 $EGREP "f_type;" >/dev/null 2>&1; then
10967 cat >>confdefs.h <<\_ACEOF
10968 #define FSTYPE_STATFS 1
10975 if test $fstype = no; then
10976 cat >conftest.$ac_ext <<_ACEOF
10977 #line $LINENO "configure"
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h. */
10983 #include <sys/mount.h>
10984 #include <sys/fs_types.h>
10986 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10987 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10989 grep -v '^ *+' conftest.er1 >conftest.err
10991 cat conftest.err >&5
10992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10993 (exit $ac_status); } >/dev/null; then
10994 if test -s conftest.err; then
10995 ac_cpp_err=$ac_c_preproc_warn_flag
11002 if test -z "$ac_cpp_err"; then
11003 cat >>confdefs.h <<\_ACEOF
11004 #define FSTYPE_GETMNT 1
11008 echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11013 rm -f conftest.err conftest.$ac_ext
11015 echo "$as_me:$LINENO: result: $fstype" >&5
11016 echo "${ECHO_T}$fstype" >&6
11018 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
11019 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
11020 if test "${ac_cv_type_signal+set}" = set; then
11021 echo $ECHO_N "(cached) $ECHO_C" >&6
11023 cat >conftest.$ac_ext <<_ACEOF
11024 #line $LINENO "configure"
11027 cat confdefs.h >>conftest.$ac_ext
11028 cat >>conftest.$ac_ext <<_ACEOF
11029 /* end confdefs.h. */
11030 #include <sys/types.h>
11031 #include <signal.h>
11036 extern "C" void (*signal (int, void (*)(int)))(int);
11038 void (*signal ()) ();
11049 rm -f conftest.$ac_objext
11050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11051 (eval $ac_compile) 2>&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } &&
11055 { ac_try='test -s conftest.$ac_objext'
11056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11057 (eval $ac_try) 2>&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; }; then
11061 ac_cv_type_signal=void
11063 echo "$as_me: failed program was:" >&5
11064 sed 's/^/| /' conftest.$ac_ext >&5
11066 ac_cv_type_signal=int
11068 rm -f conftest.$ac_objext conftest.$ac_ext
11070 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
11071 echo "${ECHO_T}$ac_cv_type_signal" >&6
11073 cat >>confdefs.h <<_ACEOF
11074 #define RETSIGTYPE $ac_cv_type_signal
11079 echo "$as_me:$LINENO: checking for type of signal functions" >&5
11080 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
11081 if test "${bash_cv_signal_vintage+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11085 cat >conftest.$ac_ext <<_ACEOF
11086 #line $LINENO "configure"
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11092 #include <signal.h>
11098 struct sigaction sa;
11099 sigemptyset(&ss); sigsuspend(&ss);
11100 sigaction(SIGINT, &sa, (struct sigaction *) 0);
11101 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
11107 rm -f conftest.$ac_objext conftest$ac_exeext
11108 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11109 (eval $ac_link) 2>&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } &&
11113 { ac_try='test -s conftest$ac_exeext'
11114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11115 (eval $ac_try) 2>&5
11117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118 (exit $ac_status); }; }; then
11119 bash_cv_signal_vintage=posix
11121 echo "$as_me: failed program was:" >&5
11122 sed 's/^/| /' conftest.$ac_ext >&5
11125 cat >conftest.$ac_ext <<_ACEOF
11126 #line $LINENO "configure"
11129 cat confdefs.h >>conftest.$ac_ext
11130 cat >>conftest.$ac_ext <<_ACEOF
11131 /* end confdefs.h. */
11132 #include <signal.h>
11137 int mask = sigmask(SIGINT);
11138 sigsetmask(mask); sigblock(mask); sigpause(mask);
11144 rm -f conftest.$ac_objext conftest$ac_exeext
11145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11146 (eval $ac_link) 2>&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } &&
11150 { ac_try='test -s conftest$ac_exeext'
11151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11152 (eval $ac_try) 2>&5
11154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155 (exit $ac_status); }; }; then
11156 bash_cv_signal_vintage=4.2bsd
11158 echo "$as_me: failed program was:" >&5
11159 sed 's/^/| /' conftest.$ac_ext >&5
11162 cat >conftest.$ac_ext <<_ACEOF
11163 #line $LINENO "configure"
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11170 #include <signal.h>
11171 RETSIGTYPE foo() { }
11176 int mask = sigmask(SIGINT);
11177 sigset(SIGINT, foo); sigrelse(SIGINT);
11178 sighold(SIGINT); sigpause(SIGINT);
11184 rm -f conftest.$ac_objext conftest$ac_exeext
11185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11186 (eval $ac_link) 2>&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } &&
11190 { ac_try='test -s conftest$ac_exeext'
11191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11192 (eval $ac_try) 2>&5
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); }; }; then
11196 bash_cv_signal_vintage=svr3
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 bash_cv_signal_vintage=v7
11204 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11207 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11214 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11215 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11216 if test "$bash_cv_signal_vintage" = posix; then
11217 cat >>confdefs.h <<\_ACEOF
11218 #define HAVE_POSIX_SIGNALS 1
11221 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11222 cat >>confdefs.h <<\_ACEOF
11223 #define HAVE_BSD_SIGNALS 1
11226 elif test "$bash_cv_signal_vintage" = svr3; then
11227 cat >>confdefs.h <<\_ACEOF
11228 #define HAVE_USG_SIGHOLD 1
11233 echo "$as_me:$LINENO: checking for mode_t" >&5
11234 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11235 if test "${ac_cv_type_mode_t+set}" = set; then
11236 echo $ECHO_N "(cached) $ECHO_C" >&6
11238 cat >conftest.$ac_ext <<_ACEOF
11239 #line $LINENO "configure"
11242 cat confdefs.h >>conftest.$ac_ext
11243 cat >>conftest.$ac_ext <<_ACEOF
11244 /* end confdefs.h. */
11245 $ac_includes_default
11251 if (sizeof (mode_t))
11257 rm -f conftest.$ac_objext
11258 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11259 (eval $ac_compile) 2>&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } &&
11263 { ac_try='test -s conftest.$ac_objext'
11264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11265 (eval $ac_try) 2>&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); }; }; then
11269 ac_cv_type_mode_t=yes
11271 echo "$as_me: failed program was:" >&5
11272 sed 's/^/| /' conftest.$ac_ext >&5
11274 ac_cv_type_mode_t=no
11276 rm -f conftest.$ac_objext conftest.$ac_ext
11278 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11279 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11280 if test $ac_cv_type_mode_t = yes; then
11284 cat >>confdefs.h <<_ACEOF
11290 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11291 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11292 if test "${ac_cv_type_uid_t+set}" = set; then
11293 echo $ECHO_N "(cached) $ECHO_C" >&6
11295 cat >conftest.$ac_ext <<_ACEOF
11296 #line $LINENO "configure"
11299 cat confdefs.h >>conftest.$ac_ext
11300 cat >>conftest.$ac_ext <<_ACEOF
11301 /* end confdefs.h. */
11302 #include <sys/types.h>
11305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11306 $EGREP "uid_t" >/dev/null 2>&1; then
11307 ac_cv_type_uid_t=yes
11309 ac_cv_type_uid_t=no
11314 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11315 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11316 if test $ac_cv_type_uid_t = no; then
11318 cat >>confdefs.h <<\_ACEOF
11323 cat >>confdefs.h <<\_ACEOF
11329 echo "$as_me:$LINENO: checking for size_t" >&5
11330 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11331 if test "${ac_cv_type_size_t+set}" = set; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11334 cat >conftest.$ac_ext <<_ACEOF
11335 #line $LINENO "configure"
11338 cat confdefs.h >>conftest.$ac_ext
11339 cat >>conftest.$ac_ext <<_ACEOF
11340 /* end confdefs.h. */
11341 $ac_includes_default
11347 if (sizeof (size_t))
11353 rm -f conftest.$ac_objext
11354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11355 (eval $ac_compile) 2>&5
11357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } &&
11359 { ac_try='test -s conftest.$ac_objext'
11360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11361 (eval $ac_try) 2>&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); }; }; then
11365 ac_cv_type_size_t=yes
11367 echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11370 ac_cv_type_size_t=no
11372 rm -f conftest.$ac_objext conftest.$ac_ext
11374 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11375 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11376 if test $ac_cv_type_size_t = yes; then
11380 cat >>confdefs.h <<_ACEOF
11381 #define size_t unsigned
11386 echo "$as_me:$LINENO: checking for pid_t" >&5
11387 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11388 if test "${ac_cv_type_pid_t+set}" = set; then
11389 echo $ECHO_N "(cached) $ECHO_C" >&6
11391 cat >conftest.$ac_ext <<_ACEOF
11392 #line $LINENO "configure"
11395 cat confdefs.h >>conftest.$ac_ext
11396 cat >>conftest.$ac_ext <<_ACEOF
11397 /* end confdefs.h. */
11398 $ac_includes_default
11404 if (sizeof (pid_t))
11410 rm -f conftest.$ac_objext
11411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11412 (eval $ac_compile) 2>&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); } &&
11416 { ac_try='test -s conftest.$ac_objext'
11417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11418 (eval $ac_try) 2>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; }; then
11422 ac_cv_type_pid_t=yes
11424 echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11427 ac_cv_type_pid_t=no
11429 rm -f conftest.$ac_objext conftest.$ac_ext
11431 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11432 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11433 if test $ac_cv_type_pid_t = yes; then
11437 cat >>confdefs.h <<_ACEOF
11443 echo "$as_me:$LINENO: checking for off_t" >&5
11444 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11445 if test "${ac_cv_type_off_t+set}" = set; then
11446 echo $ECHO_N "(cached) $ECHO_C" >&6
11448 cat >conftest.$ac_ext <<_ACEOF
11449 #line $LINENO "configure"
11452 cat confdefs.h >>conftest.$ac_ext
11453 cat >>conftest.$ac_ext <<_ACEOF
11454 /* end confdefs.h. */
11455 $ac_includes_default
11461 if (sizeof (off_t))
11467 rm -f conftest.$ac_objext
11468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11469 (eval $ac_compile) 2>&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); } &&
11473 { ac_try='test -s conftest.$ac_objext'
11474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475 (eval $ac_try) 2>&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; }; then
11479 ac_cv_type_off_t=yes
11481 echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11484 ac_cv_type_off_t=no
11486 rm -f conftest.$ac_objext conftest.$ac_ext
11488 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11489 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11490 if test $ac_cv_type_off_t = yes; then
11494 cat >>confdefs.h <<_ACEOF
11500 echo "$as_me:$LINENO: checking for ino_t" >&5
11501 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11502 if test "${ac_cv_type_ino_t+set}" = set; then
11503 echo $ECHO_N "(cached) $ECHO_C" >&6
11505 cat >conftest.$ac_ext <<_ACEOF
11506 #line $LINENO "configure"
11509 cat confdefs.h >>conftest.$ac_ext
11510 cat >>conftest.$ac_ext <<_ACEOF
11511 /* end confdefs.h. */
11512 $ac_includes_default
11518 if (sizeof (ino_t))
11524 rm -f conftest.$ac_objext
11525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11526 (eval $ac_compile) 2>&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } &&
11530 { ac_try='test -s conftest.$ac_objext'
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; }; then
11536 ac_cv_type_ino_t=yes
11538 echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11541 ac_cv_type_ino_t=no
11543 rm -f conftest.$ac_objext conftest.$ac_ext
11545 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11546 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11547 if test $ac_cv_type_ino_t = yes; then
11551 cat >>confdefs.h <<_ACEOF
11552 #define ino_t unsigned long
11557 echo "$as_me:$LINENO: checking for dev_t" >&5
11558 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11559 if test "${ac_cv_type_dev_t+set}" = set; then
11560 echo $ECHO_N "(cached) $ECHO_C" >&6
11562 cat >conftest.$ac_ext <<_ACEOF
11563 #line $LINENO "configure"
11566 cat confdefs.h >>conftest.$ac_ext
11567 cat >>conftest.$ac_ext <<_ACEOF
11568 /* end confdefs.h. */
11569 $ac_includes_default
11575 if (sizeof (dev_t))
11581 rm -f conftest.$ac_objext
11582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11583 (eval $ac_compile) 2>&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } &&
11587 { ac_try='test -s conftest.$ac_objext'
11588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11589 (eval $ac_try) 2>&5
11591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11592 (exit $ac_status); }; }; then
11593 ac_cv_type_dev_t=yes
11595 echo "$as_me: failed program was:" >&5
11596 sed 's/^/| /' conftest.$ac_ext >&5
11598 ac_cv_type_dev_t=no
11600 rm -f conftest.$ac_objext conftest.$ac_ext
11602 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11603 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11604 if test $ac_cv_type_dev_t = yes; then
11608 cat >>confdefs.h <<_ACEOF
11609 #define dev_t unsigned long
11614 echo "$as_me:$LINENO: checking for daddr_t" >&5
11615 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11616 if test "${ac_cv_type_daddr_t+set}" = set; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11619 cat >conftest.$ac_ext <<_ACEOF
11620 #line $LINENO "configure"
11623 cat confdefs.h >>conftest.$ac_ext
11624 cat >>conftest.$ac_ext <<_ACEOF
11625 /* end confdefs.h. */
11626 $ac_includes_default
11632 if (sizeof (daddr_t))
11638 rm -f conftest.$ac_objext
11639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11640 (eval $ac_compile) 2>&5
11642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11643 (exit $ac_status); } &&
11644 { ac_try='test -s conftest.$ac_objext'
11645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11646 (eval $ac_try) 2>&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; }; then
11650 ac_cv_type_daddr_t=yes
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11655 ac_cv_type_daddr_t=no
11657 rm -f conftest.$ac_objext conftest.$ac_ext
11659 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11660 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11661 if test $ac_cv_type_daddr_t = yes; then
11665 cat >>confdefs.h <<_ACEOF
11666 #define daddr_t long
11671 echo "$as_me:$LINENO: checking for major_t" >&5
11672 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11673 if test "${ac_cv_type_major_t+set}" = set; then
11674 echo $ECHO_N "(cached) $ECHO_C" >&6
11676 cat >conftest.$ac_ext <<_ACEOF
11677 #line $LINENO "configure"
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11683 $ac_includes_default
11689 if (sizeof (major_t))
11695 rm -f conftest.$ac_objext
11696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11697 (eval $ac_compile) 2>&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } &&
11701 { ac_try='test -s conftest.$ac_objext'
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 ac_cv_type_major_t=yes
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 ac_cv_type_major_t=no
11714 rm -f conftest.$ac_objext conftest.$ac_ext
11716 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11717 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11718 if test $ac_cv_type_major_t = yes; then
11722 cat >>confdefs.h <<_ACEOF
11723 #define major_t int
11728 echo "$as_me:$LINENO: checking for minor_t" >&5
11729 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11730 if test "${ac_cv_type_minor_t+set}" = set; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11733 cat >conftest.$ac_ext <<_ACEOF
11734 #line $LINENO "configure"
11737 cat confdefs.h >>conftest.$ac_ext
11738 cat >>conftest.$ac_ext <<_ACEOF
11739 /* end confdefs.h. */
11740 $ac_includes_default
11746 if (sizeof (minor_t))
11752 rm -f conftest.$ac_objext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11754 (eval $ac_compile) 2>&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } &&
11758 { ac_try='test -s conftest.$ac_objext'
11759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760 (eval $ac_try) 2>&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; }; then
11764 ac_cv_type_minor_t=yes
11766 echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11769 ac_cv_type_minor_t=no
11771 rm -f conftest.$ac_objext conftest.$ac_ext
11773 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11774 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11775 if test $ac_cv_type_minor_t = yes; then
11779 cat >>confdefs.h <<_ACEOF
11780 #define minor_t int
11785 echo "$as_me:$LINENO: checking for ssize_t" >&5
11786 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11787 if test "${ac_cv_type_ssize_t+set}" = set; then
11788 echo $ECHO_N "(cached) $ECHO_C" >&6
11790 cat >conftest.$ac_ext <<_ACEOF
11791 #line $LINENO "configure"
11794 cat confdefs.h >>conftest.$ac_ext
11795 cat >>conftest.$ac_ext <<_ACEOF
11796 /* end confdefs.h. */
11797 $ac_includes_default
11803 if (sizeof (ssize_t))
11809 rm -f conftest.$ac_objext
11810 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11811 (eval $ac_compile) 2>&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } &&
11815 { ac_try='test -s conftest.$ac_objext'
11816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11817 (eval $ac_try) 2>&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); }; }; then
11821 ac_cv_type_ssize_t=yes
11823 echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.$ac_ext >&5
11826 ac_cv_type_ssize_t=no
11828 rm -f conftest.$ac_objext conftest.$ac_ext
11830 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11831 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11832 if test $ac_cv_type_ssize_t = yes; then
11836 cat >>confdefs.h <<_ACEOF
11837 #define ssize_t int
11842 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11843 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11844 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11845 echo $ECHO_N "(cached) $ECHO_C" >&6
11847 cat >conftest.$ac_ext <<_ACEOF
11848 #line $LINENO "configure"
11851 cat confdefs.h >>conftest.$ac_ext
11852 cat >>conftest.$ac_ext <<_ACEOF
11853 /* end confdefs.h. */
11854 $ac_includes_default
11858 static struct stat ac_aggr;
11859 if (ac_aggr.st_blocks)
11865 rm -f conftest.$ac_objext
11866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11867 (eval $ac_compile) 2>&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } &&
11871 { ac_try='test -s conftest.$ac_objext'
11872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11873 (eval $ac_try) 2>&5
11875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11876 (exit $ac_status); }; }; then
11877 ac_cv_member_struct_stat_st_blocks=yes
11879 echo "$as_me: failed program was:" >&5
11880 sed 's/^/| /' conftest.$ac_ext >&5
11882 cat >conftest.$ac_ext <<_ACEOF
11883 #line $LINENO "configure"
11886 cat confdefs.h >>conftest.$ac_ext
11887 cat >>conftest.$ac_ext <<_ACEOF
11888 /* end confdefs.h. */
11889 $ac_includes_default
11893 static struct stat ac_aggr;
11894 if (sizeof ac_aggr.st_blocks)
11900 rm -f conftest.$ac_objext
11901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11902 (eval $ac_compile) 2>&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); } &&
11906 { ac_try='test -s conftest.$ac_objext'
11907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11908 (eval $ac_try) 2>&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; }; then
11912 ac_cv_member_struct_stat_st_blocks=yes
11914 echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11917 ac_cv_member_struct_stat_st_blocks=no
11919 rm -f conftest.$ac_objext conftest.$ac_ext
11921 rm -f conftest.$ac_objext conftest.$ac_ext
11923 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11924 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11925 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11927 cat >>confdefs.h <<_ACEOF
11928 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11932 cat >>confdefs.h <<\_ACEOF
11933 #define HAVE_ST_BLOCKS 1
11937 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11942 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11943 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11944 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11947 cat >conftest.$ac_ext <<_ACEOF
11948 #line $LINENO "configure"
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11954 $ac_includes_default
11958 static struct stat ac_aggr;
11959 if (ac_aggr.st_rdev)
11965 rm -f conftest.$ac_objext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967 (eval $ac_compile) 2>&5
11969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11970 (exit $ac_status); } &&
11971 { ac_try='test -s conftest.$ac_objext'
11972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11973 (eval $ac_try) 2>&5
11975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11976 (exit $ac_status); }; }; then
11977 ac_cv_member_struct_stat_st_rdev=yes
11979 echo "$as_me: failed program was:" >&5
11980 sed 's/^/| /' conftest.$ac_ext >&5
11982 cat >conftest.$ac_ext <<_ACEOF
11983 #line $LINENO "configure"
11986 cat confdefs.h >>conftest.$ac_ext
11987 cat >>conftest.$ac_ext <<_ACEOF
11988 /* end confdefs.h. */
11989 $ac_includes_default
11993 static struct stat ac_aggr;
11994 if (sizeof ac_aggr.st_rdev)
12000 rm -f conftest.$ac_objext
12001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12002 (eval $ac_compile) 2>&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } &&
12006 { ac_try='test -s conftest.$ac_objext'
12007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12008 (eval $ac_try) 2>&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); }; }; then
12012 ac_cv_member_struct_stat_st_rdev=yes
12014 echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12017 ac_cv_member_struct_stat_st_rdev=no
12019 rm -f conftest.$ac_objext conftest.$ac_ext
12021 rm -f conftest.$ac_objext conftest.$ac_ext
12023 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
12024 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
12025 if test $ac_cv_member_struct_stat_st_rdev = yes; then
12027 cat >>confdefs.h <<_ACEOF
12028 #define HAVE_STRUCT_STAT_ST_RDEV 1
12032 cat >>confdefs.h <<\_ACEOF
12033 #define HAVE_ST_RDEV 1
12039 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12040 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12041 if test "${ac_cv_struct_tm+set}" = set; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12044 cat >conftest.$ac_ext <<_ACEOF
12045 #line $LINENO "configure"
12048 cat confdefs.h >>conftest.$ac_ext
12049 cat >>conftest.$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12051 #include <sys/types.h>
12057 struct tm *tp; tp->tm_sec;
12062 rm -f conftest.$ac_objext
12063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12064 (eval $ac_compile) 2>&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } &&
12068 { ac_try='test -s conftest.$ac_objext'
12069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12070 (eval $ac_try) 2>&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); }; }; then
12074 ac_cv_struct_tm=time.h
12076 echo "$as_me: failed program was:" >&5
12077 sed 's/^/| /' conftest.$ac_ext >&5
12079 ac_cv_struct_tm=sys/time.h
12081 rm -f conftest.$ac_objext conftest.$ac_ext
12083 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12084 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12085 if test $ac_cv_struct_tm = sys/time.h; then
12087 cat >>confdefs.h <<\_ACEOF
12088 #define TM_IN_SYS_TIME 1
12093 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12094 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12095 if test "${ac_cv_c_const+set}" = set; then
12096 echo $ECHO_N "(cached) $ECHO_C" >&6
12098 cat >conftest.$ac_ext <<_ACEOF
12099 #line $LINENO "configure"
12102 cat confdefs.h >>conftest.$ac_ext
12103 cat >>conftest.$ac_ext <<_ACEOF
12104 /* end confdefs.h. */
12109 /* FIXME: Include the comments suggested by Paul. */
12110 #ifndef __cplusplus
12111 /* Ultrix mips cc rejects this. */
12112 typedef int charset[2];
12114 /* SunOS 4.1.1 cc rejects this. */
12115 char const *const *ccp;
12117 /* NEC SVR4.0.2 mips cc rejects this. */
12118 struct point {int x, y;};
12119 static struct point const zero = {0,0};
12120 /* AIX XL C 1.02.0.0 rejects this.
12121 It does not let you subtract one const X* pointer from another in
12122 an arm of an if-expression whose if-part is not a constant
12124 const char *g = "string";
12125 ccp = &g + (g ? g-g : 0);
12126 /* HPUX 7.0 cc rejects these. */
12129 ccp = (char const *const *) p;
12130 { /* SCO 3.2v4 cc rejects this. */
12132 char const *s = 0 ? (char *) 0 : (char const *) 0;
12136 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12137 int x[] = {25, 17};
12138 const int *foo = &x[0];
12141 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12142 typedef const int *iptr;
12146 { /* AIX XL C 1.02.0.0 rejects this saying
12147 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12148 struct s { int j; const int *ap[3]; };
12149 struct s *b; b->j = 5;
12151 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12152 const int foo = 10;
12160 rm -f conftest.$ac_objext
12161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12162 (eval $ac_compile) 2>&5
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); } &&
12166 { ac_try='test -s conftest.$ac_objext'
12167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; }; then
12174 echo "$as_me: failed program was:" >&5
12175 sed 's/^/| /' conftest.$ac_ext >&5
12179 rm -f conftest.$ac_objext conftest.$ac_ext
12181 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12182 echo "${ECHO_T}$ac_cv_c_const" >&6
12183 if test $ac_cv_c_const = no; then
12185 cat >>confdefs.h <<\_ACEOF
12193 echo "$as_me:$LINENO: checking for char" >&5
12194 echo $ECHO_N "checking for char... $ECHO_C" >&6
12195 if test "${ac_cv_type_char+set}" = set; then
12196 echo $ECHO_N "(cached) $ECHO_C" >&6
12198 cat >conftest.$ac_ext <<_ACEOF
12199 #line $LINENO "configure"
12202 cat confdefs.h >>conftest.$ac_ext
12203 cat >>conftest.$ac_ext <<_ACEOF
12204 /* end confdefs.h. */
12205 $ac_includes_default
12217 rm -f conftest.$ac_objext
12218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12219 (eval $ac_compile) 2>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } &&
12223 { ac_try='test -s conftest.$ac_objext'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 ac_cv_type_char=yes
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12236 rm -f conftest.$ac_objext conftest.$ac_ext
12238 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12239 echo "${ECHO_T}$ac_cv_type_char" >&6
12241 echo "$as_me:$LINENO: checking size of char" >&5
12242 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12243 if test "${ac_cv_sizeof_char+set}" = set; then
12244 echo $ECHO_N "(cached) $ECHO_C" >&6
12246 if test "$ac_cv_type_char" = yes; then
12247 # The cast to unsigned long works around a bug in the HP C Compiler
12248 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12249 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12250 # This bug is HP SR number 8606223364.
12251 if test "$cross_compiling" = yes; then
12252 # Depending upon the size, compute the lo and hi bounds.
12253 cat >conftest.$ac_ext <<_ACEOF
12254 #line $LINENO "configure"
12257 cat confdefs.h >>conftest.$ac_ext
12258 cat >>conftest.$ac_ext <<_ACEOF
12259 /* end confdefs.h. */
12260 $ac_includes_default
12264 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12271 rm -f conftest.$ac_objext
12272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12273 (eval $ac_compile) 2>&5
12275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12276 (exit $ac_status); } &&
12277 { ac_try='test -s conftest.$ac_objext'
12278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12279 (eval $ac_try) 2>&5
12281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); }; }; then
12285 cat >conftest.$ac_ext <<_ACEOF
12286 #line $LINENO "configure"
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h. */
12292 $ac_includes_default
12296 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12303 rm -f conftest.$ac_objext
12304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12305 (eval $ac_compile) 2>&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); } &&
12309 { ac_try='test -s conftest.$ac_objext'
12310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12311 (eval $ac_try) 2>&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); }; }; then
12315 ac_hi=$ac_mid; break
12317 echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12320 ac_lo=`expr $ac_mid + 1`
12321 if test $ac_lo -le $ac_mid; then
12325 ac_mid=`expr 2 '*' $ac_mid + 1`
12327 rm -f conftest.$ac_objext conftest.$ac_ext
12330 echo "$as_me: failed program was:" >&5
12331 sed 's/^/| /' conftest.$ac_ext >&5
12333 cat >conftest.$ac_ext <<_ACEOF
12334 #line $LINENO "configure"
12337 cat confdefs.h >>conftest.$ac_ext
12338 cat >>conftest.$ac_ext <<_ACEOF
12339 /* end confdefs.h. */
12340 $ac_includes_default
12344 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12351 rm -f conftest.$ac_objext
12352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12353 (eval $ac_compile) 2>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } &&
12357 { ac_try='test -s conftest.$ac_objext'
12358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12359 (eval $ac_try) 2>&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; }; then
12365 cat >conftest.$ac_ext <<_ACEOF
12366 #line $LINENO "configure"
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h. */
12372 $ac_includes_default
12376 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12383 rm -f conftest.$ac_objext
12384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12385 (eval $ac_compile) 2>&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); } &&
12389 { ac_try='test -s conftest.$ac_objext'
12390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12391 (eval $ac_try) 2>&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); }; }; then
12395 ac_lo=$ac_mid; break
12397 echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12400 ac_hi=`expr '(' $ac_mid ')' - 1`
12401 if test $ac_mid -le $ac_hi; then
12405 ac_mid=`expr 2 '*' $ac_mid`
12407 rm -f conftest.$ac_objext conftest.$ac_ext
12410 echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12415 rm -f conftest.$ac_objext conftest.$ac_ext
12417 rm -f conftest.$ac_objext conftest.$ac_ext
12418 # Binary search between lo and hi bounds.
12419 while test "x$ac_lo" != "x$ac_hi"; do
12420 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12421 cat >conftest.$ac_ext <<_ACEOF
12422 #line $LINENO "configure"
12425 cat confdefs.h >>conftest.$ac_ext
12426 cat >>conftest.$ac_ext <<_ACEOF
12427 /* end confdefs.h. */
12428 $ac_includes_default
12432 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12439 rm -f conftest.$ac_objext
12440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12441 (eval $ac_compile) 2>&5
12443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444 (exit $ac_status); } &&
12445 { ac_try='test -s conftest.$ac_objext'
12446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12447 (eval $ac_try) 2>&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; }; then
12453 echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12456 ac_lo=`expr '(' $ac_mid ')' + 1`
12458 rm -f conftest.$ac_objext conftest.$ac_ext
12461 ?*) ac_cv_sizeof_char=$ac_lo;;
12462 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12463 See \`config.log' for more details." >&5
12464 echo "$as_me: error: cannot compute sizeof (char), 77
12465 See \`config.log' for more details." >&2;}
12466 { (exit 1); exit 1; }; } ;;
12469 if test "$cross_compiling" = yes; then
12470 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12471 See \`config.log' for more details." >&5
12472 echo "$as_me: error: cannot run test program while cross compiling
12473 See \`config.log' for more details." >&2;}
12474 { (exit 1); exit 1; }; }
12476 cat >conftest.$ac_ext <<_ACEOF
12477 #line $LINENO "configure"
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h. */
12483 $ac_includes_default
12484 long longval () { return (long) (sizeof (char)); }
12485 unsigned long ulongval () { return (long) (sizeof (char)); }
12487 #include <stdlib.h>
12492 FILE *f = fopen ("conftest.val", "w");
12495 if (((long) (sizeof (char))) < 0)
12497 long i = longval ();
12498 if (i != ((long) (sizeof (char))))
12500 fprintf (f, "%ld\n", i);
12504 unsigned long i = ulongval ();
12505 if (i != ((long) (sizeof (char))))
12507 fprintf (f, "%lu\n", i);
12509 exit (ferror (f) || fclose (f) != 0);
12515 rm -f conftest$ac_exeext
12516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12517 (eval $ac_link) 2>&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12522 (eval $ac_try) 2>&5
12524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); }; }; then
12526 ac_cv_sizeof_char=`cat conftest.val`
12528 echo "$as_me: program exited with status $ac_status" >&5
12529 echo "$as_me: failed program was:" >&5
12530 sed 's/^/| /' conftest.$ac_ext >&5
12532 ( exit $ac_status )
12533 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12534 See \`config.log' for more details." >&5
12535 echo "$as_me: error: cannot compute sizeof (char), 77
12536 See \`config.log' for more details." >&2;}
12537 { (exit 1); exit 1; }; }
12539 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12544 ac_cv_sizeof_char=0
12547 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12548 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12549 cat >>confdefs.h <<_ACEOF
12550 #define SIZEOF_CHAR $ac_cv_sizeof_char
12554 echo "$as_me:$LINENO: checking for short int" >&5
12555 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12556 if test "${ac_cv_type_short_int+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 cat >conftest.$ac_ext <<_ACEOF
12560 #line $LINENO "configure"
12563 cat confdefs.h >>conftest.$ac_ext
12564 cat >>conftest.$ac_ext <<_ACEOF
12565 /* end confdefs.h. */
12566 $ac_includes_default
12570 if ((short int *) 0)
12572 if (sizeof (short int))
12578 rm -f conftest.$ac_objext
12579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12580 (eval $ac_compile) 2>&5
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); } &&
12584 { ac_try='test -s conftest.$ac_objext'
12585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12586 (eval $ac_try) 2>&5
12588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12589 (exit $ac_status); }; }; then
12590 ac_cv_type_short_int=yes
12592 echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.$ac_ext >&5
12595 ac_cv_type_short_int=no
12597 rm -f conftest.$ac_objext conftest.$ac_ext
12599 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12600 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12602 echo "$as_me:$LINENO: checking size of short int" >&5
12603 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12604 if test "${ac_cv_sizeof_short_int+set}" = set; then
12605 echo $ECHO_N "(cached) $ECHO_C" >&6
12607 if test "$ac_cv_type_short_int" = yes; then
12608 # The cast to unsigned long works around a bug in the HP C Compiler
12609 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12610 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12611 # This bug is HP SR number 8606223364.
12612 if test "$cross_compiling" = yes; then
12613 # Depending upon the size, compute the lo and hi bounds.
12614 cat >conftest.$ac_ext <<_ACEOF
12615 #line $LINENO "configure"
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12621 $ac_includes_default
12625 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12632 rm -f conftest.$ac_objext
12633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12634 (eval $ac_compile) 2>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } &&
12638 { ac_try='test -s conftest.$ac_objext'
12639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12640 (eval $ac_try) 2>&5
12642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); }; }; then
12646 cat >conftest.$ac_ext <<_ACEOF
12647 #line $LINENO "configure"
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12653 $ac_includes_default
12657 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12664 rm -f conftest.$ac_objext
12665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12666 (eval $ac_compile) 2>&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
12670 { ac_try='test -s conftest.$ac_objext'
12671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12672 (eval $ac_try) 2>&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); }; }; then
12676 ac_hi=$ac_mid; break
12678 echo "$as_me: failed program was:" >&5
12679 sed 's/^/| /' conftest.$ac_ext >&5
12681 ac_lo=`expr $ac_mid + 1`
12682 if test $ac_lo -le $ac_mid; then
12686 ac_mid=`expr 2 '*' $ac_mid + 1`
12688 rm -f conftest.$ac_objext conftest.$ac_ext
12691 echo "$as_me: failed program was:" >&5
12692 sed 's/^/| /' conftest.$ac_ext >&5
12694 cat >conftest.$ac_ext <<_ACEOF
12695 #line $LINENO "configure"
12698 cat confdefs.h >>conftest.$ac_ext
12699 cat >>conftest.$ac_ext <<_ACEOF
12700 /* end confdefs.h. */
12701 $ac_includes_default
12705 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12712 rm -f conftest.$ac_objext
12713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12714 (eval $ac_compile) 2>&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } &&
12718 { ac_try='test -s conftest.$ac_objext'
12719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12720 (eval $ac_try) 2>&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); }; }; then
12726 cat >conftest.$ac_ext <<_ACEOF
12727 #line $LINENO "configure"
12730 cat confdefs.h >>conftest.$ac_ext
12731 cat >>conftest.$ac_ext <<_ACEOF
12732 /* end confdefs.h. */
12733 $ac_includes_default
12737 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12744 rm -f conftest.$ac_objext
12745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12746 (eval $ac_compile) 2>&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); } &&
12750 { ac_try='test -s conftest.$ac_objext'
12751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12752 (eval $ac_try) 2>&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; }; then
12756 ac_lo=$ac_mid; break
12758 echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12761 ac_hi=`expr '(' $ac_mid ')' - 1`
12762 if test $ac_mid -le $ac_hi; then
12766 ac_mid=`expr 2 '*' $ac_mid`
12768 rm -f conftest.$ac_objext conftest.$ac_ext
12771 echo "$as_me: failed program was:" >&5
12772 sed 's/^/| /' conftest.$ac_ext >&5
12776 rm -f conftest.$ac_objext conftest.$ac_ext
12778 rm -f conftest.$ac_objext conftest.$ac_ext
12779 # Binary search between lo and hi bounds.
12780 while test "x$ac_lo" != "x$ac_hi"; do
12781 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12782 cat >conftest.$ac_ext <<_ACEOF
12783 #line $LINENO "configure"
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12789 $ac_includes_default
12793 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12800 rm -f conftest.$ac_objext
12801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12802 (eval $ac_compile) 2>&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } &&
12806 { ac_try='test -s conftest.$ac_objext'
12807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12808 (eval $ac_try) 2>&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; }; then
12814 echo "$as_me: failed program was:" >&5
12815 sed 's/^/| /' conftest.$ac_ext >&5
12817 ac_lo=`expr '(' $ac_mid ')' + 1`
12819 rm -f conftest.$ac_objext conftest.$ac_ext
12822 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12823 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12824 See \`config.log' for more details." >&5
12825 echo "$as_me: error: cannot compute sizeof (short int), 77
12826 See \`config.log' for more details." >&2;}
12827 { (exit 1); exit 1; }; } ;;
12830 if test "$cross_compiling" = yes; then
12831 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12832 See \`config.log' for more details." >&5
12833 echo "$as_me: error: cannot run test program while cross compiling
12834 See \`config.log' for more details." >&2;}
12835 { (exit 1); exit 1; }; }
12837 cat >conftest.$ac_ext <<_ACEOF
12838 #line $LINENO "configure"
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h. */
12844 $ac_includes_default
12845 long longval () { return (long) (sizeof (short int)); }
12846 unsigned long ulongval () { return (long) (sizeof (short int)); }
12848 #include <stdlib.h>
12853 FILE *f = fopen ("conftest.val", "w");
12856 if (((long) (sizeof (short int))) < 0)
12858 long i = longval ();
12859 if (i != ((long) (sizeof (short int))))
12861 fprintf (f, "%ld\n", i);
12865 unsigned long i = ulongval ();
12866 if (i != ((long) (sizeof (short int))))
12868 fprintf (f, "%lu\n", i);
12870 exit (ferror (f) || fclose (f) != 0);
12876 rm -f conftest$ac_exeext
12877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12878 (eval $ac_link) 2>&5
12880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12881 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12883 (eval $ac_try) 2>&5
12885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12886 (exit $ac_status); }; }; then
12887 ac_cv_sizeof_short_int=`cat conftest.val`
12889 echo "$as_me: program exited with status $ac_status" >&5
12890 echo "$as_me: failed program was:" >&5
12891 sed 's/^/| /' conftest.$ac_ext >&5
12893 ( exit $ac_status )
12894 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12895 See \`config.log' for more details." >&5
12896 echo "$as_me: error: cannot compute sizeof (short int), 77
12897 See \`config.log' for more details." >&2;}
12898 { (exit 1); exit 1; }; }
12900 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12905 ac_cv_sizeof_short_int=0
12908 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12909 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12910 cat >>confdefs.h <<_ACEOF
12911 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12915 echo "$as_me:$LINENO: checking for int" >&5
12916 echo $ECHO_N "checking for int... $ECHO_C" >&6
12917 if test "${ac_cv_type_int+set}" = set; then
12918 echo $ECHO_N "(cached) $ECHO_C" >&6
12920 cat >conftest.$ac_ext <<_ACEOF
12921 #line $LINENO "configure"
12924 cat confdefs.h >>conftest.$ac_ext
12925 cat >>conftest.$ac_ext <<_ACEOF
12926 /* end confdefs.h. */
12927 $ac_includes_default
12939 rm -f conftest.$ac_objext
12940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12941 (eval $ac_compile) 2>&5
12943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12944 (exit $ac_status); } &&
12945 { ac_try='test -s conftest.$ac_objext'
12946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12947 (eval $ac_try) 2>&5
12949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12950 (exit $ac_status); }; }; then
12953 echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12958 rm -f conftest.$ac_objext conftest.$ac_ext
12960 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12961 echo "${ECHO_T}$ac_cv_type_int" >&6
12963 echo "$as_me:$LINENO: checking size of int" >&5
12964 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12965 if test "${ac_cv_sizeof_int+set}" = set; then
12966 echo $ECHO_N "(cached) $ECHO_C" >&6
12968 if test "$ac_cv_type_int" = yes; then
12969 # The cast to unsigned long works around a bug in the HP C Compiler
12970 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12971 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12972 # This bug is HP SR number 8606223364.
12973 if test "$cross_compiling" = yes; then
12974 # Depending upon the size, compute the lo and hi bounds.
12975 cat >conftest.$ac_ext <<_ACEOF
12976 #line $LINENO "configure"
12979 cat confdefs.h >>conftest.$ac_ext
12980 cat >>conftest.$ac_ext <<_ACEOF
12981 /* end confdefs.h. */
12982 $ac_includes_default
12986 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12993 rm -f conftest.$ac_objext
12994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12995 (eval $ac_compile) 2>&5
12997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998 (exit $ac_status); } &&
12999 { ac_try='test -s conftest.$ac_objext'
13000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13001 (eval $ac_try) 2>&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); }; }; then
13007 cat >conftest.$ac_ext <<_ACEOF
13008 #line $LINENO "configure"
13011 cat confdefs.h >>conftest.$ac_ext
13012 cat >>conftest.$ac_ext <<_ACEOF
13013 /* end confdefs.h. */
13014 $ac_includes_default
13018 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13025 rm -f conftest.$ac_objext
13026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13027 (eval $ac_compile) 2>&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } &&
13031 { ac_try='test -s conftest.$ac_objext'
13032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13033 (eval $ac_try) 2>&5
13035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); }; }; then
13037 ac_hi=$ac_mid; break
13039 echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.$ac_ext >&5
13042 ac_lo=`expr $ac_mid + 1`
13043 if test $ac_lo -le $ac_mid; then
13047 ac_mid=`expr 2 '*' $ac_mid + 1`
13049 rm -f conftest.$ac_objext conftest.$ac_ext
13052 echo "$as_me: failed program was:" >&5
13053 sed 's/^/| /' conftest.$ac_ext >&5
13055 cat >conftest.$ac_ext <<_ACEOF
13056 #line $LINENO "configure"
13059 cat confdefs.h >>conftest.$ac_ext
13060 cat >>conftest.$ac_ext <<_ACEOF
13061 /* end confdefs.h. */
13062 $ac_includes_default
13066 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
13073 rm -f conftest.$ac_objext
13074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13075 (eval $ac_compile) 2>&5
13077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078 (exit $ac_status); } &&
13079 { ac_try='test -s conftest.$ac_objext'
13080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13081 (eval $ac_try) 2>&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; }; then
13087 cat >conftest.$ac_ext <<_ACEOF
13088 #line $LINENO "configure"
13091 cat confdefs.h >>conftest.$ac_ext
13092 cat >>conftest.$ac_ext <<_ACEOF
13093 /* end confdefs.h. */
13094 $ac_includes_default
13098 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
13105 rm -f conftest.$ac_objext
13106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13107 (eval $ac_compile) 2>&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); } &&
13111 { ac_try='test -s conftest.$ac_objext'
13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; }; then
13117 ac_lo=$ac_mid; break
13119 echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13122 ac_hi=`expr '(' $ac_mid ')' - 1`
13123 if test $ac_mid -le $ac_hi; then
13127 ac_mid=`expr 2 '*' $ac_mid`
13129 rm -f conftest.$ac_objext conftest.$ac_ext
13132 echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13137 rm -f conftest.$ac_objext conftest.$ac_ext
13139 rm -f conftest.$ac_objext conftest.$ac_ext
13140 # Binary search between lo and hi bounds.
13141 while test "x$ac_lo" != "x$ac_hi"; do
13142 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13143 cat >conftest.$ac_ext <<_ACEOF
13144 #line $LINENO "configure"
13147 cat confdefs.h >>conftest.$ac_ext
13148 cat >>conftest.$ac_ext <<_ACEOF
13149 /* end confdefs.h. */
13150 $ac_includes_default
13154 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
13161 rm -f conftest.$ac_objext
13162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13163 (eval $ac_compile) 2>&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); } &&
13167 { ac_try='test -s conftest.$ac_objext'
13168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13169 (eval $ac_try) 2>&5
13171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172 (exit $ac_status); }; }; then
13175 echo "$as_me: failed program was:" >&5
13176 sed 's/^/| /' conftest.$ac_ext >&5
13178 ac_lo=`expr '(' $ac_mid ')' + 1`
13180 rm -f conftest.$ac_objext conftest.$ac_ext
13183 ?*) ac_cv_sizeof_int=$ac_lo;;
13184 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13185 See \`config.log' for more details." >&5
13186 echo "$as_me: error: cannot compute sizeof (int), 77
13187 See \`config.log' for more details." >&2;}
13188 { (exit 1); exit 1; }; } ;;
13191 if test "$cross_compiling" = yes; then
13192 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13193 See \`config.log' for more details." >&5
13194 echo "$as_me: error: cannot run test program while cross compiling
13195 See \`config.log' for more details." >&2;}
13196 { (exit 1); exit 1; }; }
13198 cat >conftest.$ac_ext <<_ACEOF
13199 #line $LINENO "configure"
13202 cat confdefs.h >>conftest.$ac_ext
13203 cat >>conftest.$ac_ext <<_ACEOF
13204 /* end confdefs.h. */
13205 $ac_includes_default
13206 long longval () { return (long) (sizeof (int)); }
13207 unsigned long ulongval () { return (long) (sizeof (int)); }
13209 #include <stdlib.h>
13214 FILE *f = fopen ("conftest.val", "w");
13217 if (((long) (sizeof (int))) < 0)
13219 long i = longval ();
13220 if (i != ((long) (sizeof (int))))
13222 fprintf (f, "%ld\n", i);
13226 unsigned long i = ulongval ();
13227 if (i != ((long) (sizeof (int))))
13229 fprintf (f, "%lu\n", i);
13231 exit (ferror (f) || fclose (f) != 0);
13237 rm -f conftest$ac_exeext
13238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13239 (eval $ac_link) 2>&5
13241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13242 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13244 (eval $ac_try) 2>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); }; }; then
13248 ac_cv_sizeof_int=`cat conftest.val`
13250 echo "$as_me: program exited with status $ac_status" >&5
13251 echo "$as_me: failed program was:" >&5
13252 sed 's/^/| /' conftest.$ac_ext >&5
13254 ( exit $ac_status )
13255 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13256 See \`config.log' for more details." >&5
13257 echo "$as_me: error: cannot compute sizeof (int), 77
13258 See \`config.log' for more details." >&2;}
13259 { (exit 1); exit 1; }; }
13261 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13269 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13270 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13271 cat >>confdefs.h <<_ACEOF
13272 #define SIZEOF_INT $ac_cv_sizeof_int
13276 echo "$as_me:$LINENO: checking for long int" >&5
13277 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13278 if test "${ac_cv_type_long_int+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13281 cat >conftest.$ac_ext <<_ACEOF
13282 #line $LINENO "configure"
13285 cat confdefs.h >>conftest.$ac_ext
13286 cat >>conftest.$ac_ext <<_ACEOF
13287 /* end confdefs.h. */
13288 $ac_includes_default
13292 if ((long int *) 0)
13294 if (sizeof (long int))
13300 rm -f conftest.$ac_objext
13301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13302 (eval $ac_compile) 2>&5
13304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13305 (exit $ac_status); } &&
13306 { ac_try='test -s conftest.$ac_objext'
13307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13308 (eval $ac_try) 2>&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); }; }; then
13312 ac_cv_type_long_int=yes
13314 echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13317 ac_cv_type_long_int=no
13319 rm -f conftest.$ac_objext conftest.$ac_ext
13321 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13322 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13324 echo "$as_me:$LINENO: checking size of long int" >&5
13325 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13326 if test "${ac_cv_sizeof_long_int+set}" = set; then
13327 echo $ECHO_N "(cached) $ECHO_C" >&6
13329 if test "$ac_cv_type_long_int" = yes; then
13330 # The cast to unsigned long works around a bug in the HP C Compiler
13331 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13332 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13333 # This bug is HP SR number 8606223364.
13334 if test "$cross_compiling" = yes; then
13335 # Depending upon the size, compute the lo and hi bounds.
13336 cat >conftest.$ac_ext <<_ACEOF
13337 #line $LINENO "configure"
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h. */
13343 $ac_includes_default
13347 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13354 rm -f conftest.$ac_objext
13355 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13356 (eval $ac_compile) 2>&5
13358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13359 (exit $ac_status); } &&
13360 { ac_try='test -s conftest.$ac_objext'
13361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13362 (eval $ac_try) 2>&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); }; }; then
13368 cat >conftest.$ac_ext <<_ACEOF
13369 #line $LINENO "configure"
13372 cat confdefs.h >>conftest.$ac_ext
13373 cat >>conftest.$ac_ext <<_ACEOF
13374 /* end confdefs.h. */
13375 $ac_includes_default
13379 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13386 rm -f conftest.$ac_objext
13387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13388 (eval $ac_compile) 2>&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } &&
13392 { ac_try='test -s conftest.$ac_objext'
13393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13394 (eval $ac_try) 2>&5
13396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13397 (exit $ac_status); }; }; then
13398 ac_hi=$ac_mid; break
13400 echo "$as_me: failed program was:" >&5
13401 sed 's/^/| /' conftest.$ac_ext >&5
13403 ac_lo=`expr $ac_mid + 1`
13404 if test $ac_lo -le $ac_mid; then
13408 ac_mid=`expr 2 '*' $ac_mid + 1`
13410 rm -f conftest.$ac_objext conftest.$ac_ext
13413 echo "$as_me: failed program was:" >&5
13414 sed 's/^/| /' conftest.$ac_ext >&5
13416 cat >conftest.$ac_ext <<_ACEOF
13417 #line $LINENO "configure"
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13423 $ac_includes_default
13427 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13434 rm -f conftest.$ac_objext
13435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13436 (eval $ac_compile) 2>&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } &&
13440 { ac_try='test -s conftest.$ac_objext'
13441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13442 (eval $ac_try) 2>&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); }; }; then
13448 cat >conftest.$ac_ext <<_ACEOF
13449 #line $LINENO "configure"
13452 cat confdefs.h >>conftest.$ac_ext
13453 cat >>conftest.$ac_ext <<_ACEOF
13454 /* end confdefs.h. */
13455 $ac_includes_default
13459 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13466 rm -f conftest.$ac_objext
13467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13468 (eval $ac_compile) 2>&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } &&
13472 { ac_try='test -s conftest.$ac_objext'
13473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13474 (eval $ac_try) 2>&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); }; }; then
13478 ac_lo=$ac_mid; break
13480 echo "$as_me: failed program was:" >&5
13481 sed 's/^/| /' conftest.$ac_ext >&5
13483 ac_hi=`expr '(' $ac_mid ')' - 1`
13484 if test $ac_mid -le $ac_hi; then
13488 ac_mid=`expr 2 '*' $ac_mid`
13490 rm -f conftest.$ac_objext conftest.$ac_ext
13493 echo "$as_me: failed program was:" >&5
13494 sed 's/^/| /' conftest.$ac_ext >&5
13498 rm -f conftest.$ac_objext conftest.$ac_ext
13500 rm -f conftest.$ac_objext conftest.$ac_ext
13501 # Binary search between lo and hi bounds.
13502 while test "x$ac_lo" != "x$ac_hi"; do
13503 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13504 cat >conftest.$ac_ext <<_ACEOF
13505 #line $LINENO "configure"
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13511 $ac_includes_default
13515 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13522 rm -f conftest.$ac_objext
13523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13524 (eval $ac_compile) 2>&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } &&
13528 { ac_try='test -s conftest.$ac_objext'
13529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530 (eval $ac_try) 2>&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; }; then
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539 ac_lo=`expr '(' $ac_mid ')' + 1`
13541 rm -f conftest.$ac_objext conftest.$ac_ext
13544 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13545 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13546 See \`config.log' for more details." >&5
13547 echo "$as_me: error: cannot compute sizeof (long int), 77
13548 See \`config.log' for more details." >&2;}
13549 { (exit 1); exit 1; }; } ;;
13552 if test "$cross_compiling" = yes; then
13553 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13554 See \`config.log' for more details." >&5
13555 echo "$as_me: error: cannot run test program while cross compiling
13556 See \`config.log' for more details." >&2;}
13557 { (exit 1); exit 1; }; }
13559 cat >conftest.$ac_ext <<_ACEOF
13560 #line $LINENO "configure"
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h. */
13566 $ac_includes_default
13567 long longval () { return (long) (sizeof (long int)); }
13568 unsigned long ulongval () { return (long) (sizeof (long int)); }
13570 #include <stdlib.h>
13575 FILE *f = fopen ("conftest.val", "w");
13578 if (((long) (sizeof (long int))) < 0)
13580 long i = longval ();
13581 if (i != ((long) (sizeof (long int))))
13583 fprintf (f, "%ld\n", i);
13587 unsigned long i = ulongval ();
13588 if (i != ((long) (sizeof (long int))))
13590 fprintf (f, "%lu\n", i);
13592 exit (ferror (f) || fclose (f) != 0);
13598 rm -f conftest$ac_exeext
13599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13600 (eval $ac_link) 2>&5
13602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13605 (eval $ac_try) 2>&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; }; then
13609 ac_cv_sizeof_long_int=`cat conftest.val`
13611 echo "$as_me: program exited with status $ac_status" >&5
13612 echo "$as_me: failed program was:" >&5
13613 sed 's/^/| /' conftest.$ac_ext >&5
13615 ( exit $ac_status )
13616 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13617 See \`config.log' for more details." >&5
13618 echo "$as_me: error: cannot compute sizeof (long int), 77
13619 See \`config.log' for more details." >&2;}
13620 { (exit 1); exit 1; }; }
13622 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13627 ac_cv_sizeof_long_int=0
13630 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13631 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13632 cat >>confdefs.h <<_ACEOF
13633 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13637 echo "$as_me:$LINENO: checking for long long int" >&5
13638 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13639 if test "${ac_cv_type_long_long_int+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13642 cat >conftest.$ac_ext <<_ACEOF
13643 #line $LINENO "configure"
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h. */
13649 $ac_includes_default
13653 if ((long long int *) 0)
13655 if (sizeof (long long int))
13661 rm -f conftest.$ac_objext
13662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13663 (eval $ac_compile) 2>&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 (exit $ac_status); } &&
13667 { ac_try='test -s conftest.$ac_objext'
13668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13669 (eval $ac_try) 2>&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; }; then
13673 ac_cv_type_long_long_int=yes
13675 echo "$as_me: failed program was:" >&5
13676 sed 's/^/| /' conftest.$ac_ext >&5
13678 ac_cv_type_long_long_int=no
13680 rm -f conftest.$ac_objext conftest.$ac_ext
13682 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13683 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13685 echo "$as_me:$LINENO: checking size of long long int" >&5
13686 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13687 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13688 echo $ECHO_N "(cached) $ECHO_C" >&6
13690 if test "$ac_cv_type_long_long_int" = yes; then
13691 # The cast to unsigned long works around a bug in the HP C Compiler
13692 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13693 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13694 # This bug is HP SR number 8606223364.
13695 if test "$cross_compiling" = yes; then
13696 # Depending upon the size, compute the lo and hi bounds.
13697 cat >conftest.$ac_ext <<_ACEOF
13698 #line $LINENO "configure"
13701 cat confdefs.h >>conftest.$ac_ext
13702 cat >>conftest.$ac_ext <<_ACEOF
13703 /* end confdefs.h. */
13704 $ac_includes_default
13708 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13715 rm -f conftest.$ac_objext
13716 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13717 (eval $ac_compile) 2>&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } &&
13721 { ac_try='test -s conftest.$ac_objext'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; }; then
13729 cat >conftest.$ac_ext <<_ACEOF
13730 #line $LINENO "configure"
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13736 $ac_includes_default
13740 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13747 rm -f conftest.$ac_objext
13748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13749 (eval $ac_compile) 2>&5
13751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13752 (exit $ac_status); } &&
13753 { ac_try='test -s conftest.$ac_objext'
13754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13755 (eval $ac_try) 2>&5
13757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13758 (exit $ac_status); }; }; then
13759 ac_hi=$ac_mid; break
13761 echo "$as_me: failed program was:" >&5
13762 sed 's/^/| /' conftest.$ac_ext >&5
13764 ac_lo=`expr $ac_mid + 1`
13765 if test $ac_lo -le $ac_mid; then
13769 ac_mid=`expr 2 '*' $ac_mid + 1`
13771 rm -f conftest.$ac_objext conftest.$ac_ext
13774 echo "$as_me: failed program was:" >&5
13775 sed 's/^/| /' conftest.$ac_ext >&5
13777 cat >conftest.$ac_ext <<_ACEOF
13778 #line $LINENO "configure"
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
13783 /* end confdefs.h. */
13784 $ac_includes_default
13788 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13795 rm -f conftest.$ac_objext
13796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13797 (eval $ac_compile) 2>&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } &&
13801 { ac_try='test -s conftest.$ac_objext'
13802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13803 (eval $ac_try) 2>&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); }; }; then
13809 cat >conftest.$ac_ext <<_ACEOF
13810 #line $LINENO "configure"
13813 cat confdefs.h >>conftest.$ac_ext
13814 cat >>conftest.$ac_ext <<_ACEOF
13815 /* end confdefs.h. */
13816 $ac_includes_default
13820 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13827 rm -f conftest.$ac_objext
13828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13829 (eval $ac_compile) 2>&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); } &&
13833 { ac_try='test -s conftest.$ac_objext'
13834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13835 (eval $ac_try) 2>&5
13837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13838 (exit $ac_status); }; }; then
13839 ac_lo=$ac_mid; break
13841 echo "$as_me: failed program was:" >&5
13842 sed 's/^/| /' conftest.$ac_ext >&5
13844 ac_hi=`expr '(' $ac_mid ')' - 1`
13845 if test $ac_mid -le $ac_hi; then
13849 ac_mid=`expr 2 '*' $ac_mid`
13851 rm -f conftest.$ac_objext conftest.$ac_ext
13854 echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13859 rm -f conftest.$ac_objext conftest.$ac_ext
13861 rm -f conftest.$ac_objext conftest.$ac_ext
13862 # Binary search between lo and hi bounds.
13863 while test "x$ac_lo" != "x$ac_hi"; do
13864 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13865 cat >conftest.$ac_ext <<_ACEOF
13866 #line $LINENO "configure"
13869 cat confdefs.h >>conftest.$ac_ext
13870 cat >>conftest.$ac_ext <<_ACEOF
13871 /* end confdefs.h. */
13872 $ac_includes_default
13876 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13883 rm -f conftest.$ac_objext
13884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13885 (eval $ac_compile) 2>&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } &&
13889 { ac_try='test -s conftest.$ac_objext'
13890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13891 (eval $ac_try) 2>&5
13893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13894 (exit $ac_status); }; }; then
13897 echo "$as_me: failed program was:" >&5
13898 sed 's/^/| /' conftest.$ac_ext >&5
13900 ac_lo=`expr '(' $ac_mid ')' + 1`
13902 rm -f conftest.$ac_objext conftest.$ac_ext
13905 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13906 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13907 See \`config.log' for more details." >&5
13908 echo "$as_me: error: cannot compute sizeof (long long int), 77
13909 See \`config.log' for more details." >&2;}
13910 { (exit 1); exit 1; }; } ;;
13913 if test "$cross_compiling" = yes; then
13914 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13915 See \`config.log' for more details." >&5
13916 echo "$as_me: error: cannot run test program while cross compiling
13917 See \`config.log' for more details." >&2;}
13918 { (exit 1); exit 1; }; }
13920 cat >conftest.$ac_ext <<_ACEOF
13921 #line $LINENO "configure"
13924 cat confdefs.h >>conftest.$ac_ext
13925 cat >>conftest.$ac_ext <<_ACEOF
13926 /* end confdefs.h. */
13927 $ac_includes_default
13928 long longval () { return (long) (sizeof (long long int)); }
13929 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13931 #include <stdlib.h>
13936 FILE *f = fopen ("conftest.val", "w");
13939 if (((long) (sizeof (long long int))) < 0)
13941 long i = longval ();
13942 if (i != ((long) (sizeof (long long int))))
13944 fprintf (f, "%ld\n", i);
13948 unsigned long i = ulongval ();
13949 if (i != ((long) (sizeof (long long int))))
13951 fprintf (f, "%lu\n", i);
13953 exit (ferror (f) || fclose (f) != 0);
13959 rm -f conftest$ac_exeext
13960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13961 (eval $ac_link) 2>&5
13963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966 (eval $ac_try) 2>&5
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; }; then
13970 ac_cv_sizeof_long_long_int=`cat conftest.val`
13972 echo "$as_me: program exited with status $ac_status" >&5
13973 echo "$as_me: failed program was:" >&5
13974 sed 's/^/| /' conftest.$ac_ext >&5
13976 ( exit $ac_status )
13977 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13978 See \`config.log' for more details." >&5
13979 echo "$as_me: error: cannot compute sizeof (long long int), 77
13980 See \`config.log' for more details." >&2;}
13981 { (exit 1); exit 1; }; }
13983 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13988 ac_cv_sizeof_long_long_int=0
13991 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13992 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13993 cat >>confdefs.h <<_ACEOF
13994 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13998 echo "$as_me:$LINENO: checking for int *" >&5
13999 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14000 if test "${ac_cv_type_int_p+set}" = set; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14003 cat >conftest.$ac_ext <<_ACEOF
14004 #line $LINENO "configure"
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14010 $ac_includes_default
14016 if (sizeof (int *))
14022 rm -f conftest.$ac_objext
14023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14024 (eval $ac_compile) 2>&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } &&
14028 { ac_try='test -s conftest.$ac_objext'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; }; then
14034 ac_cv_type_int_p=yes
14036 echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14039 ac_cv_type_int_p=no
14041 rm -f conftest.$ac_objext conftest.$ac_ext
14043 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
14044 echo "${ECHO_T}$ac_cv_type_int_p" >&6
14046 echo "$as_me:$LINENO: checking size of int *" >&5
14047 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
14048 if test "${ac_cv_sizeof_int_p+set}" = set; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14051 if test "$ac_cv_type_int_p" = yes; then
14052 # The cast to unsigned long works around a bug in the HP C Compiler
14053 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14054 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14055 # This bug is HP SR number 8606223364.
14056 if test "$cross_compiling" = yes; then
14057 # Depending upon the size, compute the lo and hi bounds.
14058 cat >conftest.$ac_ext <<_ACEOF
14059 #line $LINENO "configure"
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14065 $ac_includes_default
14069 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
14076 rm -f conftest.$ac_objext
14077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14078 (eval $ac_compile) 2>&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); } &&
14082 { ac_try='test -s conftest.$ac_objext'
14083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084 (eval $ac_try) 2>&5
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; }; then
14090 cat >conftest.$ac_ext <<_ACEOF
14091 #line $LINENO "configure"
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h. */
14097 $ac_includes_default
14101 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14108 rm -f conftest.$ac_objext
14109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14110 (eval $ac_compile) 2>&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } &&
14114 { ac_try='test -s conftest.$ac_objext'
14115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14116 (eval $ac_try) 2>&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); }; }; then
14120 ac_hi=$ac_mid; break
14122 echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.$ac_ext >&5
14125 ac_lo=`expr $ac_mid + 1`
14126 if test $ac_lo -le $ac_mid; then
14130 ac_mid=`expr 2 '*' $ac_mid + 1`
14132 rm -f conftest.$ac_objext conftest.$ac_ext
14135 echo "$as_me: failed program was:" >&5
14136 sed 's/^/| /' conftest.$ac_ext >&5
14138 cat >conftest.$ac_ext <<_ACEOF
14139 #line $LINENO "configure"
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h. */
14145 $ac_includes_default
14149 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14156 rm -f conftest.$ac_objext
14157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14158 (eval $ac_compile) 2>&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } &&
14162 { ac_try='test -s conftest.$ac_objext'
14163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14164 (eval $ac_try) 2>&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); }; }; then
14170 cat >conftest.$ac_ext <<_ACEOF
14171 #line $LINENO "configure"
14174 cat confdefs.h >>conftest.$ac_ext
14175 cat >>conftest.$ac_ext <<_ACEOF
14176 /* end confdefs.h. */
14177 $ac_includes_default
14181 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14188 rm -f conftest.$ac_objext
14189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14190 (eval $ac_compile) 2>&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); } &&
14194 { ac_try='test -s conftest.$ac_objext'
14195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196 (eval $ac_try) 2>&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }; }; then
14200 ac_lo=$ac_mid; break
14202 echo "$as_me: failed program was:" >&5
14203 sed 's/^/| /' conftest.$ac_ext >&5
14205 ac_hi=`expr '(' $ac_mid ')' - 1`
14206 if test $ac_mid -le $ac_hi; then
14210 ac_mid=`expr 2 '*' $ac_mid`
14212 rm -f conftest.$ac_objext conftest.$ac_ext
14215 echo "$as_me: failed program was:" >&5
14216 sed 's/^/| /' conftest.$ac_ext >&5
14220 rm -f conftest.$ac_objext conftest.$ac_ext
14222 rm -f conftest.$ac_objext conftest.$ac_ext
14223 # Binary search between lo and hi bounds.
14224 while test "x$ac_lo" != "x$ac_hi"; do
14225 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14226 cat >conftest.$ac_ext <<_ACEOF
14227 #line $LINENO "configure"
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h. */
14233 $ac_includes_default
14237 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
14244 rm -f conftest.$ac_objext
14245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14246 (eval $ac_compile) 2>&5
14248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14249 (exit $ac_status); } &&
14250 { ac_try='test -s conftest.$ac_objext'
14251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14252 (eval $ac_try) 2>&5
14254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14255 (exit $ac_status); }; }; then
14258 echo "$as_me: failed program was:" >&5
14259 sed 's/^/| /' conftest.$ac_ext >&5
14261 ac_lo=`expr '(' $ac_mid ')' + 1`
14263 rm -f conftest.$ac_objext conftest.$ac_ext
14266 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14267 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14268 See \`config.log' for more details." >&5
14269 echo "$as_me: error: cannot compute sizeof (int *), 77
14270 See \`config.log' for more details." >&2;}
14271 { (exit 1); exit 1; }; } ;;
14274 if test "$cross_compiling" = yes; then
14275 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14276 See \`config.log' for more details." >&5
14277 echo "$as_me: error: cannot run test program while cross compiling
14278 See \`config.log' for more details." >&2;}
14279 { (exit 1); exit 1; }; }
14281 cat >conftest.$ac_ext <<_ACEOF
14282 #line $LINENO "configure"
14285 cat confdefs.h >>conftest.$ac_ext
14286 cat >>conftest.$ac_ext <<_ACEOF
14287 /* end confdefs.h. */
14288 $ac_includes_default
14289 long longval () { return (long) (sizeof (int *)); }
14290 unsigned long ulongval () { return (long) (sizeof (int *)); }
14292 #include <stdlib.h>
14297 FILE *f = fopen ("conftest.val", "w");
14300 if (((long) (sizeof (int *))) < 0)
14302 long i = longval ();
14303 if (i != ((long) (sizeof (int *))))
14305 fprintf (f, "%ld\n", i);
14309 unsigned long i = ulongval ();
14310 if (i != ((long) (sizeof (int *))))
14312 fprintf (f, "%lu\n", i);
14314 exit (ferror (f) || fclose (f) != 0);
14320 rm -f conftest$ac_exeext
14321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14322 (eval $ac_link) 2>&5
14324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14327 (eval $ac_try) 2>&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; }; then
14331 ac_cv_sizeof_int_p=`cat conftest.val`
14333 echo "$as_me: program exited with status $ac_status" >&5
14334 echo "$as_me: failed program was:" >&5
14335 sed 's/^/| /' conftest.$ac_ext >&5
14337 ( exit $ac_status )
14338 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14339 See \`config.log' for more details." >&5
14340 echo "$as_me: error: cannot compute sizeof (int *), 77
14341 See \`config.log' for more details." >&2;}
14342 { (exit 1); exit 1; }; }
14344 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14349 ac_cv_sizeof_int_p=0
14352 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14353 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14354 cat >>confdefs.h <<_ACEOF
14355 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14360 # Check for sys/types.h types
14361 echo "$as_me:$LINENO: checking for u_int type" >&5
14362 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14363 if test "${ac_cv_have_u_int+set}" = set; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14367 cat >conftest.$ac_ext <<_ACEOF
14368 #line $LINENO "configure"
14371 cat confdefs.h >>conftest.$ac_ext
14372 cat >>conftest.$ac_ext <<_ACEOF
14373 /* end confdefs.h. */
14374 #include <sys/types.h>
14383 rm -f conftest.$ac_objext
14384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14385 (eval $ac_compile) 2>&5
14387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14388 (exit $ac_status); } &&
14389 { ac_try='test -s conftest.$ac_objext'
14390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14391 (eval $ac_try) 2>&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); }; }; then
14395 ac_cv_have_u_int="yes"
14397 echo "$as_me: failed program was:" >&5
14398 sed 's/^/| /' conftest.$ac_ext >&5
14400 ac_cv_have_u_int="no"
14403 rm -f conftest.$ac_objext conftest.$ac_ext
14406 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14407 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14408 if test "x$ac_cv_have_u_int" = "xyes" ; then
14409 cat >>confdefs.h <<\_ACEOF
14410 #define HAVE_U_INT 1
14416 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14417 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14418 if test "${ac_cv_have_intmax_t+set}" = set; then
14419 echo $ECHO_N "(cached) $ECHO_C" >&6
14422 cat >conftest.$ac_ext <<_ACEOF
14423 #line $LINENO "configure"
14426 cat confdefs.h >>conftest.$ac_ext
14427 cat >>conftest.$ac_ext <<_ACEOF
14428 /* end confdefs.h. */
14429 #include <sys/types.h>
14438 rm -f conftest.$ac_objext
14439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14440 (eval $ac_compile) 2>&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); } &&
14444 { ac_try='test -s conftest.$ac_objext'
14445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14446 (eval $ac_try) 2>&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); }; }; then
14450 ac_cv_have_intmax_t="yes"
14452 echo "$as_me: failed program was:" >&5
14453 sed 's/^/| /' conftest.$ac_ext >&5
14456 cat >conftest.$ac_ext <<_ACEOF
14457 #line $LINENO "configure"
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14463 #include <stdint.h>
14472 rm -f conftest.$ac_objext
14473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14474 (eval $ac_compile) 2>&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } &&
14478 { ac_try='test -s conftest.$ac_objext'
14479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14480 (eval $ac_try) 2>&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); }; }; then
14484 ac_cv_have_intmax_t="yes"
14486 echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.$ac_ext >&5
14489 ac_cv_have_intmax_t="no"
14492 rm -f conftest.$ac_objext conftest.$ac_ext
14496 rm -f conftest.$ac_objext conftest.$ac_ext
14500 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14501 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14502 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14503 cat >>confdefs.h <<\_ACEOF
14504 #define HAVE_INTMAX_T 1
14511 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14512 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14513 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14514 echo $ECHO_N "(cached) $ECHO_C" >&6
14517 cat >conftest.$ac_ext <<_ACEOF
14518 #line $LINENO "configure"
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h. */
14524 #include <sys/types.h>
14528 u_intmax_t a; a = 1;
14533 rm -f conftest.$ac_objext
14534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14535 (eval $ac_compile) 2>&5
14537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } &&
14539 { ac_try='test -s conftest.$ac_objext'
14540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14541 (eval $ac_try) 2>&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); }; }; then
14545 ac_cv_have_u_intmax_t="yes"
14547 echo "$as_me: failed program was:" >&5
14548 sed 's/^/| /' conftest.$ac_ext >&5
14551 cat >conftest.$ac_ext <<_ACEOF
14552 #line $LINENO "configure"
14555 cat confdefs.h >>conftest.$ac_ext
14556 cat >>conftest.$ac_ext <<_ACEOF
14557 /* end confdefs.h. */
14558 #include <stdint.h>
14562 u_intmax_t a; a = 1;
14567 rm -f conftest.$ac_objext
14568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14569 (eval $ac_compile) 2>&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } &&
14573 { ac_try='test -s conftest.$ac_objext'
14574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14575 (eval $ac_try) 2>&5
14577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14578 (exit $ac_status); }; }; then
14579 ac_cv_have_u_intmax_t="yes"
14581 echo "$as_me: failed program was:" >&5
14582 sed 's/^/| /' conftest.$ac_ext >&5
14584 ac_cv_have_u_intmax_t="no"
14587 rm -f conftest.$ac_objext conftest.$ac_ext
14591 rm -f conftest.$ac_objext conftest.$ac_ext
14594 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14595 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14596 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14597 cat >>confdefs.h <<\_ACEOF
14598 #define HAVE_U_INTMAX_T 1
14605 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14606 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14607 if test "${ac_cv_have_intxx_t+set}" = set; then
14608 echo $ECHO_N "(cached) $ECHO_C" >&6
14611 cat >conftest.$ac_ext <<_ACEOF
14612 #line $LINENO "configure"
14615 cat confdefs.h >>conftest.$ac_ext
14616 cat >>conftest.$ac_ext <<_ACEOF
14617 /* end confdefs.h. */
14618 #include <sys/types.h>
14622 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14627 rm -f conftest.$ac_objext
14628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14629 (eval $ac_compile) 2>&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); } &&
14633 { ac_try='test -s conftest.$ac_objext'
14634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14635 (eval $ac_try) 2>&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); }; }; then
14639 ac_cv_have_intxx_t="yes"
14641 echo "$as_me: failed program was:" >&5
14642 sed 's/^/| /' conftest.$ac_ext >&5
14644 ac_cv_have_intxx_t="no"
14647 rm -f conftest.$ac_objext conftest.$ac_ext
14650 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14651 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14652 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14653 cat >>confdefs.h <<\_ACEOF
14654 #define HAVE_INTXX_T 1
14660 echo "$as_me:$LINENO: checking for int64_t type" >&5
14661 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14662 if test "${ac_cv_have_int64_t+set}" = set; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14666 cat >conftest.$ac_ext <<_ACEOF
14667 #line $LINENO "configure"
14670 cat confdefs.h >>conftest.$ac_ext
14671 cat >>conftest.$ac_ext <<_ACEOF
14672 /* end confdefs.h. */
14673 #include <sys/types.h>
14682 rm -f conftest.$ac_objext
14683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14684 (eval $ac_compile) 2>&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); } &&
14688 { ac_try='test -s conftest.$ac_objext'
14689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690 (eval $ac_try) 2>&5
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; }; then
14694 ac_cv_have_int64_t="yes"
14696 echo "$as_me: failed program was:" >&5
14697 sed 's/^/| /' conftest.$ac_ext >&5
14699 ac_cv_have_int64_t="no"
14702 rm -f conftest.$ac_objext conftest.$ac_ext
14705 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14706 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14707 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14708 cat >>confdefs.h <<\_ACEOF
14709 #define HAVE_INT64_T 1
14715 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14716 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14717 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14718 echo $ECHO_N "(cached) $ECHO_C" >&6
14721 cat >conftest.$ac_ext <<_ACEOF
14722 #line $LINENO "configure"
14725 cat confdefs.h >>conftest.$ac_ext
14726 cat >>conftest.$ac_ext <<_ACEOF
14727 /* end confdefs.h. */
14728 #include <sys/types.h>
14732 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14737 rm -f conftest.$ac_objext
14738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14739 (eval $ac_compile) 2>&5
14741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742 (exit $ac_status); } &&
14743 { ac_try='test -s conftest.$ac_objext'
14744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14745 (eval $ac_try) 2>&5
14747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); }; }; then
14749 ac_cv_have_u_intxx_t="yes"
14751 echo "$as_me: failed program was:" >&5
14752 sed 's/^/| /' conftest.$ac_ext >&5
14754 ac_cv_have_u_intxx_t="no"
14757 rm -f conftest.$ac_objext conftest.$ac_ext
14760 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14761 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14762 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14763 cat >>confdefs.h <<\_ACEOF
14764 #define HAVE_U_INTXX_T 1
14770 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14771 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14772 if test "${ac_cv_have_u_int64_t+set}" = set; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
14776 cat >conftest.$ac_ext <<_ACEOF
14777 #line $LINENO "configure"
14780 cat confdefs.h >>conftest.$ac_ext
14781 cat >>conftest.$ac_ext <<_ACEOF
14782 /* end confdefs.h. */
14783 #include <sys/types.h>
14787 u_int64_t a; a = 1;
14792 rm -f conftest.$ac_objext
14793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14794 (eval $ac_compile) 2>&5
14796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14797 (exit $ac_status); } &&
14798 { ac_try='test -s conftest.$ac_objext'
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; }; then
14804 ac_cv_have_u_int64_t="yes"
14806 echo "$as_me: failed program was:" >&5
14807 sed 's/^/| /' conftest.$ac_ext >&5
14809 ac_cv_have_u_int64_t="no"
14812 rm -f conftest.$ac_objext conftest.$ac_ext
14815 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14816 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14817 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14818 cat >>confdefs.h <<\_ACEOF
14819 #define HAVE_U_INT64_T 1
14825 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14826 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14828 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14829 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14830 cat >conftest.$ac_ext <<_ACEOF
14831 #line $LINENO "configure"
14834 cat confdefs.h >>conftest.$ac_ext
14835 cat >>conftest.$ac_ext <<_ACEOF
14836 /* end confdefs.h. */
14837 #include <sys/bitypes.h>
14841 int8_t a; int16_t b; int32_t c;
14842 u_int8_t e; u_int16_t f; u_int32_t g;
14843 a = b = c = e = f = g = 1;
14848 rm -f conftest.$ac_objext
14849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14850 (eval $ac_compile) 2>&5
14852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14853 (exit $ac_status); } &&
14854 { ac_try='test -s conftest.$ac_objext'
14855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14856 (eval $ac_try) 2>&5
14858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); }; }; then
14860 cat >>confdefs.h <<\_ACEOF
14861 #define HAVE_U_INTXX_T 1
14864 cat >>confdefs.h <<\_ACEOF
14865 #define HAVE_INTXX_T 1
14868 cat >>confdefs.h <<\_ACEOF
14869 #define HAVE_SYS_BITYPES_H 1
14872 echo "$as_me:$LINENO: result: yes" >&5
14873 echo "${ECHO_T}yes" >&6
14875 echo "$as_me: failed program was:" >&5
14876 sed 's/^/| /' conftest.$ac_ext >&5
14878 echo "$as_me:$LINENO: result: no" >&5
14879 echo "${ECHO_T}no" >&6
14882 rm -f conftest.$ac_objext conftest.$ac_ext
14885 if test -z "$have_u_intxx_t" ; then
14886 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14887 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14888 if test "${ac_cv_have_uintxx_t+set}" = set; then
14889 echo $ECHO_N "(cached) $ECHO_C" >&6
14892 cat >conftest.$ac_ext <<_ACEOF
14893 #line $LINENO "configure"
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h. */
14899 #include <sys/types.h>
14903 uint8_t a; uint16_t b;
14904 uint32_t c; a = b = c = 1;
14909 rm -f conftest.$ac_objext
14910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14911 (eval $ac_compile) 2>&5
14913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914 (exit $ac_status); } &&
14915 { ac_try='test -s conftest.$ac_objext'
14916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14917 (eval $ac_try) 2>&5
14919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14920 (exit $ac_status); }; }; then
14921 ac_cv_have_uintxx_t="yes"
14923 echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.$ac_ext >&5
14926 ac_cv_have_uintxx_t="no"
14929 rm -f conftest.$ac_objext conftest.$ac_ext
14932 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14933 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14934 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14935 cat >>confdefs.h <<\_ACEOF
14936 #define HAVE_UINTXX_T 1
14972 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14973 echo "$as_me:$LINENO: checking for $ac_func" >&5
14974 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14975 if eval "test \"\${$as_ac_var+set}\" = set"; then
14976 echo $ECHO_N "(cached) $ECHO_C" >&6
14978 cat >conftest.$ac_ext <<_ACEOF
14979 #line $LINENO "configure"
14982 cat confdefs.h >>conftest.$ac_ext
14983 cat >>conftest.$ac_ext <<_ACEOF
14984 /* end confdefs.h. */
14985 /* System header to define __stub macros and hopefully few prototypes,
14986 which can conflict with char $ac_func (); below.
14987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14988 <limits.h> exists even on freestanding compilers. */
14990 # include <limits.h>
14992 # include <assert.h>
14994 /* Override any gcc2 internal prototype to avoid an error. */
14999 /* We use char because int might match the return type of a gcc2
15000 builtin and then its argument prototype would still apply. */
15002 /* The GNU C library defines this for functions which it implements
15003 to always fail with ENOSYS. Some functions are actually named
15004 something starting with __ and the normal name is an alias. */
15005 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15008 char (*f) () = $ac_func;
15017 return f != $ac_func;
15022 rm -f conftest.$ac_objext conftest$ac_exeext
15023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15024 (eval $ac_link) 2>&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); } &&
15028 { ac_try='test -s conftest$ac_exeext'
15029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15030 (eval $ac_try) 2>&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); }; }; then
15034 eval "$as_ac_var=yes"
15036 echo "$as_me: failed program was:" >&5
15037 sed 's/^/| /' conftest.$ac_ext >&5
15039 eval "$as_ac_var=no"
15041 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15044 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15045 if test `eval echo '${'$as_ac_var'}'` = yes; then
15046 cat >>confdefs.h <<_ACEOF
15047 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15051 echo 'configure: cannot find needed function.'; exit 1
15058 for ac_func in fchdir
15060 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15061 echo "$as_me:$LINENO: checking for $ac_func" >&5
15062 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15063 if eval "test \"\${$as_ac_var+set}\" = set"; then
15064 echo $ECHO_N "(cached) $ECHO_C" >&6
15066 cat >conftest.$ac_ext <<_ACEOF
15067 #line $LINENO "configure"
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h. */
15073 /* System header to define __stub macros and hopefully few prototypes,
15074 which can conflict with char $ac_func (); below.
15075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15076 <limits.h> exists even on freestanding compilers. */
15078 # include <limits.h>
15080 # include <assert.h>
15082 /* Override any gcc2 internal prototype to avoid an error. */
15087 /* We use char because int might match the return type of a gcc2
15088 builtin and then its argument prototype would still apply. */
15090 /* The GNU C library defines this for functions which it implements
15091 to always fail with ENOSYS. Some functions are actually named
15092 something starting with __ and the normal name is an alias. */
15093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15096 char (*f) () = $ac_func;
15105 return f != $ac_func;
15110 rm -f conftest.$ac_objext conftest$ac_exeext
15111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15112 (eval $ac_link) 2>&5
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); } &&
15116 { ac_try='test -s conftest$ac_exeext'
15117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15118 (eval $ac_try) 2>&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; }; then
15122 eval "$as_ac_var=yes"
15124 echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15127 eval "$as_ac_var=no"
15129 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15131 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15132 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15133 if test `eval echo '${'$as_ac_var'}'` = yes; then
15134 cat >>confdefs.h <<_ACEOF
15135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15137 cat >>confdefs.h <<\_ACEOF
15138 #define HAVE_FCHDIR 1
15145 for ac_func in strtoll
15147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15148 echo "$as_me:$LINENO: checking for $ac_func" >&5
15149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15150 if eval "test \"\${$as_ac_var+set}\" = set"; then
15151 echo $ECHO_N "(cached) $ECHO_C" >&6
15153 cat >conftest.$ac_ext <<_ACEOF
15154 #line $LINENO "configure"
15157 cat confdefs.h >>conftest.$ac_ext
15158 cat >>conftest.$ac_ext <<_ACEOF
15159 /* end confdefs.h. */
15160 /* System header to define __stub macros and hopefully few prototypes,
15161 which can conflict with char $ac_func (); below.
15162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15163 <limits.h> exists even on freestanding compilers. */
15165 # include <limits.h>
15167 # include <assert.h>
15169 /* Override any gcc2 internal prototype to avoid an error. */
15174 /* We use char because int might match the return type of a gcc2
15175 builtin and then its argument prototype would still apply. */
15177 /* The GNU C library defines this for functions which it implements
15178 to always fail with ENOSYS. Some functions are actually named
15179 something starting with __ and the normal name is an alias. */
15180 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15183 char (*f) () = $ac_func;
15192 return f != $ac_func;
15197 rm -f conftest.$ac_objext conftest$ac_exeext
15198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15199 (eval $ac_link) 2>&5
15201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202 (exit $ac_status); } &&
15203 { ac_try='test -s conftest$ac_exeext'
15204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15205 (eval $ac_try) 2>&5
15207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15208 (exit $ac_status); }; }; then
15209 eval "$as_ac_var=yes"
15211 echo "$as_me: failed program was:" >&5
15212 sed 's/^/| /' conftest.$ac_ext >&5
15214 eval "$as_ac_var=no"
15216 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15218 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15219 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15220 if test `eval echo '${'$as_ac_var'}'` = yes; then
15221 cat >>confdefs.h <<_ACEOF
15222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15224 cat >>confdefs.h <<\_ACEOF
15225 #define HAVE_STRTOLL 1
15233 for ac_func in chflags
15235 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15236 echo "$as_me:$LINENO: checking for $ac_func" >&5
15237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15238 if eval "test \"\${$as_ac_var+set}\" = set"; then
15239 echo $ECHO_N "(cached) $ECHO_C" >&6
15241 cat >conftest.$ac_ext <<_ACEOF
15242 #line $LINENO "configure"
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 /* System header to define __stub macros and hopefully few prototypes,
15249 which can conflict with char $ac_func (); below.
15250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15251 <limits.h> exists even on freestanding compilers. */
15253 # include <limits.h>
15255 # include <assert.h>
15257 /* Override any gcc2 internal prototype to avoid an error. */
15262 /* We use char because int might match the return type of a gcc2
15263 builtin and then its argument prototype would still apply. */
15265 /* The GNU C library defines this for functions which it implements
15266 to always fail with ENOSYS. Some functions are actually named
15267 something starting with __ and the normal name is an alias. */
15268 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15271 char (*f) () = $ac_func;
15280 return f != $ac_func;
15285 rm -f conftest.$ac_objext conftest$ac_exeext
15286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15287 (eval $ac_link) 2>&5
15289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15290 (exit $ac_status); } &&
15291 { ac_try='test -s conftest$ac_exeext'
15292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15293 (eval $ac_try) 2>&5
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); }; }; then
15297 eval "$as_ac_var=yes"
15299 echo "$as_me: failed program was:" >&5
15300 sed 's/^/| /' conftest.$ac_ext >&5
15302 eval "$as_ac_var=no"
15304 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15307 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15308 if test `eval echo '${'$as_ac_var'}'` = yes; then
15309 cat >>confdefs.h <<_ACEOF
15310 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15321 for ac_func in snprintf vsnprintf gethostid getdomainname
15323 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15324 echo "$as_me:$LINENO: checking for $ac_func" >&5
15325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15326 if eval "test \"\${$as_ac_var+set}\" = set"; then
15327 echo $ECHO_N "(cached) $ECHO_C" >&6
15329 cat >conftest.$ac_ext <<_ACEOF
15330 #line $LINENO "configure"
15333 cat confdefs.h >>conftest.$ac_ext
15334 cat >>conftest.$ac_ext <<_ACEOF
15335 /* end confdefs.h. */
15336 /* System header to define __stub macros and hopefully few prototypes,
15337 which can conflict with char $ac_func (); below.
15338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15339 <limits.h> exists even on freestanding compilers. */
15341 # include <limits.h>
15343 # include <assert.h>
15345 /* Override any gcc2 internal prototype to avoid an error. */
15350 /* We use char because int might match the return type of a gcc2
15351 builtin and then its argument prototype would still apply. */
15353 /* The GNU C library defines this for functions which it implements
15354 to always fail with ENOSYS. Some functions are actually named
15355 something starting with __ and the normal name is an alias. */
15356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15359 char (*f) () = $ac_func;
15368 return f != $ac_func;
15373 rm -f conftest.$ac_objext conftest$ac_exeext
15374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15375 (eval $ac_link) 2>&5
15377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15378 (exit $ac_status); } &&
15379 { ac_try='test -s conftest$ac_exeext'
15380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15381 (eval $ac_try) 2>&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); }; }; then
15385 eval "$as_ac_var=yes"
15387 echo "$as_me: failed program was:" >&5
15388 sed 's/^/| /' conftest.$ac_ext >&5
15390 eval "$as_ac_var=no"
15392 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15394 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15395 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15396 if test `eval echo '${'$as_ac_var'}'` = yes; then
15397 cat >>confdefs.h <<_ACEOF
15398 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15409 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15411 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15412 echo "$as_me:$LINENO: checking for $ac_func" >&5
15413 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15414 if eval "test \"\${$as_ac_var+set}\" = set"; then
15415 echo $ECHO_N "(cached) $ECHO_C" >&6
15417 cat >conftest.$ac_ext <<_ACEOF
15418 #line $LINENO "configure"
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h. */
15424 /* System header to define __stub macros and hopefully few prototypes,
15425 which can conflict with char $ac_func (); below.
15426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15427 <limits.h> exists even on freestanding compilers. */
15429 # include <limits.h>
15431 # include <assert.h>
15433 /* Override any gcc2 internal prototype to avoid an error. */
15438 /* We use char because int might match the return type of a gcc2
15439 builtin and then its argument prototype would still apply. */
15441 /* The GNU C library defines this for functions which it implements
15442 to always fail with ENOSYS. Some functions are actually named
15443 something starting with __ and the normal name is an alias. */
15444 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15447 char (*f) () = $ac_func;
15456 return f != $ac_func;
15461 rm -f conftest.$ac_objext conftest$ac_exeext
15462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15463 (eval $ac_link) 2>&5
15465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15466 (exit $ac_status); } &&
15467 { ac_try='test -s conftest$ac_exeext'
15468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15469 (eval $ac_try) 2>&5
15471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15472 (exit $ac_status); }; }; then
15473 eval "$as_ac_var=yes"
15475 echo "$as_me: failed program was:" >&5
15476 sed 's/^/| /' conftest.$ac_ext >&5
15478 eval "$as_ac_var=no"
15480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15482 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15483 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15484 if test `eval echo '${'$as_ac_var'}'` = yes; then
15485 cat >>confdefs.h <<_ACEOF
15486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15493 # If resolver functions are not in libc check for -lnsl or -lresolv.
15494 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15495 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15496 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15497 echo $ECHO_N "(cached) $ECHO_C" >&6
15499 cat >conftest.$ac_ext <<_ACEOF
15500 #line $LINENO "configure"
15503 cat confdefs.h >>conftest.$ac_ext
15504 cat >>conftest.$ac_ext <<_ACEOF
15505 /* end confdefs.h. */
15506 /* System header to define __stub macros and hopefully few prototypes,
15507 which can conflict with char gethostbyname_r (); below.
15508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15509 <limits.h> exists even on freestanding compilers. */
15511 # include <limits.h>
15513 # include <assert.h>
15515 /* Override any gcc2 internal prototype to avoid an error. */
15520 /* We use char because int might match the return type of a gcc2
15521 builtin and then its argument prototype would still apply. */
15522 char gethostbyname_r ();
15523 /* The GNU C library defines this for functions which it implements
15524 to always fail with ENOSYS. Some functions are actually named
15525 something starting with __ and the normal name is an alias. */
15526 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15529 char (*f) () = gethostbyname_r;
15538 return f != gethostbyname_r;
15543 rm -f conftest.$ac_objext conftest$ac_exeext
15544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15545 (eval $ac_link) 2>&5
15547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15548 (exit $ac_status); } &&
15549 { ac_try='test -s conftest$ac_exeext'
15550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15551 (eval $ac_try) 2>&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; }; then
15555 ac_cv_func_gethostbyname_r=yes
15557 echo "$as_me: failed program was:" >&5
15558 sed 's/^/| /' conftest.$ac_ext >&5
15560 ac_cv_func_gethostbyname_r=no
15562 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15564 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15565 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15566 if test $ac_cv_func_gethostbyname_r = yes; then
15567 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15568 echo "${ECHO_T}using libc's resolver" >&6
15571 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15572 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15573 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15574 echo $ECHO_N "(cached) $ECHO_C" >&6
15576 ac_check_lib_save_LIBS=$LIBS
15578 cat >conftest.$ac_ext <<_ACEOF
15579 #line $LINENO "configure"
15582 cat confdefs.h >>conftest.$ac_ext
15583 cat >>conftest.$ac_ext <<_ACEOF
15584 /* end confdefs.h. */
15586 /* Override any gcc2 internal prototype to avoid an error. */
15590 /* We use char because int might match the return type of a gcc2
15591 builtin and then its argument prototype would still apply. */
15592 char gethostbyname_r ();
15596 gethostbyname_r ();
15601 rm -f conftest.$ac_objext conftest$ac_exeext
15602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15603 (eval $ac_link) 2>&5
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); } &&
15607 { ac_try='test -s conftest$ac_exeext'
15608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15609 (eval $ac_try) 2>&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 (exit $ac_status); }; }; then
15613 ac_cv_lib_nsl_gethostbyname_r=yes
15615 echo "$as_me: failed program was:" >&5
15616 sed 's/^/| /' conftest.$ac_ext >&5
15618 ac_cv_lib_nsl_gethostbyname_r=no
15620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15621 LIBS=$ac_check_lib_save_LIBS
15623 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15624 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15625 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15626 cat >>confdefs.h <<_ACEOF
15627 #define HAVE_LIBNSL 1
15635 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15636 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15637 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15638 echo $ECHO_N "(cached) $ECHO_C" >&6
15640 ac_check_lib_save_LIBS=$LIBS
15641 LIBS="-lresolv $LIBS"
15642 cat >conftest.$ac_ext <<_ACEOF
15643 #line $LINENO "configure"
15646 cat confdefs.h >>conftest.$ac_ext
15647 cat >>conftest.$ac_ext <<_ACEOF
15648 /* end confdefs.h. */
15650 /* Override any gcc2 internal prototype to avoid an error. */
15654 /* We use char because int might match the return type of a gcc2
15655 builtin and then its argument prototype would still apply. */
15656 char gethostbyname_r ();
15660 gethostbyname_r ();
15665 rm -f conftest.$ac_objext conftest$ac_exeext
15666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15667 (eval $ac_link) 2>&5
15669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15670 (exit $ac_status); } &&
15671 { ac_try='test -s conftest$ac_exeext'
15672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15673 (eval $ac_try) 2>&5
15675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676 (exit $ac_status); }; }; then
15677 ac_cv_lib_resolv_gethostbyname_r=yes
15679 echo "$as_me: failed program was:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15682 ac_cv_lib_resolv_gethostbyname_r=no
15684 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15685 LIBS=$ac_check_lib_save_LIBS
15687 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15688 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15689 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15690 cat >>confdefs.h <<_ACEOF
15691 #define HAVE_LIBRESOLV 1
15694 LIBS="-lresolv $LIBS"
15702 # Find where sockets are (especially for Solaris)
15703 echo "$as_me:$LINENO: checking for socket" >&5
15704 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15705 if test "${ac_cv_func_socket+set}" = set; then
15706 echo $ECHO_N "(cached) $ECHO_C" >&6
15708 cat >conftest.$ac_ext <<_ACEOF
15709 #line $LINENO "configure"
15712 cat confdefs.h >>conftest.$ac_ext
15713 cat >>conftest.$ac_ext <<_ACEOF
15714 /* end confdefs.h. */
15715 /* System header to define __stub macros and hopefully few prototypes,
15716 which can conflict with char socket (); below.
15717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15718 <limits.h> exists even on freestanding compilers. */
15720 # include <limits.h>
15722 # include <assert.h>
15724 /* Override any gcc2 internal prototype to avoid an error. */
15729 /* We use char because int might match the return type of a gcc2
15730 builtin and then its argument prototype would still apply. */
15732 /* The GNU C library defines this for functions which it implements
15733 to always fail with ENOSYS. Some functions are actually named
15734 something starting with __ and the normal name is an alias. */
15735 #if defined (__stub_socket) || defined (__stub___socket)
15738 char (*f) () = socket;
15747 return f != socket;
15752 rm -f conftest.$ac_objext conftest$ac_exeext
15753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15754 (eval $ac_link) 2>&5
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); } &&
15758 { ac_try='test -s conftest$ac_exeext'
15759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15760 (eval $ac_try) 2>&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 (exit $ac_status); }; }; then
15764 ac_cv_func_socket=yes
15766 echo "$as_me: failed program was:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15769 ac_cv_func_socket=no
15771 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15773 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15774 echo "${ECHO_T}$ac_cv_func_socket" >&6
15775 if test $ac_cv_func_socket = yes; then
15776 echo "$as_me:$LINENO: result: using libc's socket" >&5
15777 echo "${ECHO_T}using libc's socket" >&6
15780 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15781 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15782 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15783 echo $ECHO_N "(cached) $ECHO_C" >&6
15785 ac_check_lib_save_LIBS=$LIBS
15786 LIBS="-lxnet $LIBS"
15787 cat >conftest.$ac_ext <<_ACEOF
15788 #line $LINENO "configure"
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h. */
15795 /* Override any gcc2 internal prototype to avoid an error. */
15799 /* We use char because int might match the return type of a gcc2
15800 builtin and then its argument prototype would still apply. */
15810 rm -f conftest.$ac_objext conftest$ac_exeext
15811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15812 (eval $ac_link) 2>&5
15814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15815 (exit $ac_status); } &&
15816 { ac_try='test -s conftest$ac_exeext'
15817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15818 (eval $ac_try) 2>&5
15820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15821 (exit $ac_status); }; }; then
15822 ac_cv_lib_xnet_socket=yes
15824 echo "$as_me: failed program was:" >&5
15825 sed 's/^/| /' conftest.$ac_ext >&5
15827 ac_cv_lib_xnet_socket=no
15829 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15830 LIBS=$ac_check_lib_save_LIBS
15832 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15833 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15834 if test $ac_cv_lib_xnet_socket = yes; then
15835 cat >>confdefs.h <<_ACEOF
15836 #define HAVE_LIBXNET 1
15839 LIBS="-lxnet $LIBS"
15844 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15845 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15846 if test "${ac_cv_lib_socket_socket+set}" = set; then
15847 echo $ECHO_N "(cached) $ECHO_C" >&6
15849 ac_check_lib_save_LIBS=$LIBS
15850 LIBS="-lsocket $LIBS"
15851 cat >conftest.$ac_ext <<_ACEOF
15852 #line $LINENO "configure"
15855 cat confdefs.h >>conftest.$ac_ext
15856 cat >>conftest.$ac_ext <<_ACEOF
15857 /* end confdefs.h. */
15859 /* Override any gcc2 internal prototype to avoid an error. */
15863 /* We use char because int might match the return type of a gcc2
15864 builtin and then its argument prototype would still apply. */
15874 rm -f conftest.$ac_objext conftest$ac_exeext
15875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15876 (eval $ac_link) 2>&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); } &&
15880 { ac_try='test -s conftest$ac_exeext'
15881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15882 (eval $ac_try) 2>&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }; }; then
15886 ac_cv_lib_socket_socket=yes
15888 echo "$as_me: failed program was:" >&5
15889 sed 's/^/| /' conftest.$ac_ext >&5
15891 ac_cv_lib_socket_socket=no
15893 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15894 LIBS=$ac_check_lib_save_LIBS
15896 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15897 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15898 if test $ac_cv_lib_socket_socket = yes; then
15899 cat >>confdefs.h <<_ACEOF
15900 #define HAVE_LIBSOCKET 1
15903 LIBS="-lsocket $LIBS"
15908 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15909 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15910 if test "${ac_cv_lib_inet_socket+set}" = set; then
15911 echo $ECHO_N "(cached) $ECHO_C" >&6
15913 ac_check_lib_save_LIBS=$LIBS
15914 LIBS="-linet $LIBS"
15915 cat >conftest.$ac_ext <<_ACEOF
15916 #line $LINENO "configure"
15919 cat confdefs.h >>conftest.$ac_ext
15920 cat >>conftest.$ac_ext <<_ACEOF
15921 /* end confdefs.h. */
15923 /* Override any gcc2 internal prototype to avoid an error. */
15927 /* We use char because int might match the return type of a gcc2
15928 builtin and then its argument prototype would still apply. */
15938 rm -f conftest.$ac_objext conftest$ac_exeext
15939 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15940 (eval $ac_link) 2>&5
15942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } &&
15944 { ac_try='test -s conftest$ac_exeext'
15945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15946 (eval $ac_try) 2>&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); }; }; then
15950 ac_cv_lib_inet_socket=yes
15952 echo "$as_me: failed program was:" >&5
15953 sed 's/^/| /' conftest.$ac_ext >&5
15955 ac_cv_lib_inet_socket=no
15957 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15958 LIBS=$ac_check_lib_save_LIBS
15960 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15961 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15962 if test $ac_cv_lib_inet_socket = yes; then
15963 cat >>confdefs.h <<_ACEOF
15964 #define HAVE_LIBINET 1
15967 LIBS="-linet $LIBS"
15975 for ac_func in inet_pton
15977 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15978 echo "$as_me:$LINENO: checking for $ac_func" >&5
15979 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15980 if eval "test \"\${$as_ac_var+set}\" = set"; then
15981 echo $ECHO_N "(cached) $ECHO_C" >&6
15983 cat >conftest.$ac_ext <<_ACEOF
15984 #line $LINENO "configure"
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15990 /* System header to define __stub macros and hopefully few prototypes,
15991 which can conflict with char $ac_func (); below.
15992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15993 <limits.h> exists even on freestanding compilers. */
15995 # include <limits.h>
15997 # include <assert.h>
15999 /* Override any gcc2 internal prototype to avoid an error. */
16004 /* We use char because int might match the return type of a gcc2
16005 builtin and then its argument prototype would still apply. */
16007 /* The GNU C library defines this for functions which it implements
16008 to always fail with ENOSYS. Some functions are actually named
16009 something starting with __ and the normal name is an alias. */
16010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16013 char (*f) () = $ac_func;
16022 return f != $ac_func;
16027 rm -f conftest.$ac_objext conftest$ac_exeext
16028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16029 (eval $ac_link) 2>&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } &&
16033 { ac_try='test -s conftest$ac_exeext'
16034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16035 (eval $ac_try) 2>&5
16037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16038 (exit $ac_status); }; }; then
16039 eval "$as_ac_var=yes"
16041 echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.$ac_ext >&5
16044 eval "$as_ac_var=no"
16046 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16049 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16050 if test `eval echo '${'$as_ac_var'}'` = yes; then
16051 cat >>confdefs.h <<_ACEOF
16052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16054 cat >>confdefs.h <<\_ACEOF
16055 #define HAVE_INET_PTON 1
16063 for ac_func in strftime
16065 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16066 echo "$as_me:$LINENO: checking for $ac_func" >&5
16067 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16068 if eval "test \"\${$as_ac_var+set}\" = set"; then
16069 echo $ECHO_N "(cached) $ECHO_C" >&6
16071 cat >conftest.$ac_ext <<_ACEOF
16072 #line $LINENO "configure"
16075 cat confdefs.h >>conftest.$ac_ext
16076 cat >>conftest.$ac_ext <<_ACEOF
16077 /* end confdefs.h. */
16078 /* System header to define __stub macros and hopefully few prototypes,
16079 which can conflict with char $ac_func (); below.
16080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16081 <limits.h> exists even on freestanding compilers. */
16083 # include <limits.h>
16085 # include <assert.h>
16087 /* Override any gcc2 internal prototype to avoid an error. */
16092 /* We use char because int might match the return type of a gcc2
16093 builtin and then its argument prototype would still apply. */
16095 /* The GNU C library defines this for functions which it implements
16096 to always fail with ENOSYS. Some functions are actually named
16097 something starting with __ and the normal name is an alias. */
16098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16101 char (*f) () = $ac_func;
16110 return f != $ac_func;
16115 rm -f conftest.$ac_objext conftest$ac_exeext
16116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16117 (eval $ac_link) 2>&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } &&
16121 { ac_try='test -s conftest$ac_exeext'
16122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16123 (eval $ac_try) 2>&5
16125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16126 (exit $ac_status); }; }; then
16127 eval "$as_ac_var=yes"
16129 echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16132 eval "$as_ac_var=no"
16134 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16136 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16137 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16138 if test `eval echo '${'$as_ac_var'}'` = yes; then
16139 cat >>confdefs.h <<_ACEOF
16140 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16144 # strftime is in -lintl on SCO UNIX.
16145 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16146 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16147 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16148 echo $ECHO_N "(cached) $ECHO_C" >&6
16150 ac_check_lib_save_LIBS=$LIBS
16151 LIBS="-lintl $LIBS"
16152 cat >conftest.$ac_ext <<_ACEOF
16153 #line $LINENO "configure"
16156 cat confdefs.h >>conftest.$ac_ext
16157 cat >>conftest.$ac_ext <<_ACEOF
16158 /* end confdefs.h. */
16160 /* Override any gcc2 internal prototype to avoid an error. */
16164 /* We use char because int might match the return type of a gcc2
16165 builtin and then its argument prototype would still apply. */
16175 rm -f conftest.$ac_objext conftest$ac_exeext
16176 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16177 (eval $ac_link) 2>&5
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } &&
16181 { ac_try='test -s conftest$ac_exeext'
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; }; then
16187 ac_cv_lib_intl_strftime=yes
16189 echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16192 ac_cv_lib_intl_strftime=no
16194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16195 LIBS=$ac_check_lib_save_LIBS
16197 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16198 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16199 if test $ac_cv_lib_intl_strftime = yes; then
16200 cat >>confdefs.h <<\_ACEOF
16201 #define HAVE_STRFTIME 1
16204 LIBS="-lintl $LIBS"
16211 for ac_func in vprintf
16213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16214 echo "$as_me:$LINENO: checking for $ac_func" >&5
16215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16216 if eval "test \"\${$as_ac_var+set}\" = set"; then
16217 echo $ECHO_N "(cached) $ECHO_C" >&6
16219 cat >conftest.$ac_ext <<_ACEOF
16220 #line $LINENO "configure"
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h. */
16226 /* System header to define __stub macros and hopefully few prototypes,
16227 which can conflict with char $ac_func (); below.
16228 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16229 <limits.h> exists even on freestanding compilers. */
16231 # include <limits.h>
16233 # include <assert.h>
16235 /* Override any gcc2 internal prototype to avoid an error. */
16240 /* We use char because int might match the return type of a gcc2
16241 builtin and then its argument prototype would still apply. */
16243 /* The GNU C library defines this for functions which it implements
16244 to always fail with ENOSYS. Some functions are actually named
16245 something starting with __ and the normal name is an alias. */
16246 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16249 char (*f) () = $ac_func;
16258 return f != $ac_func;
16263 rm -f conftest.$ac_objext conftest$ac_exeext
16264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16265 (eval $ac_link) 2>&5
16267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16268 (exit $ac_status); } &&
16269 { ac_try='test -s conftest$ac_exeext'
16270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16271 (eval $ac_try) 2>&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275 eval "$as_ac_var=yes"
16277 echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16280 eval "$as_ac_var=no"
16282 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16284 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16285 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16286 if test `eval echo '${'$as_ac_var'}'` = yes; then
16287 cat >>confdefs.h <<_ACEOF
16288 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16291 echo "$as_me:$LINENO: checking for _doprnt" >&5
16292 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16293 if test "${ac_cv_func__doprnt+set}" = set; then
16294 echo $ECHO_N "(cached) $ECHO_C" >&6
16296 cat >conftest.$ac_ext <<_ACEOF
16297 #line $LINENO "configure"
16300 cat confdefs.h >>conftest.$ac_ext
16301 cat >>conftest.$ac_ext <<_ACEOF
16302 /* end confdefs.h. */
16303 /* System header to define __stub macros and hopefully few prototypes,
16304 which can conflict with char _doprnt (); below.
16305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16306 <limits.h> exists even on freestanding compilers. */
16308 # include <limits.h>
16310 # include <assert.h>
16312 /* Override any gcc2 internal prototype to avoid an error. */
16317 /* We use char because int might match the return type of a gcc2
16318 builtin and then its argument prototype would still apply. */
16320 /* The GNU C library defines this for functions which it implements
16321 to always fail with ENOSYS. Some functions are actually named
16322 something starting with __ and the normal name is an alias. */
16323 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16326 char (*f) () = _doprnt;
16335 return f != _doprnt;
16340 rm -f conftest.$ac_objext conftest$ac_exeext
16341 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16342 (eval $ac_link) 2>&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } &&
16346 { ac_try='test -s conftest$ac_exeext'
16347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16348 (eval $ac_try) 2>&5
16350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16351 (exit $ac_status); }; }; then
16352 ac_cv_func__doprnt=yes
16354 echo "$as_me: failed program was:" >&5
16355 sed 's/^/| /' conftest.$ac_ext >&5
16357 ac_cv_func__doprnt=no
16359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16361 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16362 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16363 if test $ac_cv_func__doprnt = yes; then
16365 cat >>confdefs.h <<\_ACEOF
16366 #define HAVE_DOPRNT 1
16375 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16376 # for constant arguments. Useless!
16377 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16378 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16379 if test "${ac_cv_working_alloca_h+set}" = set; then
16380 echo $ECHO_N "(cached) $ECHO_C" >&6
16382 cat >conftest.$ac_ext <<_ACEOF
16383 #line $LINENO "configure"
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 #include <alloca.h>
16393 char *p = (char *) alloca (2 * sizeof (int));
16398 rm -f conftest.$ac_objext conftest$ac_exeext
16399 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16400 (eval $ac_link) 2>&5
16402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16403 (exit $ac_status); } &&
16404 { ac_try='test -s conftest$ac_exeext'
16405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16406 (eval $ac_try) 2>&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); }; }; then
16410 ac_cv_working_alloca_h=yes
16412 echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16415 ac_cv_working_alloca_h=no
16417 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16419 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16420 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16421 if test $ac_cv_working_alloca_h = yes; then
16423 cat >>confdefs.h <<\_ACEOF
16424 #define HAVE_ALLOCA_H 1
16429 echo "$as_me:$LINENO: checking for alloca" >&5
16430 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16431 if test "${ac_cv_func_alloca_works+set}" = set; then
16432 echo $ECHO_N "(cached) $ECHO_C" >&6
16434 cat >conftest.$ac_ext <<_ACEOF
16435 #line $LINENO "configure"
16438 cat confdefs.h >>conftest.$ac_ext
16439 cat >>conftest.$ac_ext <<_ACEOF
16440 /* end confdefs.h. */
16442 # define alloca __builtin_alloca
16445 # include <malloc.h>
16446 # define alloca _alloca
16449 # include <alloca.h>
16454 # ifndef alloca /* predefined by HP cc +Olibcalls */
16465 char *p = (char *) alloca (1);
16470 rm -f conftest.$ac_objext conftest$ac_exeext
16471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16472 (eval $ac_link) 2>&5
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); } &&
16476 { ac_try='test -s conftest$ac_exeext'
16477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16478 (eval $ac_try) 2>&5
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); }; }; then
16482 ac_cv_func_alloca_works=yes
16484 echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16487 ac_cv_func_alloca_works=no
16489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16491 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16492 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16494 if test $ac_cv_func_alloca_works = yes; then
16496 cat >>confdefs.h <<\_ACEOF
16497 #define HAVE_ALLOCA 1
16501 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16502 # that cause trouble. Some versions do not even contain alloca or
16503 # contain a buggy version. If you still want to use their alloca,
16504 # use ar to extract alloca.o from them instead of compiling alloca.c.
16506 ALLOCA=alloca.$ac_objext
16508 cat >>confdefs.h <<\_ACEOF
16513 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16514 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16515 if test "${ac_cv_os_cray+set}" = set; then
16516 echo $ECHO_N "(cached) $ECHO_C" >&6
16518 cat >conftest.$ac_ext <<_ACEOF
16519 #line $LINENO "configure"
16522 cat confdefs.h >>conftest.$ac_ext
16523 cat >>conftest.$ac_ext <<_ACEOF
16524 /* end confdefs.h. */
16525 #if defined(CRAY) && ! defined(CRAY2)
16532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16533 $EGREP "webecray" >/dev/null 2>&1; then
16541 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16542 echo "${ECHO_T}$ac_cv_os_cray" >&6
16543 if test $ac_cv_os_cray = yes; then
16544 for ac_func in _getb67 GETB67 getb67; do
16545 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16546 echo "$as_me:$LINENO: checking for $ac_func" >&5
16547 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16548 if eval "test \"\${$as_ac_var+set}\" = set"; then
16549 echo $ECHO_N "(cached) $ECHO_C" >&6
16551 cat >conftest.$ac_ext <<_ACEOF
16552 #line $LINENO "configure"
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16558 /* System header to define __stub macros and hopefully few prototypes,
16559 which can conflict with char $ac_func (); below.
16560 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16561 <limits.h> exists even on freestanding compilers. */
16563 # include <limits.h>
16565 # include <assert.h>
16567 /* Override any gcc2 internal prototype to avoid an error. */
16572 /* We use char because int might match the return type of a gcc2
16573 builtin and then its argument prototype would still apply. */
16575 /* The GNU C library defines this for functions which it implements
16576 to always fail with ENOSYS. Some functions are actually named
16577 something starting with __ and the normal name is an alias. */
16578 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16581 char (*f) () = $ac_func;
16590 return f != $ac_func;
16595 rm -f conftest.$ac_objext conftest$ac_exeext
16596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16597 (eval $ac_link) 2>&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); } &&
16601 { ac_try='test -s conftest$ac_exeext'
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; }; then
16607 eval "$as_ac_var=yes"
16609 echo "$as_me: failed program was:" >&5
16610 sed 's/^/| /' conftest.$ac_ext >&5
16612 eval "$as_ac_var=no"
16614 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16616 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16617 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16618 if test `eval echo '${'$as_ac_var'}'` = yes; then
16620 cat >>confdefs.h <<_ACEOF
16621 #define CRAY_STACKSEG_END $ac_func
16630 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16631 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16632 if test "${ac_cv_c_stack_direction+set}" = set; then
16633 echo $ECHO_N "(cached) $ECHO_C" >&6
16635 if test "$cross_compiling" = yes; then
16636 ac_cv_c_stack_direction=0
16638 cat >conftest.$ac_ext <<_ACEOF
16639 #line $LINENO "configure"
16642 cat confdefs.h >>conftest.$ac_ext
16643 cat >>conftest.$ac_ext <<_ACEOF
16644 /* end confdefs.h. */
16646 find_stack_direction ()
16648 static char *addr = 0;
16653 return find_stack_direction ();
16656 return (&dummy > addr) ? 1 : -1;
16662 exit (find_stack_direction () < 0);
16665 rm -f conftest$ac_exeext
16666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16667 (eval $ac_link) 2>&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16672 (eval $ac_try) 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); }; }; then
16676 ac_cv_c_stack_direction=1
16678 echo "$as_me: program exited with status $ac_status" >&5
16679 echo "$as_me: failed program was:" >&5
16680 sed 's/^/| /' conftest.$ac_ext >&5
16682 ( exit $ac_status )
16683 ac_cv_c_stack_direction=-1
16685 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16688 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16689 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16691 cat >>confdefs.h <<_ACEOF
16692 #define STACK_DIRECTION $ac_cv_c_stack_direction
16698 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16699 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16700 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16701 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16702 echo $ECHO_N "(cached) $ECHO_C" >&6
16704 ac_check_lib_save_LIBS=$LIBS
16706 cat >conftest.$ac_ext <<_ACEOF
16707 #line $LINENO "configure"
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h. */
16714 /* Override any gcc2 internal prototype to avoid an error. */
16718 /* We use char because int might match the return type of a gcc2
16719 builtin and then its argument prototype would still apply. */
16729 rm -f conftest.$ac_objext conftest$ac_exeext
16730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16731 (eval $ac_link) 2>&5
16733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16734 (exit $ac_status); } &&
16735 { ac_try='test -s conftest$ac_exeext'
16736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16737 (eval $ac_try) 2>&5
16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740 (exit $ac_status); }; }; then
16741 ac_cv_lib_sun_getmntent=yes
16743 echo "$as_me: failed program was:" >&5
16744 sed 's/^/| /' conftest.$ac_ext >&5
16746 ac_cv_lib_sun_getmntent=no
16748 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16749 LIBS=$ac_check_lib_save_LIBS
16751 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16752 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16753 if test $ac_cv_lib_sun_getmntent = yes; then
16756 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16757 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16758 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16759 echo $ECHO_N "(cached) $ECHO_C" >&6
16761 ac_check_lib_save_LIBS=$LIBS
16763 cat >conftest.$ac_ext <<_ACEOF
16764 #line $LINENO "configure"
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16771 /* Override any gcc2 internal prototype to avoid an error. */
16775 /* We use char because int might match the return type of a gcc2
16776 builtin and then its argument prototype would still apply. */
16786 rm -f conftest.$ac_objext conftest$ac_exeext
16787 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16788 (eval $ac_link) 2>&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); } &&
16792 { ac_try='test -s conftest$ac_exeext'
16793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16794 (eval $ac_try) 2>&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); }; }; then
16798 ac_cv_lib_seq_getmntent=yes
16800 echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16803 ac_cv_lib_seq_getmntent=no
16805 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16806 LIBS=$ac_check_lib_save_LIBS
16808 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16809 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16810 if test $ac_cv_lib_seq_getmntent = yes; then
16813 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16814 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16815 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16816 echo $ECHO_N "(cached) $ECHO_C" >&6
16818 ac_check_lib_save_LIBS=$LIBS
16820 cat >conftest.$ac_ext <<_ACEOF
16821 #line $LINENO "configure"
16824 cat confdefs.h >>conftest.$ac_ext
16825 cat >>conftest.$ac_ext <<_ACEOF
16826 /* end confdefs.h. */
16828 /* Override any gcc2 internal prototype to avoid an error. */
16832 /* We use char because int might match the return type of a gcc2
16833 builtin and then its argument prototype would still apply. */
16843 rm -f conftest.$ac_objext conftest$ac_exeext
16844 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16845 (eval $ac_link) 2>&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 (exit $ac_status); } &&
16849 { ac_try='test -s conftest$ac_exeext'
16850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16851 (eval $ac_try) 2>&5
16853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16854 (exit $ac_status); }; }; then
16855 ac_cv_lib_gen_getmntent=yes
16857 echo "$as_me: failed program was:" >&5
16858 sed 's/^/| /' conftest.$ac_ext >&5
16860 ac_cv_lib_gen_getmntent=no
16862 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16863 LIBS=$ac_check_lib_save_LIBS
16865 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16866 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16867 if test $ac_cv_lib_gen_getmntent = yes; then
16876 for ac_func in getmntent
16878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16879 echo "$as_me:$LINENO: checking for $ac_func" >&5
16880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16881 if eval "test \"\${$as_ac_var+set}\" = set"; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16884 cat >conftest.$ac_ext <<_ACEOF
16885 #line $LINENO "configure"
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h. */
16891 /* System header to define __stub macros and hopefully few prototypes,
16892 which can conflict with char $ac_func (); below.
16893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16894 <limits.h> exists even on freestanding compilers. */
16896 # include <limits.h>
16898 # include <assert.h>
16900 /* Override any gcc2 internal prototype to avoid an error. */
16905 /* We use char because int might match the return type of a gcc2
16906 builtin and then its argument prototype would still apply. */
16908 /* The GNU C library defines this for functions which it implements
16909 to always fail with ENOSYS. Some functions are actually named
16910 something starting with __ and the normal name is an alias. */
16911 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16914 char (*f) () = $ac_func;
16923 return f != $ac_func;
16928 rm -f conftest.$ac_objext conftest$ac_exeext
16929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16930 (eval $ac_link) 2>&5
16932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16933 (exit $ac_status); } &&
16934 { ac_try='test -s conftest$ac_exeext'
16935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16936 (eval $ac_try) 2>&5
16938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16939 (exit $ac_status); }; }; then
16940 eval "$as_ac_var=yes"
16942 echo "$as_me: failed program was:" >&5
16943 sed 's/^/| /' conftest.$ac_ext >&5
16945 eval "$as_ac_var=no"
16947 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16950 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16951 if test `eval echo '${'$as_ac_var'}'` = yes; then
16952 cat >>confdefs.h <<_ACEOF
16953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16960 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16961 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16962 if test "${ac_cv_func_closedir_void+set}" = set; then
16963 echo $ECHO_N "(cached) $ECHO_C" >&6
16965 if test "$cross_compiling" = yes; then
16966 ac_cv_func_closedir_void=yes
16968 cat >conftest.$ac_ext <<_ACEOF
16969 #line $LINENO "configure"
16972 cat confdefs.h >>conftest.$ac_ext
16973 cat >>conftest.$ac_ext <<_ACEOF
16974 /* end confdefs.h. */
16975 $ac_includes_default
16976 #include <$ac_header_dirent>
16977 #ifndef __cplusplus
16984 exit (closedir (opendir (".")) != 0);
16989 rm -f conftest$ac_exeext
16990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16991 (eval $ac_link) 2>&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16996 (eval $ac_try) 2>&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 (exit $ac_status); }; }; then
17000 ac_cv_func_closedir_void=no
17002 echo "$as_me: program exited with status $ac_status" >&5
17003 echo "$as_me: failed program was:" >&5
17004 sed 's/^/| /' conftest.$ac_ext >&5
17006 ( exit $ac_status )
17007 ac_cv_func_closedir_void=yes
17009 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17012 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
17013 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
17014 if test $ac_cv_func_closedir_void = yes; then
17016 cat >>confdefs.h <<\_ACEOF
17017 #define CLOSEDIR_VOID 1
17022 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
17023 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
17024 if test "${ac_cv_func_setpgrp_void+set}" = set; then
17025 echo $ECHO_N "(cached) $ECHO_C" >&6
17027 if test "$cross_compiling" = yes; then
17028 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
17029 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
17030 { (exit 1); exit 1; }; }
17032 cat >conftest.$ac_ext <<_ACEOF
17033 #line $LINENO "configure"
17036 cat confdefs.h >>conftest.$ac_ext
17037 cat >>conftest.$ac_ext <<_ACEOF
17038 /* end confdefs.h. */
17040 # include <unistd.h>
17046 /* If this system has a BSD-style setpgrp which takes arguments,
17047 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
17048 exit successfully. */
17049 exit (setpgrp (1,1) == -1 ? 0 : 1);
17054 rm -f conftest$ac_exeext
17055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17056 (eval $ac_link) 2>&5
17058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061 (eval $ac_try) 2>&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; }; then
17065 ac_cv_func_setpgrp_void=no
17067 echo "$as_me: program exited with status $ac_status" >&5
17068 echo "$as_me: failed program was:" >&5
17069 sed 's/^/| /' conftest.$ac_ext >&5
17071 ( exit $ac_status )
17072 ac_cv_func_setpgrp_void=yes
17074 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17077 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
17078 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
17079 if test $ac_cv_func_setpgrp_void = yes; then
17081 cat >>confdefs.h <<\_ACEOF
17082 #define SETPGRP_VOID 1
17086 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
17087 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
17088 if test "${ac_cv_func_fnmatch_works+set}" = set; then
17089 echo $ECHO_N "(cached) $ECHO_C" >&6
17091 # Some versions of Solaris, SCO, and the GNU C Library
17092 # have a broken or incompatible fnmatch.
17093 # So we run a test program. If we are cross-compiling, take no chance.
17094 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
17095 if test "$cross_compiling" = yes; then
17096 ac_cv_func_fnmatch_works=cross
17098 cat >conftest.$ac_ext <<_ACEOF
17099 #line $LINENO "configure"
17102 cat confdefs.h >>conftest.$ac_ext
17103 cat >>conftest.$ac_ext <<_ACEOF
17104 /* end confdefs.h. */
17105 #include <fnmatch.h>
17106 # define y(a, b, c) (fnmatch (a, b, c) == 0)
17107 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
17113 (!(y ("a*", "abc", 0)
17114 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
17115 && y ("a\\\\bc", "abc", 0)
17116 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
17117 && y ("*x", ".x", 0)
17118 && n ("*x", ".x", FNM_PERIOD)
17124 rm -f conftest$ac_exeext
17125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17126 (eval $ac_link) 2>&5
17128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; }; then
17135 ac_cv_func_fnmatch_works=yes
17137 echo "$as_me: program exited with status $ac_status" >&5
17138 echo "$as_me: failed program was:" >&5
17139 sed 's/^/| /' conftest.$ac_ext >&5
17141 ( exit $ac_status )
17142 ac_cv_func_fnmatch_works=no
17144 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17147 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17148 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17149 if test $ac_cv_func_fnmatch_works = yes; then
17151 cat >>confdefs.h <<\_ACEOF
17152 #define HAVE_FNMATCH 1
17161 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17162 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17163 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17164 echo $ECHO_N "(cached) $ECHO_C" >&6
17166 ac_check_lib_save_LIBS=$LIBS
17167 LIBS="-lxpg4 $LIBS"
17168 cat >conftest.$ac_ext <<_ACEOF
17169 #line $LINENO "configure"
17172 cat confdefs.h >>conftest.$ac_ext
17173 cat >>conftest.$ac_ext <<_ACEOF
17174 /* end confdefs.h. */
17176 /* Override any gcc2 internal prototype to avoid an error. */
17180 /* We use char because int might match the return type of a gcc2
17181 builtin and then its argument prototype would still apply. */
17191 rm -f conftest.$ac_objext conftest$ac_exeext
17192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17193 (eval $ac_link) 2>&5
17195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } &&
17197 { ac_try='test -s conftest$ac_exeext'
17198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17199 (eval $ac_try) 2>&5
17201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17202 (exit $ac_status); }; }; then
17203 ac_cv_lib_xpg4_setlocale=yes
17205 echo "$as_me: failed program was:" >&5
17206 sed 's/^/| /' conftest.$ac_ext >&5
17208 ac_cv_lib_xpg4_setlocale=no
17210 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17211 LIBS=$ac_check_lib_save_LIBS
17213 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17214 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17215 if test $ac_cv_lib_xpg4_setlocale = yes; then
17216 LIBS="$LIBS -lxpg4"
17222 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17223 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17224 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17225 echo $ECHO_N "(cached) $ECHO_C" >&6
17227 ac_check_lib_save_LIBS=$LIBS
17229 cat >conftest.$ac_ext <<_ACEOF
17230 #line $LINENO "configure"
17233 cat confdefs.h >>conftest.$ac_ext
17234 cat >>conftest.$ac_ext <<_ACEOF
17235 /* end confdefs.h. */
17237 /* Override any gcc2 internal prototype to avoid an error. */
17241 /* We use char because int might match the return type of a gcc2
17242 builtin and then its argument prototype would still apply. */
17252 rm -f conftest.$ac_objext conftest$ac_exeext
17253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17254 (eval $ac_link) 2>&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); } &&
17258 { ac_try='test -s conftest$ac_exeext'
17259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17260 (eval $ac_try) 2>&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; }; then
17264 ac_cv_lib_sun_getpwnam=yes
17266 echo "$as_me: failed program was:" >&5
17267 sed 's/^/| /' conftest.$ac_ext >&5
17269 ac_cv_lib_sun_getpwnam=no
17271 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17272 LIBS=$ac_check_lib_save_LIBS
17274 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17275 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17276 if test $ac_cv_lib_sun_getpwnam = yes; then
17277 cat >>confdefs.h <<_ACEOF
17278 #define HAVE_LIBSUN 1
17287 for ac_header in zlib.h
17289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17290 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17291 echo "$as_me:$LINENO: checking for $ac_header" >&5
17292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17293 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17296 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17297 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17299 # Is the header compilable?
17300 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17302 cat >conftest.$ac_ext <<_ACEOF
17303 #line $LINENO "configure"
17306 cat confdefs.h >>conftest.$ac_ext
17307 cat >>conftest.$ac_ext <<_ACEOF
17308 /* end confdefs.h. */
17309 $ac_includes_default
17310 #include <$ac_header>
17312 rm -f conftest.$ac_objext
17313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17314 (eval $ac_compile) 2>&5
17316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17317 (exit $ac_status); } &&
17318 { ac_try='test -s conftest.$ac_objext'
17319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17320 (eval $ac_try) 2>&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); }; }; then
17324 ac_header_compiler=yes
17326 echo "$as_me: failed program was:" >&5
17327 sed 's/^/| /' conftest.$ac_ext >&5
17329 ac_header_compiler=no
17331 rm -f conftest.$ac_objext conftest.$ac_ext
17332 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17333 echo "${ECHO_T}$ac_header_compiler" >&6
17335 # Is the header present?
17336 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17337 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17338 cat >conftest.$ac_ext <<_ACEOF
17339 #line $LINENO "configure"
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h. */
17345 #include <$ac_header>
17347 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17348 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17350 grep -v '^ *+' conftest.er1 >conftest.err
17352 cat conftest.err >&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); } >/dev/null; then
17355 if test -s conftest.err; then
17356 ac_cpp_err=$ac_c_preproc_warn_flag
17363 if test -z "$ac_cpp_err"; then
17364 ac_header_preproc=yes
17366 echo "$as_me: failed program was:" >&5
17367 sed 's/^/| /' conftest.$ac_ext >&5
17369 ac_header_preproc=no
17371 rm -f conftest.err conftest.$ac_ext
17372 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17373 echo "${ECHO_T}$ac_header_preproc" >&6
17375 # So? What about this header?
17376 case $ac_header_compiler:$ac_header_preproc in
17378 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17379 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17380 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17384 ## ------------------------------------ ##
17385 ## Report this to bug-autoconf@gnu.org. ##
17386 ## ------------------------------------ ##
17389 sed "s/^/$as_me: WARNING: /" >&2
17392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17397 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17400 ## ------------------------------------ ##
17401 ## Report this to bug-autoconf@gnu.org. ##
17402 ## ------------------------------------ ##
17405 sed "s/^/$as_me: WARNING: /" >&2
17408 echo "$as_me:$LINENO: checking for $ac_header" >&5
17409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17410 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17411 echo $ECHO_N "(cached) $ECHO_C" >&6
17413 eval "$as_ac_Header=$ac_header_preproc"
17415 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17416 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17420 cat >>confdefs.h <<_ACEOF
17421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17428 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17429 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17430 if test "${ac_cv_lib_z_deflate+set}" = set; then
17431 echo $ECHO_N "(cached) $ECHO_C" >&6
17433 ac_check_lib_save_LIBS=$LIBS
17435 cat >conftest.$ac_ext <<_ACEOF
17436 #line $LINENO "configure"
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h. */
17443 /* Override any gcc2 internal prototype to avoid an error. */
17447 /* We use char because int might match the return type of a gcc2
17448 builtin and then its argument prototype would still apply. */
17458 rm -f conftest.$ac_objext conftest$ac_exeext
17459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17460 (eval $ac_link) 2>&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); } &&
17464 { ac_try='test -s conftest$ac_exeext'
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; }; then
17470 ac_cv_lib_z_deflate=yes
17472 echo "$as_me: failed program was:" >&5
17473 sed 's/^/| /' conftest.$ac_ext >&5
17475 ac_cv_lib_z_deflate=no
17477 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17478 LIBS=$ac_check_lib_save_LIBS
17480 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17481 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17482 if test $ac_cv_lib_z_deflate = yes; then
17487 if test x$FDLIBS = x-lz; then
17488 cat >>confdefs.h <<\_ACEOF
17489 #define HAVE_LIBZ 1
17496 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17497 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17498 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17499 echo $ECHO_N "(cached) $ECHO_C" >&6
17501 ac_check_lib_save_LIBS=$LIBS
17502 LIBS="-lpthread $LIBS"
17503 cat >conftest.$ac_ext <<_ACEOF
17504 #line $LINENO "configure"
17507 cat confdefs.h >>conftest.$ac_ext
17508 cat >>conftest.$ac_ext <<_ACEOF
17509 /* end confdefs.h. */
17511 /* Override any gcc2 internal prototype to avoid an error. */
17515 /* We use char because int might match the return type of a gcc2
17516 builtin and then its argument prototype would still apply. */
17517 char pthread_create ();
17526 rm -f conftest.$ac_objext conftest$ac_exeext
17527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17528 (eval $ac_link) 2>&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } &&
17532 { ac_try='test -s conftest$ac_exeext'
17533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17534 (eval $ac_try) 2>&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); }; }; then
17538 ac_cv_lib_pthread_pthread_create=yes
17540 echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17543 ac_cv_lib_pthread_pthread_create=no
17545 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17546 LIBS=$ac_check_lib_save_LIBS
17548 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17549 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17550 if test $ac_cv_lib_pthread_pthread_create = yes; then
17551 PTHREAD_LIB="-lpthread"
17553 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17554 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17555 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17556 echo $ECHO_N "(cached) $ECHO_C" >&6
17558 ac_check_lib_save_LIBS=$LIBS
17559 LIBS="-lpthreads $LIBS"
17560 cat >conftest.$ac_ext <<_ACEOF
17561 #line $LINENO "configure"
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h. */
17568 /* Override any gcc2 internal prototype to avoid an error. */
17572 /* We use char because int might match the return type of a gcc2
17573 builtin and then its argument prototype would still apply. */
17574 char pthread_create ();
17583 rm -f conftest.$ac_objext conftest$ac_exeext
17584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17585 (eval $ac_link) 2>&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); } &&
17589 { ac_try='test -s conftest$ac_exeext'
17590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17591 (eval $ac_try) 2>&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); }; }; then
17595 ac_cv_lib_pthreads_pthread_create=yes
17597 echo "$as_me: failed program was:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17600 ac_cv_lib_pthreads_pthread_create=no
17602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17603 LIBS=$ac_check_lib_save_LIBS
17605 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17606 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17607 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17608 PTHREAD_LIB="-lpthreads"
17610 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17611 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17612 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17613 echo $ECHO_N "(cached) $ECHO_C" >&6
17615 ac_check_lib_save_LIBS=$LIBS
17617 cat >conftest.$ac_ext <<_ACEOF
17618 #line $LINENO "configure"
17621 cat confdefs.h >>conftest.$ac_ext
17622 cat >>conftest.$ac_ext <<_ACEOF
17623 /* end confdefs.h. */
17625 /* Override any gcc2 internal prototype to avoid an error. */
17629 /* We use char because int might match the return type of a gcc2
17630 builtin and then its argument prototype would still apply. */
17631 char pthread_create ();
17640 rm -f conftest.$ac_objext conftest$ac_exeext
17641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17642 (eval $ac_link) 2>&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try='test -s conftest$ac_exeext'
17647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17648 (eval $ac_try) 2>&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); }; }; then
17652 ac_cv_lib_c_r_pthread_create=yes
17654 echo "$as_me: failed program was:" >&5
17655 sed 's/^/| /' conftest.$ac_ext >&5
17657 ac_cv_lib_c_r_pthread_create=no
17659 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17660 LIBS=$ac_check_lib_save_LIBS
17662 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17663 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17664 if test $ac_cv_lib_c_r_pthread_create = yes; then
17665 PTHREAD_LIB="-lc_r"
17667 echo "$as_me:$LINENO: checking for pthread_create" >&5
17668 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17669 if test "${ac_cv_func_pthread_create+set}" = set; then
17670 echo $ECHO_N "(cached) $ECHO_C" >&6
17672 cat >conftest.$ac_ext <<_ACEOF
17673 #line $LINENO "configure"
17676 cat confdefs.h >>conftest.$ac_ext
17677 cat >>conftest.$ac_ext <<_ACEOF
17678 /* end confdefs.h. */
17679 /* System header to define __stub macros and hopefully few prototypes,
17680 which can conflict with char pthread_create (); below.
17681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17682 <limits.h> exists even on freestanding compilers. */
17684 # include <limits.h>
17686 # include <assert.h>
17688 /* Override any gcc2 internal prototype to avoid an error. */
17693 /* We use char because int might match the return type of a gcc2
17694 builtin and then its argument prototype would still apply. */
17695 char pthread_create ();
17696 /* The GNU C library defines this for functions which it implements
17697 to always fail with ENOSYS. Some functions are actually named
17698 something starting with __ and the normal name is an alias. */
17699 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17702 char (*f) () = pthread_create;
17711 return f != pthread_create;
17716 rm -f conftest.$ac_objext conftest$ac_exeext
17717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17718 (eval $ac_link) 2>&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); } &&
17722 { ac_try='test -s conftest$ac_exeext'
17723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17724 (eval $ac_try) 2>&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); }; }; then
17728 ac_cv_func_pthread_create=yes
17730 echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17733 ac_cv_func_pthread_create=no
17735 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17737 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17738 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17751 cat >>confdefs.h <<\_ACEOF
17757 CFLAGS=${CFLAGS--O}
17758 LDFLAGS=${LDFLAGS--O}
17759 DB_LIBS="${SQL_LFLAGS}"
17761 CPPFLAGS="$CPPFLAGS"
17786 # Finally we set appropriate distribution specific
17787 # variables and defaults
17789 # PFILES are platform specific files
17790 PFILES="platforms/Makefile"
17793 hostname=`uname -n | cut -d '.' -f 1`
17794 case "$DISTNAME" in
17797 PSCMD="ps -e -o pid,comm"
17798 PFILES="${PFILES} \
17799 platforms/aix/Makefile"
17800 TAPEDRIVE="/dev/rmt0.1"
17804 PTHREAD_LIB="-lpthread -lexc"
17805 if test "${CC}" = "gcc" ; then
17812 TAPEDRIVE="/dev/nrmt0"
17815 DISTVER=`uname -a |awk '{print $3}'`
17816 TAPEDRIVE="/dev/nrmt0"
17817 PTHREAD_LIB="-pthread"
17818 CFLAGS="${CFLAGS} -pthread"
17819 PSCMD="ps -x -o pid,command"
17822 PFILES="${PFILES} \
17823 platforms/bsdi/Makefile \
17824 platforms/bsdi/bacula-fd \
17825 platforms/bsdi/bacula-sd \
17826 platforms/bsdi/bacula-dir"
17827 largefile_support="yes"
17830 DISTVER=`uname -a |awk '{print $3}'`
17831 TAPEDRIVE="/dev/nrst0"
17833 WCFLAGS="-mwindows"
17834 WLDFLAGS="-mwindows"
17838 TAPEDRIVE="/dev/nst0"
17839 PSCMD="ps -e -o pid,command"
17840 PFILES="${PFILES} \
17841 platforms/darwin/Makefile"
17844 DISTVER=`cat /etc/debian_version`
17845 TAPEDRIVE="/dev/nrst0"
17846 PSCMD="ps -e -o pid,command"
17849 DISTVER=`uname -a |awk '{print $3}'`
17850 VER=`echo $DISTVER | cut -c 1`
17851 if test x$VER = x4 ; then
17852 PTHREAD_LIB="-pthread"
17853 CFLAGS="${CFLAGS} -pthread"
17857 TAPEDRIVE="/dev/nrsa0"
17858 PSCMD="ps -x -o pid,command"
17859 PFILES="${PFILES} \
17860 platforms/freebsd/Makefile \
17861 platforms/freebsd/bacula-fd \
17862 platforms/freebsd/bacula-sd \
17863 platforms/freebsd/bacula-dir"
17864 largefile_support="yes"
17867 PSCMD="UNIX95=1 ps -e -o pid,comm"
17868 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
17870 TAPEDRIVE="/dev/rmt/0hnb"
17874 TAPEDRIVE="/dev/rmt/0cbn"
17875 PSCMD="ps -e -o pid,comm"
17876 PFILES="${PFILES} \
17877 platforms/irix/Makefile \
17878 platforms/irix/bacula-fd \
17879 platforms/irix/bacula-sd \
17880 platforms/irix/bacula-dir"
17883 DISTVER=`uname -a |awk '{print $3}'`
17886 TAPEDRIVE="/dev/nrst0"
17887 PSCMD="ps -a -o pid,command"
17888 PTHREAD_LIB="-pthread"
17889 CFLAGS="${CFLAGS} -pthread"
17892 DISTVER=`uname -a |awk '{print $3}'`
17895 TAPEDRIVE="/dev/nrst0"
17896 PSCMD="ps -a -o pid,command"
17897 PTHREAD_LIB="-pthread"
17898 CFLAGS="${CFLAGS} -pthread"
17899 PFILES="${PFILES} \
17900 platforms/openbsd/Makefile \
17901 platforms/openbsd/bacula-fd \
17902 platforms/openbsd/bacula-sd \
17903 platforms/openbsd/bacula-dir"
17906 if test `cat /etc/redhat-release | grep release |\
17907 cut -f 3 -d ' '`x = "Enterprise"x ; then
17908 DISTVER="Enterprise "`cat /etc/redhat-release | grep release |\
17911 DISTVER=`cat /etc/redhat-release | grep release |\
17914 TAPEDRIVE="/dev/nst0"
17915 PSCMD="ps -e -o pid,command"
17916 PFILES="${PFILES} \
17917 platforms/redhat/Makefile \
17918 platforms/redhat/bacula-fd \
17919 platforms/redhat/bacula-sd \
17920 platforms/redhat/bacula-dir \
17921 platforms/redhat/bacula.spec \
17923 hostname=`hostname -s`
17926 DISTVER=`cat /etc/mandrake-release | grep release |\
17928 TAPEDRIVE="/dev/nst0"
17929 PSCMD="ps -e -o pid,command"
17930 PFILES="${PFILES} \
17931 platforms/mandrake/Makefile \
17932 platforms/mandrake/bacula-fd \
17933 platforms/mandrake/bacula-sd \
17934 platforms/mandrake/bacula-dir \
17935 platforms/mandrake/bacula.spec \
17939 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17940 TAPEDRIVE="/dev/nst0"
17941 PSCMD="ps -e -o pid,command"
17942 PFILES="${PFILES} \
17943 platforms/gentoo/Makefile \
17944 platforms/gentoo/bacula-fd \
17945 platforms/gentoo/bacula-sd \
17946 platforms/gentoo/bacula-dir"
17949 DISTVER=`cat /etc/slackware-version`
17950 TAPEDRIVE="/dev/nst0"
17951 PSCMD="ps -e -o pid,command"
17952 PFILES="${PFILES} \
17953 platforms/slackware/Makefile \
17954 platforms/slackware/rc.bacula-fd \
17955 platforms/slackware/rc.bacula-sd \
17956 platforms/slackware/rc.bacula-dir\
17957 platforms/slackware/functions.bacula"
17961 TAPEDRIVE="/dev/rmt/0cbn"
17962 PSCMD="ps -e -o pid,comm"
17963 PFILES="${PFILES} \
17964 platforms/solaris/Makefile \
17965 platforms/solaris/bacula-fd \
17966 platforms/solaris/bacula-sd \
17967 platforms/solaris/bacula-dir"
17968 if test x$DISTVER = x5.6 ; then
17969 cat >>confdefs.h <<\_ACEOF
17970 #define HAVE_OLD_SOCKOPT 1
17976 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17978 TAPEDRIVE="/dev/nst0"
17979 PSCMD="ps -e -o pid,command"
17980 PFILES="${PFILES} \
17981 platforms/suse/Makefile \
17982 platforms/suse/bacula-fd \
17983 platforms/suse/bacula-sd \
17984 platforms/suse/bacula-dir \
17985 platforms/suse/bacula \
17986 platforms/suse/bacula.spec"
17991 TAPEDRIVE="/dev/nst0"
17992 PSCMD="ps -e -o pid,command"
17993 PFILES="${PFILES} \
17994 platforms/suse/Makefile \
17995 platforms/suse/bacula-fd \
17996 platforms/suse/bacula-sd \
17997 platforms/suse/bacula-dir"
18001 TAPEDRIVE="/dev/nst0"
18004 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
18010 LIBS="$PTHREAD_LIB $LIBS"
18012 cat >>confdefs.h <<_ACEOF
18016 cat >>confdefs.h <<_ACEOF
18026 MCOMMON=./autoconf/Make.common
18029 if test "x${subsysdir}" = "x${sbindir}" ; then
18032 echo "You have set both --sbindir and --with-subsys-dir"
18033 echo " equal to: ${subsysdir} "
18034 echo "This is not permitted. Please reconfigure."
18036 echo "Aborting configuration ..."
18042 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"
18043 ac_config_commands="$ac_config_commands default"
18044 cat >confcache <<\_ACEOF
18045 # This file is a shell script that caches the results of configure
18046 # tests run on this system so they can be shared between configure
18047 # scripts and configure runs, see configure's option --config-cache.
18048 # It is not useful on other systems. If it contains results you don't
18049 # want to keep, you may remove or edit it.
18051 # config.status only pays attention to the cache file if you give it
18052 # the --recheck option to rerun configure.
18054 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18055 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18056 # following values.
18060 # The following way of writing the cache mishandles newlines in values,
18061 # but we know of no workaround that is simple, portable, and efficient.
18062 # So, don't put newlines in cache variables' values.
18063 # Ultrix sh set writes to stderr and can't be redirected directly,
18064 # and sets the high bit in the cache file unless we assign to the vars.
18067 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18069 # `set' does not quote correctly, so add quotes (double-quote
18070 # substitution turns \\\\ into \\, and sed turns \\ into \).
18073 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18076 # `set' quotes correctly as required by POSIX, so do not add quotes.
18078 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
18085 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18087 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18089 if diff $cache_file confcache >/dev/null 2>&1; then :; else
18090 if test -w $cache_file; then
18091 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
18092 cat confcache >$cache_file
18094 echo "not updating unwritable cache $cache_file"
18099 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18100 # Let make expand exec_prefix.
18101 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18103 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18104 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18105 # trailing colons and then remove the whole line if VPATH becomes empty
18106 # (actually we leave an empty line to preserve line numbers).
18107 if test "x$srcdir" = x.; then
18108 ac_vpsub='/^[ ]*VPATH[ ]*=/{
18109 s/:*\$(srcdir):*/:/;
18110 s/:*\${srcdir}:*/:/;
18112 s/^\([^=]*=[ ]*\):*/\1/;
18118 DEFS=-DHAVE_CONFIG_H
18122 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18123 # 1. Remove the extension, and $U if already installed.
18124 ac_i=`echo "$ac_i" |
18125 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
18127 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
18128 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
18130 LIBOBJS=$ac_libobjs
18132 LTLIBOBJS=$ac_ltlibobjs
18136 : ${CONFIG_STATUS=./config.status}
18137 ac_clean_files_save=$ac_clean_files
18138 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18139 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18140 echo "$as_me: creating $CONFIG_STATUS" >&6;}
18141 cat >$CONFIG_STATUS <<_ACEOF
18143 # Generated by $as_me.
18144 # Run this file to recreate the current configuration.
18145 # Compiler output produced by configure, useful for debugging
18146 # configure, is in config.log if it exists.
18149 ac_cs_recheck=false
18151 SHELL=\${CONFIG_SHELL-$SHELL}
18154 cat >>$CONFIG_STATUS <<\_ACEOF
18155 ## --------------------- ##
18156 ## M4sh Initialization. ##
18157 ## --------------------- ##
18159 # Be Bourne compatible
18160 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18163 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18164 # is contrary to our usage. Disable this feature.
18165 alias -g '${1+"$@"}'='"$@"'
18166 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18170 # Support unset when possible.
18171 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18178 # Work around bugs in pre-3.0 UWIN ksh.
18179 $as_unset ENV MAIL MAILPATH
18186 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18187 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18188 LC_TELEPHONE LC_TIME
18190 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18191 eval $as_var=C; export $as_var
18197 # Required to use basename.
18198 if expr a : '\(a\)' >/dev/null 2>&1; then
18204 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18205 as_basename=basename
18211 # Name of the executable.
18212 as_me=`$as_basename "$0" ||
18213 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18214 X"$0" : 'X\(//\)$' \| \
18215 X"$0" : 'X\(/\)$' \| \
18216 . : '\(.\)' 2>/dev/null ||
18218 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18219 /^X\/\(\/\/\)$/{ s//\1/; q; }
18220 /^X\/\(\/\).*/{ s//\1/; q; }
18224 # PATH needs CR, and LINENO needs CR and PATH.
18225 # Avoid depending upon Character Ranges.
18226 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18227 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18228 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18229 as_cr_digits='0123456789'
18230 as_cr_alnum=$as_cr_Letters$as_cr_digits
18232 # The user is always right.
18233 if test "${PATH_SEPARATOR+set}" != set; then
18234 echo "#! /bin/sh" >conf$$.sh
18235 echo "exit 0" >>conf$$.sh
18237 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18246 as_lineno_1=$LINENO
18247 as_lineno_2=$LINENO
18248 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18249 test "x$as_lineno_1" != "x$as_lineno_2" &&
18250 test "x$as_lineno_3" = "x$as_lineno_2" || {
18251 # Find who we are. Look in the path if we contain no path at all
18254 *[\\/]* ) as_myself=$0 ;;
18255 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18256 for as_dir in $PATH
18259 test -z "$as_dir" && as_dir=.
18260 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18265 # We did not find ourselves, most probably we were run as `sh COMMAND'
18266 # in which case we are not to be found in the path.
18267 if test "x$as_myself" = x; then
18270 if test ! -f "$as_myself"; then
18271 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18272 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18273 { (exit 1); exit 1; }; }
18275 case $CONFIG_SHELL in
18277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18278 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18281 test -z "$as_dir" && as_dir=.
18282 for as_base in sh bash ksh sh5; do
18285 if ("$as_dir/$as_base" -c '
18286 as_lineno_1=$LINENO
18287 as_lineno_2=$LINENO
18288 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18289 test "x$as_lineno_1" != "x$as_lineno_2" &&
18290 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18291 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18292 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18293 CONFIG_SHELL=$as_dir/$as_base
18294 export CONFIG_SHELL
18295 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18303 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18304 # uniformly replaced by the line number. The first 'sed' inserts a
18305 # line-number line before each line; the second 'sed' does the real
18306 # work. The second script uses 'N' to pair each line-number line
18307 # with the numbered line, and appends trailing '-' during
18308 # substitution so that $LINENO is not a special case at line end.
18309 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18310 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18311 sed '=' <$as_myself |
18316 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18319 s,^['$as_cr_digits']*\n,,
18320 ' >$as_me.lineno &&
18321 chmod +x $as_me.lineno ||
18322 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18323 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18324 { (exit 1); exit 1; }; }
18326 # Don't try to exec as it changes $[0], causing all sort of problems
18327 # (the dirname of $[0] is not the place where we might find the
18328 # original and so on. Autoconf is especially sensible to this).
18330 # Exit status is that of the last command.
18335 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18336 *c*,-n*) ECHO_N= ECHO_C='
18338 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18339 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18342 if expr a : '\(a\)' >/dev/null 2>&1; then
18348 rm -f conf$$ conf$$.exe conf$$.file
18350 if ln -s conf$$.file conf$$ 2>/dev/null; then
18351 # We could just check for DJGPP; but this test a) works b) is more generic
18352 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18353 if test -f conf$$.exe; then
18354 # Don't use ln at all; we don't have any links
18359 elif ln conf$$.file conf$$ 2>/dev/null; then
18364 rm -f conf$$ conf$$.exe conf$$.file
18366 if mkdir -p . 2>/dev/null; then
18372 as_executable_p="test -f"
18374 # Sed expression to map a string onto a valid CPP name.
18375 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18377 # Sed expression to map a string onto a valid variable name.
18378 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18382 # We need space, tab and new line, in precisely that order.
18392 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18393 # report actual input values of CONFIG_FILES etc. instead of their
18394 # values after options handling. Logging --version etc. is OK.
18398 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18399 ## Running $as_me. ##
18404 This file was extended by $as_me, which was
18405 generated by GNU Autoconf 2.57. Invocation command line was
18407 CONFIG_FILES = $CONFIG_FILES
18408 CONFIG_HEADERS = $CONFIG_HEADERS
18409 CONFIG_LINKS = $CONFIG_LINKS
18410 CONFIG_COMMANDS = $CONFIG_COMMANDS
18414 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18418 # Files that config.status was made for.
18419 if test -n "$ac_config_files"; then
18420 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18423 if test -n "$ac_config_headers"; then
18424 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18427 if test -n "$ac_config_links"; then
18428 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18431 if test -n "$ac_config_commands"; then
18432 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18435 cat >>$CONFIG_STATUS <<\_ACEOF
18438 \`$as_me' instantiates files from templates according to the
18439 current configuration.
18441 Usage: $0 [OPTIONS] [FILE]...
18443 -h, --help print this help, then exit
18444 -V, --version print version number, then exit
18445 -q, --quiet do not print progress messages
18446 -d, --debug don't remove temporary files
18447 --recheck update $as_me by reconfiguring in the same conditions
18448 --file=FILE[:TEMPLATE]
18449 instantiate the configuration file FILE
18450 --header=FILE[:TEMPLATE]
18451 instantiate the configuration header FILE
18453 Configuration files:
18456 Configuration headers:
18459 Configuration commands:
18462 Report bugs to <bug-autoconf@gnu.org>."
18465 cat >>$CONFIG_STATUS <<_ACEOF
18468 configured by $0, generated by GNU Autoconf 2.57,
18469 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18471 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18472 Free Software Foundation, Inc.
18473 This config.status script is free software; the Free Software Foundation
18474 gives unlimited permission to copy, distribute and modify it."
18479 cat >>$CONFIG_STATUS <<\_ACEOF
18480 # If no file are specified by the user, then we need to provide default
18481 # value. By we need to know if files were specified by the user.
18487 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18488 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18496 *) # This is not an option, so the user has probably given explicit
18499 ac_need_defaults=false;;
18503 # Handling of the options.
18505 cat >>$CONFIG_STATUS <<\_ACEOF
18506 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18508 --version | --vers* | -V )
18509 echo "$ac_cs_version"; exit 0 ;;
18511 # Conflict between --help and --header
18512 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18513 Try \`$0 --help' for more information." >&5
18514 echo "$as_me: error: ambiguous option: $1
18515 Try \`$0 --help' for more information." >&2;}
18516 { (exit 1); exit 1; }; };;
18517 --help | --hel | -h )
18518 echo "$ac_cs_usage"; exit 0 ;;
18519 --debug | --d* | -d )
18521 --file | --fil | --fi | --f )
18523 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18524 ac_need_defaults=false;;
18525 --header | --heade | --head | --hea )
18527 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18528 ac_need_defaults=false;;
18529 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18530 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18533 # This is an error.
18534 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18535 Try \`$0 --help' for more information." >&5
18536 echo "$as_me: error: unrecognized option: $1
18537 Try \`$0 --help' for more information." >&2;}
18538 { (exit 1); exit 1; }; } ;;
18540 *) ac_config_targets="$ac_config_targets $1" ;;
18546 ac_configure_extra_args=
18548 if $ac_cs_silent; then
18550 ac_configure_extra_args="$ac_configure_extra_args --silent"
18554 cat >>$CONFIG_STATUS <<_ACEOF
18555 if \$ac_cs_recheck; then
18556 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18557 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18566 cat >>$CONFIG_STATUS <<\_ACEOF
18567 for ac_config_target in $ac_config_targets
18569 case "$ac_config_target" in
18570 # Handling of arguments.
18571 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18572 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18573 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18574 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18575 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18576 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18577 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18578 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18579 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18580 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18581 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18582 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18583 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18584 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18585 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
18586 "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18587 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18588 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18589 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18590 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18591 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18592 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18593 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18594 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18595 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18596 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18597 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18598 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18599 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18600 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18601 "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18602 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18603 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18604 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18605 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18606 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18607 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18608 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18609 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18610 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18611 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18612 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18613 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18614 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
18615 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18616 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18617 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18618 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
18619 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18620 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18621 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18622 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18623 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18624 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
18625 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18626 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18627 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18628 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18629 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18630 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
18631 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18632 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18633 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18634 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
18635 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18636 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
18637 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18638 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
18639 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
18640 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18641 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
18642 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18643 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18644 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
18645 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18646 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18647 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18648 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18649 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18650 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18651 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18652 { (exit 1); exit 1; }; };;
18656 # If the user did not use the arguments to specify the items to instantiate,
18657 # then the envvar interface is used. Set only those that are not.
18658 # We use the long form for the default assignment because of an extremely
18659 # bizarre bug on SunOS 4.1.3.
18660 if $ac_need_defaults; then
18661 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18662 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18663 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18666 # Have a temporary directory for convenience. Make it in the build tree
18667 # simply because there is no reason to put it here, and in addition,
18668 # creating and moving files from /tmp can sometimes cause problems.
18669 # Create a temporary directory, and hook for its removal unless debugging.
18672 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18673 trap '{ (exit 1); exit 1; }' 1 2 13 15
18676 # Create a (secure) tmp directory for tmp files.
18679 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18680 test -n "$tmp" && test -d "$tmp"
18683 tmp=./confstat$$-$RANDOM
18684 (umask 077 && mkdir $tmp)
18687 echo "$me: cannot create a temporary directory in ." >&2
18688 { (exit 1); exit 1; }
18693 cat >>$CONFIG_STATUS <<_ACEOF
18696 # CONFIG_FILES section.
18699 # No need to generate the scripts if there are no CONFIG_FILES.
18700 # This happens for instance when ./config.status config.h
18701 if test -n "\$CONFIG_FILES"; then
18702 # Protect against being on the right side of a sed subst in config.status.
18703 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18704 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18705 s,@SHELL@,$SHELL,;t t
18706 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18707 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18708 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18709 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18710 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18711 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18712 s,@exec_prefix@,$exec_prefix,;t t
18713 s,@prefix@,$prefix,;t t
18714 s,@program_transform_name@,$program_transform_name,;t t
18715 s,@bindir@,$bindir,;t t
18716 s,@sbindir@,$sbindir,;t t
18717 s,@libexecdir@,$libexecdir,;t t
18718 s,@datadir@,$datadir,;t t
18719 s,@sysconfdir@,$sysconfdir,;t t
18720 s,@sharedstatedir@,$sharedstatedir,;t t
18721 s,@localstatedir@,$localstatedir,;t t
18722 s,@libdir@,$libdir,;t t
18723 s,@includedir@,$includedir,;t t
18724 s,@oldincludedir@,$oldincludedir,;t t
18725 s,@infodir@,$infodir,;t t
18726 s,@mandir@,$mandir,;t t
18727 s,@build_alias@,$build_alias,;t t
18728 s,@host_alias@,$host_alias,;t t
18729 s,@target_alias@,$target_alias,;t t
18730 s,@DEFS@,$DEFS,;t t
18731 s,@ECHO_C@,$ECHO_C,;t t
18732 s,@ECHO_N@,$ECHO_N,;t t
18733 s,@ECHO_T@,$ECHO_T,;t t
18734 s,@LIBS@,$LIBS,;t t
18735 s,@BUILD_DIR@,$BUILD_DIR,;t t
18736 s,@TRUEPRG@,$TRUEPRG,;t t
18737 s,@FALSEPRG@,$FALSEPRG,;t t
18738 s,@build@,$build,;t t
18739 s,@build_cpu@,$build_cpu,;t t
18740 s,@build_vendor@,$build_vendor,;t t
18741 s,@build_os@,$build_os,;t t
18742 s,@host@,$host,;t t
18743 s,@host_cpu@,$host_cpu,;t t
18744 s,@host_vendor@,$host_vendor,;t t
18745 s,@host_os@,$host_os,;t t
18746 s,@VERSION@,$VERSION,;t t
18747 s,@DATE@,$DATE,;t t
18748 s,@LSMDATE@,$LSMDATE,;t t
18750 s,@CFLAGS@,$CFLAGS,;t t
18751 s,@LDFLAGS@,$LDFLAGS,;t t
18752 s,@CPPFLAGS@,$CPPFLAGS,;t t
18753 s,@ac_ct_CC@,$ac_ct_CC,;t t
18754 s,@EXEEXT@,$EXEEXT,;t t
18755 s,@OBJEXT@,$OBJEXT,;t t
18757 s,@CXXFLAGS@,$CXXFLAGS,;t t
18758 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18760 s,@EGREP@,$EGREP,;t t
18761 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18762 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18763 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18764 s,@RANLIB@,$RANLIB,;t t
18765 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18771 s,@ECHO@,$ECHO,;t t
18775 s,@OPENSSL@,$OPENSSL,;t t
18777 s,@PKGCONFIG@,$PKGCONFIG,;t t
18778 s,@ARFLAGS@,$ARFLAGS,;t t
18779 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18780 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18781 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18782 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18783 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18784 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18785 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18786 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18787 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18788 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18789 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18790 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18791 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18792 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18793 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18794 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18795 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18796 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18797 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18798 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18799 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18800 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18801 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18802 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18803 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18804 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18805 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18806 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18807 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18808 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18809 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18810 s,@MSGFMT@,$MSGFMT,;t t
18811 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18812 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18813 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18814 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18815 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18816 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18817 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18818 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18819 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18820 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18821 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18822 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18823 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18824 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18825 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18826 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18827 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18828 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18829 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18830 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18831 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18832 s,@GNOME_DIR@,$GNOME_DIR,;t t
18833 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18834 s,@STATIC_FD@,$STATIC_FD,;t t
18835 s,@STATIC_SD@,$STATIC_SD,;t t
18836 s,@STATIC_DIR@,$STATIC_DIR,;t t
18837 s,@STATIC_CONS@,$STATIC_CONS,;t t
18838 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
18839 s,@ALL_DIRS@,$ALL_DIRS,;t t
18840 s,@CONS_INC@,$CONS_INC,;t t
18841 s,@CONS_OBJ@,$CONS_OBJ,;t t
18842 s,@CONS_SRC@,$CONS_SRC,;t t
18843 s,@CONS_LIBS@,$CONS_LIBS,;t t
18844 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18845 s,@READLINE_SRC@,$READLINE_SRC,;t t
18846 s,@working_dir@,$working_dir,;t t
18847 s,@scriptdir@,$scriptdir,;t t
18848 s,@dump_email@,$dump_email,;t t
18849 s,@job_email@,$job_email,;t t
18850 s,@smtp_host@,$smtp_host,;t t
18851 s,@piddir@,$piddir,;t t
18852 s,@subsysdir@,$subsysdir,;t t
18853 s,@baseport@,$baseport,;t t
18854 s,@dir_port@,$dir_port,;t t
18855 s,@fd_port@,$fd_port,;t t
18856 s,@sd_port@,$sd_port,;t t
18857 s,@dir_password@,$dir_password,;t t
18858 s,@fd_password@,$fd_password,;t t
18859 s,@sd_password@,$sd_password,;t t
18860 s,@dir_user@,$dir_user,;t t
18861 s,@dir_group@,$dir_group,;t t
18862 s,@sd_user@,$sd_user,;t t
18863 s,@sd_group@,$sd_group,;t t
18864 s,@fd_user@,$fd_user,;t t
18865 s,@fd_group@,$fd_group,;t t
18866 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18867 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18868 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18869 s,@cats@,$cats,;t t
18870 s,@DB_NAME@,$DB_NAME,;t t
18871 s,@GETCONF@,$GETCONF,;t t
18872 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18873 s,@X_CFLAGS@,$X_CFLAGS,;t t
18874 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18875 s,@X_LIBS@,$X_LIBS,;t t
18876 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18877 s,@LIBOBJS@,$LIBOBJS,;t t
18878 s,@ALLOCA@,$ALLOCA,;t t
18879 s,@FDLIBS@,$FDLIBS,;t t
18880 s,@DEBUG@,$DEBUG,;t t
18881 s,@DINCLUDE@,$DINCLUDE,;t t
18882 s,@DLIB@,$DLIB,;t t
18883 s,@DB_LIBS@,$DB_LIBS,;t t
18884 s,@WCFLAGS@,$WCFLAGS,;t t
18885 s,@WLDFLAGS@,$WLDFLAGS,;t t
18886 s,@OBJLIST@,$OBJLIST,;t t
18887 s,@hostname@,$hostname,;t t
18888 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18889 s,@PSCMD@,$PSCMD,;t t
18890 s,@WIN32@,$WIN32,;t t
18891 s,@DISTNAME@,$DISTNAME,;t t
18892 s,@DISTVER@,$DISTVER,;t t
18893 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18894 /@MCOMMON@/r $MCOMMON
18900 cat >>$CONFIG_STATUS <<\_ACEOF
18901 # Split the substitutions into bite-sized pieces for seds with
18902 # small command number limits, like on Digital OSF/1 and HP-UX.
18903 ac_max_sed_lines=48
18904 ac_sed_frag=1 # Number of current file.
18905 ac_beg=1 # First line for current file.
18906 ac_end=$ac_max_sed_lines # Line after last line for current file.
18909 while $ac_more_lines; do
18910 if test $ac_beg -gt 1; then
18911 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18913 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18915 if test ! -s $tmp/subs.frag; then
18916 ac_more_lines=false
18918 # The purpose of the label and of the branching condition is to
18919 # speed up the sed processing (if there are no `@' at all, there
18920 # is no need to browse any of the substitutions).
18921 # These are the two extra sed commands mentioned above.
18923 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18924 if test -z "$ac_sed_cmds"; then
18925 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18927 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18929 ac_sed_frag=`expr $ac_sed_frag + 1`
18931 ac_end=`expr $ac_end + $ac_max_sed_lines`
18934 if test -z "$ac_sed_cmds"; then
18937 fi # test -n "$CONFIG_FILES"
18940 cat >>$CONFIG_STATUS <<\_ACEOF
18941 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18942 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18944 - | *:- | *:-:* ) # input from stdin
18946 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18947 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18948 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18949 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18950 * ) ac_file_in=$ac_file.in ;;
18953 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18954 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18955 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18956 X"$ac_file" : 'X\(//\)[^/]' \| \
18957 X"$ac_file" : 'X\(//\)$' \| \
18958 X"$ac_file" : 'X\(/\)' \| \
18959 . : '\(.\)' 2>/dev/null ||
18961 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18962 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18963 /^X\(\/\/\)$/{ s//\1/; q; }
18964 /^X\(\/\).*/{ s//\1/; q; }
18966 { if $as_mkdir_p; then
18971 while test ! -d "$as_dir"; do
18972 as_dirs="$as_dir $as_dirs"
18973 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18974 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18975 X"$as_dir" : 'X\(//\)[^/]' \| \
18976 X"$as_dir" : 'X\(//\)$' \| \
18977 X"$as_dir" : 'X\(/\)' \| \
18978 . : '\(.\)' 2>/dev/null ||
18980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18981 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18982 /^X\(\/\/\)$/{ s//\1/; q; }
18983 /^X\(\/\).*/{ s//\1/; q; }
18986 test ! -n "$as_dirs" || mkdir $as_dirs
18987 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18988 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18989 { (exit 1); exit 1; }; }; }
18993 if test "$ac_dir" != .; then
18994 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18995 # A "../" for each directory in $ac_dir_suffix.
18996 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18998 ac_dir_suffix= ac_top_builddir=
19002 .) # No --srcdir option. We are building in place.
19004 if test -z "$ac_top_builddir"; then
19007 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19009 [\\/]* | ?:[\\/]* ) # Absolute path.
19010 ac_srcdir=$srcdir$ac_dir_suffix;
19011 ac_top_srcdir=$srcdir ;;
19012 *) # Relative path.
19013 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19014 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19016 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19018 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19019 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19020 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19021 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19025 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19026 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
19029 if test x"$ac_file" != x-; then
19030 { echo "$as_me:$LINENO: creating $ac_file" >&5
19031 echo "$as_me: creating $ac_file" >&6;}
19034 # Let's still pretend it is `configure' which instantiates (i.e., don't
19035 # use $as_me), people would be surprised to read:
19036 # /* config.h. Generated by config.status. */
19037 if test x"$ac_file" = x-; then
19040 configure_input="$ac_file. "
19042 configure_input=$configure_input"Generated from `echo $ac_file_in |
19043 sed 's,.*/,,'` by configure."
19045 # First look for the input files in the build tree, otherwise in the
19047 ac_file_inputs=`IFS=:
19048 for f in $ac_file_in; do
19050 -) echo $tmp/stdin ;;
19052 # Absolute (can't be DOS-style, as IFS=:)
19053 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19054 echo "$as_me: error: cannot find input file: $f" >&2;}
19055 { (exit 1); exit 1; }; }
19058 if test -f "$f"; then
19061 elif test -f "$srcdir/$f"; then
19066 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19067 echo "$as_me: error: cannot find input file: $f" >&2;}
19068 { (exit 1); exit 1; }; }
19071 done` || { (exit 1); exit 1; }
19073 cat >>$CONFIG_STATUS <<_ACEOF
19077 cat >>$CONFIG_STATUS <<\_ACEOF
19079 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19080 s,@configure_input@,$configure_input,;t t
19081 s,@srcdir@,$ac_srcdir,;t t
19082 s,@abs_srcdir@,$ac_abs_srcdir,;t t
19083 s,@top_srcdir@,$ac_top_srcdir,;t t
19084 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
19085 s,@builddir@,$ac_builddir,;t t
19086 s,@abs_builddir@,$ac_abs_builddir,;t t
19087 s,@top_builddir@,$ac_top_builddir,;t t
19088 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
19089 s,@INSTALL@,$ac_INSTALL,;t t
19090 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
19092 if test x"$ac_file" != x-; then
19093 mv $tmp/out $ac_file
19101 cat >>$CONFIG_STATUS <<\_ACEOF
19104 # CONFIG_HEADER section.
19107 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19108 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19110 # ac_d sets the value in "#define NAME VALUE" lines.
19111 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19112 ac_dB='[ ].*$,\1#\2'
19115 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19116 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19117 ac_uB='$,\1#\2define\3'
19121 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
19122 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19124 - | *:- | *:-:* ) # input from stdin
19126 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19127 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19128 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19129 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19130 * ) ac_file_in=$ac_file.in ;;
19133 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
19134 echo "$as_me: creating $ac_file" >&6;}
19136 # First look for the input files in the build tree, otherwise in the
19138 ac_file_inputs=`IFS=:
19139 for f in $ac_file_in; do
19141 -) echo $tmp/stdin ;;
19143 # Absolute (can't be DOS-style, as IFS=:)
19144 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19145 echo "$as_me: error: cannot find input file: $f" >&2;}
19146 { (exit 1); exit 1; }; }
19149 if test -f "$f"; then
19152 elif test -f "$srcdir/$f"; then
19157 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19158 echo "$as_me: error: cannot find input file: $f" >&2;}
19159 { (exit 1); exit 1; }; }
19162 done` || { (exit 1); exit 1; }
19163 # Remove the trailing spaces.
19164 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19168 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19169 # `conftest.undefs', that substitutes the proper values into
19170 # config.h.in to produce config.h. The first handles `#define'
19171 # templates, and the second `#undef' templates.
19172 # And first: Protect against being on the right side of a sed subst in
19173 # config.status. Protect against being in an unquoted here document
19174 # in config.status.
19175 rm -f conftest.defines conftest.undefs
19176 # Using a here document instead of a string reduces the quoting nightmare.
19177 # Putting comments in sed scripts is not portable.
19179 # `end' is used to avoid that the second main sed command (meant for
19180 # 0-ary CPP macros) applies to n-ary macro definitions.
19181 # See the Autoconf documentation for `clear'.
19182 cat >confdef2sed.sed <<\_ACEOF
19187 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19189 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19192 # If some macros were called several times there might be several times
19193 # the same #defines, which is useless. Nevertheless, we may not want to
19194 # sort them, since we want the *last* AC-DEFINE to be honored.
19195 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19196 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19197 rm -f confdef2sed.sed
19199 # This sed command replaces #undef with comments. This is necessary, for
19200 # example, in the case of _POSIX_SOURCE, which is predefined and required
19201 # on some systems where configure will not decide to define it.
19202 cat >>conftest.undefs <<\_ACEOF
19203 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19206 # Break up conftest.defines because some shells have a limit on the size
19207 # of here documents, and old seds have small limits too (100 cmds).
19208 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19209 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19210 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19211 echo ' :' >>$CONFIG_STATUS
19212 rm -f conftest.tail
19213 while grep . conftest.defines >/dev/null
19215 # Write a limited-size here document to $tmp/defines.sed.
19216 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19217 # Speed up: don't consider the non `#define' lines.
19218 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19219 # Work around the forget-to-reset-the-flag bug.
19220 echo 't clr' >>$CONFIG_STATUS
19221 echo ': clr' >>$CONFIG_STATUS
19222 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19224 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19226 mv $tmp/out $tmp/in
19228 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19229 rm -f conftest.defines
19230 mv conftest.tail conftest.defines
19232 rm -f conftest.defines
19233 echo ' fi # grep' >>$CONFIG_STATUS
19234 echo >>$CONFIG_STATUS
19236 # Break up conftest.undefs because some shells have a limit on the size
19237 # of here documents, and old seds have small limits too (100 cmds).
19238 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19239 rm -f conftest.tail
19240 while grep . conftest.undefs >/dev/null
19242 # Write a limited-size here document to $tmp/undefs.sed.
19243 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19244 # Speed up: don't consider the non `#undef'
19245 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19246 # Work around the forget-to-reset-the-flag bug.
19247 echo 't clr' >>$CONFIG_STATUS
19248 echo ': clr' >>$CONFIG_STATUS
19249 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19251 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19253 mv $tmp/out $tmp/in
19255 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19256 rm -f conftest.undefs
19257 mv conftest.tail conftest.undefs
19259 rm -f conftest.undefs
19261 cat >>$CONFIG_STATUS <<\_ACEOF
19262 # Let's still pretend it is `configure' which instantiates (i.e., don't
19263 # use $as_me), people would be surprised to read:
19264 # /* config.h. Generated by config.status. */
19265 if test x"$ac_file" = x-; then
19266 echo "/* Generated by configure. */" >$tmp/config.h
19268 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19270 cat $tmp/in >>$tmp/config.h
19272 if test x"$ac_file" != x-; then
19273 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19274 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19275 echo "$as_me: $ac_file is unchanged" >&6;}
19277 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19278 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19279 X"$ac_file" : 'X\(//\)[^/]' \| \
19280 X"$ac_file" : 'X\(//\)$' \| \
19281 X"$ac_file" : 'X\(/\)' \| \
19282 . : '\(.\)' 2>/dev/null ||
19284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19285 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19286 /^X\(\/\/\)$/{ s//\1/; q; }
19287 /^X\(\/\).*/{ s//\1/; q; }
19289 { if $as_mkdir_p; then
19294 while test ! -d "$as_dir"; do
19295 as_dirs="$as_dir $as_dirs"
19296 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19298 X"$as_dir" : 'X\(//\)[^/]' \| \
19299 X"$as_dir" : 'X\(//\)$' \| \
19300 X"$as_dir" : 'X\(/\)' \| \
19301 . : '\(.\)' 2>/dev/null ||
19303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19304 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19305 /^X\(\/\/\)$/{ s//\1/; q; }
19306 /^X\(\/\).*/{ s//\1/; q; }
19309 test ! -n "$as_dirs" || mkdir $as_dirs
19310 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19311 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19312 { (exit 1); exit 1; }; }; }
19315 mv $tmp/config.h $ac_file
19319 rm -f $tmp/config.h
19323 cat >>$CONFIG_STATUS <<\_ACEOF
19326 # CONFIG_COMMANDS section.
19328 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19329 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19330 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19331 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19332 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19333 X"$ac_dest" : 'X\(//\)[^/]' \| \
19334 X"$ac_dest" : 'X\(//\)$' \| \
19335 X"$ac_dest" : 'X\(/\)' \| \
19336 . : '\(.\)' 2>/dev/null ||
19338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19339 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19340 /^X\(\/\/\)$/{ s//\1/; q; }
19341 /^X\(\/\).*/{ s//\1/; q; }
19345 if test "$ac_dir" != .; then
19346 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19347 # A "../" for each directory in $ac_dir_suffix.
19348 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19350 ac_dir_suffix= ac_top_builddir=
19354 .) # No --srcdir option. We are building in place.
19356 if test -z "$ac_top_builddir"; then
19359 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19361 [\\/]* | ?:[\\/]* ) # Absolute path.
19362 ac_srcdir=$srcdir$ac_dir_suffix;
19363 ac_top_srcdir=$srcdir ;;
19364 *) # Relative path.
19365 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19366 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19368 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19370 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19371 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19372 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19373 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19376 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19377 echo "$as_me: executing $ac_dest commands" >&6;}
19379 default ) (echo "Doing make of dependencies"; make depend;)
19385 cat >>$CONFIG_STATUS <<\_ACEOF
19387 { (exit 0); exit 0; }
19389 chmod +x $CONFIG_STATUS
19390 ac_clean_files=$ac_clean_files_save
19393 # configure is writing to config.log, and then calls config.status.
19394 # config.status does its own redirection, appending to config.log.
19395 # Unfortunately, on DOS this fails, as config.log is still kept open
19396 # by configure, so config.status won't be able to write to it; its
19397 # output is simply discarded. So we exec the FD to /dev/null,
19398 # effectively closing config.log, so it can be properly (re)opened and
19399 # appended to by config.status. When coming back to configure, we
19400 # need to make the FD available again.
19401 if test "$no_create" != yes; then
19403 ac_config_status_args=
19404 test "$silent" = yes &&
19405 ac_config_status_args="$ac_config_status_args --quiet"
19407 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19409 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19410 # would make configure fail if this is the last instruction.
19411 $ac_cs_success || { (exit 1); exit 1; }
19416 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19417 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
19422 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
19423 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
19425 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
19426 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
19428 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
19429 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
19431 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
19432 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
19434 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
19435 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
19437 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
19438 chmod 755 $c/sqlite
19441 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19442 largefile_support="yes"
19446 # A whole lot of hand springs to get the compiler version.
19447 # This is because gcc changed the output in version 3.0
19449 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19450 if test "x${CCVERSION}" = "x" ; then
19451 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19453 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19454 if test x"${CXXVERSION}" = x ; then
19455 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19458 if test "x${subsysdir}" = "x${sbindir}" ; then
19461 echo "You have set --sbindir and --with-subsys-dir"
19462 echo " both equal to: ${subsysdir} "
19463 echo " This is not permitted. Please reconfigure."
19464 echo "Aborting configuration ..."
19471 Configuration on `date`:
19473 Host: $host -- ${DISTNAME} ${DISTVER}
19474 Bacula version: ${VERSION} (${DATE})
19475 Source code location: ${srcdir}
19476 Install binaries: ${sbindir}
19477 Install config files: ${sysconfdir}
19478 Scripts directory: ${scriptdir}
19479 Working directory: ${working_dir}
19480 PID directory: ${piddir}
19481 Subsys directory: ${subsysdir}
19482 C Compiler: ${CC} ${CCVERSION}
19483 C++ Compiler: ${CXX} ${CXXVERSION}
19484 Compiler flags: ${WCFLAGS} ${CFLAGS}
19485 Linker flags: ${WLDFLAGS} ${LDFLAGS}
19487 Statically Linked Tools: ${support_static_tools}
19488 Statically Linked FD: ${support_static_fd}
19489 Statically Linked SD: ${support_static_sd}
19490 Statically Linked DIR: ${support_static_dir}
19491 Statically Linked CONS: ${support_static_cons}
19492 Database type: ${db_name}
19493 Database lib: ${DB_LIBS}
19495 Job Output Email: ${job_email}
19496 Traceback Email: ${dump_email}
19497 SMTP Host Address: ${smtp_host}
19499 Director Port: ${dir_port}
19500 File daemon Port: ${fd_port}
19501 Storage daemon Port: ${sd_port}
19503 Director User: ${dir_user}
19504 Director Group: ${dir_group}
19505 Storage Daemon User: ${sd_user}
19506 Storage DaemonGroup: ${sd_group}
19507 File Daemon User: ${fd_user}
19508 File Daemon Group: ${fd_group}
19510 SQL binaries Directory ${SQL_BINDIR}
19512 Large file support: $largefile_support
19513 Bacula conio support: ${got_conio} ${CONS_LIBS}
19514 readline support: ${got_readline} ${PRTREADLINE_SRC}
19515 TCP Wrappers support: ${TCPW_MSG}
19516 ZLIB support: ${have_zlib}
19517 enable-smartalloc: ${support_smartalloc}
19518 enable-gnome: ${support_gnome} ${gnome_version}
19519 client-only: ${build_client_only}
19526 # cweb support: ${got_cweb} ${CWEB_SRC}
19527 # gmp support: ${got_gmp} ${GMP_SRC}