2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
224 as_executable_p="test -f"
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234 # We need space, tab and new line, in precisely that order.
244 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245 # so uname gets run too.
246 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253 ac_default_prefix=/usr/local
254 ac_config_libobj_dir=.
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Maximum number of lines to put in a shell here document.
262 # This variable seems obsolete. It should probably be removed, and
263 # only ac_max_sed_lines should be used.
264 : ${ac_max_here_lines=38}
266 # Identity of this package.
273 ac_unique_file="src/version.h"
274 # Factoring default headers for most tests.
275 ac_includes_default="\
278 # include <sys/types.h>
281 # include <sys/stat.h>
292 # if !STDC_HEADERS && HAVE_MEMORY_H
298 # include <strings.h>
301 # include <inttypes.h>
311 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED AWK ECHO CMP TBL AR OPENSSL MTX PKGCONFIG ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE INSIDE_GNOME_COMMON_TRUE INSIDE_GNOME_COMMON_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS ALL_DIRS CONS_INC CONS_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
898 Which DBMS do you want to use (please select only one):
899 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
900 install directory, default is to search through
901 a number of common places for the MySQL files.
903 Which DBMS do you want to use (please select only one):
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 Which DBMS do you want to use (please select only one):
909 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
910 install directory, default is to search through
911 a number of common places for the SQLite files.
912 --with-x use the X Window System
914 Some influential environment variables:
915 CC C compiler command
916 CFLAGS C compiler flags
917 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
918 nonstandard directory <lib dir>
919 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
920 headers in a nonstandard directory <include dir>
921 CXX C++ compiler command
922 CXXFLAGS C++ compiler flags
925 Use these variables to override the choices made by `configure' or to help
926 it to find libraries and programs with nonstandard names/locations.
931 if test "$ac_init_help" = "recursive"; then
932 # If there are subdirs, report their specific --help.
934 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
935 test -d $ac_dir || continue
938 if test "$ac_dir" != .; then
939 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
940 # A "../" for each directory in $ac_dir_suffix.
941 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
943 ac_dir_suffix= ac_top_builddir=
947 .) # No --srcdir option. We are building in place.
949 if test -z "$ac_top_builddir"; then
952 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
954 [\\/]* | ?:[\\/]* ) # Absolute path.
955 ac_srcdir=$srcdir$ac_dir_suffix;
956 ac_top_srcdir=$srcdir ;;
958 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
959 ac_top_srcdir=$ac_top_builddir$srcdir ;;
961 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
963 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
964 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
965 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
966 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
969 # Check for guested configure; otherwise get Cygnus style configure.
970 if test -f $ac_srcdir/configure.gnu; then
972 $SHELL $ac_srcdir/configure.gnu --help=recursive
973 elif test -f $ac_srcdir/configure; then
975 $SHELL $ac_srcdir/configure --help=recursive
976 elif test -f $ac_srcdir/configure.ac ||
977 test -f $ac_srcdir/configure.in; then
981 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
987 test -n "$ac_init_help" && exit 0
988 if $ac_init_version; then
991 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
992 Free Software Foundation, Inc.
993 This configure script is free software; the Free Software Foundation
994 gives unlimited permission to copy, distribute and modify it.
1000 This file contains any messages produced by compilers while
1001 running configure, to aid debugging if configure makes a mistake.
1003 It was created by $as_me, which was
1004 generated by GNU Autoconf 2.57. Invocation command line was
1015 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1016 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1017 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1018 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1019 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1021 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1022 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1024 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1025 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1026 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1027 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1028 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1029 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1030 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1038 test -z "$as_dir" && as_dir=.
1039 echo "PATH: $as_dir"
1054 # Keep a trace of the command line.
1055 # Strip out --no-create and --no-recursion so they do not pile up.
1056 # Strip out --silent because we don't want to record it for future runs.
1057 # Also quote any args containing shell meta-characters.
1058 # Make two passes to allow for proper duplicate-argument suppression.
1063 ac_must_keep_next=false
1069 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1070 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1071 | -silent | --silent | --silen | --sile | --sil)
1073 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1074 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1077 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1079 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1080 if test $ac_must_keep_next = true; then
1081 ac_must_keep_next=false # Got value, back to normal.
1084 *=* | --config-cache | -C | -disable-* | --disable-* \
1085 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1086 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1087 | -with-* | --with-* | -without-* | --without-* | --x)
1088 case "$ac_configure_args0 " in
1089 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092 -* ) ac_must_keep_next=true ;;
1095 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1096 # Get rid of the leading space.
1102 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1103 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1105 # When interrupted or exit'd, cleanup temporary files, and complete
1106 # config.log. We remove comments because anyway the quotes in there
1107 # would cause problems or look ugly.
1108 # WARNING: Be sure not to use single quotes in there, as some shells,
1109 # such as our DU 5.0 friend, will then `close' the trap.
1110 trap 'exit_status=$?
1111 # Save into config.log some information that might help in debugging.
1116 ## ---------------- ##
1117 ## Cache variables. ##
1118 ## ---------------- ##
1121 # The following way of writing the cache mishandles newlines in values,
1124 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1128 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1132 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1139 ## ----------------- ##
1140 ## Output variables. ##
1141 ## ----------------- ##
1144 for ac_var in $ac_subst_vars
1146 eval ac_val=$`echo $ac_var`
1147 echo "$ac_var='"'"'$ac_val'"'"'"
1151 if test -n "$ac_subst_files"; then
1158 for ac_var in $ac_subst_files
1160 eval ac_val=$`echo $ac_var`
1161 echo "$ac_var='"'"'$ac_val'"'"'"
1166 if test -s confdefs.h; then
1173 sed "/^$/d" confdefs.h | sort
1176 test "$ac_signal" != 0 &&
1177 echo "$as_me: caught signal $ac_signal"
1178 echo "$as_me: exit $exit_status"
1180 rm -f core core.* *.core &&
1181 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1184 for ac_signal in 1 2 13 15; do
1185 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1189 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1190 rm -rf conftest* confdefs.h
1191 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194 # Predefined preprocessor variables.
1196 cat >>confdefs.h <<_ACEOF
1197 #define PACKAGE_NAME "$PACKAGE_NAME"
1201 cat >>confdefs.h <<_ACEOF
1202 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1206 cat >>confdefs.h <<_ACEOF
1207 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_STRING "$PACKAGE_STRING"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1221 # Let the site file select an alternate cache file if it wants to.
1222 # Prefer explicitly selected file to automatically selected ones.
1223 if test -z "$CONFIG_SITE"; then
1224 if test "x$prefix" != xNONE; then
1225 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1227 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230 for ac_site_file in $CONFIG_SITE; do
1231 if test -r "$ac_site_file"; then
1232 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1233 echo "$as_me: loading site script $ac_site_file" >&6;}
1234 sed 's/^/| /' "$ac_site_file" >&5
1239 if test -r "$cache_file"; then
1240 # Some versions of bash will fail to source /dev/null (special
1241 # files actually), so we avoid doing that.
1242 if test -f "$cache_file"; then
1243 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1244 echo "$as_me: loading cache $cache_file" >&6;}
1246 [\\/]* | ?:[\\/]* ) . $cache_file;;
1247 *) . ./$cache_file;;
1251 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1252 echo "$as_me: creating cache $cache_file" >&6;}
1256 # Check that the precious variables saved in the cache have kept the same
1258 ac_cache_corrupted=false
1259 for ac_var in `(set) 2>&1 |
1260 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1261 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1262 eval ac_new_set=\$ac_env_${ac_var}_set
1263 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1264 eval ac_new_val="\$ac_env_${ac_var}_value"
1265 case $ac_old_set,$ac_new_set in
1267 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1268 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1269 ac_cache_corrupted=: ;;
1271 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1272 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1273 ac_cache_corrupted=: ;;
1276 if test "x$ac_old_val" != "x$ac_new_val"; then
1277 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1278 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1279 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1280 echo "$as_me: former value: $ac_old_val" >&2;}
1281 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1282 echo "$as_me: current value: $ac_new_val" >&2;}
1283 ac_cache_corrupted=:
1286 # Pass precious variables to config.status.
1287 if test "$ac_new_set" = set; then
1289 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1290 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1291 *) ac_arg=$ac_var=$ac_new_val ;;
1293 case " $ac_configure_args " in
1294 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1295 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1299 if $ac_cache_corrupted; then
1300 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1301 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1302 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1303 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1304 { (exit 1); exit 1; }; }
1308 ac_cpp='$CPP $CPPFLAGS'
1309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1337 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1338 if test -f $ac_dir/install-sh; then
1340 ac_install_sh="$ac_aux_dir/install-sh -c"
1342 elif test -f $ac_dir/install.sh; then
1344 ac_install_sh="$ac_aux_dir/install.sh -c"
1346 elif test -f $ac_dir/shtool; then
1348 ac_install_sh="$ac_aux_dir/shtool install -c"
1352 if test -z "$ac_aux_dir"; then
1353 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1354 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1355 { (exit 1); exit 1; }; }
1357 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1358 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1359 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1361 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1369 # Extract the first word of "$ac_prog", so it can be a program name with args.
1370 set dummy $ac_prog; ac_word=$2
1371 echo "$as_me:$LINENO: checking for $ac_word" >&5
1372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1373 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1374 echo $ECHO_N "(cached) $ECHO_C" >&6
1378 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385 test -z "$as_dir" && as_dir=.
1386 for ac_exec_ext in '' $ac_executable_extensions; do
1387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1388 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1398 TRUEPRG=$ac_cv_path_TRUEPRG
1400 if test -n "$TRUEPRG"; then
1401 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1402 echo "${ECHO_T}$TRUEPRG" >&6
1404 echo "$as_me:$LINENO: result: no" >&5
1405 echo "${ECHO_T}no" >&6
1408 test -n "$TRUEPRG" && break
1410 test -n "$TRUEPRG" || TRUEPRG=":"
1412 for ac_prog in false
1414 # Extract the first word of "$ac_prog", so it can be a program name with args.
1415 set dummy $ac_prog; ac_word=$2
1416 echo "$as_me:$LINENO: checking for $ac_word" >&5
1417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1418 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1419 echo $ECHO_N "(cached) $ECHO_C" >&6
1423 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1430 test -z "$as_dir" && as_dir=.
1431 for ac_exec_ext in '' $ac_executable_extensions; do
1432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1433 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1443 FALSEPRG=$ac_cv_path_FALSEPRG
1445 if test -n "$FALSEPRG"; then
1446 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1447 echo "${ECHO_T}$FALSEPRG" >&6
1449 echo "$as_me:$LINENO: result: no" >&5
1450 echo "${ECHO_T}no" >&6
1453 test -n "$FALSEPRG" && break
1455 test -n "$FALSEPRG" || FALSEPRG=":"
1458 # Make sure we can run config.sub.
1459 $ac_config_sub sun4 >/dev/null 2>&1 ||
1460 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1461 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1462 { (exit 1); exit 1; }; }
1464 echo "$as_me:$LINENO: checking build system type" >&5
1465 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1466 if test "${ac_cv_build+set}" = set; then
1467 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 ac_cv_build_alias=$build_alias
1470 test -z "$ac_cv_build_alias" &&
1471 ac_cv_build_alias=`$ac_config_guess`
1472 test -z "$ac_cv_build_alias" &&
1473 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1474 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1475 { (exit 1); exit 1; }; }
1476 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1477 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1478 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1479 { (exit 1); exit 1; }; }
1482 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1483 echo "${ECHO_T}$ac_cv_build" >&6
1485 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1486 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1487 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1490 echo "$as_me:$LINENO: checking host system type" >&5
1491 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1492 if test "${ac_cv_host+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1495 ac_cv_host_alias=$host_alias
1496 test -z "$ac_cv_host_alias" &&
1497 ac_cv_host_alias=$ac_cv_build_alias
1498 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1499 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1500 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1501 { (exit 1); exit 1; }; }
1504 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1505 echo "${ECHO_T}$ac_cv_host" >&6
1507 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1508 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1509 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1513 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1514 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1515 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1516 echo "configuring for bacula $VERSION ($DATE)"
1521 ac_cpp='$CPP $CPPFLAGS'
1522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1525 if test -n "$ac_tool_prefix"; then
1526 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1527 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1528 echo "$as_me:$LINENO: checking for $ac_word" >&5
1529 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1530 if test "${ac_cv_prog_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 if test -n "$CC"; then
1534 ac_cv_prog_CC="$CC" # Let the user override the test.
1536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 test -z "$as_dir" && as_dir=.
1541 for ac_exec_ext in '' $ac_executable_extensions; do
1542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1543 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1553 if test -n "$CC"; then
1554 echo "$as_me:$LINENO: result: $CC" >&5
1555 echo "${ECHO_T}$CC" >&6
1557 echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1562 if test -z "$ac_cv_prog_CC"; then
1564 # Extract the first word of "gcc", so it can be a program name with args.
1565 set dummy gcc; ac_word=$2
1566 echo "$as_me:$LINENO: checking for $ac_word" >&5
1567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1568 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1569 echo $ECHO_N "(cached) $ECHO_C" >&6
1571 if test -n "$ac_ct_CC"; then
1572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 test -z "$as_dir" && as_dir=.
1579 for ac_exec_ext in '' $ac_executable_extensions; do
1580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1581 ac_cv_prog_ac_ct_CC="gcc"
1582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1591 if test -n "$ac_ct_CC"; then
1592 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1593 echo "${ECHO_T}$ac_ct_CC" >&6
1595 echo "$as_me:$LINENO: result: no" >&5
1596 echo "${ECHO_T}no" >&6
1604 if test -z "$CC"; then
1605 if test -n "$ac_tool_prefix"; then
1606 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1607 set dummy ${ac_tool_prefix}cc; ac_word=$2
1608 echo "$as_me:$LINENO: checking for $ac_word" >&5
1609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1610 if test "${ac_cv_prog_CC+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1613 if test -n "$CC"; then
1614 ac_cv_prog_CC="$CC" # Let the user override the test.
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1620 test -z "$as_dir" && as_dir=.
1621 for ac_exec_ext in '' $ac_executable_extensions; do
1622 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1623 ac_cv_prog_CC="${ac_tool_prefix}cc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1633 if test -n "$CC"; then
1634 echo "$as_me:$LINENO: result: $CC" >&5
1635 echo "${ECHO_T}$CC" >&6
1637 echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1642 if test -z "$ac_cv_prog_CC"; then
1644 # Extract the first word of "cc", so it can be a program name with args.
1645 set dummy cc; ac_word=$2
1646 echo "$as_me:$LINENO: checking for $ac_word" >&5
1647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1648 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1649 echo $ECHO_N "(cached) $ECHO_C" >&6
1651 if test -n "$ac_ct_CC"; then
1652 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1658 test -z "$as_dir" && as_dir=.
1659 for ac_exec_ext in '' $ac_executable_extensions; do
1660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1661 ac_cv_prog_ac_ct_CC="cc"
1662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1670 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1671 if test -n "$ac_ct_CC"; then
1672 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1673 echo "${ECHO_T}$ac_ct_CC" >&6
1675 echo "$as_me:$LINENO: result: no" >&5
1676 echo "${ECHO_T}no" >&6
1685 if test -z "$CC"; then
1686 # Extract the first word of "cc", so it can be a program name with args.
1687 set dummy cc; ac_word=$2
1688 echo "$as_me:$LINENO: checking for $ac_word" >&5
1689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1690 if test "${ac_cv_prog_CC+set}" = set; then
1691 echo $ECHO_N "(cached) $ECHO_C" >&6
1693 if test -n "$CC"; then
1694 ac_cv_prog_CC="$CC" # Let the user override the test.
1697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701 test -z "$as_dir" && as_dir=.
1702 for ac_exec_ext in '' $ac_executable_extensions; do
1703 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1704 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1705 ac_prog_rejected=yes
1709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1715 if test $ac_prog_rejected = yes; then
1716 # We found a bogon in the path, so make sure we never use it.
1717 set dummy $ac_cv_prog_CC
1719 if test $# != 0; then
1720 # We chose a different compiler from the bogus one.
1721 # However, it has the same basename, so the bogon will be chosen
1722 # first if we set CC to just the basename; use the full file name.
1724 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1730 if test -n "$CC"; then
1731 echo "$as_me:$LINENO: result: $CC" >&5
1732 echo "${ECHO_T}$CC" >&6
1734 echo "$as_me:$LINENO: result: no" >&5
1735 echo "${ECHO_T}no" >&6
1739 if test -z "$CC"; then
1740 if test -n "$ac_tool_prefix"; then
1743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1745 echo "$as_me:$LINENO: checking for $ac_word" >&5
1746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1747 if test "${ac_cv_prog_CC+set}" = set; then
1748 echo $ECHO_N "(cached) $ECHO_C" >&6
1750 if test -n "$CC"; then
1751 ac_cv_prog_CC="$CC" # Let the user override the test.
1753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757 test -z "$as_dir" && as_dir=.
1758 for ac_exec_ext in '' $ac_executable_extensions; do
1759 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1760 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1770 if test -n "$CC"; then
1771 echo "$as_me:$LINENO: result: $CC" >&5
1772 echo "${ECHO_T}$CC" >&6
1774 echo "$as_me:$LINENO: result: no" >&5
1775 echo "${ECHO_T}no" >&6
1778 test -n "$CC" && break
1781 if test -z "$CC"; then
1785 # Extract the first word of "$ac_prog", so it can be a program name with args.
1786 set dummy $ac_prog; ac_word=$2
1787 echo "$as_me:$LINENO: checking for $ac_word" >&5
1788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1789 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1790 echo $ECHO_N "(cached) $ECHO_C" >&6
1792 if test -n "$ac_ct_CC"; then
1793 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1799 test -z "$as_dir" && as_dir=.
1800 for ac_exec_ext in '' $ac_executable_extensions; do
1801 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1802 ac_cv_prog_ac_ct_CC="$ac_prog"
1803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1811 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1812 if test -n "$ac_ct_CC"; then
1813 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1814 echo "${ECHO_T}$ac_ct_CC" >&6
1816 echo "$as_me:$LINENO: result: no" >&5
1817 echo "${ECHO_T}no" >&6
1820 test -n "$ac_ct_CC" && break
1829 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: no acceptable C compiler found in \$PATH
1832 See \`config.log' for more details." >&2;}
1833 { (exit 1); exit 1; }; }
1835 # Provide some information about the compiler.
1836 echo "$as_me:$LINENO:" \
1837 "checking for C compiler version" >&5
1838 ac_compiler=`set X $ac_compile; echo $2`
1839 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1840 (eval $ac_compiler --version </dev/null >&5) 2>&5
1842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1843 (exit $ac_status); }
1844 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1845 (eval $ac_compiler -v </dev/null >&5) 2>&5
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }
1849 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1850 (eval $ac_compiler -V </dev/null >&5) 2>&5
1852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1853 (exit $ac_status); }
1855 cat >conftest.$ac_ext <<_ACEOF
1856 #line $LINENO "configure"
1859 cat confdefs.h >>conftest.$ac_ext
1860 cat >>conftest.$ac_ext <<_ACEOF
1861 /* end confdefs.h. */
1871 ac_clean_files_save=$ac_clean_files
1872 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1873 # Try to create an executable without -o first, disregard a.out.
1874 # It will help us diagnose broken compilers, and finding out an intuition
1876 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1877 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1878 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1879 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1880 (eval $ac_link_default) 2>&5
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); }; then
1884 # Find the output, starting from the most likely. This scheme is
1885 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1888 # Be careful to initialize this variable, since it used to be cached.
1889 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1891 # b.out is created by i960 compilers.
1892 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1894 test -f "$ac_file" || continue
1896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1899 # This is the source file.
1902 # We found the default executable, but exeext='' is most
1906 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1907 # FIXME: I believe we export ac_cv_exeext for Libtool,
1908 # but it would be cool to find out if it's true. Does anybody
1909 # maintain Libtool? --akim.
1917 echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1920 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&5
1922 echo "$as_me: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&2;}
1924 { (exit 77); exit 77; }; }
1927 ac_exeext=$ac_cv_exeext
1928 echo "$as_me:$LINENO: result: $ac_file" >&5
1929 echo "${ECHO_T}$ac_file" >&6
1931 # Check the compiler produces executables we can run. If not, either
1932 # the compiler is broken, or we cross compile.
1933 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1934 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1935 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1936 # If not cross compiling, check that we can run a simple program.
1937 if test "$cross_compiling" != yes; then
1938 if { ac_try='./$ac_file'
1939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; }; then
1946 if test "$cross_compiling" = maybe; then
1949 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1950 If you meant to cross compile, use \`--host'.
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: cannot run C compiled programs.
1953 If you meant to cross compile, use \`--host'.
1954 See \`config.log' for more details." >&2;}
1955 { (exit 1); exit 1; }; }
1959 echo "$as_me:$LINENO: result: yes" >&5
1960 echo "${ECHO_T}yes" >&6
1962 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1963 ac_clean_files=$ac_clean_files_save
1964 # Check the compiler produces executables we can run. If not, either
1965 # the compiler is broken, or we cross compile.
1966 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1967 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1968 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1969 echo "${ECHO_T}$cross_compiling" >&6
1971 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1972 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1974 (eval $ac_link) 2>&5
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); }; then
1978 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1979 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1980 # work properly (i.e., refer to `conftest.exe'), while it won't with
1982 for ac_file in conftest.exe conftest conftest.*; do
1983 test -f "$ac_file" || continue
1985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1986 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1993 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&5
1995 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&2;}
1997 { (exit 1); exit 1; }; }
2000 rm -f conftest$ac_cv_exeext
2001 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2002 echo "${ECHO_T}$ac_cv_exeext" >&6
2004 rm -f conftest.$ac_ext
2005 EXEEXT=$ac_cv_exeext
2007 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2008 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2009 if test "${ac_cv_objext+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 cat >conftest.$ac_ext <<_ACEOF
2013 #line $LINENO "configure"
2016 cat confdefs.h >>conftest.$ac_ext
2017 cat >>conftest.$ac_ext <<_ACEOF
2018 /* end confdefs.h. */
2028 rm -f conftest.o conftest.obj
2029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2030 (eval $ac_compile) 2>&5
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }; then
2034 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2036 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2037 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2042 echo "$as_me: failed program was:" >&5
2043 sed 's/^/| /' conftest.$ac_ext >&5
2045 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2046 See \`config.log' for more details." >&5
2047 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2048 See \`config.log' for more details." >&2;}
2049 { (exit 1); exit 1; }; }
2052 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2054 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2055 echo "${ECHO_T}$ac_cv_objext" >&6
2056 OBJEXT=$ac_cv_objext
2058 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2059 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2060 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2061 echo $ECHO_N "(cached) $ECHO_C" >&6
2063 cat >conftest.$ac_ext <<_ACEOF
2064 #line $LINENO "configure"
2067 cat confdefs.h >>conftest.$ac_ext
2068 cat >>conftest.$ac_ext <<_ACEOF
2069 /* end confdefs.h. */
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084 (eval $ac_compile) 2>&5
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); } &&
2088 { ac_try='test -s conftest.$ac_objext'
2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; }; then
2096 echo "$as_me: failed program was:" >&5
2097 sed 's/^/| /' conftest.$ac_ext >&5
2101 rm -f conftest.$ac_objext conftest.$ac_ext
2102 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2105 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2106 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2107 GCC=`test $ac_compiler_gnu = yes && echo yes`
2108 ac_test_CFLAGS=${CFLAGS+set}
2109 ac_save_CFLAGS=$CFLAGS
2111 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2112 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2113 if test "${ac_cv_prog_cc_g+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2116 cat >conftest.$ac_ext <<_ACEOF
2117 #line $LINENO "configure"
2120 cat confdefs.h >>conftest.$ac_ext
2121 cat >>conftest.$ac_ext <<_ACEOF
2122 /* end confdefs.h. */
2132 rm -f conftest.$ac_objext
2133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2134 (eval $ac_compile) 2>&5
2136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137 (exit $ac_status); } &&
2138 { ac_try='test -s conftest.$ac_objext'
2139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); }; }; then
2146 echo "$as_me: failed program was:" >&5
2147 sed 's/^/| /' conftest.$ac_ext >&5
2151 rm -f conftest.$ac_objext conftest.$ac_ext
2153 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2154 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2155 if test "$ac_test_CFLAGS" = set; then
2156 CFLAGS=$ac_save_CFLAGS
2157 elif test $ac_cv_prog_cc_g = yes; then
2158 if test "$GCC" = yes; then
2164 if test "$GCC" = yes; then
2170 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2171 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2172 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 ac_cv_prog_cc_stdc=no
2177 cat >conftest.$ac_ext <<_ACEOF
2178 #line $LINENO "configure"
2181 cat confdefs.h >>conftest.$ac_ext
2182 cat >>conftest.$ac_ext <<_ACEOF
2183 /* end confdefs.h. */
2186 #include <sys/types.h>
2187 #include <sys/stat.h>
2188 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2189 struct buf { int x; };
2190 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2191 static char *e (p, i)
2197 static char *f (char * (*g) (char **, int), char **p, ...)
2202 s = g (p, va_arg (v,int));
2206 int test (int i, double x);
2207 struct s1 {int (*f) (int a);};
2208 struct s2 {int (*f) (double a);};
2209 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2215 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2220 # Don't try gcc -ansi; that turns off useful extensions and
2221 # breaks some systems' header files.
2222 # AIX -qlanglvl=ansi
2223 # Ultrix and OSF/1 -std1
2224 # HP-UX 10.20 and later -Ae
2225 # HP-UX older versions -Aa -D_HPUX_SOURCE
2226 # SVR4 -Xc -D__EXTENSIONS__
2227 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2229 CC="$ac_save_CC $ac_arg"
2230 rm -f conftest.$ac_objext
2231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2232 (eval $ac_compile) 2>&5
2234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2235 (exit $ac_status); } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 ac_cv_prog_cc_stdc=$ac_arg
2245 echo "$as_me: failed program was:" >&5
2246 sed 's/^/| /' conftest.$ac_ext >&5
2249 rm -f conftest.$ac_objext
2251 rm -f conftest.$ac_ext conftest.$ac_objext
2256 case "x$ac_cv_prog_cc_stdc" in
2258 echo "$as_me:$LINENO: result: none needed" >&5
2259 echo "${ECHO_T}none needed" >&6 ;;
2261 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2262 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2263 CC="$CC $ac_cv_prog_cc_stdc" ;;
2266 # Some people use a C++ compiler to compile C. Since we use `exit',
2267 # in C++ we need to declare it. In case someone uses the same compiler
2268 # for both compiling C and C++ we need to have the C++ compiler decide
2269 # the declaration of exit, since it's the most demanding environment.
2270 cat >conftest.$ac_ext <<_ACEOF
2275 rm -f conftest.$ac_objext
2276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2277 (eval $ac_compile) 2>&5
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); } &&
2281 { ac_try='test -s conftest.$ac_objext'
2282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2287 for ac_declaration in \
2289 '#include <stdlib.h>' \
2290 'extern "C" void std::exit (int) throw (); using std::exit;' \
2291 'extern "C" void std::exit (int); using std::exit;' \
2292 'extern "C" void exit (int) throw ();' \
2293 'extern "C" void exit (int);' \
2296 cat >conftest.$ac_ext <<_ACEOF
2297 #line $LINENO "configure"
2300 cat confdefs.h >>conftest.$ac_ext
2301 cat >>conftest.$ac_ext <<_ACEOF
2302 /* end confdefs.h. */
2313 rm -f conftest.$ac_objext
2314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315 (eval $ac_compile) 2>&5
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
2319 { ac_try='test -s conftest.$ac_objext'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; }; then
2327 echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2332 rm -f conftest.$ac_objext conftest.$ac_ext
2333 cat >conftest.$ac_ext <<_ACEOF
2334 #line $LINENO "configure"
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2349 rm -f conftest.$ac_objext
2350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2351 (eval $ac_compile) 2>&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); } &&
2355 { ac_try='test -s conftest.$ac_objext'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; }; then
2363 echo "$as_me: failed program was:" >&5
2364 sed 's/^/| /' conftest.$ac_ext >&5
2367 rm -f conftest.$ac_objext conftest.$ac_ext
2370 if test -n "$ac_declaration"; then
2371 echo '#ifdef __cplusplus' >>confdefs.h
2372 echo $ac_declaration >>confdefs.h
2373 echo '#endif' >>confdefs.h
2377 echo "$as_me: failed program was:" >&5
2378 sed 's/^/| /' conftest.$ac_ext >&5
2381 rm -f conftest.$ac_objext conftest.$ac_ext
2383 ac_cpp='$CPP $CPPFLAGS'
2384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2389 ac_cpp='$CXXCPP $CPPFLAGS'
2390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2393 if test -n "$ac_tool_prefix"; then
2394 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2396 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2398 echo "$as_me:$LINENO: checking for $ac_word" >&5
2399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2400 if test "${ac_cv_prog_CXX+set}" = set; then
2401 echo $ECHO_N "(cached) $ECHO_C" >&6
2403 if test -n "$CXX"; then
2404 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 if test -n "$CXX"; then
2424 echo "$as_me:$LINENO: result: $CXX" >&5
2425 echo "${ECHO_T}$CXX" >&6
2427 echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6
2431 test -n "$CXX" && break
2434 if test -z "$CXX"; then
2436 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2438 # Extract the first word of "$ac_prog", so it can be a program name with args.
2439 set dummy $ac_prog; ac_word=$2
2440 echo "$as_me:$LINENO: checking for $ac_word" >&5
2441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2442 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2443 echo $ECHO_N "(cached) $ECHO_C" >&6
2445 if test -n "$ac_ct_CXX"; then
2446 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452 test -z "$as_dir" && as_dir=.
2453 for ac_exec_ext in '' $ac_executable_extensions; do
2454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2455 ac_cv_prog_ac_ct_CXX="$ac_prog"
2456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2465 if test -n "$ac_ct_CXX"; then
2466 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2467 echo "${ECHO_T}$ac_ct_CXX" >&6
2469 echo "$as_me:$LINENO: result: no" >&5
2470 echo "${ECHO_T}no" >&6
2473 test -n "$ac_ct_CXX" && break
2475 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2481 # Provide some information about the compiler.
2482 echo "$as_me:$LINENO:" \
2483 "checking for C++ compiler version" >&5
2484 ac_compiler=`set X $ac_compile; echo $2`
2485 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2486 (eval $ac_compiler --version </dev/null >&5) 2>&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }
2490 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2491 (eval $ac_compiler -v </dev/null >&5) 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }
2495 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2496 (eval $ac_compiler -V </dev/null >&5) 2>&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }
2501 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2502 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2503 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 cat >conftest.$ac_ext <<_ACEOF
2507 #line $LINENO "configure"
2510 cat confdefs.h >>conftest.$ac_ext
2511 cat >>conftest.$ac_ext <<_ACEOF
2512 /* end confdefs.h. */
2525 rm -f conftest.$ac_objext
2526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2527 (eval $ac_compile) 2>&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); } &&
2531 { ac_try='test -s conftest.$ac_objext'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2544 rm -f conftest.$ac_objext conftest.$ac_ext
2545 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2548 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2549 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2550 GXX=`test $ac_compiler_gnu = yes && echo yes`
2551 ac_test_CXXFLAGS=${CXXFLAGS+set}
2552 ac_save_CXXFLAGS=$CXXFLAGS
2554 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2555 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2556 if test "${ac_cv_prog_cxx_g+set}" = set; then
2557 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 cat >conftest.$ac_ext <<_ACEOF
2560 #line $LINENO "configure"
2563 cat confdefs.h >>conftest.$ac_ext
2564 cat >>conftest.$ac_ext <<_ACEOF
2565 /* end confdefs.h. */
2575 rm -f conftest.$ac_objext
2576 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2577 (eval $ac_compile) 2>&5
2579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580 (exit $ac_status); } &&
2581 { ac_try='test -s conftest.$ac_objext'
2582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; }; then
2587 ac_cv_prog_cxx_g=yes
2589 echo "$as_me: failed program was:" >&5
2590 sed 's/^/| /' conftest.$ac_ext >&5
2594 rm -f conftest.$ac_objext conftest.$ac_ext
2596 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2597 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2598 if test "$ac_test_CXXFLAGS" = set; then
2599 CXXFLAGS=$ac_save_CXXFLAGS
2600 elif test $ac_cv_prog_cxx_g = yes; then
2601 if test "$GXX" = yes; then
2607 if test "$GXX" = yes; then
2613 for ac_declaration in \
2615 '#include <stdlib.h>' \
2616 'extern "C" void std::exit (int) throw (); using std::exit;' \
2617 'extern "C" void std::exit (int); using std::exit;' \
2618 'extern "C" void exit (int) throw ();' \
2619 'extern "C" void exit (int);' \
2622 cat >conftest.$ac_ext <<_ACEOF
2623 #line $LINENO "configure"
2626 cat confdefs.h >>conftest.$ac_ext
2627 cat >>conftest.$ac_ext <<_ACEOF
2628 /* end confdefs.h. */
2639 rm -f conftest.$ac_objext
2640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641 (eval $ac_compile) 2>&5
2643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2644 (exit $ac_status); } &&
2645 { ac_try='test -s conftest.$ac_objext'
2646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650 (exit $ac_status); }; }; then
2653 echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2658 rm -f conftest.$ac_objext conftest.$ac_ext
2659 cat >conftest.$ac_ext <<_ACEOF
2660 #line $LINENO "configure"
2663 cat confdefs.h >>conftest.$ac_ext
2664 cat >>conftest.$ac_ext <<_ACEOF
2665 /* end confdefs.h. */
2675 rm -f conftest.$ac_objext
2676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2677 (eval $ac_compile) 2>&5
2679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
2681 { ac_try='test -s conftest.$ac_objext'
2682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); }; }; then
2689 echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2693 rm -f conftest.$ac_objext conftest.$ac_ext
2696 if test -n "$ac_declaration"; then
2697 echo '#ifdef __cplusplus' >>confdefs.h
2698 echo $ac_declaration >>confdefs.h
2699 echo '#endif' >>confdefs.h
2703 ac_cpp='$CPP $CPPFLAGS'
2704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2708 if test "x$CC" != xcc; then
2709 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2710 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2712 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2713 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2715 set dummy $CC; ac_cc=`echo $2 |
2716 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2717 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 cat >conftest.$ac_ext <<_ACEOF
2721 #line $LINENO "configure"
2724 cat confdefs.h >>conftest.$ac_ext
2725 cat >>conftest.$ac_ext <<_ACEOF
2726 /* end confdefs.h. */
2736 # Make sure it works both with $CC and with simple cc.
2737 # We do the test twice because some compilers refuse to overwrite an
2738 # existing .o file with -o, though they will create one.
2739 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2740 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } &&
2745 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749 (exit $ac_status); };
2751 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2752 if test "x$CC" != xcc; then
2753 # Test first that cc exists at all.
2754 if { ac_try='cc -c conftest.$ac_ext >&5'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; }; then
2760 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2761 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); } &&
2766 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); };
2775 # cc exists but doesn't like -o.
2776 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2781 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2786 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2787 echo "$as_me:$LINENO: result: yes" >&5
2788 echo "${ECHO_T}yes" >&6
2790 echo "$as_me:$LINENO: result: no" >&5
2791 echo "${ECHO_T}no" >&6
2793 cat >>confdefs.h <<\_ACEOF
2794 #define NO_MINUS_C_MINUS_O 1
2800 ac_cpp='$CPP $CPPFLAGS'
2801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2804 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2805 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2806 # On Suns, sometimes $CPP names a directory.
2807 if test -n "$CPP" && test -d "$CPP"; then
2810 if test -z "$CPP"; then
2811 if test "${ac_cv_prog_CPP+set}" = set; then
2812 echo $ECHO_N "(cached) $ECHO_C" >&6
2814 # Double quotes because CPP needs to be expanded
2815 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2818 for ac_c_preproc_warn_flag in '' yes
2820 # Use a header file that comes with gcc, so configuring glibc
2821 # with a fresh cross-compiler works.
2822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2823 # <limits.h> exists even on freestanding compilers.
2824 # On the NeXT, cc -E runs the code through the compiler's parser,
2825 # not just through cpp. "Syntax error" is here to catch this case.
2826 cat >conftest.$ac_ext <<_ACEOF
2827 #line $LINENO "configure"
2830 cat confdefs.h >>conftest.$ac_ext
2831 cat >>conftest.$ac_ext <<_ACEOF
2832 /* end confdefs.h. */
2834 # include <limits.h>
2836 # include <assert.h>
2840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2843 grep -v '^ *+' conftest.er1 >conftest.err
2845 cat conftest.err >&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); } >/dev/null; then
2848 if test -s conftest.err; then
2849 ac_cpp_err=$ac_c_preproc_warn_flag
2856 if test -z "$ac_cpp_err"; then
2859 echo "$as_me: failed program was:" >&5
2860 sed 's/^/| /' conftest.$ac_ext >&5
2862 # Broken: fails on valid input.
2865 rm -f conftest.err conftest.$ac_ext
2867 # OK, works on sane cases. Now check whether non-existent headers
2868 # can be detected and how.
2869 cat >conftest.$ac_ext <<_ACEOF
2870 #line $LINENO "configure"
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2876 #include <ac_nonexistent.h>
2878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2881 grep -v '^ *+' conftest.er1 >conftest.err
2883 cat conftest.err >&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } >/dev/null; then
2886 if test -s conftest.err; then
2887 ac_cpp_err=$ac_c_preproc_warn_flag
2894 if test -z "$ac_cpp_err"; then
2895 # Broken: success on invalid input.
2898 echo "$as_me: failed program was:" >&5
2899 sed 's/^/| /' conftest.$ac_ext >&5
2901 # Passes both tests.
2905 rm -f conftest.err conftest.$ac_ext
2908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2909 rm -f conftest.err conftest.$ac_ext
2910 if $ac_preproc_ok; then
2922 echo "$as_me:$LINENO: result: $CPP" >&5
2923 echo "${ECHO_T}$CPP" >&6
2925 for ac_c_preproc_warn_flag in '' yes
2927 # Use a header file that comes with gcc, so configuring glibc
2928 # with a fresh cross-compiler works.
2929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2930 # <limits.h> exists even on freestanding compilers.
2931 # On the NeXT, cc -E runs the code through the compiler's parser,
2932 # not just through cpp. "Syntax error" is here to catch this case.
2933 cat >conftest.$ac_ext <<_ACEOF
2934 #line $LINENO "configure"
2937 cat confdefs.h >>conftest.$ac_ext
2938 cat >>conftest.$ac_ext <<_ACEOF
2939 /* end confdefs.h. */
2941 # include <limits.h>
2943 # include <assert.h>
2947 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2948 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2950 grep -v '^ *+' conftest.er1 >conftest.err
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } >/dev/null; then
2955 if test -s conftest.err; then
2956 ac_cpp_err=$ac_c_preproc_warn_flag
2963 if test -z "$ac_cpp_err"; then
2966 echo "$as_me: failed program was:" >&5
2967 sed 's/^/| /' conftest.$ac_ext >&5
2969 # Broken: fails on valid input.
2972 rm -f conftest.err conftest.$ac_ext
2974 # OK, works on sane cases. Now check whether non-existent headers
2975 # can be detected and how.
2976 cat >conftest.$ac_ext <<_ACEOF
2977 #line $LINENO "configure"
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2983 #include <ac_nonexistent.h>
2985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2988 grep -v '^ *+' conftest.er1 >conftest.err
2990 cat conftest.err >&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); } >/dev/null; then
2993 if test -s conftest.err; then
2994 ac_cpp_err=$ac_c_preproc_warn_flag
3001 if test -z "$ac_cpp_err"; then
3002 # Broken: success on invalid input.
3005 echo "$as_me: failed program was:" >&5
3006 sed 's/^/| /' conftest.$ac_ext >&5
3008 # Passes both tests.
3012 rm -f conftest.err conftest.$ac_ext
3015 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3016 rm -f conftest.err conftest.$ac_ext
3017 if $ac_preproc_ok; then
3020 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3021 See \`config.log' for more details." >&5
3022 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3023 See \`config.log' for more details." >&2;}
3024 { (exit 1); exit 1; }; }
3028 ac_cpp='$CPP $CPPFLAGS'
3029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3034 echo "$as_me:$LINENO: checking for egrep" >&5
3035 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3036 if test "${ac_cv_prog_egrep+set}" = set; then
3037 echo $ECHO_N "(cached) $ECHO_C" >&6
3039 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3040 then ac_cv_prog_egrep='grep -E'
3041 else ac_cv_prog_egrep='egrep'
3044 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3045 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3046 EGREP=$ac_cv_prog_egrep
3049 if test $ac_cv_c_compiler_gnu = yes; then
3050 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3051 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3052 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3053 echo $ECHO_N "(cached) $ECHO_C" >&6
3055 ac_pattern="Autoconf.*'x'"
3056 cat >conftest.$ac_ext <<_ACEOF
3057 #line $LINENO "configure"
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3067 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3068 ac_cv_prog_gcc_traditional=yes
3070 ac_cv_prog_gcc_traditional=no
3075 if test $ac_cv_prog_gcc_traditional = no; then
3076 cat >conftest.$ac_ext <<_ACEOF
3077 #line $LINENO "configure"
3080 cat confdefs.h >>conftest.$ac_ext
3081 cat >>conftest.$ac_ext <<_ACEOF
3082 /* end confdefs.h. */
3086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3087 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3088 ac_cv_prog_gcc_traditional=yes
3094 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3095 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3096 if test $ac_cv_prog_gcc_traditional = yes; then
3097 CC="$CC -traditional"
3103 cat >>confdefs.h <<\_ACEOF
3109 # Find a good install program. We prefer a C program (faster),
3110 # so one script is as good as another. But avoid the broken or
3111 # incompatible versions:
3112 # SysV /etc/install, /usr/sbin/install
3113 # SunOS /usr/etc/install
3114 # IRIX /sbin/install
3116 # AmigaOS /C/install, which installs bootblocks on floppy discs
3117 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3118 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3119 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3120 # ./install, which can be erroneously created by make from ./install.sh.
3121 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3122 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3123 if test -z "$INSTALL"; then
3124 if test "${ac_cv_path_install+set}" = set; then
3125 echo $ECHO_N "(cached) $ECHO_C" >&6
3127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 test -z "$as_dir" && as_dir=.
3132 # Account for people who put trailing slashes in PATH elements.
3134 ./ | .// | /cC/* | \
3135 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3138 # OSF1 and SCO ODT 3.0 have their own names for install.
3139 # Don't use installbsd from OSF since it installs stuff as root
3141 for ac_prog in ginstall scoinst install; do
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3144 if test $ac_prog = install &&
3145 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3146 # AIX install. It has an incompatible calling convention.
3148 elif test $ac_prog = install &&
3149 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3150 # program-specific install script used by HP pwplus--don't use.
3153 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3165 if test "${ac_cv_path_install+set}" = set; then
3166 INSTALL=$ac_cv_path_install
3168 # As a last resort, use the slow shell script. We don't cache a
3169 # path for INSTALL within a source directory, because that will
3170 # break other packages using the cache if that directory is
3171 # removed, or if the path is relative.
3172 INSTALL=$ac_install_sh
3175 echo "$as_me:$LINENO: result: $INSTALL" >&5
3176 echo "${ECHO_T}$INSTALL" >&6
3178 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3179 # It thinks the first close brace ends the variable substitution.
3180 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3182 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3184 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3186 if test -n "$ac_tool_prefix"; then
3187 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3188 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3189 echo "$as_me:$LINENO: checking for $ac_word" >&5
3190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191 if test "${ac_cv_prog_RANLIB+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 if test -n "$RANLIB"; then
3195 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 test -z "$as_dir" && as_dir=.
3202 for ac_exec_ext in '' $ac_executable_extensions; do
3203 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3204 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 RANLIB=$ac_cv_prog_RANLIB
3214 if test -n "$RANLIB"; then
3215 echo "$as_me:$LINENO: result: $RANLIB" >&5
3216 echo "${ECHO_T}$RANLIB" >&6
3218 echo "$as_me:$LINENO: result: no" >&5
3219 echo "${ECHO_T}no" >&6
3223 if test -z "$ac_cv_prog_RANLIB"; then
3224 ac_ct_RANLIB=$RANLIB
3225 # Extract the first word of "ranlib", so it can be a program name with args.
3226 set dummy ranlib; ac_word=$2
3227 echo "$as_me:$LINENO: checking for $ac_word" >&5
3228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3229 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 if test -n "$ac_ct_RANLIB"; then
3233 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3242 ac_cv_prog_ac_ct_RANLIB="ranlib"
3243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3249 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3252 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3253 if test -n "$ac_ct_RANLIB"; then
3254 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3255 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3257 echo "$as_me:$LINENO: result: no" >&5
3258 echo "${ECHO_T}no" >&6
3261 RANLIB=$ac_ct_RANLIB
3263 RANLIB="$ac_cv_prog_RANLIB"
3266 # Extract the first word of "mv", so it can be a program name with args.
3267 set dummy mv; ac_word=$2
3268 echo "$as_me:$LINENO: checking for $ac_word" >&5
3269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3270 if test "${ac_cv_path_MV+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3275 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3285 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3298 if test -n "$MV"; then
3299 echo "$as_me:$LINENO: result: $MV" >&5
3300 echo "${ECHO_T}$MV" >&6
3302 echo "$as_me:$LINENO: result: no" >&5
3303 echo "${ECHO_T}no" >&6
3306 # Extract the first word of "rm", so it can be a program name with args.
3307 set dummy rm; ac_word=$2
3308 echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3310 if test "${ac_cv_path_RM+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 test -z "$as_dir" && as_dir=.
3323 for ac_exec_ext in '' $ac_executable_extensions; do
3324 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3325 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3338 if test -n "$RM"; then
3339 echo "$as_me:$LINENO: result: $RM" >&5
3340 echo "${ECHO_T}$RM" >&6
3342 echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6
3346 # Extract the first word of "cp", so it can be a program name with args.
3347 set dummy cp; ac_word=$2
3348 echo "$as_me:$LINENO: checking for $ac_word" >&5
3349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3350 if test "${ac_cv_path_CP+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3355 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 test -z "$as_dir" && as_dir=.
3363 for ac_exec_ext in '' $ac_executable_extensions; do
3364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3365 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3378 if test -n "$CP"; then
3379 echo "$as_me:$LINENO: result: $CP" >&5
3380 echo "${ECHO_T}$CP" >&6
3382 echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6
3386 # Extract the first word of "sed", so it can be a program name with args.
3387 set dummy sed; ac_word=$2
3388 echo "$as_me:$LINENO: checking for $ac_word" >&5
3389 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3390 if test "${ac_cv_path_SED+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3406 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3418 if test -n "$SED"; then
3419 echo "$as_me:$LINENO: result: $SED" >&5
3420 echo "${ECHO_T}$SED" >&6
3422 echo "$as_me:$LINENO: result: no" >&5
3423 echo "${ECHO_T}no" >&6
3426 # Extract the first word of "awk", so it can be a program name with args.
3427 set dummy awk; ac_word=$2
3428 echo "$as_me:$LINENO: checking for $ac_word" >&5
3429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3430 if test "${ac_cv_path_AWK+set}" = set; then
3431 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 test -z "$as_dir" && as_dir=.
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3445 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3458 if test -n "$AWK"; then
3459 echo "$as_me:$LINENO: result: $AWK" >&5
3460 echo "${ECHO_T}$AWK" >&6
3462 echo "$as_me:$LINENO: result: no" >&5
3463 echo "${ECHO_T}no" >&6
3466 # Extract the first word of "echo", so it can be a program name with args.
3467 set dummy echo; ac_word=$2
3468 echo "$as_me:$LINENO: checking for $ac_word" >&5
3469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3470 if test "${ac_cv_path_ECHO+set}" = set; then
3471 echo $ECHO_N "(cached) $ECHO_C" >&6
3475 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482 test -z "$as_dir" && as_dir=.
3483 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3485 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3496 ECHO=$ac_cv_path_ECHO
3498 if test -n "$ECHO"; then
3499 echo "$as_me:$LINENO: result: $ECHO" >&5
3500 echo "${ECHO_T}$ECHO" >&6
3502 echo "$as_me:$LINENO: result: no" >&5
3503 echo "${ECHO_T}no" >&6
3506 # Extract the first word of "cmp", so it can be a program name with args.
3507 set dummy cmp; ac_word=$2
3508 echo "$as_me:$LINENO: checking for $ac_word" >&5
3509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3510 if test "${ac_cv_path_CMP+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3515 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3525 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3532 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3538 if test -n "$CMP"; then
3539 echo "$as_me:$LINENO: result: $CMP" >&5
3540 echo "${ECHO_T}$CMP" >&6
3542 echo "$as_me:$LINENO: result: no" >&5
3543 echo "${ECHO_T}no" >&6
3546 # Extract the first word of "tbl", so it can be a program name with args.
3547 set dummy tbl; ac_word=$2
3548 echo "$as_me:$LINENO: checking for $ac_word" >&5
3549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3550 if test "${ac_cv_path_TBL+set}" = set; then
3551 echo $ECHO_N "(cached) $ECHO_C" >&6
3555 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 test -z "$as_dir" && as_dir=.
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3565 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3578 if test -n "$TBL"; then
3579 echo "$as_me:$LINENO: result: $TBL" >&5
3580 echo "${ECHO_T}$TBL" >&6
3582 echo "$as_me:$LINENO: result: no" >&5
3583 echo "${ECHO_T}no" >&6
3586 # Extract the first word of "ar", so it can be a program name with args.
3587 set dummy ar; ac_word=$2
3588 echo "$as_me:$LINENO: checking for $ac_word" >&5
3589 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3590 if test "${ac_cv_path_AR+set}" = set; then
3591 echo $ECHO_N "(cached) $ECHO_C" >&6
3595 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir=.
3603 for ac_exec_ext in '' $ac_executable_extensions; do
3604 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3605 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3612 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3618 if test -n "$AR"; then
3619 echo "$as_me:$LINENO: result: $AR" >&5
3620 echo "${ECHO_T}$AR" >&6
3622 echo "$as_me:$LINENO: result: no" >&5
3623 echo "${ECHO_T}no" >&6
3626 # Extract the first word of "ranlib", so it can be a program name with args.
3627 set dummy ranlib; ac_word=$2
3628 echo "$as_me:$LINENO: checking for $ac_word" >&5
3629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3630 if test "${ac_cv_path_RANLIB+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 ac_cv_path_RANLIB="$RANLIB" # Let the user override the test with a path.
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 test -z "$as_dir" && as_dir=.
3643 for ac_exec_ext in '' $ac_executable_extensions; do
3644 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3645 ac_cv_path_RANLIB="$as_dir/$ac_word$ac_exec_ext"
3646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 test -z "$ac_cv_path_RANLIB" && ac_cv_path_RANLIB="ranlib"
3656 RANLIB=$ac_cv_path_RANLIB
3658 if test -n "$RANLIB"; then
3659 echo "$as_me:$LINENO: result: $RANLIB" >&5
3660 echo "${ECHO_T}$RANLIB" >&6
3662 echo "$as_me:$LINENO: result: no" >&5
3663 echo "${ECHO_T}no" >&6
3666 # Extract the first word of "openssl", so it can be a program name with args.
3667 set dummy openssl; ac_word=$2
3668 echo "$as_me:$LINENO: checking for $ac_word" >&5
3669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3670 if test "${ac_cv_path_OPENSSL+set}" = set; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3675 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3682 test -z "$as_dir" && as_dir=.
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3685 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3692 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3696 OPENSSL=$ac_cv_path_OPENSSL
3698 if test -n "$OPENSSL"; then
3699 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3700 echo "${ECHO_T}$OPENSSL" >&6
3702 echo "$as_me:$LINENO: result: no" >&5
3703 echo "${ECHO_T}no" >&6
3706 # Extract the first word of "mtx", so it can be a program name with args.
3707 set dummy mtx; ac_word=$2
3708 echo "$as_me:$LINENO: checking for $ac_word" >&5
3709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3710 if test "${ac_cv_path_MTX+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 test -z "$as_dir" && as_dir=.
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3725 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3738 if test -n "$MTX"; then
3739 echo "$as_me:$LINENO: result: $MTX" >&5
3740 echo "${ECHO_T}$MTX" >&6
3742 echo "$as_me:$LINENO: result: no" >&5
3743 echo "${ECHO_T}no" >&6
3746 # Extract the first word of "pkg-config", so it can be a program name with args.
3747 set dummy pkg-config; ac_word=$2
3748 echo "$as_me:$LINENO: checking for $ac_word" >&5
3749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3750 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3762 test -z "$as_dir" && as_dir=.
3763 for ac_exec_ext in '' $ac_executable_extensions; do
3764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3765 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3776 PKGCONFIG=$ac_cv_path_PKGCONFIG
3778 if test -n "$PKGCONFIG"; then
3779 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3780 echo "${ECHO_T}$PKGCONFIG" >&6
3782 echo "$as_me:$LINENO: result: no" >&5
3783 echo "${ECHO_T}no" >&6
3787 test -n "$ARFLAG" || ARFLAGS="cr"
3800 echo "$as_me:$LINENO: checking for Operating System" >&5
3801 echo $ECHO_N "checking for Operating System... $ECHO_C" >&6
3804 *cygwin* ) CYGWIN=yes;;
3808 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3814 HAVE_SUN_OS_FALSE='#'
3816 HAVE_SUN_OS_TRUE='#'
3819 cat >>confdefs.h <<\_ACEOF
3820 #define HAVE_SUN_OS 1
3828 HAVE_SUN_OS_FALSE='#'
3830 HAVE_SUN_OS_TRUE='#'
3835 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3841 HAVE_OSF1_OS_FALSE='#'
3843 HAVE_OSF1_OS_TRUE='#'
3846 cat >>confdefs.h <<\_ACEOF
3847 #define HAVE_OSF1_OS 1
3855 HAVE_OSF1_OS_FALSE='#'
3857 HAVE_OSF1_OS_TRUE='#'
3862 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3868 HAVE_AIX_OS_FALSE='#'
3870 HAVE_AIX_OS_TRUE='#'
3873 cat >>confdefs.h <<\_ACEOF
3874 #define HAVE_AIX_OS 1
3882 HAVE_AIX_OS_FALSE='#'
3884 HAVE_AIX_OS_TRUE='#'
3889 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3895 HAVE_HPUX_OS_FALSE='#'
3897 HAVE_HPUX_OS_TRUE='#'
3900 cat >>confdefs.h <<\_ACEOF
3901 #define HAVE_HPUX_OS 1
3909 HAVE_HPUX_OS_FALSE='#'
3911 HAVE_HPUX_OS_TRUE='#'
3916 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3922 HAVE_LINUX_OS_FALSE='#'
3924 HAVE_LINUX_OS_TRUE='#'
3925 HAVE_LINUX_OS_FALSE=
3927 cat >>confdefs.h <<\_ACEOF
3928 #define HAVE_LINUX_OS 1
3936 HAVE_LINUX_OS_FALSE='#'
3938 HAVE_LINUX_OS_TRUE='#'
3939 HAVE_LINUX_OS_FALSE=
3943 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
3948 HAVE_FREEBSD_OS_TRUE=
3949 HAVE_FREEBSD_OS_FALSE='#'
3951 HAVE_FREEBSD_OS_TRUE='#'
3952 HAVE_FREEBSD_OS_FALSE=
3954 cat >>confdefs.h <<\_ACEOF
3955 #define HAVE_FREEBSD_OS 1
3962 HAVE_FREEBSD_OS_TRUE=
3963 HAVE_FREEBSD_OS_FALSE='#'
3965 HAVE_FREEBSD_OS_TRUE='#'
3966 HAVE_FREEBSD_OS_FALSE=
3970 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
3975 HAVE_NETBSD_OS_TRUE=
3976 HAVE_NETBSD_OS_FALSE='#'
3978 HAVE_NETBSD_OS_TRUE='#'
3979 HAVE_NETBSD_OS_FALSE=
3981 cat >>confdefs.h <<\_ACEOF
3982 #define HAVE_NETBSD_OS 1
3989 HAVE_NETBSD_OS_TRUE=
3990 HAVE_NETBSD_OS_FALSE='#'
3992 HAVE_NETBSD_OS_TRUE='#'
3993 HAVE_NETBSD_OS_FALSE=
3997 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4002 HAVE_OPENBSD_OS_TRUE=
4003 HAVE_OPENBSD_OS_FALSE='#'
4005 HAVE_OPENBSD_OS_TRUE='#'
4006 HAVE_OPENBSD_OS_FALSE=
4008 cat >>confdefs.h <<\_ACEOF
4009 #define HAVE_OPENBSD_OS 1
4016 HAVE_OPENBSD_OS_TRUE=
4017 HAVE_OPENBSD_OS_FALSE='#'
4019 HAVE_OPENBSD_OS_TRUE='#'
4020 HAVE_OPENBSD_OS_FALSE=
4024 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4030 HAVE_BSDI_OS_FALSE='#'
4032 HAVE_BSDI_OS_TRUE='#'
4035 cat >>confdefs.h <<\_ACEOF
4036 #define HAVE_BSDI_OS 1
4044 HAVE_BSDI_OS_FALSE='#'
4046 HAVE_BSDI_OS_TRUE='#'
4051 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4057 HAVE_SGI_OS_FALSE='#'
4059 HAVE_SGI_OS_TRUE='#'
4062 cat >>confdefs.h <<\_ACEOF
4063 #define HAVE_SGI_OS 1
4071 HAVE_SGI_OS_FALSE='#'
4073 HAVE_SGI_OS_TRUE='#'
4078 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4084 HAVE_IRIX_OS_FALSE='#'
4086 HAVE_IRIX_OS_TRUE='#'
4089 cat >>confdefs.h <<\_ACEOF
4090 #define HAVE_IRIX_OS 1
4098 HAVE_IRIX_OS_FALSE='#'
4100 HAVE_IRIX_OS_TRUE='#'
4105 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4110 HAVE_DARWIN_OS_TRUE=
4111 HAVE_DARWIN_OS_FALSE='#'
4113 HAVE_DARWIN_OS_TRUE='#'
4114 HAVE_DARWIN_OS_FALSE=
4116 cat >>confdefs.h <<\_ACEOF
4117 #define HAVE_DARWIN_OS 1
4124 HAVE_DARWIN_OS_TRUE=
4125 HAVE_DARWIN_OS_FALSE='#'
4127 HAVE_DARWIN_OS_TRUE='#'
4128 HAVE_DARWIN_OS_FALSE=
4132 echo "$as_me:$LINENO: result: \" \"" >&5
4133 echo "${ECHO_T}\" \"" >&6
4136 # -----------------------------------------------------------
4137 # ----------------------------------------------------------
4138 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4139 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4140 if test "x$DISTNAME" != "x"
4142 echo "distname set to $DISTNAME"
4143 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4146 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4149 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4152 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4155 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4158 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4161 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4164 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4167 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4170 elif test -f /etc/SuSE-release
4173 elif test -d /etc/SuSEconfig
4176 elif test -f /etc/mandrake-release
4179 elif test -f /etc/redhat-release
4182 elif test -f /etc/gentoo-release
4185 elif test -f /etc/debian_version
4188 elif test -f /etc/slackware-version
4191 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4194 elif test -f /etc/engarde-version
4197 elif test "$CYGWIN" = yes
4200 cat >>confdefs.h <<\_ACEOF
4201 #define HAVE_CYGWIN 1
4207 echo "$as_me:$LINENO: result: \" \"" >&5
4208 echo "${ECHO_T}\" \"" >&6
4211 # -----------------------------------------------------------
4212 # ----------------------------------------------------------
4217 INSIDE_GNOME_COMMON_TRUE=
4218 INSIDE_GNOME_COMMON_FALSE='#'
4220 INSIDE_GNOME_COMMON_TRUE='#'
4221 INSIDE_GNOME_COMMON_FALSE=
4224 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4226 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4229 # ------------------------------------------------------------------
4230 # If the user has not set --prefix, we set our default to nothing.
4231 # In this case, if the user has not set --sysconfdir, we set it
4232 # to the package default of /etc/bacula. If either --prefix or
4233 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4234 # ------------------------------------------------------------------
4235 if test x${prefix} = xNONE ; then
4236 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4237 sysconfdir=/etc/bacula
4241 sysconfdir=`eval echo ${sysconfdir}`
4243 # -------------------------------------------------------------------------
4244 # If the user has not set --exec-prefix, we default to ${prefix}
4245 # -------------------------------------------------------------------------
4246 if test x${exec_prefix} = xNONE ; then
4247 exec_prefix=${prefix}
4250 # ------------------------------------------------------------------
4251 # If the user has not set --sbindir, we set our default as /sbin
4252 # ------------------------------------------------------------------
4253 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4254 sbindir=${exec_prefix}/sbin
4256 sbindir=`eval echo ${sbindir}`
4258 # ------------------------------------------------------------------
4259 # All list of languages for which a translation exist. Each
4260 # language is separated by a space.
4261 # ------------------------------------------------------------------
4264 for ac_prog in msgfmt
4266 # Extract the first word of "$ac_prog", so it can be a program name with args.
4267 set dummy $ac_prog; ac_word=$2
4268 echo "$as_me:$LINENO: checking for $ac_word" >&5
4269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4270 if test "${ac_cv_path_MSGFMT+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4275 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 MSGFMT=$ac_cv_path_MSGFMT
4297 if test -n "$MSGFMT"; then
4298 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4299 echo "${ECHO_T}$MSGFMT" >&6
4301 echo "$as_me:$LINENO: result: no" >&5
4302 echo "${ECHO_T}no" >&6
4305 test -n "$MSGFMT" && break
4307 test -n "$MSGFMT" || MSGFMT="no"
4309 if test "$MSGFMT" = "no"
4311 echo 'msgfmt program not found, disabling NLS !'
4313 USE_INCLUDED_LIBINTL=no
4321 support_postgresql=no
4322 support_smartalloc=yes
4327 support_static_tools=no
4328 support_static_fd=no
4329 support_static_sd=no
4330 support_static_dir=no
4331 support_static_cons=no
4332 build_client_only=no
4338 # -------------------------------------------
4339 # gnome (default off)
4340 # -------------------------------------------
4341 # Check whether --enable-gnome or --disable-gnome was given.
4342 if test "${enable_gnome+set}" = set; then
4343 enableval="$enable_gnome"
4344 if test x$enableval = xyes; then
4350 if test x$support_gnome = xyes; then
4351 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4353 if test $pkg = 0; then
4354 GNOME_INCLUDEDIR=`pkg-config --cflags-only-I libgnomeui-2.0`
4355 GNOMEUI_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4356 GNOME_LIBDIR=`pkg-config --libs libgnomeui-2.0`
4357 GNOME_LIBS=`pkg-config --libs-only-l libgnomeui-2.0`
4362 GNOME_DIR=src/gnome2-console
4363 gnome_version="Version 2.x"
4376 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4377 if test "${with_gnome_includes+set}" = set; then
4378 withval="$with_gnome_includes"
4380 CFLAGS="$CFLAGS -I$withval"
4385 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4386 if test "${with_gnome_libs+set}" = set; then
4387 withval="$with_gnome_libs"
4389 LDFLAGS="$LDFLAGS -L$withval"
4390 gnome_prefix=$withval
4395 # Check whether --with-gnome or --without-gnome was given.
4396 if test "${with_gnome+set}" = set; then
4397 withval="$with_gnome"
4398 if test x$withval = xyes; then
4402 if test "x$withval" = xno; then
4406 LDFLAGS="$LDFLAGS -L$withval/lib"
4407 CFLAGS="$CFLAGS -I$withval/include"
4408 gnome_prefix=$withval/lib
4415 if test "x$want_gnome" = xyes; then
4417 # Extract the first word of "gnome-config", so it can be a program name with args.
4418 set dummy gnome-config; ac_word=$2
4419 echo "$as_me:$LINENO: checking for $ac_word" >&5
4420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4421 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4422 echo $ECHO_N "(cached) $ECHO_C" >&6
4424 case $GNOME_CONFIG in
4426 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4436 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4443 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4447 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4449 if test -n "$GNOME_CONFIG"; then
4450 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4451 echo "${ECHO_T}$GNOME_CONFIG" >&6
4453 echo "$as_me:$LINENO: result: no" >&5
4454 echo "${ECHO_T}no" >&6
4457 if test "$GNOME_CONFIG" = "no"; then
4458 no_gnome_config="yes"
4460 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4461 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4462 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4463 echo "$as_me:$LINENO: result: yes" >&5
4464 echo "${ECHO_T}yes" >&6
4467 # Extract the first word of "orbit-config", so it can be a program name with args.
4468 set dummy orbit-config; ac_word=$2
4469 echo "$as_me:$LINENO: checking for $ac_word" >&5
4470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4471 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4472 echo $ECHO_N "(cached) $ECHO_C" >&6
4474 case $ORBIT_CONFIG in
4476 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 test -z "$as_dir" && as_dir=.
4484 for ac_exec_ext in '' $ac_executable_extensions; do
4485 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4486 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4497 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4499 if test -n "$ORBIT_CONFIG"; then
4500 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4501 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4503 echo "$as_me:$LINENO: result: no" >&5
4504 echo "${ECHO_T}no" >&6
4507 # Extract the first word of "orbit-idl", so it can be a program name with args.
4508 set dummy orbit-idl; ac_word=$2
4509 echo "$as_me:$LINENO: checking for $ac_word" >&5
4510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4511 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4512 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 test -z "$as_dir" && as_dir=.
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4526 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4533 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4537 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4539 if test -n "$ORBIT_IDL"; then
4540 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4541 echo "${ECHO_T}$ORBIT_IDL" >&6
4543 echo "$as_me:$LINENO: result: no" >&5
4544 echo "${ECHO_T}no" >&6
4547 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4548 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4549 if test "${gnome_cv_orbit_found+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4554 gnome_cv_orbit_found=no
4556 gnome_cv_orbit_found=yes
4560 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4561 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4564 if test x$gnome_cv_orbit_found = xyes; then
4566 HAVE_ORBIT_FALSE='#'
4571 if test x$gnome_cv_orbit_found = xyes; then
4573 ORBIT_CFLAGS=`orbit-config --cflags client server`
4574 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4578 if test xfail = xfailure; then
4579 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4580 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4581 { (exit 1); exit 1; }; }
4585 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4586 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4587 if test "${gnome_cv_gnorba_found+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4591 gnome_cv_gnorba_found=no
4592 if test x$gnome_cv_orbit_found = xyes; then
4593 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4594 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4595 if test -n "$GNORBA_LIBS"; then
4596 gnome_cv_gnorba_found=yes
4601 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4602 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4605 if test x$gnome_cv_gnorba_found = xyes; then
4607 HAVE_GNORBA_FALSE='#'
4609 HAVE_GNORBA_TRUE='#'
4612 if test x$gnome_cv_orbit_found = xyes; then
4614 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4615 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4619 if test xfail = xfailure; then
4620 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4621 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4622 { (exit 1); exit 1; }; }
4626 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4627 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4628 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4629 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4630 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4631 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4632 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4635 echo "$as_me:$LINENO: result: no" >&5
4636 echo "${ECHO_T}no" >&6
4637 no_gnome_config="yes"
4641 if test x$exec_prefix = xNONE; then
4642 if test x$prefix = xNONE; then
4643 gnome_prefix=$ac_default_prefix/lib
4645 gnome_prefix=$prefix/lib
4648 gnome_prefix=`eval echo \`echo $libdir\``
4651 if test "$no_gnome_config" = "yes"; then
4652 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4653 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4654 if test -f $gnome_prefix/gnomeConf.sh; then
4655 echo "$as_me:$LINENO: result: found" >&5
4656 echo "${ECHO_T}found" >&6
4657 echo "loading gnome configuration from" \
4658 "$gnome_prefix/gnomeConf.sh"
4659 . $gnome_prefix/gnomeConf.sh
4662 echo "$as_me:$LINENO: result: not found" >&5
4663 echo "${ECHO_T}not found" >&6
4664 if test xfail = xfail; then
4665 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4666 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4667 { (exit 1); exit 1; }; }
4676 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4677 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4681 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4682 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4683 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4686 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4687 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4688 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4691 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4692 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4693 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4695 echo "$as_me:$LINENO: result: unknown library" >&5
4696 echo "${ECHO_T}unknown library" >&6
4698 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4699 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4704 GNOME_DIR=src/gnome-console
4705 gnome_version="Version 1.4"
4711 # -------------------------------------------
4712 # smartalloc (default off)
4713 # -------------------------------------------
4714 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4715 if test "${enable_smartalloc+set}" = set; then
4716 enableval="$enable_smartalloc"
4717 if test x$enableval = xno; then
4718 support_smartalloc=no
4722 if test x$support_smartalloc = xyes; then
4723 cat >>confdefs.h <<\_ACEOF
4724 #define SMARTALLOC 1
4729 # -------------------------------------------
4730 # static-tools (default off)
4731 # -------------------------------------------
4732 # Check whether --enable-static-tools or --disable-static-tools was given.
4733 if test "${enable_static_tools+set}" = set; then
4734 enableval="$enable_static_tools"
4735 if test x$enableval = xyes; then
4736 support_static_tools=yes
4741 if test x$support_static_tools = xyes; then
4742 TTOOL_LDFLAGS="-static"
4746 # -------------------------------------------
4747 # static-fd (default off)
4748 # -------------------------------------------
4749 # Check whether --enable-static-fd or --disable-static-fd was given.
4750 if test "${enable_static_fd+set}" = set; then
4751 enableval="$enable_static_fd"
4752 if test x$enableval = xyes; then
4753 support_static_fd=yes
4758 if test x$support_static_fd = xyes; then
4759 STATIC_FD="static-bacula-fd"
4763 # -------------------------------------------
4764 # static-sd (default off)
4765 # -------------------------------------------
4766 # Check whether --enable-static-sd or --disable-static-sd was given.
4767 if test "${enable_static_sd+set}" = set; then
4768 enableval="$enable_static_sd"
4769 if test x$enableval = xyes; then
4770 support_static_sd=yes
4775 if test x$support_static_sd = xyes; then
4776 STATIC_SD="static-bacula-sd"
4780 # -------------------------------------------
4781 # static-dir (default off)
4782 # -------------------------------------------
4783 # Check whether --enable-static-dir or --disable-static-dir was given.
4784 if test "${enable_static_dir+set}" = set; then
4785 enableval="$enable_static_dir"
4786 if test x$enableval = xyes; then
4787 support_static_dir=yes
4792 if test x$support_static_dir = xyes; then
4793 STATIC_DIR="static-bacula-dir"
4797 # -------------------------------------------
4798 # static-cons (default off)
4799 # -------------------------------------------
4800 # Check whether --enable-static-cons or --disable-static-cons was given.
4801 if test "${enable_static_cons+set}" = set; then
4802 enableval="$enable_static_cons"
4803 if test x$enableval = xyes; then
4804 support_static_cons=yes
4809 if test x$support_static_cons = xyes; then
4810 STATIC_CONS="static-bconsole"
4814 # -------------------------------------------
4815 # client_only (default off)
4816 # -------------------------------------------
4817 # Check whether --enable-client-only or --disable-client-only was given.
4818 if test "${enable_client_only+set}" = set; then
4819 enableval="$enable_client_only"
4820 if test x$enableval = xyes; then
4821 build_client_only=yes
4824 if test x$build_client_only = xno; then
4831 # ---------------------------------------------------
4832 # Check for conio (Bacula readline substitute)(
4833 # ---------------------------------------------------
4834 # this allows you to turn it completely off
4835 # Check whether --enable-conio or --disable-conio was given.
4836 if test "${enable_conio+set}" = set; then
4837 enableval="$enable_conio"
4838 if test x$enableval = xno; then
4844 if test x$support_conio = xyes; then
4848 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4849 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4850 if test "${ac_cv_header_stdc+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4853 cat >conftest.$ac_ext <<_ACEOF
4854 #line $LINENO "configure"
4857 cat confdefs.h >>conftest.$ac_ext
4858 cat >>conftest.$ac_ext <<_ACEOF
4859 /* end confdefs.h. */
4873 rm -f conftest.$ac_objext
4874 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4875 (eval $ac_compile) 2>&5
4877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4878 (exit $ac_status); } &&
4879 { ac_try='test -s conftest.$ac_objext'
4880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); }; }; then
4885 ac_cv_header_stdc=yes
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4890 ac_cv_header_stdc=no
4892 rm -f conftest.$ac_objext conftest.$ac_ext
4894 if test $ac_cv_header_stdc = yes; then
4895 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4896 cat >conftest.$ac_ext <<_ACEOF
4897 #line $LINENO "configure"
4900 cat confdefs.h >>conftest.$ac_ext
4901 cat >>conftest.$ac_ext <<_ACEOF
4902 /* end confdefs.h. */
4906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4907 $EGREP "memchr" >/dev/null 2>&1; then
4910 ac_cv_header_stdc=no
4916 if test $ac_cv_header_stdc = yes; then
4917 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4918 cat >conftest.$ac_ext <<_ACEOF
4919 #line $LINENO "configure"
4922 cat confdefs.h >>conftest.$ac_ext
4923 cat >>conftest.$ac_ext <<_ACEOF
4924 /* end confdefs.h. */
4928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4929 $EGREP "free" >/dev/null 2>&1; then
4932 ac_cv_header_stdc=no
4938 if test $ac_cv_header_stdc = yes; then
4939 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4940 if test "$cross_compiling" = yes; then
4943 cat >conftest.$ac_ext <<_ACEOF
4944 #line $LINENO "configure"
4947 cat confdefs.h >>conftest.$ac_ext
4948 cat >>conftest.$ac_ext <<_ACEOF
4949 /* end confdefs.h. */
4951 #if ((' ' & 0x0FF) == 0x020)
4952 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4953 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4955 # define ISLOWER(c) \
4956 (('a' <= (c) && (c) <= 'i') \
4957 || ('j' <= (c) && (c) <= 'r') \
4958 || ('s' <= (c) && (c) <= 'z'))
4959 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4962 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4967 for (i = 0; i < 256; i++)
4968 if (XOR (islower (i), ISLOWER (i))
4969 || toupper (i) != TOUPPER (i))
4974 rm -f conftest$ac_exeext
4975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4976 (eval $ac_link) 2>&5
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; }; then
4987 echo "$as_me: program exited with status $ac_status" >&5
4988 echo "$as_me: failed program was:" >&5
4989 sed 's/^/| /' conftest.$ac_ext >&5
4992 ac_cv_header_stdc=no
4994 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4998 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4999 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5000 if test $ac_cv_header_stdc = yes; then
5002 cat >>confdefs.h <<\_ACEOF
5003 #define STDC_HEADERS 1
5008 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5018 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5019 inttypes.h stdint.h unistd.h
5021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5022 echo "$as_me:$LINENO: checking for $ac_header" >&5
5023 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5024 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5027 cat >conftest.$ac_ext <<_ACEOF
5028 #line $LINENO "configure"
5031 cat confdefs.h >>conftest.$ac_ext
5032 cat >>conftest.$ac_ext <<_ACEOF
5033 /* end confdefs.h. */
5034 $ac_includes_default
5036 #include <$ac_header>
5038 rm -f conftest.$ac_objext
5039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5040 (eval $ac_compile) 2>&5
5042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5043 (exit $ac_status); } &&
5044 { ac_try='test -s conftest.$ac_objext'
5045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }; }; then
5050 eval "$as_ac_Header=yes"
5052 echo "$as_me: failed program was:" >&5
5053 sed 's/^/| /' conftest.$ac_ext >&5
5055 eval "$as_ac_Header=no"
5057 rm -f conftest.$ac_objext conftest.$ac_ext
5059 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5060 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5062 cat >>confdefs.h <<_ACEOF
5063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5072 for ac_header in termcap.h
5074 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5075 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5076 echo "$as_me:$LINENO: checking for $ac_header" >&5
5077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5078 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5084 # Is the header compilable?
5085 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5087 cat >conftest.$ac_ext <<_ACEOF
5088 #line $LINENO "configure"
5091 cat confdefs.h >>conftest.$ac_ext
5092 cat >>conftest.$ac_ext <<_ACEOF
5093 /* end confdefs.h. */
5094 $ac_includes_default
5095 #include <$ac_header>
5097 rm -f conftest.$ac_objext
5098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5099 (eval $ac_compile) 2>&5
5101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5102 (exit $ac_status); } &&
5103 { ac_try='test -s conftest.$ac_objext'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; }; then
5109 ac_header_compiler=yes
5111 echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5114 ac_header_compiler=no
5116 rm -f conftest.$ac_objext conftest.$ac_ext
5117 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5118 echo "${ECHO_T}$ac_header_compiler" >&6
5120 # Is the header present?
5121 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5122 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5123 cat >conftest.$ac_ext <<_ACEOF
5124 #line $LINENO "configure"
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h. */
5130 #include <$ac_header>
5132 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5133 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5135 grep -v '^ *+' conftest.er1 >conftest.err
5137 cat conftest.err >&5
5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } >/dev/null; then
5140 if test -s conftest.err; then
5141 ac_cpp_err=$ac_c_preproc_warn_flag
5148 if test -z "$ac_cpp_err"; then
5149 ac_header_preproc=yes
5151 echo "$as_me: failed program was:" >&5
5152 sed 's/^/| /' conftest.$ac_ext >&5
5154 ac_header_preproc=no
5156 rm -f conftest.err conftest.$ac_ext
5157 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5158 echo "${ECHO_T}$ac_header_preproc" >&6
5160 # So? What about this header?
5161 case $ac_header_compiler:$ac_header_preproc in
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5164 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5165 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5166 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5169 ## ------------------------------------ ##
5170 ## Report this to bug-autoconf@gnu.org. ##
5171 ## ------------------------------------ ##
5174 sed "s/^/$as_me: WARNING: /" >&2
5177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5185 ## ------------------------------------ ##
5186 ## Report this to bug-autoconf@gnu.org. ##
5187 ## ------------------------------------ ##
5190 sed "s/^/$as_me: WARNING: /" >&2
5193 echo "$as_me:$LINENO: checking for $ac_header" >&5
5194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5195 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 eval "$as_ac_Header=$ac_header_preproc"
5200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5205 cat >>confdefs.h <<_ACEOF
5206 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5213 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5214 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5215 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 ac_check_lib_save_LIBS=$LIBS
5219 LIBS="-ltermcap $LIBS"
5220 cat >conftest.$ac_ext <<_ACEOF
5221 #line $LINENO "configure"
5224 cat confdefs.h >>conftest.$ac_ext
5225 cat >>conftest.$ac_ext <<_ACEOF
5226 /* end confdefs.h. */
5228 /* Override any gcc2 internal prototype to avoid an error. */
5232 /* We use char because int might match the return type of a gcc2
5233 builtin and then its argument prototype would still apply. */
5243 rm -f conftest.$ac_objext conftest$ac_exeext
5244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5245 (eval $ac_link) 2>&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } &&
5249 { ac_try='test -s conftest$ac_exeext'
5250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }; }; then
5255 ac_cv_lib_termcap_tgetent=yes
5257 echo "$as_me: failed program was:" >&5
5258 sed 's/^/| /' conftest.$ac_ext >&5
5260 ac_cv_lib_termcap_tgetent=no
5262 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5263 LIBS=$ac_check_lib_save_LIBS
5265 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5266 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5267 if test $ac_cv_lib_termcap_tgetent = yes; then
5268 CONS_LIBS="-ltermcap"
5273 cat >>confdefs.h <<\_ACEOF
5274 #define HAVE_CONIO 1
5280 # ---------------------------------------------------
5281 # Check for readline support/directory (default off)
5282 # ---------------------------------------------------
5283 # this allows you to turn it completely off
5284 # Check whether --enable-readline or --disable-readline was given.
5285 if test "${enable_readline+set}" = set; then
5286 enableval="$enable_readline"
5287 if test x$enableval = xno; then
5294 if test x$support_readline = xyes; then
5296 # Check whether --with-readline or --without-readline was given.
5297 if test "${with_readline+set}" = set; then
5298 withval="$with_readline"
5300 case "$with_readline" in
5303 if test "$with_readline" != "yes"; then
5304 CONS_INC="-I${with_readline}"
5305 CONS_LDFLAGS="-L$with_readline"
5307 with_readline="/usr/include/readline"
5309 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5310 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5311 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5312 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5317 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5319 # Is the header compilable?
5320 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5321 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5322 cat >conftest.$ac_ext <<_ACEOF
5323 #line $LINENO "configure"
5326 cat confdefs.h >>conftest.$ac_ext
5327 cat >>conftest.$ac_ext <<_ACEOF
5328 /* end confdefs.h. */
5329 $ac_includes_default
5330 #include <${with_readline}/readline.h>
5332 rm -f conftest.$ac_objext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5334 (eval $ac_compile) 2>&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); } &&
5338 { ac_try='test -s conftest.$ac_objext'
5339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; }; then
5344 ac_header_compiler=yes
5346 echo "$as_me: failed program was:" >&5
5347 sed 's/^/| /' conftest.$ac_ext >&5
5349 ac_header_compiler=no
5351 rm -f conftest.$ac_objext conftest.$ac_ext
5352 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5353 echo "${ECHO_T}$ac_header_compiler" >&6
5355 # Is the header present?
5356 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5357 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5358 cat >conftest.$ac_ext <<_ACEOF
5359 #line $LINENO "configure"
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5365 #include <${with_readline}/readline.h>
5367 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5368 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5370 grep -v '^ *+' conftest.er1 >conftest.err
5372 cat conftest.err >&5
5373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5374 (exit $ac_status); } >/dev/null; then
5375 if test -s conftest.err; then
5376 ac_cpp_err=$ac_c_preproc_warn_flag
5383 if test -z "$ac_cpp_err"; then
5384 ac_header_preproc=yes
5386 echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5389 ac_header_preproc=no
5391 rm -f conftest.err conftest.$ac_ext
5392 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5393 echo "${ECHO_T}$ac_header_preproc" >&6
5395 # So? What about this header?
5396 case $ac_header_compiler:$ac_header_preproc in
5398 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5399 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5400 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5401 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5404 ## ------------------------------------ ##
5405 ## Report this to bug-autoconf@gnu.org. ##
5406 ## ------------------------------------ ##
5409 sed "s/^/$as_me: WARNING: /" >&2
5412 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5413 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5414 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5415 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5416 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5417 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5420 ## ------------------------------------ ##
5421 ## Report this to bug-autoconf@gnu.org. ##
5422 ## ------------------------------------ ##
5425 sed "s/^/$as_me: WARNING: /" >&2
5428 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5429 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5430 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5431 echo $ECHO_N "(cached) $ECHO_C" >&6
5433 eval "$as_ac_Header=$ac_header_preproc"
5435 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5436 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5440 cat >>confdefs.h <<\_ACEOF
5441 #define HAVE_READLINE 1
5444 CONS_LIBS="-lreadline -ltermcap"
5448 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5449 echo "$as_me: error: *** readline library missing" >&2;}
5450 { (exit 1); exit 1; }; }
5461 # check for standard readline library
5462 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5463 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5464 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5465 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5466 echo $ECHO_N "(cached) $ECHO_C" >&6
5468 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5469 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5471 # Is the header compilable?
5472 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5473 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5474 cat >conftest.$ac_ext <<_ACEOF
5475 #line $LINENO "configure"
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5481 $ac_includes_default
5482 #include </usr/include/readline/readline.h>
5484 rm -f conftest.$ac_objext
5485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5486 (eval $ac_compile) 2>&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } &&
5490 { ac_try='test -s conftest.$ac_objext'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; }; then
5496 ac_header_compiler=yes
5498 echo "$as_me: failed program was:" >&5
5499 sed 's/^/| /' conftest.$ac_ext >&5
5501 ac_header_compiler=no
5503 rm -f conftest.$ac_objext conftest.$ac_ext
5504 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5505 echo "${ECHO_T}$ac_header_compiler" >&6
5507 # Is the header present?
5508 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5509 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5510 cat >conftest.$ac_ext <<_ACEOF
5511 #line $LINENO "configure"
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h. */
5517 #include </usr/include/readline/readline.h>
5519 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5520 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5522 grep -v '^ *+' conftest.er1 >conftest.err
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } >/dev/null; then
5527 if test -s conftest.err; then
5528 ac_cpp_err=$ac_c_preproc_warn_flag
5535 if test -z "$ac_cpp_err"; then
5536 ac_header_preproc=yes
5538 echo "$as_me: failed program was:" >&5
5539 sed 's/^/| /' conftest.$ac_ext >&5
5541 ac_header_preproc=no
5543 rm -f conftest.err conftest.$ac_ext
5544 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5545 echo "${ECHO_T}$ac_header_preproc" >&6
5547 # So? What about this header?
5548 case $ac_header_compiler:$ac_header_preproc in
5550 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5551 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5552 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5553 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5556 ## ------------------------------------ ##
5557 ## Report this to bug-autoconf@gnu.org. ##
5558 ## ------------------------------------ ##
5561 sed "s/^/$as_me: WARNING: /" >&2
5564 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
5565 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
5566 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
5567 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
5568 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
5569 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5572 ## ------------------------------------ ##
5573 ## Report this to bug-autoconf@gnu.org. ##
5574 ## ------------------------------------ ##
5577 sed "s/^/$as_me: WARNING: /" >&2
5580 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5581 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5582 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5585 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
5587 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5588 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5591 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
5592 cat >>confdefs.h <<\_ACEOF
5593 #define HAVE_READLINE 1
5597 CONS_INC="-I/usr/include/readline"
5598 CONS_LIBS="-lreadline -ltermcap"
5602 # Did not find standard library, so try Bacula's default
5603 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
5604 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5605 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5606 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5607 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5608 echo $ECHO_N "(cached) $ECHO_C" >&6
5610 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5611 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5613 # Is the header compilable?
5614 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
5615 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
5616 cat >conftest.$ac_ext <<_ACEOF
5617 #line $LINENO "configure"
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h. */
5623 $ac_includes_default
5624 #include <${TOP_DIR}/depkgs/readline/readline.h>
5626 rm -f conftest.$ac_objext
5627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5628 (eval $ac_compile) 2>&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } &&
5632 { ac_try='test -s conftest.$ac_objext'
5633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5637 (exit $ac_status); }; }; then
5638 ac_header_compiler=yes
5640 echo "$as_me: failed program was:" >&5
5641 sed 's/^/| /' conftest.$ac_ext >&5
5643 ac_header_compiler=no
5645 rm -f conftest.$ac_objext conftest.$ac_ext
5646 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5647 echo "${ECHO_T}$ac_header_compiler" >&6
5649 # Is the header present?
5650 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
5651 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
5652 cat >conftest.$ac_ext <<_ACEOF
5653 #line $LINENO "configure"
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5659 #include <${TOP_DIR}/depkgs/readline/readline.h>
5661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5664 grep -v '^ *+' conftest.er1 >conftest.err
5666 cat conftest.err >&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } >/dev/null; then
5669 if test -s conftest.err; then
5670 ac_cpp_err=$ac_c_preproc_warn_flag
5677 if test -z "$ac_cpp_err"; then
5678 ac_header_preproc=yes
5680 echo "$as_me: failed program was:" >&5
5681 sed 's/^/| /' conftest.$ac_ext >&5
5683 ac_header_preproc=no
5685 rm -f conftest.err conftest.$ac_ext
5686 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5687 echo "${ECHO_T}$ac_header_preproc" >&6
5689 # So? What about this header?
5690 case $ac_header_compiler:$ac_header_preproc in
5692 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5693 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5694 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5695 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5698 ## ------------------------------------ ##
5699 ## Report this to bug-autoconf@gnu.org. ##
5700 ## ------------------------------------ ##
5703 sed "s/^/$as_me: WARNING: /" >&2
5706 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
5707 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
5708 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
5709 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
5710 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
5711 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
5714 ## ------------------------------------ ##
5715 ## Report this to bug-autoconf@gnu.org. ##
5716 ## ------------------------------------ ##
5719 sed "s/^/$as_me: WARNING: /" >&2
5722 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
5723 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
5724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 eval "$as_ac_Header=$ac_header_preproc"
5729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5734 cat >>confdefs.h <<\_ACEOF
5735 #define HAVE_READLINE 1
5739 CONS_INC="-I${TOP_DIR}/depkgs/readline"
5740 CONS_LIBS="-lreadline -lhistory -ltermcap"
5741 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
5742 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
5745 { { echo "$as_me:$LINENO: error: *** readline library missing" >&5
5746 echo "$as_me: error: *** readline library missing" >&2;}
5747 { (exit 1); exit 1; }; }
5772 # Minimal stuff for readline Makefile configuration
5776 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5777 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
5778 if test "${ac_cv_header_stat_broken+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 cat >conftest.$ac_ext <<_ACEOF
5782 #line $LINENO "configure"
5785 cat confdefs.h >>conftest.$ac_ext
5786 cat >>conftest.$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 #include <sys/types.h>
5789 #include <sys/stat.h>
5791 #if defined(S_ISBLK) && defined(S_IFDIR)
5792 # if S_ISBLK (S_IFDIR)
5797 #if defined(S_ISBLK) && defined(S_IFCHR)
5798 # if S_ISBLK (S_IFCHR)
5803 #if defined(S_ISLNK) && defined(S_IFREG)
5804 # if S_ISLNK (S_IFREG)
5809 #if defined(S_ISSOCK) && defined(S_IFREG)
5810 # if S_ISSOCK (S_IFREG)
5816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5817 $EGREP "You lose" >/dev/null 2>&1; then
5818 ac_cv_header_stat_broken=yes
5820 ac_cv_header_stat_broken=no
5825 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5826 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
5827 if test $ac_cv_header_stat_broken = yes; then
5829 cat >>confdefs.h <<\_ACEOF
5830 #define STAT_MACROS_BROKEN 1
5841 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5842 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5843 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5844 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5845 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 cat >conftest.$ac_ext <<_ACEOF
5849 #line $LINENO "configure"
5852 cat confdefs.h >>conftest.$ac_ext
5853 cat >>conftest.$ac_ext <<_ACEOF
5854 /* end confdefs.h. */
5855 #include <sys/types.h>
5867 rm -f conftest.$ac_objext
5868 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5869 (eval $ac_compile) 2>&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } &&
5873 { ac_try='test -s conftest.$ac_objext'
5874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); }; }; then
5879 eval "$as_ac_Header=yes"
5881 echo "$as_me: failed program was:" >&5
5882 sed 's/^/| /' conftest.$ac_ext >&5
5884 eval "$as_ac_Header=no"
5886 rm -f conftest.$ac_objext conftest.$ac_ext
5888 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5889 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5891 cat >>confdefs.h <<_ACEOF
5892 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5895 ac_header_dirent=$ac_hdr; break
5899 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5900 if test $ac_header_dirent = dirent.h; then
5901 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5902 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5903 if test "${ac_cv_search_opendir+set}" = set; then
5904 echo $ECHO_N "(cached) $ECHO_C" >&6
5906 ac_func_search_save_LIBS=$LIBS
5907 ac_cv_search_opendir=no
5908 cat >conftest.$ac_ext <<_ACEOF
5909 #line $LINENO "configure"
5912 cat confdefs.h >>conftest.$ac_ext
5913 cat >>conftest.$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5916 /* Override any gcc2 internal prototype to avoid an error. */
5920 /* We use char because int might match the return type of a gcc2
5921 builtin and then its argument prototype would still apply. */
5931 rm -f conftest.$ac_objext conftest$ac_exeext
5932 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5933 (eval $ac_link) 2>&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } &&
5937 { ac_try='test -s conftest$ac_exeext'
5938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5942 (exit $ac_status); }; }; then
5943 ac_cv_search_opendir="none required"
5945 echo "$as_me: failed program was:" >&5
5946 sed 's/^/| /' conftest.$ac_ext >&5
5949 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5950 if test "$ac_cv_search_opendir" = no; then
5951 for ac_lib in dir; do
5952 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5953 cat >conftest.$ac_ext <<_ACEOF
5954 #line $LINENO "configure"
5957 cat confdefs.h >>conftest.$ac_ext
5958 cat >>conftest.$ac_ext <<_ACEOF
5959 /* end confdefs.h. */
5961 /* Override any gcc2 internal prototype to avoid an error. */
5965 /* We use char because int might match the return type of a gcc2
5966 builtin and then its argument prototype would still apply. */
5976 rm -f conftest.$ac_objext conftest$ac_exeext
5977 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5978 (eval $ac_link) 2>&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } &&
5982 { ac_try='test -s conftest$ac_exeext'
5983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5987 (exit $ac_status); }; }; then
5988 ac_cv_search_opendir="-l$ac_lib"
5991 echo "$as_me: failed program was:" >&5
5992 sed 's/^/| /' conftest.$ac_ext >&5
5995 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5998 LIBS=$ac_func_search_save_LIBS
6000 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6001 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6002 if test "$ac_cv_search_opendir" != no; then
6003 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6008 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6009 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6010 if test "${ac_cv_search_opendir+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6013 ac_func_search_save_LIBS=$LIBS
6014 ac_cv_search_opendir=no
6015 cat >conftest.$ac_ext <<_ACEOF
6016 #line $LINENO "configure"
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6023 /* Override any gcc2 internal prototype to avoid an error. */
6027 /* We use char because int might match the return type of a gcc2
6028 builtin and then its argument prototype would still apply. */
6038 rm -f conftest.$ac_objext conftest$ac_exeext
6039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6040 (eval $ac_link) 2>&5
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); } &&
6044 { ac_try='test -s conftest$ac_exeext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 ac_cv_search_opendir="none required"
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6056 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6057 if test "$ac_cv_search_opendir" = no; then
6059 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6060 cat >conftest.$ac_ext <<_ACEOF
6061 #line $LINENO "configure"
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h. */
6068 /* Override any gcc2 internal prototype to avoid an error. */
6072 /* We use char because int might match the return type of a gcc2
6073 builtin and then its argument prototype would still apply. */
6083 rm -f conftest.$ac_objext conftest$ac_exeext
6084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6085 (eval $ac_link) 2>&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } &&
6089 { ac_try='test -s conftest$ac_exeext'
6090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; }; then
6095 ac_cv_search_opendir="-l$ac_lib"
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.$ac_ext >&5
6102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6105 LIBS=$ac_func_search_save_LIBS
6107 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6108 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6109 if test "$ac_cv_search_opendir" != no; then
6110 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6125 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6128 echo "$as_me:$LINENO: checking for $ac_func" >&5
6129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6130 if eval "test \"\${$as_ac_var+set}\" = set"; then
6131 echo $ECHO_N "(cached) $ECHO_C" >&6
6133 cat >conftest.$ac_ext <<_ACEOF
6134 #line $LINENO "configure"
6137 cat confdefs.h >>conftest.$ac_ext
6138 cat >>conftest.$ac_ext <<_ACEOF
6139 /* end confdefs.h. */
6140 /* System header to define __stub macros and hopefully few prototypes,
6141 which can conflict with char $ac_func (); below.
6142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6143 <limits.h> exists even on freestanding compilers. */
6145 # include <limits.h>
6147 # include <assert.h>
6149 /* Override any gcc2 internal prototype to avoid an error. */
6154 /* We use char because int might match the return type of a gcc2
6155 builtin and then its argument prototype would still apply. */
6157 /* The GNU C library defines this for functions which it implements
6158 to always fail with ENOSYS. Some functions are actually named
6159 something starting with __ and the normal name is an alias. */
6160 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6163 char (*f) () = $ac_func;
6172 return f != $ac_func;
6177 rm -f conftest.$ac_objext conftest$ac_exeext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6179 (eval $ac_link) 2>&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); } &&
6183 { ac_try='test -s conftest$ac_exeext'
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; }; then
6189 eval "$as_ac_var=yes"
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6194 eval "$as_ac_var=no"
6196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6198 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6199 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6200 if test `eval echo '${'$as_ac_var'}'` = yes; then
6201 cat >>confdefs.h <<_ACEOF
6202 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6209 for ac_func in nanosleep
6211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6212 echo "$as_me:$LINENO: checking for $ac_func" >&5
6213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6214 if eval "test \"\${$as_ac_var+set}\" = set"; then
6215 echo $ECHO_N "(cached) $ECHO_C" >&6
6217 cat >conftest.$ac_ext <<_ACEOF
6218 #line $LINENO "configure"
6221 cat confdefs.h >>conftest.$ac_ext
6222 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */
6224 /* System header to define __stub macros and hopefully few prototypes,
6225 which can conflict with char $ac_func (); below.
6226 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6227 <limits.h> exists even on freestanding compilers. */
6229 # include <limits.h>
6231 # include <assert.h>
6233 /* Override any gcc2 internal prototype to avoid an error. */
6238 /* We use char because int might match the return type of a gcc2
6239 builtin and then its argument prototype would still apply. */
6241 /* The GNU C library defines this for functions which it implements
6242 to always fail with ENOSYS. Some functions are actually named
6243 something starting with __ and the normal name is an alias. */
6244 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6247 char (*f) () = $ac_func;
6256 return f != $ac_func;
6261 rm -f conftest.$ac_objext conftest$ac_exeext
6262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6263 (eval $ac_link) 2>&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } &&
6267 { ac_try='test -s conftest$ac_exeext'
6268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6272 (exit $ac_status); }; }; then
6273 eval "$as_ac_var=yes"
6275 echo "$as_me: failed program was:" >&5
6276 sed 's/^/| /' conftest.$ac_ext >&5
6278 eval "$as_ac_var=no"
6280 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6283 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6284 if test `eval echo '${'$as_ac_var'}'` = yes; then
6285 cat >>confdefs.h <<_ACEOF
6286 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6294 for ac_header in varargs.h
6296 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6298 echo "$as_me:$LINENO: checking for $ac_header" >&5
6299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6301 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6306 # Is the header compilable?
6307 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6309 cat >conftest.$ac_ext <<_ACEOF
6310 #line $LINENO "configure"
6313 cat confdefs.h >>conftest.$ac_ext
6314 cat >>conftest.$ac_ext <<_ACEOF
6315 /* end confdefs.h. */
6316 $ac_includes_default
6317 #include <$ac_header>
6319 rm -f conftest.$ac_objext
6320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6321 (eval $ac_compile) 2>&5
6323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6324 (exit $ac_status); } &&
6325 { ac_try='test -s conftest.$ac_objext'
6326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); }; }; then
6331 ac_header_compiler=yes
6333 echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6336 ac_header_compiler=no
6338 rm -f conftest.$ac_objext conftest.$ac_ext
6339 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6340 echo "${ECHO_T}$ac_header_compiler" >&6
6342 # Is the header present?
6343 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6345 cat >conftest.$ac_ext <<_ACEOF
6346 #line $LINENO "configure"
6349 cat confdefs.h >>conftest.$ac_ext
6350 cat >>conftest.$ac_ext <<_ACEOF
6351 /* end confdefs.h. */
6352 #include <$ac_header>
6354 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6357 grep -v '^ *+' conftest.er1 >conftest.err
6359 cat conftest.err >&5
6360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361 (exit $ac_status); } >/dev/null; then
6362 if test -s conftest.err; then
6363 ac_cpp_err=$ac_c_preproc_warn_flag
6370 if test -z "$ac_cpp_err"; then
6371 ac_header_preproc=yes
6373 echo "$as_me: failed program was:" >&5
6374 sed 's/^/| /' conftest.$ac_ext >&5
6376 ac_header_preproc=no
6378 rm -f conftest.err conftest.$ac_ext
6379 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6380 echo "${ECHO_T}$ac_header_preproc" >&6
6382 # So? What about this header?
6383 case $ac_header_compiler:$ac_header_preproc in
6385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6388 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6391 ## ------------------------------------ ##
6392 ## Report this to bug-autoconf@gnu.org. ##
6393 ## ------------------------------------ ##
6396 sed "s/^/$as_me: WARNING: /" >&2
6399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6404 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6407 ## ------------------------------------ ##
6408 ## Report this to bug-autoconf@gnu.org. ##
6409 ## ------------------------------------ ##
6412 sed "s/^/$as_me: WARNING: /" >&2
6415 echo "$as_me:$LINENO: checking for $ac_header" >&5
6416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6417 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6418 echo $ECHO_N "(cached) $ECHO_C" >&6
6420 eval "$as_ac_Header=$ac_header_preproc"
6422 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6423 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6427 cat >>confdefs.h <<_ACEOF
6428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6436 # End of readline/conio stuff
6437 # -----------------------------------------------------------------------
6440 # ---------------------------------------------------
6441 # Check for GMP support/directory
6442 # ---------------------------------------------------
6446 # [ --with-gmp[=DIR] Specify gmp library directory],
6448 # case "$with_gmp" in
6451 # if test "$with_gmp" != "yes"; then
6452 # GMP_INC="-I$with_gmp"
6454 # GMP_LDFLAGS="-L$with_gmp"
6456 # with_gmp="/usr/include"
6458 # AC_CHECK_HEADER($with_gmp/gmp.h,
6459 # [ AC_MSG_RESULT(yes)
6460 # AC_DEFINE(HAVE_GMP)
6464 # [ AC_MSG_ERROR([*** gmp library missing])
6470 # # check for standard gmp library
6471 # AC_CHECK_HEADER(/usr/include/gmp.h,
6472 # [ AC_MSG_RESULT(yes)
6473 # AC_DEFINE(HAVE_GMP)
6478 # # Did not find standard library, so use our own
6479 # AC_MSG_RESULT(yes)
6480 # AC_DEFINE(HAVE_GMP)
6483 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
6485 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
6486 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
6492 #AC_SUBST(GMP_LDFLAGS)
6496 # -----------------------------------------------------------------------
6499 # ---------------------------------------------------
6500 # Check for CWEB support/directory
6501 # ---------------------------------------------------
6506 # [ --with-cweb[=DIR] Specify cweb library directory],
6508 # case "$with_cweb" in
6511 # if test "$with_cweb" != "yes"; then
6512 # CWEB_INC="-I$with_cweb"
6513 # CWEB_LIBS="-lcweb"
6514 # CWEB_LDFLAGS="-L$with_cweb"
6516 # with_cweb="/usr/include"
6518 # AC_CHECK_HEADER($with_cweb/cweb.h,
6519 # [ AC_MSG_RESULT(yes)
6520 # AC_DEFINE(HAVE_CWEB)
6521 # CWEB_LIBS="-lcweb"
6524 # [ AC_MSG_ERROR([*** cweb library missing])
6530 # # check for standard cweb library
6531 # AC_CHECK_HEADER(/usr/include/cweb.h,
6532 # [ AC_MSG_RESULT(yes)
6533 # AC_DEFINE(HAVE_CWEB)
6536 # CWEB_LIBS="-lcweb"
6538 # # Did not find starndard library, so use our own
6539 # AC_MSG_RESULT(yes)
6540 # AC_DEFINE(HAVE_CWEB)
6543 # CWEB=${TOP_DIR}/depkgs/cweb
6544 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
6545 # CWEB_LIBS="-lcweb"
6546 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
6547 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
6553 #AC_SUBST(CWEB_LIBS)
6554 #AC_SUBST(CWEB_LDFLAGS)
6558 # -----------------------------------------------------------------------
6562 # -----------------------------------------------------------
6563 # Check whether user wants TCP wrappers support (default off)
6564 # -----------------------------------------------------------
6567 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
6568 if test "${with_tcp_wrappers+set}" = set; then
6569 withval="$with_tcp_wrappers"
6571 if test "x$withval" != "xno" ; then
6573 LIBS="$saved_LIBS -lwrap"
6574 echo "$as_me:$LINENO: checking for libwrap" >&5
6575 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
6576 cat >conftest.$ac_ext <<_ACEOF
6577 #line $LINENO "configure"
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h. */
6584 int deny_severity = 0;
6585 int allow_severity = 0;
6586 struct request_info *req;
6595 rm -f conftest.$ac_objext conftest$ac_exeext
6596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6597 (eval $ac_link) 2>&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } &&
6601 { ac_try='test -s conftest$ac_exeext'
6602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
6608 echo "$as_me:$LINENO: result: yes" >&5
6609 echo "${ECHO_T}yes" >&6
6610 cat >>confdefs.h <<\_ACEOF
6611 #define HAVE_LIBWRAP 1
6617 echo "$as_me: failed program was:" >&5
6618 sed 's/^/| /' conftest.$ac_ext >&5
6621 LIBS="$saved_LIBS -lwrap -lnsl"
6622 cat >conftest.$ac_ext <<_ACEOF
6623 #line $LINENO "configure"
6626 cat confdefs.h >>conftest.$ac_ext
6627 cat >>conftest.$ac_ext <<_ACEOF
6628 /* end confdefs.h. */
6630 int deny_severity = 0;
6631 int allow_severity = 0;
6632 struct request_info *req;
6641 rm -f conftest.$ac_objext conftest$ac_exeext
6642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6643 (eval $ac_link) 2>&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } &&
6647 { ac_try='test -s conftest$ac_exeext'
6648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); }; }; then
6654 echo "$as_me:$LINENO: result: yes" >&5
6655 echo "${ECHO_T}yes" >&6
6656 cat >>confdefs.h <<\_ACEOF
6657 #define HAVE_LIBWRAP 1
6663 echo "$as_me: failed program was:" >&5
6664 sed 's/^/| /' conftest.$ac_ext >&5
6666 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
6667 echo "$as_me: error: *** libwrap missing" >&2;}
6668 { (exit 1); exit 1; }; }
6671 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6680 # ------------------------------------------
6681 # Where to place working dir
6682 # ------------------------------------------
6683 working_dir=`eval echo ${sysconfdir}/working`
6685 # Check whether --with-working-dir or --without-working-dir was given.
6686 if test "${with_working_dir+set}" = set; then
6687 withval="$with_working_dir"
6689 if test "x$withval" != "xno" ; then
6690 working_dir=$withval
6699 # ------------------------------------------
6700 # Where to place scriptdir (script files)
6701 # ------------------------------------------
6702 scriptdir=`eval echo ${sysconfdir}`
6704 # Check whether --with-scriptdir or --without-scriptdir was given.
6705 if test "${with_scriptdir+set}" = set; then
6706 withval="$with_scriptdir"
6708 if test "x$withval" != "xno" ; then
6718 # ------------------------------------------
6719 # Where to send dump email
6720 # ------------------------------------------
6721 dump_email=root@localhost
6723 # Check whether --with-dump-email or --without-dump-email was given.
6724 if test "${with_dump_email+set}" = set; then
6725 withval="$with_dump_email"
6727 if test "x$withval" != "xno" ; then
6736 # ------------------------------------------
6737 # Where to send job email
6738 # ------------------------------------------
6739 job_email=root@localhost
6741 # Check whether --with-job-email or --without-job-email was given.
6742 if test "${with_job_email+set}" = set; then
6743 withval="$with_job_email"
6745 if test "x$withval" != "xno" ; then
6754 # ------------------------------------------
6755 # Where to find smtp host
6756 # ------------------------------------------
6759 # Check whether --with-smtp_host or --without-smtp_host was given.
6760 if test "${with_smtp_host+set}" = set; then
6761 withval="$with_smtp_host"
6763 if test "x$withval" != "xno" ; then
6773 # ------------------------------------
6774 # Where to place pid files
6775 # ------------------------------------
6778 # Check whether --with-pid-dir or --without-pid-dir was given.
6779 if test "${with_pid_dir+set}" = set; then
6780 withval="$with_pid_dir"
6782 if test "x$withval" != "xno" ; then
6789 cat >>confdefs.h <<_ACEOF
6790 #define _PATH_BACULA_PIDDIR "$piddir"
6796 # ------------------------------------
6797 # Where to place subsys "lock file"
6798 # ------------------------------------
6799 subsysdir=/var/run/subsys
6801 # Check whether --with-subsys-dir or --without-subsys-dir was given.
6802 if test "${with_subsys_dir+set}" = set; then
6803 withval="$with_subsys_dir"
6805 if test "x$withval" != "xno" ; then
6816 # ------------------------------------
6817 # Where to start assigning ports
6818 # ------------------------------------
6821 # Check whether --with-baseport or --without-baseport was given.
6822 if test "${with_baseport+set}" = set; then
6823 withval="$with_baseport"
6825 if test "x$withval" != "xno" ; then
6833 dir_port=`expr $baseport`
6834 fd_port=`expr $baseport + 1`
6835 sd_port=`expr $fd_port + 1`
6842 # ------------------------------------------
6843 # Generate passwords
6844 # ------------------------------------------
6847 # Check whether --with-dir-password or --without-dir-password was given.
6848 if test "${with_dir_password+set}" = set; then
6849 withval="$with_dir_password"
6851 if test "x$withval" != "xno" ; then
6852 dir_password=$withval
6858 if test "x$dir_password" = "x" ; then
6859 if test "x$OPENSSL" = "xnone" ; then
6860 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
6861 key=`autoconf/randpass 33`
6863 key=`openssl rand -base64 33`
6870 # Check whether --with-fd-password or --without-fd-password was given.
6871 if test "${with_fd_password+set}" = set; then
6872 withval="$with_fd_password"
6874 if test "x$withval" != "xno" ; then
6875 fd_password=$withval
6881 if test "x$fd_password" = "x" ; then
6882 if test "x$OPENSSL" = "xnone" ; then
6883 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
6884 key=`autoconf/randpass 37`
6886 key=`openssl rand -base64 33`
6893 # Check whether --with-sd-password or --without-sd-password was given.
6894 if test "${with_sd_password+set}" = set; then
6895 withval="$with_sd_password"
6897 if test "x$withval" != "xno" ; then
6898 sd_password=$withval
6904 if test "x$sd_password" = "x" ; then
6905 if test "x$OPENSSL" = "xnone" ; then
6906 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
6907 key=`autoconf/randpass 41`
6909 key=`openssl rand -base64 33`
6921 # Handle users and groups for each daemon
6925 # Check whether --with-dir_user or --without-dir_user was given.
6926 if test "${with_dir_user+set}" = set; then
6927 withval="$with_dir_user"
6929 if test "x$withval" != "x" ; then
6938 # Check whether --with-dir_group or --without-dir_group was given.
6939 if test "${with_dir_group+set}" = set; then
6940 withval="$with_dir_group"
6942 if test "x$withval" != "x" ; then
6951 # Check whether --with-sd_user or --without-sd_user was given.
6952 if test "${with_sd_user+set}" = set; then
6953 withval="$with_sd_user"
6955 if test "x$withval" != "x" ; then
6964 # Check whether --with-sd_group or --without-sd_group was given.
6965 if test "${with_sd_group+set}" = set; then
6966 withval="$with_sd_group"
6968 if test "x$withval" != "x" ; then
6977 # Check whether --with-fd_user or --without-fd_user was given.
6978 if test "${with_fd_user+set}" = set; then
6979 withval="$with_fd_user"
6981 if test "x$withval" != "x" ; then
6990 # Check whether --with-fd_group or --without-fd_group was given.
6991 if test "${with_fd_group+set}" = set; then
6992 withval="$with_fd_group"
6994 if test "x$withval" != "x" ; then
7009 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
7010 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
7012 # Check whether --with-postgresql was given.
7013 if test "${with_postgresql+set}" = set; then
7014 withval="$with_postgresql"
7016 if test "$withval" != "no"; then
7017 if test "$withval" = "yes"; then
7018 if test -f /usr/local/postgresql/include/postgresql/libpq-fe.h; then
7019 POSTGRESQL_INCDIR=/usr/local/postgresql/include/postgresql
7020 POSTGRESQL_LIBDIR=/usr/local/postgresql/lib/postgresql
7021 POSTGRESQL_BINDIR=/usr/local/postgresql/bin
7022 elif test -f /usr/include/postgresql/libpq-fe.h; then
7023 POSTGRESQL_INCDIR=/usr/include/postgresql
7024 POSTGRESQL_LIBDIR=/usr/lib/postgresql
7025 POSTGRESQL_BINDIR=/usr/bin
7026 elif test -f /usr/include/libpq-fe.h; then
7027 POSTGRESQL_INCDIR=/usr/include
7028 POSTGRESQL_LIBDIR=/usr/lib
7029 POSTGRESQL_BINDIR=/usr/bin
7030 elif test -f /usr/local/include/postgresql/libpq-fe.h; then
7031 POSTGRESQL_INCDIR=/usr/local/include/postgresql
7032 POSTGRESQL_LIBDIR=/usr/local/lib/postgresql
7033 POSTGRESQL_BINDIR=/usr/local/bin
7034 elif test -f /usr/local/include/libpq-fe.h; then
7035 POSTGRESQL_INCDIR=/usr/local/include
7036 POSTGRESQL_LIBDIR=/usr/local/lib
7037 POSTGRESQL_BINDIR=/usr/local/bin
7039 echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6
7041 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
7042 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
7043 { (exit 1); exit 1; }; }
7046 if test -f $withval/include/postgresql/libpq-fe.h; then
7047 POSTGRESQL_INCDIR=$withval/include/postgresql
7048 POSTGRESQL_LIBDIR=$withval/lib/postgresql
7049 POSTGRESQL_BINDIR=$withval/bin
7050 elif test -f $withval/include/libpq-fe.h; then
7051 POSTGRESQL_INCDIR=$withval/include
7052 POSTGRESQL_LIBDIR=$withval/lib
7053 POSTGRESQL_BINDIR=$withval/bin
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; }; }
7062 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
7063 SQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq -lz"
7064 SQL_BINDIR=$POSTGRESQL_BINDIR
7066 cat >>confdefs.h <<\_ACEOF
7067 #define HAVE_POSTGRESQL 1
7070 echo "$as_me:$LINENO: result: yes" >&5
7071 echo "${ECHO_T}yes" >&6
7073 support_postgresql=yes
7078 echo "$as_me:$LINENO: result: no" >&5
7079 echo "${ECHO_T}no" >&6
7084 echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6
7090 echo "$as_me:$LINENO: checking for MySQL support" >&5
7091 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
7093 # Check whether --with-mysql or --without-mysql was given.
7094 if test "${with_mysql+set}" = set; then
7095 withval="$with_mysql"
7097 if test "$withval" != "no"; then
7098 if test "$withval" = "yes"; then
7099 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7100 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7101 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7102 MYSQL_BINDIR=/usr/local/mysql/bin
7103 elif test -f /usr/include/mysql/mysql.h; then
7104 MYSQL_INCDIR=/usr/include/mysql
7105 MYSQL_LIBDIR=/usr/lib/mysql
7106 MYSQL_BINDIR=/usr/bin
7107 elif test -f /usr/include/mysql.h; then
7108 MYSQL_INCDIR=/usr/include
7109 MYSQL_LIBDIR=/usr/lib
7110 MYSQL_BINDIR=/usr/bin
7111 elif test -f /usr/local/include/mysql/mysql.h; then
7112 MYSQL_INCDIR=/usr/local/include/mysql
7113 MYSQL_LIBDIR=/usr/local/lib/mysql
7114 MYSQL_BINDIR=/usr/local/bin
7115 elif test -f /usr/local/include/mysql.h; then
7116 MYSQL_INCDIR=/usr/local/include
7117 MYSQL_LIBDIR=/usr/local/lib
7118 MYSQL_BINDIR=/usr/local/bin
7120 echo "$as_me:$LINENO: result: no" >&5
7121 echo "${ECHO_T}no" >&6
7122 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7123 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7124 { (exit 1); exit 1; }; }
7127 if test -f $withval/include/mysql/mysql.h; then
7128 MYSQL_INCDIR=$withval/include/mysql
7129 MYSQL_LIBDIR=$withval/lib/mysql
7130 MYSQL_BINDIR=$withval/bin
7131 elif test -f $withval/include/mysql.h; then
7132 MYSQL_INCDIR=$withval/include
7133 MYSQL_LIBDIR=$withval/lib
7134 MYSQL_BINDIR=$withval/bin
7136 echo "$as_me:$LINENO: result: no" >&5
7137 echo "${ECHO_T}no" >&6
7138 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7139 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7140 { (exit 1); exit 1; }; }
7143 SQL_INCLUDE=-I$MYSQL_INCDIR
7144 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
7145 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
7146 cat >>confdefs.h <<\_ACEOF
7147 #define HAVE_THREAD_SAFE_MYSQL 1
7151 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
7153 SQL_BINDIR=$MYSQL_BINDIR
7155 cat >>confdefs.h <<\_ACEOF
7156 #define HAVE_MYSQL 1
7159 echo "$as_me:$LINENO: result: yes" >&5
7160 echo "${ECHO_T}yes" >&6
7167 echo "$as_me:$LINENO: result: no" >&5
7168 echo "${ECHO_T}no" >&6
7173 echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6
7179 echo "$as_me:$LINENO: checking for embedded MySQL support" >&5
7180 echo $ECHO_N "checking for embedded MySQL support... $ECHO_C" >&6
7182 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
7183 if test "${with_embedded_mysql+set}" = set; then
7184 withval="$with_embedded_mysql"
7186 if test "$withval" != "no"; then
7187 if test "$withval" = "yes"; then
7188 if test -f /usr/local/mysql/include/mysql/mysql.h; then
7189 MYSQL_INCDIR=/usr/local/mysql/include/mysql
7190 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
7191 MYSQL_BINDIR=/usr/local/mysql/bin
7192 elif test -f /usr/include/mysql/mysql.h; then
7193 MYSQL_INCDIR=/usr/include/mysql
7194 MYSQL_LIBDIR=/usr/lib/mysql
7195 MYSQL_BINDIR=/usr/bin
7196 elif test -f /usr/include/mysql.h; then
7197 MYSQL_INCDIR=/usr/include
7198 MYSQL_LIBDIR=/usr/lib
7199 MYSQL_BINDIR=/usr/bin
7200 elif test -f /usr/local/include/mysql/mysql.h; then
7201 MYSQL_INCDIR=/usr/local/include/mysql
7202 MYSQL_LIBDIR=/usr/local/lib/mysql
7203 MYSQL_BINDIR=/usr/local/bin
7204 elif test -f /usr/local/include/mysql.h; then
7205 MYSQL_INCDIR=/usr/local/include
7206 MYSQL_LIBDIR=/usr/local/lib
7207 MYSQL_BINDIR=/usr/local/bin
7209 echo "$as_me:$LINENO: result: no" >&5
7210 echo "${ECHO_T}no" >&6
7211 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
7212 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
7213 { (exit 1); exit 1; }; }
7216 if test -f $withval/include/mysql/mysql.h; then
7217 MYSQL_INCDIR=$withval/include/mysql
7218 MYSQL_LIBDIR=$withval/lib/mysql
7219 MYSQL_BINDIR=$withval/bin
7220 elif test -f $withval/include/mysql.h; then
7221 MYSQL_INCDIR=$withval/include
7222 MYSQL_LIBDIR=$withval/lib
7223 MYSQL_BINDIR=$withval/bin
7225 echo "$as_me:$LINENO: result: no" >&5
7226 echo "${ECHO_T}no" >&6
7227 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
7228 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
7229 { (exit 1); exit 1; }; }
7232 SQL_INCLUDE=-I$MYSQL_INCDIR
7233 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
7234 SQL_BINDIR=$MYSQL_BINDIR
7236 cat >>confdefs.h <<\_ACEOF
7237 #define HAVE_MYSQL 1
7240 cat >>confdefs.h <<\_ACEOF
7241 #define HAVE_EMBEDDED_MYSQL 1
7244 echo "$as_me:$LINENO: result: yes" >&5
7245 echo "${ECHO_T}yes" >&6
7252 echo "$as_me:$LINENO: result: no" >&5
7253 echo "${ECHO_T}no" >&6
7258 echo "$as_me:$LINENO: result: no" >&5
7259 echo "${ECHO_T}no" >&6
7272 echo "$as_me:$LINENO: checking for SQLite support" >&5
7273 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
7275 # Check whether --with-sqlite or --without-sqlite was given.
7276 if test "${with_sqlite+set}" = set; then
7277 withval="$with_sqlite"
7279 if test "$withval" != "no"; then
7280 if test "$withval" = "yes"; then
7281 if test -f /usr/local/include/sqlite.h; then
7282 SQLITE_INCDIR=/usr/local/include
7283 SQLITE_LIBDIR=/usr/local/lib
7284 SQLITE_BINDIR=/usr/local/bin
7285 elif test -f /usr/include/sqlite.h; then
7286 SQLITE_INCDIR=/usr/include
7287 SQLITE_LIBDIR=/usr/lib
7288 SQLITE_BINDIR=/usr/bin
7290 echo "$as_me:$LINENO: result: no" >&5
7291 echo "${ECHO_T}no" >&6
7292 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
7293 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
7294 { (exit 1); exit 1; }; }
7297 if test -f $withval/sqlite.h; then
7298 SQLITE_INCDIR=$withval
7299 SQLITE_LIBDIR=$withval
7300 SQLITE_BINDIR=$withval
7302 echo "$as_me:$LINENO: result: no" >&5
7303 echo "${ECHO_T}no" >&6
7304 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
7305 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
7306 { (exit 1); exit 1; }; }
7309 SQL_INCLUDE=-I$SQLITE_INCDIR
7310 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
7311 SQL_BINDIR=$SQLITE_BINDIR
7313 cat >>confdefs.h <<\_ACEOF
7314 #define HAVE_SQLITE 1
7317 echo "$as_me:$LINENO: result: yes" >&5
7318 echo "${ECHO_T}yes" >&6
7325 echo "$as_me:$LINENO: result: no" >&5
7326 echo "${ECHO_T}no" >&6
7331 echo "$as_me:$LINENO: result: no" >&5
7332 echo "${ECHO_T}no" >&6
7344 cat >>confdefs.h <<\_ACEOF
7345 #define PROTOTYPES 1
7349 if test -z "$CFLAGS"; then
7350 if test -z "$CCOPTS"; then
7359 largefile_support="no"
7361 # Check whether --enable-largefile or --disable-largefile was given.
7362 if test "${enable_largefile+set}" = set; then
7363 enableval="$enable_largefile"
7366 if test "$enable_largefile" != no; then
7367 if test -n "$ac_tool_prefix"; then
7368 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
7369 set dummy ${ac_tool_prefix}getconf; ac_word=$2
7370 echo "$as_me:$LINENO: checking for $ac_word" >&5
7371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7372 if test "${ac_cv_prog_GETCONF+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7375 if test -n "$GETCONF"; then
7376 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
7386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7394 GETCONF=$ac_cv_prog_GETCONF
7395 if test -n "$GETCONF"; then
7396 echo "$as_me:$LINENO: result: $GETCONF" >&5
7397 echo "${ECHO_T}$GETCONF" >&6
7399 echo "$as_me:$LINENO: result: no" >&5
7400 echo "${ECHO_T}no" >&6
7404 if test -z "$ac_cv_prog_GETCONF"; then
7405 ac_ct_GETCONF=$GETCONF
7406 # Extract the first word of "getconf", so it can be a program name with args.
7407 set dummy getconf; ac_word=$2
7408 echo "$as_me:$LINENO: checking for $ac_word" >&5
7409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7410 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
7411 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 if test -n "$ac_ct_GETCONF"; then
7414 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423 ac_cv_prog_ac_ct_GETCONF="getconf"
7424 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
7433 if test -n "$ac_ct_GETCONF"; then
7434 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
7435 echo "${ECHO_T}$ac_ct_GETCONF" >&6
7437 echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6
7441 GETCONF=$ac_ct_GETCONF
7443 GETCONF="$ac_cv_prog_GETCONF"
7446 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
7447 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
7448 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
7452 ac_cv_sys_largefile_CFLAGS=no
7454 # IRIX 6.2 and later require cc -n32.
7455 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
7456 if test "$GCC" != yes; then
7457 ac_cv_sys_largefile_CFLAGS=-n32
7460 CC="$CC $ac_cv_sys_largefile_CFLAGS"
7461 cat >conftest.$ac_ext <<_ACEOF
7462 #line $LINENO "configure"
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7477 rm -f conftest.$ac_objext conftest$ac_exeext
7478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7479 (eval $ac_link) 2>&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } &&
7483 { ac_try='test -s conftest$ac_exeext'
7484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7488 (exit $ac_status); }; }; then
7491 echo "$as_me: failed program was:" >&5
7492 sed 's/^/| /' conftest.$ac_ext >&5
7494 ac_cv_sys_largefile_CFLAGS=no
7496 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7501 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
7502 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
7503 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
7504 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
7505 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
7509 ac_cv_sys_largefile_LDFLAGS=no
7513 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
7514 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
7515 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
7516 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
7517 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7520 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
7521 ac_cv_sys_largefile_LIBS=no
7525 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
7526 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
7528 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7531 -D_FILE_OFFSET_BITS=*) ;;
7532 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
7533 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
7539 '') CPPFLAGS="$ac_flag" ;;
7540 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
7548 '') CFLAGS="$ac_flag" ;;
7549 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
7554 case "$ac_cv_sys_largefile_LDFLAGS" in
7558 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
7559 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
7562 case "$ac_cv_sys_largefile_LIBS" in
7566 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
7567 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
7570 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
7571 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
7572 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 ac_cv_sys_file_offset_bits=no
7577 # HP-UX 10.20 and later
7578 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7579 ac_cv_sys_file_offset_bits=64 ;;
7581 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7583 -D_FILE_OFFSET_BITS)
7584 ac_cv_sys_file_offset_bits=1 ;;
7585 -D_FILE_OFFSET_BITS=*)
7586 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7591 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7592 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7593 if test "$ac_cv_sys_file_offset_bits" != no; then
7595 cat >>confdefs.h <<_ACEOF
7596 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7600 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
7601 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
7602 if test "${ac_cv_sys_largefile_source+set}" = set; then
7603 echo $ECHO_N "(cached) $ECHO_C" >&6
7605 ac_cv_sys_largefile_source=no
7607 # HP-UX 10.20 and later
7608 hpux10.[2-9][0-9]* | hpux1[1-9]* | hpux[2-9][0-9]*)
7609 ac_cv_sys_largefile_source=1 ;;
7611 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7613 -D_LARGEFILE_SOURCE)
7614 ac_cv_sys_largefile_source=1 ;;
7615 -D_LARGEFILE_SOURCE=*)
7616 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7621 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
7622 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
7623 if test "$ac_cv_sys_largefile_source" != no; then
7625 cat >>confdefs.h <<_ACEOF
7626 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
7630 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
7631 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
7632 if test "${ac_cv_sys_large_files+set}" = set; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 ac_cv_sys_large_files=no
7638 aix4.[2-9]* | aix4.1[0-9]* | aix[5-9].* | aix[1-9][0-9]*)
7639 ac_cv_sys_large_files=1 ;;
7641 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
7644 ac_cv_sys_large_files=1 ;;
7646 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
7651 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
7652 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
7653 if test "$ac_cv_sys_large_files" != no; then
7655 cat >>confdefs.h <<_ACEOF
7656 #define _LARGE_FILES $ac_cv_sys_large_files
7664 echo "$as_me:$LINENO: checking for X" >&5
7665 echo $ECHO_N "checking for X... $ECHO_C" >&6
7668 # Check whether --with-x or --without-x was given.
7669 if test "${with_x+set}" = set; then
7673 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7674 if test "x$with_x" = xno; then
7675 # The user explicitly disabled X.
7678 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
7679 # Both variables are already set.
7682 if test "${ac_cv_have_x+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 # One or both of the vars are not set, and there is no cached value.
7686 ac_x_includes=no ac_x_libraries=no
7688 if mkdir conftest.dir; then
7690 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
7691 cat >Imakefile <<'_ACEOF'
7693 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
7695 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
7696 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7697 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
7698 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7699 for ac_extension in a so sl; do
7700 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
7701 test -f $ac_im_libdir/libX11.$ac_extension; then
7702 ac_im_usrlibdir=$ac_im_libdir; break
7705 # Screen out bogus values from the imake configuration. They are
7706 # bogus both because they are the default anyway, and because
7707 # using them would break gcc on systems where it needs fixed includes.
7708 case $ac_im_incroot in
7710 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7712 case $ac_im_usrlibdir in
7714 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7721 # Standard set of common directories for X headers.
7722 # Check X11 before X11Rn because it is often a symlink to the current release.
7734 /usr/local/X11/include
7735 /usr/local/X11R6/include
7736 /usr/local/X11R5/include
7737 /usr/local/X11R4/include
7739 /usr/local/include/X11
7740 /usr/local/include/X11R6
7741 /usr/local/include/X11R5
7742 /usr/local/include/X11R4
7746 /usr/XFree86/include/X11
7750 /usr/unsupported/include
7752 /usr/local/x11r5/include
7753 /usr/lpp/Xamples/include
7755 /usr/openwin/include
7756 /usr/openwin/share/include'
7758 if test "$ac_x_includes" = no; then
7759 # Guess where to find include files, by looking for Intrinsic.h.
7760 # First, try using that file with no special directory specified.
7761 cat >conftest.$ac_ext <<_ACEOF
7762 #line $LINENO "configure"
7765 cat confdefs.h >>conftest.$ac_ext
7766 cat >>conftest.$ac_ext <<_ACEOF
7767 /* end confdefs.h. */
7768 #include <X11/Intrinsic.h>
7770 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7771 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7773 grep -v '^ *+' conftest.er1 >conftest.err
7775 cat conftest.err >&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } >/dev/null; then
7778 if test -s conftest.err; then
7779 ac_cpp_err=$ac_c_preproc_warn_flag
7786 if test -z "$ac_cpp_err"; then
7787 # We can compile using X headers with no special include directory.
7790 echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.$ac_ext >&5
7793 for ac_dir in $ac_x_header_dirs; do
7794 if test -r "$ac_dir/X11/Intrinsic.h"; then
7795 ac_x_includes=$ac_dir
7800 rm -f conftest.err conftest.$ac_ext
7801 fi # $ac_x_includes = no
7803 if test "$ac_x_libraries" = no; then
7804 # Check for the libraries.
7805 # See if we find them without any special options.
7806 # Don't add to $LIBS permanently.
7809 cat >conftest.$ac_ext <<_ACEOF
7810 #line $LINENO "configure"
7813 cat confdefs.h >>conftest.$ac_ext
7814 cat >>conftest.$ac_ext <<_ACEOF
7815 /* end confdefs.h. */
7816 #include <X11/Intrinsic.h>
7825 rm -f conftest.$ac_objext conftest$ac_exeext
7826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7827 (eval $ac_link) 2>&5
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); } &&
7831 { ac_try='test -s conftest$ac_exeext'
7832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); }; }; then
7838 # We can link X programs with no special library path.
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7845 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7847 # Don't even attempt the hair of trying to link an X program!
7848 for ac_extension in a so sl; do
7849 if test -r $ac_dir/libXt.$ac_extension; then
7850 ac_x_libraries=$ac_dir
7856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7857 fi # $ac_x_libraries = no
7859 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
7860 # Didn't find X anywhere. Cache the known absence of X.
7861 ac_cv_have_x="have_x=no"
7863 # Record where we found X for the cache.
7864 ac_cv_have_x="have_x=yes \
7865 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
7870 eval "$ac_cv_have_x"
7873 if test "$have_x" != yes; then
7874 echo "$as_me:$LINENO: result: $have_x" >&5
7875 echo "${ECHO_T}$have_x" >&6
7878 # If each of the values was on the command line, it overrides each guess.
7879 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7880 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7881 # Update the cache value to reflect the command line values.
7882 ac_cv_have_x="have_x=yes \
7883 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
7884 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7885 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
7888 if test "$no_x" = yes; then
7889 # Not all programs may use this symbol, but it does not hurt to define it.
7891 cat >>confdefs.h <<\_ACEOF
7892 #define X_DISPLAY_MISSING 1
7895 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7897 if test -n "$x_includes"; then
7898 X_CFLAGS="$X_CFLAGS -I$x_includes"
7901 # It would also be nice to do this for all -L options, not just this one.
7902 if test -n "$x_libraries"; then
7903 X_LIBS="$X_LIBS -L$x_libraries"
7904 # For Solaris; some versions of Sun CC require a space after -R and
7905 # others require no space. Words are not sufficient . . . .
7906 case `(uname -sr) 2>/dev/null` in
7908 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
7909 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
7910 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7911 cat >conftest.$ac_ext <<_ACEOF
7912 #line $LINENO "configure"
7915 cat confdefs.h >>conftest.$ac_ext
7916 cat >>conftest.$ac_ext <<_ACEOF
7917 /* end confdefs.h. */
7927 rm -f conftest.$ac_objext conftest$ac_exeext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7929 (eval $ac_link) 2>&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } &&
7933 { ac_try='test -s conftest$ac_exeext'
7934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7938 (exit $ac_status); }; }; then
7941 echo "$as_me: failed program was:" >&5
7942 sed 's/^/| /' conftest.$ac_ext >&5
7946 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7947 if test $ac_R_nospace = yes; then
7948 echo "$as_me:$LINENO: result: no" >&5
7949 echo "${ECHO_T}no" >&6
7950 X_LIBS="$X_LIBS -R$x_libraries"
7952 LIBS="$ac_xsave_LIBS -R $x_libraries"
7953 cat >conftest.$ac_ext <<_ACEOF
7954 #line $LINENO "configure"
7957 cat confdefs.h >>conftest.$ac_ext
7958 cat >>conftest.$ac_ext <<_ACEOF
7959 /* end confdefs.h. */
7969 rm -f conftest.$ac_objext conftest$ac_exeext
7970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7971 (eval $ac_link) 2>&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } &&
7975 { ac_try='test -s conftest$ac_exeext'
7976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; }; then
7983 echo "$as_me: failed program was:" >&5
7984 sed 's/^/| /' conftest.$ac_ext >&5
7988 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7989 if test $ac_R_space = yes; then
7990 echo "$as_me:$LINENO: result: yes" >&5
7991 echo "${ECHO_T}yes" >&6
7992 X_LIBS="$X_LIBS -R $x_libraries"
7994 echo "$as_me:$LINENO: result: neither works" >&5
7995 echo "${ECHO_T}neither works" >&6
8002 # Check for system-dependent libraries X programs must link with.
8003 # Do this before checking for the system-independent R6 libraries
8004 # (-lICE), since we may need -lsocket or whatever for X linking.
8006 if test "$ISC" = yes; then
8007 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
8009 # Martyn Johnson says this is needed for Ultrix, if the X
8010 # libraries were built with DECnet support. And Karl Berry says
8011 # the Alpha needs dnet_stub (dnet does not exist).
8012 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
8013 cat >conftest.$ac_ext <<_ACEOF
8014 #line $LINENO "configure"
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8021 /* Override any gcc2 internal prototype to avoid an error. */
8025 /* We use char because int might match the return type of a gcc2
8026 builtin and then its argument prototype would still apply. */
8027 char XOpenDisplay ();
8036 rm -f conftest.$ac_objext conftest$ac_exeext
8037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8038 (eval $ac_link) 2>&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } &&
8042 { ac_try='test -s conftest$ac_exeext'
8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; }; then
8050 echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8053 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
8054 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
8055 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
8056 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 ac_check_lib_save_LIBS=$LIBS
8060 cat >conftest.$ac_ext <<_ACEOF
8061 #line $LINENO "configure"
8064 cat confdefs.h >>conftest.$ac_ext
8065 cat >>conftest.$ac_ext <<_ACEOF
8066 /* end confdefs.h. */
8068 /* Override any gcc2 internal prototype to avoid an error. */
8072 /* We use char because int might match the return type of a gcc2
8073 builtin and then its argument prototype would still apply. */
8083 rm -f conftest.$ac_objext conftest$ac_exeext
8084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8085 (eval $ac_link) 2>&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); } &&
8089 { ac_try='test -s conftest$ac_exeext'
8090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); }; }; then
8095 ac_cv_lib_dnet_dnet_ntoa=yes
8097 echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8100 ac_cv_lib_dnet_dnet_ntoa=no
8102 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8103 LIBS=$ac_check_lib_save_LIBS
8105 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
8106 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
8107 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
8108 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
8111 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
8112 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
8113 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
8114 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
8115 echo $ECHO_N "(cached) $ECHO_C" >&6
8117 ac_check_lib_save_LIBS=$LIBS
8118 LIBS="-ldnet_stub $LIBS"
8119 cat >conftest.$ac_ext <<_ACEOF
8120 #line $LINENO "configure"
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8127 /* Override any gcc2 internal prototype to avoid an error. */
8131 /* We use char because int might match the return type of a gcc2
8132 builtin and then its argument prototype would still apply. */
8142 rm -f conftest.$ac_objext conftest$ac_exeext
8143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8144 (eval $ac_link) 2>&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); } &&
8148 { ac_try='test -s conftest$ac_exeext'
8149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }; }; then
8154 ac_cv_lib_dnet_stub_dnet_ntoa=yes
8156 echo "$as_me: failed program was:" >&5
8157 sed 's/^/| /' conftest.$ac_ext >&5
8159 ac_cv_lib_dnet_stub_dnet_ntoa=no
8161 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8162 LIBS=$ac_check_lib_save_LIBS
8164 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
8165 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
8166 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
8167 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
8172 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8173 LIBS="$ac_xsave_LIBS"
8175 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
8176 # to get the SysV transport functions.
8177 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
8179 # The nsl library prevents programs from opening the X display
8180 # on Irix 5.2, according to T.E. Dickey.
8181 # The functions gethostbyname, getservbyname, and inet_addr are
8182 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
8183 echo "$as_me:$LINENO: checking for gethostbyname" >&5
8184 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
8185 if test "${ac_cv_func_gethostbyname+set}" = set; then
8186 echo $ECHO_N "(cached) $ECHO_C" >&6
8188 cat >conftest.$ac_ext <<_ACEOF
8189 #line $LINENO "configure"
8192 cat confdefs.h >>conftest.$ac_ext
8193 cat >>conftest.$ac_ext <<_ACEOF
8194 /* end confdefs.h. */
8195 /* System header to define __stub macros and hopefully few prototypes,
8196 which can conflict with char gethostbyname (); below.
8197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8198 <limits.h> exists even on freestanding compilers. */
8200 # include <limits.h>
8202 # include <assert.h>
8204 /* Override any gcc2 internal prototype to avoid an error. */
8209 /* We use char because int might match the return type of a gcc2
8210 builtin and then its argument prototype would still apply. */
8211 char gethostbyname ();
8212 /* The GNU C library defines this for functions which it implements
8213 to always fail with ENOSYS. Some functions are actually named
8214 something starting with __ and the normal name is an alias. */
8215 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
8218 char (*f) () = gethostbyname;
8227 return f != gethostbyname;
8232 rm -f conftest.$ac_objext conftest$ac_exeext
8233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8234 (eval $ac_link) 2>&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); } &&
8238 { ac_try='test -s conftest$ac_exeext'
8239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; }; then
8244 ac_cv_func_gethostbyname=yes
8246 echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.$ac_ext >&5
8249 ac_cv_func_gethostbyname=no
8251 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8253 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
8254 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
8256 if test $ac_cv_func_gethostbyname = no; then
8257 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
8258 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
8259 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 ac_check_lib_save_LIBS=$LIBS
8264 cat >conftest.$ac_ext <<_ACEOF
8265 #line $LINENO "configure"
8268 cat confdefs.h >>conftest.$ac_ext
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8272 /* Override any gcc2 internal prototype to avoid an error. */
8276 /* We use char because int might match the return type of a gcc2
8277 builtin and then its argument prototype would still apply. */
8278 char gethostbyname ();
8287 rm -f conftest.$ac_objext conftest$ac_exeext
8288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8289 (eval $ac_link) 2>&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } &&
8293 { ac_try='test -s conftest$ac_exeext'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; }; then
8299 ac_cv_lib_nsl_gethostbyname=yes
8301 echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8304 ac_cv_lib_nsl_gethostbyname=no
8306 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8307 LIBS=$ac_check_lib_save_LIBS
8309 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
8310 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
8311 if test $ac_cv_lib_nsl_gethostbyname = yes; then
8312 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
8315 if test $ac_cv_lib_nsl_gethostbyname = no; then
8316 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
8317 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
8318 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8321 ac_check_lib_save_LIBS=$LIBS
8323 cat >conftest.$ac_ext <<_ACEOF
8324 #line $LINENO "configure"
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h. */
8331 /* Override any gcc2 internal prototype to avoid an error. */
8335 /* We use char because int might match the return type of a gcc2
8336 builtin and then its argument prototype would still apply. */
8337 char gethostbyname ();
8346 rm -f conftest.$ac_objext conftest$ac_exeext
8347 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8348 (eval $ac_link) 2>&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } &&
8352 { ac_try='test -s conftest$ac_exeext'
8353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8357 (exit $ac_status); }; }; then
8358 ac_cv_lib_bsd_gethostbyname=yes
8360 echo "$as_me: failed program was:" >&5
8361 sed 's/^/| /' conftest.$ac_ext >&5
8363 ac_cv_lib_bsd_gethostbyname=no
8365 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8366 LIBS=$ac_check_lib_save_LIBS
8368 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
8369 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
8370 if test $ac_cv_lib_bsd_gethostbyname = yes; then
8371 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
8377 # lieder@skyler.mavd.honeywell.com says without -lsocket,
8378 # socket/setsockopt and other routines are undefined under SCO ODT
8379 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
8380 # on later versions), says Simon Leinen: it contains gethostby*
8381 # variants that don't use the name server (or something). -lsocket
8382 # must be given before -lnsl if both are needed. We assume that
8383 # if connect needs -lnsl, so does gethostbyname.
8384 echo "$as_me:$LINENO: checking for connect" >&5
8385 echo $ECHO_N "checking for connect... $ECHO_C" >&6
8386 if test "${ac_cv_func_connect+set}" = set; then
8387 echo $ECHO_N "(cached) $ECHO_C" >&6
8389 cat >conftest.$ac_ext <<_ACEOF
8390 #line $LINENO "configure"
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h. */
8396 /* System header to define __stub macros and hopefully few prototypes,
8397 which can conflict with char connect (); below.
8398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8399 <limits.h> exists even on freestanding compilers. */
8401 # include <limits.h>
8403 # include <assert.h>
8405 /* Override any gcc2 internal prototype to avoid an error. */
8410 /* We use char because int might match the return type of a gcc2
8411 builtin and then its argument prototype would still apply. */
8413 /* The GNU C library defines this for functions which it implements
8414 to always fail with ENOSYS. Some functions are actually named
8415 something starting with __ and the normal name is an alias. */
8416 #if defined (__stub_connect) || defined (__stub___connect)
8419 char (*f) () = connect;
8428 return f != connect;
8433 rm -f conftest.$ac_objext conftest$ac_exeext
8434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8435 (eval $ac_link) 2>&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } &&
8439 { ac_try='test -s conftest$ac_exeext'
8440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8444 (exit $ac_status); }; }; then
8445 ac_cv_func_connect=yes
8447 echo "$as_me: failed program was:" >&5
8448 sed 's/^/| /' conftest.$ac_ext >&5
8450 ac_cv_func_connect=no
8452 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8454 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
8455 echo "${ECHO_T}$ac_cv_func_connect" >&6
8457 if test $ac_cv_func_connect = no; then
8458 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
8459 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
8460 if test "${ac_cv_lib_socket_connect+set}" = set; then
8461 echo $ECHO_N "(cached) $ECHO_C" >&6
8463 ac_check_lib_save_LIBS=$LIBS
8464 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
8465 cat >conftest.$ac_ext <<_ACEOF
8466 #line $LINENO "configure"
8469 cat confdefs.h >>conftest.$ac_ext
8470 cat >>conftest.$ac_ext <<_ACEOF
8471 /* end confdefs.h. */
8473 /* Override any gcc2 internal prototype to avoid an error. */
8477 /* We use char because int might match the return type of a gcc2
8478 builtin and then its argument prototype would still apply. */
8488 rm -f conftest.$ac_objext conftest$ac_exeext
8489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8490 (eval $ac_link) 2>&5
8492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8493 (exit $ac_status); } &&
8494 { ac_try='test -s conftest$ac_exeext'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then
8500 ac_cv_lib_socket_connect=yes
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8505 ac_cv_lib_socket_connect=no
8507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8508 LIBS=$ac_check_lib_save_LIBS
8510 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
8511 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
8512 if test $ac_cv_lib_socket_connect = yes; then
8513 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
8518 # Guillermo Gomez says -lposix is necessary on A/UX.
8519 echo "$as_me:$LINENO: checking for remove" >&5
8520 echo $ECHO_N "checking for remove... $ECHO_C" >&6
8521 if test "${ac_cv_func_remove+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8524 cat >conftest.$ac_ext <<_ACEOF
8525 #line $LINENO "configure"
8528 cat confdefs.h >>conftest.$ac_ext
8529 cat >>conftest.$ac_ext <<_ACEOF
8530 /* end confdefs.h. */
8531 /* System header to define __stub macros and hopefully few prototypes,
8532 which can conflict with char remove (); below.
8533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8534 <limits.h> exists even on freestanding compilers. */
8536 # include <limits.h>
8538 # include <assert.h>
8540 /* Override any gcc2 internal prototype to avoid an error. */
8545 /* We use char because int might match the return type of a gcc2
8546 builtin and then its argument prototype would still apply. */
8548 /* The GNU C library defines this for functions which it implements
8549 to always fail with ENOSYS. Some functions are actually named
8550 something starting with __ and the normal name is an alias. */
8551 #if defined (__stub_remove) || defined (__stub___remove)
8554 char (*f) () = remove;
8568 rm -f conftest.$ac_objext conftest$ac_exeext
8569 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8570 (eval $ac_link) 2>&5
8572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8573 (exit $ac_status); } &&
8574 { ac_try='test -s conftest$ac_exeext'
8575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); }; }; then
8580 ac_cv_func_remove=yes
8582 echo "$as_me: failed program was:" >&5
8583 sed 's/^/| /' conftest.$ac_ext >&5
8585 ac_cv_func_remove=no
8587 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8589 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
8590 echo "${ECHO_T}$ac_cv_func_remove" >&6
8592 if test $ac_cv_func_remove = no; then
8593 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
8594 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
8595 if test "${ac_cv_lib_posix_remove+set}" = set; then
8596 echo $ECHO_N "(cached) $ECHO_C" >&6
8598 ac_check_lib_save_LIBS=$LIBS
8599 LIBS="-lposix $LIBS"
8600 cat >conftest.$ac_ext <<_ACEOF
8601 #line $LINENO "configure"
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h. */
8608 /* Override any gcc2 internal prototype to avoid an error. */
8612 /* We use char because int might match the return type of a gcc2
8613 builtin and then its argument prototype would still apply. */
8623 rm -f conftest.$ac_objext conftest$ac_exeext
8624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8625 (eval $ac_link) 2>&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); } &&
8629 { ac_try='test -s conftest$ac_exeext'
8630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634 (exit $ac_status); }; }; then
8635 ac_cv_lib_posix_remove=yes
8637 echo "$as_me: failed program was:" >&5
8638 sed 's/^/| /' conftest.$ac_ext >&5
8640 ac_cv_lib_posix_remove=no
8642 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8643 LIBS=$ac_check_lib_save_LIBS
8645 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
8646 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
8647 if test $ac_cv_lib_posix_remove = yes; then
8648 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
8653 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
8654 echo "$as_me:$LINENO: checking for shmat" >&5
8655 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
8656 if test "${ac_cv_func_shmat+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 cat >conftest.$ac_ext <<_ACEOF
8660 #line $LINENO "configure"
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8666 /* System header to define __stub macros and hopefully few prototypes,
8667 which can conflict with char shmat (); below.
8668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8669 <limits.h> exists even on freestanding compilers. */
8671 # include <limits.h>
8673 # include <assert.h>
8675 /* Override any gcc2 internal prototype to avoid an error. */
8680 /* We use char because int might match the return type of a gcc2
8681 builtin and then its argument prototype would still apply. */
8683 /* The GNU C library defines this for functions which it implements
8684 to always fail with ENOSYS. Some functions are actually named
8685 something starting with __ and the normal name is an alias. */
8686 #if defined (__stub_shmat) || defined (__stub___shmat)
8689 char (*f) () = shmat;
8703 rm -f conftest.$ac_objext conftest$ac_exeext
8704 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8705 (eval $ac_link) 2>&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); } &&
8709 { ac_try='test -s conftest$ac_exeext'
8710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8714 (exit $ac_status); }; }; then
8715 ac_cv_func_shmat=yes
8717 echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8722 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8724 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
8725 echo "${ECHO_T}$ac_cv_func_shmat" >&6
8727 if test $ac_cv_func_shmat = no; then
8728 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
8729 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
8730 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
8731 echo $ECHO_N "(cached) $ECHO_C" >&6
8733 ac_check_lib_save_LIBS=$LIBS
8735 cat >conftest.$ac_ext <<_ACEOF
8736 #line $LINENO "configure"
8739 cat confdefs.h >>conftest.$ac_ext
8740 cat >>conftest.$ac_ext <<_ACEOF
8741 /* end confdefs.h. */
8743 /* Override any gcc2 internal prototype to avoid an error. */
8747 /* We use char because int might match the return type of a gcc2
8748 builtin and then its argument prototype would still apply. */
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8760 (eval $ac_link) 2>&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); } &&
8764 { ac_try='test -s conftest$ac_exeext'
8765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; }; then
8770 ac_cv_lib_ipc_shmat=yes
8772 echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8775 ac_cv_lib_ipc_shmat=no
8777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8778 LIBS=$ac_check_lib_save_LIBS
8780 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
8781 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
8782 if test $ac_cv_lib_ipc_shmat = yes; then
8783 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
8789 # Check for libraries that X11R6 Xt/Xaw programs need.
8790 ac_save_LDFLAGS=$LDFLAGS
8791 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
8792 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
8793 # check for ICE first), but we must link in the order -lSM -lICE or
8794 # we get undefined symbols. So assume we have SM if we have ICE.
8795 # These have to be linked with before -lX11, unlike the other
8796 # libraries we check for below, so use a different variable.
8797 # John Interrante, Karl Berry
8798 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
8799 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
8800 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
8801 echo $ECHO_N "(cached) $ECHO_C" >&6
8803 ac_check_lib_save_LIBS=$LIBS
8804 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
8805 cat >conftest.$ac_ext <<_ACEOF
8806 #line $LINENO "configure"
8809 cat confdefs.h >>conftest.$ac_ext
8810 cat >>conftest.$ac_ext <<_ACEOF
8811 /* end confdefs.h. */
8813 /* Override any gcc2 internal prototype to avoid an error. */
8817 /* We use char because int might match the return type of a gcc2
8818 builtin and then its argument prototype would still apply. */
8819 char IceConnectionNumber ();
8823 IceConnectionNumber ();
8828 rm -f conftest.$ac_objext conftest$ac_exeext
8829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8830 (eval $ac_link) 2>&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } &&
8834 { ac_try='test -s conftest$ac_exeext'
8835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); }; }; then
8840 ac_cv_lib_ICE_IceConnectionNumber=yes
8842 echo "$as_me: failed program was:" >&5
8843 sed 's/^/| /' conftest.$ac_ext >&5
8845 ac_cv_lib_ICE_IceConnectionNumber=no
8847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8848 LIBS=$ac_check_lib_save_LIBS
8850 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
8851 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
8852 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
8853 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
8856 LDFLAGS=$ac_save_LDFLAGS
8908 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8909 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8910 echo "$as_me:$LINENO: checking for $ac_header" >&5
8911 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8912 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8915 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8916 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8918 # Is the header compilable?
8919 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8921 cat >conftest.$ac_ext <<_ACEOF
8922 #line $LINENO "configure"
8925 cat confdefs.h >>conftest.$ac_ext
8926 cat >>conftest.$ac_ext <<_ACEOF
8927 /* end confdefs.h. */
8928 $ac_includes_default
8929 #include <$ac_header>
8931 rm -f conftest.$ac_objext
8932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8933 (eval $ac_compile) 2>&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } &&
8937 { ac_try='test -s conftest.$ac_objext'
8938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }; }; then
8943 ac_header_compiler=yes
8945 echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8948 ac_header_compiler=no
8950 rm -f conftest.$ac_objext conftest.$ac_ext
8951 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8952 echo "${ECHO_T}$ac_header_compiler" >&6
8954 # Is the header present?
8955 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8957 cat >conftest.$ac_ext <<_ACEOF
8958 #line $LINENO "configure"
8961 cat confdefs.h >>conftest.$ac_ext
8962 cat >>conftest.$ac_ext <<_ACEOF
8963 /* end confdefs.h. */
8964 #include <$ac_header>
8966 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8967 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8969 grep -v '^ *+' conftest.er1 >conftest.err
8971 cat conftest.err >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } >/dev/null; then
8974 if test -s conftest.err; then
8975 ac_cpp_err=$ac_c_preproc_warn_flag
8982 if test -z "$ac_cpp_err"; then
8983 ac_header_preproc=yes
8985 echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8988 ac_header_preproc=no
8990 rm -f conftest.err conftest.$ac_ext
8991 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8992 echo "${ECHO_T}$ac_header_preproc" >&6
8994 # So? What about this header?
8995 case $ac_header_compiler:$ac_header_preproc in
8997 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8998 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8999 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9003 ## ------------------------------------ ##
9004 ## Report this to bug-autoconf@gnu.org. ##
9005 ## ------------------------------------ ##
9008 sed "s/^/$as_me: WARNING: /" >&2
9011 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9012 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9013 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9014 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9016 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9019 ## ------------------------------------ ##
9020 ## Report this to bug-autoconf@gnu.org. ##
9021 ## ------------------------------------ ##
9024 sed "s/^/$as_me: WARNING: /" >&2
9027 echo "$as_me:$LINENO: checking for $ac_header" >&5
9028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9029 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9030 echo $ECHO_N "(cached) $ECHO_C" >&6
9032 eval "$as_ac_Header=$ac_header_preproc"
9034 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9035 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9039 cat >>confdefs.h <<_ACEOF
9040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9047 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9048 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9049 if test "${ac_cv_header_stdc+set}" = set; then
9050 echo $ECHO_N "(cached) $ECHO_C" >&6
9052 cat >conftest.$ac_ext <<_ACEOF
9053 #line $LINENO "configure"
9056 cat confdefs.h >>conftest.$ac_ext
9057 cat >>conftest.$ac_ext <<_ACEOF
9058 /* end confdefs.h. */
9072 rm -f conftest.$ac_objext
9073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9074 (eval $ac_compile) 2>&5
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); } &&
9078 { ac_try='test -s conftest.$ac_objext'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; }; then
9084 ac_cv_header_stdc=yes
9086 echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9089 ac_cv_header_stdc=no
9091 rm -f conftest.$ac_objext conftest.$ac_ext
9093 if test $ac_cv_header_stdc = yes; then
9094 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9095 cat >conftest.$ac_ext <<_ACEOF
9096 #line $LINENO "configure"
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9106 $EGREP "memchr" >/dev/null 2>&1; then
9109 ac_cv_header_stdc=no
9115 if test $ac_cv_header_stdc = yes; then
9116 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9117 cat >conftest.$ac_ext <<_ACEOF
9118 #line $LINENO "configure"
9121 cat confdefs.h >>conftest.$ac_ext
9122 cat >>conftest.$ac_ext <<_ACEOF
9123 /* end confdefs.h. */
9127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9128 $EGREP "free" >/dev/null 2>&1; then
9131 ac_cv_header_stdc=no
9137 if test $ac_cv_header_stdc = yes; then
9138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9139 if test "$cross_compiling" = yes; then
9142 cat >conftest.$ac_ext <<_ACEOF
9143 #line $LINENO "configure"
9146 cat confdefs.h >>conftest.$ac_ext
9147 cat >>conftest.$ac_ext <<_ACEOF
9148 /* end confdefs.h. */
9150 #if ((' ' & 0x0FF) == 0x020)
9151 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9152 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9154 # define ISLOWER(c) \
9155 (('a' <= (c) && (c) <= 'i') \
9156 || ('j' <= (c) && (c) <= 'r') \
9157 || ('s' <= (c) && (c) <= 'z'))
9158 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9161 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9166 for (i = 0; i < 256; i++)
9167 if (XOR (islower (i), ISLOWER (i))
9168 || toupper (i) != TOUPPER (i))
9173 rm -f conftest$ac_exeext
9174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9175 (eval $ac_link) 2>&5
9177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9183 (exit $ac_status); }; }; then
9186 echo "$as_me: program exited with status $ac_status" >&5
9187 echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9191 ac_cv_header_stdc=no
9193 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9197 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9198 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9199 if test $ac_cv_header_stdc = yes; then
9201 cat >>confdefs.h <<\_ACEOF
9202 #define STDC_HEADERS 1
9207 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
9208 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
9209 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9212 cat >conftest.$ac_ext <<_ACEOF
9213 #line $LINENO "configure"
9216 cat confdefs.h >>conftest.$ac_ext
9217 cat >>conftest.$ac_ext <<_ACEOF
9218 /* end confdefs.h. */
9219 #include <sys/types.h>
9223 return makedev(0, 0);
9228 rm -f conftest.$ac_objext conftest$ac_exeext
9229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9230 (eval $ac_link) 2>&5
9232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9233 (exit $ac_status); } &&
9234 { ac_try='test -s conftest$ac_exeext'
9235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); }; }; then
9240 ac_cv_header_sys_types_h_makedev=yes
9242 echo "$as_me: failed program was:" >&5
9243 sed 's/^/| /' conftest.$ac_ext >&5
9245 ac_cv_header_sys_types_h_makedev=no
9247 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9250 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
9251 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
9253 if test $ac_cv_header_sys_types_h_makedev = no; then
9254 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9255 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9256 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9257 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9258 echo $ECHO_N "(cached) $ECHO_C" >&6
9260 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9261 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9263 # Is the header compilable?
9264 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
9265 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
9266 cat >conftest.$ac_ext <<_ACEOF
9267 #line $LINENO "configure"
9270 cat confdefs.h >>conftest.$ac_ext
9271 cat >>conftest.$ac_ext <<_ACEOF
9272 /* end confdefs.h. */
9273 $ac_includes_default
9274 #include <sys/mkdev.h>
9276 rm -f conftest.$ac_objext
9277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9278 (eval $ac_compile) 2>&5
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); } &&
9282 { ac_try='test -s conftest.$ac_objext'
9283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 (exit $ac_status); }; }; then
9288 ac_header_compiler=yes
9290 echo "$as_me: failed program was:" >&5
9291 sed 's/^/| /' conftest.$ac_ext >&5
9293 ac_header_compiler=no
9295 rm -f conftest.$ac_objext conftest.$ac_ext
9296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9297 echo "${ECHO_T}$ac_header_compiler" >&6
9299 # Is the header present?
9300 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
9301 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
9302 cat >conftest.$ac_ext <<_ACEOF
9303 #line $LINENO "configure"
9306 cat confdefs.h >>conftest.$ac_ext
9307 cat >>conftest.$ac_ext <<_ACEOF
9308 /* end confdefs.h. */
9309 #include <sys/mkdev.h>
9311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9314 grep -v '^ *+' conftest.er1 >conftest.err
9316 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } >/dev/null; then
9319 if test -s conftest.err; then
9320 ac_cpp_err=$ac_c_preproc_warn_flag
9327 if test -z "$ac_cpp_err"; then
9328 ac_header_preproc=yes
9330 echo "$as_me: failed program was:" >&5
9331 sed 's/^/| /' conftest.$ac_ext >&5
9333 ac_header_preproc=no
9335 rm -f conftest.err conftest.$ac_ext
9336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9337 echo "${ECHO_T}$ac_header_preproc" >&6
9339 # So? What about this header?
9340 case $ac_header_compiler:$ac_header_preproc in
9342 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
9343 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9344 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9345 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9348 ## ------------------------------------ ##
9349 ## Report this to bug-autoconf@gnu.org. ##
9350 ## ------------------------------------ ##
9353 sed "s/^/$as_me: WARNING: /" >&2
9356 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
9357 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
9358 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
9359 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
9360 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
9361 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
9364 ## ------------------------------------ ##
9365 ## Report this to bug-autoconf@gnu.org. ##
9366 ## ------------------------------------ ##
9369 sed "s/^/$as_me: WARNING: /" >&2
9372 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
9373 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
9374 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
9375 echo $ECHO_N "(cached) $ECHO_C" >&6
9377 ac_cv_header_sys_mkdev_h=$ac_header_preproc
9379 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
9380 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
9383 if test $ac_cv_header_sys_mkdev_h = yes; then
9385 cat >>confdefs.h <<\_ACEOF
9386 #define MAJOR_IN_MKDEV 1
9393 if test $ac_cv_header_sys_mkdev_h = no; then
9394 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9395 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9396 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9397 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9400 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9401 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9403 # Is the header compilable?
9404 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
9405 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
9406 cat >conftest.$ac_ext <<_ACEOF
9407 #line $LINENO "configure"
9410 cat confdefs.h >>conftest.$ac_ext
9411 cat >>conftest.$ac_ext <<_ACEOF
9412 /* end confdefs.h. */
9413 $ac_includes_default
9414 #include <sys/sysmacros.h>
9416 rm -f conftest.$ac_objext
9417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9418 (eval $ac_compile) 2>&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); } &&
9422 { ac_try='test -s conftest.$ac_objext'
9423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9427 (exit $ac_status); }; }; then
9428 ac_header_compiler=yes
9430 echo "$as_me: failed program was:" >&5
9431 sed 's/^/| /' conftest.$ac_ext >&5
9433 ac_header_compiler=no
9435 rm -f conftest.$ac_objext conftest.$ac_ext
9436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9437 echo "${ECHO_T}$ac_header_compiler" >&6
9439 # Is the header present?
9440 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
9441 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
9442 cat >conftest.$ac_ext <<_ACEOF
9443 #line $LINENO "configure"
9446 cat confdefs.h >>conftest.$ac_ext
9447 cat >>conftest.$ac_ext <<_ACEOF
9448 /* end confdefs.h. */
9449 #include <sys/sysmacros.h>
9451 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9452 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9454 grep -v '^ *+' conftest.er1 >conftest.err
9456 cat conftest.err >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } >/dev/null; then
9459 if test -s conftest.err; then
9460 ac_cpp_err=$ac_c_preproc_warn_flag
9467 if test -z "$ac_cpp_err"; then
9468 ac_header_preproc=yes
9470 echo "$as_me: failed program was:" >&5
9471 sed 's/^/| /' conftest.$ac_ext >&5
9473 ac_header_preproc=no
9475 rm -f conftest.err conftest.$ac_ext
9476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9477 echo "${ECHO_T}$ac_header_preproc" >&6
9479 # So? What about this header?
9480 case $ac_header_compiler:$ac_header_preproc in
9482 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
9483 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9484 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9485 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9488 ## ------------------------------------ ##
9489 ## Report this to bug-autoconf@gnu.org. ##
9490 ## ------------------------------------ ##
9493 sed "s/^/$as_me: WARNING: /" >&2
9496 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
9497 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
9498 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
9499 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
9500 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
9501 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
9504 ## ------------------------------------ ##
9505 ## Report this to bug-autoconf@gnu.org. ##
9506 ## ------------------------------------ ##
9509 sed "s/^/$as_me: WARNING: /" >&2
9512 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
9513 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
9514 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
9519 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
9520 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
9523 if test $ac_cv_header_sys_sysmacros_h = yes; then
9525 cat >>confdefs.h <<\_ACEOF
9526 #define MAJOR_IN_SYSMACROS 1
9541 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9542 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9543 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9544 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
9545 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9546 echo $ECHO_N "(cached) $ECHO_C" >&6
9548 cat >conftest.$ac_ext <<_ACEOF
9549 #line $LINENO "configure"
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9555 #include <sys/types.h>
9567 rm -f conftest.$ac_objext
9568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9569 (eval $ac_compile) 2>&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } &&
9573 { ac_try='test -s conftest.$ac_objext'
9574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578 (exit $ac_status); }; }; then
9579 eval "$as_ac_Header=yes"
9581 echo "$as_me: failed program was:" >&5
9582 sed 's/^/| /' conftest.$ac_ext >&5
9584 eval "$as_ac_Header=no"
9586 rm -f conftest.$ac_objext conftest.$ac_ext
9588 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9589 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9591 cat >>confdefs.h <<_ACEOF
9592 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9595 ac_header_dirent=$ac_hdr; break
9599 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9600 if test $ac_header_dirent = dirent.h; then
9601 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9602 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9603 if test "${ac_cv_search_opendir+set}" = set; then
9604 echo $ECHO_N "(cached) $ECHO_C" >&6
9606 ac_func_search_save_LIBS=$LIBS
9607 ac_cv_search_opendir=no
9608 cat >conftest.$ac_ext <<_ACEOF
9609 #line $LINENO "configure"
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9616 /* Override any gcc2 internal prototype to avoid an error. */
9620 /* We use char because int might match the return type of a gcc2
9621 builtin and then its argument prototype would still apply. */
9631 rm -f conftest.$ac_objext conftest$ac_exeext
9632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9633 (eval $ac_link) 2>&5
9635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); } &&
9637 { ac_try='test -s conftest$ac_exeext'
9638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9642 (exit $ac_status); }; }; then
9643 ac_cv_search_opendir="none required"
9645 echo "$as_me: failed program was:" >&5
9646 sed 's/^/| /' conftest.$ac_ext >&5
9649 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9650 if test "$ac_cv_search_opendir" = no; then
9651 for ac_lib in dir; do
9652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9653 cat >conftest.$ac_ext <<_ACEOF
9654 #line $LINENO "configure"
9657 cat confdefs.h >>conftest.$ac_ext
9658 cat >>conftest.$ac_ext <<_ACEOF
9659 /* end confdefs.h. */
9661 /* Override any gcc2 internal prototype to avoid an error. */
9665 /* We use char because int might match the return type of a gcc2
9666 builtin and then its argument prototype would still apply. */
9676 rm -f conftest.$ac_objext conftest$ac_exeext
9677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9678 (eval $ac_link) 2>&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } &&
9682 { ac_try='test -s conftest$ac_exeext'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; }; then
9688 ac_cv_search_opendir="-l$ac_lib"
9691 echo "$as_me: failed program was:" >&5
9692 sed 's/^/| /' conftest.$ac_ext >&5
9695 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9698 LIBS=$ac_func_search_save_LIBS
9700 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9701 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9702 if test "$ac_cv_search_opendir" != no; then
9703 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9708 echo "$as_me:$LINENO: checking for library containing opendir" >&5
9709 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
9710 if test "${ac_cv_search_opendir+set}" = set; then
9711 echo $ECHO_N "(cached) $ECHO_C" >&6
9713 ac_func_search_save_LIBS=$LIBS
9714 ac_cv_search_opendir=no
9715 cat >conftest.$ac_ext <<_ACEOF
9716 #line $LINENO "configure"
9719 cat confdefs.h >>conftest.$ac_ext
9720 cat >>conftest.$ac_ext <<_ACEOF
9721 /* end confdefs.h. */
9723 /* Override any gcc2 internal prototype to avoid an error. */
9727 /* We use char because int might match the return type of a gcc2
9728 builtin and then its argument prototype would still apply. */
9738 rm -f conftest.$ac_objext conftest$ac_exeext
9739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9740 (eval $ac_link) 2>&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } &&
9744 { ac_try='test -s conftest$ac_exeext'
9745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9749 (exit $ac_status); }; }; then
9750 ac_cv_search_opendir="none required"
9752 echo "$as_me: failed program was:" >&5
9753 sed 's/^/| /' conftest.$ac_ext >&5
9756 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9757 if test "$ac_cv_search_opendir" = no; then
9759 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9760 cat >conftest.$ac_ext <<_ACEOF
9761 #line $LINENO "configure"
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9768 /* Override any gcc2 internal prototype to avoid an error. */
9772 /* We use char because int might match the return type of a gcc2
9773 builtin and then its argument prototype would still apply. */
9783 rm -f conftest.$ac_objext conftest$ac_exeext
9784 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9785 (eval $ac_link) 2>&5
9787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9788 (exit $ac_status); } &&
9789 { ac_try='test -s conftest$ac_exeext'
9790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9794 (exit $ac_status); }; }; then
9795 ac_cv_search_opendir="-l$ac_lib"
9798 echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9802 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9805 LIBS=$ac_func_search_save_LIBS
9807 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9808 echo "${ECHO_T}$ac_cv_search_opendir" >&6
9809 if test "$ac_cv_search_opendir" != no; then
9810 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
9816 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
9817 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
9818 if test "${ac_cv_header_stat_broken+set}" = set; then
9819 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 cat >conftest.$ac_ext <<_ACEOF
9822 #line $LINENO "configure"
9825 cat confdefs.h >>conftest.$ac_ext
9826 cat >>conftest.$ac_ext <<_ACEOF
9827 /* end confdefs.h. */
9828 #include <sys/types.h>
9829 #include <sys/stat.h>
9831 #if defined(S_ISBLK) && defined(S_IFDIR)
9832 # if S_ISBLK (S_IFDIR)
9837 #if defined(S_ISBLK) && defined(S_IFCHR)
9838 # if S_ISBLK (S_IFCHR)
9843 #if defined(S_ISLNK) && defined(S_IFREG)
9844 # if S_ISLNK (S_IFREG)
9849 #if defined(S_ISSOCK) && defined(S_IFREG)
9850 # if S_ISSOCK (S_IFREG)
9856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9857 $EGREP "You lose" >/dev/null 2>&1; then
9858 ac_cv_header_stat_broken=yes
9860 ac_cv_header_stat_broken=no
9865 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
9866 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
9867 if test $ac_cv_header_stat_broken = yes; then
9869 cat >>confdefs.h <<\_ACEOF
9870 #define STAT_MACROS_BROKEN 1
9875 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
9876 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
9877 if test "${ac_cv_header_sys_wait_h+set}" = set; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9880 cat >conftest.$ac_ext <<_ACEOF
9881 #line $LINENO "configure"
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h. */
9887 #include <sys/types.h>
9888 #include <sys/wait.h>
9890 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
9893 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9901 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9906 rm -f conftest.$ac_objext
9907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9908 (eval $ac_compile) 2>&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); } &&
9912 { ac_try='test -s conftest.$ac_objext'
9913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917 (exit $ac_status); }; }; then
9918 ac_cv_header_sys_wait_h=yes
9920 echo "$as_me: failed program was:" >&5
9921 sed 's/^/| /' conftest.$ac_ext >&5
9923 ac_cv_header_sys_wait_h=no
9925 rm -f conftest.$ac_objext conftest.$ac_ext
9927 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
9928 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
9929 if test $ac_cv_header_sys_wait_h = yes; then
9931 cat >>confdefs.h <<\_ACEOF
9932 #define HAVE_SYS_WAIT_H 1
9937 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
9938 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
9939 if test "${ac_cv_header_time+set}" = set; then
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
9942 cat >conftest.$ac_ext <<_ACEOF
9943 #line $LINENO "configure"
9946 cat confdefs.h >>conftest.$ac_ext
9947 cat >>conftest.$ac_ext <<_ACEOF
9948 /* end confdefs.h. */
9949 #include <sys/types.h>
9950 #include <sys/time.h>
9956 if ((struct tm *) 0)
9962 rm -f conftest.$ac_objext
9963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9964 (eval $ac_compile) 2>&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } &&
9968 { ac_try='test -s conftest.$ac_objext'
9969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973 (exit $ac_status); }; }; then
9974 ac_cv_header_time=yes
9976 echo "$as_me: failed program was:" >&5
9977 sed 's/^/| /' conftest.$ac_ext >&5
9979 ac_cv_header_time=no
9981 rm -f conftest.$ac_objext conftest.$ac_ext
9983 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
9984 echo "${ECHO_T}$ac_cv_header_time" >&6
9985 if test $ac_cv_header_time = yes; then
9987 cat >>confdefs.h <<\_ACEOF
9988 #define TIME_WITH_SYS_TIME 1
9994 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
9995 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
9996 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 cat >conftest.$ac_ext <<_ACEOF
10000 #line $LINENO "configure"
10003 cat confdefs.h >>conftest.$ac_ext
10004 cat >>conftest.$ac_ext <<_ACEOF
10005 /* end confdefs.h. */
10006 $ac_includes_default
10010 static struct stat ac_aggr;
10011 if (ac_aggr.st_blksize)
10017 rm -f conftest.$ac_objext
10018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10019 (eval $ac_compile) 2>&5
10021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10022 (exit $ac_status); } &&
10023 { ac_try='test -s conftest.$ac_objext'
10024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10025 (eval $ac_try) 2>&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; }; then
10029 ac_cv_member_struct_stat_st_blksize=yes
10031 echo "$as_me: failed program was:" >&5
10032 sed 's/^/| /' conftest.$ac_ext >&5
10034 cat >conftest.$ac_ext <<_ACEOF
10035 #line $LINENO "configure"
10038 cat confdefs.h >>conftest.$ac_ext
10039 cat >>conftest.$ac_ext <<_ACEOF
10040 /* end confdefs.h. */
10041 $ac_includes_default
10045 static struct stat ac_aggr;
10046 if (sizeof ac_aggr.st_blksize)
10052 rm -f conftest.$ac_objext
10053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10054 (eval $ac_compile) 2>&5
10056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10057 (exit $ac_status); } &&
10058 { ac_try='test -s conftest.$ac_objext'
10059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10060 (eval $ac_try) 2>&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); }; }; then
10064 ac_cv_member_struct_stat_st_blksize=yes
10066 echo "$as_me: failed program was:" >&5
10067 sed 's/^/| /' conftest.$ac_ext >&5
10069 ac_cv_member_struct_stat_st_blksize=no
10071 rm -f conftest.$ac_objext conftest.$ac_ext
10073 rm -f conftest.$ac_objext conftest.$ac_ext
10075 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
10076 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
10077 if test $ac_cv_member_struct_stat_st_blksize = yes; then
10079 cat >>confdefs.h <<_ACEOF
10080 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
10084 cat >>confdefs.h <<\_ACEOF
10085 #define HAVE_ST_BLKSIZE 1
10091 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
10092 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
10093 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10096 cat >conftest.$ac_ext <<_ACEOF
10097 #line $LINENO "configure"
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10103 $ac_includes_default
10107 static struct stat ac_aggr;
10108 if (ac_aggr.st_blocks)
10114 rm -f conftest.$ac_objext
10115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10116 (eval $ac_compile) 2>&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } &&
10120 { ac_try='test -s conftest.$ac_objext'
10121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10122 (eval $ac_try) 2>&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; }; then
10126 ac_cv_member_struct_stat_st_blocks=yes
10128 echo "$as_me: failed program was:" >&5
10129 sed 's/^/| /' conftest.$ac_ext >&5
10131 cat >conftest.$ac_ext <<_ACEOF
10132 #line $LINENO "configure"
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h. */
10138 $ac_includes_default
10142 static struct stat ac_aggr;
10143 if (sizeof ac_aggr.st_blocks)
10149 rm -f conftest.$ac_objext
10150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10151 (eval $ac_compile) 2>&5
10153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10154 (exit $ac_status); } &&
10155 { ac_try='test -s conftest.$ac_objext'
10156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10157 (eval $ac_try) 2>&5
10159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160 (exit $ac_status); }; }; then
10161 ac_cv_member_struct_stat_st_blocks=yes
10163 echo "$as_me: failed program was:" >&5
10164 sed 's/^/| /' conftest.$ac_ext >&5
10166 ac_cv_member_struct_stat_st_blocks=no
10168 rm -f conftest.$ac_objext conftest.$ac_ext
10170 rm -f conftest.$ac_objext conftest.$ac_ext
10172 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
10173 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
10174 if test $ac_cv_member_struct_stat_st_blocks = yes; then
10176 cat >>confdefs.h <<_ACEOF
10177 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
10181 cat >>confdefs.h <<\_ACEOF
10182 #define HAVE_ST_BLOCKS 1
10186 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
10190 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10191 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10192 if test "${ac_cv_struct_tm+set}" = set; then
10193 echo $ECHO_N "(cached) $ECHO_C" >&6
10195 cat >conftest.$ac_ext <<_ACEOF
10196 #line $LINENO "configure"
10199 cat confdefs.h >>conftest.$ac_ext
10200 cat >>conftest.$ac_ext <<_ACEOF
10201 /* end confdefs.h. */
10202 #include <sys/types.h>
10208 struct tm *tp; tp->tm_sec;
10213 rm -f conftest.$ac_objext
10214 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10215 (eval $ac_compile) 2>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); } &&
10219 { ac_try='test -s conftest.$ac_objext'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; }; then
10225 ac_cv_struct_tm=time.h
10227 echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10230 ac_cv_struct_tm=sys/time.h
10232 rm -f conftest.$ac_objext conftest.$ac_ext
10234 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10235 echo "${ECHO_T}$ac_cv_struct_tm" >&6
10236 if test $ac_cv_struct_tm = sys/time.h; then
10238 cat >>confdefs.h <<\_ACEOF
10239 #define TM_IN_SYS_TIME 1
10244 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
10245 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
10246 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10249 cat >conftest.$ac_ext <<_ACEOF
10250 #line $LINENO "configure"
10253 cat confdefs.h >>conftest.$ac_ext
10254 cat >>conftest.$ac_ext <<_ACEOF
10255 /* end confdefs.h. */
10256 #include <sys/types.h>
10257 #include <$ac_cv_struct_tm>
10263 static struct tm ac_aggr;
10264 if (ac_aggr.tm_zone)
10270 rm -f conftest.$ac_objext
10271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10272 (eval $ac_compile) 2>&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } &&
10276 { ac_try='test -s conftest.$ac_objext'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10282 ac_cv_member_struct_tm_tm_zone=yes
10284 echo "$as_me: failed program was:" >&5
10285 sed 's/^/| /' conftest.$ac_ext >&5
10287 cat >conftest.$ac_ext <<_ACEOF
10288 #line $LINENO "configure"
10291 cat confdefs.h >>conftest.$ac_ext
10292 cat >>conftest.$ac_ext <<_ACEOF
10293 /* end confdefs.h. */
10294 #include <sys/types.h>
10295 #include <$ac_cv_struct_tm>
10301 static struct tm ac_aggr;
10302 if (sizeof ac_aggr.tm_zone)
10308 rm -f conftest.$ac_objext
10309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10310 (eval $ac_compile) 2>&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); } &&
10314 { ac_try='test -s conftest.$ac_objext'
10315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316 (eval $ac_try) 2>&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; }; then
10320 ac_cv_member_struct_tm_tm_zone=yes
10322 echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10325 ac_cv_member_struct_tm_tm_zone=no
10327 rm -f conftest.$ac_objext conftest.$ac_ext
10329 rm -f conftest.$ac_objext conftest.$ac_ext
10331 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
10332 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
10333 if test $ac_cv_member_struct_tm_tm_zone = yes; then
10335 cat >>confdefs.h <<_ACEOF
10336 #define HAVE_STRUCT_TM_TM_ZONE 1
10342 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
10344 cat >>confdefs.h <<\_ACEOF
10345 #define HAVE_TM_ZONE 1
10349 echo "$as_me:$LINENO: checking for tzname" >&5
10350 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
10351 if test "${ac_cv_var_tzname+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10354 cat >conftest.$ac_ext <<_ACEOF
10355 #line $LINENO "configure"
10358 cat confdefs.h >>conftest.$ac_ext
10359 cat >>conftest.$ac_ext <<_ACEOF
10360 /* end confdefs.h. */
10362 #ifndef tzname /* For SGI. */
10363 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
10374 rm -f conftest.$ac_objext conftest$ac_exeext
10375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10376 (eval $ac_link) 2>&5
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } &&
10380 { ac_try='test -s conftest$ac_exeext'
10381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382 (eval $ac_try) 2>&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; }; then
10386 ac_cv_var_tzname=yes
10388 echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10391 ac_cv_var_tzname=no
10393 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10395 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
10396 echo "${ECHO_T}$ac_cv_var_tzname" >&6
10397 if test $ac_cv_var_tzname = yes; then
10399 cat >>confdefs.h <<\_ACEOF
10400 #define HAVE_TZNAME 1
10407 echo "$as_me:$LINENO: checking for utime.h" >&5
10408 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
10409 if test "${ba_cv_header_utime_h+set}" = set; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10412 cat >conftest.$ac_ext <<_ACEOF
10413 #line $LINENO "configure"
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10420 #include <sys/types.h>
10430 rm -f conftest.$ac_objext
10431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10432 (eval $ac_compile) 2>&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } &&
10436 { ac_try='test -s conftest.$ac_objext'
10437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10438 (eval $ac_try) 2>&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); }; }; then
10442 ba_cv_header_utime_h=yes
10444 echo "$as_me: failed program was:" >&5
10445 sed 's/^/| /' conftest.$ac_ext >&5
10447 ba_cv_header_utime_h=no
10449 rm -f conftest.$ac_objext conftest.$ac_ext
10451 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
10452 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
10453 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
10454 #define HAVE_UTIME_H 1
10458 echo "$as_me:$LINENO: checking for socklen_t" >&5
10459 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
10460 if test "${ba_cv_header_socklen_t+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10463 cat >conftest.$ac_ext <<_ACEOF
10464 #line $LINENO "configure"
10467 cat confdefs.h >>conftest.$ac_ext
10468 cat >>conftest.$ac_ext <<_ACEOF
10469 /* end confdefs.h. */
10471 #include <sys/types.h>
10472 #include <sys/socket.h>
10481 rm -f conftest.$ac_objext
10482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10483 (eval $ac_compile) 2>&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } &&
10487 { ac_try='test -s conftest.$ac_objext'
10488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10489 (eval $ac_try) 2>&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; }; then
10493 ba_cv_header_socklen_t=yes
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10498 ba_cv_header_socklen_t=no
10500 rm -f conftest.$ac_objext conftest.$ac_ext
10502 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
10503 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
10504 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
10505 #define HAVE_SOCKLEN_T 1
10509 echo "$as_me:$LINENO: checking for bigendian" >&5
10510 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
10511 if test "${ba_cv_bigendian+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10514 if test "$cross_compiling" = yes; then
10517 cat >conftest.$ac_ext <<_ACEOF
10518 #line $LINENO "configure"
10521 cat confdefs.h >>conftest.$ac_ext
10522 cat >>conftest.$ac_ext <<_ACEOF
10523 /* end confdefs.h. */
10524 main(){long a=1L; char *p=(char *)&a; exit(*p);}
10526 rm -f conftest$ac_exeext
10527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10528 (eval $ac_link) 2>&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10533 (eval $ac_try) 2>&5
10535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10536 (exit $ac_status); }; }; then
10537 ba_cv_bigendian=yes
10539 echo "$as_me: program exited with status $ac_status" >&5
10540 echo "$as_me: failed program was:" >&5
10541 sed 's/^/| /' conftest.$ac_ext >&5
10543 ( exit $ac_status )
10546 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10549 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
10550 echo "${ECHO_T}$ba_cv_bigendian" >&6
10551 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
10552 #define HAVE_BIGENDIAN 1
10557 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10558 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
10559 if test "${ac_cv_c_const+set}" = set; then
10560 echo $ECHO_N "(cached) $ECHO_C" >&6
10562 cat >conftest.$ac_ext <<_ACEOF
10563 #line $LINENO "configure"
10566 cat confdefs.h >>conftest.$ac_ext
10567 cat >>conftest.$ac_ext <<_ACEOF
10568 /* end confdefs.h. */
10573 /* FIXME: Include the comments suggested by Paul. */
10574 #ifndef __cplusplus
10575 /* Ultrix mips cc rejects this. */
10576 typedef int charset[2];
10578 /* SunOS 4.1.1 cc rejects this. */
10579 char const *const *ccp;
10581 /* NEC SVR4.0.2 mips cc rejects this. */
10582 struct point {int x, y;};
10583 static struct point const zero = {0,0};
10584 /* AIX XL C 1.02.0.0 rejects this.
10585 It does not let you subtract one const X* pointer from another in
10586 an arm of an if-expression whose if-part is not a constant
10588 const char *g = "string";
10589 ccp = &g + (g ? g-g : 0);
10590 /* HPUX 7.0 cc rejects these. */
10593 ccp = (char const *const *) p;
10594 { /* SCO 3.2v4 cc rejects this. */
10596 char const *s = 0 ? (char *) 0 : (char const *) 0;
10600 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10601 int x[] = {25, 17};
10602 const int *foo = &x[0];
10605 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10606 typedef const int *iptr;
10610 { /* AIX XL C 1.02.0.0 rejects this saying
10611 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10612 struct s { int j; const int *ap[3]; };
10613 struct s *b; b->j = 5;
10615 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10616 const int foo = 10;
10624 rm -f conftest.$ac_objext
10625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10626 (eval $ac_compile) 2>&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } &&
10630 { ac_try='test -s conftest.$ac_objext'
10631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10632 (eval $ac_try) 2>&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; }; then
10638 echo "$as_me: failed program was:" >&5
10639 sed 's/^/| /' conftest.$ac_ext >&5
10643 rm -f conftest.$ac_objext conftest.$ac_ext
10645 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10646 echo "${ECHO_T}$ac_cv_c_const" >&6
10647 if test $ac_cv_c_const = no; then
10649 cat >>confdefs.h <<\_ACEOF
10657 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
10658 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
10660 # The order of these tests is important.
10661 cat >conftest.$ac_ext <<_ACEOF
10662 #line $LINENO "configure"
10665 cat confdefs.h >>conftest.$ac_ext
10666 cat >>conftest.$ac_ext <<_ACEOF
10667 /* end confdefs.h. */
10668 #include <sys/statvfs.h>
10669 #include <sys/fstyp.h>
10671 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10672 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10674 grep -v '^ *+' conftest.er1 >conftest.err
10676 cat conftest.err >&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); } >/dev/null; then
10679 if test -s conftest.err; then
10680 ac_cpp_err=$ac_c_preproc_warn_flag
10687 if test -z "$ac_cpp_err"; then
10688 cat >>confdefs.h <<\_ACEOF
10689 #define FSTYPE_STATVFS 1
10693 echo "$as_me: failed program was:" >&5
10694 sed 's/^/| /' conftest.$ac_ext >&5
10698 rm -f conftest.err conftest.$ac_ext
10699 if test $fstype = no; then
10700 cat >conftest.$ac_ext <<_ACEOF
10701 #line $LINENO "configure"
10704 cat confdefs.h >>conftest.$ac_ext
10705 cat >>conftest.$ac_ext <<_ACEOF
10706 /* end confdefs.h. */
10707 #include <sys/statfs.h>
10708 #include <sys/fstyp.h>
10710 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10711 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10713 grep -v '^ *+' conftest.er1 >conftest.err
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } >/dev/null; then
10718 if test -s conftest.err; then
10719 ac_cpp_err=$ac_c_preproc_warn_flag
10726 if test -z "$ac_cpp_err"; then
10727 cat >>confdefs.h <<\_ACEOF
10728 #define FSTYPE_USG_STATFS 1
10732 echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10737 rm -f conftest.err conftest.$ac_ext
10739 if test $fstype = no; then
10740 cat >conftest.$ac_ext <<_ACEOF
10741 #line $LINENO "configure"
10744 cat confdefs.h >>conftest.$ac_ext
10745 cat >>conftest.$ac_ext <<_ACEOF
10746 /* end confdefs.h. */
10747 #include <sys/statfs.h>
10748 #include <sys/vmount.h>
10750 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10751 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10753 grep -v '^ *+' conftest.er1 >conftest.err
10755 cat conftest.err >&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } >/dev/null; then
10758 if test -s conftest.err; then
10759 ac_cpp_err=$ac_c_preproc_warn_flag
10766 if test -z "$ac_cpp_err"; then
10767 cat >>confdefs.h <<\_ACEOF
10768 #define FSTYPE_AIX_STATFS 1
10772 echo "$as_me: failed program was:" >&5
10773 sed 's/^/| /' conftest.$ac_ext >&5
10777 rm -f conftest.err conftest.$ac_ext
10779 if test $fstype = no; then
10780 cat >conftest.$ac_ext <<_ACEOF
10781 #line $LINENO "configure"
10784 cat confdefs.h >>conftest.$ac_ext
10785 cat >>conftest.$ac_ext <<_ACEOF
10786 /* end confdefs.h. */
10787 #include <mntent.h>
10789 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10790 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10792 grep -v '^ *+' conftest.er1 >conftest.err
10794 cat conftest.err >&5
10795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796 (exit $ac_status); } >/dev/null; then
10797 if test -s conftest.err; then
10798 ac_cpp_err=$ac_c_preproc_warn_flag
10805 if test -z "$ac_cpp_err"; then
10806 cat >>confdefs.h <<\_ACEOF
10807 #define FSTYPE_MNTENT 1
10811 echo "$as_me: failed program was:" >&5
10812 sed 's/^/| /' conftest.$ac_ext >&5
10816 rm -f conftest.err conftest.$ac_ext
10818 if test $fstype = no; then
10819 cat >conftest.$ac_ext <<_ACEOF
10820 #line $LINENO "configure"
10823 cat confdefs.h >>conftest.$ac_ext
10824 cat >>conftest.$ac_ext <<_ACEOF
10825 /* end confdefs.h. */
10826 #include <sys/mount.h>
10829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10830 $EGREP "f_type;" >/dev/null 2>&1; then
10831 cat >>confdefs.h <<\_ACEOF
10832 #define FSTYPE_STATFS 1
10839 if test $fstype = no; then
10840 cat >conftest.$ac_ext <<_ACEOF
10841 #line $LINENO "configure"
10844 cat confdefs.h >>conftest.$ac_ext
10845 cat >>conftest.$ac_ext <<_ACEOF
10846 /* end confdefs.h. */
10847 #include <sys/mount.h>
10848 #include <sys/fs_types.h>
10850 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10853 grep -v '^ *+' conftest.er1 >conftest.err
10855 cat conftest.err >&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); } >/dev/null; then
10858 if test -s conftest.err; then
10859 ac_cpp_err=$ac_c_preproc_warn_flag
10866 if test -z "$ac_cpp_err"; then
10867 cat >>confdefs.h <<\_ACEOF
10868 #define FSTYPE_GETMNT 1
10872 echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10877 rm -f conftest.err conftest.$ac_ext
10879 echo "$as_me:$LINENO: result: $fstype" >&5
10880 echo "${ECHO_T}$fstype" >&6
10882 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10883 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10884 if test "${ac_cv_type_signal+set}" = set; then
10885 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 cat >conftest.$ac_ext <<_ACEOF
10888 #line $LINENO "configure"
10891 cat confdefs.h >>conftest.$ac_ext
10892 cat >>conftest.$ac_ext <<_ACEOF
10893 /* end confdefs.h. */
10894 #include <sys/types.h>
10895 #include <signal.h>
10900 extern "C" void (*signal (int, void (*)(int)))(int);
10902 void (*signal ()) ();
10913 rm -f conftest.$ac_objext
10914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10915 (eval $ac_compile) 2>&5
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); } &&
10919 { ac_try='test -s conftest.$ac_objext'
10920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10921 (eval $ac_try) 2>&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; }; then
10925 ac_cv_type_signal=void
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10930 ac_cv_type_signal=int
10932 rm -f conftest.$ac_objext conftest.$ac_ext
10934 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10935 echo "${ECHO_T}$ac_cv_type_signal" >&6
10937 cat >>confdefs.h <<_ACEOF
10938 #define RETSIGTYPE $ac_cv_type_signal
10943 echo "$as_me:$LINENO: checking for type of signal functions" >&5
10944 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
10945 if test "${bash_cv_signal_vintage+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10949 cat >conftest.$ac_ext <<_ACEOF
10950 #line $LINENO "configure"
10953 cat confdefs.h >>conftest.$ac_ext
10954 cat >>conftest.$ac_ext <<_ACEOF
10955 /* end confdefs.h. */
10956 #include <signal.h>
10962 struct sigaction sa;
10963 sigemptyset(&ss); sigsuspend(&ss);
10964 sigaction(SIGINT, &sa, (struct sigaction *) 0);
10965 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
10971 rm -f conftest.$ac_objext conftest$ac_exeext
10972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10973 (eval $ac_link) 2>&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); } &&
10977 { ac_try='test -s conftest$ac_exeext'
10978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10979 (eval $ac_try) 2>&5
10981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982 (exit $ac_status); }; }; then
10983 bash_cv_signal_vintage=posix
10985 echo "$as_me: failed program was:" >&5
10986 sed 's/^/| /' conftest.$ac_ext >&5
10989 cat >conftest.$ac_ext <<_ACEOF
10990 #line $LINENO "configure"
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h. */
10996 #include <signal.h>
11001 int mask = sigmask(SIGINT);
11002 sigsetmask(mask); sigblock(mask); sigpause(mask);
11008 rm -f conftest.$ac_objext conftest$ac_exeext
11009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11010 (eval $ac_link) 2>&5
11012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } &&
11014 { ac_try='test -s conftest$ac_exeext'
11015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11016 (eval $ac_try) 2>&5
11018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11019 (exit $ac_status); }; }; then
11020 bash_cv_signal_vintage=4.2bsd
11022 echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11026 cat >conftest.$ac_ext <<_ACEOF
11027 #line $LINENO "configure"
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
11032 /* end confdefs.h. */
11034 #include <signal.h>
11035 RETSIGTYPE foo() { }
11040 int mask = sigmask(SIGINT);
11041 sigset(SIGINT, foo); sigrelse(SIGINT);
11042 sighold(SIGINT); sigpause(SIGINT);
11048 rm -f conftest.$ac_objext conftest$ac_exeext
11049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11050 (eval $ac_link) 2>&5
11052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11053 (exit $ac_status); } &&
11054 { ac_try='test -s conftest$ac_exeext'
11055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11056 (eval $ac_try) 2>&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; }; then
11060 bash_cv_signal_vintage=svr3
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11065 bash_cv_signal_vintage=v7
11068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11071 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11078 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
11079 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
11080 if test "$bash_cv_signal_vintage" = posix; then
11081 cat >>confdefs.h <<\_ACEOF
11082 #define HAVE_POSIX_SIGNALS 1
11085 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
11086 cat >>confdefs.h <<\_ACEOF
11087 #define HAVE_BSD_SIGNALS 1
11090 elif test "$bash_cv_signal_vintage" = svr3; then
11091 cat >>confdefs.h <<\_ACEOF
11092 #define HAVE_USG_SIGHOLD 1
11097 echo "$as_me:$LINENO: checking for mode_t" >&5
11098 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
11099 if test "${ac_cv_type_mode_t+set}" = set; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 cat >conftest.$ac_ext <<_ACEOF
11103 #line $LINENO "configure"
11106 cat confdefs.h >>conftest.$ac_ext
11107 cat >>conftest.$ac_ext <<_ACEOF
11108 /* end confdefs.h. */
11109 $ac_includes_default
11115 if (sizeof (mode_t))
11121 rm -f conftest.$ac_objext
11122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11123 (eval $ac_compile) 2>&5
11125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); } &&
11127 { ac_try='test -s conftest.$ac_objext'
11128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11129 (eval $ac_try) 2>&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); }; }; then
11133 ac_cv_type_mode_t=yes
11135 echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11138 ac_cv_type_mode_t=no
11140 rm -f conftest.$ac_objext conftest.$ac_ext
11142 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
11143 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
11144 if test $ac_cv_type_mode_t = yes; then
11148 cat >>confdefs.h <<_ACEOF
11154 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
11155 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
11156 if test "${ac_cv_type_uid_t+set}" = set; then
11157 echo $ECHO_N "(cached) $ECHO_C" >&6
11159 cat >conftest.$ac_ext <<_ACEOF
11160 #line $LINENO "configure"
11163 cat confdefs.h >>conftest.$ac_ext
11164 cat >>conftest.$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11166 #include <sys/types.h>
11169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11170 $EGREP "uid_t" >/dev/null 2>&1; then
11171 ac_cv_type_uid_t=yes
11173 ac_cv_type_uid_t=no
11178 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
11179 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
11180 if test $ac_cv_type_uid_t = no; then
11182 cat >>confdefs.h <<\_ACEOF
11187 cat >>confdefs.h <<\_ACEOF
11193 echo "$as_me:$LINENO: checking for size_t" >&5
11194 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
11195 if test "${ac_cv_type_size_t+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 cat >conftest.$ac_ext <<_ACEOF
11199 #line $LINENO "configure"
11202 cat confdefs.h >>conftest.$ac_ext
11203 cat >>conftest.$ac_ext <<_ACEOF
11204 /* end confdefs.h. */
11205 $ac_includes_default
11211 if (sizeof (size_t))
11217 rm -f conftest.$ac_objext
11218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11219 (eval $ac_compile) 2>&5
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); } &&
11223 { ac_try='test -s conftest.$ac_objext'
11224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11225 (eval $ac_try) 2>&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; }; then
11229 ac_cv_type_size_t=yes
11231 echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11234 ac_cv_type_size_t=no
11236 rm -f conftest.$ac_objext conftest.$ac_ext
11238 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
11239 echo "${ECHO_T}$ac_cv_type_size_t" >&6
11240 if test $ac_cv_type_size_t = yes; then
11244 cat >>confdefs.h <<_ACEOF
11245 #define size_t unsigned
11250 echo "$as_me:$LINENO: checking for pid_t" >&5
11251 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
11252 if test "${ac_cv_type_pid_t+set}" = set; then
11253 echo $ECHO_N "(cached) $ECHO_C" >&6
11255 cat >conftest.$ac_ext <<_ACEOF
11256 #line $LINENO "configure"
11259 cat confdefs.h >>conftest.$ac_ext
11260 cat >>conftest.$ac_ext <<_ACEOF
11261 /* end confdefs.h. */
11262 $ac_includes_default
11268 if (sizeof (pid_t))
11274 rm -f conftest.$ac_objext
11275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11276 (eval $ac_compile) 2>&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } &&
11280 { ac_try='test -s conftest.$ac_objext'
11281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11282 (eval $ac_try) 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11286 ac_cv_type_pid_t=yes
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11291 ac_cv_type_pid_t=no
11293 rm -f conftest.$ac_objext conftest.$ac_ext
11295 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
11296 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
11297 if test $ac_cv_type_pid_t = yes; then
11301 cat >>confdefs.h <<_ACEOF
11307 echo "$as_me:$LINENO: checking for off_t" >&5
11308 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
11309 if test "${ac_cv_type_off_t+set}" = set; then
11310 echo $ECHO_N "(cached) $ECHO_C" >&6
11312 cat >conftest.$ac_ext <<_ACEOF
11313 #line $LINENO "configure"
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11319 $ac_includes_default
11325 if (sizeof (off_t))
11331 rm -f conftest.$ac_objext
11332 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11333 (eval $ac_compile) 2>&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } &&
11337 { ac_try='test -s conftest.$ac_objext'
11338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11339 (eval $ac_try) 2>&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); }; }; then
11343 ac_cv_type_off_t=yes
11345 echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11348 ac_cv_type_off_t=no
11350 rm -f conftest.$ac_objext conftest.$ac_ext
11352 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
11353 echo "${ECHO_T}$ac_cv_type_off_t" >&6
11354 if test $ac_cv_type_off_t = yes; then
11358 cat >>confdefs.h <<_ACEOF
11364 echo "$as_me:$LINENO: checking for ino_t" >&5
11365 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
11366 if test "${ac_cv_type_ino_t+set}" = set; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11369 cat >conftest.$ac_ext <<_ACEOF
11370 #line $LINENO "configure"
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h. */
11376 $ac_includes_default
11382 if (sizeof (ino_t))
11388 rm -f conftest.$ac_objext
11389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11390 (eval $ac_compile) 2>&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } &&
11394 { ac_try='test -s conftest.$ac_objext'
11395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11396 (eval $ac_try) 2>&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); }; }; then
11400 ac_cv_type_ino_t=yes
11402 echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11405 ac_cv_type_ino_t=no
11407 rm -f conftest.$ac_objext conftest.$ac_ext
11409 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
11410 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
11411 if test $ac_cv_type_ino_t = yes; then
11415 cat >>confdefs.h <<_ACEOF
11416 #define ino_t unsigned long
11421 echo "$as_me:$LINENO: checking for dev_t" >&5
11422 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
11423 if test "${ac_cv_type_dev_t+set}" = set; then
11424 echo $ECHO_N "(cached) $ECHO_C" >&6
11426 cat >conftest.$ac_ext <<_ACEOF
11427 #line $LINENO "configure"
11430 cat confdefs.h >>conftest.$ac_ext
11431 cat >>conftest.$ac_ext <<_ACEOF
11432 /* end confdefs.h. */
11433 $ac_includes_default
11439 if (sizeof (dev_t))
11445 rm -f conftest.$ac_objext
11446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11447 (eval $ac_compile) 2>&5
11449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11450 (exit $ac_status); } &&
11451 { ac_try='test -s conftest.$ac_objext'
11452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11453 (eval $ac_try) 2>&5
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; }; then
11457 ac_cv_type_dev_t=yes
11459 echo "$as_me: failed program was:" >&5
11460 sed 's/^/| /' conftest.$ac_ext >&5
11462 ac_cv_type_dev_t=no
11464 rm -f conftest.$ac_objext conftest.$ac_ext
11466 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
11467 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
11468 if test $ac_cv_type_dev_t = yes; then
11472 cat >>confdefs.h <<_ACEOF
11473 #define dev_t unsigned long
11478 echo "$as_me:$LINENO: checking for daddr_t" >&5
11479 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
11480 if test "${ac_cv_type_daddr_t+set}" = set; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 cat >conftest.$ac_ext <<_ACEOF
11484 #line $LINENO "configure"
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h. */
11490 $ac_includes_default
11496 if (sizeof (daddr_t))
11502 rm -f conftest.$ac_objext
11503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11504 (eval $ac_compile) 2>&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } &&
11508 { ac_try='test -s conftest.$ac_objext'
11509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11510 (eval $ac_try) 2>&5
11512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11513 (exit $ac_status); }; }; then
11514 ac_cv_type_daddr_t=yes
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11519 ac_cv_type_daddr_t=no
11521 rm -f conftest.$ac_objext conftest.$ac_ext
11523 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
11524 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
11525 if test $ac_cv_type_daddr_t = yes; then
11529 cat >>confdefs.h <<_ACEOF
11530 #define daddr_t long
11535 echo "$as_me:$LINENO: checking for major_t" >&5
11536 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
11537 if test "${ac_cv_type_major_t+set}" = set; then
11538 echo $ECHO_N "(cached) $ECHO_C" >&6
11540 cat >conftest.$ac_ext <<_ACEOF
11541 #line $LINENO "configure"
11544 cat confdefs.h >>conftest.$ac_ext
11545 cat >>conftest.$ac_ext <<_ACEOF
11546 /* end confdefs.h. */
11547 $ac_includes_default
11553 if (sizeof (major_t))
11559 rm -f conftest.$ac_objext
11560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11561 (eval $ac_compile) 2>&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); } &&
11565 { ac_try='test -s conftest.$ac_objext'
11566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11567 (eval $ac_try) 2>&5
11569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11570 (exit $ac_status); }; }; then
11571 ac_cv_type_major_t=yes
11573 echo "$as_me: failed program was:" >&5
11574 sed 's/^/| /' conftest.$ac_ext >&5
11576 ac_cv_type_major_t=no
11578 rm -f conftest.$ac_objext conftest.$ac_ext
11580 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
11581 echo "${ECHO_T}$ac_cv_type_major_t" >&6
11582 if test $ac_cv_type_major_t = yes; then
11586 cat >>confdefs.h <<_ACEOF
11587 #define major_t int
11592 echo "$as_me:$LINENO: checking for minor_t" >&5
11593 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
11594 if test "${ac_cv_type_minor_t+set}" = set; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11597 cat >conftest.$ac_ext <<_ACEOF
11598 #line $LINENO "configure"
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11604 $ac_includes_default
11610 if (sizeof (minor_t))
11616 rm -f conftest.$ac_objext
11617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11618 (eval $ac_compile) 2>&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } &&
11622 { ac_try='test -s conftest.$ac_objext'
11623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11624 (eval $ac_try) 2>&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); }; }; then
11628 ac_cv_type_minor_t=yes
11630 echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.$ac_ext >&5
11633 ac_cv_type_minor_t=no
11635 rm -f conftest.$ac_objext conftest.$ac_ext
11637 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
11638 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
11639 if test $ac_cv_type_minor_t = yes; then
11643 cat >>confdefs.h <<_ACEOF
11644 #define minor_t int
11649 echo "$as_me:$LINENO: checking for ssize_t" >&5
11650 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
11651 if test "${ac_cv_type_ssize_t+set}" = set; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
11654 cat >conftest.$ac_ext <<_ACEOF
11655 #line $LINENO "configure"
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h. */
11661 $ac_includes_default
11667 if (sizeof (ssize_t))
11673 rm -f conftest.$ac_objext
11674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11675 (eval $ac_compile) 2>&5
11677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11678 (exit $ac_status); } &&
11679 { ac_try='test -s conftest.$ac_objext'
11680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11681 (eval $ac_try) 2>&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; }; then
11685 ac_cv_type_ssize_t=yes
11687 echo "$as_me: failed program was:" >&5
11688 sed 's/^/| /' conftest.$ac_ext >&5
11690 ac_cv_type_ssize_t=no
11692 rm -f conftest.$ac_objext conftest.$ac_ext
11694 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
11695 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
11696 if test $ac_cv_type_ssize_t = yes; then
11700 cat >>confdefs.h <<_ACEOF
11701 #define ssize_t int
11706 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11707 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11708 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11709 echo $ECHO_N "(cached) $ECHO_C" >&6
11711 cat >conftest.$ac_ext <<_ACEOF
11712 #line $LINENO "configure"
11715 cat confdefs.h >>conftest.$ac_ext
11716 cat >>conftest.$ac_ext <<_ACEOF
11717 /* end confdefs.h. */
11718 $ac_includes_default
11722 static struct stat ac_aggr;
11723 if (ac_aggr.st_blocks)
11729 rm -f conftest.$ac_objext
11730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11731 (eval $ac_compile) 2>&5
11733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11734 (exit $ac_status); } &&
11735 { ac_try='test -s conftest.$ac_objext'
11736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11737 (eval $ac_try) 2>&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); }; }; then
11741 ac_cv_member_struct_stat_st_blocks=yes
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.$ac_ext >&5
11746 cat >conftest.$ac_ext <<_ACEOF
11747 #line $LINENO "configure"
11750 cat confdefs.h >>conftest.$ac_ext
11751 cat >>conftest.$ac_ext <<_ACEOF
11752 /* end confdefs.h. */
11753 $ac_includes_default
11757 static struct stat ac_aggr;
11758 if (sizeof ac_aggr.st_blocks)
11764 rm -f conftest.$ac_objext
11765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11766 (eval $ac_compile) 2>&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } &&
11770 { ac_try='test -s conftest.$ac_objext'
11771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11772 (eval $ac_try) 2>&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); }; }; then
11776 ac_cv_member_struct_stat_st_blocks=yes
11778 echo "$as_me: failed program was:" >&5
11779 sed 's/^/| /' conftest.$ac_ext >&5
11781 ac_cv_member_struct_stat_st_blocks=no
11783 rm -f conftest.$ac_objext conftest.$ac_ext
11785 rm -f conftest.$ac_objext conftest.$ac_ext
11787 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11788 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11789 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11791 cat >>confdefs.h <<_ACEOF
11792 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11796 cat >>confdefs.h <<\_ACEOF
11797 #define HAVE_ST_BLOCKS 1
11801 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11806 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
11807 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
11808 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
11809 echo $ECHO_N "(cached) $ECHO_C" >&6
11811 cat >conftest.$ac_ext <<_ACEOF
11812 #line $LINENO "configure"
11815 cat confdefs.h >>conftest.$ac_ext
11816 cat >>conftest.$ac_ext <<_ACEOF
11817 /* end confdefs.h. */
11818 $ac_includes_default
11822 static struct stat ac_aggr;
11823 if (ac_aggr.st_rdev)
11829 rm -f conftest.$ac_objext
11830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11831 (eval $ac_compile) 2>&5
11833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11834 (exit $ac_status); } &&
11835 { ac_try='test -s conftest.$ac_objext'
11836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11837 (eval $ac_try) 2>&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; }; then
11841 ac_cv_member_struct_stat_st_rdev=yes
11843 echo "$as_me: failed program was:" >&5
11844 sed 's/^/| /' conftest.$ac_ext >&5
11846 cat >conftest.$ac_ext <<_ACEOF
11847 #line $LINENO "configure"
11850 cat confdefs.h >>conftest.$ac_ext
11851 cat >>conftest.$ac_ext <<_ACEOF
11852 /* end confdefs.h. */
11853 $ac_includes_default
11857 static struct stat ac_aggr;
11858 if (sizeof ac_aggr.st_rdev)
11864 rm -f conftest.$ac_objext
11865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11866 (eval $ac_compile) 2>&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); } &&
11870 { ac_try='test -s conftest.$ac_objext'
11871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11872 (eval $ac_try) 2>&5
11874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11875 (exit $ac_status); }; }; then
11876 ac_cv_member_struct_stat_st_rdev=yes
11878 echo "$as_me: failed program was:" >&5
11879 sed 's/^/| /' conftest.$ac_ext >&5
11881 ac_cv_member_struct_stat_st_rdev=no
11883 rm -f conftest.$ac_objext conftest.$ac_ext
11885 rm -f conftest.$ac_objext conftest.$ac_ext
11887 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
11888 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
11889 if test $ac_cv_member_struct_stat_st_rdev = yes; then
11891 cat >>confdefs.h <<_ACEOF
11892 #define HAVE_STRUCT_STAT_ST_RDEV 1
11896 cat >>confdefs.h <<\_ACEOF
11897 #define HAVE_ST_RDEV 1
11903 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11904 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11905 if test "${ac_cv_struct_tm+set}" = set; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11908 cat >conftest.$ac_ext <<_ACEOF
11909 #line $LINENO "configure"
11912 cat confdefs.h >>conftest.$ac_ext
11913 cat >>conftest.$ac_ext <<_ACEOF
11914 /* end confdefs.h. */
11915 #include <sys/types.h>
11921 struct tm *tp; tp->tm_sec;
11926 rm -f conftest.$ac_objext
11927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11928 (eval $ac_compile) 2>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } &&
11932 { ac_try='test -s conftest.$ac_objext'
11933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11934 (eval $ac_try) 2>&5
11936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11937 (exit $ac_status); }; }; then
11938 ac_cv_struct_tm=time.h
11940 echo "$as_me: failed program was:" >&5
11941 sed 's/^/| /' conftest.$ac_ext >&5
11943 ac_cv_struct_tm=sys/time.h
11945 rm -f conftest.$ac_objext conftest.$ac_ext
11947 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11948 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11949 if test $ac_cv_struct_tm = sys/time.h; then
11951 cat >>confdefs.h <<\_ACEOF
11952 #define TM_IN_SYS_TIME 1
11957 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11958 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11959 if test "${ac_cv_c_const+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11962 cat >conftest.$ac_ext <<_ACEOF
11963 #line $LINENO "configure"
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h. */
11973 /* FIXME: Include the comments suggested by Paul. */
11974 #ifndef __cplusplus
11975 /* Ultrix mips cc rejects this. */
11976 typedef int charset[2];
11978 /* SunOS 4.1.1 cc rejects this. */
11979 char const *const *ccp;
11981 /* NEC SVR4.0.2 mips cc rejects this. */
11982 struct point {int x, y;};
11983 static struct point const zero = {0,0};
11984 /* AIX XL C 1.02.0.0 rejects this.
11985 It does not let you subtract one const X* pointer from another in
11986 an arm of an if-expression whose if-part is not a constant
11988 const char *g = "string";
11989 ccp = &g + (g ? g-g : 0);
11990 /* HPUX 7.0 cc rejects these. */
11993 ccp = (char const *const *) p;
11994 { /* SCO 3.2v4 cc rejects this. */
11996 char const *s = 0 ? (char *) 0 : (char const *) 0;
12000 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12001 int x[] = {25, 17};
12002 const int *foo = &x[0];
12005 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12006 typedef const int *iptr;
12010 { /* AIX XL C 1.02.0.0 rejects this saying
12011 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12012 struct s { int j; const int *ap[3]; };
12013 struct s *b; b->j = 5;
12015 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12016 const int foo = 10;
12024 rm -f conftest.$ac_objext
12025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12026 (eval $ac_compile) 2>&5
12028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029 (exit $ac_status); } &&
12030 { ac_try='test -s conftest.$ac_objext'
12031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12032 (eval $ac_try) 2>&5
12034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12035 (exit $ac_status); }; }; then
12038 echo "$as_me: failed program was:" >&5
12039 sed 's/^/| /' conftest.$ac_ext >&5
12043 rm -f conftest.$ac_objext conftest.$ac_ext
12045 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12046 echo "${ECHO_T}$ac_cv_c_const" >&6
12047 if test $ac_cv_c_const = no; then
12049 cat >>confdefs.h <<\_ACEOF
12057 echo "$as_me:$LINENO: checking for char" >&5
12058 echo $ECHO_N "checking for char... $ECHO_C" >&6
12059 if test "${ac_cv_type_char+set}" = set; then
12060 echo $ECHO_N "(cached) $ECHO_C" >&6
12062 cat >conftest.$ac_ext <<_ACEOF
12063 #line $LINENO "configure"
12066 cat confdefs.h >>conftest.$ac_ext
12067 cat >>conftest.$ac_ext <<_ACEOF
12068 /* end confdefs.h. */
12069 $ac_includes_default
12081 rm -f conftest.$ac_objext
12082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12083 (eval $ac_compile) 2>&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); } &&
12087 { ac_try='test -s conftest.$ac_objext'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; }; then
12093 ac_cv_type_char=yes
12095 echo "$as_me: failed program was:" >&5
12096 sed 's/^/| /' conftest.$ac_ext >&5
12100 rm -f conftest.$ac_objext conftest.$ac_ext
12102 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
12103 echo "${ECHO_T}$ac_cv_type_char" >&6
12105 echo "$as_me:$LINENO: checking size of char" >&5
12106 echo $ECHO_N "checking size of char... $ECHO_C" >&6
12107 if test "${ac_cv_sizeof_char+set}" = set; then
12108 echo $ECHO_N "(cached) $ECHO_C" >&6
12110 if test "$ac_cv_type_char" = yes; then
12111 # The cast to unsigned long works around a bug in the HP C Compiler
12112 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12113 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12114 # This bug is HP SR number 8606223364.
12115 if test "$cross_compiling" = yes; then
12116 # Depending upon the size, compute the lo and hi bounds.
12117 cat >conftest.$ac_ext <<_ACEOF
12118 #line $LINENO "configure"
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h. */
12124 $ac_includes_default
12128 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
12135 rm -f conftest.$ac_objext
12136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12137 (eval $ac_compile) 2>&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); } &&
12141 { ac_try='test -s conftest.$ac_objext'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12149 cat >conftest.$ac_ext <<_ACEOF
12150 #line $LINENO "configure"
12153 cat confdefs.h >>conftest.$ac_ext
12154 cat >>conftest.$ac_ext <<_ACEOF
12155 /* end confdefs.h. */
12156 $ac_includes_default
12160 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
12167 rm -f conftest.$ac_objext
12168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12169 (eval $ac_compile) 2>&5
12171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12172 (exit $ac_status); } &&
12173 { ac_try='test -s conftest.$ac_objext'
12174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12175 (eval $ac_try) 2>&5
12177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12178 (exit $ac_status); }; }; then
12179 ac_hi=$ac_mid; break
12181 echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12184 ac_lo=`expr $ac_mid + 1`
12185 if test $ac_lo -le $ac_mid; then
12189 ac_mid=`expr 2 '*' $ac_mid + 1`
12191 rm -f conftest.$ac_objext conftest.$ac_ext
12194 echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12197 cat >conftest.$ac_ext <<_ACEOF
12198 #line $LINENO "configure"
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12204 $ac_includes_default
12208 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
12215 rm -f conftest.$ac_objext
12216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12217 (eval $ac_compile) 2>&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } &&
12221 { ac_try='test -s conftest.$ac_objext'
12222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223 (eval $ac_try) 2>&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
12229 cat >conftest.$ac_ext <<_ACEOF
12230 #line $LINENO "configure"
12233 cat confdefs.h >>conftest.$ac_ext
12234 cat >>conftest.$ac_ext <<_ACEOF
12235 /* end confdefs.h. */
12236 $ac_includes_default
12240 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
12247 rm -f conftest.$ac_objext
12248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12249 (eval $ac_compile) 2>&5
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); } &&
12253 { ac_try='test -s conftest.$ac_objext'
12254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12255 (eval $ac_try) 2>&5
12257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258 (exit $ac_status); }; }; then
12259 ac_lo=$ac_mid; break
12261 echo "$as_me: failed program was:" >&5
12262 sed 's/^/| /' conftest.$ac_ext >&5
12264 ac_hi=`expr '(' $ac_mid ')' - 1`
12265 if test $ac_mid -le $ac_hi; then
12269 ac_mid=`expr 2 '*' $ac_mid`
12271 rm -f conftest.$ac_objext conftest.$ac_ext
12274 echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.$ac_ext >&5
12279 rm -f conftest.$ac_objext conftest.$ac_ext
12281 rm -f conftest.$ac_objext conftest.$ac_ext
12282 # Binary search between lo and hi bounds.
12283 while test "x$ac_lo" != "x$ac_hi"; do
12284 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
12317 echo "$as_me: failed program was:" >&5
12318 sed 's/^/| /' conftest.$ac_ext >&5
12320 ac_lo=`expr '(' $ac_mid ')' + 1`
12322 rm -f conftest.$ac_objext conftest.$ac_ext
12325 ?*) ac_cv_sizeof_char=$ac_lo;;
12326 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12327 See \`config.log' for more details." >&5
12328 echo "$as_me: error: cannot compute sizeof (char), 77
12329 See \`config.log' for more details." >&2;}
12330 { (exit 1); exit 1; }; } ;;
12333 if test "$cross_compiling" = yes; then
12334 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12335 See \`config.log' for more details." >&5
12336 echo "$as_me: error: cannot run test program while cross compiling
12337 See \`config.log' for more details." >&2;}
12338 { (exit 1); exit 1; }; }
12340 cat >conftest.$ac_ext <<_ACEOF
12341 #line $LINENO "configure"
12344 cat confdefs.h >>conftest.$ac_ext
12345 cat >>conftest.$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 $ac_includes_default
12348 long longval () { return (long) (sizeof (char)); }
12349 unsigned long ulongval () { return (long) (sizeof (char)); }
12351 #include <stdlib.h>
12356 FILE *f = fopen ("conftest.val", "w");
12359 if (((long) (sizeof (char))) < 0)
12361 long i = longval ();
12362 if (i != ((long) (sizeof (char))))
12364 fprintf (f, "%ld\n", i);
12368 unsigned long i = ulongval ();
12369 if (i != ((long) (sizeof (char))))
12371 fprintf (f, "%lu\n", i);
12373 exit (ferror (f) || fclose (f) != 0);
12379 rm -f conftest$ac_exeext
12380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12381 (eval $ac_link) 2>&5
12383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386 (eval $ac_try) 2>&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; }; then
12390 ac_cv_sizeof_char=`cat conftest.val`
12392 echo "$as_me: program exited with status $ac_status" >&5
12393 echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12396 ( exit $ac_status )
12397 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
12398 See \`config.log' for more details." >&5
12399 echo "$as_me: error: cannot compute sizeof (char), 77
12400 See \`config.log' for more details." >&2;}
12401 { (exit 1); exit 1; }; }
12403 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12408 ac_cv_sizeof_char=0
12411 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
12412 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
12413 cat >>confdefs.h <<_ACEOF
12414 #define SIZEOF_CHAR $ac_cv_sizeof_char
12418 echo "$as_me:$LINENO: checking for short int" >&5
12419 echo $ECHO_N "checking for short int... $ECHO_C" >&6
12420 if test "${ac_cv_type_short_int+set}" = set; then
12421 echo $ECHO_N "(cached) $ECHO_C" >&6
12423 cat >conftest.$ac_ext <<_ACEOF
12424 #line $LINENO "configure"
12427 cat confdefs.h >>conftest.$ac_ext
12428 cat >>conftest.$ac_ext <<_ACEOF
12429 /* end confdefs.h. */
12430 $ac_includes_default
12434 if ((short int *) 0)
12436 if (sizeof (short int))
12442 rm -f conftest.$ac_objext
12443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12444 (eval $ac_compile) 2>&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -s conftest.$ac_objext'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; }; then
12454 ac_cv_type_short_int=yes
12456 echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.$ac_ext >&5
12459 ac_cv_type_short_int=no
12461 rm -f conftest.$ac_objext conftest.$ac_ext
12463 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
12464 echo "${ECHO_T}$ac_cv_type_short_int" >&6
12466 echo "$as_me:$LINENO: checking size of short int" >&5
12467 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
12468 if test "${ac_cv_sizeof_short_int+set}" = set; then
12469 echo $ECHO_N "(cached) $ECHO_C" >&6
12471 if test "$ac_cv_type_short_int" = yes; then
12472 # The cast to unsigned long works around a bug in the HP C Compiler
12473 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12474 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12475 # This bug is HP SR number 8606223364.
12476 if test "$cross_compiling" = yes; then
12477 # Depending upon the size, compute the lo and hi bounds.
12478 cat >conftest.$ac_ext <<_ACEOF
12479 #line $LINENO "configure"
12482 cat confdefs.h >>conftest.$ac_ext
12483 cat >>conftest.$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12485 $ac_includes_default
12489 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
12496 rm -f conftest.$ac_objext
12497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12498 (eval $ac_compile) 2>&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12501 (exit $ac_status); } &&
12502 { ac_try='test -s conftest.$ac_objext'
12503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12504 (eval $ac_try) 2>&5
12506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507 (exit $ac_status); }; }; then
12510 cat >conftest.$ac_ext <<_ACEOF
12511 #line $LINENO "configure"
12514 cat confdefs.h >>conftest.$ac_ext
12515 cat >>conftest.$ac_ext <<_ACEOF
12516 /* end confdefs.h. */
12517 $ac_includes_default
12521 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
12528 rm -f conftest.$ac_objext
12529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12530 (eval $ac_compile) 2>&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); } &&
12534 { ac_try='test -s conftest.$ac_objext'
12535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12536 (eval $ac_try) 2>&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
12540 ac_hi=$ac_mid; break
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12545 ac_lo=`expr $ac_mid + 1`
12546 if test $ac_lo -le $ac_mid; then
12550 ac_mid=`expr 2 '*' $ac_mid + 1`
12552 rm -f conftest.$ac_objext conftest.$ac_ext
12555 echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12558 cat >conftest.$ac_ext <<_ACEOF
12559 #line $LINENO "configure"
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h. */
12565 $ac_includes_default
12569 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
12576 rm -f conftest.$ac_objext
12577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12578 (eval $ac_compile) 2>&5
12580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12581 (exit $ac_status); } &&
12582 { ac_try='test -s conftest.$ac_objext'
12583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12584 (eval $ac_try) 2>&5
12586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12587 (exit $ac_status); }; }; then
12590 cat >conftest.$ac_ext <<_ACEOF
12591 #line $LINENO "configure"
12594 cat confdefs.h >>conftest.$ac_ext
12595 cat >>conftest.$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12597 $ac_includes_default
12601 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
12608 rm -f conftest.$ac_objext
12609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12610 (eval $ac_compile) 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); } &&
12614 { ac_try='test -s conftest.$ac_objext'
12615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12616 (eval $ac_try) 2>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; }; then
12620 ac_lo=$ac_mid; break
12622 echo "$as_me: failed program was:" >&5
12623 sed 's/^/| /' conftest.$ac_ext >&5
12625 ac_hi=`expr '(' $ac_mid ')' - 1`
12626 if test $ac_mid -le $ac_hi; then
12630 ac_mid=`expr 2 '*' $ac_mid`
12632 rm -f conftest.$ac_objext conftest.$ac_ext
12635 echo "$as_me: failed program was:" >&5
12636 sed 's/^/| /' conftest.$ac_ext >&5
12640 rm -f conftest.$ac_objext conftest.$ac_ext
12642 rm -f conftest.$ac_objext conftest.$ac_ext
12643 # Binary search between lo and hi bounds.
12644 while test "x$ac_lo" != "x$ac_hi"; do
12645 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
12678 echo "$as_me: failed program was:" >&5
12679 sed 's/^/| /' conftest.$ac_ext >&5
12681 ac_lo=`expr '(' $ac_mid ')' + 1`
12683 rm -f conftest.$ac_objext conftest.$ac_ext
12686 ?*) ac_cv_sizeof_short_int=$ac_lo;;
12687 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12688 See \`config.log' for more details." >&5
12689 echo "$as_me: error: cannot compute sizeof (short int), 77
12690 See \`config.log' for more details." >&2;}
12691 { (exit 1); exit 1; }; } ;;
12694 if test "$cross_compiling" = yes; then
12695 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12696 See \`config.log' for more details." >&5
12697 echo "$as_me: error: cannot run test program while cross compiling
12698 See \`config.log' for more details." >&2;}
12699 { (exit 1); exit 1; }; }
12701 cat >conftest.$ac_ext <<_ACEOF
12702 #line $LINENO "configure"
12705 cat confdefs.h >>conftest.$ac_ext
12706 cat >>conftest.$ac_ext <<_ACEOF
12707 /* end confdefs.h. */
12708 $ac_includes_default
12709 long longval () { return (long) (sizeof (short int)); }
12710 unsigned long ulongval () { return (long) (sizeof (short int)); }
12712 #include <stdlib.h>
12717 FILE *f = fopen ("conftest.val", "w");
12720 if (((long) (sizeof (short int))) < 0)
12722 long i = longval ();
12723 if (i != ((long) (sizeof (short int))))
12725 fprintf (f, "%ld\n", i);
12729 unsigned long i = ulongval ();
12730 if (i != ((long) (sizeof (short int))))
12732 fprintf (f, "%lu\n", i);
12734 exit (ferror (f) || fclose (f) != 0);
12740 rm -f conftest$ac_exeext
12741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12742 (eval $ac_link) 2>&5
12744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12747 (eval $ac_try) 2>&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; }; then
12751 ac_cv_sizeof_short_int=`cat conftest.val`
12753 echo "$as_me: program exited with status $ac_status" >&5
12754 echo "$as_me: failed program was:" >&5
12755 sed 's/^/| /' conftest.$ac_ext >&5
12757 ( exit $ac_status )
12758 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
12759 See \`config.log' for more details." >&5
12760 echo "$as_me: error: cannot compute sizeof (short int), 77
12761 See \`config.log' for more details." >&2;}
12762 { (exit 1); exit 1; }; }
12764 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12769 ac_cv_sizeof_short_int=0
12772 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
12773 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
12774 cat >>confdefs.h <<_ACEOF
12775 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
12779 echo "$as_me:$LINENO: checking for int" >&5
12780 echo $ECHO_N "checking for int... $ECHO_C" >&6
12781 if test "${ac_cv_type_int+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12784 cat >conftest.$ac_ext <<_ACEOF
12785 #line $LINENO "configure"
12788 cat confdefs.h >>conftest.$ac_ext
12789 cat >>conftest.$ac_ext <<_ACEOF
12790 /* end confdefs.h. */
12791 $ac_includes_default
12803 rm -f conftest.$ac_objext
12804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12805 (eval $ac_compile) 2>&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } &&
12809 { ac_try='test -s conftest.$ac_objext'
12810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12811 (eval $ac_try) 2>&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); }; }; then
12817 echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.$ac_ext >&5
12822 rm -f conftest.$ac_objext conftest.$ac_ext
12824 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12825 echo "${ECHO_T}$ac_cv_type_int" >&6
12827 echo "$as_me:$LINENO: checking size of int" >&5
12828 echo $ECHO_N "checking size of int... $ECHO_C" >&6
12829 if test "${ac_cv_sizeof_int+set}" = set; then
12830 echo $ECHO_N "(cached) $ECHO_C" >&6
12832 if test "$ac_cv_type_int" = yes; then
12833 # The cast to unsigned long works around a bug in the HP C Compiler
12834 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12835 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12836 # This bug is HP SR number 8606223364.
12837 if test "$cross_compiling" = yes; then
12838 # Depending upon the size, compute the lo and hi bounds.
12839 cat >conftest.$ac_ext <<_ACEOF
12840 #line $LINENO "configure"
12843 cat confdefs.h >>conftest.$ac_ext
12844 cat >>conftest.$ac_ext <<_ACEOF
12845 /* end confdefs.h. */
12846 $ac_includes_default
12850 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
12857 rm -f conftest.$ac_objext
12858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12859 (eval $ac_compile) 2>&5
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); } &&
12863 { ac_try='test -s conftest.$ac_objext'
12864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12865 (eval $ac_try) 2>&5
12867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12868 (exit $ac_status); }; }; then
12871 cat >conftest.$ac_ext <<_ACEOF
12872 #line $LINENO "configure"
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h. */
12878 $ac_includes_default
12882 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
12889 rm -f conftest.$ac_objext
12890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12891 (eval $ac_compile) 2>&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } &&
12895 { ac_try='test -s conftest.$ac_objext'
12896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12897 (eval $ac_try) 2>&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); }; }; then
12901 ac_hi=$ac_mid; break
12903 echo "$as_me: failed program was:" >&5
12904 sed 's/^/| /' conftest.$ac_ext >&5
12906 ac_lo=`expr $ac_mid + 1`
12907 if test $ac_lo -le $ac_mid; then
12911 ac_mid=`expr 2 '*' $ac_mid + 1`
12913 rm -f conftest.$ac_objext conftest.$ac_ext
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12919 cat >conftest.$ac_ext <<_ACEOF
12920 #line $LINENO "configure"
12923 cat confdefs.h >>conftest.$ac_ext
12924 cat >>conftest.$ac_ext <<_ACEOF
12925 /* end confdefs.h. */
12926 $ac_includes_default
12930 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
12937 rm -f conftest.$ac_objext
12938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12939 (eval $ac_compile) 2>&5
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); } &&
12943 { ac_try='test -s conftest.$ac_objext'
12944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12945 (eval $ac_try) 2>&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; }; then
12951 cat >conftest.$ac_ext <<_ACEOF
12952 #line $LINENO "configure"
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h. */
12958 $ac_includes_default
12962 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
12969 rm -f conftest.$ac_objext
12970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12971 (eval $ac_compile) 2>&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } &&
12975 { ac_try='test -s conftest.$ac_objext'
12976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12977 (eval $ac_try) 2>&5
12979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12980 (exit $ac_status); }; }; then
12981 ac_lo=$ac_mid; break
12983 echo "$as_me: failed program was:" >&5
12984 sed 's/^/| /' conftest.$ac_ext >&5
12986 ac_hi=`expr '(' $ac_mid ')' - 1`
12987 if test $ac_mid -le $ac_hi; then
12991 ac_mid=`expr 2 '*' $ac_mid`
12993 rm -f conftest.$ac_objext conftest.$ac_ext
12996 echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
13001 rm -f conftest.$ac_objext conftest.$ac_ext
13003 rm -f conftest.$ac_objext conftest.$ac_ext
13004 # Binary search between lo and hi bounds.
13005 while test "x$ac_lo" != "x$ac_hi"; do
13006 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
13039 echo "$as_me: failed program was:" >&5
13040 sed 's/^/| /' conftest.$ac_ext >&5
13042 ac_lo=`expr '(' $ac_mid ')' + 1`
13044 rm -f conftest.$ac_objext conftest.$ac_ext
13047 ?*) ac_cv_sizeof_int=$ac_lo;;
13048 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13049 See \`config.log' for more details." >&5
13050 echo "$as_me: error: cannot compute sizeof (int), 77
13051 See \`config.log' for more details." >&2;}
13052 { (exit 1); exit 1; }; } ;;
13055 if test "$cross_compiling" = yes; then
13056 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13057 See \`config.log' for more details." >&5
13058 echo "$as_me: error: cannot run test program while cross compiling
13059 See \`config.log' for more details." >&2;}
13060 { (exit 1); exit 1; }; }
13062 cat >conftest.$ac_ext <<_ACEOF
13063 #line $LINENO "configure"
13066 cat confdefs.h >>conftest.$ac_ext
13067 cat >>conftest.$ac_ext <<_ACEOF
13068 /* end confdefs.h. */
13069 $ac_includes_default
13070 long longval () { return (long) (sizeof (int)); }
13071 unsigned long ulongval () { return (long) (sizeof (int)); }
13073 #include <stdlib.h>
13078 FILE *f = fopen ("conftest.val", "w");
13081 if (((long) (sizeof (int))) < 0)
13083 long i = longval ();
13084 if (i != ((long) (sizeof (int))))
13086 fprintf (f, "%ld\n", i);
13090 unsigned long i = ulongval ();
13091 if (i != ((long) (sizeof (int))))
13093 fprintf (f, "%lu\n", i);
13095 exit (ferror (f) || fclose (f) != 0);
13101 rm -f conftest$ac_exeext
13102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13103 (eval $ac_link) 2>&5
13105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13108 (eval $ac_try) 2>&5
13110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); }; }; then
13112 ac_cv_sizeof_int=`cat conftest.val`
13114 echo "$as_me: program exited with status $ac_status" >&5
13115 echo "$as_me: failed program was:" >&5
13116 sed 's/^/| /' conftest.$ac_ext >&5
13118 ( exit $ac_status )
13119 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
13120 See \`config.log' for more details." >&5
13121 echo "$as_me: error: cannot compute sizeof (int), 77
13122 See \`config.log' for more details." >&2;}
13123 { (exit 1); exit 1; }; }
13125 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13133 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13134 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
13135 cat >>confdefs.h <<_ACEOF
13136 #define SIZEOF_INT $ac_cv_sizeof_int
13140 echo "$as_me:$LINENO: checking for long int" >&5
13141 echo $ECHO_N "checking for long int... $ECHO_C" >&6
13142 if test "${ac_cv_type_long_int+set}" = set; then
13143 echo $ECHO_N "(cached) $ECHO_C" >&6
13145 cat >conftest.$ac_ext <<_ACEOF
13146 #line $LINENO "configure"
13149 cat confdefs.h >>conftest.$ac_ext
13150 cat >>conftest.$ac_ext <<_ACEOF
13151 /* end confdefs.h. */
13152 $ac_includes_default
13156 if ((long int *) 0)
13158 if (sizeof (long int))
13164 rm -f conftest.$ac_objext
13165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13166 (eval $ac_compile) 2>&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } &&
13170 { ac_try='test -s conftest.$ac_objext'
13171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13172 (eval $ac_try) 2>&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); }; }; then
13176 ac_cv_type_long_int=yes
13178 echo "$as_me: failed program was:" >&5
13179 sed 's/^/| /' conftest.$ac_ext >&5
13181 ac_cv_type_long_int=no
13183 rm -f conftest.$ac_objext conftest.$ac_ext
13185 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
13186 echo "${ECHO_T}$ac_cv_type_long_int" >&6
13188 echo "$as_me:$LINENO: checking size of long int" >&5
13189 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
13190 if test "${ac_cv_sizeof_long_int+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13193 if test "$ac_cv_type_long_int" = yes; then
13194 # The cast to unsigned long works around a bug in the HP C Compiler
13195 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13196 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13197 # This bug is HP SR number 8606223364.
13198 if test "$cross_compiling" = yes; then
13199 # Depending upon the size, compute the lo and hi bounds.
13200 cat >conftest.$ac_ext <<_ACEOF
13201 #line $LINENO "configure"
13204 cat confdefs.h >>conftest.$ac_ext
13205 cat >>conftest.$ac_ext <<_ACEOF
13206 /* end confdefs.h. */
13207 $ac_includes_default
13211 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
13218 rm -f conftest.$ac_objext
13219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13220 (eval $ac_compile) 2>&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); } &&
13224 { ac_try='test -s conftest.$ac_objext'
13225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226 (eval $ac_try) 2>&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13232 cat >conftest.$ac_ext <<_ACEOF
13233 #line $LINENO "configure"
13236 cat confdefs.h >>conftest.$ac_ext
13237 cat >>conftest.$ac_ext <<_ACEOF
13238 /* end confdefs.h. */
13239 $ac_includes_default
13243 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
13250 rm -f conftest.$ac_objext
13251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13252 (eval $ac_compile) 2>&5
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); } &&
13256 { ac_try='test -s conftest.$ac_objext'
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13262 ac_hi=$ac_mid; break
13264 echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13267 ac_lo=`expr $ac_mid + 1`
13268 if test $ac_lo -le $ac_mid; then
13272 ac_mid=`expr 2 '*' $ac_mid + 1`
13274 rm -f conftest.$ac_objext conftest.$ac_ext
13277 echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13280 cat >conftest.$ac_ext <<_ACEOF
13281 #line $LINENO "configure"
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h. */
13287 $ac_includes_default
13291 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
13298 rm -f conftest.$ac_objext
13299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13300 (eval $ac_compile) 2>&5
13302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13303 (exit $ac_status); } &&
13304 { ac_try='test -s conftest.$ac_objext'
13305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13306 (eval $ac_try) 2>&5
13308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13309 (exit $ac_status); }; }; then
13312 cat >conftest.$ac_ext <<_ACEOF
13313 #line $LINENO "configure"
13316 cat confdefs.h >>conftest.$ac_ext
13317 cat >>conftest.$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13319 $ac_includes_default
13323 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
13330 rm -f conftest.$ac_objext
13331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13332 (eval $ac_compile) 2>&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); } &&
13336 { ac_try='test -s conftest.$ac_objext'
13337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338 (eval $ac_try) 2>&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; }; then
13342 ac_lo=$ac_mid; break
13344 echo "$as_me: failed program was:" >&5
13345 sed 's/^/| /' conftest.$ac_ext >&5
13347 ac_hi=`expr '(' $ac_mid ')' - 1`
13348 if test $ac_mid -le $ac_hi; then
13352 ac_mid=`expr 2 '*' $ac_mid`
13354 rm -f conftest.$ac_objext conftest.$ac_ext
13357 echo "$as_me: failed program was:" >&5
13358 sed 's/^/| /' conftest.$ac_ext >&5
13362 rm -f conftest.$ac_objext conftest.$ac_ext
13364 rm -f conftest.$ac_objext conftest.$ac_ext
13365 # Binary search between lo and hi bounds.
13366 while test "x$ac_lo" != "x$ac_hi"; do
13367 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
13400 echo "$as_me: failed program was:" >&5
13401 sed 's/^/| /' conftest.$ac_ext >&5
13403 ac_lo=`expr '(' $ac_mid ')' + 1`
13405 rm -f conftest.$ac_objext conftest.$ac_ext
13408 ?*) ac_cv_sizeof_long_int=$ac_lo;;
13409 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13410 See \`config.log' for more details." >&5
13411 echo "$as_me: error: cannot compute sizeof (long int), 77
13412 See \`config.log' for more details." >&2;}
13413 { (exit 1); exit 1; }; } ;;
13416 if test "$cross_compiling" = yes; then
13417 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13418 See \`config.log' for more details." >&5
13419 echo "$as_me: error: cannot run test program while cross compiling
13420 See \`config.log' for more details." >&2;}
13421 { (exit 1); exit 1; }; }
13423 cat >conftest.$ac_ext <<_ACEOF
13424 #line $LINENO "configure"
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13430 $ac_includes_default
13431 long longval () { return (long) (sizeof (long int)); }
13432 unsigned long ulongval () { return (long) (sizeof (long int)); }
13434 #include <stdlib.h>
13439 FILE *f = fopen ("conftest.val", "w");
13442 if (((long) (sizeof (long int))) < 0)
13444 long i = longval ();
13445 if (i != ((long) (sizeof (long int))))
13447 fprintf (f, "%ld\n", i);
13451 unsigned long i = ulongval ();
13452 if (i != ((long) (sizeof (long int))))
13454 fprintf (f, "%lu\n", i);
13456 exit (ferror (f) || fclose (f) != 0);
13462 rm -f conftest$ac_exeext
13463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13464 (eval $ac_link) 2>&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13469 (eval $ac_try) 2>&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; }; then
13473 ac_cv_sizeof_long_int=`cat conftest.val`
13475 echo "$as_me: program exited with status $ac_status" >&5
13476 echo "$as_me: failed program was:" >&5
13477 sed 's/^/| /' conftest.$ac_ext >&5
13479 ( exit $ac_status )
13480 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
13481 See \`config.log' for more details." >&5
13482 echo "$as_me: error: cannot compute sizeof (long int), 77
13483 See \`config.log' for more details." >&2;}
13484 { (exit 1); exit 1; }; }
13486 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13491 ac_cv_sizeof_long_int=0
13494 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
13495 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
13496 cat >>confdefs.h <<_ACEOF
13497 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
13501 echo "$as_me:$LINENO: checking for long long int" >&5
13502 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
13503 if test "${ac_cv_type_long_long_int+set}" = set; then
13504 echo $ECHO_N "(cached) $ECHO_C" >&6
13506 cat >conftest.$ac_ext <<_ACEOF
13507 #line $LINENO "configure"
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13513 $ac_includes_default
13517 if ((long long int *) 0)
13519 if (sizeof (long long int))
13525 rm -f conftest.$ac_objext
13526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13527 (eval $ac_compile) 2>&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); } &&
13531 { ac_try='test -s conftest.$ac_objext'
13532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13533 (eval $ac_try) 2>&5
13535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); }; }; then
13537 ac_cv_type_long_long_int=yes
13539 echo "$as_me: failed program was:" >&5
13540 sed 's/^/| /' conftest.$ac_ext >&5
13542 ac_cv_type_long_long_int=no
13544 rm -f conftest.$ac_objext conftest.$ac_ext
13546 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
13547 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
13549 echo "$as_me:$LINENO: checking size of long long int" >&5
13550 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
13551 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
13552 echo $ECHO_N "(cached) $ECHO_C" >&6
13554 if test "$ac_cv_type_long_long_int" = yes; then
13555 # The cast to unsigned long works around a bug in the HP C Compiler
13556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13558 # This bug is HP SR number 8606223364.
13559 if test "$cross_compiling" = yes; then
13560 # Depending upon the size, compute the lo and hi bounds.
13561 cat >conftest.$ac_ext <<_ACEOF
13562 #line $LINENO "configure"
13565 cat confdefs.h >>conftest.$ac_ext
13566 cat >>conftest.$ac_ext <<_ACEOF
13567 /* end confdefs.h. */
13568 $ac_includes_default
13572 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
13579 rm -f conftest.$ac_objext
13580 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13581 (eval $ac_compile) 2>&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } &&
13585 { ac_try='test -s conftest.$ac_objext'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; }; then
13593 cat >conftest.$ac_ext <<_ACEOF
13594 #line $LINENO "configure"
13597 cat confdefs.h >>conftest.$ac_ext
13598 cat >>conftest.$ac_ext <<_ACEOF
13599 /* end confdefs.h. */
13600 $ac_includes_default
13604 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
13611 rm -f conftest.$ac_objext
13612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13613 (eval $ac_compile) 2>&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } &&
13617 { ac_try='test -s conftest.$ac_objext'
13618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619 (eval $ac_try) 2>&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; }; then
13623 ac_hi=$ac_mid; break
13625 echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.$ac_ext >&5
13628 ac_lo=`expr $ac_mid + 1`
13629 if test $ac_lo -le $ac_mid; then
13633 ac_mid=`expr 2 '*' $ac_mid + 1`
13635 rm -f conftest.$ac_objext conftest.$ac_ext
13638 echo "$as_me: failed program was:" >&5
13639 sed 's/^/| /' conftest.$ac_ext >&5
13641 cat >conftest.$ac_ext <<_ACEOF
13642 #line $LINENO "configure"
13645 cat confdefs.h >>conftest.$ac_ext
13646 cat >>conftest.$ac_ext <<_ACEOF
13647 /* end confdefs.h. */
13648 $ac_includes_default
13652 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
13659 rm -f conftest.$ac_objext
13660 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13661 (eval $ac_compile) 2>&5
13663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13664 (exit $ac_status); } &&
13665 { ac_try='test -s conftest.$ac_objext'
13666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667 (eval $ac_try) 2>&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; }; then
13673 cat >conftest.$ac_ext <<_ACEOF
13674 #line $LINENO "configure"
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h. */
13680 $ac_includes_default
13684 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
13691 rm -f conftest.$ac_objext
13692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13693 (eval $ac_compile) 2>&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); } &&
13697 { ac_try='test -s conftest.$ac_objext'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; }; then
13703 ac_lo=$ac_mid; break
13705 echo "$as_me: failed program was:" >&5
13706 sed 's/^/| /' conftest.$ac_ext >&5
13708 ac_hi=`expr '(' $ac_mid ')' - 1`
13709 if test $ac_mid -le $ac_hi; then
13713 ac_mid=`expr 2 '*' $ac_mid`
13715 rm -f conftest.$ac_objext conftest.$ac_ext
13718 echo "$as_me: failed program was:" >&5
13719 sed 's/^/| /' conftest.$ac_ext >&5
13723 rm -f conftest.$ac_objext conftest.$ac_ext
13725 rm -f conftest.$ac_objext conftest.$ac_ext
13726 # Binary search between lo and hi bounds.
13727 while test "x$ac_lo" != "x$ac_hi"; do
13728 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
13761 echo "$as_me: failed program was:" >&5
13762 sed 's/^/| /' conftest.$ac_ext >&5
13764 ac_lo=`expr '(' $ac_mid ')' + 1`
13766 rm -f conftest.$ac_objext conftest.$ac_ext
13769 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
13770 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13771 See \`config.log' for more details." >&5
13772 echo "$as_me: error: cannot compute sizeof (long long int), 77
13773 See \`config.log' for more details." >&2;}
13774 { (exit 1); exit 1; }; } ;;
13777 if test "$cross_compiling" = yes; then
13778 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13779 See \`config.log' for more details." >&5
13780 echo "$as_me: error: cannot run test program while cross compiling
13781 See \`config.log' for more details." >&2;}
13782 { (exit 1); exit 1; }; }
13784 cat >conftest.$ac_ext <<_ACEOF
13785 #line $LINENO "configure"
13788 cat confdefs.h >>conftest.$ac_ext
13789 cat >>conftest.$ac_ext <<_ACEOF
13790 /* end confdefs.h. */
13791 $ac_includes_default
13792 long longval () { return (long) (sizeof (long long int)); }
13793 unsigned long ulongval () { return (long) (sizeof (long long int)); }
13795 #include <stdlib.h>
13800 FILE *f = fopen ("conftest.val", "w");
13803 if (((long) (sizeof (long long int))) < 0)
13805 long i = longval ();
13806 if (i != ((long) (sizeof (long long int))))
13808 fprintf (f, "%ld\n", i);
13812 unsigned long i = ulongval ();
13813 if (i != ((long) (sizeof (long long int))))
13815 fprintf (f, "%lu\n", i);
13817 exit (ferror (f) || fclose (f) != 0);
13823 rm -f conftest$ac_exeext
13824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13825 (eval $ac_link) 2>&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13830 (eval $ac_try) 2>&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; }; then
13834 ac_cv_sizeof_long_long_int=`cat conftest.val`
13836 echo "$as_me: program exited with status $ac_status" >&5
13837 echo "$as_me: failed program was:" >&5
13838 sed 's/^/| /' conftest.$ac_ext >&5
13840 ( exit $ac_status )
13841 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
13842 See \`config.log' for more details." >&5
13843 echo "$as_me: error: cannot compute sizeof (long long int), 77
13844 See \`config.log' for more details." >&2;}
13845 { (exit 1); exit 1; }; }
13847 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13852 ac_cv_sizeof_long_long_int=0
13855 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
13856 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
13857 cat >>confdefs.h <<_ACEOF
13858 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
13862 echo "$as_me:$LINENO: checking for int *" >&5
13863 echo $ECHO_N "checking for int *... $ECHO_C" >&6
13864 if test "${ac_cv_type_int_p+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13867 cat >conftest.$ac_ext <<_ACEOF
13868 #line $LINENO "configure"
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h. */
13874 $ac_includes_default
13880 if (sizeof (int *))
13886 rm -f conftest.$ac_objext
13887 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13888 (eval $ac_compile) 2>&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); } &&
13892 { ac_try='test -s conftest.$ac_objext'
13893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13894 (eval $ac_try) 2>&5
13896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); }; }; then
13898 ac_cv_type_int_p=yes
13900 echo "$as_me: failed program was:" >&5
13901 sed 's/^/| /' conftest.$ac_ext >&5
13903 ac_cv_type_int_p=no
13905 rm -f conftest.$ac_objext conftest.$ac_ext
13907 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
13908 echo "${ECHO_T}$ac_cv_type_int_p" >&6
13910 echo "$as_me:$LINENO: checking size of int *" >&5
13911 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
13912 if test "${ac_cv_sizeof_int_p+set}" = set; then
13913 echo $ECHO_N "(cached) $ECHO_C" >&6
13915 if test "$ac_cv_type_int_p" = yes; then
13916 # The cast to unsigned long works around a bug in the HP C Compiler
13917 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13918 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13919 # This bug is HP SR number 8606223364.
13920 if test "$cross_compiling" = yes; then
13921 # Depending upon the size, compute the lo and hi bounds.
13922 cat >conftest.$ac_ext <<_ACEOF
13923 #line $LINENO "configure"
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 $ac_includes_default
13933 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
13940 rm -f conftest.$ac_objext
13941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13942 (eval $ac_compile) 2>&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try='test -s conftest.$ac_objext'
13947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13948 (eval $ac_try) 2>&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); }; }; then
13954 cat >conftest.$ac_ext <<_ACEOF
13955 #line $LINENO "configure"
13958 cat confdefs.h >>conftest.$ac_ext
13959 cat >>conftest.$ac_ext <<_ACEOF
13960 /* end confdefs.h. */
13961 $ac_includes_default
13965 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
13972 rm -f conftest.$ac_objext
13973 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13974 (eval $ac_compile) 2>&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } &&
13978 { ac_try='test -s conftest.$ac_objext'
13979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13980 (eval $ac_try) 2>&5
13982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983 (exit $ac_status); }; }; then
13984 ac_hi=$ac_mid; break
13986 echo "$as_me: failed program was:" >&5
13987 sed 's/^/| /' conftest.$ac_ext >&5
13989 ac_lo=`expr $ac_mid + 1`
13990 if test $ac_lo -le $ac_mid; then
13994 ac_mid=`expr 2 '*' $ac_mid + 1`
13996 rm -f conftest.$ac_objext conftest.$ac_ext
13999 echo "$as_me: failed program was:" >&5
14000 sed 's/^/| /' conftest.$ac_ext >&5
14002 cat >conftest.$ac_ext <<_ACEOF
14003 #line $LINENO "configure"
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14009 $ac_includes_default
14013 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
14020 rm -f conftest.$ac_objext
14021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14022 (eval $ac_compile) 2>&5
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } &&
14026 { ac_try='test -s conftest.$ac_objext'
14027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14028 (eval $ac_try) 2>&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); }; }; then
14034 cat >conftest.$ac_ext <<_ACEOF
14035 #line $LINENO "configure"
14038 cat confdefs.h >>conftest.$ac_ext
14039 cat >>conftest.$ac_ext <<_ACEOF
14040 /* end confdefs.h. */
14041 $ac_includes_default
14045 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
14052 rm -f conftest.$ac_objext
14053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14054 (eval $ac_compile) 2>&5
14056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14057 (exit $ac_status); } &&
14058 { ac_try='test -s conftest.$ac_objext'
14059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14060 (eval $ac_try) 2>&5
14062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14063 (exit $ac_status); }; }; then
14064 ac_lo=$ac_mid; break
14066 echo "$as_me: failed program was:" >&5
14067 sed 's/^/| /' conftest.$ac_ext >&5
14069 ac_hi=`expr '(' $ac_mid ')' - 1`
14070 if test $ac_mid -le $ac_hi; then
14074 ac_mid=`expr 2 '*' $ac_mid`
14076 rm -f conftest.$ac_objext conftest.$ac_ext
14079 echo "$as_me: failed program was:" >&5
14080 sed 's/^/| /' conftest.$ac_ext >&5
14084 rm -f conftest.$ac_objext conftest.$ac_ext
14086 rm -f conftest.$ac_objext conftest.$ac_ext
14087 # Binary search between lo and hi bounds.
14088 while test "x$ac_lo" != "x$ac_hi"; do
14089 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
14122 echo "$as_me: failed program was:" >&5
14123 sed 's/^/| /' conftest.$ac_ext >&5
14125 ac_lo=`expr '(' $ac_mid ')' + 1`
14127 rm -f conftest.$ac_objext conftest.$ac_ext
14130 ?*) ac_cv_sizeof_int_p=$ac_lo;;
14131 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14132 See \`config.log' for more details." >&5
14133 echo "$as_me: error: cannot compute sizeof (int *), 77
14134 See \`config.log' for more details." >&2;}
14135 { (exit 1); exit 1; }; } ;;
14138 if test "$cross_compiling" = yes; then
14139 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14140 See \`config.log' for more details." >&5
14141 echo "$as_me: error: cannot run test program while cross compiling
14142 See \`config.log' for more details." >&2;}
14143 { (exit 1); exit 1; }; }
14145 cat >conftest.$ac_ext <<_ACEOF
14146 #line $LINENO "configure"
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h. */
14152 $ac_includes_default
14153 long longval () { return (long) (sizeof (int *)); }
14154 unsigned long ulongval () { return (long) (sizeof (int *)); }
14156 #include <stdlib.h>
14161 FILE *f = fopen ("conftest.val", "w");
14164 if (((long) (sizeof (int *))) < 0)
14166 long i = longval ();
14167 if (i != ((long) (sizeof (int *))))
14169 fprintf (f, "%ld\n", i);
14173 unsigned long i = ulongval ();
14174 if (i != ((long) (sizeof (int *))))
14176 fprintf (f, "%lu\n", i);
14178 exit (ferror (f) || fclose (f) != 0);
14184 rm -f conftest$ac_exeext
14185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14186 (eval $ac_link) 2>&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14191 (eval $ac_try) 2>&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); }; }; then
14195 ac_cv_sizeof_int_p=`cat conftest.val`
14197 echo "$as_me: program exited with status $ac_status" >&5
14198 echo "$as_me: failed program was:" >&5
14199 sed 's/^/| /' conftest.$ac_ext >&5
14201 ( exit $ac_status )
14202 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
14203 See \`config.log' for more details." >&5
14204 echo "$as_me: error: cannot compute sizeof (int *), 77
14205 See \`config.log' for more details." >&2;}
14206 { (exit 1); exit 1; }; }
14208 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14213 ac_cv_sizeof_int_p=0
14216 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
14217 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
14218 cat >>confdefs.h <<_ACEOF
14219 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14224 # Check for sys/types.h types
14225 echo "$as_me:$LINENO: checking for u_int type" >&5
14226 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
14227 if test "${ac_cv_have_u_int+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 cat >conftest.$ac_ext <<_ACEOF
14232 #line $LINENO "configure"
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14238 #include <sys/types.h>
14247 rm -f conftest.$ac_objext
14248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14249 (eval $ac_compile) 2>&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } &&
14253 { ac_try='test -s conftest.$ac_objext'
14254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255 (eval $ac_try) 2>&5
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; }; then
14259 ac_cv_have_u_int="yes"
14261 echo "$as_me: failed program was:" >&5
14262 sed 's/^/| /' conftest.$ac_ext >&5
14264 ac_cv_have_u_int="no"
14267 rm -f conftest.$ac_objext conftest.$ac_ext
14270 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
14271 echo "${ECHO_T}$ac_cv_have_u_int" >&6
14272 if test "x$ac_cv_have_u_int" = "xyes" ; then
14273 cat >>confdefs.h <<\_ACEOF
14274 #define HAVE_U_INT 1
14280 echo "$as_me:$LINENO: checking for intmax_t type" >&5
14281 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
14282 if test "${ac_cv_have_intmax_t+set}" = set; then
14283 echo $ECHO_N "(cached) $ECHO_C" >&6
14286 cat >conftest.$ac_ext <<_ACEOF
14287 #line $LINENO "configure"
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14293 #include <sys/types.h>
14302 rm -f conftest.$ac_objext
14303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14304 (eval $ac_compile) 2>&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); } &&
14308 { ac_try='test -s conftest.$ac_objext'
14309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14310 (eval $ac_try) 2>&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); }; }; then
14314 ac_cv_have_intmax_t="yes"
14316 echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14320 cat >conftest.$ac_ext <<_ACEOF
14321 #line $LINENO "configure"
14324 cat confdefs.h >>conftest.$ac_ext
14325 cat >>conftest.$ac_ext <<_ACEOF
14326 /* end confdefs.h. */
14327 #include <stdint.h>
14336 rm -f conftest.$ac_objext
14337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14338 (eval $ac_compile) 2>&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } &&
14342 { ac_try='test -s conftest.$ac_objext'
14343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14344 (eval $ac_try) 2>&5
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; }; then
14348 ac_cv_have_intmax_t="yes"
14350 echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14353 ac_cv_have_intmax_t="no"
14356 rm -f conftest.$ac_objext conftest.$ac_ext
14360 rm -f conftest.$ac_objext conftest.$ac_ext
14364 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
14365 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
14366 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
14367 cat >>confdefs.h <<\_ACEOF
14368 #define HAVE_INTMAX_T 1
14375 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
14376 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
14377 if test "${ac_cv_have_u_intmax_t+set}" = set; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14381 cat >conftest.$ac_ext <<_ACEOF
14382 #line $LINENO "configure"
14385 cat confdefs.h >>conftest.$ac_ext
14386 cat >>conftest.$ac_ext <<_ACEOF
14387 /* end confdefs.h. */
14388 #include <sys/types.h>
14392 u_intmax_t a; a = 1;
14397 rm -f conftest.$ac_objext
14398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14399 (eval $ac_compile) 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); } &&
14403 { ac_try='test -s conftest.$ac_objext'
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }; then
14409 ac_cv_have_u_intmax_t="yes"
14411 echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14415 cat >conftest.$ac_ext <<_ACEOF
14416 #line $LINENO "configure"
14419 cat confdefs.h >>conftest.$ac_ext
14420 cat >>conftest.$ac_ext <<_ACEOF
14421 /* end confdefs.h. */
14422 #include <stdint.h>
14426 u_intmax_t a; a = 1;
14431 rm -f conftest.$ac_objext
14432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14433 (eval $ac_compile) 2>&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 (exit $ac_status); } &&
14437 { ac_try='test -s conftest.$ac_objext'
14438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14439 (eval $ac_try) 2>&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); }; }; then
14443 ac_cv_have_u_intmax_t="yes"
14445 echo "$as_me: failed program was:" >&5
14446 sed 's/^/| /' conftest.$ac_ext >&5
14448 ac_cv_have_u_intmax_t="no"
14451 rm -f conftest.$ac_objext conftest.$ac_ext
14455 rm -f conftest.$ac_objext conftest.$ac_ext
14458 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
14459 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
14460 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
14461 cat >>confdefs.h <<\_ACEOF
14462 #define HAVE_U_INTMAX_T 1
14469 echo "$as_me:$LINENO: checking for intXX_t types" >&5
14470 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
14471 if test "${ac_cv_have_intxx_t+set}" = set; then
14472 echo $ECHO_N "(cached) $ECHO_C" >&6
14475 cat >conftest.$ac_ext <<_ACEOF
14476 #line $LINENO "configure"
14479 cat confdefs.h >>conftest.$ac_ext
14480 cat >>conftest.$ac_ext <<_ACEOF
14481 /* end confdefs.h. */
14482 #include <sys/types.h>
14486 int8_t a; int16_t b; int32_t c; a = b = c = 1;
14491 rm -f conftest.$ac_objext
14492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14493 (eval $ac_compile) 2>&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); } &&
14497 { ac_try='test -s conftest.$ac_objext'
14498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499 (eval $ac_try) 2>&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; }; then
14503 ac_cv_have_intxx_t="yes"
14505 echo "$as_me: failed program was:" >&5
14506 sed 's/^/| /' conftest.$ac_ext >&5
14508 ac_cv_have_intxx_t="no"
14511 rm -f conftest.$ac_objext conftest.$ac_ext
14514 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
14515 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
14516 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
14517 cat >>confdefs.h <<\_ACEOF
14518 #define HAVE_INTXX_T 1
14524 echo "$as_me:$LINENO: checking for int64_t type" >&5
14525 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
14526 if test "${ac_cv_have_int64_t+set}" = set; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14530 cat >conftest.$ac_ext <<_ACEOF
14531 #line $LINENO "configure"
14534 cat confdefs.h >>conftest.$ac_ext
14535 cat >>conftest.$ac_ext <<_ACEOF
14536 /* end confdefs.h. */
14537 #include <sys/types.h>
14546 rm -f conftest.$ac_objext
14547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14548 (eval $ac_compile) 2>&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } &&
14552 { ac_try='test -s conftest.$ac_objext'
14553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14554 (eval $ac_try) 2>&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); }; }; then
14558 ac_cv_have_int64_t="yes"
14560 echo "$as_me: failed program was:" >&5
14561 sed 's/^/| /' conftest.$ac_ext >&5
14563 ac_cv_have_int64_t="no"
14566 rm -f conftest.$ac_objext conftest.$ac_ext
14569 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
14570 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
14571 if test "x$ac_cv_have_int64_t" = "xyes" ; then
14572 cat >>confdefs.h <<\_ACEOF
14573 #define HAVE_INT64_T 1
14579 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
14580 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
14581 if test "${ac_cv_have_u_intxx_t+set}" = set; then
14582 echo $ECHO_N "(cached) $ECHO_C" >&6
14585 cat >conftest.$ac_ext <<_ACEOF
14586 #line $LINENO "configure"
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h. */
14592 #include <sys/types.h>
14596 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
14601 rm -f conftest.$ac_objext
14602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14603 (eval $ac_compile) 2>&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); } &&
14607 { ac_try='test -s conftest.$ac_objext'
14608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14609 (eval $ac_try) 2>&5
14611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14612 (exit $ac_status); }; }; then
14613 ac_cv_have_u_intxx_t="yes"
14615 echo "$as_me: failed program was:" >&5
14616 sed 's/^/| /' conftest.$ac_ext >&5
14618 ac_cv_have_u_intxx_t="no"
14621 rm -f conftest.$ac_objext conftest.$ac_ext
14624 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
14625 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
14626 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
14627 cat >>confdefs.h <<\_ACEOF
14628 #define HAVE_U_INTXX_T 1
14634 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
14635 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
14636 if test "${ac_cv_have_u_int64_t+set}" = set; then
14637 echo $ECHO_N "(cached) $ECHO_C" >&6
14640 cat >conftest.$ac_ext <<_ACEOF
14641 #line $LINENO "configure"
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h. */
14647 #include <sys/types.h>
14651 u_int64_t a; a = 1;
14656 rm -f conftest.$ac_objext
14657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14658 (eval $ac_compile) 2>&5
14660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14661 (exit $ac_status); } &&
14662 { ac_try='test -s conftest.$ac_objext'
14663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14664 (eval $ac_try) 2>&5
14666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14667 (exit $ac_status); }; }; then
14668 ac_cv_have_u_int64_t="yes"
14670 echo "$as_me: failed program was:" >&5
14671 sed 's/^/| /' conftest.$ac_ext >&5
14673 ac_cv_have_u_int64_t="no"
14676 rm -f conftest.$ac_objext conftest.$ac_ext
14679 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
14680 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
14681 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
14682 cat >>confdefs.h <<\_ACEOF
14683 #define HAVE_U_INT64_T 1
14689 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
14690 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
14692 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
14693 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
14694 cat >conftest.$ac_ext <<_ACEOF
14695 #line $LINENO "configure"
14698 cat confdefs.h >>conftest.$ac_ext
14699 cat >>conftest.$ac_ext <<_ACEOF
14700 /* end confdefs.h. */
14701 #include <sys/bitypes.h>
14705 int8_t a; int16_t b; int32_t c;
14706 u_int8_t e; u_int16_t f; u_int32_t g;
14707 a = b = c = e = f = g = 1;
14712 rm -f conftest.$ac_objext
14713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14714 (eval $ac_compile) 2>&5
14716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14717 (exit $ac_status); } &&
14718 { ac_try='test -s conftest.$ac_objext'
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; }; then
14724 cat >>confdefs.h <<\_ACEOF
14725 #define HAVE_U_INTXX_T 1
14728 cat >>confdefs.h <<\_ACEOF
14729 #define HAVE_INTXX_T 1
14732 cat >>confdefs.h <<\_ACEOF
14733 #define HAVE_SYS_BITYPES_H 1
14736 echo "$as_me:$LINENO: result: yes" >&5
14737 echo "${ECHO_T}yes" >&6
14739 echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.$ac_ext >&5
14742 echo "$as_me:$LINENO: result: no" >&5
14743 echo "${ECHO_T}no" >&6
14746 rm -f conftest.$ac_objext conftest.$ac_ext
14749 if test -z "$have_u_intxx_t" ; then
14750 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
14751 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
14752 if test "${ac_cv_have_uintxx_t+set}" = set; then
14753 echo $ECHO_N "(cached) $ECHO_C" >&6
14756 cat >conftest.$ac_ext <<_ACEOF
14757 #line $LINENO "configure"
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14763 #include <sys/types.h>
14767 uint8_t a; uint16_t b;
14768 uint32_t c; a = b = c = 1;
14773 rm -f conftest.$ac_objext
14774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14775 (eval $ac_compile) 2>&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); } &&
14779 { ac_try='test -s conftest.$ac_objext'
14780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14781 (eval $ac_try) 2>&5
14783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14784 (exit $ac_status); }; }; then
14785 ac_cv_have_uintxx_t="yes"
14787 echo "$as_me: failed program was:" >&5
14788 sed 's/^/| /' conftest.$ac_ext >&5
14790 ac_cv_have_uintxx_t="no"
14793 rm -f conftest.$ac_objext conftest.$ac_ext
14796 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
14797 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
14798 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
14799 cat >>confdefs.h <<\_ACEOF
14800 #define HAVE_UINTXX_T 1
14836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14837 echo "$as_me:$LINENO: checking for $ac_func" >&5
14838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14839 if eval "test \"\${$as_ac_var+set}\" = set"; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14842 cat >conftest.$ac_ext <<_ACEOF
14843 #line $LINENO "configure"
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14849 /* System header to define __stub macros and hopefully few prototypes,
14850 which can conflict with char $ac_func (); below.
14851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14852 <limits.h> exists even on freestanding compilers. */
14854 # include <limits.h>
14856 # include <assert.h>
14858 /* Override any gcc2 internal prototype to avoid an error. */
14863 /* We use char because int might match the return type of a gcc2
14864 builtin and then its argument prototype would still apply. */
14866 /* The GNU C library defines this for functions which it implements
14867 to always fail with ENOSYS. Some functions are actually named
14868 something starting with __ and the normal name is an alias. */
14869 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14872 char (*f) () = $ac_func;
14881 return f != $ac_func;
14886 rm -f conftest.$ac_objext conftest$ac_exeext
14887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14888 (eval $ac_link) 2>&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } &&
14892 { ac_try='test -s conftest$ac_exeext'
14893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14894 (eval $ac_try) 2>&5
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); }; }; then
14898 eval "$as_ac_var=yes"
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14903 eval "$as_ac_var=no"
14905 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14907 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14908 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14909 if test `eval echo '${'$as_ac_var'}'` = yes; then
14910 cat >>confdefs.h <<_ACEOF
14911 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14915 echo 'configure: cannot find needed function.'; exit 1
14922 for ac_func in fchdir
14924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14925 echo "$as_me:$LINENO: checking for $ac_func" >&5
14926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
14927 if eval "test \"\${$as_ac_var+set}\" = set"; then
14928 echo $ECHO_N "(cached) $ECHO_C" >&6
14930 cat >conftest.$ac_ext <<_ACEOF
14931 #line $LINENO "configure"
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14937 /* System header to define __stub macros and hopefully few prototypes,
14938 which can conflict with char $ac_func (); below.
14939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14940 <limits.h> exists even on freestanding compilers. */
14942 # include <limits.h>
14944 # include <assert.h>
14946 /* Override any gcc2 internal prototype to avoid an error. */
14951 /* We use char because int might match the return type of a gcc2
14952 builtin and then its argument prototype would still apply. */
14954 /* The GNU C library defines this for functions which it implements
14955 to always fail with ENOSYS. Some functions are actually named
14956 something starting with __ and the normal name is an alias. */
14957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14960 char (*f) () = $ac_func;
14969 return f != $ac_func;
14974 rm -f conftest.$ac_objext conftest$ac_exeext
14975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14976 (eval $ac_link) 2>&5
14978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14979 (exit $ac_status); } &&
14980 { ac_try='test -s conftest$ac_exeext'
14981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982 (eval $ac_try) 2>&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); }; }; then
14986 eval "$as_ac_var=yes"
14988 echo "$as_me: failed program was:" >&5
14989 sed 's/^/| /' conftest.$ac_ext >&5
14991 eval "$as_ac_var=no"
14993 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
14996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
14997 if test `eval echo '${'$as_ac_var'}'` = yes; then
14998 cat >>confdefs.h <<_ACEOF
14999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15001 cat >>confdefs.h <<\_ACEOF
15002 #define HAVE_FCHDIR 1
15009 for ac_func in strtoll
15011 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15012 echo "$as_me:$LINENO: checking for $ac_func" >&5
15013 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15014 if eval "test \"\${$as_ac_var+set}\" = set"; then
15015 echo $ECHO_N "(cached) $ECHO_C" >&6
15017 cat >conftest.$ac_ext <<_ACEOF
15018 #line $LINENO "configure"
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h. */
15024 /* System header to define __stub macros and hopefully few prototypes,
15025 which can conflict with char $ac_func (); below.
15026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15027 <limits.h> exists even on freestanding compilers. */
15029 # include <limits.h>
15031 # include <assert.h>
15033 /* Override any gcc2 internal prototype to avoid an error. */
15038 /* We use char because int might match the return type of a gcc2
15039 builtin and then its argument prototype would still apply. */
15041 /* The GNU C library defines this for functions which it implements
15042 to always fail with ENOSYS. Some functions are actually named
15043 something starting with __ and the normal name is an alias. */
15044 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15047 char (*f) () = $ac_func;
15056 return f != $ac_func;
15061 rm -f conftest.$ac_objext conftest$ac_exeext
15062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15063 (eval $ac_link) 2>&5
15065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15066 (exit $ac_status); } &&
15067 { ac_try='test -s conftest$ac_exeext'
15068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15069 (eval $ac_try) 2>&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); }; }; then
15073 eval "$as_ac_var=yes"
15075 echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15078 eval "$as_ac_var=no"
15080 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15083 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15084 if test `eval echo '${'$as_ac_var'}'` = yes; then
15085 cat >>confdefs.h <<_ACEOF
15086 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15088 cat >>confdefs.h <<\_ACEOF
15089 #define HAVE_STRTOLL 1
15097 for ac_func in chflags
15099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15100 echo "$as_me:$LINENO: checking for $ac_func" >&5
15101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15102 if eval "test \"\${$as_ac_var+set}\" = set"; then
15103 echo $ECHO_N "(cached) $ECHO_C" >&6
15105 cat >conftest.$ac_ext <<_ACEOF
15106 #line $LINENO "configure"
15109 cat confdefs.h >>conftest.$ac_ext
15110 cat >>conftest.$ac_ext <<_ACEOF
15111 /* end confdefs.h. */
15112 /* System header to define __stub macros and hopefully few prototypes,
15113 which can conflict with char $ac_func (); below.
15114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15115 <limits.h> exists even on freestanding compilers. */
15117 # include <limits.h>
15119 # include <assert.h>
15121 /* Override any gcc2 internal prototype to avoid an error. */
15126 /* We use char because int might match the return type of a gcc2
15127 builtin and then its argument prototype would still apply. */
15129 /* The GNU C library defines this for functions which it implements
15130 to always fail with ENOSYS. Some functions are actually named
15131 something starting with __ and the normal name is an alias. */
15132 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15135 char (*f) () = $ac_func;
15144 return f != $ac_func;
15149 rm -f conftest.$ac_objext conftest$ac_exeext
15150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15151 (eval $ac_link) 2>&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); } &&
15155 { ac_try='test -s conftest$ac_exeext'
15156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15157 (eval $ac_try) 2>&5
15159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15160 (exit $ac_status); }; }; then
15161 eval "$as_ac_var=yes"
15163 echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15166 eval "$as_ac_var=no"
15168 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15171 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15172 if test `eval echo '${'$as_ac_var'}'` = yes; then
15173 cat >>confdefs.h <<_ACEOF
15174 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15185 for ac_func in snprintf vsnprintf gethostid getdomainname
15187 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15188 echo "$as_me:$LINENO: checking for $ac_func" >&5
15189 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15190 if eval "test \"\${$as_ac_var+set}\" = set"; then
15191 echo $ECHO_N "(cached) $ECHO_C" >&6
15193 cat >conftest.$ac_ext <<_ACEOF
15194 #line $LINENO "configure"
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h. */
15200 /* System header to define __stub macros and hopefully few prototypes,
15201 which can conflict with char $ac_func (); below.
15202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15203 <limits.h> exists even on freestanding compilers. */
15205 # include <limits.h>
15207 # include <assert.h>
15209 /* Override any gcc2 internal prototype to avoid an error. */
15214 /* We use char because int might match the return type of a gcc2
15215 builtin and then its argument prototype would still apply. */
15217 /* The GNU C library defines this for functions which it implements
15218 to always fail with ENOSYS. Some functions are actually named
15219 something starting with __ and the normal name is an alias. */
15220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15223 char (*f) () = $ac_func;
15232 return f != $ac_func;
15237 rm -f conftest.$ac_objext conftest$ac_exeext
15238 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15239 (eval $ac_link) 2>&5
15241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15242 (exit $ac_status); } &&
15243 { ac_try='test -s conftest$ac_exeext'
15244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15245 (eval $ac_try) 2>&5
15247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15248 (exit $ac_status); }; }; then
15249 eval "$as_ac_var=yes"
15251 echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15254 eval "$as_ac_var=no"
15256 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15258 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15259 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15260 if test `eval echo '${'$as_ac_var'}'` = yes; then
15261 cat >>confdefs.h <<_ACEOF
15262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15273 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
15275 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15276 echo "$as_me:$LINENO: checking for $ac_func" >&5
15277 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15278 if eval "test \"\${$as_ac_var+set}\" = set"; then
15279 echo $ECHO_N "(cached) $ECHO_C" >&6
15281 cat >conftest.$ac_ext <<_ACEOF
15282 #line $LINENO "configure"
15285 cat confdefs.h >>conftest.$ac_ext
15286 cat >>conftest.$ac_ext <<_ACEOF
15287 /* end confdefs.h. */
15288 /* System header to define __stub macros and hopefully few prototypes,
15289 which can conflict with char $ac_func (); below.
15290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15291 <limits.h> exists even on freestanding compilers. */
15293 # include <limits.h>
15295 # include <assert.h>
15297 /* Override any gcc2 internal prototype to avoid an error. */
15302 /* We use char because int might match the return type of a gcc2
15303 builtin and then its argument prototype would still apply. */
15305 /* The GNU C library defines this for functions which it implements
15306 to always fail with ENOSYS. Some functions are actually named
15307 something starting with __ and the normal name is an alias. */
15308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15311 char (*f) () = $ac_func;
15320 return f != $ac_func;
15325 rm -f conftest.$ac_objext conftest$ac_exeext
15326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15327 (eval $ac_link) 2>&5
15329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15330 (exit $ac_status); } &&
15331 { ac_try='test -s conftest$ac_exeext'
15332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15333 (eval $ac_try) 2>&5
15335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15336 (exit $ac_status); }; }; then
15337 eval "$as_ac_var=yes"
15339 echo "$as_me: failed program was:" >&5
15340 sed 's/^/| /' conftest.$ac_ext >&5
15342 eval "$as_ac_var=no"
15344 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15346 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15347 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15348 if test `eval echo '${'$as_ac_var'}'` = yes; then
15349 cat >>confdefs.h <<_ACEOF
15350 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15357 # If resolver functions are not in libc check for -lnsl or -lresolv.
15358 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
15359 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
15360 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
15361 echo $ECHO_N "(cached) $ECHO_C" >&6
15363 cat >conftest.$ac_ext <<_ACEOF
15364 #line $LINENO "configure"
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h. */
15370 /* System header to define __stub macros and hopefully few prototypes,
15371 which can conflict with char gethostbyname_r (); below.
15372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15373 <limits.h> exists even on freestanding compilers. */
15375 # include <limits.h>
15377 # include <assert.h>
15379 /* Override any gcc2 internal prototype to avoid an error. */
15384 /* We use char because int might match the return type of a gcc2
15385 builtin and then its argument prototype would still apply. */
15386 char gethostbyname_r ();
15387 /* The GNU C library defines this for functions which it implements
15388 to always fail with ENOSYS. Some functions are actually named
15389 something starting with __ and the normal name is an alias. */
15390 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
15393 char (*f) () = gethostbyname_r;
15402 return f != gethostbyname_r;
15407 rm -f conftest.$ac_objext conftest$ac_exeext
15408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15409 (eval $ac_link) 2>&5
15411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15412 (exit $ac_status); } &&
15413 { ac_try='test -s conftest$ac_exeext'
15414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15415 (eval $ac_try) 2>&5
15417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418 (exit $ac_status); }; }; then
15419 ac_cv_func_gethostbyname_r=yes
15421 echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15424 ac_cv_func_gethostbyname_r=no
15426 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15428 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
15429 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
15430 if test $ac_cv_func_gethostbyname_r = yes; then
15431 echo "$as_me:$LINENO: result: using libc's resolver" >&5
15432 echo "${ECHO_T}using libc's resolver" >&6
15435 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
15436 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
15437 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
15438 echo $ECHO_N "(cached) $ECHO_C" >&6
15440 ac_check_lib_save_LIBS=$LIBS
15442 cat >conftest.$ac_ext <<_ACEOF
15443 #line $LINENO "configure"
15446 cat confdefs.h >>conftest.$ac_ext
15447 cat >>conftest.$ac_ext <<_ACEOF
15448 /* end confdefs.h. */
15450 /* Override any gcc2 internal prototype to avoid an error. */
15454 /* We use char because int might match the return type of a gcc2
15455 builtin and then its argument prototype would still apply. */
15456 char gethostbyname_r ();
15460 gethostbyname_r ();
15465 rm -f conftest.$ac_objext conftest$ac_exeext
15466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15467 (eval $ac_link) 2>&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); } &&
15471 { ac_try='test -s conftest$ac_exeext'
15472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15473 (eval $ac_try) 2>&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); }; }; then
15477 ac_cv_lib_nsl_gethostbyname_r=yes
15479 echo "$as_me: failed program was:" >&5
15480 sed 's/^/| /' conftest.$ac_ext >&5
15482 ac_cv_lib_nsl_gethostbyname_r=no
15484 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15485 LIBS=$ac_check_lib_save_LIBS
15487 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
15488 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
15489 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
15490 cat >>confdefs.h <<_ACEOF
15491 #define HAVE_LIBNSL 1
15499 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
15500 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
15501 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
15502 echo $ECHO_N "(cached) $ECHO_C" >&6
15504 ac_check_lib_save_LIBS=$LIBS
15505 LIBS="-lresolv $LIBS"
15506 cat >conftest.$ac_ext <<_ACEOF
15507 #line $LINENO "configure"
15510 cat confdefs.h >>conftest.$ac_ext
15511 cat >>conftest.$ac_ext <<_ACEOF
15512 /* end confdefs.h. */
15514 /* Override any gcc2 internal prototype to avoid an error. */
15518 /* We use char because int might match the return type of a gcc2
15519 builtin and then its argument prototype would still apply. */
15520 char gethostbyname_r ();
15524 gethostbyname_r ();
15529 rm -f conftest.$ac_objext conftest$ac_exeext
15530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15531 (eval $ac_link) 2>&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } &&
15535 { ac_try='test -s conftest$ac_exeext'
15536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15537 (eval $ac_try) 2>&5
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); }; }; then
15541 ac_cv_lib_resolv_gethostbyname_r=yes
15543 echo "$as_me: failed program was:" >&5
15544 sed 's/^/| /' conftest.$ac_ext >&5
15546 ac_cv_lib_resolv_gethostbyname_r=no
15548 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15549 LIBS=$ac_check_lib_save_LIBS
15551 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
15552 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
15553 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
15554 cat >>confdefs.h <<_ACEOF
15555 #define HAVE_LIBRESOLV 1
15558 LIBS="-lresolv $LIBS"
15566 # Find where sockets are (especially for Solaris)
15567 echo "$as_me:$LINENO: checking for socket" >&5
15568 echo $ECHO_N "checking for socket... $ECHO_C" >&6
15569 if test "${ac_cv_func_socket+set}" = set; then
15570 echo $ECHO_N "(cached) $ECHO_C" >&6
15572 cat >conftest.$ac_ext <<_ACEOF
15573 #line $LINENO "configure"
15576 cat confdefs.h >>conftest.$ac_ext
15577 cat >>conftest.$ac_ext <<_ACEOF
15578 /* end confdefs.h. */
15579 /* System header to define __stub macros and hopefully few prototypes,
15580 which can conflict with char socket (); below.
15581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15582 <limits.h> exists even on freestanding compilers. */
15584 # include <limits.h>
15586 # include <assert.h>
15588 /* Override any gcc2 internal prototype to avoid an error. */
15593 /* We use char because int might match the return type of a gcc2
15594 builtin and then its argument prototype would still apply. */
15596 /* The GNU C library defines this for functions which it implements
15597 to always fail with ENOSYS. Some functions are actually named
15598 something starting with __ and the normal name is an alias. */
15599 #if defined (__stub_socket) || defined (__stub___socket)
15602 char (*f) () = socket;
15611 return f != socket;
15616 rm -f conftest.$ac_objext conftest$ac_exeext
15617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15618 (eval $ac_link) 2>&5
15620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15621 (exit $ac_status); } &&
15622 { ac_try='test -s conftest$ac_exeext'
15623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15624 (eval $ac_try) 2>&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; }; then
15628 ac_cv_func_socket=yes
15630 echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15633 ac_cv_func_socket=no
15635 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15637 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15638 echo "${ECHO_T}$ac_cv_func_socket" >&6
15639 if test $ac_cv_func_socket = yes; then
15640 echo "$as_me:$LINENO: result: using libc's socket" >&5
15641 echo "${ECHO_T}using libc's socket" >&6
15644 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
15645 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
15646 if test "${ac_cv_lib_xnet_socket+set}" = set; then
15647 echo $ECHO_N "(cached) $ECHO_C" >&6
15649 ac_check_lib_save_LIBS=$LIBS
15650 LIBS="-lxnet $LIBS"
15651 cat >conftest.$ac_ext <<_ACEOF
15652 #line $LINENO "configure"
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h. */
15659 /* Override any gcc2 internal prototype to avoid an error. */
15663 /* We use char because int might match the return type of a gcc2
15664 builtin and then its argument prototype would still apply. */
15674 rm -f conftest.$ac_objext conftest$ac_exeext
15675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15676 (eval $ac_link) 2>&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } &&
15680 { ac_try='test -s conftest$ac_exeext'
15681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15682 (eval $ac_try) 2>&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; }; then
15686 ac_cv_lib_xnet_socket=yes
15688 echo "$as_me: failed program was:" >&5
15689 sed 's/^/| /' conftest.$ac_ext >&5
15691 ac_cv_lib_xnet_socket=no
15693 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15694 LIBS=$ac_check_lib_save_LIBS
15696 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
15697 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
15698 if test $ac_cv_lib_xnet_socket = yes; then
15699 cat >>confdefs.h <<_ACEOF
15700 #define HAVE_LIBXNET 1
15703 LIBS="-lxnet $LIBS"
15708 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
15709 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
15710 if test "${ac_cv_lib_socket_socket+set}" = set; then
15711 echo $ECHO_N "(cached) $ECHO_C" >&6
15713 ac_check_lib_save_LIBS=$LIBS
15714 LIBS="-lsocket $LIBS"
15715 cat >conftest.$ac_ext <<_ACEOF
15716 #line $LINENO "configure"
15719 cat confdefs.h >>conftest.$ac_ext
15720 cat >>conftest.$ac_ext <<_ACEOF
15721 /* end confdefs.h. */
15723 /* Override any gcc2 internal prototype to avoid an error. */
15727 /* We use char because int might match the return type of a gcc2
15728 builtin and then its argument prototype would still apply. */
15738 rm -f conftest.$ac_objext conftest$ac_exeext
15739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15740 (eval $ac_link) 2>&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); } &&
15744 { ac_try='test -s conftest$ac_exeext'
15745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15746 (eval $ac_try) 2>&5
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); }; }; then
15750 ac_cv_lib_socket_socket=yes
15752 echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15755 ac_cv_lib_socket_socket=no
15757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15758 LIBS=$ac_check_lib_save_LIBS
15760 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
15761 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
15762 if test $ac_cv_lib_socket_socket = yes; then
15763 cat >>confdefs.h <<_ACEOF
15764 #define HAVE_LIBSOCKET 1
15767 LIBS="-lsocket $LIBS"
15772 echo "$as_me:$LINENO: checking for socket in -linet" >&5
15773 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
15774 if test "${ac_cv_lib_inet_socket+set}" = set; then
15775 echo $ECHO_N "(cached) $ECHO_C" >&6
15777 ac_check_lib_save_LIBS=$LIBS
15778 LIBS="-linet $LIBS"
15779 cat >conftest.$ac_ext <<_ACEOF
15780 #line $LINENO "configure"
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h. */
15787 /* Override any gcc2 internal prototype to avoid an error. */
15791 /* We use char because int might match the return type of a gcc2
15792 builtin and then its argument prototype would still apply. */
15802 rm -f conftest.$ac_objext conftest$ac_exeext
15803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15804 (eval $ac_link) 2>&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); } &&
15808 { ac_try='test -s conftest$ac_exeext'
15809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810 (eval $ac_try) 2>&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; }; then
15814 ac_cv_lib_inet_socket=yes
15816 echo "$as_me: failed program was:" >&5
15817 sed 's/^/| /' conftest.$ac_ext >&5
15819 ac_cv_lib_inet_socket=no
15821 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15822 LIBS=$ac_check_lib_save_LIBS
15824 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15825 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
15826 if test $ac_cv_lib_inet_socket = yes; then
15827 cat >>confdefs.h <<_ACEOF
15828 #define HAVE_LIBINET 1
15831 LIBS="-linet $LIBS"
15839 for ac_func in inet_pton
15841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15842 echo "$as_me:$LINENO: checking for $ac_func" >&5
15843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15844 if eval "test \"\${$as_ac_var+set}\" = set"; then
15845 echo $ECHO_N "(cached) $ECHO_C" >&6
15847 cat >conftest.$ac_ext <<_ACEOF
15848 #line $LINENO "configure"
15851 cat confdefs.h >>conftest.$ac_ext
15852 cat >>conftest.$ac_ext <<_ACEOF
15853 /* end confdefs.h. */
15854 /* System header to define __stub macros and hopefully few prototypes,
15855 which can conflict with char $ac_func (); below.
15856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15857 <limits.h> exists even on freestanding compilers. */
15859 # include <limits.h>
15861 # include <assert.h>
15863 /* Override any gcc2 internal prototype to avoid an error. */
15868 /* We use char because int might match the return type of a gcc2
15869 builtin and then its argument prototype would still apply. */
15871 /* The GNU C library defines this for functions which it implements
15872 to always fail with ENOSYS. Some functions are actually named
15873 something starting with __ and the normal name is an alias. */
15874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15877 char (*f) () = $ac_func;
15886 return f != $ac_func;
15891 rm -f conftest.$ac_objext conftest$ac_exeext
15892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15893 (eval $ac_link) 2>&5
15895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896 (exit $ac_status); } &&
15897 { ac_try='test -s conftest$ac_exeext'
15898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15899 (eval $ac_try) 2>&5
15901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15902 (exit $ac_status); }; }; then
15903 eval "$as_ac_var=yes"
15905 echo "$as_me: failed program was:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15908 eval "$as_ac_var=no"
15910 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15912 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
15913 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15914 if test `eval echo '${'$as_ac_var'}'` = yes; then
15915 cat >>confdefs.h <<_ACEOF
15916 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15918 cat >>confdefs.h <<\_ACEOF
15919 #define HAVE_INET_PTON 1
15927 for ac_func in strftime
15929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15930 echo "$as_me:$LINENO: checking for $ac_func" >&5
15931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15932 if eval "test \"\${$as_ac_var+set}\" = set"; then
15933 echo $ECHO_N "(cached) $ECHO_C" >&6
15935 cat >conftest.$ac_ext <<_ACEOF
15936 #line $LINENO "configure"
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h. */
15942 /* System header to define __stub macros and hopefully few prototypes,
15943 which can conflict with char $ac_func (); below.
15944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15945 <limits.h> exists even on freestanding compilers. */
15947 # include <limits.h>
15949 # include <assert.h>
15951 /* Override any gcc2 internal prototype to avoid an error. */
15956 /* We use char because int might match the return type of a gcc2
15957 builtin and then its argument prototype would still apply. */
15959 /* The GNU C library defines this for functions which it implements
15960 to always fail with ENOSYS. Some functions are actually named
15961 something starting with __ and the normal name is an alias. */
15962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15965 char (*f) () = $ac_func;
15974 return f != $ac_func;
15979 rm -f conftest.$ac_objext conftest$ac_exeext
15980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15981 (eval $ac_link) 2>&5
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); } &&
15985 { ac_try='test -s conftest$ac_exeext'
15986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15987 (eval $ac_try) 2>&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); }; }; then
15991 eval "$as_ac_var=yes"
15993 echo "$as_me: failed program was:" >&5
15994 sed 's/^/| /' conftest.$ac_ext >&5
15996 eval "$as_ac_var=no"
15998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16001 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16002 if test `eval echo '${'$as_ac_var'}'` = yes; then
16003 cat >>confdefs.h <<_ACEOF
16004 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16008 # strftime is in -lintl on SCO UNIX.
16009 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
16010 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
16011 if test "${ac_cv_lib_intl_strftime+set}" = set; then
16012 echo $ECHO_N "(cached) $ECHO_C" >&6
16014 ac_check_lib_save_LIBS=$LIBS
16015 LIBS="-lintl $LIBS"
16016 cat >conftest.$ac_ext <<_ACEOF
16017 #line $LINENO "configure"
16020 cat confdefs.h >>conftest.$ac_ext
16021 cat >>conftest.$ac_ext <<_ACEOF
16022 /* end confdefs.h. */
16024 /* Override any gcc2 internal prototype to avoid an error. */
16028 /* We use char because int might match the return type of a gcc2
16029 builtin and then its argument prototype would still apply. */
16039 rm -f conftest.$ac_objext conftest$ac_exeext
16040 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16041 (eval $ac_link) 2>&5
16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } &&
16045 { ac_try='test -s conftest$ac_exeext'
16046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16047 (eval $ac_try) 2>&5
16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16050 (exit $ac_status); }; }; then
16051 ac_cv_lib_intl_strftime=yes
16053 echo "$as_me: failed program was:" >&5
16054 sed 's/^/| /' conftest.$ac_ext >&5
16056 ac_cv_lib_intl_strftime=no
16058 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16059 LIBS=$ac_check_lib_save_LIBS
16061 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
16062 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
16063 if test $ac_cv_lib_intl_strftime = yes; then
16064 cat >>confdefs.h <<\_ACEOF
16065 #define HAVE_STRFTIME 1
16068 LIBS="-lintl $LIBS"
16075 for ac_func in vprintf
16077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16078 echo "$as_me:$LINENO: checking for $ac_func" >&5
16079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16080 if eval "test \"\${$as_ac_var+set}\" = set"; then
16081 echo $ECHO_N "(cached) $ECHO_C" >&6
16083 cat >conftest.$ac_ext <<_ACEOF
16084 #line $LINENO "configure"
16087 cat confdefs.h >>conftest.$ac_ext
16088 cat >>conftest.$ac_ext <<_ACEOF
16089 /* end confdefs.h. */
16090 /* System header to define __stub macros and hopefully few prototypes,
16091 which can conflict with char $ac_func (); below.
16092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16093 <limits.h> exists even on freestanding compilers. */
16095 # include <limits.h>
16097 # include <assert.h>
16099 /* Override any gcc2 internal prototype to avoid an error. */
16104 /* We use char because int might match the return type of a gcc2
16105 builtin and then its argument prototype would still apply. */
16107 /* The GNU C library defines this for functions which it implements
16108 to always fail with ENOSYS. Some functions are actually named
16109 something starting with __ and the normal name is an alias. */
16110 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16113 char (*f) () = $ac_func;
16122 return f != $ac_func;
16127 rm -f conftest.$ac_objext conftest$ac_exeext
16128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16129 (eval $ac_link) 2>&5
16131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16132 (exit $ac_status); } &&
16133 { ac_try='test -s conftest$ac_exeext'
16134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16135 (eval $ac_try) 2>&5
16137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); }; }; then
16139 eval "$as_ac_var=yes"
16141 echo "$as_me: failed program was:" >&5
16142 sed 's/^/| /' conftest.$ac_ext >&5
16144 eval "$as_ac_var=no"
16146 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16149 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16150 if test `eval echo '${'$as_ac_var'}'` = yes; then
16151 cat >>confdefs.h <<_ACEOF
16152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16155 echo "$as_me:$LINENO: checking for _doprnt" >&5
16156 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
16157 if test "${ac_cv_func__doprnt+set}" = set; then
16158 echo $ECHO_N "(cached) $ECHO_C" >&6
16160 cat >conftest.$ac_ext <<_ACEOF
16161 #line $LINENO "configure"
16164 cat confdefs.h >>conftest.$ac_ext
16165 cat >>conftest.$ac_ext <<_ACEOF
16166 /* end confdefs.h. */
16167 /* System header to define __stub macros and hopefully few prototypes,
16168 which can conflict with char _doprnt (); below.
16169 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16170 <limits.h> exists even on freestanding compilers. */
16172 # include <limits.h>
16174 # include <assert.h>
16176 /* Override any gcc2 internal prototype to avoid an error. */
16181 /* We use char because int might match the return type of a gcc2
16182 builtin and then its argument prototype would still apply. */
16184 /* The GNU C library defines this for functions which it implements
16185 to always fail with ENOSYS. Some functions are actually named
16186 something starting with __ and the normal name is an alias. */
16187 #if defined (__stub__doprnt) || defined (__stub____doprnt)
16190 char (*f) () = _doprnt;
16199 return f != _doprnt;
16204 rm -f conftest.$ac_objext conftest$ac_exeext
16205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16206 (eval $ac_link) 2>&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); } &&
16210 { ac_try='test -s conftest$ac_exeext'
16211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16212 (eval $ac_try) 2>&5
16214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16215 (exit $ac_status); }; }; then
16216 ac_cv_func__doprnt=yes
16218 echo "$as_me: failed program was:" >&5
16219 sed 's/^/| /' conftest.$ac_ext >&5
16221 ac_cv_func__doprnt=no
16223 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16225 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
16226 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
16227 if test $ac_cv_func__doprnt = yes; then
16229 cat >>confdefs.h <<\_ACEOF
16230 #define HAVE_DOPRNT 1
16239 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16240 # for constant arguments. Useless!
16241 echo "$as_me:$LINENO: checking for working alloca.h" >&5
16242 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
16243 if test "${ac_cv_working_alloca_h+set}" = set; then
16244 echo $ECHO_N "(cached) $ECHO_C" >&6
16246 cat >conftest.$ac_ext <<_ACEOF
16247 #line $LINENO "configure"
16250 cat confdefs.h >>conftest.$ac_ext
16251 cat >>conftest.$ac_ext <<_ACEOF
16252 /* end confdefs.h. */
16253 #include <alloca.h>
16257 char *p = (char *) alloca (2 * sizeof (int));
16262 rm -f conftest.$ac_objext conftest$ac_exeext
16263 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16264 (eval $ac_link) 2>&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } &&
16268 { ac_try='test -s conftest$ac_exeext'
16269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270 (eval $ac_try) 2>&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); }; }; then
16274 ac_cv_working_alloca_h=yes
16276 echo "$as_me: failed program was:" >&5
16277 sed 's/^/| /' conftest.$ac_ext >&5
16279 ac_cv_working_alloca_h=no
16281 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16283 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16284 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
16285 if test $ac_cv_working_alloca_h = yes; then
16287 cat >>confdefs.h <<\_ACEOF
16288 #define HAVE_ALLOCA_H 1
16293 echo "$as_me:$LINENO: checking for alloca" >&5
16294 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
16295 if test "${ac_cv_func_alloca_works+set}" = set; then
16296 echo $ECHO_N "(cached) $ECHO_C" >&6
16298 cat >conftest.$ac_ext <<_ACEOF
16299 #line $LINENO "configure"
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16306 # define alloca __builtin_alloca
16309 # include <malloc.h>
16310 # define alloca _alloca
16313 # include <alloca.h>
16318 # ifndef alloca /* predefined by HP cc +Olibcalls */
16329 char *p = (char *) alloca (1);
16334 rm -f conftest.$ac_objext conftest$ac_exeext
16335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16336 (eval $ac_link) 2>&5
16338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16339 (exit $ac_status); } &&
16340 { ac_try='test -s conftest$ac_exeext'
16341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16342 (eval $ac_try) 2>&5
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); }; }; then
16346 ac_cv_func_alloca_works=yes
16348 echo "$as_me: failed program was:" >&5
16349 sed 's/^/| /' conftest.$ac_ext >&5
16351 ac_cv_func_alloca_works=no
16353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16355 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16356 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
16358 if test $ac_cv_func_alloca_works = yes; then
16360 cat >>confdefs.h <<\_ACEOF
16361 #define HAVE_ALLOCA 1
16365 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16366 # that cause trouble. Some versions do not even contain alloca or
16367 # contain a buggy version. If you still want to use their alloca,
16368 # use ar to extract alloca.o from them instead of compiling alloca.c.
16370 ALLOCA=alloca.$ac_objext
16372 cat >>confdefs.h <<\_ACEOF
16377 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16378 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
16379 if test "${ac_cv_os_cray+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 #if defined(CRAY) && ! defined(CRAY2)
16396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16397 $EGREP "webecray" >/dev/null 2>&1; then
16405 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
16406 echo "${ECHO_T}$ac_cv_os_cray" >&6
16407 if test $ac_cv_os_cray = yes; then
16408 for ac_func in _getb67 GETB67 getb67; do
16409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16410 echo "$as_me:$LINENO: checking for $ac_func" >&5
16411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16412 if eval "test \"\${$as_ac_var+set}\" = set"; then
16413 echo $ECHO_N "(cached) $ECHO_C" >&6
16415 cat >conftest.$ac_ext <<_ACEOF
16416 #line $LINENO "configure"
16419 cat confdefs.h >>conftest.$ac_ext
16420 cat >>conftest.$ac_ext <<_ACEOF
16421 /* end confdefs.h. */
16422 /* System header to define __stub macros and hopefully few prototypes,
16423 which can conflict with char $ac_func (); below.
16424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16425 <limits.h> exists even on freestanding compilers. */
16427 # include <limits.h>
16429 # include <assert.h>
16431 /* Override any gcc2 internal prototype to avoid an error. */
16436 /* We use char because int might match the return type of a gcc2
16437 builtin and then its argument prototype would still apply. */
16439 /* The GNU C library defines this for functions which it implements
16440 to always fail with ENOSYS. Some functions are actually named
16441 something starting with __ and the normal name is an alias. */
16442 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16445 char (*f) () = $ac_func;
16454 return f != $ac_func;
16459 rm -f conftest.$ac_objext conftest$ac_exeext
16460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16461 (eval $ac_link) 2>&5
16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16464 (exit $ac_status); } &&
16465 { ac_try='test -s conftest$ac_exeext'
16466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16467 (eval $ac_try) 2>&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); }; }; then
16471 eval "$as_ac_var=yes"
16473 echo "$as_me: failed program was:" >&5
16474 sed 's/^/| /' conftest.$ac_ext >&5
16476 eval "$as_ac_var=no"
16478 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16481 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16482 if test `eval echo '${'$as_ac_var'}'` = yes; then
16484 cat >>confdefs.h <<_ACEOF
16485 #define CRAY_STACKSEG_END $ac_func
16494 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16495 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
16496 if test "${ac_cv_c_stack_direction+set}" = set; then
16497 echo $ECHO_N "(cached) $ECHO_C" >&6
16499 if test "$cross_compiling" = yes; then
16500 ac_cv_c_stack_direction=0
16502 cat >conftest.$ac_ext <<_ACEOF
16503 #line $LINENO "configure"
16506 cat confdefs.h >>conftest.$ac_ext
16507 cat >>conftest.$ac_ext <<_ACEOF
16508 /* end confdefs.h. */
16510 find_stack_direction ()
16512 static char *addr = 0;
16517 return find_stack_direction ();
16520 return (&dummy > addr) ? 1 : -1;
16526 exit (find_stack_direction () < 0);
16529 rm -f conftest$ac_exeext
16530 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16531 (eval $ac_link) 2>&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16536 (eval $ac_try) 2>&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); }; }; then
16540 ac_cv_c_stack_direction=1
16542 echo "$as_me: program exited with status $ac_status" >&5
16543 echo "$as_me: failed program was:" >&5
16544 sed 's/^/| /' conftest.$ac_ext >&5
16546 ( exit $ac_status )
16547 ac_cv_c_stack_direction=-1
16549 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16552 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16553 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
16555 cat >>confdefs.h <<_ACEOF
16556 #define STACK_DIRECTION $ac_cv_c_stack_direction
16562 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
16563 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
16564 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
16565 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
16566 echo $ECHO_N "(cached) $ECHO_C" >&6
16568 ac_check_lib_save_LIBS=$LIBS
16570 cat >conftest.$ac_ext <<_ACEOF
16571 #line $LINENO "configure"
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h. */
16578 /* Override any gcc2 internal prototype to avoid an error. */
16582 /* We use char because int might match the return type of a gcc2
16583 builtin and then its argument prototype would still apply. */
16593 rm -f conftest.$ac_objext conftest$ac_exeext
16594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16595 (eval $ac_link) 2>&5
16597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16598 (exit $ac_status); } &&
16599 { ac_try='test -s conftest$ac_exeext'
16600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16601 (eval $ac_try) 2>&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; }; then
16605 ac_cv_lib_sun_getmntent=yes
16607 echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16610 ac_cv_lib_sun_getmntent=no
16612 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16613 LIBS=$ac_check_lib_save_LIBS
16615 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
16616 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
16617 if test $ac_cv_lib_sun_getmntent = yes; then
16620 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
16621 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
16622 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
16623 echo $ECHO_N "(cached) $ECHO_C" >&6
16625 ac_check_lib_save_LIBS=$LIBS
16627 cat >conftest.$ac_ext <<_ACEOF
16628 #line $LINENO "configure"
16631 cat confdefs.h >>conftest.$ac_ext
16632 cat >>conftest.$ac_ext <<_ACEOF
16633 /* end confdefs.h. */
16635 /* Override any gcc2 internal prototype to avoid an error. */
16639 /* We use char because int might match the return type of a gcc2
16640 builtin and then its argument prototype would still apply. */
16650 rm -f conftest.$ac_objext conftest$ac_exeext
16651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16652 (eval $ac_link) 2>&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } &&
16656 { ac_try='test -s conftest$ac_exeext'
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; }; then
16662 ac_cv_lib_seq_getmntent=yes
16664 echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16667 ac_cv_lib_seq_getmntent=no
16669 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16670 LIBS=$ac_check_lib_save_LIBS
16672 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
16673 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
16674 if test $ac_cv_lib_seq_getmntent = yes; then
16677 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
16678 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
16679 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
16680 echo $ECHO_N "(cached) $ECHO_C" >&6
16682 ac_check_lib_save_LIBS=$LIBS
16684 cat >conftest.$ac_ext <<_ACEOF
16685 #line $LINENO "configure"
16688 cat confdefs.h >>conftest.$ac_ext
16689 cat >>conftest.$ac_ext <<_ACEOF
16690 /* end confdefs.h. */
16692 /* Override any gcc2 internal prototype to avoid an error. */
16696 /* We use char because int might match the return type of a gcc2
16697 builtin and then its argument prototype would still apply. */
16707 rm -f conftest.$ac_objext conftest$ac_exeext
16708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16709 (eval $ac_link) 2>&5
16711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712 (exit $ac_status); } &&
16713 { ac_try='test -s conftest$ac_exeext'
16714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16715 (eval $ac_try) 2>&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; }; then
16719 ac_cv_lib_gen_getmntent=yes
16721 echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16724 ac_cv_lib_gen_getmntent=no
16726 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16727 LIBS=$ac_check_lib_save_LIBS
16729 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
16730 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
16731 if test $ac_cv_lib_gen_getmntent = yes; then
16740 for ac_func in getmntent
16742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16743 echo "$as_me:$LINENO: checking for $ac_func" >&5
16744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16745 if eval "test \"\${$as_ac_var+set}\" = set"; then
16746 echo $ECHO_N "(cached) $ECHO_C" >&6
16748 cat >conftest.$ac_ext <<_ACEOF
16749 #line $LINENO "configure"
16752 cat confdefs.h >>conftest.$ac_ext
16753 cat >>conftest.$ac_ext <<_ACEOF
16754 /* end confdefs.h. */
16755 /* System header to define __stub macros and hopefully few prototypes,
16756 which can conflict with char $ac_func (); below.
16757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16758 <limits.h> exists even on freestanding compilers. */
16760 # include <limits.h>
16762 # include <assert.h>
16764 /* Override any gcc2 internal prototype to avoid an error. */
16769 /* We use char because int might match the return type of a gcc2
16770 builtin and then its argument prototype would still apply. */
16772 /* The GNU C library defines this for functions which it implements
16773 to always fail with ENOSYS. Some functions are actually named
16774 something starting with __ and the normal name is an alias. */
16775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16778 char (*f) () = $ac_func;
16787 return f != $ac_func;
16792 rm -f conftest.$ac_objext conftest$ac_exeext
16793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16794 (eval $ac_link) 2>&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } &&
16798 { ac_try='test -s conftest$ac_exeext'
16799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16800 (eval $ac_try) 2>&5
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; }; then
16804 eval "$as_ac_var=yes"
16806 echo "$as_me: failed program was:" >&5
16807 sed 's/^/| /' conftest.$ac_ext >&5
16809 eval "$as_ac_var=no"
16811 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16815 if test `eval echo '${'$as_ac_var'}'` = yes; then
16816 cat >>confdefs.h <<_ACEOF
16817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16824 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
16825 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
16826 if test "${ac_cv_func_closedir_void+set}" = set; then
16827 echo $ECHO_N "(cached) $ECHO_C" >&6
16829 if test "$cross_compiling" = yes; then
16830 ac_cv_func_closedir_void=yes
16832 cat >conftest.$ac_ext <<_ACEOF
16833 #line $LINENO "configure"
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h. */
16839 $ac_includes_default
16840 #include <$ac_header_dirent>
16841 #ifndef __cplusplus
16848 exit (closedir (opendir (".")) != 0);
16853 rm -f conftest$ac_exeext
16854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16855 (eval $ac_link) 2>&5
16857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16858 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16860 (eval $ac_try) 2>&5
16862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16863 (exit $ac_status); }; }; then
16864 ac_cv_func_closedir_void=no
16866 echo "$as_me: program exited with status $ac_status" >&5
16867 echo "$as_me: failed program was:" >&5
16868 sed 's/^/| /' conftest.$ac_ext >&5
16870 ( exit $ac_status )
16871 ac_cv_func_closedir_void=yes
16873 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16876 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
16877 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
16878 if test $ac_cv_func_closedir_void = yes; then
16880 cat >>confdefs.h <<\_ACEOF
16881 #define CLOSEDIR_VOID 1
16886 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
16887 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
16888 if test "${ac_cv_func_setpgrp_void+set}" = set; then
16889 echo $ECHO_N "(cached) $ECHO_C" >&6
16891 if test "$cross_compiling" = yes; then
16892 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
16893 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
16894 { (exit 1); exit 1; }; }
16896 cat >conftest.$ac_ext <<_ACEOF
16897 #line $LINENO "configure"
16900 cat confdefs.h >>conftest.$ac_ext
16901 cat >>conftest.$ac_ext <<_ACEOF
16902 /* end confdefs.h. */
16904 # include <unistd.h>
16910 /* If this system has a BSD-style setpgrp which takes arguments,
16911 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
16912 exit successfully. */
16913 exit (setpgrp (1,1) == -1 ? 0 : 1);
16918 rm -f conftest$ac_exeext
16919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16920 (eval $ac_link) 2>&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16925 (eval $ac_try) 2>&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); }; }; then
16929 ac_cv_func_setpgrp_void=no
16931 echo "$as_me: program exited with status $ac_status" >&5
16932 echo "$as_me: failed program was:" >&5
16933 sed 's/^/| /' conftest.$ac_ext >&5
16935 ( exit $ac_status )
16936 ac_cv_func_setpgrp_void=yes
16938 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16941 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
16942 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
16943 if test $ac_cv_func_setpgrp_void = yes; then
16945 cat >>confdefs.h <<\_ACEOF
16946 #define SETPGRP_VOID 1
16950 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
16951 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
16952 if test "${ac_cv_func_fnmatch_works+set}" = set; then
16953 echo $ECHO_N "(cached) $ECHO_C" >&6
16955 # Some versions of Solaris, SCO, and the GNU C Library
16956 # have a broken or incompatible fnmatch.
16957 # So we run a test program. If we are cross-compiling, take no chance.
16958 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
16959 if test "$cross_compiling" = yes; then
16960 ac_cv_func_fnmatch_works=cross
16962 cat >conftest.$ac_ext <<_ACEOF
16963 #line $LINENO "configure"
16966 cat confdefs.h >>conftest.$ac_ext
16967 cat >>conftest.$ac_ext <<_ACEOF
16968 /* end confdefs.h. */
16969 #include <fnmatch.h>
16970 # define y(a, b, c) (fnmatch (a, b, c) == 0)
16971 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
16977 (!(y ("a*", "abc", 0)
16978 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
16979 && y ("a\\\\bc", "abc", 0)
16980 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
16981 && y ("*x", ".x", 0)
16982 && n ("*x", ".x", FNM_PERIOD)
16988 rm -f conftest$ac_exeext
16989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16990 (eval $ac_link) 2>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; }; then
16999 ac_cv_func_fnmatch_works=yes
17001 echo "$as_me: program exited with status $ac_status" >&5
17002 echo "$as_me: failed program was:" >&5
17003 sed 's/^/| /' conftest.$ac_ext >&5
17005 ( exit $ac_status )
17006 ac_cv_func_fnmatch_works=no
17008 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17011 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
17012 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
17013 if test $ac_cv_func_fnmatch_works = yes; then
17015 cat >>confdefs.h <<\_ACEOF
17016 #define HAVE_FNMATCH 1
17025 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
17026 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
17027 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
17028 echo $ECHO_N "(cached) $ECHO_C" >&6
17030 ac_check_lib_save_LIBS=$LIBS
17031 LIBS="-lxpg4 $LIBS"
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 /* Override any gcc2 internal prototype to avoid an error. */
17044 /* We use char because int might match the return type of a gcc2
17045 builtin and then its argument prototype would still apply. */
17055 rm -f conftest.$ac_objext conftest$ac_exeext
17056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17057 (eval $ac_link) 2>&5
17059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17060 (exit $ac_status); } &&
17061 { ac_try='test -s conftest$ac_exeext'
17062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17063 (eval $ac_try) 2>&5
17065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17066 (exit $ac_status); }; }; then
17067 ac_cv_lib_xpg4_setlocale=yes
17069 echo "$as_me: failed program was:" >&5
17070 sed 's/^/| /' conftest.$ac_ext >&5
17072 ac_cv_lib_xpg4_setlocale=no
17074 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17075 LIBS=$ac_check_lib_save_LIBS
17077 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
17078 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
17079 if test $ac_cv_lib_xpg4_setlocale = yes; then
17080 LIBS="$LIBS -lxpg4"
17086 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
17087 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
17088 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
17089 echo $ECHO_N "(cached) $ECHO_C" >&6
17091 ac_check_lib_save_LIBS=$LIBS
17093 cat >conftest.$ac_ext <<_ACEOF
17094 #line $LINENO "configure"
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h. */
17101 /* Override any gcc2 internal prototype to avoid an error. */
17105 /* We use char because int might match the return type of a gcc2
17106 builtin and then its argument prototype would still apply. */
17116 rm -f conftest.$ac_objext conftest$ac_exeext
17117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17118 (eval $ac_link) 2>&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } &&
17122 { ac_try='test -s conftest$ac_exeext'
17123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17124 (eval $ac_try) 2>&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); }; }; then
17128 ac_cv_lib_sun_getpwnam=yes
17130 echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17133 ac_cv_lib_sun_getpwnam=no
17135 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17136 LIBS=$ac_check_lib_save_LIBS
17138 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
17139 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
17140 if test $ac_cv_lib_sun_getpwnam = yes; then
17141 cat >>confdefs.h <<_ACEOF
17142 #define HAVE_LIBSUN 1
17151 for ac_header in zlib.h
17153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17154 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17155 echo "$as_me:$LINENO: checking for $ac_header" >&5
17156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17158 echo $ECHO_N "(cached) $ECHO_C" >&6
17160 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17161 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17163 # Is the header compilable?
17164 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17166 cat >conftest.$ac_ext <<_ACEOF
17167 #line $LINENO "configure"
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h. */
17173 $ac_includes_default
17174 #include <$ac_header>
17176 rm -f conftest.$ac_objext
17177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17178 (eval $ac_compile) 2>&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); } &&
17182 { ac_try='test -s conftest.$ac_objext'
17183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17184 (eval $ac_try) 2>&5
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); }; }; then
17188 ac_header_compiler=yes
17190 echo "$as_me: failed program was:" >&5
17191 sed 's/^/| /' conftest.$ac_ext >&5
17193 ac_header_compiler=no
17195 rm -f conftest.$ac_objext conftest.$ac_ext
17196 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17197 echo "${ECHO_T}$ac_header_compiler" >&6
17199 # Is the header present?
17200 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17202 cat >conftest.$ac_ext <<_ACEOF
17203 #line $LINENO "configure"
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h. */
17209 #include <$ac_header>
17211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17214 grep -v '^ *+' conftest.er1 >conftest.err
17216 cat conftest.err >&5
17217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17218 (exit $ac_status); } >/dev/null; then
17219 if test -s conftest.err; then
17220 ac_cpp_err=$ac_c_preproc_warn_flag
17227 if test -z "$ac_cpp_err"; then
17228 ac_header_preproc=yes
17230 echo "$as_me: failed program was:" >&5
17231 sed 's/^/| /' conftest.$ac_ext >&5
17233 ac_header_preproc=no
17235 rm -f conftest.err conftest.$ac_ext
17236 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17237 echo "${ECHO_T}$ac_header_preproc" >&6
17239 # So? What about this header?
17240 case $ac_header_compiler:$ac_header_preproc in
17242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17248 ## ------------------------------------ ##
17249 ## Report this to bug-autoconf@gnu.org. ##
17250 ## ------------------------------------ ##
17253 sed "s/^/$as_me: WARNING: /" >&2
17256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17264 ## ------------------------------------ ##
17265 ## Report this to bug-autoconf@gnu.org. ##
17266 ## ------------------------------------ ##
17269 sed "s/^/$as_me: WARNING: /" >&2
17272 echo "$as_me:$LINENO: checking for $ac_header" >&5
17273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17274 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17275 echo $ECHO_N "(cached) $ECHO_C" >&6
17277 eval "$as_ac_Header=$ac_header_preproc"
17279 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17280 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17284 cat >>confdefs.h <<_ACEOF
17285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17292 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
17293 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
17294 if test "${ac_cv_lib_z_deflate+set}" = set; then
17295 echo $ECHO_N "(cached) $ECHO_C" >&6
17297 ac_check_lib_save_LIBS=$LIBS
17299 cat >conftest.$ac_ext <<_ACEOF
17300 #line $LINENO "configure"
17303 cat confdefs.h >>conftest.$ac_ext
17304 cat >>conftest.$ac_ext <<_ACEOF
17305 /* end confdefs.h. */
17307 /* Override any gcc2 internal prototype to avoid an error. */
17311 /* We use char because int might match the return type of a gcc2
17312 builtin and then its argument prototype would still apply. */
17322 rm -f conftest.$ac_objext conftest$ac_exeext
17323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17324 (eval $ac_link) 2>&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); } &&
17328 { ac_try='test -s conftest$ac_exeext'
17329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17330 (eval $ac_try) 2>&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); }; }; then
17334 ac_cv_lib_z_deflate=yes
17336 echo "$as_me: failed program was:" >&5
17337 sed 's/^/| /' conftest.$ac_ext >&5
17339 ac_cv_lib_z_deflate=no
17341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17342 LIBS=$ac_check_lib_save_LIBS
17344 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
17345 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
17346 if test $ac_cv_lib_z_deflate = yes; then
17351 if test x$FDLIBS = x-lz; then
17352 cat >>confdefs.h <<\_ACEOF
17353 #define HAVE_LIBZ 1
17360 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
17361 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
17362 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
17363 echo $ECHO_N "(cached) $ECHO_C" >&6
17365 ac_check_lib_save_LIBS=$LIBS
17366 LIBS="-lpthread $LIBS"
17367 cat >conftest.$ac_ext <<_ACEOF
17368 #line $LINENO "configure"
17371 cat confdefs.h >>conftest.$ac_ext
17372 cat >>conftest.$ac_ext <<_ACEOF
17373 /* end confdefs.h. */
17375 /* Override any gcc2 internal prototype to avoid an error. */
17379 /* We use char because int might match the return type of a gcc2
17380 builtin and then its argument prototype would still apply. */
17381 char pthread_create ();
17390 rm -f conftest.$ac_objext conftest$ac_exeext
17391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17392 (eval $ac_link) 2>&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } &&
17396 { ac_try='test -s conftest$ac_exeext'
17397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
17402 ac_cv_lib_pthread_pthread_create=yes
17404 echo "$as_me: failed program was:" >&5
17405 sed 's/^/| /' conftest.$ac_ext >&5
17407 ac_cv_lib_pthread_pthread_create=no
17409 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17410 LIBS=$ac_check_lib_save_LIBS
17412 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
17413 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
17414 if test $ac_cv_lib_pthread_pthread_create = yes; then
17415 PTHREAD_LIB="-lpthread"
17417 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
17418 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
17419 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
17420 echo $ECHO_N "(cached) $ECHO_C" >&6
17422 ac_check_lib_save_LIBS=$LIBS
17423 LIBS="-lpthreads $LIBS"
17424 cat >conftest.$ac_ext <<_ACEOF
17425 #line $LINENO "configure"
17428 cat confdefs.h >>conftest.$ac_ext
17429 cat >>conftest.$ac_ext <<_ACEOF
17430 /* end confdefs.h. */
17432 /* Override any gcc2 internal prototype to avoid an error. */
17436 /* We use char because int might match the return type of a gcc2
17437 builtin and then its argument prototype would still apply. */
17438 char pthread_create ();
17447 rm -f conftest.$ac_objext conftest$ac_exeext
17448 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17449 (eval $ac_link) 2>&5
17451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452 (exit $ac_status); } &&
17453 { ac_try='test -s conftest$ac_exeext'
17454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17455 (eval $ac_try) 2>&5
17457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17458 (exit $ac_status); }; }; then
17459 ac_cv_lib_pthreads_pthread_create=yes
17461 echo "$as_me: failed program was:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17464 ac_cv_lib_pthreads_pthread_create=no
17466 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17467 LIBS=$ac_check_lib_save_LIBS
17469 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
17470 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
17471 if test $ac_cv_lib_pthreads_pthread_create = yes; then
17472 PTHREAD_LIB="-lpthreads"
17474 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
17475 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
17476 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
17477 echo $ECHO_N "(cached) $ECHO_C" >&6
17479 ac_check_lib_save_LIBS=$LIBS
17481 cat >conftest.$ac_ext <<_ACEOF
17482 #line $LINENO "configure"
17485 cat confdefs.h >>conftest.$ac_ext
17486 cat >>conftest.$ac_ext <<_ACEOF
17487 /* end confdefs.h. */
17489 /* Override any gcc2 internal prototype to avoid an error. */
17493 /* We use char because int might match the return type of a gcc2
17494 builtin and then its argument prototype would still apply. */
17495 char pthread_create ();
17504 rm -f conftest.$ac_objext conftest$ac_exeext
17505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17506 (eval $ac_link) 2>&5
17508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509 (exit $ac_status); } &&
17510 { ac_try='test -s conftest$ac_exeext'
17511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17512 (eval $ac_try) 2>&5
17514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17515 (exit $ac_status); }; }; then
17516 ac_cv_lib_c_r_pthread_create=yes
17518 echo "$as_me: failed program was:" >&5
17519 sed 's/^/| /' conftest.$ac_ext >&5
17521 ac_cv_lib_c_r_pthread_create=no
17523 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17524 LIBS=$ac_check_lib_save_LIBS
17526 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
17527 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
17528 if test $ac_cv_lib_c_r_pthread_create = yes; then
17529 PTHREAD_LIB="-lc_r"
17531 echo "$as_me:$LINENO: checking for pthread_create" >&5
17532 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
17533 if test "${ac_cv_func_pthread_create+set}" = set; then
17534 echo $ECHO_N "(cached) $ECHO_C" >&6
17536 cat >conftest.$ac_ext <<_ACEOF
17537 #line $LINENO "configure"
17540 cat confdefs.h >>conftest.$ac_ext
17541 cat >>conftest.$ac_ext <<_ACEOF
17542 /* end confdefs.h. */
17543 /* System header to define __stub macros and hopefully few prototypes,
17544 which can conflict with char pthread_create (); below.
17545 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17546 <limits.h> exists even on freestanding compilers. */
17548 # include <limits.h>
17550 # include <assert.h>
17552 /* Override any gcc2 internal prototype to avoid an error. */
17557 /* We use char because int might match the return type of a gcc2
17558 builtin and then its argument prototype would still apply. */
17559 char pthread_create ();
17560 /* The GNU C library defines this for functions which it implements
17561 to always fail with ENOSYS. Some functions are actually named
17562 something starting with __ and the normal name is an alias. */
17563 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
17566 char (*f) () = pthread_create;
17575 return f != pthread_create;
17580 rm -f conftest.$ac_objext conftest$ac_exeext
17581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17582 (eval $ac_link) 2>&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } &&
17586 { ac_try='test -s conftest$ac_exeext'
17587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17588 (eval $ac_try) 2>&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; }; then
17592 ac_cv_func_pthread_create=yes
17594 echo "$as_me: failed program was:" >&5
17595 sed 's/^/| /' conftest.$ac_ext >&5
17597 ac_cv_func_pthread_create=no
17599 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17601 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
17602 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
17615 cat >>confdefs.h <<\_ACEOF
17621 CFLAGS=${CFLAGS--O}
17622 LDFLAGS=${LDFLAGS--O}
17623 DB_LIBS="${SQL_LFLAGS}"
17625 CPPFLAGS="$CPPFLAGS"
17650 # Finally we set appropriate distribution specific
17651 # variables and defaults
17653 # PFILES are platform specific files
17654 PFILES="platforms/Makefile"
17657 hostname=`uname -n`
17658 case "$DISTNAME" in
17661 PSCMD="ps -e -o pid,comm"
17662 PFILES="${PFILES} \
17663 platforms/aix/Makefile"
17664 TAPEDRIVE="/dev/rmt0.1"
17668 PTHREAD_LIB="-lpthread -lexc"
17669 if test "${CC}" = "gcc" ; then
17676 TAPEDRIVE="/dev/nrmt0"
17679 DISTVER=`uname -a |awk '{print $3}'`
17680 TAPEDRIVE="/dev/nrmt0"
17681 PTHREAD_LIB="-pthread"
17682 CFLAGS="${CFLAGS} -pthread"
17683 PSCMD="ps -x -o pid,command"
17686 PFILES="${PFILES} \
17687 platforms/bsdi/Makefile \
17688 platforms/bsdi/bacula-fd \
17689 platforms/bsdi/bacula-sd \
17690 platforms/bsdi/bacula-dir"
17691 hostname=`hostname -s`
17692 largefile_support="yes"
17695 DISTVER=`uname -a |awk '{print $3}'`
17696 TAPEDRIVE="/dev/nrst0"
17698 WCFLAGS="-mwindows"
17699 WLDFLAGS="-mwindows"
17703 TAPEDRIVE="/dev/nst0"
17704 PSCMD="ps -e -o pid,command"
17705 hostname=`hostname -s`
17706 PFILES="${PFILES} \
17707 platforms/darwin/Makefile"
17710 DISTVER=`cat /etc/debian_version`
17711 TAPEDRIVE="/dev/nrst0"
17712 PSCMD="ps -e -o pid,command"
17713 hostname=`hostname -s`
17716 DISTVER=`uname -a |awk '{print $3}'`
17717 VER=`echo $DISTVER | cut -c 1`
17718 if test x$VER = x4 ; then
17719 PTHREAD_LIB="-pthread"
17720 CFLAGS="${CFLAGS} -pthread"
17724 TAPEDRIVE="/dev/nrsa0"
17725 PSCMD="ps -x -o pid,command"
17726 PFILES="${PFILES} \
17727 platforms/freebsd/Makefile \
17728 platforms/freebsd/bacula-fd \
17729 platforms/freebsd/bacula-sd \
17730 platforms/freebsd/bacula-dir"
17731 hostname=`hostname -s`
17732 largefile_support="yes"
17736 TAPEDRIVE="/dev/rmt/0hnb"
17740 TAPEDRIVE="/dev/rmt/0cbn"
17741 PSCMD="ps -e -o pid,comm"
17742 PFILES="${PFILES} \
17743 platforms/irix/Makefile \
17744 platforms/irix/bacula-fd \
17745 platforms/irix/bacula-sd \
17746 platforms/irix/bacula-dir"
17749 DISTVER=`uname -a |awk '{print $3}'`
17752 TAPEDRIVE="/dev/nrst0"
17753 PSCMD="ps -a -o pid,command"
17754 PTHREAD_LIB="-pthread"
17755 CFLAGS="${CFLAGS} -pthread"
17758 DISTVER=`uname -a |awk '{print $3}'`
17761 TAPEDRIVE="/dev/nrst0"
17762 PSCMD="ps -a -o pid,command"
17763 PTHREAD_LIB="-pthread"
17764 CFLAGS="${CFLAGS} -pthread"
17765 PFILES="${PFILES} \
17766 platforms/openbsd/Makefile \
17767 platforms/openbsd/bacula-fd \
17768 platforms/openbsd/bacula-sd \
17769 platforms/openbsd/bacula-dir"
17772 DISTVER=`cat /etc/redhat-release | grep release |\
17774 TAPEDRIVE="/dev/nst0"
17775 PSCMD="ps -e -o pid,command"
17776 PFILES="${PFILES} \
17777 platforms/redhat/Makefile \
17778 platforms/redhat/bacula-fd \
17779 platforms/redhat/bacula-sd \
17780 platforms/redhat/bacula-dir \
17781 platforms/redhat/bacula.spec \
17783 hostname=`hostname -s`
17786 DISTVER=`cat /etc/mandrake-release | grep release |\
17788 TAPEDRIVE="/dev/nst0"
17789 PSCMD="ps -e -o pid,command"
17790 PFILES="${PFILES} \
17791 platforms/mandrake/Makefile \
17792 platforms/mandrake/bacula-fd \
17793 platforms/mandrake/bacula-sd \
17794 platforms/mandrake/bacula-dir \
17795 platforms/mandrake/bacula.spec \
17797 hostname=`hostname -s`
17800 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
17801 TAPEDRIVE="/dev/nst0"
17802 PSCMD="ps -e -o pid,command"
17803 PFILES="${PFILES} \
17804 platforms/gentoo/Makefile \
17805 platforms/gentoo/bacula-fd \
17806 platforms/gentoo/bacula-sd \
17807 platforms/gentoo/bacula-dir"
17808 hostname=`hostname -s`
17812 DISTVER=`cat /etc/slackware-version`
17813 TAPEDRIVE="/dev/nst0"
17814 PSCMD="ps -e -o pid,command"
17815 hostname=`hostname -s`
17819 TAPEDRIVE="/dev/rmt/0cbn"
17820 PSCMD="ps -e -o pid,comm"
17821 PFILES="${PFILES} \
17822 platforms/solaris/Makefile \
17823 platforms/solaris/bacula-fd \
17824 platforms/solaris/bacula-sd \
17825 platforms/solaris/bacula-dir"
17826 if test x$DISTVER = x5.6 ; then
17827 cat >>confdefs.h <<\_ACEOF
17828 #define HAVE_OLD_SOCKOPT 1
17834 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
17836 TAPEDRIVE="/dev/nst0"
17837 PSCMD="ps -e -o pid,command"
17838 hostname=`hostname -s`
17839 PFILES="${PFILES} \
17840 platforms/suse/Makefile \
17841 platforms/suse/bacula-fd \
17842 platforms/suse/bacula-sd \
17843 platforms/suse/bacula-dir"
17848 TAPEDRIVE="/dev/nst0"
17849 PSCMD="ps -e -o pid,command"
17850 hostname=`hostname -s`
17851 PFILES="${PFILES} \
17852 platforms/suse/Makefile \
17853 platforms/suse/bacula-fd \
17854 platforms/suse/bacula-sd \
17855 platforms/suse/bacula-dir"
17859 TAPEDRIVE="/dev/nst0"
17862 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
17868 LIBS="$PTHREAD_LIB $LIBS"
17870 cat >>confdefs.h <<_ACEOF
17874 cat >>confdefs.h <<_ACEOF
17884 MCOMMON=./autoconf/Make.common
17887 if test "x${subsysdir}" = "x${sbindir}" ; then
17890 echo "You have set both --sbindir and --with-subsys-dir"
17891 echo " equal to: ${subsysdir} "
17892 echo "This is not permitted. Please reconfigure."
17894 echo "Aborting configuration ..."
17900 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/fd scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/mtx-changer doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/tconsole/Makefile src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/make_postgresql_tables src/cats/drop_postgresql_tables src/cats/create_postgresql_database src/cats/grant_postgresql_privileges src/cats/make_mysql_tables src/cats/drop_mysql_tables src/cats/update_mysql_tables src/cats/create_mysql_database src/cats/grant_mysql_privileges src/cats/make_sqlite_tables src/cats/drop_sqlite_tables src/cats/update_sqlite_tables src/cats/create_sqlite_database src/cats/grant_sqlite_privileges src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/make_bdb_tables src/cats/drop_bdb_tables src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/findlib/Makefile src/tools/Makefile $PFILES"
17901 ac_config_commands="$ac_config_commands default"
17902 cat >confcache <<\_ACEOF
17903 # This file is a shell script that caches the results of configure
17904 # tests run on this system so they can be shared between configure
17905 # scripts and configure runs, see configure's option --config-cache.
17906 # It is not useful on other systems. If it contains results you don't
17907 # want to keep, you may remove or edit it.
17909 # config.status only pays attention to the cache file if you give it
17910 # the --recheck option to rerun configure.
17912 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17913 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17914 # following values.
17918 # The following way of writing the cache mishandles newlines in values,
17919 # but we know of no workaround that is simple, portable, and efficient.
17920 # So, don't put newlines in cache variables' values.
17921 # Ultrix sh set writes to stderr and can't be redirected directly,
17922 # and sets the high bit in the cache file unless we assign to the vars.
17925 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17927 # `set' does not quote correctly, so add quotes (double-quote
17928 # substitution turns \\\\ into \\, and sed turns \\ into \).
17931 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17934 # `set' quotes correctly as required by POSIX, so do not add quotes.
17936 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
17943 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17945 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17947 if diff $cache_file confcache >/dev/null 2>&1; then :; else
17948 if test -w $cache_file; then
17949 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
17950 cat confcache >$cache_file
17952 echo "not updating unwritable cache $cache_file"
17957 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17958 # Let make expand exec_prefix.
17959 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17961 # VPATH may cause trouble with some makes, so we remove $(srcdir),
17962 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
17963 # trailing colons and then remove the whole line if VPATH becomes empty
17964 # (actually we leave an empty line to preserve line numbers).
17965 if test "x$srcdir" = x.; then
17966 ac_vpsub='/^[ ]*VPATH[ ]*=/{
17967 s/:*\$(srcdir):*/:/;
17968 s/:*\${srcdir}:*/:/;
17970 s/^\([^=]*=[ ]*\):*/\1/;
17976 DEFS=-DHAVE_CONFIG_H
17980 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17981 # 1. Remove the extension, and $U if already installed.
17982 ac_i=`echo "$ac_i" |
17983 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
17985 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
17986 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
17988 LIBOBJS=$ac_libobjs
17990 LTLIBOBJS=$ac_ltlibobjs
17994 : ${CONFIG_STATUS=./config.status}
17995 ac_clean_files_save=$ac_clean_files
17996 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17997 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17998 echo "$as_me: creating $CONFIG_STATUS" >&6;}
17999 cat >$CONFIG_STATUS <<_ACEOF
18001 # Generated by $as_me.
18002 # Run this file to recreate the current configuration.
18003 # Compiler output produced by configure, useful for debugging
18004 # configure, is in config.log if it exists.
18007 ac_cs_recheck=false
18009 SHELL=\${CONFIG_SHELL-$SHELL}
18012 cat >>$CONFIG_STATUS <<\_ACEOF
18013 ## --------------------- ##
18014 ## M4sh Initialization. ##
18015 ## --------------------- ##
18017 # Be Bourne compatible
18018 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18021 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18022 # is contrary to our usage. Disable this feature.
18023 alias -g '${1+"$@"}'='"$@"'
18024 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
18028 # Support unset when possible.
18029 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
18036 # Work around bugs in pre-3.0 UWIN ksh.
18037 $as_unset ENV MAIL MAILPATH
18044 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18045 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18046 LC_TELEPHONE LC_TIME
18048 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
18049 eval $as_var=C; export $as_var
18055 # Required to use basename.
18056 if expr a : '\(a\)' >/dev/null 2>&1; then
18062 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
18063 as_basename=basename
18069 # Name of the executable.
18070 as_me=`$as_basename "$0" ||
18071 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18072 X"$0" : 'X\(//\)$' \| \
18073 X"$0" : 'X\(/\)$' \| \
18074 . : '\(.\)' 2>/dev/null ||
18076 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
18077 /^X\/\(\/\/\)$/{ s//\1/; q; }
18078 /^X\/\(\/\).*/{ s//\1/; q; }
18082 # PATH needs CR, and LINENO needs CR and PATH.
18083 # Avoid depending upon Character Ranges.
18084 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18085 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18086 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18087 as_cr_digits='0123456789'
18088 as_cr_alnum=$as_cr_Letters$as_cr_digits
18090 # The user is always right.
18091 if test "${PATH_SEPARATOR+set}" != set; then
18092 echo "#! /bin/sh" >conf$$.sh
18093 echo "exit 0" >>conf$$.sh
18095 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18104 as_lineno_1=$LINENO
18105 as_lineno_2=$LINENO
18106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18107 test "x$as_lineno_1" != "x$as_lineno_2" &&
18108 test "x$as_lineno_3" = "x$as_lineno_2" || {
18109 # Find who we are. Look in the path if we contain no path at all
18112 *[\\/]* ) as_myself=$0 ;;
18113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18114 for as_dir in $PATH
18117 test -z "$as_dir" && as_dir=.
18118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18123 # We did not find ourselves, most probably we were run as `sh COMMAND'
18124 # in which case we are not to be found in the path.
18125 if test "x$as_myself" = x; then
18128 if test ! -f "$as_myself"; then
18129 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
18130 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
18131 { (exit 1); exit 1; }; }
18133 case $CONFIG_SHELL in
18135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18136 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
18139 test -z "$as_dir" && as_dir=.
18140 for as_base in sh bash ksh sh5; do
18143 if ("$as_dir/$as_base" -c '
18144 as_lineno_1=$LINENO
18145 as_lineno_2=$LINENO
18146 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
18147 test "x$as_lineno_1" != "x$as_lineno_2" &&
18148 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
18149 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
18150 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
18151 CONFIG_SHELL=$as_dir/$as_base
18152 export CONFIG_SHELL
18153 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
18161 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18162 # uniformly replaced by the line number. The first 'sed' inserts a
18163 # line-number line before each line; the second 'sed' does the real
18164 # work. The second script uses 'N' to pair each line-number line
18165 # with the numbered line, and appends trailing '-' during
18166 # substitution so that $LINENO is not a special case at line end.
18167 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18168 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
18169 sed '=' <$as_myself |
18174 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
18177 s,^['$as_cr_digits']*\n,,
18178 ' >$as_me.lineno &&
18179 chmod +x $as_me.lineno ||
18180 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
18181 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
18182 { (exit 1); exit 1; }; }
18184 # Don't try to exec as it changes $[0], causing all sort of problems
18185 # (the dirname of $[0] is not the place where we might find the
18186 # original and so on. Autoconf is especially sensible to this).
18188 # Exit status is that of the last command.
18193 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
18194 *c*,-n*) ECHO_N= ECHO_C='
18196 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
18197 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
18200 if expr a : '\(a\)' >/dev/null 2>&1; then
18206 rm -f conf$$ conf$$.exe conf$$.file
18208 if ln -s conf$$.file conf$$ 2>/dev/null; then
18209 # We could just check for DJGPP; but this test a) works b) is more generic
18210 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
18211 if test -f conf$$.exe; then
18212 # Don't use ln at all; we don't have any links
18217 elif ln conf$$.file conf$$ 2>/dev/null; then
18222 rm -f conf$$ conf$$.exe conf$$.file
18224 if mkdir -p . 2>/dev/null; then
18230 as_executable_p="test -f"
18232 # Sed expression to map a string onto a valid CPP name.
18233 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
18235 # Sed expression to map a string onto a valid variable name.
18236 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
18240 # We need space, tab and new line, in precisely that order.
18250 # Open the log real soon, to keep \$[0] and so on meaningful, and to
18251 # report actual input values of CONFIG_FILES etc. instead of their
18252 # values after options handling. Logging --version etc. is OK.
18256 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18257 ## Running $as_me. ##
18262 This file was extended by $as_me, which was
18263 generated by GNU Autoconf 2.57. Invocation command line was
18265 CONFIG_FILES = $CONFIG_FILES
18266 CONFIG_HEADERS = $CONFIG_HEADERS
18267 CONFIG_LINKS = $CONFIG_LINKS
18268 CONFIG_COMMANDS = $CONFIG_COMMANDS
18272 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
18276 # Files that config.status was made for.
18277 if test -n "$ac_config_files"; then
18278 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
18281 if test -n "$ac_config_headers"; then
18282 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
18285 if test -n "$ac_config_links"; then
18286 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
18289 if test -n "$ac_config_commands"; then
18290 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
18293 cat >>$CONFIG_STATUS <<\_ACEOF
18296 \`$as_me' instantiates files from templates according to the
18297 current configuration.
18299 Usage: $0 [OPTIONS] [FILE]...
18301 -h, --help print this help, then exit
18302 -V, --version print version number, then exit
18303 -q, --quiet do not print progress messages
18304 -d, --debug don't remove temporary files
18305 --recheck update $as_me by reconfiguring in the same conditions
18306 --file=FILE[:TEMPLATE]
18307 instantiate the configuration file FILE
18308 --header=FILE[:TEMPLATE]
18309 instantiate the configuration header FILE
18311 Configuration files:
18314 Configuration headers:
18317 Configuration commands:
18320 Report bugs to <bug-autoconf@gnu.org>."
18323 cat >>$CONFIG_STATUS <<_ACEOF
18326 configured by $0, generated by GNU Autoconf 2.57,
18327 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
18329 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
18330 Free Software Foundation, Inc.
18331 This config.status script is free software; the Free Software Foundation
18332 gives unlimited permission to copy, distribute and modify it."
18337 cat >>$CONFIG_STATUS <<\_ACEOF
18338 # If no file are specified by the user, then we need to provide default
18339 # value. By we need to know if files were specified by the user.
18345 ac_option=`expr "x$1" : 'x\([^=]*\)='`
18346 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
18354 *) # This is not an option, so the user has probably given explicit
18357 ac_need_defaults=false;;
18361 # Handling of the options.
18363 cat >>$CONFIG_STATUS <<\_ACEOF
18364 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18366 --version | --vers* | -V )
18367 echo "$ac_cs_version"; exit 0 ;;
18369 # Conflict between --help and --header
18370 { { echo "$as_me:$LINENO: error: ambiguous option: $1
18371 Try \`$0 --help' for more information." >&5
18372 echo "$as_me: error: ambiguous option: $1
18373 Try \`$0 --help' for more information." >&2;}
18374 { (exit 1); exit 1; }; };;
18375 --help | --hel | -h )
18376 echo "$ac_cs_usage"; exit 0 ;;
18377 --debug | --d* | -d )
18379 --file | --fil | --fi | --f )
18381 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18382 ac_need_defaults=false;;
18383 --header | --heade | --head | --hea )
18385 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18386 ac_need_defaults=false;;
18387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18388 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18391 # This is an error.
18392 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
18393 Try \`$0 --help' for more information." >&5
18394 echo "$as_me: error: unrecognized option: $1
18395 Try \`$0 --help' for more information." >&2;}
18396 { (exit 1); exit 1; }; } ;;
18398 *) ac_config_targets="$ac_config_targets $1" ;;
18404 ac_configure_extra_args=
18406 if $ac_cs_silent; then
18408 ac_configure_extra_args="$ac_configure_extra_args --silent"
18412 cat >>$CONFIG_STATUS <<_ACEOF
18413 if \$ac_cs_recheck; then
18414 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18415 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18424 cat >>$CONFIG_STATUS <<\_ACEOF
18425 for ac_config_target in $ac_config_targets
18427 case "$ac_config_target" in
18428 # Handling of arguments.
18429 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
18430 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18431 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
18432 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
18433 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
18434 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
18435 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
18436 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
18437 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
18438 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
18439 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
18440 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
18441 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
18442 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
18443 "scripts/fd" ) CONFIG_FILES="$CONFIG_FILES scripts/fd" ;;
18444 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
18445 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
18446 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
18447 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
18448 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
18449 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18450 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18451 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
18452 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
18453 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
18454 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
18455 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
18456 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
18457 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
18458 "src/tconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tconsole/Makefile" ;;
18459 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
18460 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
18461 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
18462 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
18463 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
18464 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
18465 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
18466 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
18467 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
18468 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
18469 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
18470 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
18471 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
18472 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
18473 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
18474 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
18475 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
18476 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
18477 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
18478 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
18479 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
18480 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
18481 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
18482 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
18483 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
18484 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
18485 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
18486 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
18487 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
18488 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
18489 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
18490 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
18491 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
18492 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
18493 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
18494 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
18495 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
18496 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
18497 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18498 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18499 { (exit 1); exit 1; }; };;
18503 # If the user did not use the arguments to specify the items to instantiate,
18504 # then the envvar interface is used. Set only those that are not.
18505 # We use the long form for the default assignment because of an extremely
18506 # bizarre bug on SunOS 4.1.3.
18507 if $ac_need_defaults; then
18508 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18509 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18510 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18513 # Have a temporary directory for convenience. Make it in the build tree
18514 # simply because there is no reason to put it here, and in addition,
18515 # creating and moving files from /tmp can sometimes cause problems.
18516 # Create a temporary directory, and hook for its removal unless debugging.
18519 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
18520 trap '{ (exit 1); exit 1; }' 1 2 13 15
18523 # Create a (secure) tmp directory for tmp files.
18526 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
18527 test -n "$tmp" && test -d "$tmp"
18530 tmp=./confstat$$-$RANDOM
18531 (umask 077 && mkdir $tmp)
18534 echo "$me: cannot create a temporary directory in ." >&2
18535 { (exit 1); exit 1; }
18540 cat >>$CONFIG_STATUS <<_ACEOF
18543 # CONFIG_FILES section.
18546 # No need to generate the scripts if there are no CONFIG_FILES.
18547 # This happens for instance when ./config.status config.h
18548 if test -n "\$CONFIG_FILES"; then
18549 # Protect against being on the right side of a sed subst in config.status.
18550 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
18551 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
18552 s,@SHELL@,$SHELL,;t t
18553 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
18554 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
18555 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
18556 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
18557 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
18558 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
18559 s,@exec_prefix@,$exec_prefix,;t t
18560 s,@prefix@,$prefix,;t t
18561 s,@program_transform_name@,$program_transform_name,;t t
18562 s,@bindir@,$bindir,;t t
18563 s,@sbindir@,$sbindir,;t t
18564 s,@libexecdir@,$libexecdir,;t t
18565 s,@datadir@,$datadir,;t t
18566 s,@sysconfdir@,$sysconfdir,;t t
18567 s,@sharedstatedir@,$sharedstatedir,;t t
18568 s,@localstatedir@,$localstatedir,;t t
18569 s,@libdir@,$libdir,;t t
18570 s,@includedir@,$includedir,;t t
18571 s,@oldincludedir@,$oldincludedir,;t t
18572 s,@infodir@,$infodir,;t t
18573 s,@mandir@,$mandir,;t t
18574 s,@build_alias@,$build_alias,;t t
18575 s,@host_alias@,$host_alias,;t t
18576 s,@target_alias@,$target_alias,;t t
18577 s,@DEFS@,$DEFS,;t t
18578 s,@ECHO_C@,$ECHO_C,;t t
18579 s,@ECHO_N@,$ECHO_N,;t t
18580 s,@ECHO_T@,$ECHO_T,;t t
18581 s,@LIBS@,$LIBS,;t t
18582 s,@BUILD_DIR@,$BUILD_DIR,;t t
18583 s,@TRUEPRG@,$TRUEPRG,;t t
18584 s,@FALSEPRG@,$FALSEPRG,;t t
18585 s,@build@,$build,;t t
18586 s,@build_cpu@,$build_cpu,;t t
18587 s,@build_vendor@,$build_vendor,;t t
18588 s,@build_os@,$build_os,;t t
18589 s,@host@,$host,;t t
18590 s,@host_cpu@,$host_cpu,;t t
18591 s,@host_vendor@,$host_vendor,;t t
18592 s,@host_os@,$host_os,;t t
18593 s,@VERSION@,$VERSION,;t t
18594 s,@DATE@,$DATE,;t t
18595 s,@LSMDATE@,$LSMDATE,;t t
18597 s,@CFLAGS@,$CFLAGS,;t t
18598 s,@LDFLAGS@,$LDFLAGS,;t t
18599 s,@CPPFLAGS@,$CPPFLAGS,;t t
18600 s,@ac_ct_CC@,$ac_ct_CC,;t t
18601 s,@EXEEXT@,$EXEEXT,;t t
18602 s,@OBJEXT@,$OBJEXT,;t t
18604 s,@CXXFLAGS@,$CXXFLAGS,;t t
18605 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
18607 s,@EGREP@,$EGREP,;t t
18608 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
18609 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
18610 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
18611 s,@RANLIB@,$RANLIB,;t t
18612 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
18618 s,@ECHO@,$ECHO,;t t
18622 s,@OPENSSL@,$OPENSSL,;t t
18624 s,@PKGCONFIG@,$PKGCONFIG,;t t
18625 s,@ARFLAGS@,$ARFLAGS,;t t
18626 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
18627 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
18628 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
18629 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
18630 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
18631 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
18632 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
18633 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
18634 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
18635 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
18636 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
18637 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
18638 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
18639 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
18640 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
18641 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
18642 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
18643 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
18644 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
18645 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
18646 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
18647 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
18648 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
18649 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
18650 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
18651 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
18652 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
18653 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
18654 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
18655 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
18656 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
18657 s,@MSGFMT@,$MSGFMT,;t t
18658 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
18659 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
18660 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
18661 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
18662 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
18663 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
18664 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
18665 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
18666 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
18667 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
18668 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
18669 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
18670 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
18671 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
18672 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
18673 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
18674 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
18675 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
18676 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
18677 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
18678 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
18679 s,@GNOME_DIR@,$GNOME_DIR,;t t
18680 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
18681 s,@STATIC_FD@,$STATIC_FD,;t t
18682 s,@STATIC_SD@,$STATIC_SD,;t t
18683 s,@STATIC_DIR@,$STATIC_DIR,;t t
18684 s,@STATIC_CONS@,$STATIC_CONS,;t t
18685 s,@ALL_DIRS@,$ALL_DIRS,;t t
18686 s,@CONS_INC@,$CONS_INC,;t t
18687 s,@CONS_OBJ@,$CONS_OBJ,;t t
18688 s,@CONS_SRC@,$CONS_SRC,;t t
18689 s,@CONS_LIBS@,$CONS_LIBS,;t t
18690 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
18691 s,@READLINE_SRC@,$READLINE_SRC,;t t
18692 s,@working_dir@,$working_dir,;t t
18693 s,@scriptdir@,$scriptdir,;t t
18694 s,@dump_email@,$dump_email,;t t
18695 s,@job_email@,$job_email,;t t
18696 s,@smtp_host@,$smtp_host,;t t
18697 s,@piddir@,$piddir,;t t
18698 s,@subsysdir@,$subsysdir,;t t
18699 s,@baseport@,$baseport,;t t
18700 s,@dir_port@,$dir_port,;t t
18701 s,@fd_port@,$fd_port,;t t
18702 s,@sd_port@,$sd_port,;t t
18703 s,@dir_password@,$dir_password,;t t
18704 s,@fd_password@,$fd_password,;t t
18705 s,@sd_password@,$sd_password,;t t
18706 s,@dir_user@,$dir_user,;t t
18707 s,@dir_group@,$dir_group,;t t
18708 s,@sd_user@,$sd_user,;t t
18709 s,@sd_group@,$sd_group,;t t
18710 s,@fd_user@,$fd_user,;t t
18711 s,@fd_group@,$fd_group,;t t
18712 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
18713 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
18714 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
18715 s,@cats@,$cats,;t t
18716 s,@DB_NAME@,$DB_NAME,;t t
18717 s,@GETCONF@,$GETCONF,;t t
18718 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
18719 s,@X_CFLAGS@,$X_CFLAGS,;t t
18720 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
18721 s,@X_LIBS@,$X_LIBS,;t t
18722 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
18723 s,@LIBOBJS@,$LIBOBJS,;t t
18724 s,@ALLOCA@,$ALLOCA,;t t
18725 s,@FDLIBS@,$FDLIBS,;t t
18726 s,@DEBUG@,$DEBUG,;t t
18727 s,@DINCLUDE@,$DINCLUDE,;t t
18728 s,@DLIB@,$DLIB,;t t
18729 s,@DB_LIBS@,$DB_LIBS,;t t
18730 s,@WCFLAGS@,$WCFLAGS,;t t
18731 s,@WLDFLAGS@,$WLDFLAGS,;t t
18732 s,@OBJLIST@,$OBJLIST,;t t
18733 s,@hostname@,$hostname,;t t
18734 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
18735 s,@PSCMD@,$PSCMD,;t t
18736 s,@WIN32@,$WIN32,;t t
18737 s,@DISTNAME@,$DISTNAME,;t t
18738 s,@DISTVER@,$DISTVER,;t t
18739 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
18740 /@MCOMMON@/r $MCOMMON
18746 cat >>$CONFIG_STATUS <<\_ACEOF
18747 # Split the substitutions into bite-sized pieces for seds with
18748 # small command number limits, like on Digital OSF/1 and HP-UX.
18749 ac_max_sed_lines=48
18750 ac_sed_frag=1 # Number of current file.
18751 ac_beg=1 # First line for current file.
18752 ac_end=$ac_max_sed_lines # Line after last line for current file.
18755 while $ac_more_lines; do
18756 if test $ac_beg -gt 1; then
18757 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18759 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
18761 if test ! -s $tmp/subs.frag; then
18762 ac_more_lines=false
18764 # The purpose of the label and of the branching condition is to
18765 # speed up the sed processing (if there are no `@' at all, there
18766 # is no need to browse any of the substitutions).
18767 # These are the two extra sed commands mentioned above.
18769 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
18770 if test -z "$ac_sed_cmds"; then
18771 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
18773 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
18775 ac_sed_frag=`expr $ac_sed_frag + 1`
18777 ac_end=`expr $ac_end + $ac_max_sed_lines`
18780 if test -z "$ac_sed_cmds"; then
18783 fi # test -n "$CONFIG_FILES"
18786 cat >>$CONFIG_STATUS <<\_ACEOF
18787 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
18788 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18790 - | *:- | *:-:* ) # input from stdin
18792 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18793 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18794 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18795 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18796 * ) ac_file_in=$ac_file.in ;;
18799 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
18800 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
18801 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18802 X"$ac_file" : 'X\(//\)[^/]' \| \
18803 X"$ac_file" : 'X\(//\)$' \| \
18804 X"$ac_file" : 'X\(/\)' \| \
18805 . : '\(.\)' 2>/dev/null ||
18807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18808 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18809 /^X\(\/\/\)$/{ s//\1/; q; }
18810 /^X\(\/\).*/{ s//\1/; q; }
18812 { if $as_mkdir_p; then
18817 while test ! -d "$as_dir"; do
18818 as_dirs="$as_dir $as_dirs"
18819 as_dir=`(dirname "$as_dir") 2>/dev/null ||
18820 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18821 X"$as_dir" : 'X\(//\)[^/]' \| \
18822 X"$as_dir" : 'X\(//\)$' \| \
18823 X"$as_dir" : 'X\(/\)' \| \
18824 . : '\(.\)' 2>/dev/null ||
18826 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
18827 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
18828 /^X\(\/\/\)$/{ s//\1/; q; }
18829 /^X\(\/\).*/{ s//\1/; q; }
18832 test ! -n "$as_dirs" || mkdir $as_dirs
18833 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
18834 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
18835 { (exit 1); exit 1; }; }; }
18839 if test "$ac_dir" != .; then
18840 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
18841 # A "../" for each directory in $ac_dir_suffix.
18842 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
18844 ac_dir_suffix= ac_top_builddir=
18848 .) # No --srcdir option. We are building in place.
18850 if test -z "$ac_top_builddir"; then
18853 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
18855 [\\/]* | ?:[\\/]* ) # Absolute path.
18856 ac_srcdir=$srcdir$ac_dir_suffix;
18857 ac_top_srcdir=$srcdir ;;
18858 *) # Relative path.
18859 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
18860 ac_top_srcdir=$ac_top_builddir$srcdir ;;
18862 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
18864 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
18865 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
18866 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
18867 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
18871 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18872 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
18875 if test x"$ac_file" != x-; then
18876 { echo "$as_me:$LINENO: creating $ac_file" >&5
18877 echo "$as_me: creating $ac_file" >&6;}
18880 # Let's still pretend it is `configure' which instantiates (i.e., don't
18881 # use $as_me), people would be surprised to read:
18882 # /* config.h. Generated by config.status. */
18883 if test x"$ac_file" = x-; then
18886 configure_input="$ac_file. "
18888 configure_input=$configure_input"Generated from `echo $ac_file_in |
18889 sed 's,.*/,,'` by configure."
18891 # First look for the input files in the build tree, otherwise in the
18893 ac_file_inputs=`IFS=:
18894 for f in $ac_file_in; do
18896 -) echo $tmp/stdin ;;
18898 # Absolute (can't be DOS-style, as IFS=:)
18899 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18900 echo "$as_me: error: cannot find input file: $f" >&2;}
18901 { (exit 1); exit 1; }; }
18904 if test -f "$f"; then
18907 elif test -f "$srcdir/$f"; then
18912 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18913 echo "$as_me: error: cannot find input file: $f" >&2;}
18914 { (exit 1); exit 1; }; }
18917 done` || { (exit 1); exit 1; }
18919 cat >>$CONFIG_STATUS <<_ACEOF
18923 cat >>$CONFIG_STATUS <<\_ACEOF
18925 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18926 s,@configure_input@,$configure_input,;t t
18927 s,@srcdir@,$ac_srcdir,;t t
18928 s,@abs_srcdir@,$ac_abs_srcdir,;t t
18929 s,@top_srcdir@,$ac_top_srcdir,;t t
18930 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
18931 s,@builddir@,$ac_builddir,;t t
18932 s,@abs_builddir@,$ac_abs_builddir,;t t
18933 s,@top_builddir@,$ac_top_builddir,;t t
18934 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
18935 s,@INSTALL@,$ac_INSTALL,;t t
18936 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
18938 if test x"$ac_file" != x-; then
18939 mv $tmp/out $ac_file
18947 cat >>$CONFIG_STATUS <<\_ACEOF
18950 # CONFIG_HEADER section.
18953 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18954 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18956 # ac_d sets the value in "#define NAME VALUE" lines.
18957 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18958 ac_dB='[ ].*$,\1#\2'
18961 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18962 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18963 ac_uB='$,\1#\2define\3'
18967 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
18968 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18970 - | *:- | *:-:* ) # input from stdin
18972 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18973 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18974 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
18975 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
18976 * ) ac_file_in=$ac_file.in ;;
18979 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
18980 echo "$as_me: creating $ac_file" >&6;}
18982 # First look for the input files in the build tree, otherwise in the
18984 ac_file_inputs=`IFS=:
18985 for f in $ac_file_in; do
18987 -) echo $tmp/stdin ;;
18989 # Absolute (can't be DOS-style, as IFS=:)
18990 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
18991 echo "$as_me: error: cannot find input file: $f" >&2;}
18992 { (exit 1); exit 1; }; }
18995 if test -f "$f"; then
18998 elif test -f "$srcdir/$f"; then
19003 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
19004 echo "$as_me: error: cannot find input file: $f" >&2;}
19005 { (exit 1); exit 1; }; }
19008 done` || { (exit 1); exit 1; }
19009 # Remove the trailing spaces.
19010 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
19014 # Transform confdefs.h into two sed scripts, `conftest.defines' and
19015 # `conftest.undefs', that substitutes the proper values into
19016 # config.h.in to produce config.h. The first handles `#define'
19017 # templates, and the second `#undef' templates.
19018 # And first: Protect against being on the right side of a sed subst in
19019 # config.status. Protect against being in an unquoted here document
19020 # in config.status.
19021 rm -f conftest.defines conftest.undefs
19022 # Using a here document instead of a string reduces the quoting nightmare.
19023 # Putting comments in sed scripts is not portable.
19025 # `end' is used to avoid that the second main sed command (meant for
19026 # 0-ary CPP macros) applies to n-ary macro definitions.
19027 # See the Autoconf documentation for `clear'.
19028 cat >confdef2sed.sed <<\_ACEOF
19033 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
19035 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
19038 # If some macros were called several times there might be several times
19039 # the same #defines, which is useless. Nevertheless, we may not want to
19040 # sort them, since we want the *last* AC-DEFINE to be honored.
19041 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
19042 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
19043 rm -f confdef2sed.sed
19045 # This sed command replaces #undef with comments. This is necessary, for
19046 # example, in the case of _POSIX_SOURCE, which is predefined and required
19047 # on some systems where configure will not decide to define it.
19048 cat >>conftest.undefs <<\_ACEOF
19049 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
19052 # Break up conftest.defines because some shells have a limit on the size
19053 # of here documents, and old seds have small limits too (100 cmds).
19054 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
19055 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
19056 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
19057 echo ' :' >>$CONFIG_STATUS
19058 rm -f conftest.tail
19059 while grep . conftest.defines >/dev/null
19061 # Write a limited-size here document to $tmp/defines.sed.
19062 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
19063 # Speed up: don't consider the non `#define' lines.
19064 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
19065 # Work around the forget-to-reset-the-flag bug.
19066 echo 't clr' >>$CONFIG_STATUS
19067 echo ': clr' >>$CONFIG_STATUS
19068 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
19070 sed -f $tmp/defines.sed $tmp/in >$tmp/out
19072 mv $tmp/out $tmp/in
19074 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
19075 rm -f conftest.defines
19076 mv conftest.tail conftest.defines
19078 rm -f conftest.defines
19079 echo ' fi # grep' >>$CONFIG_STATUS
19080 echo >>$CONFIG_STATUS
19082 # Break up conftest.undefs because some shells have a limit on the size
19083 # of here documents, and old seds have small limits too (100 cmds).
19084 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
19085 rm -f conftest.tail
19086 while grep . conftest.undefs >/dev/null
19088 # Write a limited-size here document to $tmp/undefs.sed.
19089 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
19090 # Speed up: don't consider the non `#undef'
19091 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
19092 # Work around the forget-to-reset-the-flag bug.
19093 echo 't clr' >>$CONFIG_STATUS
19094 echo ': clr' >>$CONFIG_STATUS
19095 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
19097 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
19099 mv $tmp/out $tmp/in
19101 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
19102 rm -f conftest.undefs
19103 mv conftest.tail conftest.undefs
19105 rm -f conftest.undefs
19107 cat >>$CONFIG_STATUS <<\_ACEOF
19108 # Let's still pretend it is `configure' which instantiates (i.e., don't
19109 # use $as_me), people would be surprised to read:
19110 # /* config.h. Generated by config.status. */
19111 if test x"$ac_file" = x-; then
19112 echo "/* Generated by configure. */" >$tmp/config.h
19114 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
19116 cat $tmp/in >>$tmp/config.h
19118 if test x"$ac_file" != x-; then
19119 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
19120 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19121 echo "$as_me: $ac_file is unchanged" >&6;}
19123 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19124 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19125 X"$ac_file" : 'X\(//\)[^/]' \| \
19126 X"$ac_file" : 'X\(//\)$' \| \
19127 X"$ac_file" : 'X\(/\)' \| \
19128 . : '\(.\)' 2>/dev/null ||
19130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19131 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19132 /^X\(\/\/\)$/{ s//\1/; q; }
19133 /^X\(\/\).*/{ s//\1/; q; }
19135 { if $as_mkdir_p; then
19140 while test ! -d "$as_dir"; do
19141 as_dirs="$as_dir $as_dirs"
19142 as_dir=`(dirname "$as_dir") 2>/dev/null ||
19143 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19144 X"$as_dir" : 'X\(//\)[^/]' \| \
19145 X"$as_dir" : 'X\(//\)$' \| \
19146 X"$as_dir" : 'X\(/\)' \| \
19147 . : '\(.\)' 2>/dev/null ||
19149 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19150 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19151 /^X\(\/\/\)$/{ s//\1/; q; }
19152 /^X\(\/\).*/{ s//\1/; q; }
19155 test ! -n "$as_dirs" || mkdir $as_dirs
19156 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19157 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19158 { (exit 1); exit 1; }; }; }
19161 mv $tmp/config.h $ac_file
19165 rm -f $tmp/config.h
19169 cat >>$CONFIG_STATUS <<\_ACEOF
19172 # CONFIG_COMMANDS section.
19174 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
19175 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
19176 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
19177 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
19178 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19179 X"$ac_dest" : 'X\(//\)[^/]' \| \
19180 X"$ac_dest" : 'X\(//\)$' \| \
19181 X"$ac_dest" : 'X\(/\)' \| \
19182 . : '\(.\)' 2>/dev/null ||
19184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19185 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19186 /^X\(\/\/\)$/{ s//\1/; q; }
19187 /^X\(\/\).*/{ s//\1/; q; }
19191 if test "$ac_dir" != .; then
19192 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19193 # A "../" for each directory in $ac_dir_suffix.
19194 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
19196 ac_dir_suffix= ac_top_builddir=
19200 .) # No --srcdir option. We are building in place.
19202 if test -z "$ac_top_builddir"; then
19205 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
19207 [\\/]* | ?:[\\/]* ) # Absolute path.
19208 ac_srcdir=$srcdir$ac_dir_suffix;
19209 ac_top_srcdir=$srcdir ;;
19210 *) # Relative path.
19211 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
19212 ac_top_srcdir=$ac_top_builddir$srcdir ;;
19214 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
19216 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
19217 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
19218 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
19219 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
19222 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
19223 echo "$as_me: executing $ac_dest commands" >&6;}
19225 default ) (echo "Doing make of dependencies"; make depend;)
19231 cat >>$CONFIG_STATUS <<\_ACEOF
19233 { (exit 0); exit 0; }
19235 chmod +x $CONFIG_STATUS
19236 ac_clean_files=$ac_clean_files_save
19239 # configure is writing to config.log, and then calls config.status.
19240 # config.status does its own redirection, appending to config.log.
19241 # Unfortunately, on DOS this fails, as config.log is still kept open
19242 # by configure, so config.status won't be able to write to it; its
19243 # output is simply discarded. So we exec the FD to /dev/null,
19244 # effectively closing config.log, so it can be properly (re)opened and
19245 # appended to by config.status. When coming back to configure, we
19246 # need to make the FD available again.
19247 if test "$no_create" != yes; then
19249 ac_config_status_args=
19250 test "$silent" = yes &&
19251 ac_config_status_args="$ac_config_status_args --quiet"
19253 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19255 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19256 # would make configure fail if this is the last instruction.
19257 $ac_cs_success || { (exit 1); exit 1; }
19262 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
19263 chmod 755 bconsole gconsole mtx-changer
19265 chmod 755 src/cats/make_mysql_tables src/cats/drop_mysql_tables
19266 chmod 755 src/cats/make_postgresql_tables src/cats/drop_postgresql_tables
19267 chmod 755 src/cats/make_test_tables src/cats/drop_test_tables
19268 chmod 755 src/cats/create_postgresql_database
19269 chmod 755 src/cats/create_mysql_database
19270 chmod 755 src/cats/make_catalog_backup src/cats/delete_catalog_backup
19271 chmod 755 src/cats/grant_postgresql_privileges
19272 chmod 755 src/cats/grant_mysql_privileges
19273 chmod 755 src/cats/grant_sqlite_privileges
19274 chmod 755 src/cats/make_sqlite_tables src/cats/drop_sqlite_tables
19275 chmod 755 src/cats/update_sqlite_tables
19276 chmod 755 src/cats/make_bacula_tables src/cats/drop_bacula_tables
19277 chmod 755 src/cats/update_mysql_tables
19278 chmod 755 src/cats/update_bacula_tables src/cats/update_mysql_tables
19279 chmod 755 src/cats/create_sqlite_database
19280 chmod 755 src/cats/sqlite
19281 chmod 755 src/cats/make_bdb_tables src/cats/drop_bdb_tables
19282 chmod 755 src/cats/create_bdb_database
19284 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
19285 largefile_support="yes"
19289 # A whole lot of hand springs to get the compiler version.
19290 # This is because gcc changed the output in version 3.0
19292 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19293 if test "x${CCVERSION}" = "x" ; then
19294 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19296 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
19297 if test x"${CXXVERSION}" = x ; then
19298 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
19301 if test "x${subsysdir}" = "x${sbindir}" ; then
19304 echo "You have set --sbindir and --with-subsys-dir"
19305 echo " both equal to: ${subsysdir} "
19306 echo " This is not permitted. Please reconfigure."
19307 echo "Aborting configuration ..."
19314 Configuration on `date`:
19316 Host: $host -- ${DISTNAME} ${DISTVER}
19317 Bacula version: ${VERSION} (${DATE})
19318 Source code location: ${srcdir}
19319 Install binaries: ${sbindir}
19320 Install config files: ${sysconfdir}
19321 Scripts directory: ${scriptdir}
19322 Working directory: ${working_dir}
19323 PID directory: ${piddir}
19324 Subsys directory: ${subsysdir}
19325 C Compiler: ${CC} ${CCVERSION}
19326 C++ Compiler: ${CXX} ${CXXVERSION}
19327 Compiler flags: ${WCFLAGS} ${CFLAGS}
19328 Linker flags: ${WLDFLAGS} ${LDFLAGS}
19330 Statically Linked Tools: ${support_static_tools}
19331 Statically Linked FD: ${support_static_fd}
19332 Statically Linked SD: ${support_static_sd}
19333 Statically Linked DIR: ${support_static_dir}
19334 Statically Linked CONS: ${support_static_cons}
19335 Database type: ${db_name}
19336 Database lib: ${DB_LIBS}
19338 Job Output Email: ${job_email}
19339 Traceback Email: ${dump_email}
19340 SMTP Host Address: ${smtp_host}
19342 Director Port: ${dir_port}
19343 File daemon Port: ${fd_port}
19344 Storage daemon Port: ${sd_port}
19346 Director User: ${dir_user}
19347 Director Group: ${dir_group}
19348 Storage Daemon User: ${dir_user}
19349 Storage DaemonGroup: ${dir_group}
19350 File Daemon User: ${dir_user}
19351 File Daemon Group: ${dir_group}
19353 SQL binaries Directory ${SQL_BINDIR}
19355 Large file support: $largefile_support
19356 Bacula conio support: ${got_conio} ${CONS_LIBS}
19357 readline support: ${got_readline} ${PRTREADLINE_SRC}
19358 TCP Wrappers support: ${TCPW_MSG}
19359 ZLIB support: ${have_zlib}
19360 enable-smartalloc: ${support_smartalloc}
19361 enable-gnome: ${support_gnome} ${gnome_version}
19362 client-only: ${build_client_only}
19369 # cweb support: ${got_cweb} ${CWEB_SRC}
19370 # gmp support: ${got_gmp} ${GMP_SRC}