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 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 WXCONFIG CDRECORD ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR CDSTL working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM 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 MACOSX 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-wx-console enable build of wxWidgets console disabled
860 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
861 --enable-smartalloc enable smartalloc debugging support disabled
862 --enable-static-tools enable static tape tools disabled
863 --enable-static-fd enable static File daemon disabled
864 --enable-static-sd enable static Storage daemon disabled
865 --enable-static-dir enable static Director disabled
866 --enable-static-cons enable static Console disabled
867 --enable-client-only build client (File daemon) only disabled
868 --disable-conio disable conio support enabled
870 --disable-readline disable readline support disable
872 --disable-largefile omit support for large files
875 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
876 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
877 --with-gnome-includes Specify location of GNOME headers
878 --with-gnome-libs Specify location of GNOME libs
879 --with-gnome Specify prefix for GNOME files
880 --with-readline=DIR specify readline library directory
882 --with-python=DIR Include Python support. DIR is the Python base
883 install directory, default is to search through
884 a number of common places for the Python files.
885 --with-tcp-wrappers=DIR enable tcpwrappers support
886 --with-working-dir=PATH specify path of Bacula working directory
887 --with-scriptdir=PATH specify path of Bacula scripts directory
888 --with-dump-email=EMAIL dump email address
889 --with-job-email=EMAIL job output email address
890 --with-smtp-host=HOST SMTP mail host address
891 --with-pid-dir=PATH specify location of Bacula pid files
892 --with-subsys-dir=PATH specify location of Bacula subsys file
893 --with-baseport=PORT specify base port address for daemons
894 --with-dir-password=PASSWORD specify Director's password
895 --with-fd-password=PASSWORD specify Client's password
896 --with-sd-password=PASSWORD specify Storage daemon's password
897 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
898 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
899 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
900 --with-bimagemgr-cgidir=DIR specify bimagemgr cgi-bin dir
901 --with-bimagemgr-docdir=DIR specify bimagemgr doc root dir
902 --with-bimagemgr-binowner=USER specify bimagemgr binary file owner
903 --with-bimagemgr-bingroup=USER specify bimagemgr binary file group
904 --with-bimagemgr-dataowner=USER specify bimagemgr data file owner
905 --with-bimagemgr-datagroup=USER specify bimagemgr data file group
906 --with-dir-user=USER specify user for Director daemon
907 --with-dir-group=GROUP specify group for Director daemon
908 --with-sd-user=USER specify user for Storage daemon
909 --with-sd-group=GROUP specify group for Storage daemon
910 --with-fd-user=USER specify user for File daemon
911 --with-fd-group=GROUP specify group for File daemon
912 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
913 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
914 base install directory, defaults to /usr/local/pgsql
916 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
917 install directory, default is to search through
918 a number of common places for the MySQL files.
920 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
921 install directory, default is to search through
922 a number of common places for the MySQL files.
924 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
925 install directory, default is to search through
926 a number of common places for the SQLite files.
927 --with-x use the X Window System
929 Some influential environment variables:
930 CC C compiler command
931 CFLAGS C compiler flags
932 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
933 nonstandard directory <lib dir>
934 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
935 headers in a nonstandard directory <include dir>
936 CXX C++ compiler command
937 CXXFLAGS C++ compiler flags
940 Use these variables to override the choices made by `configure' or to help
941 it to find libraries and programs with nonstandard names/locations.
946 if test "$ac_init_help" = "recursive"; then
947 # If there are subdirs, report their specific --help.
949 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
950 test -d $ac_dir || continue
953 if test "$ac_dir" != .; then
954 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
955 # A "../" for each directory in $ac_dir_suffix.
956 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
958 ac_dir_suffix= ac_top_builddir=
962 .) # No --srcdir option. We are building in place.
964 if test -z "$ac_top_builddir"; then
967 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
969 [\\/]* | ?:[\\/]* ) # Absolute path.
970 ac_srcdir=$srcdir$ac_dir_suffix;
971 ac_top_srcdir=$srcdir ;;
973 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
974 ac_top_srcdir=$ac_top_builddir$srcdir ;;
976 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
978 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
979 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
980 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
981 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
984 # Check for guested configure; otherwise get Cygnus style configure.
985 if test -f $ac_srcdir/configure.gnu; then
987 $SHELL $ac_srcdir/configure.gnu --help=recursive
988 elif test -f $ac_srcdir/configure; then
990 $SHELL $ac_srcdir/configure --help=recursive
991 elif test -f $ac_srcdir/configure.ac ||
992 test -f $ac_srcdir/configure.in; then
996 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1002 test -n "$ac_init_help" && exit 0
1003 if $ac_init_version; then
1006 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1007 Free Software Foundation, Inc.
1008 This configure script is free software; the Free Software Foundation
1009 gives unlimited permission to copy, distribute and modify it.
1015 This file contains any messages produced by compilers while
1016 running configure, to aid debugging if configure makes a mistake.
1018 It was created by $as_me, which was
1019 generated by GNU Autoconf 2.57. Invocation command line was
1030 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1031 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1032 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1033 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1034 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1036 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1037 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1039 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1040 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1041 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1042 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1043 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1044 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1045 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1053 test -z "$as_dir" && as_dir=.
1054 echo "PATH: $as_dir"
1069 # Keep a trace of the command line.
1070 # Strip out --no-create and --no-recursion so they do not pile up.
1071 # Strip out --silent because we don't want to record it for future runs.
1072 # Also quote any args containing shell meta-characters.
1073 # Make two passes to allow for proper duplicate-argument suppression.
1078 ac_must_keep_next=false
1084 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1088 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1089 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1092 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1094 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1095 if test $ac_must_keep_next = true; then
1096 ac_must_keep_next=false # Got value, back to normal.
1099 *=* | --config-cache | -C | -disable-* | --disable-* \
1100 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1101 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1102 | -with-* | --with-* | -without-* | --without-* | --x)
1103 case "$ac_configure_args0 " in
1104 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1107 -* ) ac_must_keep_next=true ;;
1110 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1111 # Get rid of the leading space.
1117 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1118 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1120 # When interrupted or exit'd, cleanup temporary files, and complete
1121 # config.log. We remove comments because anyway the quotes in there
1122 # would cause problems or look ugly.
1123 # WARNING: Be sure not to use single quotes in there, as some shells,
1124 # such as our DU 5.0 friend, will then `close' the trap.
1125 trap 'exit_status=$?
1126 # Save into config.log some information that might help in debugging.
1131 ## ---------------- ##
1132 ## Cache variables. ##
1133 ## ---------------- ##
1136 # The following way of writing the cache mishandles newlines in values,
1139 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1142 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1143 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1147 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1154 ## ----------------- ##
1155 ## Output variables. ##
1156 ## ----------------- ##
1159 for ac_var in $ac_subst_vars
1161 eval ac_val=$`echo $ac_var`
1162 echo "$ac_var='"'"'$ac_val'"'"'"
1166 if test -n "$ac_subst_files"; then
1173 for ac_var in $ac_subst_files
1175 eval ac_val=$`echo $ac_var`
1176 echo "$ac_var='"'"'$ac_val'"'"'"
1181 if test -s confdefs.h; then
1188 sed "/^$/d" confdefs.h | sort
1191 test "$ac_signal" != 0 &&
1192 echo "$as_me: caught signal $ac_signal"
1193 echo "$as_me: exit $exit_status"
1195 rm -f core core.* *.core &&
1196 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1199 for ac_signal in 1 2 13 15; do
1200 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1204 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1205 rm -rf conftest* confdefs.h
1206 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1209 # Predefined preprocessor variables.
1211 cat >>confdefs.h <<_ACEOF
1212 #define PACKAGE_NAME "$PACKAGE_NAME"
1216 cat >>confdefs.h <<_ACEOF
1217 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1221 cat >>confdefs.h <<_ACEOF
1222 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1226 cat >>confdefs.h <<_ACEOF
1227 #define PACKAGE_STRING "$PACKAGE_STRING"
1231 cat >>confdefs.h <<_ACEOF
1232 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1236 # Let the site file select an alternate cache file if it wants to.
1237 # Prefer explicitly selected file to automatically selected ones.
1238 if test -z "$CONFIG_SITE"; then
1239 if test "x$prefix" != xNONE; then
1240 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1242 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1245 for ac_site_file in $CONFIG_SITE; do
1246 if test -r "$ac_site_file"; then
1247 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1248 echo "$as_me: loading site script $ac_site_file" >&6;}
1249 sed 's/^/| /' "$ac_site_file" >&5
1254 if test -r "$cache_file"; then
1255 # Some versions of bash will fail to source /dev/null (special
1256 # files actually), so we avoid doing that.
1257 if test -f "$cache_file"; then
1258 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1259 echo "$as_me: loading cache $cache_file" >&6;}
1261 [\\/]* | ?:[\\/]* ) . $cache_file;;
1262 *) . ./$cache_file;;
1266 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1267 echo "$as_me: creating cache $cache_file" >&6;}
1271 # Check that the precious variables saved in the cache have kept the same
1273 ac_cache_corrupted=false
1274 for ac_var in `(set) 2>&1 |
1275 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1276 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1277 eval ac_new_set=\$ac_env_${ac_var}_set
1278 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1279 eval ac_new_val="\$ac_env_${ac_var}_value"
1280 case $ac_old_set,$ac_new_set in
1282 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1283 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1284 ac_cache_corrupted=: ;;
1286 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1287 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1288 ac_cache_corrupted=: ;;
1291 if test "x$ac_old_val" != "x$ac_new_val"; then
1292 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1293 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1294 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1295 echo "$as_me: former value: $ac_old_val" >&2;}
1296 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1297 echo "$as_me: current value: $ac_new_val" >&2;}
1298 ac_cache_corrupted=:
1301 # Pass precious variables to config.status.
1302 if test "$ac_new_set" = set; then
1304 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1305 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1306 *) ac_arg=$ac_var=$ac_new_val ;;
1308 case " $ac_configure_args " in
1309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1310 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1314 if $ac_cache_corrupted; then
1315 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1316 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1317 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1318 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1319 { (exit 1); exit 1; }; }
1323 ac_cpp='$CPP $CPPFLAGS'
1324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1352 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1353 if test -f $ac_dir/install-sh; then
1355 ac_install_sh="$ac_aux_dir/install-sh -c"
1357 elif test -f $ac_dir/install.sh; then
1359 ac_install_sh="$ac_aux_dir/install.sh -c"
1361 elif test -f $ac_dir/shtool; then
1363 ac_install_sh="$ac_aux_dir/shtool install -c"
1367 if test -z "$ac_aux_dir"; then
1368 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1369 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1370 { (exit 1); exit 1; }; }
1372 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1373 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1374 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1376 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1384 # Extract the first word of "$ac_prog", so it can be a program name with args.
1385 set dummy $ac_prog; ac_word=$2
1386 echo "$as_me:$LINENO: checking for $ac_word" >&5
1387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1388 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1389 echo $ECHO_N "(cached) $ECHO_C" >&6
1393 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1400 test -z "$as_dir" && as_dir=.
1401 for ac_exec_ext in '' $ac_executable_extensions; do
1402 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1403 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1413 TRUEPRG=$ac_cv_path_TRUEPRG
1415 if test -n "$TRUEPRG"; then
1416 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1417 echo "${ECHO_T}$TRUEPRG" >&6
1419 echo "$as_me:$LINENO: result: no" >&5
1420 echo "${ECHO_T}no" >&6
1423 test -n "$TRUEPRG" && break
1425 test -n "$TRUEPRG" || TRUEPRG=":"
1427 for ac_prog in false
1429 # Extract the first word of "$ac_prog", so it can be a program name with args.
1430 set dummy $ac_prog; ac_word=$2
1431 echo "$as_me:$LINENO: checking for $ac_word" >&5
1432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1434 echo $ECHO_N "(cached) $ECHO_C" >&6
1438 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1445 test -z "$as_dir" && as_dir=.
1446 for ac_exec_ext in '' $ac_executable_extensions; do
1447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1448 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1458 FALSEPRG=$ac_cv_path_FALSEPRG
1460 if test -n "$FALSEPRG"; then
1461 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1462 echo "${ECHO_T}$FALSEPRG" >&6
1464 echo "$as_me:$LINENO: result: no" >&5
1465 echo "${ECHO_T}no" >&6
1468 test -n "$FALSEPRG" && break
1470 test -n "$FALSEPRG" || FALSEPRG=":"
1475 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1476 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1477 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1478 echo "configuring for bacula $VERSION ($DATE)"
1483 ac_cpp='$CPP $CPPFLAGS'
1484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1486 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1487 if test -n "$ac_tool_prefix"; then
1488 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1489 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1490 echo "$as_me:$LINENO: checking for $ac_word" >&5
1491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1492 if test "${ac_cv_prog_CC+set}" = set; then
1493 echo $ECHO_N "(cached) $ECHO_C" >&6
1495 if test -n "$CC"; then
1496 ac_cv_prog_CC="$CC" # Let the user override the test.
1498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502 test -z "$as_dir" && as_dir=.
1503 for ac_exec_ext in '' $ac_executable_extensions; do
1504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1505 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1515 if test -n "$CC"; then
1516 echo "$as_me:$LINENO: result: $CC" >&5
1517 echo "${ECHO_T}$CC" >&6
1519 echo "$as_me:$LINENO: result: no" >&5
1520 echo "${ECHO_T}no" >&6
1524 if test -z "$ac_cv_prog_CC"; then
1526 # Extract the first word of "gcc", so it can be a program name with args.
1527 set dummy 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_ac_ct_CC+set}" = set; then
1531 echo $ECHO_N "(cached) $ECHO_C" >&6
1533 if test -n "$ac_ct_CC"; then
1534 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="gcc"
1544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1552 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1553 if test -n "$ac_ct_CC"; then
1554 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1555 echo "${ECHO_T}$ac_ct_CC" >&6
1557 echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1566 if test -z "$CC"; then
1567 if test -n "$ac_tool_prefix"; then
1568 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1569 set dummy ${ac_tool_prefix}cc; ac_word=$2
1570 echo "$as_me:$LINENO: checking for $ac_word" >&5
1571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1572 if test "${ac_cv_prog_CC+set}" = set; then
1573 echo $ECHO_N "(cached) $ECHO_C" >&6
1575 if test -n "$CC"; then
1576 ac_cv_prog_CC="$CC" # Let the user override the test.
1578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 test -z "$as_dir" && as_dir=.
1583 for ac_exec_ext in '' $ac_executable_extensions; do
1584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1585 ac_cv_prog_CC="${ac_tool_prefix}cc"
1586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1595 if test -n "$CC"; then
1596 echo "$as_me:$LINENO: result: $CC" >&5
1597 echo "${ECHO_T}$CC" >&6
1599 echo "$as_me:$LINENO: result: no" >&5
1600 echo "${ECHO_T}no" >&6
1604 if test -z "$ac_cv_prog_CC"; then
1606 # Extract the first word of "cc", so it can be a program name with args.
1607 set dummy 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_ac_ct_CC+set}" = set; then
1611 echo $ECHO_N "(cached) $ECHO_C" >&6
1613 if test -n "$ac_ct_CC"; then
1614 ac_cv_prog_ac_ct_CC="$ac_ct_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_ac_ct_CC="cc"
1624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1633 if test -n "$ac_ct_CC"; then
1634 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1635 echo "${ECHO_T}$ac_ct_CC" >&6
1637 echo "$as_me:$LINENO: result: no" >&5
1638 echo "${ECHO_T}no" >&6
1647 if test -z "$CC"; then
1648 # Extract the first word of "cc", so it can be a program name with args.
1649 set dummy cc; ac_word=$2
1650 echo "$as_me:$LINENO: checking for $ac_word" >&5
1651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1652 if test "${ac_cv_prog_CC+set}" = set; then
1653 echo $ECHO_N "(cached) $ECHO_C" >&6
1655 if test -n "$CC"; then
1656 ac_cv_prog_CC="$CC" # Let the user override the test.
1659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663 test -z "$as_dir" && as_dir=.
1664 for ac_exec_ext in '' $ac_executable_extensions; do
1665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1666 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1667 ac_prog_rejected=yes
1671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1677 if test $ac_prog_rejected = yes; then
1678 # We found a bogon in the path, so make sure we never use it.
1679 set dummy $ac_cv_prog_CC
1681 if test $# != 0; then
1682 # We chose a different compiler from the bogus one.
1683 # However, it has the same basename, so the bogon will be chosen
1684 # first if we set CC to just the basename; use the full file name.
1686 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1692 if test -n "$CC"; then
1693 echo "$as_me:$LINENO: result: $CC" >&5
1694 echo "${ECHO_T}$CC" >&6
1696 echo "$as_me:$LINENO: result: no" >&5
1697 echo "${ECHO_T}no" >&6
1701 if test -z "$CC"; then
1702 if test -n "$ac_tool_prefix"; then
1705 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1706 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1707 echo "$as_me:$LINENO: checking for $ac_word" >&5
1708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1709 if test "${ac_cv_prog_CC+set}" = set; then
1710 echo $ECHO_N "(cached) $ECHO_C" >&6
1712 if test -n "$CC"; then
1713 ac_cv_prog_CC="$CC" # Let the user override the test.
1715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 test -z "$as_dir" && as_dir=.
1720 for ac_exec_ext in '' $ac_executable_extensions; do
1721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1722 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1732 if test -n "$CC"; then
1733 echo "$as_me:$LINENO: result: $CC" >&5
1734 echo "${ECHO_T}$CC" >&6
1736 echo "$as_me:$LINENO: result: no" >&5
1737 echo "${ECHO_T}no" >&6
1740 test -n "$CC" && break
1743 if test -z "$CC"; then
1747 # Extract the first word of "$ac_prog", so it can be a program name with args.
1748 set dummy $ac_prog; ac_word=$2
1749 echo "$as_me:$LINENO: checking for $ac_word" >&5
1750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1752 echo $ECHO_N "(cached) $ECHO_C" >&6
1754 if test -n "$ac_ct_CC"; then
1755 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 test -z "$as_dir" && as_dir=.
1762 for ac_exec_ext in '' $ac_executable_extensions; do
1763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764 ac_cv_prog_ac_ct_CC="$ac_prog"
1765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1774 if test -n "$ac_ct_CC"; then
1775 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1776 echo "${ECHO_T}$ac_ct_CC" >&6
1778 echo "$as_me:$LINENO: result: no" >&5
1779 echo "${ECHO_T}no" >&6
1782 test -n "$ac_ct_CC" && break
1791 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1792 See \`config.log' for more details." >&5
1793 echo "$as_me: error: no acceptable C compiler found in \$PATH
1794 See \`config.log' for more details." >&2;}
1795 { (exit 1); exit 1; }; }
1797 # Provide some information about the compiler.
1798 echo "$as_me:$LINENO:" \
1799 "checking for C compiler version" >&5
1800 ac_compiler=`set X $ac_compile; echo $2`
1801 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1802 (eval $ac_compiler --version </dev/null >&5) 2>&5
1804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1805 (exit $ac_status); }
1806 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1807 (eval $ac_compiler -v </dev/null >&5) 2>&5
1809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1810 (exit $ac_status); }
1811 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1812 (eval $ac_compiler -V </dev/null >&5) 2>&5
1814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1815 (exit $ac_status); }
1817 cat >conftest.$ac_ext <<_ACEOF
1818 #line $LINENO "configure"
1821 cat confdefs.h >>conftest.$ac_ext
1822 cat >>conftest.$ac_ext <<_ACEOF
1823 /* end confdefs.h. */
1833 ac_clean_files_save=$ac_clean_files
1834 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1835 # Try to create an executable without -o first, disregard a.out.
1836 # It will help us diagnose broken compilers, and finding out an intuition
1838 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1839 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1840 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1841 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1842 (eval $ac_link_default) 2>&5
1844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845 (exit $ac_status); }; then
1846 # Find the output, starting from the most likely. This scheme is
1847 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1850 # Be careful to initialize this variable, since it used to be cached.
1851 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1853 # b.out is created by i960 compilers.
1854 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1856 test -f "$ac_file" || continue
1858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1861 # This is the source file.
1864 # We found the default executable, but exeext='' is most
1868 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1869 # FIXME: I believe we export ac_cv_exeext for Libtool,
1870 # but it would be cool to find out if it's true. Does anybody
1871 # maintain Libtool? --akim.
1879 echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.$ac_ext >&5
1882 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1883 See \`config.log' for more details." >&5
1884 echo "$as_me: error: C compiler cannot create executables
1885 See \`config.log' for more details." >&2;}
1886 { (exit 77); exit 77; }; }
1889 ac_exeext=$ac_cv_exeext
1890 echo "$as_me:$LINENO: result: $ac_file" >&5
1891 echo "${ECHO_T}$ac_file" >&6
1893 # Check the compiler produces executables we can run. If not, either
1894 # the compiler is broken, or we cross compile.
1895 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1896 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1897 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1898 # If not cross compiling, check that we can run a simple program.
1899 if test "$cross_compiling" != yes; then
1900 if { ac_try='./$ac_file'
1901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1905 (exit $ac_status); }; }; then
1908 if test "$cross_compiling" = maybe; then
1911 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1912 If you meant to cross compile, use \`--host'.
1913 See \`config.log' for more details." >&5
1914 echo "$as_me: error: cannot run C compiled programs.
1915 If you meant to cross compile, use \`--host'.
1916 See \`config.log' for more details." >&2;}
1917 { (exit 1); exit 1; }; }
1921 echo "$as_me:$LINENO: result: yes" >&5
1922 echo "${ECHO_T}yes" >&6
1924 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1925 ac_clean_files=$ac_clean_files_save
1926 # Check the compiler produces executables we can run. If not, either
1927 # the compiler is broken, or we cross compile.
1928 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1929 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1930 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1931 echo "${ECHO_T}$cross_compiling" >&6
1933 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1934 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1935 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1936 (eval $ac_link) 2>&5
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }; then
1940 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1941 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1942 # work properly (i.e., refer to `conftest.exe'), while it won't with
1944 for ac_file in conftest.exe conftest conftest.*; do
1945 test -f "$ac_file" || continue
1947 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1948 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1955 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1956 See \`config.log' for more details." >&5
1957 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1958 See \`config.log' for more details." >&2;}
1959 { (exit 1); exit 1; }; }
1962 rm -f conftest$ac_cv_exeext
1963 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1964 echo "${ECHO_T}$ac_cv_exeext" >&6
1966 rm -f conftest.$ac_ext
1967 EXEEXT=$ac_cv_exeext
1969 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1970 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1971 if test "${ac_cv_objext+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1974 cat >conftest.$ac_ext <<_ACEOF
1975 #line $LINENO "configure"
1978 cat confdefs.h >>conftest.$ac_ext
1979 cat >>conftest.$ac_ext <<_ACEOF
1980 /* end confdefs.h. */
1990 rm -f conftest.o conftest.obj
1991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1992 (eval $ac_compile) 2>&5
1994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1995 (exit $ac_status); }; then
1996 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1998 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1999 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2004 echo "$as_me: failed program was:" >&5
2005 sed 's/^/| /' conftest.$ac_ext >&5
2007 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2008 See \`config.log' for more details." >&5
2009 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2010 See \`config.log' for more details." >&2;}
2011 { (exit 1); exit 1; }; }
2014 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2016 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2017 echo "${ECHO_T}$ac_cv_objext" >&6
2018 OBJEXT=$ac_cv_objext
2020 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2021 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2022 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 cat >conftest.$ac_ext <<_ACEOF
2026 #line $LINENO "configure"
2029 cat confdefs.h >>conftest.$ac_ext
2030 cat >>conftest.$ac_ext <<_ACEOF
2031 /* end confdefs.h. */
2044 rm -f conftest.$ac_objext
2045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2046 (eval $ac_compile) 2>&5
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); } &&
2050 { ac_try='test -s conftest.$ac_objext'
2051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); }; }; then
2058 echo "$as_me: failed program was:" >&5
2059 sed 's/^/| /' conftest.$ac_ext >&5
2063 rm -f conftest.$ac_objext conftest.$ac_ext
2064 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2067 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2068 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2069 GCC=`test $ac_compiler_gnu = yes && echo yes`
2070 ac_test_CFLAGS=${CFLAGS+set}
2071 ac_save_CFLAGS=$CFLAGS
2073 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2074 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2075 if test "${ac_cv_prog_cc_g+set}" = set; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2078 cat >conftest.$ac_ext <<_ACEOF
2079 #line $LINENO "configure"
2082 cat confdefs.h >>conftest.$ac_ext
2083 cat >>conftest.$ac_ext <<_ACEOF
2084 /* end confdefs.h. */
2094 rm -f conftest.$ac_objext
2095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2096 (eval $ac_compile) 2>&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); } &&
2100 { ac_try='test -s conftest.$ac_objext'
2101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2105 (exit $ac_status); }; }; then
2108 echo "$as_me: failed program was:" >&5
2109 sed 's/^/| /' conftest.$ac_ext >&5
2113 rm -f conftest.$ac_objext conftest.$ac_ext
2115 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2116 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2117 if test "$ac_test_CFLAGS" = set; then
2118 CFLAGS=$ac_save_CFLAGS
2119 elif test $ac_cv_prog_cc_g = yes; then
2120 if test "$GCC" = yes; then
2126 if test "$GCC" = yes; then
2132 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2133 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2134 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 ac_cv_prog_cc_stdc=no
2139 cat >conftest.$ac_ext <<_ACEOF
2140 #line $LINENO "configure"
2143 cat confdefs.h >>conftest.$ac_ext
2144 cat >>conftest.$ac_ext <<_ACEOF
2145 /* end confdefs.h. */
2148 #include <sys/types.h>
2149 #include <sys/stat.h>
2150 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2151 struct buf { int x; };
2152 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2153 static char *e (p, i)
2159 static char *f (char * (*g) (char **, int), char **p, ...)
2164 s = g (p, va_arg (v,int));
2168 int test (int i, double x);
2169 struct s1 {int (*f) (int a);};
2170 struct s2 {int (*f) (double a);};
2171 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2177 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2182 # Don't try gcc -ansi; that turns off useful extensions and
2183 # breaks some systems' header files.
2184 # AIX -qlanglvl=ansi
2185 # Ultrix and OSF/1 -std1
2186 # HP-UX 10.20 and later -Ae
2187 # HP-UX older versions -Aa -D_HPUX_SOURCE
2188 # SVR4 -Xc -D__EXTENSIONS__
2189 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2191 CC="$ac_save_CC $ac_arg"
2192 rm -f conftest.$ac_objext
2193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2194 (eval $ac_compile) 2>&5
2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197 (exit $ac_status); } &&
2198 { ac_try='test -s conftest.$ac_objext'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; }; then
2204 ac_cv_prog_cc_stdc=$ac_arg
2207 echo "$as_me: failed program was:" >&5
2208 sed 's/^/| /' conftest.$ac_ext >&5
2211 rm -f conftest.$ac_objext
2213 rm -f conftest.$ac_ext conftest.$ac_objext
2218 case "x$ac_cv_prog_cc_stdc" in
2220 echo "$as_me:$LINENO: result: none needed" >&5
2221 echo "${ECHO_T}none needed" >&6 ;;
2223 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2224 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2225 CC="$CC $ac_cv_prog_cc_stdc" ;;
2228 # Some people use a C++ compiler to compile C. Since we use `exit',
2229 # in C++ we need to declare it. In case someone uses the same compiler
2230 # for both compiling C and C++ we need to have the C++ compiler decide
2231 # the declaration of exit, since it's the most demanding environment.
2232 cat >conftest.$ac_ext <<_ACEOF
2237 rm -f conftest.$ac_objext
2238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2239 (eval $ac_compile) 2>&5
2241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2242 (exit $ac_status); } &&
2243 { ac_try='test -s conftest.$ac_objext'
2244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248 (exit $ac_status); }; }; then
2249 for ac_declaration in \
2251 '#include <stdlib.h>' \
2252 'extern "C" void std::exit (int) throw (); using std::exit;' \
2253 'extern "C" void std::exit (int); using std::exit;' \
2254 'extern "C" void exit (int) throw ();' \
2255 'extern "C" void exit (int);' \
2258 cat >conftest.$ac_ext <<_ACEOF
2259 #line $LINENO "configure"
2262 cat confdefs.h >>conftest.$ac_ext
2263 cat >>conftest.$ac_ext <<_ACEOF
2264 /* end confdefs.h. */
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
2289 echo "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2294 rm -f conftest.$ac_objext conftest.$ac_ext
2295 cat >conftest.$ac_ext <<_ACEOF
2296 #line $LINENO "configure"
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h. */
2311 rm -f conftest.$ac_objext
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313 (eval $ac_compile) 2>&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); } &&
2317 { ac_try='test -s conftest.$ac_objext'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; }; then
2325 echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2329 rm -f conftest.$ac_objext conftest.$ac_ext
2332 if test -n "$ac_declaration"; then
2333 echo '#ifdef __cplusplus' >>confdefs.h
2334 echo $ac_declaration >>confdefs.h
2335 echo '#endif' >>confdefs.h
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2343 rm -f conftest.$ac_objext conftest.$ac_ext
2345 ac_cpp='$CPP $CPPFLAGS'
2346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351 ac_cpp='$CXXCPP $CPPFLAGS'
2352 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2353 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2354 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2355 if test -n "$ac_tool_prefix"; then
2356 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2358 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2359 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2360 echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2362 if test "${ac_cv_prog_CXX+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2365 if test -n "$CXX"; then
2366 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372 test -z "$as_dir" && as_dir=.
2373 for ac_exec_ext in '' $ac_executable_extensions; do
2374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2375 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 if test -n "$CXX"; then
2386 echo "$as_me:$LINENO: result: $CXX" >&5
2387 echo "${ECHO_T}$CXX" >&6
2389 echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6
2393 test -n "$CXX" && break
2396 if test -z "$CXX"; then
2398 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2400 # Extract the first word of "$ac_prog", so it can be a program name with args.
2401 set dummy $ac_prog; ac_word=$2
2402 echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2404 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 if test -n "$ac_ct_CXX"; then
2408 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2414 test -z "$as_dir" && as_dir=.
2415 for ac_exec_ext in '' $ac_executable_extensions; do
2416 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2417 ac_cv_prog_ac_ct_CXX="$ac_prog"
2418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2426 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2427 if test -n "$ac_ct_CXX"; then
2428 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2429 echo "${ECHO_T}$ac_ct_CXX" >&6
2431 echo "$as_me:$LINENO: result: no" >&5
2432 echo "${ECHO_T}no" >&6
2435 test -n "$ac_ct_CXX" && break
2437 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2443 # Provide some information about the compiler.
2444 echo "$as_me:$LINENO:" \
2445 "checking for C++ compiler version" >&5
2446 ac_compiler=`set X $ac_compile; echo $2`
2447 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2448 (eval $ac_compiler --version </dev/null >&5) 2>&5
2450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2451 (exit $ac_status); }
2452 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2453 (eval $ac_compiler -v </dev/null >&5) 2>&5
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }
2457 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2458 (eval $ac_compiler -V </dev/null >&5) 2>&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }
2463 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2464 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2465 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 cat >conftest.$ac_ext <<_ACEOF
2469 #line $LINENO "configure"
2472 cat confdefs.h >>conftest.$ac_ext
2473 cat >>conftest.$ac_ext <<_ACEOF
2474 /* end confdefs.h. */
2487 rm -f conftest.$ac_objext
2488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2489 (eval $ac_compile) 2>&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); } &&
2493 { ac_try='test -s conftest.$ac_objext'
2494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; }; then
2501 echo "$as_me: failed program was:" >&5
2502 sed 's/^/| /' conftest.$ac_ext >&5
2506 rm -f conftest.$ac_objext conftest.$ac_ext
2507 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2510 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2511 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2512 GXX=`test $ac_compiler_gnu = yes && echo yes`
2513 ac_test_CXXFLAGS=${CXXFLAGS+set}
2514 ac_save_CXXFLAGS=$CXXFLAGS
2516 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2517 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2518 if test "${ac_cv_prog_cxx_g+set}" = set; then
2519 echo $ECHO_N "(cached) $ECHO_C" >&6
2521 cat >conftest.$ac_ext <<_ACEOF
2522 #line $LINENO "configure"
2525 cat confdefs.h >>conftest.$ac_ext
2526 cat >>conftest.$ac_ext <<_ACEOF
2527 /* end confdefs.h. */
2537 rm -f conftest.$ac_objext
2538 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2539 (eval $ac_compile) 2>&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); } &&
2543 { ac_try='test -s conftest.$ac_objext'
2544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; }; then
2549 ac_cv_prog_cxx_g=yes
2551 echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2556 rm -f conftest.$ac_objext conftest.$ac_ext
2558 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2559 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2560 if test "$ac_test_CXXFLAGS" = set; then
2561 CXXFLAGS=$ac_save_CXXFLAGS
2562 elif test $ac_cv_prog_cxx_g = yes; then
2563 if test "$GXX" = yes; then
2569 if test "$GXX" = yes; then
2575 for ac_declaration in \
2577 '#include <stdlib.h>' \
2578 'extern "C" void std::exit (int) throw (); using std::exit;' \
2579 'extern "C" void std::exit (int); using std::exit;' \
2580 'extern "C" void exit (int) throw ();' \
2581 'extern "C" void exit (int);' \
2584 cat >conftest.$ac_ext <<_ACEOF
2585 #line $LINENO "configure"
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2601 rm -f conftest.$ac_objext
2602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2603 (eval $ac_compile) 2>&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
2607 { ac_try='test -s conftest.$ac_objext'
2608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; }; then
2615 echo "$as_me: failed program was:" >&5
2616 sed 's/^/| /' conftest.$ac_ext >&5
2620 rm -f conftest.$ac_objext conftest.$ac_ext
2621 cat >conftest.$ac_ext <<_ACEOF
2622 #line $LINENO "configure"
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2637 rm -f conftest.$ac_objext
2638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2639 (eval $ac_compile) 2>&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); } &&
2643 { ac_try='test -s conftest.$ac_objext'
2644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; }; then
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2655 rm -f conftest.$ac_objext conftest.$ac_ext
2658 if test -n "$ac_declaration"; then
2659 echo '#ifdef __cplusplus' >>confdefs.h
2660 echo $ac_declaration >>confdefs.h
2661 echo '#endif' >>confdefs.h
2665 ac_cpp='$CPP $CPPFLAGS'
2666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2670 if test "x$CC" != xcc; then
2671 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2672 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2674 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2675 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2677 set dummy $CC; ac_cc=`echo $2 |
2678 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2679 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 cat >conftest.$ac_ext <<_ACEOF
2683 #line $LINENO "configure"
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2698 # Make sure it works both with $CC and with simple cc.
2699 # We do the test twice because some compilers refuse to overwrite an
2700 # existing .o file with -o, though they will create one.
2701 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2702 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } &&
2707 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); };
2713 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2714 if test "x$CC" != xcc; then
2715 # Test first that cc exists at all.
2716 if { ac_try='cc -c conftest.$ac_ext >&5'
2717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; }; then
2722 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2723 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } &&
2728 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); };
2737 # cc exists but doesn't like -o.
2738 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2743 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2748 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2749 echo "$as_me:$LINENO: result: yes" >&5
2750 echo "${ECHO_T}yes" >&6
2752 echo "$as_me:$LINENO: result: no" >&5
2753 echo "${ECHO_T}no" >&6
2755 cat >>confdefs.h <<\_ACEOF
2756 #define NO_MINUS_C_MINUS_O 1
2762 ac_cpp='$CPP $CPPFLAGS'
2763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2766 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2767 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2768 # On Suns, sometimes $CPP names a directory.
2769 if test -n "$CPP" && test -d "$CPP"; then
2772 if test -z "$CPP"; then
2773 if test "${ac_cv_prog_CPP+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2776 # Double quotes because CPP needs to be expanded
2777 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2780 for ac_c_preproc_warn_flag in '' yes
2782 # Use a header file that comes with gcc, so configuring glibc
2783 # with a fresh cross-compiler works.
2784 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2785 # <limits.h> exists even on freestanding compilers.
2786 # On the NeXT, cc -E runs the code through the compiler's parser,
2787 # not just through cpp. "Syntax error" is here to catch this case.
2788 cat >conftest.$ac_ext <<_ACEOF
2789 #line $LINENO "configure"
2792 cat confdefs.h >>conftest.$ac_ext
2793 cat >>conftest.$ac_ext <<_ACEOF
2794 /* end confdefs.h. */
2796 # include <limits.h>
2798 # include <assert.h>
2802 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2803 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2805 grep -v '^ *+' conftest.er1 >conftest.err
2807 cat conftest.err >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); } >/dev/null; then
2810 if test -s conftest.err; then
2811 ac_cpp_err=$ac_c_preproc_warn_flag
2818 if test -z "$ac_cpp_err"; then
2821 echo "$as_me: failed program was:" >&5
2822 sed 's/^/| /' conftest.$ac_ext >&5
2824 # Broken: fails on valid input.
2827 rm -f conftest.err conftest.$ac_ext
2829 # OK, works on sane cases. Now check whether non-existent headers
2830 # can be detected and how.
2831 cat >conftest.$ac_ext <<_ACEOF
2832 #line $LINENO "configure"
2835 cat confdefs.h >>conftest.$ac_ext
2836 cat >>conftest.$ac_ext <<_ACEOF
2837 /* end confdefs.h. */
2838 #include <ac_nonexistent.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
2857 # Broken: success on invalid input.
2860 echo "$as_me: failed program was:" >&5
2861 sed 's/^/| /' conftest.$ac_ext >&5
2863 # Passes both tests.
2867 rm -f conftest.err conftest.$ac_ext
2870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2871 rm -f conftest.err conftest.$ac_ext
2872 if $ac_preproc_ok; then
2884 echo "$as_me:$LINENO: result: $CPP" >&5
2885 echo "${ECHO_T}$CPP" >&6
2887 for ac_c_preproc_warn_flag in '' yes
2889 # Use a header file that comes with gcc, so configuring glibc
2890 # with a fresh cross-compiler works.
2891 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2892 # <limits.h> exists even on freestanding compilers.
2893 # On the NeXT, cc -E runs the code through the compiler's parser,
2894 # not just through cpp. "Syntax error" is here to catch this case.
2895 cat >conftest.$ac_ext <<_ACEOF
2896 #line $LINENO "configure"
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2903 # include <limits.h>
2905 # include <assert.h>
2909 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2910 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2912 grep -v '^ *+' conftest.er1 >conftest.err
2914 cat conftest.err >&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); } >/dev/null; then
2917 if test -s conftest.err; then
2918 ac_cpp_err=$ac_c_preproc_warn_flag
2925 if test -z "$ac_cpp_err"; then
2928 echo "$as_me: failed program was:" >&5
2929 sed 's/^/| /' conftest.$ac_ext >&5
2931 # Broken: fails on valid input.
2934 rm -f conftest.err conftest.$ac_ext
2936 # OK, works on sane cases. Now check whether non-existent headers
2937 # can be detected and how.
2938 cat >conftest.$ac_ext <<_ACEOF
2939 #line $LINENO "configure"
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2945 #include <ac_nonexistent.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
2964 # Broken: success on invalid input.
2967 echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2970 # Passes both tests.
2974 rm -f conftest.err conftest.$ac_ext
2977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2978 rm -f conftest.err conftest.$ac_ext
2979 if $ac_preproc_ok; then
2982 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2983 See \`config.log' for more details." >&5
2984 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2985 See \`config.log' for more details." >&2;}
2986 { (exit 1); exit 1; }; }
2990 ac_cpp='$CPP $CPPFLAGS'
2991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2996 echo "$as_me:$LINENO: checking for egrep" >&5
2997 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2998 if test "${ac_cv_prog_egrep+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3002 then ac_cv_prog_egrep='grep -E'
3003 else ac_cv_prog_egrep='egrep'
3006 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3007 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3008 EGREP=$ac_cv_prog_egrep
3011 if test $ac_cv_c_compiler_gnu = yes; then
3012 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3013 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3014 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3015 echo $ECHO_N "(cached) $ECHO_C" >&6
3017 ac_pattern="Autoconf.*'x'"
3018 cat >conftest.$ac_ext <<_ACEOF
3019 #line $LINENO "configure"
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3029 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3030 ac_cv_prog_gcc_traditional=yes
3032 ac_cv_prog_gcc_traditional=no
3037 if test $ac_cv_prog_gcc_traditional = no; then
3038 cat >conftest.$ac_ext <<_ACEOF
3039 #line $LINENO "configure"
3042 cat confdefs.h >>conftest.$ac_ext
3043 cat >>conftest.$ac_ext <<_ACEOF
3044 /* end confdefs.h. */
3048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3049 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3050 ac_cv_prog_gcc_traditional=yes
3056 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3057 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3058 if test $ac_cv_prog_gcc_traditional = yes; then
3059 CC="$CC -traditional"
3063 if test "x$CC" = xgcc
3065 cat >>confdefs.h <<\_ACEOF
3071 # Find a good install program. We prefer a C program (faster),
3072 # so one script is as good as another. But avoid the broken or
3073 # incompatible versions:
3074 # SysV /etc/install, /usr/sbin/install
3075 # SunOS /usr/etc/install
3076 # IRIX /sbin/install
3078 # AmigaOS /C/install, which installs bootblocks on floppy discs
3079 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3080 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3081 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3082 # ./install, which can be erroneously created by make from ./install.sh.
3083 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3084 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3085 if test -z "$INSTALL"; then
3086 if test "${ac_cv_path_install+set}" = set; then
3087 echo $ECHO_N "(cached) $ECHO_C" >&6
3089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093 test -z "$as_dir" && as_dir=.
3094 # Account for people who put trailing slashes in PATH elements.
3096 ./ | .// | /cC/* | \
3097 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3100 # OSF1 and SCO ODT 3.0 have their own names for install.
3101 # Don't use installbsd from OSF since it installs stuff as root
3103 for ac_prog in ginstall scoinst install; do
3104 for ac_exec_ext in '' $ac_executable_extensions; do
3105 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3106 if test $ac_prog = install &&
3107 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3108 # AIX install. It has an incompatible calling convention.
3110 elif test $ac_prog = install &&
3111 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3112 # program-specific install script used by HP pwplus--don't use.
3115 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3127 if test "${ac_cv_path_install+set}" = set; then
3128 INSTALL=$ac_cv_path_install
3130 # As a last resort, use the slow shell script. We don't cache a
3131 # path for INSTALL within a source directory, because that will
3132 # break other packages using the cache if that directory is
3133 # removed, or if the path is relative.
3134 INSTALL=$ac_install_sh
3137 echo "$as_me:$LINENO: result: $INSTALL" >&5
3138 echo "${ECHO_T}$INSTALL" >&6
3140 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3141 # It thinks the first close brace ends the variable substitution.
3142 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3144 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3146 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3148 if test -n "$ac_tool_prefix"; then
3149 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3150 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3151 echo "$as_me:$LINENO: checking for $ac_word" >&5
3152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3153 if test "${ac_cv_prog_RANLIB+set}" = set; then
3154 echo $ECHO_N "(cached) $ECHO_C" >&6
3156 if test -n "$RANLIB"; then
3157 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3163 test -z "$as_dir" && as_dir=.
3164 for ac_exec_ext in '' $ac_executable_extensions; do
3165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3166 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 RANLIB=$ac_cv_prog_RANLIB
3176 if test -n "$RANLIB"; then
3177 echo "$as_me:$LINENO: result: $RANLIB" >&5
3178 echo "${ECHO_T}$RANLIB" >&6
3180 echo "$as_me:$LINENO: result: no" >&5
3181 echo "${ECHO_T}no" >&6
3185 if test -z "$ac_cv_prog_RANLIB"; then
3186 ac_ct_RANLIB=$RANLIB
3187 # Extract the first word of "ranlib", so it can be a program name with args.
3188 set dummy 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_ac_ct_RANLIB+set}" = set; then
3192 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 if test -n "$ac_ct_RANLIB"; then
3195 ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="ranlib"
3205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3211 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3214 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3215 if test -n "$ac_ct_RANLIB"; then
3216 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3217 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3219 echo "$as_me:$LINENO: result: no" >&5
3220 echo "${ECHO_T}no" >&6
3223 RANLIB=$ac_ct_RANLIB
3225 RANLIB="$ac_cv_prog_RANLIB"
3228 # Extract the first word of "mv", so it can be a program name with args.
3229 set dummy mv; ac_word=$2
3230 echo "$as_me:$LINENO: checking for $ac_word" >&5
3231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3232 if test "${ac_cv_path_MV+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3237 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244 test -z "$as_dir" && as_dir=.
3245 for ac_exec_ext in '' $ac_executable_extensions; do
3246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3247 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3260 if test -n "$MV"; then
3261 echo "$as_me:$LINENO: result: $MV" >&5
3262 echo "${ECHO_T}$MV" >&6
3264 echo "$as_me:$LINENO: result: no" >&5
3265 echo "${ECHO_T}no" >&6
3268 # Extract the first word of "rm", so it can be a program name with args.
3269 set dummy rm; ac_word=$2
3270 echo "$as_me:$LINENO: checking for $ac_word" >&5
3271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3272 if test "${ac_cv_path_RM+set}" = set; then
3273 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3294 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3300 if test -n "$RM"; then
3301 echo "$as_me:$LINENO: result: $RM" >&5
3302 echo "${ECHO_T}$RM" >&6
3304 echo "$as_me:$LINENO: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3308 # Extract the first word of "cp", so it can be a program name with args.
3309 set dummy cp; ac_word=$2
3310 echo "$as_me:$LINENO: checking for $ac_word" >&5
3311 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3312 if test "${ac_cv_path_CP+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3340 if test -n "$CP"; then
3341 echo "$as_me:$LINENO: result: $CP" >&5
3342 echo "${ECHO_T}$CP" >&6
3344 echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3348 # Extract the first word of "sed", so it can be a program name with args.
3349 set dummy sed; ac_word=$2
3350 echo "$as_me:$LINENO: checking for $ac_word" >&5
3351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3352 if test "${ac_cv_path_SED+set}" = set; then
3353 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3380 if test -n "$SED"; then
3381 echo "$as_me:$LINENO: result: $SED" >&5
3382 echo "${ECHO_T}$SED" >&6
3384 echo "$as_me:$LINENO: result: no" >&5
3385 echo "${ECHO_T}no" >&6
3388 # Extract the first word of "awk", so it can be a program name with args.
3389 set dummy awk; ac_word=$2
3390 echo "$as_me:$LINENO: checking for $ac_word" >&5
3391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3392 if test "${ac_cv_path_AWK+set}" = set; then
3393 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3407 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="awk"
3420 if test -n "$AWK"; then
3421 echo "$as_me:$LINENO: result: $AWK" >&5
3422 echo "${ECHO_T}$AWK" >&6
3424 echo "$as_me:$LINENO: result: no" >&5
3425 echo "${ECHO_T}no" >&6
3428 # Extract the first word of "echo", so it can be a program name with args.
3429 set dummy echo; ac_word=$2
3430 echo "$as_me:$LINENO: checking for $ac_word" >&5
3431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3432 if test "${ac_cv_path_ECHO+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3437 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 test -z "$as_dir" && as_dir=.
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3447 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3454 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3458 ECHO=$ac_cv_path_ECHO
3460 if test -n "$ECHO"; then
3461 echo "$as_me:$LINENO: result: $ECHO" >&5
3462 echo "${ECHO_T}$ECHO" >&6
3464 echo "$as_me:$LINENO: result: no" >&5
3465 echo "${ECHO_T}no" >&6
3468 # Extract the first word of "cmp", so it can be a program name with args.
3469 set dummy cmp; ac_word=$2
3470 echo "$as_me:$LINENO: checking for $ac_word" >&5
3471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3472 if test "${ac_cv_path_CMP+set}" = set; then
3473 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3500 if test -n "$CMP"; then
3501 echo "$as_me:$LINENO: result: $CMP" >&5
3502 echo "${ECHO_T}$CMP" >&6
3504 echo "$as_me:$LINENO: result: no" >&5
3505 echo "${ECHO_T}no" >&6
3508 # Extract the first word of "tbl", so it can be a program name with args.
3509 set dummy tbl; ac_word=$2
3510 echo "$as_me:$LINENO: checking for $ac_word" >&5
3511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3512 if test "${ac_cv_path_TBL+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3540 if test -n "$TBL"; then
3541 echo "$as_me:$LINENO: result: $TBL" >&5
3542 echo "${ECHO_T}$TBL" >&6
3544 echo "$as_me:$LINENO: result: no" >&5
3545 echo "${ECHO_T}no" >&6
3548 # Extract the first word of "ar", so it can be a program name with args.
3549 set dummy ar; ac_word=$2
3550 echo "$as_me:$LINENO: checking for $ac_word" >&5
3551 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3552 if test "${ac_cv_path_AR+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3557 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3567 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3580 if test -n "$AR"; then
3581 echo "$as_me:$LINENO: result: $AR" >&5
3582 echo "${ECHO_T}$AR" >&6
3584 echo "$as_me:$LINENO: result: no" >&5
3585 echo "${ECHO_T}no" >&6
3588 # Extract the first word of "openssl", so it can be a program name with args.
3589 set dummy openssl; ac_word=$2
3590 echo "$as_me:$LINENO: checking for $ac_word" >&5
3591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3592 if test "${ac_cv_path_OPENSSL+set}" = set; then
3593 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 test -z "$as_dir" && as_dir=.
3605 for ac_exec_ext in '' $ac_executable_extensions; do
3606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3614 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3618 OPENSSL=$ac_cv_path_OPENSSL
3620 if test -n "$OPENSSL"; then
3621 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3622 echo "${ECHO_T}$OPENSSL" >&6
3624 echo "$as_me:$LINENO: result: no" >&5
3625 echo "${ECHO_T}no" >&6
3628 # Extract the first word of "mtx", so it can be a program name with args.
3629 set dummy mtx; ac_word=$2
3630 echo "$as_me:$LINENO: checking for $ac_word" >&5
3631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3632 if test "${ac_cv_path_MTX+set}" = set; then
3633 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 test -z "$as_dir" && as_dir=.
3645 for ac_exec_ext in '' $ac_executable_extensions; do
3646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3647 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3660 if test -n "$MTX"; then
3661 echo "$as_me:$LINENO: result: $MTX" >&5
3662 echo "${ECHO_T}$MTX" >&6
3664 echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6
3668 # Extract the first word of "pkg-config", so it can be a program name with args.
3669 set dummy pkg-config; ac_word=$2
3670 echo "$as_me:$LINENO: checking for $ac_word" >&5
3671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3672 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3673 echo $ECHO_N "(cached) $ECHO_C" >&6
3677 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 test -z "$as_dir" && as_dir=.
3685 for ac_exec_ext in '' $ac_executable_extensions; do
3686 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3687 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3698 PKGCONFIG=$ac_cv_path_PKGCONFIG
3700 if test -n "$PKGCONFIG"; then
3701 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3702 echo "${ECHO_T}$PKGCONFIG" >&6
3704 echo "$as_me:$LINENO: result: no" >&5
3705 echo "${ECHO_T}no" >&6
3708 # Extract the first word of "wx-config", so it can be a program name with args.
3709 set dummy wx-config; ac_word=$2
3710 echo "$as_me:$LINENO: checking for $ac_word" >&5
3711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3712 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3717 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724 test -z "$as_dir" && as_dir=.
3725 for ac_exec_ext in '' $ac_executable_extensions; do
3726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3727 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3734 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3738 WXCONFIG=$ac_cv_path_WXCONFIG
3740 if test -n "$WXCONFIG"; then
3741 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3742 echo "${ECHO_T}$WXCONFIG" >&6
3744 echo "$as_me:$LINENO: result: no" >&5
3745 echo "${ECHO_T}no" >&6
3748 # Extract the first word of "cdrecord", so it can be a program name with args.
3749 set dummy cdrecord; ac_word=$2
3750 echo "$as_me:$LINENO: checking for $ac_word" >&5
3751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3752 if test "${ac_cv_path_CDRECORD+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
3760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764 test -z "$as_dir" && as_dir=.
3765 for ac_exec_ext in '' $ac_executable_extensions; do
3766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3767 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
3768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 CDRECORD=$ac_cv_path_CDRECORD
3779 if test -n "$CDRECORD"; then
3780 echo "$as_me:$LINENO: result: $CDRECORD" >&5
3781 echo "${ECHO_T}$CDRECORD" >&6
3783 echo "$as_me:$LINENO: result: no" >&5
3784 echo "${ECHO_T}no" >&6
3788 test -n "$ARFLAG" || ARFLAGS="cr"
3801 # Make sure we can run config.sub.
3802 $ac_config_sub sun4 >/dev/null 2>&1 ||
3803 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3804 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3805 { (exit 1); exit 1; }; }
3807 echo "$as_me:$LINENO: checking build system type" >&5
3808 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3809 if test "${ac_cv_build+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 ac_cv_build_alias=$build_alias
3813 test -z "$ac_cv_build_alias" &&
3814 ac_cv_build_alias=`$ac_config_guess`
3815 test -z "$ac_cv_build_alias" &&
3816 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3817 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3818 { (exit 1); exit 1; }; }
3819 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3820 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3821 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3822 { (exit 1); exit 1; }; }
3825 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3826 echo "${ECHO_T}$ac_cv_build" >&6
3828 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3829 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3830 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3834 echo "$as_me:$LINENO: checking host system type" >&5
3835 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3836 if test "${ac_cv_host+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 ac_cv_host_alias=$host_alias
3840 test -z "$ac_cv_host_alias" &&
3841 ac_cv_host_alias=$ac_cv_build_alias
3842 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3843 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3844 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3845 { (exit 1); exit 1; }; }
3848 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3849 echo "${ECHO_T}$ac_cv_host" >&6
3851 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3852 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3853 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3857 *cygwin* ) CYGWIN=yes;;
3861 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
3867 HAVE_SUN_OS_FALSE='#'
3869 HAVE_SUN_OS_TRUE='#'
3872 cat >>confdefs.h <<\_ACEOF
3873 #define HAVE_SUN_OS 1
3881 HAVE_SUN_OS_FALSE='#'
3883 HAVE_SUN_OS_TRUE='#'
3888 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
3894 HAVE_OSF1_OS_FALSE='#'
3896 HAVE_OSF1_OS_TRUE='#'
3899 cat >>confdefs.h <<\_ACEOF
3900 #define HAVE_OSF1_OS 1
3908 HAVE_OSF1_OS_FALSE='#'
3910 HAVE_OSF1_OS_TRUE='#'
3915 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
3921 HAVE_AIX_OS_FALSE='#'
3923 HAVE_AIX_OS_TRUE='#'
3926 cat >>confdefs.h <<\_ACEOF
3927 #define HAVE_AIX_OS 1
3935 HAVE_AIX_OS_FALSE='#'
3937 HAVE_AIX_OS_TRUE='#'
3942 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
3948 HAVE_HPUX_OS_FALSE='#'
3950 HAVE_HPUX_OS_TRUE='#'
3953 cat >>confdefs.h <<\_ACEOF
3954 #define HAVE_HPUX_OS 1
3962 HAVE_HPUX_OS_FALSE='#'
3964 HAVE_HPUX_OS_TRUE='#'
3969 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
3975 HAVE_LINUX_OS_FALSE='#'
3977 HAVE_LINUX_OS_TRUE='#'
3978 HAVE_LINUX_OS_FALSE=
3980 cat >>confdefs.h <<\_ACEOF
3981 #define HAVE_LINUX_OS 1
3989 HAVE_LINUX_OS_FALSE='#'
3991 HAVE_LINUX_OS_TRUE='#'
3992 HAVE_LINUX_OS_FALSE=
3996 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4001 HAVE_FREEBSD_OS_TRUE=
4002 HAVE_FREEBSD_OS_FALSE='#'
4004 HAVE_FREEBSD_OS_TRUE='#'
4005 HAVE_FREEBSD_OS_FALSE=
4007 cat >>confdefs.h <<\_ACEOF
4008 #define HAVE_FREEBSD_OS 1
4015 HAVE_FREEBSD_OS_TRUE=
4016 HAVE_FREEBSD_OS_FALSE='#'
4018 HAVE_FREEBSD_OS_TRUE='#'
4019 HAVE_FREEBSD_OS_FALSE=
4023 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4028 HAVE_NETBSD_OS_TRUE=
4029 HAVE_NETBSD_OS_FALSE='#'
4031 HAVE_NETBSD_OS_TRUE='#'
4032 HAVE_NETBSD_OS_FALSE=
4034 cat >>confdefs.h <<\_ACEOF
4035 #define HAVE_NETBSD_OS 1
4042 HAVE_NETBSD_OS_TRUE=
4043 HAVE_NETBSD_OS_FALSE='#'
4045 HAVE_NETBSD_OS_TRUE='#'
4046 HAVE_NETBSD_OS_FALSE=
4050 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4055 HAVE_OPENBSD_OS_TRUE=
4056 HAVE_OPENBSD_OS_FALSE='#'
4058 HAVE_OPENBSD_OS_TRUE='#'
4059 HAVE_OPENBSD_OS_FALSE=
4061 cat >>confdefs.h <<\_ACEOF
4062 #define HAVE_OPENBSD_OS 1
4069 HAVE_OPENBSD_OS_TRUE=
4070 HAVE_OPENBSD_OS_FALSE='#'
4072 HAVE_OPENBSD_OS_TRUE='#'
4073 HAVE_OPENBSD_OS_FALSE=
4077 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4083 HAVE_BSDI_OS_FALSE='#'
4085 HAVE_BSDI_OS_TRUE='#'
4088 cat >>confdefs.h <<\_ACEOF
4089 #define HAVE_BSDI_OS 1
4097 HAVE_BSDI_OS_FALSE='#'
4099 HAVE_BSDI_OS_TRUE='#'
4104 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4110 HAVE_SGI_OS_FALSE='#'
4112 HAVE_SGI_OS_TRUE='#'
4115 cat >>confdefs.h <<\_ACEOF
4116 #define HAVE_SGI_OS 1
4124 HAVE_SGI_OS_FALSE='#'
4126 HAVE_SGI_OS_TRUE='#'
4131 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4137 HAVE_IRIX_OS_FALSE='#'
4139 HAVE_IRIX_OS_TRUE='#'
4142 cat >>confdefs.h <<\_ACEOF
4143 #define HAVE_IRIX_OS 1
4151 HAVE_IRIX_OS_FALSE='#'
4153 HAVE_IRIX_OS_TRUE='#'
4158 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4163 HAVE_DARWIN_OS_TRUE=
4164 HAVE_DARWIN_OS_FALSE='#'
4166 HAVE_DARWIN_OS_TRUE='#'
4167 HAVE_DARWIN_OS_FALSE=
4169 cat >>confdefs.h <<\_ACEOF
4170 #define HAVE_DARWIN_OS 1
4177 HAVE_DARWIN_OS_TRUE=
4178 HAVE_DARWIN_OS_FALSE='#'
4180 HAVE_DARWIN_OS_TRUE='#'
4181 HAVE_DARWIN_OS_FALSE=
4186 # -----------------------------------------------------------
4187 # ----------------------------------------------------------
4188 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4189 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4190 if test "x$DISTNAME" != "x"
4192 echo "distname set to $DISTNAME"
4193 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4196 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4199 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4202 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4205 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4208 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4211 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4214 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4217 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4220 elif test -f /etc/SuSE-release
4223 elif test -d /etc/SuSEconfig
4226 elif test -f /etc/mandrake-release
4229 elif test -f /etc/whitebox-release
4232 elif test -f /etc/redhat-release
4235 elif test -f /etc/gentoo-release
4238 elif test -f /etc/debian_version
4241 elif test -f /etc/slackware-version
4244 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4247 elif test -f /etc/engarde-version
4250 elif test "$CYGWIN" = yes
4253 cat >>confdefs.h <<\_ACEOF
4254 #define HAVE_CYGWIN 1
4260 echo "$as_me:$LINENO: result: done" >&5
4261 echo "${ECHO_T}done" >&6
4264 # -----------------------------------------------------------
4265 # ----------------------------------------------------------
4270 INSIDE_GNOME_COMMON_TRUE=
4271 INSIDE_GNOME_COMMON_FALSE='#'
4273 INSIDE_GNOME_COMMON_TRUE='#'
4274 INSIDE_GNOME_COMMON_FALSE=
4277 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4279 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4282 # ------------------------------------------------------------------
4283 # If the user has not set --prefix, we set our default to nothing.
4284 # In this case, if the user has not set --sysconfdir, we set it
4285 # to the package default of /etc/bacula. If either --prefix or
4286 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4287 # ------------------------------------------------------------------
4288 if test x${prefix} = xNONE ; then
4289 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4290 sysconfdir=/etc/bacula
4294 sysconfdir=`eval echo ${sysconfdir}`
4296 # -------------------------------------------------------------------------
4297 # If the user has not set --exec-prefix, we default to ${prefix}
4298 # -------------------------------------------------------------------------
4299 if test x${exec_prefix} = xNONE ; then
4300 exec_prefix=${prefix}
4303 # ------------------------------------------------------------------
4304 # If the user has not set --sbindir, we set our default as /sbin
4305 # ------------------------------------------------------------------
4306 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4307 sbindir=${exec_prefix}/sbin
4309 sbindir=`eval echo ${sbindir}`
4311 # ------------------------------------------------------------------
4312 # All list of languages for which a translation exist. Each
4313 # language is separated by a space.
4314 # ------------------------------------------------------------------
4317 for ac_prog in msgfmt
4319 # Extract the first word of "$ac_prog", so it can be a program name with args.
4320 set dummy $ac_prog; ac_word=$2
4321 echo "$as_me:$LINENO: checking for $ac_word" >&5
4322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4323 if test "${ac_cv_path_MSGFMT+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4328 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 MSGFMT=$ac_cv_path_MSGFMT
4350 if test -n "$MSGFMT"; then
4351 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4352 echo "${ECHO_T}$MSGFMT" >&6
4354 echo "$as_me:$LINENO: result: no" >&5
4355 echo "${ECHO_T}no" >&6
4358 test -n "$MSGFMT" && break
4360 test -n "$MSGFMT" || MSGFMT="no"
4362 if test "$MSGFMT" = "no"
4364 echo 'msgfmt program not found, disabling NLS !'
4366 USE_INCLUDED_LIBINTL=no
4374 support_postgresql=no
4375 support_smartalloc=yes
4376 support_readline=yes
4379 support_wx_console=no
4381 support_static_tools=no
4382 support_static_fd=no
4383 support_static_sd=no
4384 support_static_dir=no
4385 support_static_cons=no
4387 build_client_only=no
4393 # -------------------------------------------
4394 # gnome (default off)
4395 # -------------------------------------------
4396 # Check whether --enable-gnome or --disable-gnome was given.
4397 if test "${enable_gnome+set}" = set; then
4398 enableval="$enable_gnome"
4399 if test x$enableval = xyes; then
4405 if test x$support_gnome = xyes; then
4406 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4408 if test $pkg = 0; then
4409 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4410 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4411 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4412 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4417 GNOME_DIR=src/gnome2-console
4418 gnome_version="Version 2.x"
4431 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4432 if test "${with_gnome_includes+set}" = set; then
4433 withval="$with_gnome_includes"
4435 CFLAGS="$CFLAGS -I$withval"
4440 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4441 if test "${with_gnome_libs+set}" = set; then
4442 withval="$with_gnome_libs"
4444 LDFLAGS="$LDFLAGS -L$withval"
4445 gnome_prefix=$withval
4450 # Check whether --with-gnome or --without-gnome was given.
4451 if test "${with_gnome+set}" = set; then
4452 withval="$with_gnome"
4453 if test x$withval = xyes; then
4457 if test "x$withval" = xno; then
4461 LDFLAGS="$LDFLAGS -L$withval/lib"
4462 CFLAGS="$CFLAGS -I$withval/include"
4463 gnome_prefix=$withval/lib
4470 if test "x$want_gnome" = xyes; then
4472 # Extract the first word of "gnome-config", so it can be a program name with args.
4473 set dummy gnome-config; ac_word=$2
4474 echo "$as_me:$LINENO: checking for $ac_word" >&5
4475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4476 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4477 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 case $GNOME_CONFIG in
4481 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4491 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4498 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4502 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4504 if test -n "$GNOME_CONFIG"; then
4505 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4506 echo "${ECHO_T}$GNOME_CONFIG" >&6
4508 echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6
4512 if test "$GNOME_CONFIG" = "no"; then
4513 no_gnome_config="yes"
4515 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4516 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4517 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4518 echo "$as_me:$LINENO: result: yes" >&5
4519 echo "${ECHO_T}yes" >&6
4522 # Extract the first word of "orbit-config", so it can be a program name with args.
4523 set dummy orbit-config; ac_word=$2
4524 echo "$as_me:$LINENO: checking for $ac_word" >&5
4525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4526 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4527 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 case $ORBIT_CONFIG in
4531 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4541 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4548 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4552 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4554 if test -n "$ORBIT_CONFIG"; then
4555 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4556 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4558 echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6
4562 # Extract the first word of "orbit-idl", so it can be a program name with args.
4563 set dummy orbit-idl; ac_word=$2
4564 echo "$as_me:$LINENO: checking for $ac_word" >&5
4565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4566 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4578 test -z "$as_dir" && as_dir=.
4579 for ac_exec_ext in '' $ac_executable_extensions; do
4580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4581 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4592 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4594 if test -n "$ORBIT_IDL"; then
4595 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4596 echo "${ECHO_T}$ORBIT_IDL" >&6
4598 echo "$as_me:$LINENO: result: no" >&5
4599 echo "${ECHO_T}no" >&6
4602 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4603 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4604 if test "${gnome_cv_orbit_found+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4608 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
4609 gnome_cv_orbit_found=no
4611 gnome_cv_orbit_found=yes
4615 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
4616 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
4619 if test x$gnome_cv_orbit_found = xyes; then
4621 HAVE_ORBIT_FALSE='#'
4626 if test x$gnome_cv_orbit_found = xyes; then
4628 ORBIT_CFLAGS=`orbit-config --cflags client server`
4629 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
4633 if test xfail = xfailure; then
4634 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
4635 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
4636 { (exit 1); exit 1; }; }
4640 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
4641 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
4642 if test "${gnome_cv_gnorba_found+set}" = set; then
4643 echo $ECHO_N "(cached) $ECHO_C" >&6
4646 gnome_cv_gnorba_found=no
4647 if test x$gnome_cv_orbit_found = xyes; then
4648 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4649 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4650 if test -n "$GNORBA_LIBS"; then
4651 gnome_cv_gnorba_found=yes
4656 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
4657 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
4660 if test x$gnome_cv_gnorba_found = xyes; then
4662 HAVE_GNORBA_FALSE='#'
4664 HAVE_GNORBA_TRUE='#'
4667 if test x$gnome_cv_orbit_found = xyes; then
4669 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
4670 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
4674 if test xfail = xfailure; then
4675 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
4676 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
4677 { (exit 1); exit 1; }; }
4681 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
4682 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
4683 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
4684 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
4685 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
4686 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
4687 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
4690 echo "$as_me:$LINENO: result: no" >&5
4691 echo "${ECHO_T}no" >&6
4692 no_gnome_config="yes"
4696 if test x$exec_prefix = xNONE; then
4697 if test x$prefix = xNONE; then
4698 gnome_prefix=$ac_default_prefix/lib
4700 gnome_prefix=$prefix/lib
4703 gnome_prefix=`eval echo \`echo $libdir\``
4706 if test "$no_gnome_config" = "yes"; then
4707 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
4708 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
4709 if test -f $gnome_prefix/gnomeConf.sh; then
4710 echo "$as_me:$LINENO: result: found" >&5
4711 echo "${ECHO_T}found" >&6
4712 echo "loading gnome configuration from" \
4713 "$gnome_prefix/gnomeConf.sh"
4714 . $gnome_prefix/gnomeConf.sh
4717 echo "$as_me:$LINENO: result: not found" >&5
4718 echo "${ECHO_T}not found" >&6
4719 if test xfail = xfail; then
4720 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
4721 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
4722 { (exit 1); exit 1; }; }
4731 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
4732 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
4736 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
4737 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
4738 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
4741 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
4742 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
4743 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
4746 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
4747 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
4748 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
4750 echo "$as_me:$LINENO: result: unknown library" >&5
4751 echo "${ECHO_T}unknown library" >&6
4753 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
4754 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
4759 GNOME_DIR=src/gnome-console
4760 gnome_version="Version 1.4"
4766 # -------------------------------------------
4767 # wx-console (default off)
4768 # -------------------------------------------
4769 # Check whether --enable-wx-console or --disable-wx-console was given.
4770 if test "${enable_wx_console+set}" = set; then
4771 enableval="$enable_wx_console"
4772 if test x$enableval = xyes; then
4773 support_wx_console=yes
4778 if test x$support_wx_console = xyes; then
4779 abc=`$WXCONFIG --cppflags`
4781 if test $pkg = 0; then
4782 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
4783 WXCONS_LDFLAGS=`$WXCONFIG --libs`
4786 WX_DIR=src/wx-console
4789 echo "wx-config program not found. wx-console disabled."
4791 support_wx_console=no
4797 # -------------------------------------------
4798 # tray-monitor (default off)
4799 # -------------------------------------------
4800 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4801 if test "${enable_tray_monitor+set}" = set; then
4802 enableval="$enable_tray_monitor"
4803 if test x$enableval = xyes; then
4804 support_tray_monitor=yes
4809 if test x$support_tray_monitor = xyes; then
4810 abc=`$PKGCONFIG --exists gtk+-2.0`
4812 if test $pkg = 0; then
4813 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4814 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4817 TRAY_MONITOR_DIR=src/tray-monitor
4818 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4820 if test $pkg = 0; then
4821 cat >>confdefs.h <<\_ACEOF
4822 #define HAVE_GTK_2_4 1
4830 # -------------------------------------------
4831 # smartalloc (default off)
4832 # -------------------------------------------
4833 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4834 if test "${enable_smartalloc+set}" = set; then
4835 enableval="$enable_smartalloc"
4836 if test x$enableval = xno; then
4837 support_smartalloc=no
4841 if test x$support_smartalloc = xyes; then
4842 cat >>confdefs.h <<\_ACEOF
4843 #define SMARTALLOC 1
4848 # -------------------------------------------
4849 # static-tools (default off)
4850 # -------------------------------------------
4851 # Check whether --enable-static-tools or --disable-static-tools was given.
4852 if test "${enable_static_tools+set}" = set; then
4853 enableval="$enable_static_tools"
4854 if test x$enableval = xyes; then
4855 support_static_tools=yes
4860 if test x$support_static_tools = xyes; then
4861 TTOOL_LDFLAGS="-static"
4865 # -------------------------------------------
4866 # static-fd (default off)
4867 # -------------------------------------------
4868 # Check whether --enable-static-fd or --disable-static-fd was given.
4869 if test "${enable_static_fd+set}" = set; then
4870 enableval="$enable_static_fd"
4871 if test x$enableval = xyes; then
4872 support_static_fd=yes
4877 if test x$support_static_fd = xyes; then
4878 STATIC_FD="static-bacula-fd"
4882 # -------------------------------------------
4883 # static-sd (default off)
4884 # -------------------------------------------
4885 # Check whether --enable-static-sd or --disable-static-sd was given.
4886 if test "${enable_static_sd+set}" = set; then
4887 enableval="$enable_static_sd"
4888 if test x$enableval = xyes; then
4889 support_static_sd=yes
4894 if test x$support_static_sd = xyes; then
4895 STATIC_SD="static-bacula-sd"
4899 # -------------------------------------------
4900 # static-dir (default off)
4901 # -------------------------------------------
4902 # Check whether --enable-static-dir or --disable-static-dir was given.
4903 if test "${enable_static_dir+set}" = set; then
4904 enableval="$enable_static_dir"
4905 if test x$enableval = xyes; then
4906 support_static_dir=yes
4911 if test x$support_static_dir = xyes; then
4912 STATIC_DIR="static-bacula-dir"
4916 # -------------------------------------------
4917 # static-cons (default off)
4918 # -------------------------------------------
4919 # Check whether --enable-static-cons or --disable-static-cons was given.
4920 if test "${enable_static_cons+set}" = set; then
4921 enableval="$enable_static_cons"
4922 if test x$enableval = xyes; then
4923 support_static_cons=yes
4930 if test x$support_static_cons = xyes; then
4931 STATIC_CONS="static-bconsole"
4932 STATIC_GNOME_CONS="static-gnome-console"
4933 STATIC_WX_CONS="static-wx-console"
4939 # -------------------------------------------
4940 # client_only (default off)
4941 # -------------------------------------------
4942 # Check whether --enable-client-only or --disable-client-only was given.
4943 if test "${enable_client_only+set}" = set; then
4944 enableval="$enable_client_only"
4945 if test x$enableval = xyes; then
4946 build_client_only=yes
4951 if test x$build_client_only = xno; then
4958 # ---------------------------------------------------
4959 # Check for conio (Bacula readline substitute)(
4960 # ---------------------------------------------------
4961 # this allows you to turn it completely off
4962 # Check whether --enable-conio or --disable-conio was given.
4963 if test "${enable_conio+set}" = set; then
4964 enableval="$enable_conio"
4965 if test x$enableval = xno; then
4971 if test x$support_conio = xyes; then
4972 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4973 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4974 if test "${ac_cv_header_stdc+set}" = set; then
4975 echo $ECHO_N "(cached) $ECHO_C" >&6
4977 cat >conftest.$ac_ext <<_ACEOF
4978 #line $LINENO "configure"
4981 cat confdefs.h >>conftest.$ac_ext
4982 cat >>conftest.$ac_ext <<_ACEOF
4983 /* end confdefs.h. */
4997 rm -f conftest.$ac_objext
4998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4999 (eval $ac_compile) 2>&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); } &&
5003 { ac_try='test -s conftest.$ac_objext'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; }; then
5009 ac_cv_header_stdc=yes
5011 echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5014 ac_cv_header_stdc=no
5016 rm -f conftest.$ac_objext conftest.$ac_ext
5018 if test $ac_cv_header_stdc = yes; then
5019 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5020 cat >conftest.$ac_ext <<_ACEOF
5021 #line $LINENO "configure"
5024 cat confdefs.h >>conftest.$ac_ext
5025 cat >>conftest.$ac_ext <<_ACEOF
5026 /* end confdefs.h. */
5030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5031 $EGREP "memchr" >/dev/null 2>&1; then
5034 ac_cv_header_stdc=no
5040 if test $ac_cv_header_stdc = yes; then
5041 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5042 cat >conftest.$ac_ext <<_ACEOF
5043 #line $LINENO "configure"
5046 cat confdefs.h >>conftest.$ac_ext
5047 cat >>conftest.$ac_ext <<_ACEOF
5048 /* end confdefs.h. */
5052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5053 $EGREP "free" >/dev/null 2>&1; then
5056 ac_cv_header_stdc=no
5062 if test $ac_cv_header_stdc = yes; then
5063 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5064 if test "$cross_compiling" = yes; then
5067 cat >conftest.$ac_ext <<_ACEOF
5068 #line $LINENO "configure"
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5075 #if ((' ' & 0x0FF) == 0x020)
5076 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5077 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5079 # define ISLOWER(c) \
5080 (('a' <= (c) && (c) <= 'i') \
5081 || ('j' <= (c) && (c) <= 'r') \
5082 || ('s' <= (c) && (c) <= 'z'))
5083 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5086 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5091 for (i = 0; i < 256; i++)
5092 if (XOR (islower (i), ISLOWER (i))
5093 || toupper (i) != TOUPPER (i))
5098 rm -f conftest$ac_exeext
5099 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5100 (eval $ac_link) 2>&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; }; then
5111 echo "$as_me: program exited with status $ac_status" >&5
5112 echo "$as_me: failed program was:" >&5
5113 sed 's/^/| /' conftest.$ac_ext >&5
5116 ac_cv_header_stdc=no
5118 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5122 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5123 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5124 if test $ac_cv_header_stdc = yes; then
5126 cat >>confdefs.h <<\_ACEOF
5127 #define STDC_HEADERS 1
5132 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5142 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5143 inttypes.h stdint.h unistd.h
5145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5146 echo "$as_me:$LINENO: checking for $ac_header" >&5
5147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 cat >conftest.$ac_ext <<_ACEOF
5152 #line $LINENO "configure"
5155 cat confdefs.h >>conftest.$ac_ext
5156 cat >>conftest.$ac_ext <<_ACEOF
5157 /* end confdefs.h. */
5158 $ac_includes_default
5160 #include <$ac_header>
5162 rm -f conftest.$ac_objext
5163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5164 (eval $ac_compile) 2>&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } &&
5168 { ac_try='test -s conftest.$ac_objext'
5169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173 (exit $ac_status); }; }; then
5174 eval "$as_ac_Header=yes"
5176 echo "$as_me: failed program was:" >&5
5177 sed 's/^/| /' conftest.$ac_ext >&5
5179 eval "$as_ac_Header=no"
5181 rm -f conftest.$ac_objext conftest.$ac_ext
5183 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5184 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5186 cat >>confdefs.h <<_ACEOF
5187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5195 if test "${ac_cv_header_termcap_h+set}" = set; then
5196 echo "$as_me:$LINENO: checking for termcap.h" >&5
5197 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5198 if test "${ac_cv_header_termcap_h+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5201 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5202 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5204 # Is the header compilable?
5205 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5206 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5207 cat >conftest.$ac_ext <<_ACEOF
5208 #line $LINENO "configure"
5211 cat confdefs.h >>conftest.$ac_ext
5212 cat >>conftest.$ac_ext <<_ACEOF
5213 /* end confdefs.h. */
5214 $ac_includes_default
5215 #include <termcap.h>
5217 rm -f conftest.$ac_objext
5218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5219 (eval $ac_compile) 2>&5
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } &&
5223 { ac_try='test -s conftest.$ac_objext'
5224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); }; }; then
5229 ac_header_compiler=yes
5231 echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5234 ac_header_compiler=no
5236 rm -f conftest.$ac_objext conftest.$ac_ext
5237 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5238 echo "${ECHO_T}$ac_header_compiler" >&6
5240 # Is the header present?
5241 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5242 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5243 cat >conftest.$ac_ext <<_ACEOF
5244 #line $LINENO "configure"
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h. */
5250 #include <termcap.h>
5252 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5253 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5255 grep -v '^ *+' conftest.er1 >conftest.err
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } >/dev/null; then
5260 if test -s conftest.err; then
5261 ac_cpp_err=$ac_c_preproc_warn_flag
5268 if test -z "$ac_cpp_err"; then
5269 ac_header_preproc=yes
5271 echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5274 ac_header_preproc=no
5276 rm -f conftest.err conftest.$ac_ext
5277 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5278 echo "${ECHO_T}$ac_header_preproc" >&6
5280 # So? What about this header?
5281 case $ac_header_compiler:$ac_header_preproc in
5283 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5284 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5285 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5286 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5289 ## ------------------------------------ ##
5290 ## Report this to bug-autoconf@gnu.org. ##
5291 ## ------------------------------------ ##
5294 sed "s/^/$as_me: WARNING: /" >&2
5297 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5298 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5299 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5300 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5301 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5302 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5305 ## ------------------------------------ ##
5306 ## Report this to bug-autoconf@gnu.org. ##
5307 ## ------------------------------------ ##
5310 sed "s/^/$as_me: WARNING: /" >&2
5313 echo "$as_me:$LINENO: checking for termcap.h" >&5
5314 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5315 if test "${ac_cv_header_termcap_h+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 ac_cv_header_termcap_h=$ac_header_preproc
5320 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5321 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5324 if test $ac_cv_header_termcap_h = yes; then
5325 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5326 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5327 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 ac_check_lib_save_LIBS=$LIBS
5331 LIBS="-ltermcap $LIBS"
5332 cat >conftest.$ac_ext <<_ACEOF
5333 #line $LINENO "configure"
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h. */
5340 /* Override any gcc2 internal prototype to avoid an error. */
5344 /* We use char because int might match the return type of a gcc2
5345 builtin and then its argument prototype would still apply. */
5355 rm -f conftest.$ac_objext conftest$ac_exeext
5356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5357 (eval $ac_link) 2>&5
5359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360 (exit $ac_status); } &&
5361 { ac_try='test -s conftest$ac_exeext'
5362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); }; }; then
5367 ac_cv_lib_termcap_tgetent=yes
5369 echo "$as_me: failed program was:" >&5
5370 sed 's/^/| /' conftest.$ac_ext >&5
5372 ac_cv_lib_termcap_tgetent=no
5374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5375 LIBS=$ac_check_lib_save_LIBS
5377 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5378 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5379 if test $ac_cv_lib_termcap_tgetent = yes; then
5380 CONS_LIBS="-ltermcap"
5386 cat >>confdefs.h <<\_ACEOF
5387 #define HAVE_CONIO 1
5392 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5393 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5394 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5395 echo $ECHO_N "(cached) $ECHO_C" >&6
5397 ac_check_lib_save_LIBS=$LIBS
5398 LIBS="-lncurses $LIBS"
5399 cat >conftest.$ac_ext <<_ACEOF
5400 #line $LINENO "configure"
5403 cat confdefs.h >>conftest.$ac_ext
5404 cat >>conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h. */
5407 /* Override any gcc2 internal prototype to avoid an error. */
5411 /* We use char because int might match the return type of a gcc2
5412 builtin and then its argument prototype would still apply. */
5422 rm -f conftest.$ac_objext conftest$ac_exeext
5423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5424 (eval $ac_link) 2>&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } &&
5428 { ac_try='test -s conftest$ac_exeext'
5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; }; then
5434 ac_cv_lib_ncurses_tgetent=yes
5436 echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.$ac_ext >&5
5439 ac_cv_lib_ncurses_tgetent=no
5441 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5442 LIBS=$ac_check_lib_save_LIBS
5444 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5445 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5446 if test $ac_cv_lib_ncurses_tgetent = yes; then
5447 CONS_LIBS="-lncurses"
5453 cat >>confdefs.h <<\_ACEOF
5454 #define HAVE_CONIO 1
5467 for ac_header in curses.h
5469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5470 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5471 echo "$as_me:$LINENO: checking for $ac_header" >&5
5472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5473 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5479 # Is the header compilable?
5480 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5481 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5482 cat >conftest.$ac_ext <<_ACEOF
5483 #line $LINENO "configure"
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 $ac_includes_default
5490 #include <$ac_header>
5492 rm -f conftest.$ac_objext
5493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5494 (eval $ac_compile) 2>&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } &&
5498 { ac_try='test -s conftest.$ac_objext'
5499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); }; }; then
5504 ac_header_compiler=yes
5506 echo "$as_me: failed program was:" >&5
5507 sed 's/^/| /' conftest.$ac_ext >&5
5509 ac_header_compiler=no
5511 rm -f conftest.$ac_objext conftest.$ac_ext
5512 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5513 echo "${ECHO_T}$ac_header_compiler" >&6
5515 # Is the header present?
5516 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5517 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5518 cat >conftest.$ac_ext <<_ACEOF
5519 #line $LINENO "configure"
5522 cat confdefs.h >>conftest.$ac_ext
5523 cat >>conftest.$ac_ext <<_ACEOF
5524 /* end confdefs.h. */
5525 #include <$ac_header>
5527 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5528 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5530 grep -v '^ *+' conftest.er1 >conftest.err
5532 cat conftest.err >&5
5533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534 (exit $ac_status); } >/dev/null; then
5535 if test -s conftest.err; then
5536 ac_cpp_err=$ac_c_preproc_warn_flag
5543 if test -z "$ac_cpp_err"; then
5544 ac_header_preproc=yes
5546 echo "$as_me: failed program was:" >&5
5547 sed 's/^/| /' conftest.$ac_ext >&5
5549 ac_header_preproc=no
5551 rm -f conftest.err conftest.$ac_ext
5552 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5553 echo "${ECHO_T}$ac_header_preproc" >&6
5555 # So? What about this header?
5556 case $ac_header_compiler:$ac_header_preproc in
5558 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5559 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5564 ## ------------------------------------ ##
5565 ## Report this to bug-autoconf@gnu.org. ##
5566 ## ------------------------------------ ##
5569 sed "s/^/$as_me: WARNING: /" >&2
5572 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5573 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5574 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5575 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5580 ## ------------------------------------ ##
5581 ## Report this to bug-autoconf@gnu.org. ##
5582 ## ------------------------------------ ##
5585 sed "s/^/$as_me: WARNING: /" >&2
5588 echo "$as_me:$LINENO: checking for $ac_header" >&5
5589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5590 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5593 eval "$as_ac_Header=$ac_header_preproc"
5595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5600 cat >>confdefs.h <<_ACEOF
5601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5608 echo "$as_me:$LINENO: checking for term.h" >&5
5609 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5610 if test "${ac_cv_header_term_h+set}" = set; then
5611 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 cat >conftest.$ac_ext <<_ACEOF
5614 #line $LINENO "configure"
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5627 rm -f conftest.$ac_objext
5628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5629 (eval $ac_compile) 2>&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } &&
5633 { ac_try='test -s conftest.$ac_objext'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; }; then
5639 ac_cv_header_term_h=yes
5641 echo "$as_me: failed program was:" >&5
5642 sed 's/^/| /' conftest.$ac_ext >&5
5644 ac_cv_header_term_h=no
5646 rm -f conftest.$ac_objext conftest.$ac_ext
5648 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5649 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5650 if test $ac_cv_header_term_h = yes; then
5651 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5652 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5653 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 ac_check_lib_save_LIBS=$LIBS
5657 LIBS="-lcurses $LIBS"
5658 cat >conftest.$ac_ext <<_ACEOF
5659 #line $LINENO "configure"
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5666 /* Override any gcc2 internal prototype to avoid an error. */
5670 /* We use char because int might match the return type of a gcc2
5671 builtin and then its argument prototype would still apply. */
5681 rm -f conftest.$ac_objext conftest$ac_exeext
5682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683 (eval $ac_link) 2>&5
5685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686 (exit $ac_status); } &&
5687 { ac_try='test -s conftest$ac_exeext'
5688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); }; }; then
5693 ac_cv_lib_curses_tgetent=yes
5695 echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5698 ac_cv_lib_curses_tgetent=no
5700 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5701 LIBS=$ac_check_lib_save_LIBS
5703 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5704 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5705 if test $ac_cv_lib_curses_tgetent = yes; then
5706 CONS_LIBS="-lcurses"
5712 cat >>confdefs.h <<\_ACEOF
5713 #define HAVE_CONIO 1
5721 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5732 # ---------------------------------------------------
5733 # Check for readline support/directory (default off)
5734 # ---------------------------------------------------
5735 # this allows you to turn it completely off
5736 # Check whether --enable-readline or --disable-readline was given.
5737 if test "${enable_readline+set}" = set; then
5738 enableval="$enable_readline"
5739 if test x$enableval = xno; then
5746 if test x$support_readline = xyes; then
5748 # Check whether --with-readline or --without-readline was given.
5749 if test "${with_readline+set}" = set; then
5750 withval="$with_readline"
5752 case "$with_readline" in
5755 if test "$with_readline" != "yes"; then
5756 CONS_INC="-I${with_readline}"
5757 CONS_LDFLAGS="-L$with_readline"
5759 with_readline="/usr/include/readline"
5761 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5762 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5763 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5764 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5765 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5769 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5771 # Is the header compilable?
5772 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5773 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5774 cat >conftest.$ac_ext <<_ACEOF
5775 #line $LINENO "configure"
5778 cat confdefs.h >>conftest.$ac_ext
5779 cat >>conftest.$ac_ext <<_ACEOF
5780 /* end confdefs.h. */
5781 $ac_includes_default
5782 #include <${with_readline}/readline.h>
5784 rm -f conftest.$ac_objext
5785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5786 (eval $ac_compile) 2>&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } &&
5790 { ac_try='test -s conftest.$ac_objext'
5791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }; }; then
5796 ac_header_compiler=yes
5798 echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5801 ac_header_compiler=no
5803 rm -f conftest.$ac_objext conftest.$ac_ext
5804 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5805 echo "${ECHO_T}$ac_header_compiler" >&6
5807 # Is the header present?
5808 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
5809 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
5810 cat >conftest.$ac_ext <<_ACEOF
5811 #line $LINENO "configure"
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5817 #include <${with_readline}/readline.h>
5819 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5820 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5822 grep -v '^ *+' conftest.er1 >conftest.err
5824 cat conftest.err >&5
5825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5826 (exit $ac_status); } >/dev/null; then
5827 if test -s conftest.err; then
5828 ac_cpp_err=$ac_c_preproc_warn_flag
5835 if test -z "$ac_cpp_err"; then
5836 ac_header_preproc=yes
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5841 ac_header_preproc=no
5843 rm -f conftest.err conftest.$ac_ext
5844 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5845 echo "${ECHO_T}$ac_header_preproc" >&6
5847 # So? What about this header?
5848 case $ac_header_compiler:$ac_header_preproc in
5850 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
5851 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5852 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5853 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5856 ## ------------------------------------ ##
5857 ## Report this to bug-autoconf@gnu.org. ##
5858 ## ------------------------------------ ##
5861 sed "s/^/$as_me: WARNING: /" >&2
5864 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
5865 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
5866 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
5867 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
5868 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
5869 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
5872 ## ------------------------------------ ##
5873 ## Report this to bug-autoconf@gnu.org. ##
5874 ## ------------------------------------ ##
5877 sed "s/^/$as_me: WARNING: /" >&2
5880 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5881 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5882 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 eval "$as_ac_Header=$ac_header_preproc"
5887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5891 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5892 cat >>confdefs.h <<\_ACEOF
5893 #define HAVE_READLINE 1
5896 CONS_LIBS="-lreadline -ltermcap"
5901 echo "readline.h not found. readline turned off ..."
5913 # check for standard readline library
5914 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5915 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
5916 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
5917 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
5918 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
5921 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
5923 # Is the header compilable?
5924 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
5925 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
5926 cat >conftest.$ac_ext <<_ACEOF
5927 #line $LINENO "configure"
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5933 $ac_includes_default
5934 #include </usr/include/readline/readline.h>
5936 rm -f conftest.$ac_objext
5937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5938 (eval $ac_compile) 2>&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } &&
5942 { ac_try='test -s conftest.$ac_objext'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; }; then
5948 ac_header_compiler=yes
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 ac_header_compiler=no
5955 rm -f conftest.$ac_objext conftest.$ac_ext
5956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5957 echo "${ECHO_T}$ac_header_compiler" >&6
5959 # Is the header present?
5960 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
5961 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
5962 cat >conftest.$ac_ext <<_ACEOF
5963 #line $LINENO "configure"
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5969 #include </usr/include/readline/readline.h>
5971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5974 grep -v '^ *+' conftest.er1 >conftest.err
5976 cat conftest.err >&5
5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5978 (exit $ac_status); } >/dev/null; then
5979 if test -s conftest.err; then
5980 ac_cpp_err=$ac_c_preproc_warn_flag
5987 if test -z "$ac_cpp_err"; then
5988 ac_header_preproc=yes
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5993 ac_header_preproc=no
5995 rm -f conftest.err conftest.$ac_ext
5996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5997 echo "${ECHO_T}$ac_header_preproc" >&6
5999 # So? What about this header?
6000 case $ac_header_compiler:$ac_header_preproc in
6002 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6003 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6004 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6005 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6008 ## ------------------------------------ ##
6009 ## Report this to bug-autoconf@gnu.org. ##
6010 ## ------------------------------------ ##
6013 sed "s/^/$as_me: WARNING: /" >&2
6016 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6017 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6018 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6019 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6020 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6021 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6024 ## ------------------------------------ ##
6025 ## Report this to bug-autoconf@gnu.org. ##
6026 ## ------------------------------------ ##
6029 sed "s/^/$as_me: WARNING: /" >&2
6032 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6033 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6034 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6035 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6039 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6040 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6043 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6044 cat >>confdefs.h <<\_ACEOF
6045 #define HAVE_READLINE 1
6049 CONS_INC="-I/usr/include/readline"
6050 CONS_LIBS="-lreadline -ltermcap"
6054 # Did not find standard library, so try Bacula's default
6055 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6056 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6057 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6058 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6059 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6062 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6063 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6065 # Is the header compilable?
6066 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6067 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6068 cat >conftest.$ac_ext <<_ACEOF
6069 #line $LINENO "configure"
6072 cat confdefs.h >>conftest.$ac_ext
6073 cat >>conftest.$ac_ext <<_ACEOF
6074 /* end confdefs.h. */
6075 $ac_includes_default
6076 #include <${TOP_DIR}/depkgs/readline/readline.h>
6078 rm -f conftest.$ac_objext
6079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6080 (eval $ac_compile) 2>&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
6084 { ac_try='test -s conftest.$ac_objext'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; }; then
6090 ac_header_compiler=yes
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6095 ac_header_compiler=no
6097 rm -f conftest.$ac_objext conftest.$ac_ext
6098 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6099 echo "${ECHO_T}$ac_header_compiler" >&6
6101 # Is the header present?
6102 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6103 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6104 cat >conftest.$ac_ext <<_ACEOF
6105 #line $LINENO "configure"
6108 cat confdefs.h >>conftest.$ac_ext
6109 cat >>conftest.$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6111 #include <${TOP_DIR}/depkgs/readline/readline.h>
6113 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6114 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6116 grep -v '^ *+' conftest.er1 >conftest.err
6118 cat conftest.err >&5
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } >/dev/null; then
6121 if test -s conftest.err; then
6122 ac_cpp_err=$ac_c_preproc_warn_flag
6129 if test -z "$ac_cpp_err"; then
6130 ac_header_preproc=yes
6132 echo "$as_me: failed program was:" >&5
6133 sed 's/^/| /' conftest.$ac_ext >&5
6135 ac_header_preproc=no
6137 rm -f conftest.err conftest.$ac_ext
6138 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6139 echo "${ECHO_T}$ac_header_preproc" >&6
6141 # So? What about this header?
6142 case $ac_header_compiler:$ac_header_preproc in
6144 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6145 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6146 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6147 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6150 ## ------------------------------------ ##
6151 ## Report this to bug-autoconf@gnu.org. ##
6152 ## ------------------------------------ ##
6155 sed "s/^/$as_me: WARNING: /" >&2
6158 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6159 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6160 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6161 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6162 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6163 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6166 ## ------------------------------------ ##
6167 ## Report this to bug-autoconf@gnu.org. ##
6168 ## ------------------------------------ ##
6171 sed "s/^/$as_me: WARNING: /" >&2
6174 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6175 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 eval "$as_ac_Header=$ac_header_preproc"
6181 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6182 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6186 cat >>confdefs.h <<\_ACEOF
6187 #define HAVE_READLINE 1
6191 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6192 CONS_LIBS="-lreadline -lhistory -ltermcap"
6193 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6194 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6198 echo "readline.h not found. readline turned off ..."
6224 # Minimal stuff for readline Makefile configuration
6227 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6228 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6229 if test "${ac_cv_header_stat_broken+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 cat >conftest.$ac_ext <<_ACEOF
6233 #line $LINENO "configure"
6236 cat confdefs.h >>conftest.$ac_ext
6237 cat >>conftest.$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6239 #include <sys/types.h>
6240 #include <sys/stat.h>
6242 #if defined(S_ISBLK) && defined(S_IFDIR)
6243 # if S_ISBLK (S_IFDIR)
6248 #if defined(S_ISBLK) && defined(S_IFCHR)
6249 # if S_ISBLK (S_IFCHR)
6254 #if defined(S_ISLNK) && defined(S_IFREG)
6255 # if S_ISLNK (S_IFREG)
6260 #if defined(S_ISSOCK) && defined(S_IFREG)
6261 # if S_ISSOCK (S_IFREG)
6267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6268 $EGREP "You lose" >/dev/null 2>&1; then
6269 ac_cv_header_stat_broken=yes
6271 ac_cv_header_stat_broken=no
6276 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6277 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6278 if test $ac_cv_header_stat_broken = yes; then
6280 cat >>confdefs.h <<\_ACEOF
6281 #define STAT_MACROS_BROKEN 1
6292 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6293 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6294 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6295 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 cat >conftest.$ac_ext <<_ACEOF
6300 #line $LINENO "configure"
6303 cat confdefs.h >>conftest.$ac_ext
6304 cat >>conftest.$ac_ext <<_ACEOF
6305 /* end confdefs.h. */
6306 #include <sys/types.h>
6318 rm -f conftest.$ac_objext
6319 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6320 (eval $ac_compile) 2>&5
6322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } &&
6324 { ac_try='test -s conftest.$ac_objext'
6325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); }; }; then
6330 eval "$as_ac_Header=yes"
6332 echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6335 eval "$as_ac_Header=no"
6337 rm -f conftest.$ac_objext conftest.$ac_ext
6339 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6340 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6341 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6342 cat >>confdefs.h <<_ACEOF
6343 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6346 ac_header_dirent=$ac_hdr; break
6350 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6351 if test $ac_header_dirent = dirent.h; then
6352 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6353 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6354 if test "${ac_cv_search_opendir+set}" = set; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 ac_func_search_save_LIBS=$LIBS
6358 ac_cv_search_opendir=no
6359 cat >conftest.$ac_ext <<_ACEOF
6360 #line $LINENO "configure"
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6367 /* Override any gcc2 internal prototype to avoid an error. */
6371 /* We use char because int might match the return type of a gcc2
6372 builtin and then its argument prototype would still apply. */
6382 rm -f conftest.$ac_objext conftest$ac_exeext
6383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6384 (eval $ac_link) 2>&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } &&
6388 { ac_try='test -s conftest$ac_exeext'
6389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); }; }; then
6394 ac_cv_search_opendir="none required"
6396 echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6401 if test "$ac_cv_search_opendir" = no; then
6402 for ac_lib in dir; do
6403 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6404 cat >conftest.$ac_ext <<_ACEOF
6405 #line $LINENO "configure"
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6412 /* Override any gcc2 internal prototype to avoid an error. */
6416 /* We use char because int might match the return type of a gcc2
6417 builtin and then its argument prototype would still apply. */
6427 rm -f conftest.$ac_objext conftest$ac_exeext
6428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6429 (eval $ac_link) 2>&5
6431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6432 (exit $ac_status); } &&
6433 { ac_try='test -s conftest$ac_exeext'
6434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); }; }; then
6439 ac_cv_search_opendir="-l$ac_lib"
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6446 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6449 LIBS=$ac_func_search_save_LIBS
6451 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6452 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6453 if test "$ac_cv_search_opendir" != no; then
6454 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6459 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6460 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6461 if test "${ac_cv_search_opendir+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 ac_func_search_save_LIBS=$LIBS
6465 ac_cv_search_opendir=no
6466 cat >conftest.$ac_ext <<_ACEOF
6467 #line $LINENO "configure"
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6474 /* Override any gcc2 internal prototype to avoid an error. */
6478 /* We use char because int might match the return type of a gcc2
6479 builtin and then its argument prototype would still apply. */
6489 rm -f conftest.$ac_objext conftest$ac_exeext
6490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6491 (eval $ac_link) 2>&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6494 (exit $ac_status); } &&
6495 { ac_try='test -s conftest$ac_exeext'
6496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6500 (exit $ac_status); }; }; then
6501 ac_cv_search_opendir="none required"
6503 echo "$as_me: failed program was:" >&5
6504 sed 's/^/| /' conftest.$ac_ext >&5
6507 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6508 if test "$ac_cv_search_opendir" = no; then
6510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6511 cat >conftest.$ac_ext <<_ACEOF
6512 #line $LINENO "configure"
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h. */
6519 /* Override any gcc2 internal prototype to avoid an error. */
6523 /* We use char because int might match the return type of a gcc2
6524 builtin and then its argument prototype would still apply. */
6534 rm -f conftest.$ac_objext conftest$ac_exeext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6536 (eval $ac_link) 2>&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); } &&
6540 { ac_try='test -s conftest$ac_exeext'
6541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; }; then
6546 ac_cv_search_opendir="-l$ac_lib"
6549 echo "$as_me: failed program was:" >&5
6550 sed 's/^/| /' conftest.$ac_ext >&5
6553 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6556 LIBS=$ac_func_search_save_LIBS
6558 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6559 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6560 if test "$ac_cv_search_opendir" != no; then
6561 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6575 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6577 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6578 echo "$as_me:$LINENO: checking for $ac_func" >&5
6579 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6580 if eval "test \"\${$as_ac_var+set}\" = set"; then
6581 echo $ECHO_N "(cached) $ECHO_C" >&6
6583 cat >conftest.$ac_ext <<_ACEOF
6584 #line $LINENO "configure"
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 /* System header to define __stub macros and hopefully few prototypes,
6591 which can conflict with char $ac_func (); below.
6592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6593 <limits.h> exists even on freestanding compilers. */
6595 # include <limits.h>
6597 # include <assert.h>
6599 /* Override any gcc2 internal prototype to avoid an error. */
6604 /* We use char because int might match the return type of a gcc2
6605 builtin and then its argument prototype would still apply. */
6607 /* The GNU C library defines this for functions which it implements
6608 to always fail with ENOSYS. Some functions are actually named
6609 something starting with __ and the normal name is an alias. */
6610 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6613 char (*f) () = $ac_func;
6622 return f != $ac_func;
6627 rm -f conftest.$ac_objext conftest$ac_exeext
6628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6629 (eval $ac_link) 2>&5
6631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632 (exit $ac_status); } &&
6633 { ac_try='test -s conftest$ac_exeext'
6634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); }; }; then
6639 eval "$as_ac_var=yes"
6641 echo "$as_me: failed program was:" >&5
6642 sed 's/^/| /' conftest.$ac_ext >&5
6644 eval "$as_ac_var=no"
6646 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6648 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6649 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6650 if test `eval echo '${'$as_ac_var'}'` = yes; then
6651 cat >>confdefs.h <<_ACEOF
6652 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6660 for ac_func in nanosleep nl_langinfo
6662 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6663 echo "$as_me:$LINENO: checking for $ac_func" >&5
6664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6665 if eval "test \"\${$as_ac_var+set}\" = set"; then
6666 echo $ECHO_N "(cached) $ECHO_C" >&6
6668 cat >conftest.$ac_ext <<_ACEOF
6669 #line $LINENO "configure"
6672 cat confdefs.h >>conftest.$ac_ext
6673 cat >>conftest.$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6675 /* System header to define __stub macros and hopefully few prototypes,
6676 which can conflict with char $ac_func (); below.
6677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6678 <limits.h> exists even on freestanding compilers. */
6680 # include <limits.h>
6682 # include <assert.h>
6684 /* Override any gcc2 internal prototype to avoid an error. */
6689 /* We use char because int might match the return type of a gcc2
6690 builtin and then its argument prototype would still apply. */
6692 /* The GNU C library defines this for functions which it implements
6693 to always fail with ENOSYS. Some functions are actually named
6694 something starting with __ and the normal name is an alias. */
6695 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6698 char (*f) () = $ac_func;
6707 return f != $ac_func;
6712 rm -f conftest.$ac_objext conftest$ac_exeext
6713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6714 (eval $ac_link) 2>&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); } &&
6718 { ac_try='test -s conftest$ac_exeext'
6719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723 (exit $ac_status); }; }; then
6724 eval "$as_ac_var=yes"
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6729 eval "$as_ac_var=no"
6731 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6733 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6734 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6735 if test `eval echo '${'$as_ac_var'}'` = yes; then
6736 cat >>confdefs.h <<_ACEOF
6737 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6744 for ac_header in varargs.h
6746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6748 echo "$as_me:$LINENO: checking for $ac_header" >&5
6749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6750 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6756 # Is the header compilable?
6757 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6759 cat >conftest.$ac_ext <<_ACEOF
6760 #line $LINENO "configure"
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h. */
6766 $ac_includes_default
6767 #include <$ac_header>
6769 rm -f conftest.$ac_objext
6770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6771 (eval $ac_compile) 2>&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); } &&
6775 { ac_try='test -s conftest.$ac_objext'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; }; then
6781 ac_header_compiler=yes
6783 echo "$as_me: failed program was:" >&5
6784 sed 's/^/| /' conftest.$ac_ext >&5
6786 ac_header_compiler=no
6788 rm -f conftest.$ac_objext conftest.$ac_ext
6789 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6790 echo "${ECHO_T}$ac_header_compiler" >&6
6792 # Is the header present?
6793 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6794 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6795 cat >conftest.$ac_ext <<_ACEOF
6796 #line $LINENO "configure"
6799 cat confdefs.h >>conftest.$ac_ext
6800 cat >>conftest.$ac_ext <<_ACEOF
6801 /* end confdefs.h. */
6802 #include <$ac_header>
6804 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6805 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6807 grep -v '^ *+' conftest.er1 >conftest.err
6809 cat conftest.err >&5
6810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6811 (exit $ac_status); } >/dev/null; then
6812 if test -s conftest.err; then
6813 ac_cpp_err=$ac_c_preproc_warn_flag
6820 if test -z "$ac_cpp_err"; then
6821 ac_header_preproc=yes
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6826 ac_header_preproc=no
6828 rm -f conftest.err conftest.$ac_ext
6829 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6830 echo "${ECHO_T}$ac_header_preproc" >&6
6832 # So? What about this header?
6833 case $ac_header_compiler:$ac_header_preproc in
6835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6841 ## ------------------------------------ ##
6842 ## Report this to bug-autoconf@gnu.org. ##
6843 ## ------------------------------------ ##
6846 sed "s/^/$as_me: WARNING: /" >&2
6849 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6851 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6852 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6857 ## ------------------------------------ ##
6858 ## Report this to bug-autoconf@gnu.org. ##
6859 ## ------------------------------------ ##
6862 sed "s/^/$as_me: WARNING: /" >&2
6865 echo "$as_me:$LINENO: checking for $ac_header" >&5
6866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 eval "$as_ac_Header=$ac_header_preproc"
6872 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6873 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6877 cat >>confdefs.h <<_ACEOF
6878 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6886 # End of readline/conio stuff
6887 # -----------------------------------------------------------------------
6889 # -----------------------------------------------------------------------
6890 # Check for Python support
6892 echo "$as_me:$LINENO: checking for Python support" >&5
6893 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
6895 # Check whether --with-python or --without-python was given.
6896 if test "${with_python+set}" = set; then
6897 withval="$with_python"
6901 if test "$withval" != "no"; then
6902 if test "$withval" = "yes"; then
6903 if test -f /usr/include/python2.2/Python.h; then
6904 PYTHON_INCDIR=-I/usr/include/python2.2
6905 PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
6906 elif test -f /usr/include/python2.3/Python.h; then
6907 PYTHON_INCDIR=-I/usr/include/python2.3
6908 PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
6909 elif test -f $prefix/include/Python.h; then
6910 PYTHON_INCDIR=-I$prefix/include
6911 PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
6913 echo "$as_me:$LINENO: result: no" >&5
6914 echo "${ECHO_T}no" >&6
6915 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
6916 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
6917 { (exit 1); exit 1; }; }
6920 if test -f $withval/Python.h; then
6921 PYTHON_INCDIR=-I$withval
6922 PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
6923 elif test -f $withval/include/Python.h; then
6924 PYTHON_INCDIR=-I$withval/include
6925 PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
6927 echo "$as_me:$LINENO: result: no" >&5
6928 echo "${ECHO_T}no" >&6
6929 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
6930 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
6931 { (exit 1); exit 1; }; }
6934 cat >>confdefs.h <<\_ACEOF
6935 #define HAVE_PYTHON 1
6938 echo "$as_me:$LINENO: result: yes" >&5
6939 echo "${ECHO_T}yes" >&6
6943 echo "$as_me:$LINENO: result: no" >&5
6944 echo "${ECHO_T}no" >&6
6949 echo "$as_me:$LINENO: result: no" >&5
6950 echo "${ECHO_T}no" >&6
6957 # -------------------------------------------
6958 # check for cdrecord writer location
6959 # get scsibus,target,lun
6960 # -------------------------------------------
6962 if test ! x$CDRECORD = x ; then
6963 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
6964 if test x${CDSTL} = x ; then
6965 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
6967 if test x${CDSTL} = x ; then
6974 # ---------------------------------------------------
6975 # Check for GMP support/directory
6976 # ---------------------------------------------------
6980 # [ --with-gmp[=DIR] Specify gmp library directory],
6982 # case "$with_gmp" in
6985 # if test "$with_gmp" != "yes"; then
6986 # GMP_INC="-I$with_gmp"
6988 # GMP_LDFLAGS="-L$with_gmp"
6990 # with_gmp="/usr/include"
6992 # AC_CHECK_HEADER($with_gmp/gmp.h,
6993 # [ AC_MSG_RESULT(yes)
6994 # AC_DEFINE(HAVE_GMP)
6998 # [ AC_MSG_ERROR([*** gmp library missing])
7004 # # check for standard gmp library
7005 # AC_CHECK_HEADER(/usr/include/gmp.h,
7006 # [ AC_MSG_RESULT(yes)
7007 # AC_DEFINE(HAVE_GMP)
7012 # # Did not find standard library, so use our own
7013 # AC_MSG_RESULT(yes)
7014 # AC_DEFINE(HAVE_GMP)
7017 # GMP_INC="-I${TOP_DIR}/depkgs/gmp"
7019 # GMP_LDFLAGS="-L${TOP_DIR}/depkgs/gmp"
7020 # GMP_SRC="${TOP_DIR}/depkgs/gmp"
7026 #AC_SUBST(GMP_LDFLAGS)
7030 # -----------------------------------------------------------------------
7033 # ---------------------------------------------------
7034 # Check for CWEB support/directory
7035 # ---------------------------------------------------
7040 # [ --with-cweb[=DIR] Specify cweb library directory],
7042 # case "$with_cweb" in
7045 # if test "$with_cweb" != "yes"; then
7046 # CWEB_INC="-I$with_cweb"
7047 # CWEB_LIBS="-lcweb"
7048 # CWEB_LDFLAGS="-L$with_cweb"
7050 # with_cweb="/usr/include"
7052 # AC_CHECK_HEADER($with_cweb/cweb.h,
7053 # [ AC_MSG_RESULT(yes)
7054 # AC_DEFINE(HAVE_CWEB)
7055 # CWEB_LIBS="-lcweb"
7058 # [ AC_MSG_ERROR([*** cweb library missing])
7064 # # check for standard cweb library
7065 # AC_CHECK_HEADER(/usr/include/cweb.h,
7066 # [ AC_MSG_RESULT(yes)
7067 # AC_DEFINE(HAVE_CWEB)
7070 # CWEB_LIBS="-lcweb"
7072 # # Did not find starndard library, so use our own
7073 # AC_MSG_RESULT(yes)
7074 # AC_DEFINE(HAVE_CWEB)
7077 # CWEB=${TOP_DIR}/depkgs/cweb
7078 # CWEB_INC="-I${TOP_DIR}/depkgs/cweb"
7079 # CWEB_LIBS="-lcweb"
7080 # CWEB_LDFLAGS="-L${TOP_DIR}/depkgs/cweb"
7081 # CWEB_SRC="${TOP_DIR}/depkgs/cweb"
7087 #AC_SUBST(CWEB_LIBS)
7088 #AC_SUBST(CWEB_LDFLAGS)
7092 # -----------------------------------------------------------------------
7095 # Find where sockets are (especially for Solaris)
7096 # Do this before the TCP Wrappers test since tcp wrappers
7097 # uses the socket library and some linkers are stupid.
7099 echo "$as_me:$LINENO: checking for socket" >&5
7100 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7101 if test "${ac_cv_func_socket+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 cat >conftest.$ac_ext <<_ACEOF
7105 #line $LINENO "configure"
7108 cat confdefs.h >>conftest.$ac_ext
7109 cat >>conftest.$ac_ext <<_ACEOF
7110 /* end confdefs.h. */
7111 /* System header to define __stub macros and hopefully few prototypes,
7112 which can conflict with char socket (); below.
7113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7114 <limits.h> exists even on freestanding compilers. */
7116 # include <limits.h>
7118 # include <assert.h>
7120 /* Override any gcc2 internal prototype to avoid an error. */
7125 /* We use char because int might match the return type of a gcc2
7126 builtin and then its argument prototype would still apply. */
7128 /* The GNU C library defines this for functions which it implements
7129 to always fail with ENOSYS. Some functions are actually named
7130 something starting with __ and the normal name is an alias. */
7131 #if defined (__stub_socket) || defined (__stub___socket)
7134 char (*f) () = socket;
7148 rm -f conftest.$ac_objext conftest$ac_exeext
7149 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7150 (eval $ac_link) 2>&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); } &&
7154 { ac_try='test -s conftest$ac_exeext'
7155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7159 (exit $ac_status); }; }; then
7160 ac_cv_func_socket=yes
7162 echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7165 ac_cv_func_socket=no
7167 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7169 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7170 echo "${ECHO_T}$ac_cv_func_socket" >&6
7171 if test $ac_cv_func_socket = yes; then
7172 echo "$as_me:$LINENO: result: using libc's socket" >&5
7173 echo "${ECHO_T}using libc's socket" >&6
7176 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7177 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7178 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7181 ac_check_lib_save_LIBS=$LIBS
7183 cat >conftest.$ac_ext <<_ACEOF
7184 #line $LINENO "configure"
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7191 /* Override any gcc2 internal prototype to avoid an error. */
7195 /* We use char because int might match the return type of a gcc2
7196 builtin and then its argument prototype would still apply. */
7206 rm -f conftest.$ac_objext conftest$ac_exeext
7207 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7208 (eval $ac_link) 2>&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } &&
7212 { ac_try='test -s conftest$ac_exeext'
7213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); }; }; then
7218 ac_cv_lib_xnet_socket=yes
7220 echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.$ac_ext >&5
7223 ac_cv_lib_xnet_socket=no
7225 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7226 LIBS=$ac_check_lib_save_LIBS
7228 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7229 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7230 if test $ac_cv_lib_xnet_socket = yes; then
7231 cat >>confdefs.h <<_ACEOF
7232 #define HAVE_LIBXNET 1
7240 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7241 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7242 if test "${ac_cv_lib_socket_socket+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 ac_check_lib_save_LIBS=$LIBS
7246 LIBS="-lsocket $LIBS"
7247 cat >conftest.$ac_ext <<_ACEOF
7248 #line $LINENO "configure"
7251 cat confdefs.h >>conftest.$ac_ext
7252 cat >>conftest.$ac_ext <<_ACEOF
7253 /* end confdefs.h. */
7255 /* Override any gcc2 internal prototype to avoid an error. */
7259 /* We use char because int might match the return type of a gcc2
7260 builtin and then its argument prototype would still apply. */
7270 rm -f conftest.$ac_objext conftest$ac_exeext
7271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7272 (eval $ac_link) 2>&5
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); } &&
7276 { ac_try='test -s conftest$ac_exeext'
7277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); }; }; then
7282 ac_cv_lib_socket_socket=yes
7284 echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.$ac_ext >&5
7287 ac_cv_lib_socket_socket=no
7289 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7290 LIBS=$ac_check_lib_save_LIBS
7292 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7293 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7294 if test $ac_cv_lib_socket_socket = yes; then
7295 cat >>confdefs.h <<_ACEOF
7296 #define HAVE_LIBSOCKET 1
7299 LIBS="-lsocket $LIBS"
7304 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7305 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7306 if test "${ac_cv_lib_inet_socket+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 ac_check_lib_save_LIBS=$LIBS
7311 cat >conftest.$ac_ext <<_ACEOF
7312 #line $LINENO "configure"
7315 cat confdefs.h >>conftest.$ac_ext
7316 cat >>conftest.$ac_ext <<_ACEOF
7317 /* end confdefs.h. */
7319 /* Override any gcc2 internal prototype to avoid an error. */
7323 /* We use char because int might match the return type of a gcc2
7324 builtin and then its argument prototype would still apply. */
7334 rm -f conftest.$ac_objext conftest$ac_exeext
7335 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7336 (eval $ac_link) 2>&5
7338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339 (exit $ac_status); } &&
7340 { ac_try='test -s conftest$ac_exeext'
7341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7345 (exit $ac_status); }; }; then
7346 ac_cv_lib_inet_socket=yes
7348 echo "$as_me: failed program was:" >&5
7349 sed 's/^/| /' conftest.$ac_ext >&5
7351 ac_cv_lib_inet_socket=no
7353 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7354 LIBS=$ac_check_lib_save_LIBS
7356 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7357 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7358 if test $ac_cv_lib_inet_socket = yes; then
7359 cat >>confdefs.h <<_ACEOF
7360 #define HAVE_LIBINET 1
7371 # -----------------------------------------------------------
7372 # Check whether user wants TCP wrappers support (default off)
7373 # -----------------------------------------------------------
7376 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7377 if test "${with_tcp_wrappers+set}" = set; then
7378 withval="$with_tcp_wrappers"
7380 if test "x$withval" != "xno" ; then
7382 LIBS="$saved_LIBS -lwrap"
7383 echo "$as_me:$LINENO: checking for libwrap" >&5
7384 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7385 cat >conftest.$ac_ext <<_ACEOF
7386 #line $LINENO "configure"
7389 cat confdefs.h >>conftest.$ac_ext
7390 cat >>conftest.$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7393 int deny_severity = 0;
7394 int allow_severity = 0;
7395 struct request_info *req;
7404 rm -f conftest.$ac_objext conftest$ac_exeext
7405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7406 (eval $ac_link) 2>&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } &&
7410 { ac_try='test -s conftest$ac_exeext'
7411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); }; }; then
7417 echo "$as_me:$LINENO: result: yes" >&5
7418 echo "${ECHO_T}yes" >&6
7419 cat >>confdefs.h <<\_ACEOF
7420 #define HAVE_LIBWRAP 1
7426 echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7430 LIBS="$saved_LIBS -lwrap -lnsl"
7431 cat >conftest.$ac_ext <<_ACEOF
7432 #line $LINENO "configure"
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h. */
7439 int deny_severity = 0;
7440 int allow_severity = 0;
7441 struct request_info *req;
7450 rm -f conftest.$ac_objext conftest$ac_exeext
7451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7452 (eval $ac_link) 2>&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } &&
7456 { ac_try='test -s conftest$ac_exeext'
7457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); }; }; then
7463 echo "$as_me:$LINENO: result: yes" >&5
7464 echo "${ECHO_T}yes" >&6
7465 cat >>confdefs.h <<\_ACEOF
7466 #define HAVE_LIBWRAP 1
7472 echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7475 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7476 echo "$as_me: error: *** libwrap missing" >&2;}
7477 { (exit 1); exit 1; }; }
7480 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7489 # ------------------------------------------
7490 # Where to place working dir
7491 # ------------------------------------------
7492 working_dir=`eval echo ${prefix}/var/bacula/working`
7494 # Check whether --with-working-dir or --without-working-dir was given.
7495 if test "${with_working_dir+set}" = set; then
7496 withval="$with_working_dir"
7498 if test "x$withval" != "xno" ; then
7499 working_dir=$withval
7508 # ------------------------------------------
7509 # Where to place scriptdir (script files)
7510 # ------------------------------------------
7511 scriptdir=`eval echo ${sysconfdir}`
7513 # Check whether --with-scriptdir or --without-scriptdir was given.
7514 if test "${with_scriptdir+set}" = set; then
7515 withval="$with_scriptdir"
7517 if test "x$withval" != "xno" ; then
7527 # ------------------------------------------
7528 # Where to send dump email
7529 # ------------------------------------------
7530 dump_email=root@localhost
7532 # Check whether --with-dump-email or --without-dump-email was given.
7533 if test "${with_dump_email+set}" = set; then
7534 withval="$with_dump_email"
7536 if test "x$withval" != "xno" ; then
7545 # ------------------------------------------
7546 # Where to send job email
7547 # ------------------------------------------
7548 job_email=root@localhost
7550 # Check whether --with-job-email or --without-job-email was given.
7551 if test "${with_job_email+set}" = set; then
7552 withval="$with_job_email"
7554 if test "x$withval" != "xno" ; then
7563 # ------------------------------------------
7564 # Where to find smtp host
7565 # ------------------------------------------
7568 # Check whether --with-smtp_host or --without-smtp_host was given.
7569 if test "${with_smtp_host+set}" = set; then
7570 withval="$with_smtp_host"
7572 if test "x$withval" != "xno" ; then
7582 # ------------------------------------
7583 # Where to place pid files
7584 # ------------------------------------
7587 # Check whether --with-pid-dir or --without-pid-dir was given.
7588 if test "${with_pid_dir+set}" = set; then
7589 withval="$with_pid_dir"
7591 if test "x$withval" != "xno" ; then
7598 cat >>confdefs.h <<_ACEOF
7599 #define _PATH_BACULA_PIDDIR "$piddir"
7605 # ------------------------------------
7606 # Where to place subsys "lock file"
7607 # ------------------------------------
7608 subsysdir=/var/run/subsys
7610 # Check whether --with-subsys-dir or --without-subsys-dir was given.
7611 if test "${with_subsys_dir+set}" = set; then
7612 withval="$with_subsys_dir"
7614 if test "x$withval" != "xno" ; then
7625 # ------------------------------------
7626 # Where to start assigning ports
7627 # ------------------------------------
7630 # Check whether --with-baseport or --without-baseport was given.
7631 if test "${with_baseport+set}" = set; then
7632 withval="$with_baseport"
7634 if test "x$withval" != "xno" ; then
7642 dir_port=`expr $baseport`
7643 fd_port=`expr $baseport + 1`
7644 sd_port=`expr $fd_port + 1`
7651 # ------------------------------------------
7652 # Generate passwords
7653 # ------------------------------------------
7656 # Check whether --with-dir-password or --without-dir-password was given.
7657 if test "${with_dir_password+set}" = set; then
7658 withval="$with_dir_password"
7660 if test "x$withval" != "xno" ; then
7661 dir_password=$withval
7667 if test "x$dir_password" = "x" ; then
7668 if test "x$OPENSSL" = "xnone" ; then
7669 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7670 key=`autoconf/randpass 33`
7672 key=`openssl rand -base64 33`
7679 # Check whether --with-fd-password or --without-fd-password was given.
7680 if test "${with_fd_password+set}" = set; then
7681 withval="$with_fd_password"
7683 if test "x$withval" != "xno" ; then
7684 fd_password=$withval
7690 if test "x$fd_password" = "x" ; then
7691 if test "x$OPENSSL" = "xnone" ; then
7692 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7693 key=`autoconf/randpass 37`
7695 key=`openssl rand -base64 33`
7702 # Check whether --with-sd-password or --without-sd-password was given.
7703 if test "${with_sd_password+set}" = set; then
7704 withval="$with_sd_password"
7706 if test "x$withval" != "xno" ; then
7707 sd_password=$withval
7713 if test "x$sd_password" = "x" ; then
7714 if test "x$OPENSSL" = "xnone" ; then
7715 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7716 key=`autoconf/randpass 41`
7718 key=`openssl rand -base64 33`
7725 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
7726 if test "${with_mon_dir_password+set}" = set; then
7727 withval="$with_mon_dir_password"
7729 if test "x$withval" != "xno" ; then
7730 mon_dir_password=$withval
7736 if test "x$mon_dir_password" = "x" ; then
7737 if test "x$OPENSSL" = "xnone" ; then
7738 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
7739 key=`autoconf/randpass 33`
7741 key=`openssl rand -base64 33`
7743 mon_dir_password=$key
7748 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
7749 if test "${with_mon_fd_password+set}" = set; then
7750 withval="$with_mon_fd_password"
7752 if test "x$withval" != "xno" ; then
7753 mon_fd_password=$withval
7759 if test "x$mon_fd_password" = "x" ; then
7760 if test "x$OPENSSL" = "xnone" ; then
7761 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
7762 key=`autoconf/randpass 37`
7764 key=`openssl rand -base64 33`
7766 mon_fd_password=$key
7771 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
7772 if test "${with_mon_sd_password+set}" = set; then
7773 withval="$with_mon_sd_password"
7775 if test "x$withval" != "xno" ; then
7776 mon_sd_password=$withval
7782 if test "x$mon_sd_password" = "x" ; then
7783 if test "x$OPENSSL" = "xnone" ; then
7784 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
7785 key=`autoconf/randpass 41`
7787 key=`openssl rand -base64 33`
7789 mon_sd_password=$key
7799 # -------------------------------------------------------------------------
7800 # Set variables for bimagemgr installation
7801 # -------------------------------------------------------------------------
7802 bimagemgr_cgidir=/var/www/cgi-bin
7804 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
7805 if test "${with_bimagemgr_cgidir+set}" = set; then
7806 withval="$with_bimagemgr_cgidir"
7808 if test "x$withval" != "xno" ; then
7809 bimagemgr_cgidir=$withval
7815 bimagemgr_docdir=/var/www/html
7817 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
7818 if test "${with_bimagemgr_docdir+set}" = set; then
7819 withval="$with_bimagemgr_docdir"
7821 if test "x$withval" != "xno" ; then
7822 bimagemgr_docdir=$withval
7828 bimagemgr_binowner=root
7830 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
7831 if test "${with_bimagemgr_binowner+set}" = set; then
7832 withval="$with_bimagemgr_binowner"
7834 if test "x$withval" != "xno" ; then
7835 bimagemgr_binowner=$withval
7841 bimagemgr_bingroup=root
7843 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
7844 if test "${with_bimagemgr_bingroup+set}" = set; then
7845 withval="$with_bimagemgr_bingroup"
7847 if test "x$withval" != "xno" ; then
7848 bimagemgr_bingroup=$withval
7854 bimagemgr_dataowner=apache
7856 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
7857 if test "${with_bimagemgr_dataowner+set}" = set; then
7858 withval="$with_bimagemgr_dataowner"
7860 if test "x$withval" != "xno" ; then
7861 bimagemgr_dataowner=$withval
7867 bimagemgr_datagroup=apache
7869 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
7870 if test "${with_bimagemgr_datagroup+set}" = set; then
7871 withval="$with_bimagemgr_datagroup"
7873 if test "x$withval" != "xno" ; then
7874 bimagemgr_datagroup=$withval
7888 # Handle users and groups for each daemon
7892 # Check whether --with-dir_user or --without-dir_user was given.
7893 if test "${with_dir_user+set}" = set; then
7894 withval="$with_dir_user"
7896 if test "x$withval" != "x" ; then
7905 # Check whether --with-dir_group or --without-dir_group was given.
7906 if test "${with_dir_group+set}" = set; then
7907 withval="$with_dir_group"
7909 if test "x$withval" != "x" ; then
7918 # Check whether --with-sd_user or --without-sd_user was given.
7919 if test "${with_sd_user+set}" = set; then
7920 withval="$with_sd_user"
7922 if test "x$withval" != "x" ; then
7931 # Check whether --with-sd_group or --without-sd_group was given.
7932 if test "${with_sd_group+set}" = set; then
7933 withval="$with_sd_group"
7935 if test "x$withval" != "x" ; then
7944 # Check whether --with-fd_user or --without-fd_user was given.
7945 if test "${with_fd_user+set}" = set; then
7946 withval="$with_fd_user"
7948 if test "x$withval" != "x" ; then
7957 # Check whether --with-fd_group or --without-fd_group was given.
7958 if test "${with_fd_group+set}" = set; then
7959 withval="$with_fd_group"
7961 if test "x$withval" != "x" ; then
7979 # allow setting default executable permissions
7983 # Check whether --with-sbin-perm or --without-sbin-perm was given.
7984 if test "${with_sbin_perm+set}" = set; then
7985 withval="$with_sbin_perm"
7987 if test "x$withval" != "x" ; then
7996 # ------------------------------------------------
7997 # Bacula check for various SQL database engines
7998 # ------------------------------------------------
8001 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8002 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8004 # Check whether --with-postgresql or --without-postgresql was given.
8005 if test "${with_postgresql+set}" = set; then
8006 withval="$with_postgresql"
8008 if test "$withval" != "no"; then
8009 if test "$db_found" = "yes"; then
8010 echo "$as_me:$LINENO: result: error" >&5
8011 echo "${ECHO_T}error" >&6
8012 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8013 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8014 { (exit 1); exit 1; }; };
8016 if test "$withval" = "yes"; then
8017 if test -f /usr/local/include/libpq-fe.h; then
8018 POSTGRESQL_INCDIR=/usr/local/include
8019 POSTGRESQL_LIBDIR=/usr/local/lib
8020 POSTGRESQL_BINDIR=/usr/local/bin
8021 elif test -f /usr/include/libpq-fe.h; then
8022 POSTGRESQL_INCDIR=/usr/include
8023 POSTGRESQL_LIBDIR=/usr/lib
8024 POSTGRESQL_BINDIR=/usr/bin
8025 elif test -f /usr/include/pgsql/libpq-fe.h; then
8026 POSTGRESQL_INCDIR=/usr/include/pgsql
8027 POSTGRESQL_LIBDIR=/usr/lib/pgsql
8028 POSTGRESQL_BINDIR=/usr/bin
8029 elif test -f /usr/include/postgresql/libpq-fe.h; then
8030 POSTGRESQL_INCDIR=/usr/include/postgresql
8031 POSTGRESQL_LIBDIR=/usr/lib/postgresql
8032 POSTGRESQL_BINDIR=/usr/bin
8034 echo "$as_me:$LINENO: result: no" >&5
8035 echo "${ECHO_T}no" >&6
8036 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8037 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8038 { (exit 1); exit 1; }; }
8040 elif test -f $withval/include/libpq-fe.h; then
8041 POSTGRESQL_INCDIR=$withval/include
8042 POSTGRESQL_LIBDIR=$withval/lib
8043 POSTGRESQL_BINDIR=$withval/bin
8044 elif test -f $withval/include/postgresql/libpq-fe.h; then
8045 POSTGRESQL_INCDIR=$withval/include/postgresql
8046 POSTGRESQL_LIBDIR=$withval/lib
8047 POSTGRESQL_BINDIR=$withval/bin
8049 echo "$as_me:$LINENO: result: no" >&5
8050 echo "${ECHO_T}no" >&6
8051 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8052 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8053 { (exit 1); exit 1; }; }
8055 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8056 echo "$as_me:$LINENO: checking for crypt" >&5
8057 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8058 if test "${ac_cv_func_crypt+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 cat >conftest.$ac_ext <<_ACEOF
8062 #line $LINENO "configure"
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8068 /* System header to define __stub macros and hopefully few prototypes,
8069 which can conflict with char crypt (); below.
8070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8071 <limits.h> exists even on freestanding compilers. */
8073 # include <limits.h>
8075 # include <assert.h>
8077 /* Override any gcc2 internal prototype to avoid an error. */
8082 /* We use char because int might match the return type of a gcc2
8083 builtin and then its argument prototype would still apply. */
8085 /* The GNU C library defines this for functions which it implements
8086 to always fail with ENOSYS. Some functions are actually named
8087 something starting with __ and the normal name is an alias. */
8088 #if defined (__stub_crypt) || defined (__stub___crypt)
8091 char (*f) () = crypt;
8105 rm -f conftest.$ac_objext conftest$ac_exeext
8106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8107 (eval $ac_link) 2>&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } &&
8111 { ac_try='test -s conftest$ac_exeext'
8112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; }; then
8117 ac_cv_func_crypt=yes
8119 echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8126 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8127 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8128 if test $ac_cv_func_crypt = yes; then
8131 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8132 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8133 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8134 echo $ECHO_N "(cached) $ECHO_C" >&6
8136 ac_check_lib_save_LIBS=$LIBS
8137 LIBS="-lcrypt $LIBS"
8138 cat >conftest.$ac_ext <<_ACEOF
8139 #line $LINENO "configure"
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8146 /* Override any gcc2 internal prototype to avoid an error. */
8150 /* We use char because int might match the return type of a gcc2
8151 builtin and then its argument prototype would still apply. */
8161 rm -f conftest.$ac_objext conftest$ac_exeext
8162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8163 (eval $ac_link) 2>&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } &&
8167 { ac_try='test -s conftest$ac_exeext'
8168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; }; then
8173 ac_cv_lib_crypt_crypt=yes
8175 echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8178 ac_cv_lib_crypt_crypt=no
8180 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8181 LIBS=$ac_check_lib_save_LIBS
8183 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8184 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8185 if test $ac_cv_lib_crypt_crypt = yes; then
8186 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8191 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8192 SQL_LFLAGS=$POSTGRESQL_LFLAGS
8193 SQL_BINDIR=$POSTGRESQL_BINDIR
8194 cat >>confdefs.h <<\_ACEOF
8195 #define HAVE_POSTGRESQL 1
8198 echo "$as_me:$LINENO: result: yes" >&5
8199 echo "${ECHO_T}yes" >&6
8201 support_postgresql=yes
8205 echo "$as_me:$LINENO: result: no" >&5
8206 echo "${ECHO_T}no" >&6
8211 echo "$as_me:$LINENO: result: no" >&5
8212 echo "${ECHO_T}no" >&6
8223 echo "$as_me:$LINENO: checking for MySQL support" >&5
8224 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8226 # Check whether --with-mysql or --without-mysql was given.
8227 if test "${with_mysql+set}" = set; then
8228 withval="$with_mysql"
8230 if test "$withval" != "no"; then
8231 if test "$withval" = "yes"; then
8232 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8233 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8234 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8235 MYSQL_BINDIR=/usr/local/mysql/bin
8236 elif test -f /usr/include/mysql/mysql.h; then
8237 MYSQL_INCDIR=/usr/include/mysql
8238 MYSQL_LIBDIR=/usr/lib/mysql
8239 MYSQL_BINDIR=/usr/bin
8240 elif test -f /usr/include/mysql.h; then
8241 MYSQL_INCDIR=/usr/include
8242 MYSQL_LIBDIR=/usr/lib
8243 MYSQL_BINDIR=/usr/bin
8244 elif test -f /usr/local/include/mysql/mysql.h; then
8245 MYSQL_INCDIR=/usr/local/include/mysql
8246 MYSQL_LIBDIR=/usr/local/lib/mysql
8247 MYSQL_BINDIR=/usr/local/bin
8248 elif test -f /usr/local/include/mysql.h; then
8249 MYSQL_INCDIR=/usr/local/include
8250 MYSQL_LIBDIR=/usr/local/lib
8251 MYSQL_BINDIR=/usr/local/bin
8253 echo "$as_me:$LINENO: result: no" >&5
8254 echo "${ECHO_T}no" >&6
8255 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8256 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8257 { (exit 1); exit 1; }; }
8260 if test -f $withval/include/mysql/mysql.h; then
8261 MYSQL_INCDIR=$withval/include/mysql
8262 MYSQL_LIBDIR=$withval/lib/mysql
8263 MYSQL_BINDIR=$withval/bin
8264 elif test -f $withval/include/mysql.h; then
8265 MYSQL_INCDIR=$withval/include
8266 MYSQL_LIBDIR=$withval/lib
8267 MYSQL_BINDIR=$withval/bin
8269 echo "$as_me:$LINENO: result: no" >&5
8270 echo "${ECHO_T}no" >&6
8271 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8272 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8273 { (exit 1); exit 1; }; }
8276 SQL_INCLUDE=-I$MYSQL_INCDIR
8277 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8278 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8279 cat >>confdefs.h <<\_ACEOF
8280 #define HAVE_THREAD_SAFE_MYSQL 1
8284 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8286 SQL_BINDIR=$MYSQL_BINDIR
8288 cat >>confdefs.h <<\_ACEOF
8289 #define HAVE_MYSQL 1
8292 echo "$as_me:$LINENO: result: yes" >&5
8293 echo "${ECHO_T}yes" >&6
8300 echo "$as_me:$LINENO: result: no" >&5
8301 echo "${ECHO_T}no" >&6
8308 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8309 if test "${with_embedded_mysql+set}" = set; then
8310 withval="$with_embedded_mysql"
8312 if test "$withval" != "no"; then
8313 if test "$withval" = "yes"; then
8314 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8315 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8316 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8317 MYSQL_BINDIR=/usr/local/mysql/bin
8318 elif test -f /usr/include/mysql/mysql.h; then
8319 MYSQL_INCDIR=/usr/include/mysql
8320 MYSQL_LIBDIR=/usr/lib/mysql
8321 MYSQL_BINDIR=/usr/bin
8322 elif test -f /usr/include/mysql.h; then
8323 MYSQL_INCDIR=/usr/include
8324 MYSQL_LIBDIR=/usr/lib
8325 MYSQL_BINDIR=/usr/bin
8326 elif test -f /usr/local/include/mysql/mysql.h; then
8327 MYSQL_INCDIR=/usr/local/include/mysql
8328 MYSQL_LIBDIR=/usr/local/lib/mysql
8329 MYSQL_BINDIR=/usr/local/bin
8330 elif test -f /usr/local/include/mysql.h; then
8331 MYSQL_INCDIR=/usr/local/include
8332 MYSQL_LIBDIR=/usr/local/lib
8333 MYSQL_BINDIR=/usr/local/bin
8335 echo "$as_me:$LINENO: result: no" >&5
8336 echo "${ECHO_T}no" >&6
8337 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8338 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8339 { (exit 1); exit 1; }; }
8342 if test -f $withval/include/mysql/mysql.h; then
8343 MYSQL_INCDIR=$withval/include/mysql
8344 MYSQL_LIBDIR=$withval/lib/mysql
8345 MYSQL_BINDIR=$withval/bin
8346 elif test -f $withval/include/mysql.h; then
8347 MYSQL_INCDIR=$withval/include
8348 MYSQL_LIBDIR=$withval/lib
8349 MYSQL_BINDIR=$withval/bin
8351 echo "$as_me:$LINENO: result: no" >&5
8352 echo "${ECHO_T}no" >&6
8353 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8354 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8355 { (exit 1); exit 1; }; }
8358 SQL_INCLUDE=-I$MYSQL_INCDIR
8359 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8360 SQL_BINDIR=$MYSQL_BINDIR
8362 cat >>confdefs.h <<\_ACEOF
8363 #define HAVE_MYSQL 1
8366 cat >>confdefs.h <<\_ACEOF
8367 #define HAVE_EMBEDDED_MYSQL 1
8370 echo "$as_me:$LINENO: result: yes" >&5
8371 echo "${ECHO_T}yes" >&6
8378 echo "$as_me:$LINENO: result: no" >&5
8379 echo "${ECHO_T}no" >&6
8394 echo "$as_me:$LINENO: checking for SQLite support" >&5
8395 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
8397 # Check whether --with-sqlite or --without-sqlite was given.
8398 if test "${with_sqlite+set}" = set; then
8399 withval="$with_sqlite"
8401 if test "$withval" != "no"; then
8402 if test "$withval" = "yes"; then
8403 if test -f /usr/local/include/sqlite.h; then
8404 SQLITE_INCDIR=/usr/local/include
8405 SQLITE_LIBDIR=/usr/local/lib
8406 SQLITE_BINDIR=/usr/local/bin
8407 elif test -f /usr/include/sqlite.h; then
8408 SQLITE_INCDIR=/usr/include
8409 SQLITE_LIBDIR=/usr/lib
8410 SQLITE_BINDIR=/usr/bin
8411 elif test -f $prefix/include/sqlite.h; then
8412 SQLITE_INCDIR=$prefix/include
8413 SQLITE_LIBDIR=$prefix/lib
8414 SQLITE_BINDIR=$prefix/bin
8416 echo "$as_me:$LINENO: result: no" >&5
8417 echo "${ECHO_T}no" >&6
8418 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
8419 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
8420 { (exit 1); exit 1; }; }
8423 if test -f $withval/sqlite.h; then
8424 SQLITE_INCDIR=$withval
8425 SQLITE_LIBDIR=$withval
8426 SQLITE_BINDIR=$withval
8427 elif test -f $withval/include/sqlite.h; then
8428 SQLITE_INCDIR=$withval/include
8429 SQLITE_LIBDIR=$withval/lib
8430 SQLITE_BINDIR=$withval/bin
8432 echo "$as_me:$LINENO: result: no" >&5
8433 echo "${ECHO_T}no" >&6
8434 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
8435 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
8436 { (exit 1); exit 1; }; }
8439 SQL_INCLUDE=-I$SQLITE_INCDIR
8440 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
8441 SQL_BINDIR=$SQLITE_BINDIR
8443 cat >>confdefs.h <<\_ACEOF
8444 #define HAVE_SQLITE 1
8447 echo "$as_me:$LINENO: result: yes" >&5
8448 echo "${ECHO_T}yes" >&6
8455 echo "$as_me:$LINENO: result: no" >&5
8456 echo "${ECHO_T}no" >&6
8461 echo "$as_me:$LINENO: result: no" >&5
8462 echo "${ECHO_T}no" >&6
8474 cat >>confdefs.h <<\_ACEOF
8475 #define PROTOTYPES 1
8479 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
8480 if test -z "$CCOPTS"; then
8481 CCOPTS='-g -O2 -Wall'
8489 largefile_support="no"
8491 # Check whether --enable-largefile or --disable-largefile was given.
8492 if test "${enable_largefile+set}" = set; then
8493 enableval="$enable_largefile"
8496 if test "$enable_largefile" != no; then
8497 if test -n "$ac_tool_prefix"; then
8498 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
8499 set dummy ${ac_tool_prefix}getconf; ac_word=$2
8500 echo "$as_me:$LINENO: checking for $ac_word" >&5
8501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8502 if test "${ac_cv_prog_GETCONF+set}" = set; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
8505 if test -n "$GETCONF"; then
8506 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8512 test -z "$as_dir" && as_dir=.
8513 for ac_exec_ext in '' $ac_executable_extensions; do
8514 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8515 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
8516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8524 GETCONF=$ac_cv_prog_GETCONF
8525 if test -n "$GETCONF"; then
8526 echo "$as_me:$LINENO: result: $GETCONF" >&5
8527 echo "${ECHO_T}$GETCONF" >&6
8529 echo "$as_me:$LINENO: result: no" >&5
8530 echo "${ECHO_T}no" >&6
8534 if test -z "$ac_cv_prog_GETCONF"; then
8535 ac_ct_GETCONF=$GETCONF
8536 # Extract the first word of "getconf", so it can be a program name with args.
8537 set dummy getconf; ac_word=$2
8538 echo "$as_me:$LINENO: checking for $ac_word" >&5
8539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8540 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
8541 echo $ECHO_N "(cached) $ECHO_C" >&6
8543 if test -n "$ac_ct_GETCONF"; then
8544 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
8546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550 test -z "$as_dir" && as_dir=.
8551 for ac_exec_ext in '' $ac_executable_extensions; do
8552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8553 ac_cv_prog_ac_ct_GETCONF="getconf"
8554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8562 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
8563 if test -n "$ac_ct_GETCONF"; then
8564 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
8565 echo "${ECHO_T}$ac_ct_GETCONF" >&6
8567 echo "$as_me:$LINENO: result: no" >&5
8568 echo "${ECHO_T}no" >&6
8571 GETCONF=$ac_ct_GETCONF
8573 GETCONF="$ac_cv_prog_GETCONF"
8576 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
8577 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
8578 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
8579 echo $ECHO_N "(cached) $ECHO_C" >&6
8581 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
8582 ac_cv_sys_largefile_CFLAGS=no
8584 # IRIX 6.2 and later require cc -n32.
8585 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
8586 if test "$GCC" != yes; then
8587 ac_cv_sys_largefile_CFLAGS=-n32
8590 CC="$CC $ac_cv_sys_largefile_CFLAGS"
8591 cat >conftest.$ac_ext <<_ACEOF
8592 #line $LINENO "configure"
8595 cat confdefs.h >>conftest.$ac_ext
8596 cat >>conftest.$ac_ext <<_ACEOF
8597 /* end confdefs.h. */
8607 rm -f conftest.$ac_objext conftest$ac_exeext
8608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609 (eval $ac_link) 2>&5
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } &&
8613 { ac_try='test -s conftest$ac_exeext'
8614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 (exit $ac_status); }; }; then
8621 echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8624 ac_cv_sys_largefile_CFLAGS=no
8626 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8631 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
8632 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
8633 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
8634 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
8635 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8638 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
8639 ac_cv_sys_largefile_LDFLAGS=no
8643 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
8644 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
8645 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
8646 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
8647 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
8648 echo $ECHO_N "(cached) $ECHO_C" >&6
8650 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
8651 ac_cv_sys_largefile_LIBS=no
8655 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
8656 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
8658 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8661 -D_FILE_OFFSET_BITS=*) ;;
8662 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
8663 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
8669 '') CPPFLAGS="$ac_flag" ;;
8670 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
8678 '') CFLAGS="$ac_flag" ;;
8679 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
8684 case "$ac_cv_sys_largefile_LDFLAGS" in
8688 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
8689 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
8692 case "$ac_cv_sys_largefile_LIBS" in
8696 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
8697 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
8700 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
8701 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
8702 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8703 echo $ECHO_N "(cached) $ECHO_C" >&6
8705 ac_cv_sys_file_offset_bits=no
8706 ac_cv_sys_file_offset_bits=64
8707 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8709 -D_FILE_OFFSET_BITS)
8710 ac_cv_sys_file_offset_bits=1 ;;
8711 -D_FILE_OFFSET_BITS=*)
8712 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8717 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8718 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
8719 if test "$ac_cv_sys_file_offset_bits" != no; then
8721 cat >>confdefs.h <<_ACEOF
8722 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8726 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
8727 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
8728 if test "${ac_cv_sys_largefile_source+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8731 ac_cv_sys_largefile_source=no
8732 ac_cv_sys_largefile_source=1
8733 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8735 -D_LARGEFILE_SOURCE)
8736 ac_cv_sys_largefile_source=1 ;;
8737 -D_LARGEFILE_SOURCE=*)
8738 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8743 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8744 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
8745 if test "$ac_cv_sys_largefile_source" != no; then
8747 cat >>confdefs.h <<_ACEOF
8748 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8752 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
8753 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
8754 if test "${ac_cv_sys_large_files+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 ac_cv_sys_large_files=no
8758 ac_cv_sys_large_files=1
8759 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
8762 ac_cv_sys_large_files=1 ;;
8764 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
8769 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8770 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8771 if test "$ac_cv_sys_large_files" != no; then
8773 cat >>confdefs.h <<_ACEOF
8774 #define _LARGE_FILES $ac_cv_sys_large_files
8782 echo "$as_me:$LINENO: checking for X" >&5
8783 echo $ECHO_N "checking for X... $ECHO_C" >&6
8786 # Check whether --with-x or --without-x was given.
8787 if test "${with_x+set}" = set; then
8791 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8792 if test "x$with_x" = xno; then
8793 # The user explicitly disabled X.
8796 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
8797 # Both variables are already set.
8800 if test "${ac_cv_have_x+set}" = set; then
8801 echo $ECHO_N "(cached) $ECHO_C" >&6
8803 # One or both of the vars are not set, and there is no cached value.
8804 ac_x_includes=no ac_x_libraries=no
8806 if mkdir conftest.dir; then
8808 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
8809 cat >Imakefile <<'_ACEOF'
8811 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
8813 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
8814 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8815 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
8816 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8817 for ac_extension in a so sl; do
8818 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
8819 test -f $ac_im_libdir/libX11.$ac_extension; then
8820 ac_im_usrlibdir=$ac_im_libdir; break
8823 # Screen out bogus values from the imake configuration. They are
8824 # bogus both because they are the default anyway, and because
8825 # using them would break gcc on systems where it needs fixed includes.
8826 case $ac_im_incroot in
8828 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8830 case $ac_im_usrlibdir in
8832 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8839 # Standard set of common directories for X headers.
8840 # Check X11 before X11Rn because it is often a symlink to the current release.
8852 /usr/local/X11/include
8853 /usr/local/X11R6/include
8854 /usr/local/X11R5/include
8855 /usr/local/X11R4/include
8857 /usr/local/include/X11
8858 /usr/local/include/X11R6
8859 /usr/local/include/X11R5
8860 /usr/local/include/X11R4
8864 /usr/XFree86/include/X11
8868 /usr/unsupported/include
8870 /usr/local/x11r5/include
8871 /usr/lpp/Xamples/include
8873 /usr/openwin/include
8874 /usr/openwin/share/include'
8876 if test "$ac_x_includes" = no; then
8877 # Guess where to find include files, by looking for Intrinsic.h.
8878 # First, try using that file with no special directory specified.
8879 cat >conftest.$ac_ext <<_ACEOF
8880 #line $LINENO "configure"
8883 cat confdefs.h >>conftest.$ac_ext
8884 cat >>conftest.$ac_ext <<_ACEOF
8885 /* end confdefs.h. */
8886 #include <X11/Intrinsic.h>
8888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8891 grep -v '^ *+' conftest.er1 >conftest.err
8893 cat conftest.err >&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 (exit $ac_status); } >/dev/null; then
8896 if test -s conftest.err; then
8897 ac_cpp_err=$ac_c_preproc_warn_flag
8904 if test -z "$ac_cpp_err"; then
8905 # We can compile using X headers with no special include directory.
8908 echo "$as_me: failed program was:" >&5
8909 sed 's/^/| /' conftest.$ac_ext >&5
8911 for ac_dir in $ac_x_header_dirs; do
8912 if test -r "$ac_dir/X11/Intrinsic.h"; then
8913 ac_x_includes=$ac_dir
8918 rm -f conftest.err conftest.$ac_ext
8919 fi # $ac_x_includes = no
8921 if test "$ac_x_libraries" = no; then
8922 # Check for the libraries.
8923 # See if we find them without any special options.
8924 # Don't add to $LIBS permanently.
8927 cat >conftest.$ac_ext <<_ACEOF
8928 #line $LINENO "configure"
8931 cat confdefs.h >>conftest.$ac_ext
8932 cat >>conftest.$ac_ext <<_ACEOF
8933 /* end confdefs.h. */
8934 #include <X11/Intrinsic.h>
8943 rm -f conftest.$ac_objext conftest$ac_exeext
8944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8945 (eval $ac_link) 2>&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); } &&
8949 { ac_try='test -s conftest$ac_exeext'
8950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); }; }; then
8956 # We can link X programs with no special library path.
8959 echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8963 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8965 # Don't even attempt the hair of trying to link an X program!
8966 for ac_extension in a so sl; do
8967 if test -r $ac_dir/libXt.$ac_extension; then
8968 ac_x_libraries=$ac_dir
8974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8975 fi # $ac_x_libraries = no
8977 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
8978 # Didn't find X anywhere. Cache the known absence of X.
8979 ac_cv_have_x="have_x=no"
8981 # Record where we found X for the cache.
8982 ac_cv_have_x="have_x=yes \
8983 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
8988 eval "$ac_cv_have_x"
8991 if test "$have_x" != yes; then
8992 echo "$as_me:$LINENO: result: $have_x" >&5
8993 echo "${ECHO_T}$have_x" >&6
8996 # If each of the values was on the command line, it overrides each guess.
8997 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8998 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8999 # Update the cache value to reflect the command line values.
9000 ac_cv_have_x="have_x=yes \
9001 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9002 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9003 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9006 if test "$no_x" = yes; then
9007 # Not all programs may use this symbol, but it does not hurt to define it.
9009 cat >>confdefs.h <<\_ACEOF
9010 #define X_DISPLAY_MISSING 1
9013 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9015 if test -n "$x_includes"; then
9016 X_CFLAGS="$X_CFLAGS -I$x_includes"
9019 # It would also be nice to do this for all -L options, not just this one.
9020 if test -n "$x_libraries"; then
9021 X_LIBS="$X_LIBS -L$x_libraries"
9022 # For Solaris; some versions of Sun CC require a space after -R and
9023 # others require no space. Words are not sufficient . . . .
9024 case `(uname -sr) 2>/dev/null` in
9026 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9027 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9028 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9029 cat >conftest.$ac_ext <<_ACEOF
9030 #line $LINENO "configure"
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h. */
9045 rm -f conftest.$ac_objext conftest$ac_exeext
9046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9047 (eval $ac_link) 2>&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); } &&
9051 { ac_try='test -s conftest$ac_exeext'
9052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 (exit $ac_status); }; }; then
9059 echo "$as_me: failed program was:" >&5
9060 sed 's/^/| /' conftest.$ac_ext >&5
9064 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9065 if test $ac_R_nospace = yes; then
9066 echo "$as_me:$LINENO: result: no" >&5
9067 echo "${ECHO_T}no" >&6
9068 X_LIBS="$X_LIBS -R$x_libraries"
9070 LIBS="$ac_xsave_LIBS -R $x_libraries"
9071 cat >conftest.$ac_ext <<_ACEOF
9072 #line $LINENO "configure"
9075 cat confdefs.h >>conftest.$ac_ext
9076 cat >>conftest.$ac_ext <<_ACEOF
9077 /* end confdefs.h. */
9087 rm -f conftest.$ac_objext conftest$ac_exeext
9088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9089 (eval $ac_link) 2>&5
9091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9092 (exit $ac_status); } &&
9093 { ac_try='test -s conftest$ac_exeext'
9094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9098 (exit $ac_status); }; }; then
9101 echo "$as_me: failed program was:" >&5
9102 sed 's/^/| /' conftest.$ac_ext >&5
9106 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9107 if test $ac_R_space = yes; then
9108 echo "$as_me:$LINENO: result: yes" >&5
9109 echo "${ECHO_T}yes" >&6
9110 X_LIBS="$X_LIBS -R $x_libraries"
9112 echo "$as_me:$LINENO: result: neither works" >&5
9113 echo "${ECHO_T}neither works" >&6
9120 # Check for system-dependent libraries X programs must link with.
9121 # Do this before checking for the system-independent R6 libraries
9122 # (-lICE), since we may need -lsocket or whatever for X linking.
9124 if test "$ISC" = yes; then
9125 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9127 # Martyn Johnson says this is needed for Ultrix, if the X
9128 # libraries were built with DECnet support. And Karl Berry says
9129 # the Alpha needs dnet_stub (dnet does not exist).
9130 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9131 cat >conftest.$ac_ext <<_ACEOF
9132 #line $LINENO "configure"
9135 cat confdefs.h >>conftest.$ac_ext
9136 cat >>conftest.$ac_ext <<_ACEOF
9137 /* end confdefs.h. */
9139 /* Override any gcc2 internal prototype to avoid an error. */
9143 /* We use char because int might match the return type of a gcc2
9144 builtin and then its argument prototype would still apply. */
9145 char XOpenDisplay ();
9154 rm -f conftest.$ac_objext conftest$ac_exeext
9155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9156 (eval $ac_link) 2>&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); } &&
9160 { ac_try='test -s conftest$ac_exeext'
9161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
9168 echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9171 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9172 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9173 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9174 echo $ECHO_N "(cached) $ECHO_C" >&6
9176 ac_check_lib_save_LIBS=$LIBS
9178 cat >conftest.$ac_ext <<_ACEOF
9179 #line $LINENO "configure"
9182 cat confdefs.h >>conftest.$ac_ext
9183 cat >>conftest.$ac_ext <<_ACEOF
9184 /* end confdefs.h. */
9186 /* Override any gcc2 internal prototype to avoid an error. */
9190 /* We use char because int might match the return type of a gcc2
9191 builtin and then its argument prototype would still apply. */
9201 rm -f conftest.$ac_objext conftest$ac_exeext
9202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9203 (eval $ac_link) 2>&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } &&
9207 { ac_try='test -s conftest$ac_exeext'
9208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; }; then
9213 ac_cv_lib_dnet_dnet_ntoa=yes
9215 echo "$as_me: failed program was:" >&5
9216 sed 's/^/| /' conftest.$ac_ext >&5
9218 ac_cv_lib_dnet_dnet_ntoa=no
9220 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9221 LIBS=$ac_check_lib_save_LIBS
9223 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9224 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9225 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9226 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9229 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9230 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9231 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9232 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9235 ac_check_lib_save_LIBS=$LIBS
9236 LIBS="-ldnet_stub $LIBS"
9237 cat >conftest.$ac_ext <<_ACEOF
9238 #line $LINENO "configure"
9241 cat confdefs.h >>conftest.$ac_ext
9242 cat >>conftest.$ac_ext <<_ACEOF
9243 /* end confdefs.h. */
9245 /* Override any gcc2 internal prototype to avoid an error. */
9249 /* We use char because int might match the return type of a gcc2
9250 builtin and then its argument prototype would still apply. */
9260 rm -f conftest.$ac_objext conftest$ac_exeext
9261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9262 (eval $ac_link) 2>&5
9264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9265 (exit $ac_status); } &&
9266 { ac_try='test -s conftest$ac_exeext'
9267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9274 echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9277 ac_cv_lib_dnet_stub_dnet_ntoa=no
9279 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9280 LIBS=$ac_check_lib_save_LIBS
9282 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9283 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9284 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9285 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9290 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9291 LIBS="$ac_xsave_LIBS"
9293 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9294 # to get the SysV transport functions.
9295 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9297 # The nsl library prevents programs from opening the X display
9298 # on Irix 5.2, according to T.E. Dickey.
9299 # The functions gethostbyname, getservbyname, and inet_addr are
9300 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9301 echo "$as_me:$LINENO: checking for gethostbyname" >&5
9302 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9303 if test "${ac_cv_func_gethostbyname+set}" = set; then
9304 echo $ECHO_N "(cached) $ECHO_C" >&6
9306 cat >conftest.$ac_ext <<_ACEOF
9307 #line $LINENO "configure"
9310 cat confdefs.h >>conftest.$ac_ext
9311 cat >>conftest.$ac_ext <<_ACEOF
9312 /* end confdefs.h. */
9313 /* System header to define __stub macros and hopefully few prototypes,
9314 which can conflict with char gethostbyname (); below.
9315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9316 <limits.h> exists even on freestanding compilers. */
9318 # include <limits.h>
9320 # include <assert.h>
9322 /* Override any gcc2 internal prototype to avoid an error. */
9327 /* We use char because int might match the return type of a gcc2
9328 builtin and then its argument prototype would still apply. */
9329 char gethostbyname ();
9330 /* The GNU C library defines this for functions which it implements
9331 to always fail with ENOSYS. Some functions are actually named
9332 something starting with __ and the normal name is an alias. */
9333 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9336 char (*f) () = gethostbyname;
9345 return f != gethostbyname;
9350 rm -f conftest.$ac_objext conftest$ac_exeext
9351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9352 (eval $ac_link) 2>&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } &&
9356 { ac_try='test -s conftest$ac_exeext'
9357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9361 (exit $ac_status); }; }; then
9362 ac_cv_func_gethostbyname=yes
9364 echo "$as_me: failed program was:" >&5
9365 sed 's/^/| /' conftest.$ac_ext >&5
9367 ac_cv_func_gethostbyname=no
9369 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9371 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9372 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9374 if test $ac_cv_func_gethostbyname = no; then
9375 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9376 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9377 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9378 echo $ECHO_N "(cached) $ECHO_C" >&6
9380 ac_check_lib_save_LIBS=$LIBS
9382 cat >conftest.$ac_ext <<_ACEOF
9383 #line $LINENO "configure"
9386 cat confdefs.h >>conftest.$ac_ext
9387 cat >>conftest.$ac_ext <<_ACEOF
9388 /* end confdefs.h. */
9390 /* Override any gcc2 internal prototype to avoid an error. */
9394 /* We use char because int might match the return type of a gcc2
9395 builtin and then its argument prototype would still apply. */
9396 char gethostbyname ();
9405 rm -f conftest.$ac_objext conftest$ac_exeext
9406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9407 (eval $ac_link) 2>&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } &&
9411 { ac_try='test -s conftest$ac_exeext'
9412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; }; then
9417 ac_cv_lib_nsl_gethostbyname=yes
9419 echo "$as_me: failed program was:" >&5
9420 sed 's/^/| /' conftest.$ac_ext >&5
9422 ac_cv_lib_nsl_gethostbyname=no
9424 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9425 LIBS=$ac_check_lib_save_LIBS
9427 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9428 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9429 if test $ac_cv_lib_nsl_gethostbyname = yes; then
9430 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9433 if test $ac_cv_lib_nsl_gethostbyname = no; then
9434 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9435 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9436 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9439 ac_check_lib_save_LIBS=$LIBS
9441 cat >conftest.$ac_ext <<_ACEOF
9442 #line $LINENO "configure"
9445 cat confdefs.h >>conftest.$ac_ext
9446 cat >>conftest.$ac_ext <<_ACEOF
9447 /* end confdefs.h. */
9449 /* Override any gcc2 internal prototype to avoid an error. */
9453 /* We use char because int might match the return type of a gcc2
9454 builtin and then its argument prototype would still apply. */
9455 char gethostbyname ();
9464 rm -f conftest.$ac_objext conftest$ac_exeext
9465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9466 (eval $ac_link) 2>&5
9468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9469 (exit $ac_status); } &&
9470 { ac_try='test -s conftest$ac_exeext'
9471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); }; }; then
9476 ac_cv_lib_bsd_gethostbyname=yes
9478 echo "$as_me: failed program was:" >&5
9479 sed 's/^/| /' conftest.$ac_ext >&5
9481 ac_cv_lib_bsd_gethostbyname=no
9483 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9484 LIBS=$ac_check_lib_save_LIBS
9486 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9487 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9488 if test $ac_cv_lib_bsd_gethostbyname = yes; then
9489 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9495 # lieder@skyler.mavd.honeywell.com says without -lsocket,
9496 # socket/setsockopt and other routines are undefined under SCO ODT
9497 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9498 # on later versions), says Simon Leinen: it contains gethostby*
9499 # variants that don't use the name server (or something). -lsocket
9500 # must be given before -lnsl if both are needed. We assume that
9501 # if connect needs -lnsl, so does gethostbyname.
9502 echo "$as_me:$LINENO: checking for connect" >&5
9503 echo $ECHO_N "checking for connect... $ECHO_C" >&6
9504 if test "${ac_cv_func_connect+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 cat >conftest.$ac_ext <<_ACEOF
9508 #line $LINENO "configure"
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */
9514 /* System header to define __stub macros and hopefully few prototypes,
9515 which can conflict with char connect (); below.
9516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9517 <limits.h> exists even on freestanding compilers. */
9519 # include <limits.h>
9521 # include <assert.h>
9523 /* Override any gcc2 internal prototype to avoid an error. */
9528 /* We use char because int might match the return type of a gcc2
9529 builtin and then its argument prototype would still apply. */
9531 /* The GNU C library defines this for functions which it implements
9532 to always fail with ENOSYS. Some functions are actually named
9533 something starting with __ and the normal name is an alias. */
9534 #if defined (__stub_connect) || defined (__stub___connect)
9537 char (*f) () = connect;
9546 return f != connect;
9551 rm -f conftest.$ac_objext conftest$ac_exeext
9552 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9553 (eval $ac_link) 2>&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); } &&
9557 { ac_try='test -s conftest$ac_exeext'
9558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562 (exit $ac_status); }; }; then
9563 ac_cv_func_connect=yes
9565 echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9568 ac_cv_func_connect=no
9570 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9572 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9573 echo "${ECHO_T}$ac_cv_func_connect" >&6
9575 if test $ac_cv_func_connect = no; then
9576 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9577 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9578 if test "${ac_cv_lib_socket_connect+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 ac_check_lib_save_LIBS=$LIBS
9582 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9583 cat >conftest.$ac_ext <<_ACEOF
9584 #line $LINENO "configure"
9587 cat confdefs.h >>conftest.$ac_ext
9588 cat >>conftest.$ac_ext <<_ACEOF
9589 /* end confdefs.h. */
9591 /* Override any gcc2 internal prototype to avoid an error. */
9595 /* We use char because int might match the return type of a gcc2
9596 builtin and then its argument prototype would still apply. */
9606 rm -f conftest.$ac_objext conftest$ac_exeext
9607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9608 (eval $ac_link) 2>&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } &&
9612 { ac_try='test -s conftest$ac_exeext'
9613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9617 (exit $ac_status); }; }; then
9618 ac_cv_lib_socket_connect=yes
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9623 ac_cv_lib_socket_connect=no
9625 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9626 LIBS=$ac_check_lib_save_LIBS
9628 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9629 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9630 if test $ac_cv_lib_socket_connect = yes; then
9631 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9636 # Guillermo Gomez says -lposix is necessary on A/UX.
9637 echo "$as_me:$LINENO: checking for remove" >&5
9638 echo $ECHO_N "checking for remove... $ECHO_C" >&6
9639 if test "${ac_cv_func_remove+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9642 cat >conftest.$ac_ext <<_ACEOF
9643 #line $LINENO "configure"
9646 cat confdefs.h >>conftest.$ac_ext
9647 cat >>conftest.$ac_ext <<_ACEOF
9648 /* end confdefs.h. */
9649 /* System header to define __stub macros and hopefully few prototypes,
9650 which can conflict with char remove (); below.
9651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9652 <limits.h> exists even on freestanding compilers. */
9654 # include <limits.h>
9656 # include <assert.h>
9658 /* Override any gcc2 internal prototype to avoid an error. */
9663 /* We use char because int might match the return type of a gcc2
9664 builtin and then its argument prototype would still apply. */
9666 /* The GNU C library defines this for functions which it implements
9667 to always fail with ENOSYS. Some functions are actually named
9668 something starting with __ and the normal name is an alias. */
9669 #if defined (__stub_remove) || defined (__stub___remove)
9672 char (*f) () = remove;
9686 rm -f conftest.$ac_objext conftest$ac_exeext
9687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9688 (eval $ac_link) 2>&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); } &&
9692 { ac_try='test -s conftest$ac_exeext'
9693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); }; }; then
9698 ac_cv_func_remove=yes
9700 echo "$as_me: failed program was:" >&5
9701 sed 's/^/| /' conftest.$ac_ext >&5
9703 ac_cv_func_remove=no
9705 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9707 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9708 echo "${ECHO_T}$ac_cv_func_remove" >&6
9710 if test $ac_cv_func_remove = no; then
9711 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9712 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9713 if test "${ac_cv_lib_posix_remove+set}" = set; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 ac_check_lib_save_LIBS=$LIBS
9717 LIBS="-lposix $LIBS"
9718 cat >conftest.$ac_ext <<_ACEOF
9719 #line $LINENO "configure"
9722 cat confdefs.h >>conftest.$ac_ext
9723 cat >>conftest.$ac_ext <<_ACEOF
9724 /* end confdefs.h. */
9726 /* Override any gcc2 internal prototype to avoid an error. */
9730 /* We use char because int might match the return type of a gcc2
9731 builtin and then its argument prototype would still apply. */
9741 rm -f conftest.$ac_objext conftest$ac_exeext
9742 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9743 (eval $ac_link) 2>&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } &&
9747 { ac_try='test -s conftest$ac_exeext'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; }; then
9753 ac_cv_lib_posix_remove=yes
9755 echo "$as_me: failed program was:" >&5
9756 sed 's/^/| /' conftest.$ac_ext >&5
9758 ac_cv_lib_posix_remove=no
9760 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9761 LIBS=$ac_check_lib_save_LIBS
9763 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9764 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9765 if test $ac_cv_lib_posix_remove = yes; then
9766 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9771 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9772 echo "$as_me:$LINENO: checking for shmat" >&5
9773 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9774 if test "${ac_cv_func_shmat+set}" = set; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9777 cat >conftest.$ac_ext <<_ACEOF
9778 #line $LINENO "configure"
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h. */
9784 /* System header to define __stub macros and hopefully few prototypes,
9785 which can conflict with char shmat (); below.
9786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9787 <limits.h> exists even on freestanding compilers. */
9789 # include <limits.h>
9791 # include <assert.h>
9793 /* Override any gcc2 internal prototype to avoid an error. */
9798 /* We use char because int might match the return type of a gcc2
9799 builtin and then its argument prototype would still apply. */
9801 /* The GNU C library defines this for functions which it implements
9802 to always fail with ENOSYS. Some functions are actually named
9803 something starting with __ and the normal name is an alias. */
9804 #if defined (__stub_shmat) || defined (__stub___shmat)
9807 char (*f) () = shmat;
9821 rm -f conftest.$ac_objext conftest$ac_exeext
9822 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9823 (eval $ac_link) 2>&5
9825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9826 (exit $ac_status); } &&
9827 { ac_try='test -s conftest$ac_exeext'
9828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9832 (exit $ac_status); }; }; then
9833 ac_cv_func_shmat=yes
9835 echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.$ac_ext >&5
9840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9842 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
9843 echo "${ECHO_T}$ac_cv_func_shmat" >&6
9845 if test $ac_cv_func_shmat = no; then
9846 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
9847 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
9848 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
9849 echo $ECHO_N "(cached) $ECHO_C" >&6
9851 ac_check_lib_save_LIBS=$LIBS
9853 cat >conftest.$ac_ext <<_ACEOF
9854 #line $LINENO "configure"
9857 cat confdefs.h >>conftest.$ac_ext
9858 cat >>conftest.$ac_ext <<_ACEOF
9859 /* end confdefs.h. */
9861 /* Override any gcc2 internal prototype to avoid an error. */
9865 /* We use char because int might match the return type of a gcc2
9866 builtin and then its argument prototype would still apply. */
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878 (eval $ac_link) 2>&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } &&
9882 { ac_try='test -s conftest$ac_exeext'
9883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887 (exit $ac_status); }; }; then
9888 ac_cv_lib_ipc_shmat=yes
9890 echo "$as_me: failed program was:" >&5
9891 sed 's/^/| /' conftest.$ac_ext >&5
9893 ac_cv_lib_ipc_shmat=no
9895 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9896 LIBS=$ac_check_lib_save_LIBS
9898 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
9899 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
9900 if test $ac_cv_lib_ipc_shmat = yes; then
9901 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
9907 # Check for libraries that X11R6 Xt/Xaw programs need.
9908 ac_save_LDFLAGS=$LDFLAGS
9909 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
9910 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
9911 # check for ICE first), but we must link in the order -lSM -lICE or
9912 # we get undefined symbols. So assume we have SM if we have ICE.
9913 # These have to be linked with before -lX11, unlike the other
9914 # libraries we check for below, so use a different variable.
9915 # John Interrante, Karl Berry
9916 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
9917 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
9918 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
9919 echo $ECHO_N "(cached) $ECHO_C" >&6
9921 ac_check_lib_save_LIBS=$LIBS
9922 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
9923 cat >conftest.$ac_ext <<_ACEOF
9924 #line $LINENO "configure"
9927 cat confdefs.h >>conftest.$ac_ext
9928 cat >>conftest.$ac_ext <<_ACEOF
9929 /* end confdefs.h. */
9931 /* Override any gcc2 internal prototype to avoid an error. */
9935 /* We use char because int might match the return type of a gcc2
9936 builtin and then its argument prototype would still apply. */
9937 char IceConnectionNumber ();
9941 IceConnectionNumber ();
9946 rm -f conftest.$ac_objext conftest$ac_exeext
9947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9948 (eval $ac_link) 2>&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); } &&
9952 { ac_try='test -s conftest$ac_exeext'
9953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9957 (exit $ac_status); }; }; then
9958 ac_cv_lib_ICE_IceConnectionNumber=yes
9960 echo "$as_me: failed program was:" >&5
9961 sed 's/^/| /' conftest.$ac_ext >&5
9963 ac_cv_lib_ICE_IceConnectionNumber=no
9965 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9966 LIBS=$ac_check_lib_save_LIBS
9968 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
9969 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
9970 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
9971 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
9974 LDFLAGS=$ac_save_LDFLAGS
10036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10038 echo "$as_me:$LINENO: checking for $ac_header" >&5
10039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10046 # Is the header compilable?
10047 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10049 cat >conftest.$ac_ext <<_ACEOF
10050 #line $LINENO "configure"
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h. */
10056 $ac_includes_default
10057 #include <$ac_header>
10059 rm -f conftest.$ac_objext
10060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10061 (eval $ac_compile) 2>&5
10063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10064 (exit $ac_status); } &&
10065 { ac_try='test -s conftest.$ac_objext'
10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067 (eval $ac_try) 2>&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; }; then
10071 ac_header_compiler=yes
10073 echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10076 ac_header_compiler=no
10078 rm -f conftest.$ac_objext conftest.$ac_ext
10079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10080 echo "${ECHO_T}$ac_header_compiler" >&6
10082 # Is the header present?
10083 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10084 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10085 cat >conftest.$ac_ext <<_ACEOF
10086 #line $LINENO "configure"
10089 cat confdefs.h >>conftest.$ac_ext
10090 cat >>conftest.$ac_ext <<_ACEOF
10091 /* end confdefs.h. */
10092 #include <$ac_header>
10094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10097 grep -v '^ *+' conftest.er1 >conftest.err
10099 cat conftest.err >&5
10100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10101 (exit $ac_status); } >/dev/null; then
10102 if test -s conftest.err; then
10103 ac_cpp_err=$ac_c_preproc_warn_flag
10110 if test -z "$ac_cpp_err"; then
10111 ac_header_preproc=yes
10113 echo "$as_me: failed program was:" >&5
10114 sed 's/^/| /' conftest.$ac_ext >&5
10116 ac_header_preproc=no
10118 rm -f conftest.err conftest.$ac_ext
10119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10120 echo "${ECHO_T}$ac_header_preproc" >&6
10122 # So? What about this header?
10123 case $ac_header_compiler:$ac_header_preproc in
10125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10128 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10131 ## ------------------------------------ ##
10132 ## Report this to bug-autoconf@gnu.org. ##
10133 ## ------------------------------------ ##
10136 sed "s/^/$as_me: WARNING: /" >&2
10139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10147 ## ------------------------------------ ##
10148 ## Report this to bug-autoconf@gnu.org. ##
10149 ## ------------------------------------ ##
10152 sed "s/^/$as_me: WARNING: /" >&2
10155 echo "$as_me:$LINENO: checking for $ac_header" >&5
10156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10157 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10158 echo $ECHO_N "(cached) $ECHO_C" >&6
10160 eval "$as_ac_Header=$ac_header_preproc"
10162 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10163 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10167 cat >>confdefs.h <<_ACEOF
10168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10175 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
10176 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
10177 if test "${ac_cv_header_stdc+set}" = set; then
10178 echo $ECHO_N "(cached) $ECHO_C" >&6
10180 cat >conftest.$ac_ext <<_ACEOF
10181 #line $LINENO "configure"
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h. */
10187 #include <stdlib.h>
10188 #include <stdarg.h>
10189 #include <string.h>
10200 rm -f conftest.$ac_objext
10201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10202 (eval $ac_compile) 2>&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); } &&
10206 { ac_try='test -s conftest.$ac_objext'
10207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10208 (eval $ac_try) 2>&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); }; }; then
10212 ac_cv_header_stdc=yes
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10217 ac_cv_header_stdc=no
10219 rm -f conftest.$ac_objext conftest.$ac_ext
10221 if test $ac_cv_header_stdc = yes; then
10222 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10223 cat >conftest.$ac_ext <<_ACEOF
10224 #line $LINENO "configure"
10227 cat confdefs.h >>conftest.$ac_ext
10228 cat >>conftest.$ac_ext <<_ACEOF
10229 /* end confdefs.h. */
10230 #include <string.h>
10233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10234 $EGREP "memchr" >/dev/null 2>&1; then
10237 ac_cv_header_stdc=no
10243 if test $ac_cv_header_stdc = yes; then
10244 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10245 cat >conftest.$ac_ext <<_ACEOF
10246 #line $LINENO "configure"
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 #include <stdlib.h>
10255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10256 $EGREP "free" >/dev/null 2>&1; then
10259 ac_cv_header_stdc=no
10265 if test $ac_cv_header_stdc = yes; then
10266 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10267 if test "$cross_compiling" = yes; then
10270 cat >conftest.$ac_ext <<_ACEOF
10271 #line $LINENO "configure"
10274 cat confdefs.h >>conftest.$ac_ext
10275 cat >>conftest.$ac_ext <<_ACEOF
10276 /* end confdefs.h. */
10278 #if ((' ' & 0x0FF) == 0x020)
10279 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10280 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10282 # define ISLOWER(c) \
10283 (('a' <= (c) && (c) <= 'i') \
10284 || ('j' <= (c) && (c) <= 'r') \
10285 || ('s' <= (c) && (c) <= 'z'))
10286 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10289 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10294 for (i = 0; i < 256; i++)
10295 if (XOR (islower (i), ISLOWER (i))
10296 || toupper (i) != TOUPPER (i))
10301 rm -f conftest$ac_exeext
10302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10303 (eval $ac_link) 2>&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308 (eval $ac_try) 2>&5
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; }; then
10314 echo "$as_me: program exited with status $ac_status" >&5
10315 echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10318 ( exit $ac_status )
10319 ac_cv_header_stdc=no
10321 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10325 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
10326 echo "${ECHO_T}$ac_cv_header_stdc" >&6
10327 if test $ac_cv_header_stdc = yes; then
10329 cat >>confdefs.h <<\_ACEOF
10330 #define STDC_HEADERS 1
10335 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
10336 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
10337 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 cat >conftest.$ac_ext <<_ACEOF
10341 #line $LINENO "configure"
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10347 #include <sys/types.h>
10351 return makedev(0, 0);
10356 rm -f conftest.$ac_objext conftest$ac_exeext
10357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10358 (eval $ac_link) 2>&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } &&
10362 { ac_try='test -s conftest$ac_exeext'
10363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10364 (eval $ac_try) 2>&5
10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367 (exit $ac_status); }; }; then
10368 ac_cv_header_sys_types_h_makedev=yes
10370 echo "$as_me: failed program was:" >&5
10371 sed 's/^/| /' conftest.$ac_ext >&5
10373 ac_cv_header_sys_types_h_makedev=no
10375 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10378 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
10379 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
10381 if test $ac_cv_header_sys_types_h_makedev = no; then
10382 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10383 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10384 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10385 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10386 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10389 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10391 # Is the header compilable?
10392 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
10393 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
10394 cat >conftest.$ac_ext <<_ACEOF
10395 #line $LINENO "configure"
10398 cat confdefs.h >>conftest.$ac_ext
10399 cat >>conftest.$ac_ext <<_ACEOF
10400 /* end confdefs.h. */
10401 $ac_includes_default
10402 #include <sys/mkdev.h>
10404 rm -f conftest.$ac_objext
10405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10406 (eval $ac_compile) 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } &&
10410 { ac_try='test -s conftest.$ac_objext'
10411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10412 (eval $ac_try) 2>&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); }; }; then
10416 ac_header_compiler=yes
10418 echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10421 ac_header_compiler=no
10423 rm -f conftest.$ac_objext conftest.$ac_ext
10424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10425 echo "${ECHO_T}$ac_header_compiler" >&6
10427 # Is the header present?
10428 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
10429 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
10430 cat >conftest.$ac_ext <<_ACEOF
10431 #line $LINENO "configure"
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10437 #include <sys/mkdev.h>
10439 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10440 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10442 grep -v '^ *+' conftest.er1 >conftest.err
10444 cat conftest.err >&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); } >/dev/null; then
10447 if test -s conftest.err; then
10448 ac_cpp_err=$ac_c_preproc_warn_flag
10455 if test -z "$ac_cpp_err"; then
10456 ac_header_preproc=yes
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10461 ac_header_preproc=no
10463 rm -f conftest.err conftest.$ac_ext
10464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10465 echo "${ECHO_T}$ac_header_preproc" >&6
10467 # So? What about this header?
10468 case $ac_header_compiler:$ac_header_preproc in
10470 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
10471 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10472 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10473 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10476 ## ------------------------------------ ##
10477 ## Report this to bug-autoconf@gnu.org. ##
10478 ## ------------------------------------ ##
10481 sed "s/^/$as_me: WARNING: /" >&2
10484 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
10485 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
10486 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
10487 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
10488 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
10489 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
10492 ## ------------------------------------ ##
10493 ## Report this to bug-autoconf@gnu.org. ##
10494 ## ------------------------------------ ##
10497 sed "s/^/$as_me: WARNING: /" >&2
10500 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
10501 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
10502 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
10503 echo $ECHO_N "(cached) $ECHO_C" >&6
10505 ac_cv_header_sys_mkdev_h=$ac_header_preproc
10507 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
10508 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
10511 if test $ac_cv_header_sys_mkdev_h = yes; then
10513 cat >>confdefs.h <<\_ACEOF
10514 #define MAJOR_IN_MKDEV 1
10521 if test $ac_cv_header_sys_mkdev_h = no; then
10522 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10523 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10524 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10525 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10528 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10529 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10531 # Is the header compilable?
10532 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
10533 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
10534 cat >conftest.$ac_ext <<_ACEOF
10535 #line $LINENO "configure"
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10541 $ac_includes_default
10542 #include <sys/sysmacros.h>
10544 rm -f conftest.$ac_objext
10545 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10546 (eval $ac_compile) 2>&5
10548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10549 (exit $ac_status); } &&
10550 { ac_try='test -s conftest.$ac_objext'
10551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10552 (eval $ac_try) 2>&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); }; }; then
10556 ac_header_compiler=yes
10558 echo "$as_me: failed program was:" >&5
10559 sed 's/^/| /' conftest.$ac_ext >&5
10561 ac_header_compiler=no
10563 rm -f conftest.$ac_objext conftest.$ac_ext
10564 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10565 echo "${ECHO_T}$ac_header_compiler" >&6
10567 # Is the header present?
10568 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
10569 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
10570 cat >conftest.$ac_ext <<_ACEOF
10571 #line $LINENO "configure"
10574 cat confdefs.h >>conftest.$ac_ext
10575 cat >>conftest.$ac_ext <<_ACEOF
10576 /* end confdefs.h. */
10577 #include <sys/sysmacros.h>
10579 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10580 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10582 grep -v '^ *+' conftest.er1 >conftest.err
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } >/dev/null; then
10587 if test -s conftest.err; then
10588 ac_cpp_err=$ac_c_preproc_warn_flag
10595 if test -z "$ac_cpp_err"; then
10596 ac_header_preproc=yes
10598 echo "$as_me: failed program was:" >&5
10599 sed 's/^/| /' conftest.$ac_ext >&5
10601 ac_header_preproc=no
10603 rm -f conftest.err conftest.$ac_ext
10604 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10605 echo "${ECHO_T}$ac_header_preproc" >&6
10607 # So? What about this header?
10608 case $ac_header_compiler:$ac_header_preproc in
10610 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
10611 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10612 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10613 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10616 ## ------------------------------------ ##
10617 ## Report this to bug-autoconf@gnu.org. ##
10618 ## ------------------------------------ ##
10621 sed "s/^/$as_me: WARNING: /" >&2
10624 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
10625 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
10626 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
10627 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
10628 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
10629 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
10632 ## ------------------------------------ ##
10633 ## Report this to bug-autoconf@gnu.org. ##
10634 ## ------------------------------------ ##
10637 sed "s/^/$as_me: WARNING: /" >&2
10640 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
10641 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
10642 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10645 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
10647 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
10648 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
10651 if test $ac_cv_header_sys_sysmacros_h = yes; then
10653 cat >>confdefs.h <<\_ACEOF
10654 #define MAJOR_IN_SYSMACROS 1
10668 ac_header_dirent=no
10669 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
10670 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
10671 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
10672 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
10673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
10676 cat >conftest.$ac_ext <<_ACEOF
10677 #line $LINENO "configure"
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10683 #include <sys/types.h>
10695 rm -f conftest.$ac_objext
10696 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10697 (eval $ac_compile) 2>&5
10699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10700 (exit $ac_status); } &&
10701 { ac_try='test -s conftest.$ac_objext'
10702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10703 (eval $ac_try) 2>&5
10705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }; }; then
10707 eval "$as_ac_Header=yes"
10709 echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.$ac_ext >&5
10712 eval "$as_ac_Header=no"
10714 rm -f conftest.$ac_objext conftest.$ac_ext
10716 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10717 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10718 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10719 cat >>confdefs.h <<_ACEOF
10720 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
10723 ac_header_dirent=$ac_hdr; break
10727 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
10728 if test $ac_header_dirent = dirent.h; then
10729 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10730 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10731 if test "${ac_cv_search_opendir+set}" = set; then
10732 echo $ECHO_N "(cached) $ECHO_C" >&6
10734 ac_func_search_save_LIBS=$LIBS
10735 ac_cv_search_opendir=no
10736 cat >conftest.$ac_ext <<_ACEOF
10737 #line $LINENO "configure"
10740 cat confdefs.h >>conftest.$ac_ext
10741 cat >>conftest.$ac_ext <<_ACEOF
10742 /* end confdefs.h. */
10744 /* Override any gcc2 internal prototype to avoid an error. */
10748 /* We use char because int might match the return type of a gcc2
10749 builtin and then its argument prototype would still apply. */
10759 rm -f conftest.$ac_objext conftest$ac_exeext
10760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10761 (eval $ac_link) 2>&5
10763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10764 (exit $ac_status); } &&
10765 { ac_try='test -s conftest$ac_exeext'
10766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10767 (eval $ac_try) 2>&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 (exit $ac_status); }; }; then
10771 ac_cv_search_opendir="none required"
10773 echo "$as_me: failed program was:" >&5
10774 sed 's/^/| /' conftest.$ac_ext >&5
10777 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10778 if test "$ac_cv_search_opendir" = no; then
10779 for ac_lib in dir; do
10780 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10781 cat >conftest.$ac_ext <<_ACEOF
10782 #line $LINENO "configure"
10785 cat confdefs.h >>conftest.$ac_ext
10786 cat >>conftest.$ac_ext <<_ACEOF
10787 /* end confdefs.h. */
10789 /* Override any gcc2 internal prototype to avoid an error. */
10793 /* We use char because int might match the return type of a gcc2
10794 builtin and then its argument prototype would still apply. */
10804 rm -f conftest.$ac_objext conftest$ac_exeext
10805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10806 (eval $ac_link) 2>&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } &&
10810 { ac_try='test -s conftest$ac_exeext'
10811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812 (eval $ac_try) 2>&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; }; then
10816 ac_cv_search_opendir="-l$ac_lib"
10819 echo "$as_me: failed program was:" >&5
10820 sed 's/^/| /' conftest.$ac_ext >&5
10823 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10826 LIBS=$ac_func_search_save_LIBS
10828 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10829 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10830 if test "$ac_cv_search_opendir" != no; then
10831 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10836 echo "$as_me:$LINENO: checking for library containing opendir" >&5
10837 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
10838 if test "${ac_cv_search_opendir+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10841 ac_func_search_save_LIBS=$LIBS
10842 ac_cv_search_opendir=no
10843 cat >conftest.$ac_ext <<_ACEOF
10844 #line $LINENO "configure"
10847 cat confdefs.h >>conftest.$ac_ext
10848 cat >>conftest.$ac_ext <<_ACEOF
10849 /* end confdefs.h. */
10851 /* Override any gcc2 internal prototype to avoid an error. */
10855 /* We use char because int might match the return type of a gcc2
10856 builtin and then its argument prototype would still apply. */
10866 rm -f conftest.$ac_objext conftest$ac_exeext
10867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10868 (eval $ac_link) 2>&5
10870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } &&
10872 { ac_try='test -s conftest$ac_exeext'
10873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10874 (eval $ac_try) 2>&5
10876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10877 (exit $ac_status); }; }; then
10878 ac_cv_search_opendir="none required"
10880 echo "$as_me: failed program was:" >&5
10881 sed 's/^/| /' conftest.$ac_ext >&5
10884 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10885 if test "$ac_cv_search_opendir" = no; then
10886 for ac_lib in x; do
10887 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10888 cat >conftest.$ac_ext <<_ACEOF
10889 #line $LINENO "configure"
10892 cat confdefs.h >>conftest.$ac_ext
10893 cat >>conftest.$ac_ext <<_ACEOF
10894 /* end confdefs.h. */
10896 /* Override any gcc2 internal prototype to avoid an error. */
10900 /* We use char because int might match the return type of a gcc2
10901 builtin and then its argument prototype would still apply. */
10911 rm -f conftest.$ac_objext conftest$ac_exeext
10912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10913 (eval $ac_link) 2>&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } &&
10917 { ac_try='test -s conftest$ac_exeext'
10918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10919 (eval $ac_try) 2>&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); }; }; then
10923 ac_cv_search_opendir="-l$ac_lib"
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10930 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10933 LIBS=$ac_func_search_save_LIBS
10935 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
10936 echo "${ECHO_T}$ac_cv_search_opendir" >&6
10937 if test "$ac_cv_search_opendir" != no; then
10938 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
10944 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
10945 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
10946 if test "${ac_cv_header_stat_broken+set}" = set; then
10947 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 <sys/types.h>
10957 #include <sys/stat.h>
10959 #if defined(S_ISBLK) && defined(S_IFDIR)
10960 # if S_ISBLK (S_IFDIR)
10965 #if defined(S_ISBLK) && defined(S_IFCHR)
10966 # if S_ISBLK (S_IFCHR)
10971 #if defined(S_ISLNK) && defined(S_IFREG)
10972 # if S_ISLNK (S_IFREG)
10977 #if defined(S_ISSOCK) && defined(S_IFREG)
10978 # if S_ISSOCK (S_IFREG)
10984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10985 $EGREP "You lose" >/dev/null 2>&1; then
10986 ac_cv_header_stat_broken=yes
10988 ac_cv_header_stat_broken=no
10993 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
10994 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
10995 if test $ac_cv_header_stat_broken = yes; then
10997 cat >>confdefs.h <<\_ACEOF
10998 #define STAT_MACROS_BROKEN 1
11003 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11004 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11005 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11008 cat >conftest.$ac_ext <<_ACEOF
11009 #line $LINENO "configure"
11012 cat confdefs.h >>conftest.$ac_ext
11013 cat >>conftest.$ac_ext <<_ACEOF
11014 /* end confdefs.h. */
11015 #include <sys/types.h>
11016 #include <sys/wait.h>
11017 #ifndef WEXITSTATUS
11018 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11021 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11029 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11034 rm -f conftest.$ac_objext
11035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11036 (eval $ac_compile) 2>&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); } &&
11040 { ac_try='test -s conftest.$ac_objext'
11041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11042 (eval $ac_try) 2>&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; }; then
11046 ac_cv_header_sys_wait_h=yes
11048 echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11051 ac_cv_header_sys_wait_h=no
11053 rm -f conftest.$ac_objext conftest.$ac_ext
11055 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11056 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11057 if test $ac_cv_header_sys_wait_h = yes; then
11059 cat >>confdefs.h <<\_ACEOF
11060 #define HAVE_SYS_WAIT_H 1
11065 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
11066 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
11067 if test "${ac_cv_header_time+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11070 cat >conftest.$ac_ext <<_ACEOF
11071 #line $LINENO "configure"
11074 cat confdefs.h >>conftest.$ac_ext
11075 cat >>conftest.$ac_ext <<_ACEOF
11076 /* end confdefs.h. */
11077 #include <sys/types.h>
11078 #include <sys/time.h>
11084 if ((struct tm *) 0)
11090 rm -f conftest.$ac_objext
11091 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11092 (eval $ac_compile) 2>&5
11094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11095 (exit $ac_status); } &&
11096 { ac_try='test -s conftest.$ac_objext'
11097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11098 (eval $ac_try) 2>&5
11100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101 (exit $ac_status); }; }; then
11102 ac_cv_header_time=yes
11104 echo "$as_me: failed program was:" >&5
11105 sed 's/^/| /' conftest.$ac_ext >&5
11107 ac_cv_header_time=no
11109 rm -f conftest.$ac_objext conftest.$ac_ext
11111 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
11112 echo "${ECHO_T}$ac_cv_header_time" >&6
11113 if test $ac_cv_header_time = yes; then
11115 cat >>confdefs.h <<\_ACEOF
11116 #define TIME_WITH_SYS_TIME 1
11122 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
11123 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
11124 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11127 cat >conftest.$ac_ext <<_ACEOF
11128 #line $LINENO "configure"
11131 cat confdefs.h >>conftest.$ac_ext
11132 cat >>conftest.$ac_ext <<_ACEOF
11133 /* end confdefs.h. */
11134 $ac_includes_default
11138 static struct stat ac_aggr;
11139 if (ac_aggr.st_blksize)
11145 rm -f conftest.$ac_objext
11146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11147 (eval $ac_compile) 2>&5
11149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150 (exit $ac_status); } &&
11151 { ac_try='test -s conftest.$ac_objext'
11152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153 (eval $ac_try) 2>&5
11155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156 (exit $ac_status); }; }; then
11157 ac_cv_member_struct_stat_st_blksize=yes
11159 echo "$as_me: failed program was:" >&5
11160 sed 's/^/| /' conftest.$ac_ext >&5
11162 cat >conftest.$ac_ext <<_ACEOF
11163 #line $LINENO "configure"
11166 cat confdefs.h >>conftest.$ac_ext
11167 cat >>conftest.$ac_ext <<_ACEOF
11168 /* end confdefs.h. */
11169 $ac_includes_default
11173 static struct stat ac_aggr;
11174 if (sizeof ac_aggr.st_blksize)
11180 rm -f conftest.$ac_objext
11181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11182 (eval $ac_compile) 2>&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } &&
11186 { ac_try='test -s conftest.$ac_objext'
11187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11188 (eval $ac_try) 2>&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); }; }; then
11192 ac_cv_member_struct_stat_st_blksize=yes
11194 echo "$as_me: failed program was:" >&5
11195 sed 's/^/| /' conftest.$ac_ext >&5
11197 ac_cv_member_struct_stat_st_blksize=no
11199 rm -f conftest.$ac_objext conftest.$ac_ext
11201 rm -f conftest.$ac_objext conftest.$ac_ext
11203 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
11204 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
11205 if test $ac_cv_member_struct_stat_st_blksize = yes; then
11207 cat >>confdefs.h <<_ACEOF
11208 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
11212 cat >>confdefs.h <<\_ACEOF
11213 #define HAVE_ST_BLKSIZE 1
11219 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
11220 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
11221 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 cat >conftest.$ac_ext <<_ACEOF
11225 #line $LINENO "configure"
11228 cat confdefs.h >>conftest.$ac_ext
11229 cat >>conftest.$ac_ext <<_ACEOF
11230 /* end confdefs.h. */
11231 $ac_includes_default
11235 static struct stat ac_aggr;
11236 if (ac_aggr.st_blocks)
11242 rm -f conftest.$ac_objext
11243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11244 (eval $ac_compile) 2>&5
11246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11247 (exit $ac_status); } &&
11248 { ac_try='test -s conftest.$ac_objext'
11249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11250 (eval $ac_try) 2>&5
11252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); }; }; then
11254 ac_cv_member_struct_stat_st_blocks=yes
11256 echo "$as_me: failed program was:" >&5
11257 sed 's/^/| /' conftest.$ac_ext >&5
11259 cat >conftest.$ac_ext <<_ACEOF
11260 #line $LINENO "configure"
11263 cat confdefs.h >>conftest.$ac_ext
11264 cat >>conftest.$ac_ext <<_ACEOF
11265 /* end confdefs.h. */
11266 $ac_includes_default
11270 static struct stat ac_aggr;
11271 if (sizeof ac_aggr.st_blocks)
11277 rm -f conftest.$ac_objext
11278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11279 (eval $ac_compile) 2>&5
11281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282 (exit $ac_status); } &&
11283 { ac_try='test -s conftest.$ac_objext'
11284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11285 (eval $ac_try) 2>&5
11287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11288 (exit $ac_status); }; }; then
11289 ac_cv_member_struct_stat_st_blocks=yes
11291 echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11294 ac_cv_member_struct_stat_st_blocks=no
11296 rm -f conftest.$ac_objext conftest.$ac_ext
11298 rm -f conftest.$ac_objext conftest.$ac_ext
11300 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
11301 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
11302 if test $ac_cv_member_struct_stat_st_blocks = yes; then
11304 cat >>confdefs.h <<_ACEOF
11305 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
11309 cat >>confdefs.h <<\_ACEOF
11310 #define HAVE_ST_BLOCKS 1
11314 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
11318 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
11319 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
11320 if test "${ac_cv_struct_tm+set}" = set; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
11323 cat >conftest.$ac_ext <<_ACEOF
11324 #line $LINENO "configure"
11327 cat confdefs.h >>conftest.$ac_ext
11328 cat >>conftest.$ac_ext <<_ACEOF
11329 /* end confdefs.h. */
11330 #include <sys/types.h>
11336 struct tm *tp; tp->tm_sec;
11341 rm -f conftest.$ac_objext
11342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11343 (eval $ac_compile) 2>&5
11345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11346 (exit $ac_status); } &&
11347 { ac_try='test -s conftest.$ac_objext'
11348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11349 (eval $ac_try) 2>&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); }; }; then
11353 ac_cv_struct_tm=time.h
11355 echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11358 ac_cv_struct_tm=sys/time.h
11360 rm -f conftest.$ac_objext conftest.$ac_ext
11362 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
11363 echo "${ECHO_T}$ac_cv_struct_tm" >&6
11364 if test $ac_cv_struct_tm = sys/time.h; then
11366 cat >>confdefs.h <<\_ACEOF
11367 #define TM_IN_SYS_TIME 1
11372 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
11373 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
11374 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
11375 echo $ECHO_N "(cached) $ECHO_C" >&6
11377 cat >conftest.$ac_ext <<_ACEOF
11378 #line $LINENO "configure"
11381 cat confdefs.h >>conftest.$ac_ext
11382 cat >>conftest.$ac_ext <<_ACEOF
11383 /* end confdefs.h. */
11384 #include <sys/types.h>
11385 #include <$ac_cv_struct_tm>
11391 static struct tm ac_aggr;
11392 if (ac_aggr.tm_zone)
11398 rm -f conftest.$ac_objext
11399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11400 (eval $ac_compile) 2>&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); } &&
11404 { ac_try='test -s conftest.$ac_objext'
11405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11406 (eval $ac_try) 2>&5
11408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11409 (exit $ac_status); }; }; then
11410 ac_cv_member_struct_tm_tm_zone=yes
11412 echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11415 cat >conftest.$ac_ext <<_ACEOF
11416 #line $LINENO "configure"
11419 cat confdefs.h >>conftest.$ac_ext
11420 cat >>conftest.$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11422 #include <sys/types.h>
11423 #include <$ac_cv_struct_tm>
11429 static struct tm ac_aggr;
11430 if (sizeof ac_aggr.tm_zone)
11436 rm -f conftest.$ac_objext
11437 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11438 (eval $ac_compile) 2>&5
11440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11441 (exit $ac_status); } &&
11442 { ac_try='test -s conftest.$ac_objext'
11443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11444 (eval $ac_try) 2>&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); }; }; then
11448 ac_cv_member_struct_tm_tm_zone=yes
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11453 ac_cv_member_struct_tm_tm_zone=no
11455 rm -f conftest.$ac_objext conftest.$ac_ext
11457 rm -f conftest.$ac_objext conftest.$ac_ext
11459 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
11460 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
11461 if test $ac_cv_member_struct_tm_tm_zone = yes; then
11463 cat >>confdefs.h <<_ACEOF
11464 #define HAVE_STRUCT_TM_TM_ZONE 1
11470 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
11472 cat >>confdefs.h <<\_ACEOF
11473 #define HAVE_TM_ZONE 1
11477 echo "$as_me:$LINENO: checking for tzname" >&5
11478 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
11479 if test "${ac_cv_var_tzname+set}" = set; then
11480 echo $ECHO_N "(cached) $ECHO_C" >&6
11482 cat >conftest.$ac_ext <<_ACEOF
11483 #line $LINENO "configure"
11486 cat confdefs.h >>conftest.$ac_ext
11487 cat >>conftest.$ac_ext <<_ACEOF
11488 /* end confdefs.h. */
11490 #ifndef tzname /* For SGI. */
11491 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
11502 rm -f conftest.$ac_objext conftest$ac_exeext
11503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11504 (eval $ac_link) 2>&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } &&
11508 { ac_try='test -s conftest$ac_exeext'
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_var_tzname=yes
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11519 ac_cv_var_tzname=no
11521 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11523 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
11524 echo "${ECHO_T}$ac_cv_var_tzname" >&6
11525 if test $ac_cv_var_tzname = yes; then
11527 cat >>confdefs.h <<\_ACEOF
11528 #define HAVE_TZNAME 1
11535 echo "$as_me:$LINENO: checking for utime.h" >&5
11536 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
11537 if test "${ba_cv_header_utime_h+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. */
11548 #include <sys/types.h>
11558 rm -f conftest.$ac_objext
11559 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11560 (eval $ac_compile) 2>&5
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); } &&
11564 { ac_try='test -s conftest.$ac_objext'
11565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11566 (eval $ac_try) 2>&5
11568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11569 (exit $ac_status); }; }; then
11570 ba_cv_header_utime_h=yes
11572 echo "$as_me: failed program was:" >&5
11573 sed 's/^/| /' conftest.$ac_ext >&5
11575 ba_cv_header_utime_h=no
11577 rm -f conftest.$ac_objext conftest.$ac_ext
11579 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
11580 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
11581 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
11582 #define HAVE_UTIME_H 1
11586 echo "$as_me:$LINENO: checking for socklen_t" >&5
11587 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
11588 if test "${ba_cv_header_socklen_t+set}" = set; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11591 cat >conftest.$ac_ext <<_ACEOF
11592 #line $LINENO "configure"
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11599 #include <sys/types.h>
11600 #include <sys/socket.h>
11609 rm -f conftest.$ac_objext
11610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11611 (eval $ac_compile) 2>&5
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); } &&
11615 { ac_try='test -s conftest.$ac_objext'
11616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11617 (eval $ac_try) 2>&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; }; then
11621 ba_cv_header_socklen_t=yes
11623 echo "$as_me: failed program was:" >&5
11624 sed 's/^/| /' conftest.$ac_ext >&5
11626 ba_cv_header_socklen_t=no
11628 rm -f conftest.$ac_objext conftest.$ac_ext
11630 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
11631 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
11632 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
11633 #define HAVE_SOCKLEN_T 1
11637 echo "$as_me:$LINENO: checking for bigendian" >&5
11638 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
11639 if test "${ba_cv_bigendian+set}" = set; then
11640 echo $ECHO_N "(cached) $ECHO_C" >&6
11642 if test "$cross_compiling" = yes; then
11645 cat >conftest.$ac_ext <<_ACEOF
11646 #line $LINENO "configure"
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11652 main(){long a=1L; char *p=(char *)&a; exit(*p);}
11654 rm -f conftest$ac_exeext
11655 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11656 (eval $ac_link) 2>&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11661 (eval $ac_try) 2>&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); }; }; then
11665 ba_cv_bigendian=yes
11667 echo "$as_me: program exited with status $ac_status" >&5
11668 echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.$ac_ext >&5
11671 ( exit $ac_status )
11674 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11677 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
11678 echo "${ECHO_T}$ba_cv_bigendian" >&6
11679 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
11680 #define HAVE_BIGENDIAN 1
11685 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11686 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
11687 if test "${ac_cv_c_const+set}" = set; then
11688 echo $ECHO_N "(cached) $ECHO_C" >&6
11690 cat >conftest.$ac_ext <<_ACEOF
11691 #line $LINENO "configure"
11694 cat confdefs.h >>conftest.$ac_ext
11695 cat >>conftest.$ac_ext <<_ACEOF
11696 /* end confdefs.h. */
11701 /* FIXME: Include the comments suggested by Paul. */
11702 #ifndef __cplusplus
11703 /* Ultrix mips cc rejects this. */
11704 typedef int charset[2];
11706 /* SunOS 4.1.1 cc rejects this. */
11707 char const *const *ccp;
11709 /* NEC SVR4.0.2 mips cc rejects this. */
11710 struct point {int x, y;};
11711 static struct point const zero = {0,0};
11712 /* AIX XL C 1.02.0.0 rejects this.
11713 It does not let you subtract one const X* pointer from another in
11714 an arm of an if-expression whose if-part is not a constant
11716 const char *g = "string";
11717 ccp = &g + (g ? g-g : 0);
11718 /* HPUX 7.0 cc rejects these. */
11721 ccp = (char const *const *) p;
11722 { /* SCO 3.2v4 cc rejects this. */
11724 char const *s = 0 ? (char *) 0 : (char const *) 0;
11728 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11729 int x[] = {25, 17};
11730 const int *foo = &x[0];
11733 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11734 typedef const int *iptr;
11738 { /* AIX XL C 1.02.0.0 rejects this saying
11739 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11740 struct s { int j; const int *ap[3]; };
11741 struct s *b; b->j = 5;
11743 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11744 const int foo = 10;
11752 rm -f conftest.$ac_objext
11753 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11754 (eval $ac_compile) 2>&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } &&
11758 { ac_try='test -s conftest.$ac_objext'
11759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11760 (eval $ac_try) 2>&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); }; }; then
11766 echo "$as_me: failed program was:" >&5
11767 sed 's/^/| /' conftest.$ac_ext >&5
11771 rm -f conftest.$ac_objext conftest.$ac_ext
11773 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11774 echo "${ECHO_T}$ac_cv_c_const" >&6
11775 if test $ac_cv_c_const = no; then
11777 cat >>confdefs.h <<\_ACEOF
11785 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
11786 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
11788 # The order of these tests is important.
11789 cat >conftest.$ac_ext <<_ACEOF
11790 #line $LINENO "configure"
11793 cat confdefs.h >>conftest.$ac_ext
11794 cat >>conftest.$ac_ext <<_ACEOF
11795 /* end confdefs.h. */
11796 #include <sys/statvfs.h>
11797 #include <sys/fstyp.h>
11799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11802 grep -v '^ *+' conftest.er1 >conftest.err
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } >/dev/null; then
11807 if test -s conftest.err; then
11808 ac_cpp_err=$ac_c_preproc_warn_flag
11815 if test -z "$ac_cpp_err"; then
11816 cat >>confdefs.h <<\_ACEOF
11817 #define FSTYPE_STATVFS 1
11821 echo "$as_me: failed program was:" >&5
11822 sed 's/^/| /' conftest.$ac_ext >&5
11826 rm -f conftest.err conftest.$ac_ext
11827 if test $fstype = no; then
11828 cat >conftest.$ac_ext <<_ACEOF
11829 #line $LINENO "configure"
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11835 #include <sys/statfs.h>
11836 #include <sys/fstyp.h>
11838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11841 grep -v '^ *+' conftest.er1 >conftest.err
11843 cat conftest.err >&5
11844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11845 (exit $ac_status); } >/dev/null; then
11846 if test -s conftest.err; then
11847 ac_cpp_err=$ac_c_preproc_warn_flag
11854 if test -z "$ac_cpp_err"; then
11855 cat >>confdefs.h <<\_ACEOF
11856 #define FSTYPE_USG_STATFS 1
11860 echo "$as_me: failed program was:" >&5
11861 sed 's/^/| /' conftest.$ac_ext >&5
11865 rm -f conftest.err conftest.$ac_ext
11867 if test $fstype = no; then
11868 cat >conftest.$ac_ext <<_ACEOF
11869 #line $LINENO "configure"
11872 cat confdefs.h >>conftest.$ac_ext
11873 cat >>conftest.$ac_ext <<_ACEOF
11874 /* end confdefs.h. */
11875 #include <sys/statfs.h>
11876 #include <sys/vmount.h>
11878 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11881 grep -v '^ *+' conftest.er1 >conftest.err
11883 cat conftest.err >&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } >/dev/null; then
11886 if test -s conftest.err; then
11887 ac_cpp_err=$ac_c_preproc_warn_flag
11894 if test -z "$ac_cpp_err"; then
11895 cat >>confdefs.h <<\_ACEOF
11896 #define FSTYPE_AIX_STATFS 1
11900 echo "$as_me: failed program was:" >&5
11901 sed 's/^/| /' conftest.$ac_ext >&5
11905 rm -f conftest.err conftest.$ac_ext
11907 if test $fstype = no; then
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 <mntent.h>
11917 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11918 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11920 grep -v '^ *+' conftest.er1 >conftest.err
11922 cat conftest.err >&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } >/dev/null; then
11925 if test -s conftest.err; then
11926 ac_cpp_err=$ac_c_preproc_warn_flag
11933 if test -z "$ac_cpp_err"; then
11934 cat >>confdefs.h <<\_ACEOF
11935 #define FSTYPE_MNTENT 1
11939 echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11944 rm -f conftest.err conftest.$ac_ext
11946 if test $fstype = no; then
11947 cat >conftest.$ac_ext <<_ACEOF
11948 #line $LINENO "configure"
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11954 #include <sys/mount.h>
11957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11958 $EGREP "f_type;" >/dev/null 2>&1; then
11959 cat >>confdefs.h <<\_ACEOF
11960 #define FSTYPE_STATFS 1
11967 if test $fstype = no; then
11968 cat >conftest.$ac_ext <<_ACEOF
11969 #line $LINENO "configure"
11972 cat confdefs.h >>conftest.$ac_ext
11973 cat >>conftest.$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11975 #include <sys/mount.h>
11976 #include <sys/fs_types.h>
11978 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11979 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11981 grep -v '^ *+' conftest.er1 >conftest.err
11983 cat conftest.err >&5
11984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985 (exit $ac_status); } >/dev/null; then
11986 if test -s conftest.err; then
11987 ac_cpp_err=$ac_c_preproc_warn_flag
11994 if test -z "$ac_cpp_err"; then
11995 cat >>confdefs.h <<\_ACEOF
11996 #define FSTYPE_GETMNT 1
12000 echo "$as_me: failed program was:" >&5
12001 sed 's/^/| /' conftest.$ac_ext >&5
12005 rm -f conftest.err conftest.$ac_ext
12007 echo "$as_me:$LINENO: result: $fstype" >&5
12008 echo "${ECHO_T}$fstype" >&6
12010 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
12011 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
12012 if test "${ac_cv_type_signal+set}" = set; then
12013 echo $ECHO_N "(cached) $ECHO_C" >&6
12015 cat >conftest.$ac_ext <<_ACEOF
12016 #line $LINENO "configure"
12019 cat confdefs.h >>conftest.$ac_ext
12020 cat >>conftest.$ac_ext <<_ACEOF
12021 /* end confdefs.h. */
12022 #include <sys/types.h>
12023 #include <signal.h>
12028 extern "C" void (*signal (int, void (*)(int)))(int);
12030 void (*signal ()) ();
12041 rm -f conftest.$ac_objext
12042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12043 (eval $ac_compile) 2>&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); } &&
12047 { ac_try='test -s conftest.$ac_objext'
12048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12049 (eval $ac_try) 2>&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); }; }; then
12053 ac_cv_type_signal=void
12055 echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12058 ac_cv_type_signal=int
12060 rm -f conftest.$ac_objext conftest.$ac_ext
12062 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
12063 echo "${ECHO_T}$ac_cv_type_signal" >&6
12065 cat >>confdefs.h <<_ACEOF
12066 #define RETSIGTYPE $ac_cv_type_signal
12071 echo "$as_me:$LINENO: checking for type of signal functions" >&5
12072 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
12073 if test "${bash_cv_signal_vintage+set}" = set; then
12074 echo $ECHO_N "(cached) $ECHO_C" >&6
12077 cat >conftest.$ac_ext <<_ACEOF
12078 #line $LINENO "configure"
12081 cat confdefs.h >>conftest.$ac_ext
12082 cat >>conftest.$ac_ext <<_ACEOF
12083 /* end confdefs.h. */
12084 #include <signal.h>
12090 struct sigaction sa;
12091 sigemptyset(&ss); sigsuspend(&ss);
12092 sigaction(SIGINT, &sa, (struct sigaction *) 0);
12093 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
12099 rm -f conftest.$ac_objext conftest$ac_exeext
12100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12101 (eval $ac_link) 2>&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } &&
12105 { ac_try='test -s conftest$ac_exeext'
12106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12107 (eval $ac_try) 2>&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); }; }; then
12111 bash_cv_signal_vintage=posix
12113 echo "$as_me: failed program was:" >&5
12114 sed 's/^/| /' conftest.$ac_ext >&5
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 #include <signal.h>
12129 int mask = sigmask(SIGINT);
12130 sigsetmask(mask); sigblock(mask); sigpause(mask);
12136 rm -f conftest.$ac_objext conftest$ac_exeext
12137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12138 (eval $ac_link) 2>&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } &&
12142 { ac_try='test -s conftest$ac_exeext'
12143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144 (eval $ac_try) 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
12148 bash_cv_signal_vintage=4.2bsd
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12154 cat >conftest.$ac_ext <<_ACEOF
12155 #line $LINENO "configure"
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12162 #include <signal.h>
12163 RETSIGTYPE foo() { }
12168 int mask = sigmask(SIGINT);
12169 sigset(SIGINT, foo); sigrelse(SIGINT);
12170 sighold(SIGINT); sigpause(SIGINT);
12176 rm -f conftest.$ac_objext conftest$ac_exeext
12177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12178 (eval $ac_link) 2>&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } &&
12182 { ac_try='test -s conftest$ac_exeext'
12183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12184 (eval $ac_try) 2>&5
12186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187 (exit $ac_status); }; }; then
12188 bash_cv_signal_vintage=svr3
12190 echo "$as_me: failed program was:" >&5
12191 sed 's/^/| /' conftest.$ac_ext >&5
12193 bash_cv_signal_vintage=v7
12196 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12199 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12206 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
12207 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
12208 if test "$bash_cv_signal_vintage" = posix; then
12209 cat >>confdefs.h <<\_ACEOF
12210 #define HAVE_POSIX_SIGNALS 1
12213 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
12214 cat >>confdefs.h <<\_ACEOF
12215 #define HAVE_BSD_SIGNALS 1
12218 elif test "$bash_cv_signal_vintage" = svr3; then
12219 cat >>confdefs.h <<\_ACEOF
12220 #define HAVE_USG_SIGHOLD 1
12225 echo "$as_me:$LINENO: checking for mode_t" >&5
12226 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
12227 if test "${ac_cv_type_mode_t+set}" = set; then
12228 echo $ECHO_N "(cached) $ECHO_C" >&6
12230 cat >conftest.$ac_ext <<_ACEOF
12231 #line $LINENO "configure"
12234 cat confdefs.h >>conftest.$ac_ext
12235 cat >>conftest.$ac_ext <<_ACEOF
12236 /* end confdefs.h. */
12237 $ac_includes_default
12243 if (sizeof (mode_t))
12249 rm -f conftest.$ac_objext
12250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12251 (eval $ac_compile) 2>&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } &&
12255 { ac_try='test -s conftest.$ac_objext'
12256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12257 (eval $ac_try) 2>&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); }; }; then
12261 ac_cv_type_mode_t=yes
12263 echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12266 ac_cv_type_mode_t=no
12268 rm -f conftest.$ac_objext conftest.$ac_ext
12270 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
12271 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
12272 if test $ac_cv_type_mode_t = yes; then
12276 cat >>confdefs.h <<_ACEOF
12282 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
12283 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
12284 if test "${ac_cv_type_uid_t+set}" = set; then
12285 echo $ECHO_N "(cached) $ECHO_C" >&6
12287 cat >conftest.$ac_ext <<_ACEOF
12288 #line $LINENO "configure"
12291 cat confdefs.h >>conftest.$ac_ext
12292 cat >>conftest.$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12294 #include <sys/types.h>
12297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12298 $EGREP "uid_t" >/dev/null 2>&1; then
12299 ac_cv_type_uid_t=yes
12301 ac_cv_type_uid_t=no
12306 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
12307 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
12308 if test $ac_cv_type_uid_t = no; then
12310 cat >>confdefs.h <<\_ACEOF
12315 cat >>confdefs.h <<\_ACEOF
12321 echo "$as_me:$LINENO: checking for size_t" >&5
12322 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
12323 if test "${ac_cv_type_size_t+set}" = set; then
12324 echo $ECHO_N "(cached) $ECHO_C" >&6
12326 cat >conftest.$ac_ext <<_ACEOF
12327 #line $LINENO "configure"
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12333 $ac_includes_default
12339 if (sizeof (size_t))
12345 rm -f conftest.$ac_objext
12346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12347 (eval $ac_compile) 2>&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } &&
12351 { ac_try='test -s conftest.$ac_objext'
12352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12353 (eval $ac_try) 2>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; }; then
12357 ac_cv_type_size_t=yes
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12362 ac_cv_type_size_t=no
12364 rm -f conftest.$ac_objext conftest.$ac_ext
12366 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
12367 echo "${ECHO_T}$ac_cv_type_size_t" >&6
12368 if test $ac_cv_type_size_t = yes; then
12372 cat >>confdefs.h <<_ACEOF
12373 #define size_t unsigned
12378 echo "$as_me:$LINENO: checking for pid_t" >&5
12379 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
12380 if test "${ac_cv_type_pid_t+set}" = set; then
12381 echo $ECHO_N "(cached) $ECHO_C" >&6
12383 cat >conftest.$ac_ext <<_ACEOF
12384 #line $LINENO "configure"
12387 cat confdefs.h >>conftest.$ac_ext
12388 cat >>conftest.$ac_ext <<_ACEOF
12389 /* end confdefs.h. */
12390 $ac_includes_default
12396 if (sizeof (pid_t))
12402 rm -f conftest.$ac_objext
12403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12404 (eval $ac_compile) 2>&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } &&
12408 { ac_try='test -s conftest.$ac_objext'
12409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12410 (eval $ac_try) 2>&5
12412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413 (exit $ac_status); }; }; then
12414 ac_cv_type_pid_t=yes
12416 echo "$as_me: failed program was:" >&5
12417 sed 's/^/| /' conftest.$ac_ext >&5
12419 ac_cv_type_pid_t=no
12421 rm -f conftest.$ac_objext conftest.$ac_ext
12423 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
12424 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
12425 if test $ac_cv_type_pid_t = yes; then
12429 cat >>confdefs.h <<_ACEOF
12435 echo "$as_me:$LINENO: checking for off_t" >&5
12436 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
12437 if test "${ac_cv_type_off_t+set}" = set; then
12438 echo $ECHO_N "(cached) $ECHO_C" >&6
12440 cat >conftest.$ac_ext <<_ACEOF
12441 #line $LINENO "configure"
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h. */
12447 $ac_includes_default
12453 if (sizeof (off_t))
12459 rm -f conftest.$ac_objext
12460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12461 (eval $ac_compile) 2>&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } &&
12465 { ac_try='test -s conftest.$ac_objext'
12466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12467 (eval $ac_try) 2>&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; }; then
12471 ac_cv_type_off_t=yes
12473 echo "$as_me: failed program was:" >&5
12474 sed 's/^/| /' conftest.$ac_ext >&5
12476 ac_cv_type_off_t=no
12478 rm -f conftest.$ac_objext conftest.$ac_ext
12480 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
12481 echo "${ECHO_T}$ac_cv_type_off_t" >&6
12482 if test $ac_cv_type_off_t = yes; then
12486 cat >>confdefs.h <<_ACEOF
12492 echo "$as_me:$LINENO: checking for ino_t" >&5
12493 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
12494 if test "${ac_cv_type_ino_t+set}" = set; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12497 cat >conftest.$ac_ext <<_ACEOF
12498 #line $LINENO "configure"
12501 cat confdefs.h >>conftest.$ac_ext
12502 cat >>conftest.$ac_ext <<_ACEOF
12503 /* end confdefs.h. */
12504 $ac_includes_default
12510 if (sizeof (ino_t))
12516 rm -f conftest.$ac_objext
12517 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12518 (eval $ac_compile) 2>&5
12520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12521 (exit $ac_status); } &&
12522 { ac_try='test -s conftest.$ac_objext'
12523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12524 (eval $ac_try) 2>&5
12526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); }; }; then
12528 ac_cv_type_ino_t=yes
12530 echo "$as_me: failed program was:" >&5
12531 sed 's/^/| /' conftest.$ac_ext >&5
12533 ac_cv_type_ino_t=no
12535 rm -f conftest.$ac_objext conftest.$ac_ext
12537 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
12538 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
12539 if test $ac_cv_type_ino_t = yes; then
12543 cat >>confdefs.h <<_ACEOF
12544 #define ino_t unsigned long
12549 echo "$as_me:$LINENO: checking for dev_t" >&5
12550 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
12551 if test "${ac_cv_type_dev_t+set}" = set; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12554 cat >conftest.$ac_ext <<_ACEOF
12555 #line $LINENO "configure"
12558 cat confdefs.h >>conftest.$ac_ext
12559 cat >>conftest.$ac_ext <<_ACEOF
12560 /* end confdefs.h. */
12561 $ac_includes_default
12567 if (sizeof (dev_t))
12573 rm -f conftest.$ac_objext
12574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12575 (eval $ac_compile) 2>&5
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); } &&
12579 { ac_try='test -s conftest.$ac_objext'
12580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12581 (eval $ac_try) 2>&5
12583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12584 (exit $ac_status); }; }; then
12585 ac_cv_type_dev_t=yes
12587 echo "$as_me: failed program was:" >&5
12588 sed 's/^/| /' conftest.$ac_ext >&5
12590 ac_cv_type_dev_t=no
12592 rm -f conftest.$ac_objext conftest.$ac_ext
12594 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
12595 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
12596 if test $ac_cv_type_dev_t = yes; then
12600 cat >>confdefs.h <<_ACEOF
12601 #define dev_t unsigned long
12606 echo "$as_me:$LINENO: checking for daddr_t" >&5
12607 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
12608 if test "${ac_cv_type_daddr_t+set}" = set; then
12609 echo $ECHO_N "(cached) $ECHO_C" >&6
12611 cat >conftest.$ac_ext <<_ACEOF
12612 #line $LINENO "configure"
12615 cat confdefs.h >>conftest.$ac_ext
12616 cat >>conftest.$ac_ext <<_ACEOF
12617 /* end confdefs.h. */
12618 $ac_includes_default
12624 if (sizeof (daddr_t))
12630 rm -f conftest.$ac_objext
12631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12632 (eval $ac_compile) 2>&5
12634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } &&
12636 { ac_try='test -s conftest.$ac_objext'
12637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12638 (eval $ac_try) 2>&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); }; }; then
12642 ac_cv_type_daddr_t=yes
12644 echo "$as_me: failed program was:" >&5
12645 sed 's/^/| /' conftest.$ac_ext >&5
12647 ac_cv_type_daddr_t=no
12649 rm -f conftest.$ac_objext conftest.$ac_ext
12651 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
12652 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
12653 if test $ac_cv_type_daddr_t = yes; then
12657 cat >>confdefs.h <<_ACEOF
12658 #define daddr_t long
12663 echo "$as_me:$LINENO: checking for major_t" >&5
12664 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
12665 if test "${ac_cv_type_major_t+set}" = set; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12668 cat >conftest.$ac_ext <<_ACEOF
12669 #line $LINENO "configure"
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12675 $ac_includes_default
12681 if (sizeof (major_t))
12687 rm -f conftest.$ac_objext
12688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12689 (eval $ac_compile) 2>&5
12691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692 (exit $ac_status); } &&
12693 { ac_try='test -s conftest.$ac_objext'
12694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12695 (eval $ac_try) 2>&5
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; }; then
12699 ac_cv_type_major_t=yes
12701 echo "$as_me: failed program was:" >&5
12702 sed 's/^/| /' conftest.$ac_ext >&5
12704 ac_cv_type_major_t=no
12706 rm -f conftest.$ac_objext conftest.$ac_ext
12708 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
12709 echo "${ECHO_T}$ac_cv_type_major_t" >&6
12710 if test $ac_cv_type_major_t = yes; then
12714 cat >>confdefs.h <<_ACEOF
12715 #define major_t int
12720 echo "$as_me:$LINENO: checking for minor_t" >&5
12721 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
12722 if test "${ac_cv_type_minor_t+set}" = set; then
12723 echo $ECHO_N "(cached) $ECHO_C" >&6
12725 cat >conftest.$ac_ext <<_ACEOF
12726 #line $LINENO "configure"
12729 cat confdefs.h >>conftest.$ac_ext
12730 cat >>conftest.$ac_ext <<_ACEOF
12731 /* end confdefs.h. */
12732 $ac_includes_default
12738 if (sizeof (minor_t))
12744 rm -f conftest.$ac_objext
12745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12746 (eval $ac_compile) 2>&5
12748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749 (exit $ac_status); } &&
12750 { ac_try='test -s conftest.$ac_objext'
12751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12752 (eval $ac_try) 2>&5
12754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12755 (exit $ac_status); }; }; then
12756 ac_cv_type_minor_t=yes
12758 echo "$as_me: failed program was:" >&5
12759 sed 's/^/| /' conftest.$ac_ext >&5
12761 ac_cv_type_minor_t=no
12763 rm -f conftest.$ac_objext conftest.$ac_ext
12765 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
12766 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
12767 if test $ac_cv_type_minor_t = yes; then
12771 cat >>confdefs.h <<_ACEOF
12772 #define minor_t int
12777 echo "$as_me:$LINENO: checking for ssize_t" >&5
12778 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
12779 if test "${ac_cv_type_ssize_t+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 cat >conftest.$ac_ext <<_ACEOF
12783 #line $LINENO "configure"
12786 cat confdefs.h >>conftest.$ac_ext
12787 cat >>conftest.$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12789 $ac_includes_default
12795 if (sizeof (ssize_t))
12801 rm -f conftest.$ac_objext
12802 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12803 (eval $ac_compile) 2>&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } &&
12807 { ac_try='test -s conftest.$ac_objext'
12808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12809 (eval $ac_try) 2>&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); }; }; then
12813 ac_cv_type_ssize_t=yes
12815 echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.$ac_ext >&5
12818 ac_cv_type_ssize_t=no
12820 rm -f conftest.$ac_objext conftest.$ac_ext
12822 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12823 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
12824 if test $ac_cv_type_ssize_t = yes; then
12828 cat >>confdefs.h <<_ACEOF
12829 #define ssize_t int
12834 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12835 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12836 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12837 echo $ECHO_N "(cached) $ECHO_C" >&6
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 struct stat ac_aggr;
12851 if (ac_aggr.st_blocks)
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
12869 ac_cv_member_struct_stat_st_blocks=yes
12871 echo "$as_me: failed program was:" >&5
12872 sed 's/^/| /' conftest.$ac_ext >&5
12874 cat >conftest.$ac_ext <<_ACEOF
12875 #line $LINENO "configure"
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12881 $ac_includes_default
12885 static struct stat ac_aggr;
12886 if (sizeof ac_aggr.st_blocks)
12892 rm -f conftest.$ac_objext
12893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12894 (eval $ac_compile) 2>&5
12896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12897 (exit $ac_status); } &&
12898 { ac_try='test -s conftest.$ac_objext'
12899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12900 (eval $ac_try) 2>&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); }; }; then
12904 ac_cv_member_struct_stat_st_blocks=yes
12906 echo "$as_me: failed program was:" >&5
12907 sed 's/^/| /' conftest.$ac_ext >&5
12909 ac_cv_member_struct_stat_st_blocks=no
12911 rm -f conftest.$ac_objext conftest.$ac_ext
12913 rm -f conftest.$ac_objext conftest.$ac_ext
12915 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12916 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12917 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12919 cat >>confdefs.h <<_ACEOF
12920 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12924 cat >>confdefs.h <<\_ACEOF
12925 #define HAVE_ST_BLOCKS 1
12929 LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
12934 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
12935 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
12936 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 cat >conftest.$ac_ext <<_ACEOF
12940 #line $LINENO "configure"
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h. */
12946 $ac_includes_default
12950 static struct stat ac_aggr;
12951 if (ac_aggr.st_rdev)
12957 rm -f conftest.$ac_objext
12958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12959 (eval $ac_compile) 2>&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } &&
12963 { ac_try='test -s conftest.$ac_objext'
12964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12965 (eval $ac_try) 2>&5
12967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12968 (exit $ac_status); }; }; then
12969 ac_cv_member_struct_stat_st_rdev=yes
12971 echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12974 cat >conftest.$ac_ext <<_ACEOF
12975 #line $LINENO "configure"
12978 cat confdefs.h >>conftest.$ac_ext
12979 cat >>conftest.$ac_ext <<_ACEOF
12980 /* end confdefs.h. */
12981 $ac_includes_default
12985 static struct stat ac_aggr;
12986 if (sizeof ac_aggr.st_rdev)
12992 rm -f conftest.$ac_objext
12993 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12994 (eval $ac_compile) 2>&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12997 (exit $ac_status); } &&
12998 { ac_try='test -s conftest.$ac_objext'
12999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13000 (eval $ac_try) 2>&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); }; }; then
13004 ac_cv_member_struct_stat_st_rdev=yes
13006 echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.$ac_ext >&5
13009 ac_cv_member_struct_stat_st_rdev=no
13011 rm -f conftest.$ac_objext conftest.$ac_ext
13013 rm -f conftest.$ac_objext conftest.$ac_ext
13015 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
13016 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
13017 if test $ac_cv_member_struct_stat_st_rdev = yes; then
13019 cat >>confdefs.h <<_ACEOF
13020 #define HAVE_STRUCT_STAT_ST_RDEV 1
13024 cat >>confdefs.h <<\_ACEOF
13025 #define HAVE_ST_RDEV 1
13031 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
13032 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
13033 if test "${ac_cv_struct_tm+set}" = set; then
13034 echo $ECHO_N "(cached) $ECHO_C" >&6
13036 cat >conftest.$ac_ext <<_ACEOF
13037 #line $LINENO "configure"
13040 cat confdefs.h >>conftest.$ac_ext
13041 cat >>conftest.$ac_ext <<_ACEOF
13042 /* end confdefs.h. */
13043 #include <sys/types.h>
13049 struct tm *tp; tp->tm_sec;
13054 rm -f conftest.$ac_objext
13055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13056 (eval $ac_compile) 2>&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
13060 { ac_try='test -s conftest.$ac_objext'
13061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13062 (eval $ac_try) 2>&5
13064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13065 (exit $ac_status); }; }; then
13066 ac_cv_struct_tm=time.h
13068 echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.$ac_ext >&5
13071 ac_cv_struct_tm=sys/time.h
13073 rm -f conftest.$ac_objext conftest.$ac_ext
13075 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
13076 echo "${ECHO_T}$ac_cv_struct_tm" >&6
13077 if test $ac_cv_struct_tm = sys/time.h; then
13079 cat >>confdefs.h <<\_ACEOF
13080 #define TM_IN_SYS_TIME 1
13085 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13086 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
13087 if test "${ac_cv_c_const+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13090 cat >conftest.$ac_ext <<_ACEOF
13091 #line $LINENO "configure"
13094 cat confdefs.h >>conftest.$ac_ext
13095 cat >>conftest.$ac_ext <<_ACEOF
13096 /* end confdefs.h. */
13101 /* FIXME: Include the comments suggested by Paul. */
13102 #ifndef __cplusplus
13103 /* Ultrix mips cc rejects this. */
13104 typedef int charset[2];
13106 /* SunOS 4.1.1 cc rejects this. */
13107 char const *const *ccp;
13109 /* NEC SVR4.0.2 mips cc rejects this. */
13110 struct point {int x, y;};
13111 static struct point const zero = {0,0};
13112 /* AIX XL C 1.02.0.0 rejects this.
13113 It does not let you subtract one const X* pointer from another in
13114 an arm of an if-expression whose if-part is not a constant
13116 const char *g = "string";
13117 ccp = &g + (g ? g-g : 0);
13118 /* HPUX 7.0 cc rejects these. */
13121 ccp = (char const *const *) p;
13122 { /* SCO 3.2v4 cc rejects this. */
13124 char const *s = 0 ? (char *) 0 : (char const *) 0;
13128 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13129 int x[] = {25, 17};
13130 const int *foo = &x[0];
13133 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13134 typedef const int *iptr;
13138 { /* AIX XL C 1.02.0.0 rejects this saying
13139 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13140 struct s { int j; const int *ap[3]; };
13141 struct s *b; b->j = 5;
13143 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13144 const int foo = 10;
13152 rm -f conftest.$ac_objext
13153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13154 (eval $ac_compile) 2>&5
13156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157 (exit $ac_status); } &&
13158 { ac_try='test -s conftest.$ac_objext'
13159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13160 (eval $ac_try) 2>&5
13162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13163 (exit $ac_status); }; }; then
13166 echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13171 rm -f conftest.$ac_objext conftest.$ac_ext
13173 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13174 echo "${ECHO_T}$ac_cv_c_const" >&6
13175 if test $ac_cv_c_const = no; then
13177 cat >>confdefs.h <<\_ACEOF
13185 echo "$as_me:$LINENO: checking for char" >&5
13186 echo $ECHO_N "checking for char... $ECHO_C" >&6
13187 if test "${ac_cv_type_char+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13190 cat >conftest.$ac_ext <<_ACEOF
13191 #line $LINENO "configure"
13194 cat confdefs.h >>conftest.$ac_ext
13195 cat >>conftest.$ac_ext <<_ACEOF
13196 /* end confdefs.h. */
13197 $ac_includes_default
13209 rm -f conftest.$ac_objext
13210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13211 (eval $ac_compile) 2>&5
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); } &&
13215 { ac_try='test -s conftest.$ac_objext'
13216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13217 (eval $ac_try) 2>&5
13219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13220 (exit $ac_status); }; }; then
13221 ac_cv_type_char=yes
13223 echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13228 rm -f conftest.$ac_objext conftest.$ac_ext
13230 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
13231 echo "${ECHO_T}$ac_cv_type_char" >&6
13233 echo "$as_me:$LINENO: checking size of char" >&5
13234 echo $ECHO_N "checking size of char... $ECHO_C" >&6
13235 if test "${ac_cv_sizeof_char+set}" = set; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13238 if test "$ac_cv_type_char" = yes; then
13239 # The cast to unsigned long works around a bug in the HP C Compiler
13240 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13241 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13242 # This bug is HP SR number 8606223364.
13243 if test "$cross_compiling" = yes; then
13244 # Depending upon the size, compute the lo and hi bounds.
13245 cat >conftest.$ac_ext <<_ACEOF
13246 #line $LINENO "configure"
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h. */
13252 $ac_includes_default
13256 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
13263 rm -f conftest.$ac_objext
13264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13265 (eval $ac_compile) 2>&5
13267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268 (exit $ac_status); } &&
13269 { ac_try='test -s conftest.$ac_objext'
13270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13271 (eval $ac_try) 2>&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); }; }; then
13277 cat >conftest.$ac_ext <<_ACEOF
13278 #line $LINENO "configure"
13281 cat confdefs.h >>conftest.$ac_ext
13282 cat >>conftest.$ac_ext <<_ACEOF
13283 /* end confdefs.h. */
13284 $ac_includes_default
13288 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13295 rm -f conftest.$ac_objext
13296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13297 (eval $ac_compile) 2>&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } &&
13301 { ac_try='test -s conftest.$ac_objext'
13302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13303 (eval $ac_try) 2>&5
13305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13306 (exit $ac_status); }; }; then
13307 ac_hi=$ac_mid; break
13309 echo "$as_me: failed program was:" >&5
13310 sed 's/^/| /' conftest.$ac_ext >&5
13312 ac_lo=`expr $ac_mid + 1`
13313 if test $ac_lo -le $ac_mid; then
13317 ac_mid=`expr 2 '*' $ac_mid + 1`
13319 rm -f conftest.$ac_objext conftest.$ac_ext
13322 echo "$as_me: failed program was:" >&5
13323 sed 's/^/| /' conftest.$ac_ext >&5
13325 cat >conftest.$ac_ext <<_ACEOF
13326 #line $LINENO "configure"
13329 cat confdefs.h >>conftest.$ac_ext
13330 cat >>conftest.$ac_ext <<_ACEOF
13331 /* end confdefs.h. */
13332 $ac_includes_default
13336 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
13343 rm -f conftest.$ac_objext
13344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13345 (eval $ac_compile) 2>&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); } &&
13349 { ac_try='test -s conftest.$ac_objext'
13350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13351 (eval $ac_try) 2>&5
13353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); }; }; then
13357 cat >conftest.$ac_ext <<_ACEOF
13358 #line $LINENO "configure"
13361 cat confdefs.h >>conftest.$ac_ext
13362 cat >>conftest.$ac_ext <<_ACEOF
13363 /* end confdefs.h. */
13364 $ac_includes_default
13368 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
13375 rm -f conftest.$ac_objext
13376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13377 (eval $ac_compile) 2>&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); } &&
13381 { ac_try='test -s conftest.$ac_objext'
13382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13383 (eval $ac_try) 2>&5
13385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13386 (exit $ac_status); }; }; then
13387 ac_lo=$ac_mid; break
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13392 ac_hi=`expr '(' $ac_mid ')' - 1`
13393 if test $ac_mid -le $ac_hi; then
13397 ac_mid=`expr 2 '*' $ac_mid`
13399 rm -f conftest.$ac_objext conftest.$ac_ext
13402 echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13407 rm -f conftest.$ac_objext conftest.$ac_ext
13409 rm -f conftest.$ac_objext conftest.$ac_ext
13410 # Binary search between lo and hi bounds.
13411 while test "x$ac_lo" != "x$ac_hi"; do
13412 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13413 cat >conftest.$ac_ext <<_ACEOF
13414 #line $LINENO "configure"
13417 cat confdefs.h >>conftest.$ac_ext
13418 cat >>conftest.$ac_ext <<_ACEOF
13419 /* end confdefs.h. */
13420 $ac_includes_default
13424 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
13431 rm -f conftest.$ac_objext
13432 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13433 (eval $ac_compile) 2>&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); } &&
13437 { ac_try='test -s conftest.$ac_objext'
13438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13439 (eval $ac_try) 2>&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); }; }; then
13445 echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13448 ac_lo=`expr '(' $ac_mid ')' + 1`
13450 rm -f conftest.$ac_objext conftest.$ac_ext
13453 ?*) ac_cv_sizeof_char=$ac_lo;;
13454 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13455 See \`config.log' for more details." >&5
13456 echo "$as_me: error: cannot compute sizeof (char), 77
13457 See \`config.log' for more details." >&2;}
13458 { (exit 1); exit 1; }; } ;;
13461 if test "$cross_compiling" = yes; then
13462 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13463 See \`config.log' for more details." >&5
13464 echo "$as_me: error: cannot run test program while cross compiling
13465 See \`config.log' for more details." >&2;}
13466 { (exit 1); exit 1; }; }
13468 cat >conftest.$ac_ext <<_ACEOF
13469 #line $LINENO "configure"
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h. */
13475 $ac_includes_default
13476 long longval () { return (long) (sizeof (char)); }
13477 unsigned long ulongval () { return (long) (sizeof (char)); }
13479 #include <stdlib.h>
13484 FILE *f = fopen ("conftest.val", "w");
13487 if (((long) (sizeof (char))) < 0)
13489 long i = longval ();
13490 if (i != ((long) (sizeof (char))))
13492 fprintf (f, "%ld\n", i);
13496 unsigned long i = ulongval ();
13497 if (i != ((long) (sizeof (char))))
13499 fprintf (f, "%lu\n", i);
13501 exit (ferror (f) || fclose (f) != 0);
13507 rm -f conftest$ac_exeext
13508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13509 (eval $ac_link) 2>&5
13511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13514 (eval $ac_try) 2>&5
13516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13517 (exit $ac_status); }; }; then
13518 ac_cv_sizeof_char=`cat conftest.val`
13520 echo "$as_me: program exited with status $ac_status" >&5
13521 echo "$as_me: failed program was:" >&5
13522 sed 's/^/| /' conftest.$ac_ext >&5
13524 ( exit $ac_status )
13525 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
13526 See \`config.log' for more details." >&5
13527 echo "$as_me: error: cannot compute sizeof (char), 77
13528 See \`config.log' for more details." >&2;}
13529 { (exit 1); exit 1; }; }
13531 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13536 ac_cv_sizeof_char=0
13539 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
13540 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
13541 cat >>confdefs.h <<_ACEOF
13542 #define SIZEOF_CHAR $ac_cv_sizeof_char
13546 echo "$as_me:$LINENO: checking for short int" >&5
13547 echo $ECHO_N "checking for short int... $ECHO_C" >&6
13548 if test "${ac_cv_type_short_int+set}" = set; then
13549 echo $ECHO_N "(cached) $ECHO_C" >&6
13551 cat >conftest.$ac_ext <<_ACEOF
13552 #line $LINENO "configure"
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13558 $ac_includes_default
13562 if ((short int *) 0)
13564 if (sizeof (short int))
13570 rm -f conftest.$ac_objext
13571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13572 (eval $ac_compile) 2>&5
13574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13575 (exit $ac_status); } &&
13576 { ac_try='test -s conftest.$ac_objext'
13577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13578 (eval $ac_try) 2>&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); }; }; then
13582 ac_cv_type_short_int=yes
13584 echo "$as_me: failed program was:" >&5
13585 sed 's/^/| /' conftest.$ac_ext >&5
13587 ac_cv_type_short_int=no
13589 rm -f conftest.$ac_objext conftest.$ac_ext
13591 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
13592 echo "${ECHO_T}$ac_cv_type_short_int" >&6
13594 echo "$as_me:$LINENO: checking size of short int" >&5
13595 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
13596 if test "${ac_cv_sizeof_short_int+set}" = set; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
13599 if test "$ac_cv_type_short_int" = yes; then
13600 # The cast to unsigned long works around a bug in the HP C Compiler
13601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13603 # This bug is HP SR number 8606223364.
13604 if test "$cross_compiling" = yes; then
13605 # Depending upon the size, compute the lo and hi bounds.
13606 cat >conftest.$ac_ext <<_ACEOF
13607 #line $LINENO "configure"
13610 cat confdefs.h >>conftest.$ac_ext
13611 cat >>conftest.$ac_ext <<_ACEOF
13612 /* end confdefs.h. */
13613 $ac_includes_default
13617 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
13624 rm -f conftest.$ac_objext
13625 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13626 (eval $ac_compile) 2>&5
13628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13629 (exit $ac_status); } &&
13630 { ac_try='test -s conftest.$ac_objext'
13631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13632 (eval $ac_try) 2>&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); }; }; then
13638 cat >conftest.$ac_ext <<_ACEOF
13639 #line $LINENO "configure"
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h. */
13645 $ac_includes_default
13649 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13656 rm -f conftest.$ac_objext
13657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13658 (eval $ac_compile) 2>&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); } &&
13662 { ac_try='test -s conftest.$ac_objext'
13663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13664 (eval $ac_try) 2>&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); }; }; then
13668 ac_hi=$ac_mid; break
13670 echo "$as_me: failed program was:" >&5
13671 sed 's/^/| /' conftest.$ac_ext >&5
13673 ac_lo=`expr $ac_mid + 1`
13674 if test $ac_lo -le $ac_mid; then
13678 ac_mid=`expr 2 '*' $ac_mid + 1`
13680 rm -f conftest.$ac_objext conftest.$ac_ext
13683 echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13686 cat >conftest.$ac_ext <<_ACEOF
13687 #line $LINENO "configure"
13690 cat confdefs.h >>conftest.$ac_ext
13691 cat >>conftest.$ac_ext <<_ACEOF
13692 /* end confdefs.h. */
13693 $ac_includes_default
13697 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
13704 rm -f conftest.$ac_objext
13705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13706 (eval $ac_compile) 2>&5
13708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709 (exit $ac_status); } &&
13710 { ac_try='test -s conftest.$ac_objext'
13711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13712 (eval $ac_try) 2>&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); }; }; then
13718 cat >conftest.$ac_ext <<_ACEOF
13719 #line $LINENO "configure"
13722 cat confdefs.h >>conftest.$ac_ext
13723 cat >>conftest.$ac_ext <<_ACEOF
13724 /* end confdefs.h. */
13725 $ac_includes_default
13729 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
13736 rm -f conftest.$ac_objext
13737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13738 (eval $ac_compile) 2>&5
13740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13741 (exit $ac_status); } &&
13742 { ac_try='test -s conftest.$ac_objext'
13743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13744 (eval $ac_try) 2>&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); }; }; then
13748 ac_lo=$ac_mid; break
13750 echo "$as_me: failed program was:" >&5
13751 sed 's/^/| /' conftest.$ac_ext >&5
13753 ac_hi=`expr '(' $ac_mid ')' - 1`
13754 if test $ac_mid -le $ac_hi; then
13758 ac_mid=`expr 2 '*' $ac_mid`
13760 rm -f conftest.$ac_objext conftest.$ac_ext
13763 echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.$ac_ext >&5
13768 rm -f conftest.$ac_objext conftest.$ac_ext
13770 rm -f conftest.$ac_objext conftest.$ac_ext
13771 # Binary search between lo and hi bounds.
13772 while test "x$ac_lo" != "x$ac_hi"; do
13773 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13774 cat >conftest.$ac_ext <<_ACEOF
13775 #line $LINENO "configure"
13778 cat confdefs.h >>conftest.$ac_ext
13779 cat >>conftest.$ac_ext <<_ACEOF
13780 /* end confdefs.h. */
13781 $ac_includes_default
13785 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
13792 rm -f conftest.$ac_objext
13793 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13794 (eval $ac_compile) 2>&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
13798 { ac_try='test -s conftest.$ac_objext'
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; }; then
13806 echo "$as_me: failed program was:" >&5
13807 sed 's/^/| /' conftest.$ac_ext >&5
13809 ac_lo=`expr '(' $ac_mid ')' + 1`
13811 rm -f conftest.$ac_objext conftest.$ac_ext
13814 ?*) ac_cv_sizeof_short_int=$ac_lo;;
13815 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13816 See \`config.log' for more details." >&5
13817 echo "$as_me: error: cannot compute sizeof (short int), 77
13818 See \`config.log' for more details." >&2;}
13819 { (exit 1); exit 1; }; } ;;
13822 if test "$cross_compiling" = yes; then
13823 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
13824 See \`config.log' for more details." >&5
13825 echo "$as_me: error: cannot run test program while cross compiling
13826 See \`config.log' for more details." >&2;}
13827 { (exit 1); exit 1; }; }
13829 cat >conftest.$ac_ext <<_ACEOF
13830 #line $LINENO "configure"
13833 cat confdefs.h >>conftest.$ac_ext
13834 cat >>conftest.$ac_ext <<_ACEOF
13835 /* end confdefs.h. */
13836 $ac_includes_default
13837 long longval () { return (long) (sizeof (short int)); }
13838 unsigned long ulongval () { return (long) (sizeof (short int)); }
13840 #include <stdlib.h>
13845 FILE *f = fopen ("conftest.val", "w");
13848 if (((long) (sizeof (short int))) < 0)
13850 long i = longval ();
13851 if (i != ((long) (sizeof (short int))))
13853 fprintf (f, "%ld\n", i);
13857 unsigned long i = ulongval ();
13858 if (i != ((long) (sizeof (short int))))
13860 fprintf (f, "%lu\n", i);
13862 exit (ferror (f) || fclose (f) != 0);
13868 rm -f conftest$ac_exeext
13869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13870 (eval $ac_link) 2>&5
13872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13875 (eval $ac_try) 2>&5
13877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13878 (exit $ac_status); }; }; then
13879 ac_cv_sizeof_short_int=`cat conftest.val`
13881 echo "$as_me: program exited with status $ac_status" >&5
13882 echo "$as_me: failed program was:" >&5
13883 sed 's/^/| /' conftest.$ac_ext >&5
13885 ( exit $ac_status )
13886 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
13887 See \`config.log' for more details." >&5
13888 echo "$as_me: error: cannot compute sizeof (short int), 77
13889 See \`config.log' for more details." >&2;}
13890 { (exit 1); exit 1; }; }
13892 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13897 ac_cv_sizeof_short_int=0
13900 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
13901 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
13902 cat >>confdefs.h <<_ACEOF
13903 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
13907 echo "$as_me:$LINENO: checking for int" >&5
13908 echo $ECHO_N "checking for int... $ECHO_C" >&6
13909 if test "${ac_cv_type_int+set}" = set; then
13910 echo $ECHO_N "(cached) $ECHO_C" >&6
13912 cat >conftest.$ac_ext <<_ACEOF
13913 #line $LINENO "configure"
13916 cat confdefs.h >>conftest.$ac_ext
13917 cat >>conftest.$ac_ext <<_ACEOF
13918 /* end confdefs.h. */
13919 $ac_includes_default
13931 rm -f conftest.$ac_objext
13932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13933 (eval $ac_compile) 2>&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } &&
13937 { ac_try='test -s conftest.$ac_objext'
13938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13939 (eval $ac_try) 2>&5
13941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13942 (exit $ac_status); }; }; then
13945 echo "$as_me: failed program was:" >&5
13946 sed 's/^/| /' conftest.$ac_ext >&5
13950 rm -f conftest.$ac_objext conftest.$ac_ext
13952 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
13953 echo "${ECHO_T}$ac_cv_type_int" >&6
13955 echo "$as_me:$LINENO: checking size of int" >&5
13956 echo $ECHO_N "checking size of int... $ECHO_C" >&6
13957 if test "${ac_cv_sizeof_int+set}" = set; then
13958 echo $ECHO_N "(cached) $ECHO_C" >&6
13960 if test "$ac_cv_type_int" = yes; then
13961 # The cast to unsigned long works around a bug in the HP C Compiler
13962 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13963 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13964 # This bug is HP SR number 8606223364.
13965 if test "$cross_compiling" = yes; then
13966 # Depending upon the size, compute the lo and hi bounds.
13967 cat >conftest.$ac_ext <<_ACEOF
13968 #line $LINENO "configure"
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h. */
13974 $ac_includes_default
13978 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
13985 rm -f conftest.$ac_objext
13986 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13987 (eval $ac_compile) 2>&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } &&
13991 { ac_try='test -s conftest.$ac_objext'
13992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13993 (eval $ac_try) 2>&5
13995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996 (exit $ac_status); }; }; then
13999 cat >conftest.$ac_ext <<_ACEOF
14000 #line $LINENO "configure"
14003 cat confdefs.h >>conftest.$ac_ext
14004 cat >>conftest.$ac_ext <<_ACEOF
14005 /* end confdefs.h. */
14006 $ac_includes_default
14010 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14017 rm -f conftest.$ac_objext
14018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14019 (eval $ac_compile) 2>&5
14021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14022 (exit $ac_status); } &&
14023 { ac_try='test -s conftest.$ac_objext'
14024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14025 (eval $ac_try) 2>&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); }; }; then
14029 ac_hi=$ac_mid; break
14031 echo "$as_me: failed program was:" >&5
14032 sed 's/^/| /' conftest.$ac_ext >&5
14034 ac_lo=`expr $ac_mid + 1`
14035 if test $ac_lo -le $ac_mid; then
14039 ac_mid=`expr 2 '*' $ac_mid + 1`
14041 rm -f conftest.$ac_objext conftest.$ac_ext
14044 echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.$ac_ext >&5
14047 cat >conftest.$ac_ext <<_ACEOF
14048 #line $LINENO "configure"
14051 cat confdefs.h >>conftest.$ac_ext
14052 cat >>conftest.$ac_ext <<_ACEOF
14053 /* end confdefs.h. */
14054 $ac_includes_default
14058 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
14065 rm -f conftest.$ac_objext
14066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14067 (eval $ac_compile) 2>&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); } &&
14071 { ac_try='test -s conftest.$ac_objext'
14072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14073 (eval $ac_try) 2>&5
14075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076 (exit $ac_status); }; }; then
14079 cat >conftest.$ac_ext <<_ACEOF
14080 #line $LINENO "configure"
14083 cat confdefs.h >>conftest.$ac_ext
14084 cat >>conftest.$ac_ext <<_ACEOF
14085 /* end confdefs.h. */
14086 $ac_includes_default
14090 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
14097 rm -f conftest.$ac_objext
14098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14099 (eval $ac_compile) 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); } &&
14103 { ac_try='test -s conftest.$ac_objext'
14104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105 (eval $ac_try) 2>&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; }; then
14109 ac_lo=$ac_mid; break
14111 echo "$as_me: failed program was:" >&5
14112 sed 's/^/| /' conftest.$ac_ext >&5
14114 ac_hi=`expr '(' $ac_mid ')' - 1`
14115 if test $ac_mid -le $ac_hi; then
14119 ac_mid=`expr 2 '*' $ac_mid`
14121 rm -f conftest.$ac_objext conftest.$ac_ext
14124 echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14129 rm -f conftest.$ac_objext conftest.$ac_ext
14131 rm -f conftest.$ac_objext conftest.$ac_ext
14132 # Binary search between lo and hi bounds.
14133 while test "x$ac_lo" != "x$ac_hi"; do
14134 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14135 cat >conftest.$ac_ext <<_ACEOF
14136 #line $LINENO "configure"
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h. */
14142 $ac_includes_default
14146 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
14153 rm -f conftest.$ac_objext
14154 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14155 (eval $ac_compile) 2>&5
14157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158 (exit $ac_status); } &&
14159 { ac_try='test -s conftest.$ac_objext'
14160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14161 (eval $ac_try) 2>&5
14163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14164 (exit $ac_status); }; }; then
14167 echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.$ac_ext >&5
14170 ac_lo=`expr '(' $ac_mid ')' + 1`
14172 rm -f conftest.$ac_objext conftest.$ac_ext
14175 ?*) ac_cv_sizeof_int=$ac_lo;;
14176 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14177 See \`config.log' for more details." >&5
14178 echo "$as_me: error: cannot compute sizeof (int), 77
14179 See \`config.log' for more details." >&2;}
14180 { (exit 1); exit 1; }; } ;;
14183 if test "$cross_compiling" = yes; then
14184 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14185 See \`config.log' for more details." >&5
14186 echo "$as_me: error: cannot run test program while cross compiling
14187 See \`config.log' for more details." >&2;}
14188 { (exit 1); exit 1; }; }
14190 cat >conftest.$ac_ext <<_ACEOF
14191 #line $LINENO "configure"
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14197 $ac_includes_default
14198 long longval () { return (long) (sizeof (int)); }
14199 unsigned long ulongval () { return (long) (sizeof (int)); }
14201 #include <stdlib.h>
14206 FILE *f = fopen ("conftest.val", "w");
14209 if (((long) (sizeof (int))) < 0)
14211 long i = longval ();
14212 if (i != ((long) (sizeof (int))))
14214 fprintf (f, "%ld\n", i);
14218 unsigned long i = ulongval ();
14219 if (i != ((long) (sizeof (int))))
14221 fprintf (f, "%lu\n", i);
14223 exit (ferror (f) || fclose (f) != 0);
14229 rm -f conftest$ac_exeext
14230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14231 (eval $ac_link) 2>&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14236 (eval $ac_try) 2>&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14240 ac_cv_sizeof_int=`cat conftest.val`
14242 echo "$as_me: program exited with status $ac_status" >&5
14243 echo "$as_me: failed program was:" >&5
14244 sed 's/^/| /' conftest.$ac_ext >&5
14246 ( exit $ac_status )
14247 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
14248 See \`config.log' for more details." >&5
14249 echo "$as_me: error: cannot compute sizeof (int), 77
14250 See \`config.log' for more details." >&2;}
14251 { (exit 1); exit 1; }; }
14253 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14261 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14262 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
14263 cat >>confdefs.h <<_ACEOF
14264 #define SIZEOF_INT $ac_cv_sizeof_int
14268 echo "$as_me:$LINENO: checking for long int" >&5
14269 echo $ECHO_N "checking for long int... $ECHO_C" >&6
14270 if test "${ac_cv_type_long_int+set}" = set; then
14271 echo $ECHO_N "(cached) $ECHO_C" >&6
14273 cat >conftest.$ac_ext <<_ACEOF
14274 #line $LINENO "configure"
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14280 $ac_includes_default
14284 if ((long int *) 0)
14286 if (sizeof (long int))
14292 rm -f conftest.$ac_objext
14293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14294 (eval $ac_compile) 2>&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); } &&
14298 { ac_try='test -s conftest.$ac_objext'
14299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14300 (eval $ac_try) 2>&5
14302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); }; }; then
14304 ac_cv_type_long_int=yes
14306 echo "$as_me: failed program was:" >&5
14307 sed 's/^/| /' conftest.$ac_ext >&5
14309 ac_cv_type_long_int=no
14311 rm -f conftest.$ac_objext conftest.$ac_ext
14313 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
14314 echo "${ECHO_T}$ac_cv_type_long_int" >&6
14316 echo "$as_me:$LINENO: checking size of long int" >&5
14317 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
14318 if test "${ac_cv_sizeof_long_int+set}" = set; then
14319 echo $ECHO_N "(cached) $ECHO_C" >&6
14321 if test "$ac_cv_type_long_int" = yes; then
14322 # The cast to unsigned long works around a bug in the HP C Compiler
14323 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14324 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14325 # This bug is HP SR number 8606223364.
14326 if test "$cross_compiling" = yes; then
14327 # Depending upon the size, compute the lo and hi bounds.
14328 cat >conftest.$ac_ext <<_ACEOF
14329 #line $LINENO "configure"
14332 cat confdefs.h >>conftest.$ac_ext
14333 cat >>conftest.$ac_ext <<_ACEOF
14334 /* end confdefs.h. */
14335 $ac_includes_default
14339 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
14346 rm -f conftest.$ac_objext
14347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14348 (eval $ac_compile) 2>&5
14350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14351 (exit $ac_status); } &&
14352 { ac_try='test -s conftest.$ac_objext'
14353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14354 (eval $ac_try) 2>&5
14356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14357 (exit $ac_status); }; }; then
14360 cat >conftest.$ac_ext <<_ACEOF
14361 #line $LINENO "configure"
14364 cat confdefs.h >>conftest.$ac_ext
14365 cat >>conftest.$ac_ext <<_ACEOF
14366 /* end confdefs.h. */
14367 $ac_includes_default
14371 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14378 rm -f conftest.$ac_objext
14379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14380 (eval $ac_compile) 2>&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } &&
14384 { ac_try='test -s conftest.$ac_objext'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; }; then
14390 ac_hi=$ac_mid; break
14392 echo "$as_me: failed program was:" >&5
14393 sed 's/^/| /' conftest.$ac_ext >&5
14395 ac_lo=`expr $ac_mid + 1`
14396 if test $ac_lo -le $ac_mid; then
14400 ac_mid=`expr 2 '*' $ac_mid + 1`
14402 rm -f conftest.$ac_objext conftest.$ac_ext
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.$ac_ext >&5
14408 cat >conftest.$ac_ext <<_ACEOF
14409 #line $LINENO "configure"
14412 cat confdefs.h >>conftest.$ac_ext
14413 cat >>conftest.$ac_ext <<_ACEOF
14414 /* end confdefs.h. */
14415 $ac_includes_default
14419 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
14426 rm -f conftest.$ac_objext
14427 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14428 (eval $ac_compile) 2>&5
14430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14431 (exit $ac_status); } &&
14432 { ac_try='test -s conftest.$ac_objext'
14433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434 (eval $ac_try) 2>&5
14436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; }; then
14440 cat >conftest.$ac_ext <<_ACEOF
14441 #line $LINENO "configure"
14444 cat confdefs.h >>conftest.$ac_ext
14445 cat >>conftest.$ac_ext <<_ACEOF
14446 /* end confdefs.h. */
14447 $ac_includes_default
14451 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
14458 rm -f conftest.$ac_objext
14459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14460 (eval $ac_compile) 2>&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); } &&
14464 { ac_try='test -s conftest.$ac_objext'
14465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14466 (eval $ac_try) 2>&5
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; }; then
14470 ac_lo=$ac_mid; break
14472 echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14475 ac_hi=`expr '(' $ac_mid ')' - 1`
14476 if test $ac_mid -le $ac_hi; then
14480 ac_mid=`expr 2 '*' $ac_mid`
14482 rm -f conftest.$ac_objext conftest.$ac_ext
14485 echo "$as_me: failed program was:" >&5
14486 sed 's/^/| /' conftest.$ac_ext >&5
14490 rm -f conftest.$ac_objext conftest.$ac_ext
14492 rm -f conftest.$ac_objext conftest.$ac_ext
14493 # Binary search between lo and hi bounds.
14494 while test "x$ac_lo" != "x$ac_hi"; do
14495 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14496 cat >conftest.$ac_ext <<_ACEOF
14497 #line $LINENO "configure"
14500 cat confdefs.h >>conftest.$ac_ext
14501 cat >>conftest.$ac_ext <<_ACEOF
14502 /* end confdefs.h. */
14503 $ac_includes_default
14507 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
14514 rm -f conftest.$ac_objext
14515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14516 (eval $ac_compile) 2>&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } &&
14520 { ac_try='test -s conftest.$ac_objext'
14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14522 (eval $ac_try) 2>&5
14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14525 (exit $ac_status); }; }; then
14528 echo "$as_me: failed program was:" >&5
14529 sed 's/^/| /' conftest.$ac_ext >&5
14531 ac_lo=`expr '(' $ac_mid ')' + 1`
14533 rm -f conftest.$ac_objext conftest.$ac_ext
14536 ?*) ac_cv_sizeof_long_int=$ac_lo;;
14537 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14538 See \`config.log' for more details." >&5
14539 echo "$as_me: error: cannot compute sizeof (long int), 77
14540 See \`config.log' for more details." >&2;}
14541 { (exit 1); exit 1; }; } ;;
14544 if test "$cross_compiling" = yes; then
14545 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14546 See \`config.log' for more details." >&5
14547 echo "$as_me: error: cannot run test program while cross compiling
14548 See \`config.log' for more details." >&2;}
14549 { (exit 1); exit 1; }; }
14551 cat >conftest.$ac_ext <<_ACEOF
14552 #line $LINENO "configure"
14555 cat confdefs.h >>conftest.$ac_ext
14556 cat >>conftest.$ac_ext <<_ACEOF
14557 /* end confdefs.h. */
14558 $ac_includes_default
14559 long longval () { return (long) (sizeof (long int)); }
14560 unsigned long ulongval () { return (long) (sizeof (long int)); }
14562 #include <stdlib.h>
14567 FILE *f = fopen ("conftest.val", "w");
14570 if (((long) (sizeof (long int))) < 0)
14572 long i = longval ();
14573 if (i != ((long) (sizeof (long int))))
14575 fprintf (f, "%ld\n", i);
14579 unsigned long i = ulongval ();
14580 if (i != ((long) (sizeof (long int))))
14582 fprintf (f, "%lu\n", i);
14584 exit (ferror (f) || fclose (f) != 0);
14590 rm -f conftest$ac_exeext
14591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14592 (eval $ac_link) 2>&5
14594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14595 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14597 (eval $ac_try) 2>&5
14599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14600 (exit $ac_status); }; }; then
14601 ac_cv_sizeof_long_int=`cat conftest.val`
14603 echo "$as_me: program exited with status $ac_status" >&5
14604 echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.$ac_ext >&5
14607 ( exit $ac_status )
14608 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
14609 See \`config.log' for more details." >&5
14610 echo "$as_me: error: cannot compute sizeof (long int), 77
14611 See \`config.log' for more details." >&2;}
14612 { (exit 1); exit 1; }; }
14614 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14619 ac_cv_sizeof_long_int=0
14622 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
14623 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
14624 cat >>confdefs.h <<_ACEOF
14625 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
14629 echo "$as_me:$LINENO: checking for long long int" >&5
14630 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
14631 if test "${ac_cv_type_long_long_int+set}" = set; then
14632 echo $ECHO_N "(cached) $ECHO_C" >&6
14634 cat >conftest.$ac_ext <<_ACEOF
14635 #line $LINENO "configure"
14638 cat confdefs.h >>conftest.$ac_ext
14639 cat >>conftest.$ac_ext <<_ACEOF
14640 /* end confdefs.h. */
14641 $ac_includes_default
14645 if ((long long int *) 0)
14647 if (sizeof (long long int))
14653 rm -f conftest.$ac_objext
14654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14655 (eval $ac_compile) 2>&5
14657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658 (exit $ac_status); } &&
14659 { ac_try='test -s conftest.$ac_objext'
14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14661 (eval $ac_try) 2>&5
14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14664 (exit $ac_status); }; }; then
14665 ac_cv_type_long_long_int=yes
14667 echo "$as_me: failed program was:" >&5
14668 sed 's/^/| /' conftest.$ac_ext >&5
14670 ac_cv_type_long_long_int=no
14672 rm -f conftest.$ac_objext conftest.$ac_ext
14674 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
14675 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
14677 echo "$as_me:$LINENO: checking size of long long int" >&5
14678 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
14679 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
14680 echo $ECHO_N "(cached) $ECHO_C" >&6
14682 if test "$ac_cv_type_long_long_int" = yes; then
14683 # The cast to unsigned long works around a bug in the HP C Compiler
14684 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14685 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14686 # This bug is HP SR number 8606223364.
14687 if test "$cross_compiling" = yes; then
14688 # Depending upon the size, compute the lo and hi bounds.
14689 cat >conftest.$ac_ext <<_ACEOF
14690 #line $LINENO "configure"
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h. */
14696 $ac_includes_default
14700 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
14707 rm -f conftest.$ac_objext
14708 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14709 (eval $ac_compile) 2>&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } &&
14713 { ac_try='test -s conftest.$ac_objext'
14714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14715 (eval $ac_try) 2>&5
14717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14718 (exit $ac_status); }; }; then
14721 cat >conftest.$ac_ext <<_ACEOF
14722 #line $LINENO "configure"
14725 cat confdefs.h >>conftest.$ac_ext
14726 cat >>conftest.$ac_ext <<_ACEOF
14727 /* end confdefs.h. */
14728 $ac_includes_default
14732 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14739 rm -f conftest.$ac_objext
14740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14741 (eval $ac_compile) 2>&5
14743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14744 (exit $ac_status); } &&
14745 { ac_try='test -s conftest.$ac_objext'
14746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14747 (eval $ac_try) 2>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); }; }; then
14751 ac_hi=$ac_mid; break
14753 echo "$as_me: failed program was:" >&5
14754 sed 's/^/| /' conftest.$ac_ext >&5
14756 ac_lo=`expr $ac_mid + 1`
14757 if test $ac_lo -le $ac_mid; then
14761 ac_mid=`expr 2 '*' $ac_mid + 1`
14763 rm -f conftest.$ac_objext conftest.$ac_ext
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.$ac_ext >&5
14769 cat >conftest.$ac_ext <<_ACEOF
14770 #line $LINENO "configure"
14773 cat confdefs.h >>conftest.$ac_ext
14774 cat >>conftest.$ac_ext <<_ACEOF
14775 /* end confdefs.h. */
14776 $ac_includes_default
14780 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
14787 rm -f conftest.$ac_objext
14788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14789 (eval $ac_compile) 2>&5
14791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14792 (exit $ac_status); } &&
14793 { ac_try='test -s conftest.$ac_objext'
14794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14795 (eval $ac_try) 2>&5
14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14798 (exit $ac_status); }; }; then
14801 cat >conftest.$ac_ext <<_ACEOF
14802 #line $LINENO "configure"
14805 cat confdefs.h >>conftest.$ac_ext
14806 cat >>conftest.$ac_ext <<_ACEOF
14807 /* end confdefs.h. */
14808 $ac_includes_default
14812 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
14819 rm -f conftest.$ac_objext
14820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14821 (eval $ac_compile) 2>&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } &&
14825 { ac_try='test -s conftest.$ac_objext'
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; }; then
14831 ac_lo=$ac_mid; break
14833 echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.$ac_ext >&5
14836 ac_hi=`expr '(' $ac_mid ')' - 1`
14837 if test $ac_mid -le $ac_hi; then
14841 ac_mid=`expr 2 '*' $ac_mid`
14843 rm -f conftest.$ac_objext conftest.$ac_ext
14846 echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14851 rm -f conftest.$ac_objext conftest.$ac_ext
14853 rm -f conftest.$ac_objext conftest.$ac_ext
14854 # Binary search between lo and hi bounds.
14855 while test "x$ac_lo" != "x$ac_hi"; do
14856 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14857 cat >conftest.$ac_ext <<_ACEOF
14858 #line $LINENO "configure"
14861 cat confdefs.h >>conftest.$ac_ext
14862 cat >>conftest.$ac_ext <<_ACEOF
14863 /* end confdefs.h. */
14864 $ac_includes_default
14868 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
14875 rm -f conftest.$ac_objext
14876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14877 (eval $ac_compile) 2>&5
14879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14880 (exit $ac_status); } &&
14881 { ac_try='test -s conftest.$ac_objext'
14882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14883 (eval $ac_try) 2>&5
14885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14886 (exit $ac_status); }; }; then
14889 echo "$as_me: failed program was:" >&5
14890 sed 's/^/| /' conftest.$ac_ext >&5
14892 ac_lo=`expr '(' $ac_mid ')' + 1`
14894 rm -f conftest.$ac_objext conftest.$ac_ext
14897 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
14898 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14899 See \`config.log' for more details." >&5
14900 echo "$as_me: error: cannot compute sizeof (long long int), 77
14901 See \`config.log' for more details." >&2;}
14902 { (exit 1); exit 1; }; } ;;
14905 if test "$cross_compiling" = yes; then
14906 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14907 See \`config.log' for more details." >&5
14908 echo "$as_me: error: cannot run test program while cross compiling
14909 See \`config.log' for more details." >&2;}
14910 { (exit 1); exit 1; }; }
14912 cat >conftest.$ac_ext <<_ACEOF
14913 #line $LINENO "configure"
14916 cat confdefs.h >>conftest.$ac_ext
14917 cat >>conftest.$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14919 $ac_includes_default
14920 long longval () { return (long) (sizeof (long long int)); }
14921 unsigned long ulongval () { return (long) (sizeof (long long int)); }
14923 #include <stdlib.h>
14928 FILE *f = fopen ("conftest.val", "w");
14931 if (((long) (sizeof (long long int))) < 0)
14933 long i = longval ();
14934 if (i != ((long) (sizeof (long long int))))
14936 fprintf (f, "%ld\n", i);
14940 unsigned long i = ulongval ();
14941 if (i != ((long) (sizeof (long long int))))
14943 fprintf (f, "%lu\n", i);
14945 exit (ferror (f) || fclose (f) != 0);
14951 rm -f conftest$ac_exeext
14952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14953 (eval $ac_link) 2>&5
14955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14956 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958 (eval $ac_try) 2>&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; }; then
14962 ac_cv_sizeof_long_long_int=`cat conftest.val`
14964 echo "$as_me: program exited with status $ac_status" >&5
14965 echo "$as_me: failed program was:" >&5
14966 sed 's/^/| /' conftest.$ac_ext >&5
14968 ( exit $ac_status )
14969 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
14970 See \`config.log' for more details." >&5
14971 echo "$as_me: error: cannot compute sizeof (long long int), 77
14972 See \`config.log' for more details." >&2;}
14973 { (exit 1); exit 1; }; }
14975 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14980 ac_cv_sizeof_long_long_int=0
14983 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
14984 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
14985 cat >>confdefs.h <<_ACEOF
14986 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
14990 echo "$as_me:$LINENO: checking for int *" >&5
14991 echo $ECHO_N "checking for int *... $ECHO_C" >&6
14992 if test "${ac_cv_type_int_p+set}" = set; then
14993 echo $ECHO_N "(cached) $ECHO_C" >&6
14995 cat >conftest.$ac_ext <<_ACEOF
14996 #line $LINENO "configure"
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15002 $ac_includes_default
15008 if (sizeof (int *))
15014 rm -f conftest.$ac_objext
15015 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15016 (eval $ac_compile) 2>&5
15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019 (exit $ac_status); } &&
15020 { ac_try='test -s conftest.$ac_objext'
15021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15022 (eval $ac_try) 2>&5
15024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15025 (exit $ac_status); }; }; then
15026 ac_cv_type_int_p=yes
15028 echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15031 ac_cv_type_int_p=no
15033 rm -f conftest.$ac_objext conftest.$ac_ext
15035 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
15036 echo "${ECHO_T}$ac_cv_type_int_p" >&6
15038 echo "$as_me:$LINENO: checking size of int *" >&5
15039 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
15040 if test "${ac_cv_sizeof_int_p+set}" = set; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15043 if test "$ac_cv_type_int_p" = yes; then
15044 # The cast to unsigned long works around a bug in the HP C Compiler
15045 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15046 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15047 # This bug is HP SR number 8606223364.
15048 if test "$cross_compiling" = yes; then
15049 # Depending upon the size, compute the lo and hi bounds.
15050 cat >conftest.$ac_ext <<_ACEOF
15051 #line $LINENO "configure"
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h. */
15057 $ac_includes_default
15061 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
15068 rm -f conftest.$ac_objext
15069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15070 (eval $ac_compile) 2>&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); } &&
15074 { ac_try='test -s conftest.$ac_objext'
15075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15076 (eval $ac_try) 2>&5
15078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15079 (exit $ac_status); }; }; then
15082 cat >conftest.$ac_ext <<_ACEOF
15083 #line $LINENO "configure"
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15089 $ac_includes_default
15093 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15100 rm -f conftest.$ac_objext
15101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15102 (eval $ac_compile) 2>&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); } &&
15106 { ac_try='test -s conftest.$ac_objext'
15107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15108 (eval $ac_try) 2>&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); }; }; then
15112 ac_hi=$ac_mid; break
15114 echo "$as_me: failed program was:" >&5
15115 sed 's/^/| /' conftest.$ac_ext >&5
15117 ac_lo=`expr $ac_mid + 1`
15118 if test $ac_lo -le $ac_mid; then
15122 ac_mid=`expr 2 '*' $ac_mid + 1`
15124 rm -f conftest.$ac_objext conftest.$ac_ext
15127 echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15130 cat >conftest.$ac_ext <<_ACEOF
15131 #line $LINENO "configure"
15134 cat confdefs.h >>conftest.$ac_ext
15135 cat >>conftest.$ac_ext <<_ACEOF
15136 /* end confdefs.h. */
15137 $ac_includes_default
15141 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
15148 rm -f conftest.$ac_objext
15149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15150 (eval $ac_compile) 2>&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); } &&
15154 { ac_try='test -s conftest.$ac_objext'
15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15156 (eval $ac_try) 2>&5
15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15159 (exit $ac_status); }; }; then
15162 cat >conftest.$ac_ext <<_ACEOF
15163 #line $LINENO "configure"
15166 cat confdefs.h >>conftest.$ac_ext
15167 cat >>conftest.$ac_ext <<_ACEOF
15168 /* end confdefs.h. */
15169 $ac_includes_default
15173 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
15180 rm -f conftest.$ac_objext
15181 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15182 (eval $ac_compile) 2>&5
15184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185 (exit $ac_status); } &&
15186 { ac_try='test -s conftest.$ac_objext'
15187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15188 (eval $ac_try) 2>&5
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 (exit $ac_status); }; }; then
15192 ac_lo=$ac_mid; break
15194 echo "$as_me: failed program was:" >&5
15195 sed 's/^/| /' conftest.$ac_ext >&5
15197 ac_hi=`expr '(' $ac_mid ')' - 1`
15198 if test $ac_mid -le $ac_hi; then
15202 ac_mid=`expr 2 '*' $ac_mid`
15204 rm -f conftest.$ac_objext conftest.$ac_ext
15207 echo "$as_me: failed program was:" >&5
15208 sed 's/^/| /' conftest.$ac_ext >&5
15212 rm -f conftest.$ac_objext conftest.$ac_ext
15214 rm -f conftest.$ac_objext conftest.$ac_ext
15215 # Binary search between lo and hi bounds.
15216 while test "x$ac_lo" != "x$ac_hi"; do
15217 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15218 cat >conftest.$ac_ext <<_ACEOF
15219 #line $LINENO "configure"
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h. */
15225 $ac_includes_default
15229 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
15236 rm -f conftest.$ac_objext
15237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15238 (eval $ac_compile) 2>&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } &&
15242 { ac_try='test -s conftest.$ac_objext'
15243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15244 (eval $ac_try) 2>&5
15246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15247 (exit $ac_status); }; }; then
15250 echo "$as_me: failed program was:" >&5
15251 sed 's/^/| /' conftest.$ac_ext >&5
15253 ac_lo=`expr '(' $ac_mid ')' + 1`
15255 rm -f conftest.$ac_objext conftest.$ac_ext
15258 ?*) ac_cv_sizeof_int_p=$ac_lo;;
15259 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15260 See \`config.log' for more details." >&5
15261 echo "$as_me: error: cannot compute sizeof (int *), 77
15262 See \`config.log' for more details." >&2;}
15263 { (exit 1); exit 1; }; } ;;
15266 if test "$cross_compiling" = yes; then
15267 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15268 See \`config.log' for more details." >&5
15269 echo "$as_me: error: cannot run test program while cross compiling
15270 See \`config.log' for more details." >&2;}
15271 { (exit 1); exit 1; }; }
15273 cat >conftest.$ac_ext <<_ACEOF
15274 #line $LINENO "configure"
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h. */
15280 $ac_includes_default
15281 long longval () { return (long) (sizeof (int *)); }
15282 unsigned long ulongval () { return (long) (sizeof (int *)); }
15284 #include <stdlib.h>
15289 FILE *f = fopen ("conftest.val", "w");
15292 if (((long) (sizeof (int *))) < 0)
15294 long i = longval ();
15295 if (i != ((long) (sizeof (int *))))
15297 fprintf (f, "%ld\n", i);
15301 unsigned long i = ulongval ();
15302 if (i != ((long) (sizeof (int *))))
15304 fprintf (f, "%lu\n", i);
15306 exit (ferror (f) || fclose (f) != 0);
15312 rm -f conftest$ac_exeext
15313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15314 (eval $ac_link) 2>&5
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15319 (eval $ac_try) 2>&5
15321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); }; }; then
15323 ac_cv_sizeof_int_p=`cat conftest.val`
15325 echo "$as_me: program exited with status $ac_status" >&5
15326 echo "$as_me: failed program was:" >&5
15327 sed 's/^/| /' conftest.$ac_ext >&5
15329 ( exit $ac_status )
15330 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
15331 See \`config.log' for more details." >&5
15332 echo "$as_me: error: cannot compute sizeof (int *), 77
15333 See \`config.log' for more details." >&2;}
15334 { (exit 1); exit 1; }; }
15336 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15341 ac_cv_sizeof_int_p=0
15344 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
15345 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
15346 cat >>confdefs.h <<_ACEOF
15347 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
15352 # Check for sys/types.h types
15353 echo "$as_me:$LINENO: checking for u_int type" >&5
15354 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
15355 if test "${ac_cv_have_u_int+set}" = set; then
15356 echo $ECHO_N "(cached) $ECHO_C" >&6
15359 cat >conftest.$ac_ext <<_ACEOF
15360 #line $LINENO "configure"
15363 cat confdefs.h >>conftest.$ac_ext
15364 cat >>conftest.$ac_ext <<_ACEOF
15365 /* end confdefs.h. */
15366 #include <sys/types.h>
15375 rm -f conftest.$ac_objext
15376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15377 (eval $ac_compile) 2>&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); } &&
15381 { ac_try='test -s conftest.$ac_objext'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; }; then
15387 ac_cv_have_u_int="yes"
15389 echo "$as_me: failed program was:" >&5
15390 sed 's/^/| /' conftest.$ac_ext >&5
15392 ac_cv_have_u_int="no"
15395 rm -f conftest.$ac_objext conftest.$ac_ext
15398 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
15399 echo "${ECHO_T}$ac_cv_have_u_int" >&6
15400 if test "x$ac_cv_have_u_int" = "xyes" ; then
15401 cat >>confdefs.h <<\_ACEOF
15402 #define HAVE_U_INT 1
15408 echo "$as_me:$LINENO: checking for intmax_t type" >&5
15409 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
15410 if test "${ac_cv_have_intmax_t+set}" = set; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15414 cat >conftest.$ac_ext <<_ACEOF
15415 #line $LINENO "configure"
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h. */
15421 #include <sys/types.h>
15430 rm -f conftest.$ac_objext
15431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15432 (eval $ac_compile) 2>&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); } &&
15436 { ac_try='test -s conftest.$ac_objext'
15437 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15438 (eval $ac_try) 2>&5
15440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15441 (exit $ac_status); }; }; then
15442 ac_cv_have_intmax_t="yes"
15444 echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15448 cat >conftest.$ac_ext <<_ACEOF
15449 #line $LINENO "configure"
15452 cat confdefs.h >>conftest.$ac_ext
15453 cat >>conftest.$ac_ext <<_ACEOF
15454 /* end confdefs.h. */
15455 #include <stdint.h>
15464 rm -f conftest.$ac_objext
15465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15466 (eval $ac_compile) 2>&5
15468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15469 (exit $ac_status); } &&
15470 { ac_try='test -s conftest.$ac_objext'
15471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15472 (eval $ac_try) 2>&5
15474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15475 (exit $ac_status); }; }; then
15476 ac_cv_have_intmax_t="yes"
15478 echo "$as_me: failed program was:" >&5
15479 sed 's/^/| /' conftest.$ac_ext >&5
15481 ac_cv_have_intmax_t="no"
15484 rm -f conftest.$ac_objext conftest.$ac_ext
15488 rm -f conftest.$ac_objext conftest.$ac_ext
15492 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
15493 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
15494 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
15495 cat >>confdefs.h <<\_ACEOF
15496 #define HAVE_INTMAX_T 1
15503 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
15504 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
15505 if test "${ac_cv_have_u_intmax_t+set}" = set; then
15506 echo $ECHO_N "(cached) $ECHO_C" >&6
15509 cat >conftest.$ac_ext <<_ACEOF
15510 #line $LINENO "configure"
15513 cat confdefs.h >>conftest.$ac_ext
15514 cat >>conftest.$ac_ext <<_ACEOF
15515 /* end confdefs.h. */
15516 #include <sys/types.h>
15520 u_intmax_t a; a = 1;
15525 rm -f conftest.$ac_objext
15526 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15527 (eval $ac_compile) 2>&5
15529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530 (exit $ac_status); } &&
15531 { ac_try='test -s conftest.$ac_objext'
15532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15533 (eval $ac_try) 2>&5
15535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15536 (exit $ac_status); }; }; then
15537 ac_cv_have_u_intmax_t="yes"
15539 echo "$as_me: failed program was:" >&5
15540 sed 's/^/| /' conftest.$ac_ext >&5
15543 cat >conftest.$ac_ext <<_ACEOF
15544 #line $LINENO "configure"
15547 cat confdefs.h >>conftest.$ac_ext
15548 cat >>conftest.$ac_ext <<_ACEOF
15549 /* end confdefs.h. */
15550 #include <stdint.h>
15554 u_intmax_t a; a = 1;
15559 rm -f conftest.$ac_objext
15560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15561 (eval $ac_compile) 2>&5
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); } &&
15565 { ac_try='test -s conftest.$ac_objext'
15566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15567 (eval $ac_try) 2>&5
15569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15570 (exit $ac_status); }; }; then
15571 ac_cv_have_u_intmax_t="yes"
15573 echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.$ac_ext >&5
15576 ac_cv_have_u_intmax_t="no"
15579 rm -f conftest.$ac_objext conftest.$ac_ext
15583 rm -f conftest.$ac_objext conftest.$ac_ext
15586 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
15587 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
15588 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
15589 cat >>confdefs.h <<\_ACEOF
15590 #define HAVE_U_INTMAX_T 1
15597 echo "$as_me:$LINENO: checking for intXX_t types" >&5
15598 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
15599 if test "${ac_cv_have_intxx_t+set}" = set; then
15600 echo $ECHO_N "(cached) $ECHO_C" >&6
15603 cat >conftest.$ac_ext <<_ACEOF
15604 #line $LINENO "configure"
15607 cat confdefs.h >>conftest.$ac_ext
15608 cat >>conftest.$ac_ext <<_ACEOF
15609 /* end confdefs.h. */
15610 #include <sys/types.h>
15614 int8_t a; int16_t b; int32_t c; a = b = c = 1;
15619 rm -f conftest.$ac_objext
15620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15621 (eval $ac_compile) 2>&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); } &&
15625 { ac_try='test -s conftest.$ac_objext'
15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15627 (eval $ac_try) 2>&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); }; }; then
15631 ac_cv_have_intxx_t="yes"
15633 echo "$as_me: failed program was:" >&5
15634 sed 's/^/| /' conftest.$ac_ext >&5
15636 ac_cv_have_intxx_t="no"
15639 rm -f conftest.$ac_objext conftest.$ac_ext
15642 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
15643 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
15644 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
15645 cat >>confdefs.h <<\_ACEOF
15646 #define HAVE_INTXX_T 1
15652 echo "$as_me:$LINENO: checking for int64_t type" >&5
15653 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
15654 if test "${ac_cv_have_int64_t+set}" = set; then
15655 echo $ECHO_N "(cached) $ECHO_C" >&6
15658 cat >conftest.$ac_ext <<_ACEOF
15659 #line $LINENO "configure"
15662 cat confdefs.h >>conftest.$ac_ext
15663 cat >>conftest.$ac_ext <<_ACEOF
15664 /* end confdefs.h. */
15665 #include <sys/types.h>
15674 rm -f conftest.$ac_objext
15675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15676 (eval $ac_compile) 2>&5
15678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15679 (exit $ac_status); } &&
15680 { ac_try='test -s conftest.$ac_objext'
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_have_int64_t="yes"
15688 echo "$as_me: failed program was:" >&5
15689 sed 's/^/| /' conftest.$ac_ext >&5
15691 ac_cv_have_int64_t="no"
15694 rm -f conftest.$ac_objext conftest.$ac_ext
15697 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
15698 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
15699 if test "x$ac_cv_have_int64_t" = "xyes" ; then
15700 cat >>confdefs.h <<\_ACEOF
15701 #define HAVE_INT64_T 1
15707 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
15708 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
15709 if test "${ac_cv_have_u_intxx_t+set}" = set; then
15710 echo $ECHO_N "(cached) $ECHO_C" >&6
15713 cat >conftest.$ac_ext <<_ACEOF
15714 #line $LINENO "configure"
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15720 #include <sys/types.h>
15724 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
15729 rm -f conftest.$ac_objext
15730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15731 (eval $ac_compile) 2>&5
15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15734 (exit $ac_status); } &&
15735 { ac_try='test -s conftest.$ac_objext'
15736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15737 (eval $ac_try) 2>&5
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 (exit $ac_status); }; }; then
15741 ac_cv_have_u_intxx_t="yes"
15743 echo "$as_me: failed program was:" >&5
15744 sed 's/^/| /' conftest.$ac_ext >&5
15746 ac_cv_have_u_intxx_t="no"
15749 rm -f conftest.$ac_objext conftest.$ac_ext
15752 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
15753 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
15754 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
15755 cat >>confdefs.h <<\_ACEOF
15756 #define HAVE_U_INTXX_T 1
15762 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
15763 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
15764 if test "${ac_cv_have_u_int64_t+set}" = set; then
15765 echo $ECHO_N "(cached) $ECHO_C" >&6
15768 cat >conftest.$ac_ext <<_ACEOF
15769 #line $LINENO "configure"
15772 cat confdefs.h >>conftest.$ac_ext
15773 cat >>conftest.$ac_ext <<_ACEOF
15774 /* end confdefs.h. */
15775 #include <sys/types.h>
15779 u_int64_t a; a = 1;
15784 rm -f conftest.$ac_objext
15785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15786 (eval $ac_compile) 2>&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } &&
15790 { ac_try='test -s conftest.$ac_objext'
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; }; then
15796 ac_cv_have_u_int64_t="yes"
15798 echo "$as_me: failed program was:" >&5
15799 sed 's/^/| /' conftest.$ac_ext >&5
15801 ac_cv_have_u_int64_t="no"
15804 rm -f conftest.$ac_objext conftest.$ac_ext
15807 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
15808 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
15809 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
15810 cat >>confdefs.h <<\_ACEOF
15811 #define HAVE_U_INT64_T 1
15817 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
15818 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15820 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
15821 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
15822 cat >conftest.$ac_ext <<_ACEOF
15823 #line $LINENO "configure"
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h. */
15829 #include <sys/bitypes.h>
15833 int8_t a; int16_t b; int32_t c;
15834 u_int8_t e; u_int16_t f; u_int32_t g;
15835 a = b = c = e = f = g = 1;
15840 rm -f conftest.$ac_objext
15841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15842 (eval $ac_compile) 2>&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } &&
15846 { ac_try='test -s conftest.$ac_objext'
15847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15848 (eval $ac_try) 2>&5
15850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15851 (exit $ac_status); }; }; then
15852 cat >>confdefs.h <<\_ACEOF
15853 #define HAVE_U_INTXX_T 1
15856 cat >>confdefs.h <<\_ACEOF
15857 #define HAVE_INTXX_T 1
15860 cat >>confdefs.h <<\_ACEOF
15861 #define HAVE_SYS_BITYPES_H 1
15864 echo "$as_me:$LINENO: result: yes" >&5
15865 echo "${ECHO_T}yes" >&6
15867 echo "$as_me: failed program was:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15870 echo "$as_me:$LINENO: result: no" >&5
15871 echo "${ECHO_T}no" >&6
15874 rm -f conftest.$ac_objext conftest.$ac_ext
15877 if test -z "$have_u_intxx_t" ; then
15878 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
15879 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
15880 if test "${ac_cv_have_uintxx_t+set}" = set; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15884 cat >conftest.$ac_ext <<_ACEOF
15885 #line $LINENO "configure"
15888 cat confdefs.h >>conftest.$ac_ext
15889 cat >>conftest.$ac_ext <<_ACEOF
15890 /* end confdefs.h. */
15891 #include <sys/types.h>
15895 uint8_t a; uint16_t b;
15896 uint32_t c; a = b = c = 1;
15901 rm -f conftest.$ac_objext
15902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15903 (eval $ac_compile) 2>&5
15905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906 (exit $ac_status); } &&
15907 { ac_try='test -s conftest.$ac_objext'
15908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15909 (eval $ac_try) 2>&5
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); }; }; then
15913 ac_cv_have_uintxx_t="yes"
15915 echo "$as_me: failed program was:" >&5
15916 sed 's/^/| /' conftest.$ac_ext >&5
15918 ac_cv_have_uintxx_t="no"
15921 rm -f conftest.$ac_objext conftest.$ac_ext
15924 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
15925 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
15926 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
15927 cat >>confdefs.h <<\_ACEOF
15928 #define HAVE_UINTXX_T 1
15934 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
15935 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15937 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
15938 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
15939 cat >conftest.$ac_ext <<_ACEOF
15940 #line $LINENO "configure"
15943 cat confdefs.h >>conftest.$ac_ext
15944 cat >>conftest.$ac_ext <<_ACEOF
15945 /* end confdefs.h. */
15946 #include <sys/bitypes.h>
15950 int64_t a; u_int64_t b;
15956 rm -f conftest.$ac_objext
15957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15958 (eval $ac_compile) 2>&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); } &&
15962 { ac_try='test -s conftest.$ac_objext'
15963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15964 (eval $ac_try) 2>&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; }; then
15968 cat >>confdefs.h <<\_ACEOF
15969 #define HAVE_U_INT64_T 1
15972 cat >>confdefs.h <<\_ACEOF
15973 #define HAVE_INT64_T 1
15976 echo "$as_me:$LINENO: result: yes" >&5
15977 echo "${ECHO_T}yes" >&6
15979 echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15982 echo "$as_me:$LINENO: result: no" >&5
15983 echo "${ECHO_T}no" >&6
15986 rm -f conftest.$ac_objext conftest.$ac_ext
15989 if (test -z "$have_uintxx_t" && \
15990 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
15992 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
15993 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
15994 cat >conftest.$ac_ext <<_ACEOF
15995 #line $LINENO "configure"
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h. */
16001 #include <sys/bitypes.h>
16005 uint8_t a; uint16_t b;
16006 uint32_t c; a = b = c = 1;
16011 rm -f conftest.$ac_objext
16012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16013 (eval $ac_compile) 2>&5
16015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16016 (exit $ac_status); } &&
16017 { ac_try='test -s conftest.$ac_objext'
16018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16019 (eval $ac_try) 2>&5
16021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16022 (exit $ac_status); }; }; then
16023 cat >>confdefs.h <<\_ACEOF
16024 #define HAVE_UINTXX_T 1
16027 echo "$as_me:$LINENO: result: yes" >&5
16028 echo "${ECHO_T}yes" >&6
16030 echo "$as_me: failed program was:" >&5
16031 sed 's/^/| /' conftest.$ac_ext >&5
16033 echo "$as_me:$LINENO: result: no" >&5
16034 echo "${ECHO_T}no" >&6
16037 rm -f conftest.$ac_objext conftest.$ac_ext
16073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16074 echo "$as_me:$LINENO: checking for $ac_func" >&5
16075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16076 if eval "test \"\${$as_ac_var+set}\" = set"; then
16077 echo $ECHO_N "(cached) $ECHO_C" >&6
16079 cat >conftest.$ac_ext <<_ACEOF
16080 #line $LINENO "configure"
16083 cat confdefs.h >>conftest.$ac_ext
16084 cat >>conftest.$ac_ext <<_ACEOF
16085 /* end confdefs.h. */
16086 /* System header to define __stub macros and hopefully few prototypes,
16087 which can conflict with char $ac_func (); below.
16088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16089 <limits.h> exists even on freestanding compilers. */
16091 # include <limits.h>
16093 # include <assert.h>
16095 /* Override any gcc2 internal prototype to avoid an error. */
16100 /* We use char because int might match the return type of a gcc2
16101 builtin and then its argument prototype would still apply. */
16103 /* The GNU C library defines this for functions which it implements
16104 to always fail with ENOSYS. Some functions are actually named
16105 something starting with __ and the normal name is an alias. */
16106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16109 char (*f) () = $ac_func;
16118 return f != $ac_func;
16123 rm -f conftest.$ac_objext conftest$ac_exeext
16124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16125 (eval $ac_link) 2>&5
16127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16128 (exit $ac_status); } &&
16129 { ac_try='test -s conftest$ac_exeext'
16130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16131 (eval $ac_try) 2>&5
16133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134 (exit $ac_status); }; }; then
16135 eval "$as_ac_var=yes"
16137 echo "$as_me: failed program was:" >&5
16138 sed 's/^/| /' conftest.$ac_ext >&5
16140 eval "$as_ac_var=no"
16142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16145 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16146 if test `eval echo '${'$as_ac_var'}'` = yes; then
16147 cat >>confdefs.h <<_ACEOF
16148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16152 echo 'configure: cannot find needed function.'; exit 1
16159 for ac_func in fchdir
16161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16162 echo "$as_me:$LINENO: checking for $ac_func" >&5
16163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16164 if eval "test \"\${$as_ac_var+set}\" = set"; then
16165 echo $ECHO_N "(cached) $ECHO_C" >&6
16167 cat >conftest.$ac_ext <<_ACEOF
16168 #line $LINENO "configure"
16171 cat confdefs.h >>conftest.$ac_ext
16172 cat >>conftest.$ac_ext <<_ACEOF
16173 /* end confdefs.h. */
16174 /* System header to define __stub macros and hopefully few prototypes,
16175 which can conflict with char $ac_func (); below.
16176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16177 <limits.h> exists even on freestanding compilers. */
16179 # include <limits.h>
16181 # include <assert.h>
16183 /* Override any gcc2 internal prototype to avoid an error. */
16188 /* We use char because int might match the return type of a gcc2
16189 builtin and then its argument prototype would still apply. */
16191 /* The GNU C library defines this for functions which it implements
16192 to always fail with ENOSYS. Some functions are actually named
16193 something starting with __ and the normal name is an alias. */
16194 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16197 char (*f) () = $ac_func;
16206 return f != $ac_func;
16211 rm -f conftest.$ac_objext conftest$ac_exeext
16212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16213 (eval $ac_link) 2>&5
16215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } &&
16217 { ac_try='test -s conftest$ac_exeext'
16218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16219 (eval $ac_try) 2>&5
16221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16222 (exit $ac_status); }; }; then
16223 eval "$as_ac_var=yes"
16225 echo "$as_me: failed program was:" >&5
16226 sed 's/^/| /' conftest.$ac_ext >&5
16228 eval "$as_ac_var=no"
16230 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16232 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16233 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16234 if test `eval echo '${'$as_ac_var'}'` = yes; then
16235 cat >>confdefs.h <<_ACEOF
16236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16238 cat >>confdefs.h <<\_ACEOF
16239 #define HAVE_FCHDIR 1
16246 for ac_func in strtoll
16248 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16249 echo "$as_me:$LINENO: checking for $ac_func" >&5
16250 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16251 if eval "test \"\${$as_ac_var+set}\" = set"; then
16252 echo $ECHO_N "(cached) $ECHO_C" >&6
16254 cat >conftest.$ac_ext <<_ACEOF
16255 #line $LINENO "configure"
16258 cat confdefs.h >>conftest.$ac_ext
16259 cat >>conftest.$ac_ext <<_ACEOF
16260 /* end confdefs.h. */
16261 /* System header to define __stub macros and hopefully few prototypes,
16262 which can conflict with char $ac_func (); below.
16263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16264 <limits.h> exists even on freestanding compilers. */
16266 # include <limits.h>
16268 # include <assert.h>
16270 /* Override any gcc2 internal prototype to avoid an error. */
16275 /* We use char because int might match the return type of a gcc2
16276 builtin and then its argument prototype would still apply. */
16278 /* The GNU C library defines this for functions which it implements
16279 to always fail with ENOSYS. Some functions are actually named
16280 something starting with __ and the normal name is an alias. */
16281 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16284 char (*f) () = $ac_func;
16293 return f != $ac_func;
16298 rm -f conftest.$ac_objext conftest$ac_exeext
16299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16300 (eval $ac_link) 2>&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); } &&
16304 { ac_try='test -s conftest$ac_exeext'
16305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16306 (eval $ac_try) 2>&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); }; }; then
16310 eval "$as_ac_var=yes"
16312 echo "$as_me: failed program was:" >&5
16313 sed 's/^/| /' conftest.$ac_ext >&5
16315 eval "$as_ac_var=no"
16317 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16319 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16320 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16321 if test `eval echo '${'$as_ac_var'}'` = yes; then
16322 cat >>confdefs.h <<_ACEOF
16323 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16325 cat >>confdefs.h <<\_ACEOF
16326 #define HAVE_STRTOLL 1
16334 for ac_func in chflags
16336 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16337 echo "$as_me:$LINENO: checking for $ac_func" >&5
16338 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16339 if eval "test \"\${$as_ac_var+set}\" = set"; then
16340 echo $ECHO_N "(cached) $ECHO_C" >&6
16342 cat >conftest.$ac_ext <<_ACEOF
16343 #line $LINENO "configure"
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h. */
16349 /* System header to define __stub macros and hopefully few prototypes,
16350 which can conflict with char $ac_func (); below.
16351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16352 <limits.h> exists even on freestanding compilers. */
16354 # include <limits.h>
16356 # include <assert.h>
16358 /* Override any gcc2 internal prototype to avoid an error. */
16363 /* We use char because int might match the return type of a gcc2
16364 builtin and then its argument prototype would still apply. */
16366 /* The GNU C library defines this for functions which it implements
16367 to always fail with ENOSYS. Some functions are actually named
16368 something starting with __ and the normal name is an alias. */
16369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16372 char (*f) () = $ac_func;
16381 return f != $ac_func;
16386 rm -f conftest.$ac_objext conftest$ac_exeext
16387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16388 (eval $ac_link) 2>&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); } &&
16392 { ac_try='test -s conftest$ac_exeext'
16393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16394 (eval $ac_try) 2>&5
16396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); }; }; then
16398 eval "$as_ac_var=yes"
16400 echo "$as_me: failed program was:" >&5
16401 sed 's/^/| /' conftest.$ac_ext >&5
16403 eval "$as_ac_var=no"
16405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16408 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16409 if test `eval echo '${'$as_ac_var'}'` = yes; then
16410 cat >>confdefs.h <<_ACEOF
16411 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16422 for ac_func in snprintf vsnprintf gethostid getdomainname
16424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16425 echo "$as_me:$LINENO: checking for $ac_func" >&5
16426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16427 if eval "test \"\${$as_ac_var+set}\" = set"; then
16428 echo $ECHO_N "(cached) $ECHO_C" >&6
16430 cat >conftest.$ac_ext <<_ACEOF
16431 #line $LINENO "configure"
16434 cat confdefs.h >>conftest.$ac_ext
16435 cat >>conftest.$ac_ext <<_ACEOF
16436 /* end confdefs.h. */
16437 /* System header to define __stub macros and hopefully few prototypes,
16438 which can conflict with char $ac_func (); below.
16439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16440 <limits.h> exists even on freestanding compilers. */
16442 # include <limits.h>
16444 # include <assert.h>
16446 /* Override any gcc2 internal prototype to avoid an error. */
16451 /* We use char because int might match the return type of a gcc2
16452 builtin and then its argument prototype would still apply. */
16454 /* The GNU C library defines this for functions which it implements
16455 to always fail with ENOSYS. Some functions are actually named
16456 something starting with __ and the normal name is an alias. */
16457 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16460 char (*f) () = $ac_func;
16469 return f != $ac_func;
16474 rm -f conftest.$ac_objext conftest$ac_exeext
16475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16476 (eval $ac_link) 2>&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); } &&
16480 { ac_try='test -s conftest$ac_exeext'
16481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482 (eval $ac_try) 2>&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; }; then
16486 eval "$as_ac_var=yes"
16488 echo "$as_me: failed program was:" >&5
16489 sed 's/^/| /' conftest.$ac_ext >&5
16491 eval "$as_ac_var=no"
16493 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16495 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16496 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16497 if test `eval echo '${'$as_ac_var'}'` = yes; then
16498 cat >>confdefs.h <<_ACEOF
16499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16510 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
16512 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16513 echo "$as_me:$LINENO: checking for $ac_func" >&5
16514 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16515 if eval "test \"\${$as_ac_var+set}\" = set"; then
16516 echo $ECHO_N "(cached) $ECHO_C" >&6
16518 cat >conftest.$ac_ext <<_ACEOF
16519 #line $LINENO "configure"
16522 cat confdefs.h >>conftest.$ac_ext
16523 cat >>conftest.$ac_ext <<_ACEOF
16524 /* end confdefs.h. */
16525 /* System header to define __stub macros and hopefully few prototypes,
16526 which can conflict with char $ac_func (); below.
16527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16528 <limits.h> exists even on freestanding compilers. */
16530 # include <limits.h>
16532 # include <assert.h>
16534 /* Override any gcc2 internal prototype to avoid an error. */
16539 /* We use char because int might match the return type of a gcc2
16540 builtin and then its argument prototype would still apply. */
16542 /* The GNU C library defines this for functions which it implements
16543 to always fail with ENOSYS. Some functions are actually named
16544 something starting with __ and the normal name is an alias. */
16545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16548 char (*f) () = $ac_func;
16557 return f != $ac_func;
16562 rm -f conftest.$ac_objext conftest$ac_exeext
16563 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16564 (eval $ac_link) 2>&5
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); } &&
16568 { ac_try='test -s conftest$ac_exeext'
16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; }; then
16574 eval "$as_ac_var=yes"
16576 echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.$ac_ext >&5
16579 eval "$as_ac_var=no"
16581 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16583 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16584 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16585 if test `eval echo '${'$as_ac_var'}'` = yes; then
16586 cat >>confdefs.h <<_ACEOF
16587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16594 # If resolver functions are not in libc check for -lnsl or -lresolv.
16595 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
16596 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
16597 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
16598 echo $ECHO_N "(cached) $ECHO_C" >&6
16600 cat >conftest.$ac_ext <<_ACEOF
16601 #line $LINENO "configure"
16604 cat confdefs.h >>conftest.$ac_ext
16605 cat >>conftest.$ac_ext <<_ACEOF
16606 /* end confdefs.h. */
16607 /* System header to define __stub macros and hopefully few prototypes,
16608 which can conflict with char gethostbyname_r (); below.
16609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16610 <limits.h> exists even on freestanding compilers. */
16612 # include <limits.h>
16614 # include <assert.h>
16616 /* Override any gcc2 internal prototype to avoid an error. */
16621 /* We use char because int might match the return type of a gcc2
16622 builtin and then its argument prototype would still apply. */
16623 char gethostbyname_r ();
16624 /* The GNU C library defines this for functions which it implements
16625 to always fail with ENOSYS. Some functions are actually named
16626 something starting with __ and the normal name is an alias. */
16627 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
16630 char (*f) () = gethostbyname_r;
16639 return f != gethostbyname_r;
16644 rm -f conftest.$ac_objext conftest$ac_exeext
16645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16646 (eval $ac_link) 2>&5
16648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16649 (exit $ac_status); } &&
16650 { ac_try='test -s conftest$ac_exeext'
16651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16652 (eval $ac_try) 2>&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); }; }; then
16656 ac_cv_func_gethostbyname_r=yes
16658 echo "$as_me: failed program was:" >&5
16659 sed 's/^/| /' conftest.$ac_ext >&5
16661 ac_cv_func_gethostbyname_r=no
16663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16665 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
16666 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
16667 if test $ac_cv_func_gethostbyname_r = yes; then
16668 echo "$as_me:$LINENO: result: using libc's resolver" >&5
16669 echo "${ECHO_T}using libc's resolver" >&6
16672 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
16673 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
16674 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
16675 echo $ECHO_N "(cached) $ECHO_C" >&6
16677 ac_check_lib_save_LIBS=$LIBS
16679 cat >conftest.$ac_ext <<_ACEOF
16680 #line $LINENO "configure"
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h. */
16687 /* Override any gcc2 internal prototype to avoid an error. */
16691 /* We use char because int might match the return type of a gcc2
16692 builtin and then its argument prototype would still apply. */
16693 char gethostbyname_r ();
16697 gethostbyname_r ();
16702 rm -f conftest.$ac_objext conftest$ac_exeext
16703 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16704 (eval $ac_link) 2>&5
16706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16707 (exit $ac_status); } &&
16708 { ac_try='test -s conftest$ac_exeext'
16709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710 (eval $ac_try) 2>&5
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; }; then
16714 ac_cv_lib_nsl_gethostbyname_r=yes
16716 echo "$as_me: failed program was:" >&5
16717 sed 's/^/| /' conftest.$ac_ext >&5
16719 ac_cv_lib_nsl_gethostbyname_r=no
16721 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16722 LIBS=$ac_check_lib_save_LIBS
16724 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
16725 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
16726 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
16727 cat >>confdefs.h <<_ACEOF
16728 #define HAVE_LIBNSL 1
16736 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
16737 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
16738 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
16739 echo $ECHO_N "(cached) $ECHO_C" >&6
16741 ac_check_lib_save_LIBS=$LIBS
16742 LIBS="-lresolv $LIBS"
16743 cat >conftest.$ac_ext <<_ACEOF
16744 #line $LINENO "configure"
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h. */
16751 /* Override any gcc2 internal prototype to avoid an error. */
16755 /* We use char because int might match the return type of a gcc2
16756 builtin and then its argument prototype would still apply. */
16757 char gethostbyname_r ();
16761 gethostbyname_r ();
16766 rm -f conftest.$ac_objext conftest$ac_exeext
16767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16768 (eval $ac_link) 2>&5
16770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16771 (exit $ac_status); } &&
16772 { ac_try='test -s conftest$ac_exeext'
16773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16774 (eval $ac_try) 2>&5
16776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16777 (exit $ac_status); }; }; then
16778 ac_cv_lib_resolv_gethostbyname_r=yes
16780 echo "$as_me: failed program was:" >&5
16781 sed 's/^/| /' conftest.$ac_ext >&5
16783 ac_cv_lib_resolv_gethostbyname_r=no
16785 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16786 LIBS=$ac_check_lib_save_LIBS
16788 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
16789 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
16790 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
16791 cat >>confdefs.h <<_ACEOF
16792 #define HAVE_LIBRESOLV 1
16795 LIBS="-lresolv $LIBS"
16805 for ac_func in inet_pton
16807 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16808 echo "$as_me:$LINENO: checking for $ac_func" >&5
16809 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16810 if eval "test \"\${$as_ac_var+set}\" = set"; then
16811 echo $ECHO_N "(cached) $ECHO_C" >&6
16813 cat >conftest.$ac_ext <<_ACEOF
16814 #line $LINENO "configure"
16817 cat confdefs.h >>conftest.$ac_ext
16818 cat >>conftest.$ac_ext <<_ACEOF
16819 /* end confdefs.h. */
16820 /* System header to define __stub macros and hopefully few prototypes,
16821 which can conflict with char $ac_func (); below.
16822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16823 <limits.h> exists even on freestanding compilers. */
16825 # include <limits.h>
16827 # include <assert.h>
16829 /* Override any gcc2 internal prototype to avoid an error. */
16834 /* We use char because int might match the return type of a gcc2
16835 builtin and then its argument prototype would still apply. */
16837 /* The GNU C library defines this for functions which it implements
16838 to always fail with ENOSYS. Some functions are actually named
16839 something starting with __ and the normal name is an alias. */
16840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16843 char (*f) () = $ac_func;
16852 return f != $ac_func;
16857 rm -f conftest.$ac_objext conftest$ac_exeext
16858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16859 (eval $ac_link) 2>&5
16861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16862 (exit $ac_status); } &&
16863 { ac_try='test -s conftest$ac_exeext'
16864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16865 (eval $ac_try) 2>&5
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); }; }; then
16869 eval "$as_ac_var=yes"
16871 echo "$as_me: failed program was:" >&5
16872 sed 's/^/| /' conftest.$ac_ext >&5
16874 eval "$as_ac_var=no"
16876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16878 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16879 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16880 if test `eval echo '${'$as_ac_var'}'` = yes; then
16881 cat >>confdefs.h <<_ACEOF
16882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16884 cat >>confdefs.h <<\_ACEOF
16885 #define HAVE_INET_PTON 1
16892 for ac_func in inet_ntop
16894 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16895 echo "$as_me:$LINENO: checking for $ac_func" >&5
16896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16897 if eval "test \"\${$as_ac_var+set}\" = set"; then
16898 echo $ECHO_N "(cached) $ECHO_C" >&6
16900 cat >conftest.$ac_ext <<_ACEOF
16901 #line $LINENO "configure"
16904 cat confdefs.h >>conftest.$ac_ext
16905 cat >>conftest.$ac_ext <<_ACEOF
16906 /* end confdefs.h. */
16907 /* System header to define __stub macros and hopefully few prototypes,
16908 which can conflict with char $ac_func (); below.
16909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16910 <limits.h> exists even on freestanding compilers. */
16912 # include <limits.h>
16914 # include <assert.h>
16916 /* Override any gcc2 internal prototype to avoid an error. */
16921 /* We use char because int might match the return type of a gcc2
16922 builtin and then its argument prototype would still apply. */
16924 /* The GNU C library defines this for functions which it implements
16925 to always fail with ENOSYS. Some functions are actually named
16926 something starting with __ and the normal name is an alias. */
16927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16930 char (*f) () = $ac_func;
16939 return f != $ac_func;
16944 rm -f conftest.$ac_objext conftest$ac_exeext
16945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16946 (eval $ac_link) 2>&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); } &&
16950 { ac_try='test -s conftest$ac_exeext'
16951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16952 (eval $ac_try) 2>&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; }; then
16956 eval "$as_ac_var=yes"
16958 echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16961 eval "$as_ac_var=no"
16963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16965 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
16966 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16967 if test `eval echo '${'$as_ac_var'}'` = yes; then
16968 cat >>confdefs.h <<_ACEOF
16969 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16971 cat >>confdefs.h <<\_ACEOF
16972 #define HAVE_INET_NTOP 1
16979 for ac_func in gethostbyname2
16981 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16982 echo "$as_me:$LINENO: checking for $ac_func" >&5
16983 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16984 if eval "test \"\${$as_ac_var+set}\" = set"; then
16985 echo $ECHO_N "(cached) $ECHO_C" >&6
16987 cat >conftest.$ac_ext <<_ACEOF
16988 #line $LINENO "configure"
16991 cat confdefs.h >>conftest.$ac_ext
16992 cat >>conftest.$ac_ext <<_ACEOF
16993 /* end confdefs.h. */
16994 /* System header to define __stub macros and hopefully few prototypes,
16995 which can conflict with char $ac_func (); below.
16996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16997 <limits.h> exists even on freestanding compilers. */
16999 # include <limits.h>
17001 # include <assert.h>
17003 /* Override any gcc2 internal prototype to avoid an error. */
17008 /* We use char because int might match the return type of a gcc2
17009 builtin and then its argument prototype would still apply. */
17011 /* The GNU C library defines this for functions which it implements
17012 to always fail with ENOSYS. Some functions are actually named
17013 something starting with __ and the normal name is an alias. */
17014 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17017 char (*f) () = $ac_func;
17026 return f != $ac_func;
17031 rm -f conftest.$ac_objext conftest$ac_exeext
17032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17033 (eval $ac_link) 2>&5
17035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17036 (exit $ac_status); } &&
17037 { ac_try='test -s conftest$ac_exeext'
17038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17039 (eval $ac_try) 2>&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 (exit $ac_status); }; }; then
17043 eval "$as_ac_var=yes"
17045 echo "$as_me: failed program was:" >&5
17046 sed 's/^/| /' conftest.$ac_ext >&5
17048 eval "$as_ac_var=no"
17050 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17054 if test `eval echo '${'$as_ac_var'}'` = yes; then
17055 cat >>confdefs.h <<_ACEOF
17056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17058 cat >>confdefs.h <<\_ACEOF
17059 #define HAVE_GETHOSTBYNAME2 1
17066 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
17067 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
17068 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17071 cat >conftest.$ac_ext <<_ACEOF
17072 #line $LINENO "configure"
17075 cat confdefs.h >>conftest.$ac_ext
17076 cat >>conftest.$ac_ext <<_ACEOF
17077 /* end confdefs.h. */
17078 #include <sys/socket.h>
17082 struct sockaddr s; s.sa_len;
17087 rm -f conftest.$ac_objext
17088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17089 (eval $ac_compile) 2>&5
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); } &&
17093 { ac_try='test -s conftest.$ac_objext'
17094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17095 (eval $ac_try) 2>&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; }; then
17099 ac_cv_struct_sockaddr_sa_len=yes
17101 echo "$as_me: failed program was:" >&5
17102 sed 's/^/| /' conftest.$ac_ext >&5
17104 ac_cv_struct_sockaddr_sa_len=no
17106 rm -f conftest.$ac_objext conftest.$ac_ext
17108 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
17109 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
17111 if test $ac_cv_struct_sockaddr_sa_len = yes; then
17113 cat >>confdefs.h <<\_ACEOF
17114 #define HAVE_SA_LEN 1
17120 echo "$as_me:$LINENO: checking for IPv6 support" >&5
17121 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
17122 if test "${ac_cv_ipv6_support+set}" = set; then
17123 echo $ECHO_N "(cached) $ECHO_C" >&6
17125 cat >conftest.$ac_ext <<_ACEOF
17126 #line $LINENO "configure"
17129 cat confdefs.h >>conftest.$ac_ext
17130 cat >>conftest.$ac_ext <<_ACEOF
17131 /* end confdefs.h. */
17132 #include <sys/types.h>
17133 #include <sys/socket.h>
17134 #include <netinet/in.h>
17138 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
17144 rm -f conftest.$ac_objext conftest$ac_exeext
17145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17146 (eval $ac_link) 2>&5
17148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17149 (exit $ac_status); } &&
17150 { ac_try='test -s conftest$ac_exeext'
17151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17152 (eval $ac_try) 2>&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); }; }; then
17156 ac_cv_ipv6_support=yes
17158 echo "$as_me: failed program was:" >&5
17159 sed 's/^/| /' conftest.$ac_ext >&5
17161 ac_cv_ipv6_support=no
17163 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17165 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
17166 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
17168 if test "$ac_cv_ipv6_support" = yes; then
17170 cat >>confdefs.h <<\_ACEOF
17171 #define HAVE_IPV6 1
17179 for ac_func in strftime
17181 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17182 echo "$as_me:$LINENO: checking for $ac_func" >&5
17183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17184 if eval "test \"\${$as_ac_var+set}\" = set"; then
17185 echo $ECHO_N "(cached) $ECHO_C" >&6
17187 cat >conftest.$ac_ext <<_ACEOF
17188 #line $LINENO "configure"
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h. */
17194 /* System header to define __stub macros and hopefully few prototypes,
17195 which can conflict with char $ac_func (); below.
17196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17197 <limits.h> exists even on freestanding compilers. */
17199 # include <limits.h>
17201 # include <assert.h>
17203 /* Override any gcc2 internal prototype to avoid an error. */
17208 /* We use char because int might match the return type of a gcc2
17209 builtin and then its argument prototype would still apply. */
17211 /* The GNU C library defines this for functions which it implements
17212 to always fail with ENOSYS. Some functions are actually named
17213 something starting with __ and the normal name is an alias. */
17214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17217 char (*f) () = $ac_func;
17226 return f != $ac_func;
17231 rm -f conftest.$ac_objext conftest$ac_exeext
17232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17233 (eval $ac_link) 2>&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); } &&
17237 { ac_try='test -s conftest$ac_exeext'
17238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17239 (eval $ac_try) 2>&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); }; }; then
17243 eval "$as_ac_var=yes"
17245 echo "$as_me: failed program was:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17248 eval "$as_ac_var=no"
17250 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17253 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17254 if test `eval echo '${'$as_ac_var'}'` = yes; then
17255 cat >>confdefs.h <<_ACEOF
17256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17260 # strftime is in -lintl on SCO UNIX.
17261 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17262 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
17263 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17264 echo $ECHO_N "(cached) $ECHO_C" >&6
17266 ac_check_lib_save_LIBS=$LIBS
17267 LIBS="-lintl $LIBS"
17268 cat >conftest.$ac_ext <<_ACEOF
17269 #line $LINENO "configure"
17272 cat confdefs.h >>conftest.$ac_ext
17273 cat >>conftest.$ac_ext <<_ACEOF
17274 /* end confdefs.h. */
17276 /* Override any gcc2 internal prototype to avoid an error. */
17280 /* We use char because int might match the return type of a gcc2
17281 builtin and then its argument prototype would still apply. */
17291 rm -f conftest.$ac_objext conftest$ac_exeext
17292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17293 (eval $ac_link) 2>&5
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); } &&
17297 { ac_try='test -s conftest$ac_exeext'
17298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299 (eval $ac_try) 2>&5
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; }; then
17303 ac_cv_lib_intl_strftime=yes
17305 echo "$as_me: failed program was:" >&5
17306 sed 's/^/| /' conftest.$ac_ext >&5
17308 ac_cv_lib_intl_strftime=no
17310 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17311 LIBS=$ac_check_lib_save_LIBS
17313 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
17314 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
17315 if test $ac_cv_lib_intl_strftime = yes; then
17316 cat >>confdefs.h <<\_ACEOF
17317 #define HAVE_STRFTIME 1
17320 LIBS="-lintl $LIBS"
17327 for ac_func in vprintf
17329 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17330 echo "$as_me:$LINENO: checking for $ac_func" >&5
17331 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17332 if eval "test \"\${$as_ac_var+set}\" = set"; then
17333 echo $ECHO_N "(cached) $ECHO_C" >&6
17335 cat >conftest.$ac_ext <<_ACEOF
17336 #line $LINENO "configure"
17339 cat confdefs.h >>conftest.$ac_ext
17340 cat >>conftest.$ac_ext <<_ACEOF
17341 /* end confdefs.h. */
17342 /* System header to define __stub macros and hopefully few prototypes,
17343 which can conflict with char $ac_func (); below.
17344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17345 <limits.h> exists even on freestanding compilers. */
17347 # include <limits.h>
17349 # include <assert.h>
17351 /* Override any gcc2 internal prototype to avoid an error. */
17356 /* We use char because int might match the return type of a gcc2
17357 builtin and then its argument prototype would still apply. */
17359 /* The GNU C library defines this for functions which it implements
17360 to always fail with ENOSYS. Some functions are actually named
17361 something starting with __ and the normal name is an alias. */
17362 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17365 char (*f) () = $ac_func;
17374 return f != $ac_func;
17379 rm -f conftest.$ac_objext conftest$ac_exeext
17380 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17381 (eval $ac_link) 2>&5
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); } &&
17385 { ac_try='test -s conftest$ac_exeext'
17386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387 (eval $ac_try) 2>&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; }; then
17391 eval "$as_ac_var=yes"
17393 echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17396 eval "$as_ac_var=no"
17398 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17401 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17402 if test `eval echo '${'$as_ac_var'}'` = yes; then
17403 cat >>confdefs.h <<_ACEOF
17404 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17407 echo "$as_me:$LINENO: checking for _doprnt" >&5
17408 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
17409 if test "${ac_cv_func__doprnt+set}" = set; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17412 cat >conftest.$ac_ext <<_ACEOF
17413 #line $LINENO "configure"
17416 cat confdefs.h >>conftest.$ac_ext
17417 cat >>conftest.$ac_ext <<_ACEOF
17418 /* end confdefs.h. */
17419 /* System header to define __stub macros and hopefully few prototypes,
17420 which can conflict with char _doprnt (); below.
17421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17422 <limits.h> exists even on freestanding compilers. */
17424 # include <limits.h>
17426 # include <assert.h>
17428 /* Override any gcc2 internal prototype to avoid an error. */
17433 /* We use char because int might match the return type of a gcc2
17434 builtin and then its argument prototype would still apply. */
17436 /* The GNU C library defines this for functions which it implements
17437 to always fail with ENOSYS. Some functions are actually named
17438 something starting with __ and the normal name is an alias. */
17439 #if defined (__stub__doprnt) || defined (__stub____doprnt)
17442 char (*f) () = _doprnt;
17451 return f != _doprnt;
17456 rm -f conftest.$ac_objext conftest$ac_exeext
17457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17458 (eval $ac_link) 2>&5
17460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17461 (exit $ac_status); } &&
17462 { ac_try='test -s conftest$ac_exeext'
17463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17464 (eval $ac_try) 2>&5
17466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17467 (exit $ac_status); }; }; then
17468 ac_cv_func__doprnt=yes
17470 echo "$as_me: failed program was:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17473 ac_cv_func__doprnt=no
17475 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17477 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
17478 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
17479 if test $ac_cv_func__doprnt = yes; then
17481 cat >>confdefs.h <<\_ACEOF
17482 #define HAVE_DOPRNT 1
17491 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17492 # for constant arguments. Useless!
17493 echo "$as_me:$LINENO: checking for working alloca.h" >&5
17494 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
17495 if test "${ac_cv_working_alloca_h+set}" = set; then
17496 echo $ECHO_N "(cached) $ECHO_C" >&6
17498 cat >conftest.$ac_ext <<_ACEOF
17499 #line $LINENO "configure"
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h. */
17505 #include <alloca.h>
17509 char *p = (char *) alloca (2 * sizeof (int));
17514 rm -f conftest.$ac_objext conftest$ac_exeext
17515 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17516 (eval $ac_link) 2>&5
17518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17519 (exit $ac_status); } &&
17520 { ac_try='test -s conftest$ac_exeext'
17521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17522 (eval $ac_try) 2>&5
17524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17525 (exit $ac_status); }; }; then
17526 ac_cv_working_alloca_h=yes
17528 echo "$as_me: failed program was:" >&5
17529 sed 's/^/| /' conftest.$ac_ext >&5
17531 ac_cv_working_alloca_h=no
17533 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17535 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
17536 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
17537 if test $ac_cv_working_alloca_h = yes; then
17539 cat >>confdefs.h <<\_ACEOF
17540 #define HAVE_ALLOCA_H 1
17545 echo "$as_me:$LINENO: checking for alloca" >&5
17546 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
17547 if test "${ac_cv_func_alloca_works+set}" = set; then
17548 echo $ECHO_N "(cached) $ECHO_C" >&6
17550 cat >conftest.$ac_ext <<_ACEOF
17551 #line $LINENO "configure"
17554 cat confdefs.h >>conftest.$ac_ext
17555 cat >>conftest.$ac_ext <<_ACEOF
17556 /* end confdefs.h. */
17558 # define alloca __builtin_alloca
17561 # include <malloc.h>
17562 # define alloca _alloca
17565 # include <alloca.h>
17570 # ifndef alloca /* predefined by HP cc +Olibcalls */
17581 char *p = (char *) alloca (1);
17586 rm -f conftest.$ac_objext conftest$ac_exeext
17587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17588 (eval $ac_link) 2>&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); } &&
17592 { ac_try='test -s conftest$ac_exeext'
17593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17594 (eval $ac_try) 2>&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; }; then
17598 ac_cv_func_alloca_works=yes
17600 echo "$as_me: failed program was:" >&5
17601 sed 's/^/| /' conftest.$ac_ext >&5
17603 ac_cv_func_alloca_works=no
17605 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17607 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
17608 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
17610 if test $ac_cv_func_alloca_works = yes; then
17612 cat >>confdefs.h <<\_ACEOF
17613 #define HAVE_ALLOCA 1
17617 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17618 # that cause trouble. Some versions do not even contain alloca or
17619 # contain a buggy version. If you still want to use their alloca,
17620 # use ar to extract alloca.o from them instead of compiling alloca.c.
17622 ALLOCA=alloca.$ac_objext
17624 cat >>confdefs.h <<\_ACEOF
17629 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
17630 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
17631 if test "${ac_cv_os_cray+set}" = set; then
17632 echo $ECHO_N "(cached) $ECHO_C" >&6
17634 cat >conftest.$ac_ext <<_ACEOF
17635 #line $LINENO "configure"
17638 cat confdefs.h >>conftest.$ac_ext
17639 cat >>conftest.$ac_ext <<_ACEOF
17640 /* end confdefs.h. */
17641 #if defined(CRAY) && ! defined(CRAY2)
17648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17649 $EGREP "webecray" >/dev/null 2>&1; then
17657 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
17658 echo "${ECHO_T}$ac_cv_os_cray" >&6
17659 if test $ac_cv_os_cray = yes; then
17660 for ac_func in _getb67 GETB67 getb67; do
17661 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17662 echo "$as_me:$LINENO: checking for $ac_func" >&5
17663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17664 if eval "test \"\${$as_ac_var+set}\" = set"; then
17665 echo $ECHO_N "(cached) $ECHO_C" >&6
17667 cat >conftest.$ac_ext <<_ACEOF
17668 #line $LINENO "configure"
17671 cat confdefs.h >>conftest.$ac_ext
17672 cat >>conftest.$ac_ext <<_ACEOF
17673 /* end confdefs.h. */
17674 /* System header to define __stub macros and hopefully few prototypes,
17675 which can conflict with char $ac_func (); below.
17676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17677 <limits.h> exists even on freestanding compilers. */
17679 # include <limits.h>
17681 # include <assert.h>
17683 /* Override any gcc2 internal prototype to avoid an error. */
17688 /* We use char because int might match the return type of a gcc2
17689 builtin and then its argument prototype would still apply. */
17691 /* The GNU C library defines this for functions which it implements
17692 to always fail with ENOSYS. Some functions are actually named
17693 something starting with __ and the normal name is an alias. */
17694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17697 char (*f) () = $ac_func;
17706 return f != $ac_func;
17711 rm -f conftest.$ac_objext conftest$ac_exeext
17712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17713 (eval $ac_link) 2>&5
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); } &&
17717 { ac_try='test -s conftest$ac_exeext'
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; }; then
17723 eval "$as_ac_var=yes"
17725 echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17728 eval "$as_ac_var=no"
17730 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17733 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17734 if test `eval echo '${'$as_ac_var'}'` = yes; then
17736 cat >>confdefs.h <<_ACEOF
17737 #define CRAY_STACKSEG_END $ac_func
17746 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
17747 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
17748 if test "${ac_cv_c_stack_direction+set}" = set; then
17749 echo $ECHO_N "(cached) $ECHO_C" >&6
17751 if test "$cross_compiling" = yes; then
17752 ac_cv_c_stack_direction=0
17754 cat >conftest.$ac_ext <<_ACEOF
17755 #line $LINENO "configure"
17758 cat confdefs.h >>conftest.$ac_ext
17759 cat >>conftest.$ac_ext <<_ACEOF
17760 /* end confdefs.h. */
17762 find_stack_direction ()
17764 static char *addr = 0;
17769 return find_stack_direction ();
17772 return (&dummy > addr) ? 1 : -1;
17778 exit (find_stack_direction () < 0);
17781 rm -f conftest$ac_exeext
17782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17783 (eval $ac_link) 2>&5
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17788 (eval $ac_try) 2>&5
17790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); }; }; then
17792 ac_cv_c_stack_direction=1
17794 echo "$as_me: program exited with status $ac_status" >&5
17795 echo "$as_me: failed program was:" >&5
17796 sed 's/^/| /' conftest.$ac_ext >&5
17798 ( exit $ac_status )
17799 ac_cv_c_stack_direction=-1
17801 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17804 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
17805 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
17807 cat >>confdefs.h <<_ACEOF
17808 #define STACK_DIRECTION $ac_cv_c_stack_direction
17814 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
17815 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
17816 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
17817 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
17818 echo $ECHO_N "(cached) $ECHO_C" >&6
17820 ac_check_lib_save_LIBS=$LIBS
17822 cat >conftest.$ac_ext <<_ACEOF
17823 #line $LINENO "configure"
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h. */
17830 /* Override any gcc2 internal prototype to avoid an error. */
17834 /* We use char because int might match the return type of a gcc2
17835 builtin and then its argument prototype would still apply. */
17845 rm -f conftest.$ac_objext conftest$ac_exeext
17846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17847 (eval $ac_link) 2>&5
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); } &&
17851 { ac_try='test -s conftest$ac_exeext'
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; }; then
17857 ac_cv_lib_sun_getmntent=yes
17859 echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17862 ac_cv_lib_sun_getmntent=no
17864 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17865 LIBS=$ac_check_lib_save_LIBS
17867 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
17868 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
17869 if test $ac_cv_lib_sun_getmntent = yes; then
17872 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
17873 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
17874 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
17875 echo $ECHO_N "(cached) $ECHO_C" >&6
17877 ac_check_lib_save_LIBS=$LIBS
17879 cat >conftest.$ac_ext <<_ACEOF
17880 #line $LINENO "configure"
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17887 /* Override any gcc2 internal prototype to avoid an error. */
17891 /* We use char because int might match the return type of a gcc2
17892 builtin and then its argument prototype would still apply. */
17902 rm -f conftest.$ac_objext conftest$ac_exeext
17903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17904 (eval $ac_link) 2>&5
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); } &&
17908 { ac_try='test -s conftest$ac_exeext'
17909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17910 (eval $ac_try) 2>&5
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); }; }; then
17914 ac_cv_lib_seq_getmntent=yes
17916 echo "$as_me: failed program was:" >&5
17917 sed 's/^/| /' conftest.$ac_ext >&5
17919 ac_cv_lib_seq_getmntent=no
17921 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17922 LIBS=$ac_check_lib_save_LIBS
17924 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
17925 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
17926 if test $ac_cv_lib_seq_getmntent = yes; then
17929 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
17930 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
17931 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
17932 echo $ECHO_N "(cached) $ECHO_C" >&6
17934 ac_check_lib_save_LIBS=$LIBS
17936 cat >conftest.$ac_ext <<_ACEOF
17937 #line $LINENO "configure"
17940 cat confdefs.h >>conftest.$ac_ext
17941 cat >>conftest.$ac_ext <<_ACEOF
17942 /* end confdefs.h. */
17944 /* Override any gcc2 internal prototype to avoid an error. */
17948 /* We use char because int might match the return type of a gcc2
17949 builtin and then its argument prototype would still apply. */
17959 rm -f conftest.$ac_objext conftest$ac_exeext
17960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17961 (eval $ac_link) 2>&5
17963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964 (exit $ac_status); } &&
17965 { ac_try='test -s conftest$ac_exeext'
17966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17967 (eval $ac_try) 2>&5
17969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17970 (exit $ac_status); }; }; then
17971 ac_cv_lib_gen_getmntent=yes
17973 echo "$as_me: failed program was:" >&5
17974 sed 's/^/| /' conftest.$ac_ext >&5
17976 ac_cv_lib_gen_getmntent=no
17978 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17979 LIBS=$ac_check_lib_save_LIBS
17981 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
17982 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
17983 if test $ac_cv_lib_gen_getmntent = yes; then
17992 for ac_func in getmntent
17994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17995 echo "$as_me:$LINENO: checking for $ac_func" >&5
17996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17997 if eval "test \"\${$as_ac_var+set}\" = set"; then
17998 echo $ECHO_N "(cached) $ECHO_C" >&6
18000 cat >conftest.$ac_ext <<_ACEOF
18001 #line $LINENO "configure"
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h. */
18007 /* System header to define __stub macros and hopefully few prototypes,
18008 which can conflict with char $ac_func (); below.
18009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18010 <limits.h> exists even on freestanding compilers. */
18012 # include <limits.h>
18014 # include <assert.h>
18016 /* Override any gcc2 internal prototype to avoid an error. */
18021 /* We use char because int might match the return type of a gcc2
18022 builtin and then its argument prototype would still apply. */
18024 /* The GNU C library defines this for functions which it implements
18025 to always fail with ENOSYS. Some functions are actually named
18026 something starting with __ and the normal name is an alias. */
18027 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18030 char (*f) () = $ac_func;
18039 return f != $ac_func;
18044 rm -f conftest.$ac_objext conftest$ac_exeext
18045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18046 (eval $ac_link) 2>&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); } &&
18050 { ac_try='test -s conftest$ac_exeext'
18051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18052 (eval $ac_try) 2>&5
18054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18055 (exit $ac_status); }; }; then
18056 eval "$as_ac_var=yes"
18058 echo "$as_me: failed program was:" >&5
18059 sed 's/^/| /' conftest.$ac_ext >&5
18061 eval "$as_ac_var=no"
18063 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18067 if test `eval echo '${'$as_ac_var'}'` = yes; then
18068 cat >>confdefs.h <<_ACEOF
18069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18076 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
18077 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
18078 if test "${ac_cv_func_closedir_void+set}" = set; then
18079 echo $ECHO_N "(cached) $ECHO_C" >&6
18081 if test "$cross_compiling" = yes; then
18082 ac_cv_func_closedir_void=yes
18084 cat >conftest.$ac_ext <<_ACEOF
18085 #line $LINENO "configure"
18088 cat confdefs.h >>conftest.$ac_ext
18089 cat >>conftest.$ac_ext <<_ACEOF
18090 /* end confdefs.h. */
18091 $ac_includes_default
18092 #include <$ac_header_dirent>
18093 #ifndef __cplusplus
18100 exit (closedir (opendir (".")) != 0);
18105 rm -f conftest$ac_exeext
18106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18107 (eval $ac_link) 2>&5
18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18110 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18112 (eval $ac_try) 2>&5
18114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); }; }; then
18116 ac_cv_func_closedir_void=no
18118 echo "$as_me: program exited with status $ac_status" >&5
18119 echo "$as_me: failed program was:" >&5
18120 sed 's/^/| /' conftest.$ac_ext >&5
18122 ( exit $ac_status )
18123 ac_cv_func_closedir_void=yes
18125 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18128 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
18129 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
18130 if test $ac_cv_func_closedir_void = yes; then
18132 cat >>confdefs.h <<\_ACEOF
18133 #define CLOSEDIR_VOID 1
18138 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
18139 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
18140 if test "${ac_cv_func_setpgrp_void+set}" = set; then
18141 echo $ECHO_N "(cached) $ECHO_C" >&6
18143 if test "$cross_compiling" = yes; then
18144 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
18145 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
18146 { (exit 1); exit 1; }; }
18148 cat >conftest.$ac_ext <<_ACEOF
18149 #line $LINENO "configure"
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h. */
18156 # include <unistd.h>
18162 /* If this system has a BSD-style setpgrp which takes arguments,
18163 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
18164 exit successfully. */
18165 exit (setpgrp (1,1) == -1 ? 0 : 1);
18170 rm -f conftest$ac_exeext
18171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18172 (eval $ac_link) 2>&5
18174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18175 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18177 (eval $ac_try) 2>&5
18179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18180 (exit $ac_status); }; }; then
18181 ac_cv_func_setpgrp_void=no
18183 echo "$as_me: program exited with status $ac_status" >&5
18184 echo "$as_me: failed program was:" >&5
18185 sed 's/^/| /' conftest.$ac_ext >&5
18187 ( exit $ac_status )
18188 ac_cv_func_setpgrp_void=yes
18190 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18193 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
18194 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
18195 if test $ac_cv_func_setpgrp_void = yes; then
18197 cat >>confdefs.h <<\_ACEOF
18198 #define SETPGRP_VOID 1
18202 echo "$as_me:$LINENO: checking for working POSIX fnmatch" >&5
18203 echo $ECHO_N "checking for working POSIX fnmatch... $ECHO_C" >&6
18204 if test "${ac_cv_func_fnmatch_works+set}" = set; then
18205 echo $ECHO_N "(cached) $ECHO_C" >&6
18207 # Some versions of Solaris, SCO, and the GNU C Library
18208 # have a broken or incompatible fnmatch.
18209 # So we run a test program. If we are cross-compiling, take no chance.
18210 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test.
18211 if test "$cross_compiling" = yes; then
18212 ac_cv_func_fnmatch_works=cross
18214 cat >conftest.$ac_ext <<_ACEOF
18215 #line $LINENO "configure"
18218 cat confdefs.h >>conftest.$ac_ext
18219 cat >>conftest.$ac_ext <<_ACEOF
18220 /* end confdefs.h. */
18221 #include <fnmatch.h>
18222 # define y(a, b, c) (fnmatch (a, b, c) == 0)
18223 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
18229 (!(y ("a*", "abc", 0)
18230 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
18231 && y ("a\\\\bc", "abc", 0)
18232 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
18233 && y ("*x", ".x", 0)
18234 && n ("*x", ".x", FNM_PERIOD)
18240 rm -f conftest$ac_exeext
18241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18242 (eval $ac_link) 2>&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18247 (eval $ac_try) 2>&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; }; then
18251 ac_cv_func_fnmatch_works=yes
18253 echo "$as_me: program exited with status $ac_status" >&5
18254 echo "$as_me: failed program was:" >&5
18255 sed 's/^/| /' conftest.$ac_ext >&5
18257 ( exit $ac_status )
18258 ac_cv_func_fnmatch_works=no
18260 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18263 echo "$as_me:$LINENO: result: $ac_cv_func_fnmatch_works" >&5
18264 echo "${ECHO_T}$ac_cv_func_fnmatch_works" >&6
18265 if test $ac_cv_func_fnmatch_works = yes; then
18267 cat >>confdefs.h <<\_ACEOF
18268 #define HAVE_FNMATCH 1
18277 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
18278 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
18279 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
18280 echo $ECHO_N "(cached) $ECHO_C" >&6
18282 ac_check_lib_save_LIBS=$LIBS
18283 LIBS="-lxpg4 $LIBS"
18284 cat >conftest.$ac_ext <<_ACEOF
18285 #line $LINENO "configure"
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h. */
18292 /* Override any gcc2 internal prototype to avoid an error. */
18296 /* We use char because int might match the return type of a gcc2
18297 builtin and then its argument prototype would still apply. */
18307 rm -f conftest.$ac_objext conftest$ac_exeext
18308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18309 (eval $ac_link) 2>&5
18311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18312 (exit $ac_status); } &&
18313 { ac_try='test -s conftest$ac_exeext'
18314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18315 (eval $ac_try) 2>&5
18317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; }; then
18319 ac_cv_lib_xpg4_setlocale=yes
18321 echo "$as_me: failed program was:" >&5
18322 sed 's/^/| /' conftest.$ac_ext >&5
18324 ac_cv_lib_xpg4_setlocale=no
18326 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18327 LIBS=$ac_check_lib_save_LIBS
18329 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
18330 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
18331 if test $ac_cv_lib_xpg4_setlocale = yes; then
18332 LIBS="$LIBS -lxpg4"
18338 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
18339 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
18340 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
18341 echo $ECHO_N "(cached) $ECHO_C" >&6
18343 ac_check_lib_save_LIBS=$LIBS
18345 cat >conftest.$ac_ext <<_ACEOF
18346 #line $LINENO "configure"
18349 cat confdefs.h >>conftest.$ac_ext
18350 cat >>conftest.$ac_ext <<_ACEOF
18351 /* end confdefs.h. */
18353 /* Override any gcc2 internal prototype to avoid an error. */
18357 /* We use char because int might match the return type of a gcc2
18358 builtin and then its argument prototype would still apply. */
18368 rm -f conftest.$ac_objext conftest$ac_exeext
18369 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18370 (eval $ac_link) 2>&5
18372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18373 (exit $ac_status); } &&
18374 { ac_try='test -s conftest$ac_exeext'
18375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18376 (eval $ac_try) 2>&5
18378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18379 (exit $ac_status); }; }; then
18380 ac_cv_lib_sun_getpwnam=yes
18382 echo "$as_me: failed program was:" >&5
18383 sed 's/^/| /' conftest.$ac_ext >&5
18385 ac_cv_lib_sun_getpwnam=no
18387 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18388 LIBS=$ac_check_lib_save_LIBS
18390 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
18391 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
18392 if test $ac_cv_lib_sun_getpwnam = yes; then
18393 cat >>confdefs.h <<_ACEOF
18394 #define HAVE_LIBSUN 1
18403 for ac_header in zlib.h
18405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18406 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18407 echo "$as_me:$LINENO: checking for $ac_header" >&5
18408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18409 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18410 echo $ECHO_N "(cached) $ECHO_C" >&6
18412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18415 # Is the header compilable?
18416 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18417 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18418 cat >conftest.$ac_ext <<_ACEOF
18419 #line $LINENO "configure"
18422 cat confdefs.h >>conftest.$ac_ext
18423 cat >>conftest.$ac_ext <<_ACEOF
18424 /* end confdefs.h. */
18425 $ac_includes_default
18426 #include <$ac_header>
18428 rm -f conftest.$ac_objext
18429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18430 (eval $ac_compile) 2>&5
18432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18433 (exit $ac_status); } &&
18434 { ac_try='test -s conftest.$ac_objext'
18435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18436 (eval $ac_try) 2>&5
18438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18439 (exit $ac_status); }; }; then
18440 ac_header_compiler=yes
18442 echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.$ac_ext >&5
18445 ac_header_compiler=no
18447 rm -f conftest.$ac_objext conftest.$ac_ext
18448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18449 echo "${ECHO_T}$ac_header_compiler" >&6
18451 # Is the header present?
18452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18454 cat >conftest.$ac_ext <<_ACEOF
18455 #line $LINENO "configure"
18458 cat confdefs.h >>conftest.$ac_ext
18459 cat >>conftest.$ac_ext <<_ACEOF
18460 /* end confdefs.h. */
18461 #include <$ac_header>
18463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18466 grep -v '^ *+' conftest.er1 >conftest.err
18468 cat conftest.err >&5
18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470 (exit $ac_status); } >/dev/null; then
18471 if test -s conftest.err; then
18472 ac_cpp_err=$ac_c_preproc_warn_flag
18479 if test -z "$ac_cpp_err"; then
18480 ac_header_preproc=yes
18482 echo "$as_me: failed program was:" >&5
18483 sed 's/^/| /' conftest.$ac_ext >&5
18485 ac_header_preproc=no
18487 rm -f conftest.err conftest.$ac_ext
18488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18489 echo "${ECHO_T}$ac_header_preproc" >&6
18491 # So? What about this header?
18492 case $ac_header_compiler:$ac_header_preproc in
18494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18500 ## ------------------------------------ ##
18501 ## Report this to bug-autoconf@gnu.org. ##
18502 ## ------------------------------------ ##
18505 sed "s/^/$as_me: WARNING: /" >&2
18508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18516 ## ------------------------------------ ##
18517 ## Report this to bug-autoconf@gnu.org. ##
18518 ## ------------------------------------ ##
18521 sed "s/^/$as_me: WARNING: /" >&2
18524 echo "$as_me:$LINENO: checking for $ac_header" >&5
18525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18527 echo $ECHO_N "(cached) $ECHO_C" >&6
18529 eval "$as_ac_Header=$ac_header_preproc"
18531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18536 cat >>confdefs.h <<_ACEOF
18537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18544 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
18545 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
18546 if test "${ac_cv_lib_z_deflate+set}" = set; then
18547 echo $ECHO_N "(cached) $ECHO_C" >&6
18549 ac_check_lib_save_LIBS=$LIBS
18551 cat >conftest.$ac_ext <<_ACEOF
18552 #line $LINENO "configure"
18555 cat confdefs.h >>conftest.$ac_ext
18556 cat >>conftest.$ac_ext <<_ACEOF
18557 /* end confdefs.h. */
18559 /* Override any gcc2 internal prototype to avoid an error. */
18563 /* We use char because int might match the return type of a gcc2
18564 builtin and then its argument prototype would still apply. */
18574 rm -f conftest.$ac_objext conftest$ac_exeext
18575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18576 (eval $ac_link) 2>&5
18578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18579 (exit $ac_status); } &&
18580 { ac_try='test -s conftest$ac_exeext'
18581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18582 (eval $ac_try) 2>&5
18584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585 (exit $ac_status); }; }; then
18586 ac_cv_lib_z_deflate=yes
18588 echo "$as_me: failed program was:" >&5
18589 sed 's/^/| /' conftest.$ac_ext >&5
18591 ac_cv_lib_z_deflate=no
18593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18594 LIBS=$ac_check_lib_save_LIBS
18596 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
18597 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
18598 if test $ac_cv_lib_z_deflate = yes; then
18603 if test x$FDLIBS = x-lz; then
18604 cat >>confdefs.h <<\_ACEOF
18605 #define HAVE_LIBZ 1
18611 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18612 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18613 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18614 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18615 echo $ECHO_N "(cached) $ECHO_C" >&6
18617 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18618 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18620 # Is the header compilable?
18621 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
18622 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
18623 cat >conftest.$ac_ext <<_ACEOF
18624 #line $LINENO "configure"
18627 cat confdefs.h >>conftest.$ac_ext
18628 cat >>conftest.$ac_ext <<_ACEOF
18629 /* end confdefs.h. */
18630 $ac_includes_default
18631 #include <sys/acl.h>
18633 rm -f conftest.$ac_objext
18634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18635 (eval $ac_compile) 2>&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } &&
18639 { ac_try='test -s conftest.$ac_objext'
18640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18641 (eval $ac_try) 2>&5
18643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18644 (exit $ac_status); }; }; then
18645 ac_header_compiler=yes
18647 echo "$as_me: failed program was:" >&5
18648 sed 's/^/| /' conftest.$ac_ext >&5
18650 ac_header_compiler=no
18652 rm -f conftest.$ac_objext conftest.$ac_ext
18653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18654 echo "${ECHO_T}$ac_header_compiler" >&6
18656 # Is the header present?
18657 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
18658 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
18659 cat >conftest.$ac_ext <<_ACEOF
18660 #line $LINENO "configure"
18663 cat confdefs.h >>conftest.$ac_ext
18664 cat >>conftest.$ac_ext <<_ACEOF
18665 /* end confdefs.h. */
18666 #include <sys/acl.h>
18668 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18669 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18671 grep -v '^ *+' conftest.er1 >conftest.err
18673 cat conftest.err >&5
18674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18675 (exit $ac_status); } >/dev/null; then
18676 if test -s conftest.err; then
18677 ac_cpp_err=$ac_c_preproc_warn_flag
18684 if test -z "$ac_cpp_err"; then
18685 ac_header_preproc=yes
18687 echo "$as_me: failed program was:" >&5
18688 sed 's/^/| /' conftest.$ac_ext >&5
18690 ac_header_preproc=no
18692 rm -f conftest.err conftest.$ac_ext
18693 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18694 echo "${ECHO_T}$ac_header_preproc" >&6
18696 # So? What about this header?
18697 case $ac_header_compiler:$ac_header_preproc in
18699 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
18700 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18701 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18702 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18705 ## ------------------------------------ ##
18706 ## Report this to bug-autoconf@gnu.org. ##
18707 ## ------------------------------------ ##
18710 sed "s/^/$as_me: WARNING: /" >&2
18713 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
18714 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
18715 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
18716 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
18717 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
18718 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
18721 ## ------------------------------------ ##
18722 ## Report this to bug-autoconf@gnu.org. ##
18723 ## ------------------------------------ ##
18726 sed "s/^/$as_me: WARNING: /" >&2
18729 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
18730 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
18731 if test "${ac_cv_header_sys_acl_h+set}" = set; then
18732 echo $ECHO_N "(cached) $ECHO_C" >&6
18734 ac_cv_header_sys_acl_h=$ac_header_preproc
18736 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
18737 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
18742 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
18743 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
18744 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
18745 echo $ECHO_N "(cached) $ECHO_C" >&6
18747 ac_check_lib_save_LIBS=$LIBS
18749 cat >conftest.$ac_ext <<_ACEOF
18750 #line $LINENO "configure"
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18757 /* Override any gcc2 internal prototype to avoid an error. */
18761 /* We use char because int might match the return type of a gcc2
18762 builtin and then its argument prototype would still apply. */
18763 char acl_get_file ();
18772 rm -f conftest.$ac_objext conftest$ac_exeext
18773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18774 (eval $ac_link) 2>&5
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); } &&
18778 { ac_try='test -s conftest$ac_exeext'
18779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18780 (eval $ac_try) 2>&5
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); }; }; then
18784 ac_cv_lib_acl_acl_get_file=yes
18786 echo "$as_me: failed program was:" >&5
18787 sed 's/^/| /' conftest.$ac_ext >&5
18789 ac_cv_lib_acl_acl_get_file=no
18791 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18792 LIBS=$ac_check_lib_save_LIBS
18794 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
18795 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
18796 if test $ac_cv_lib_acl_acl_get_file = yes; then
18797 FDLIBS="-lacl $FDLIBS"
18801 if test $ac_cv_lib_acl_acl_get_file = yes; then
18802 cat >>confdefs.h <<\_ACEOF
18810 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
18811 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
18812 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
18813 echo $ECHO_N "(cached) $ECHO_C" >&6
18815 ac_check_lib_save_LIBS=$LIBS
18816 LIBS="-lpthread $LIBS"
18817 cat >conftest.$ac_ext <<_ACEOF
18818 #line $LINENO "configure"
18821 cat confdefs.h >>conftest.$ac_ext
18822 cat >>conftest.$ac_ext <<_ACEOF
18823 /* end confdefs.h. */
18825 /* Override any gcc2 internal prototype to avoid an error. */
18829 /* We use char because int might match the return type of a gcc2
18830 builtin and then its argument prototype would still apply. */
18831 char pthread_create ();
18840 rm -f conftest.$ac_objext conftest$ac_exeext
18841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18842 (eval $ac_link) 2>&5
18844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845 (exit $ac_status); } &&
18846 { ac_try='test -s conftest$ac_exeext'
18847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18848 (eval $ac_try) 2>&5
18850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18851 (exit $ac_status); }; }; then
18852 ac_cv_lib_pthread_pthread_create=yes
18854 echo "$as_me: failed program was:" >&5
18855 sed 's/^/| /' conftest.$ac_ext >&5
18857 ac_cv_lib_pthread_pthread_create=no
18859 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18860 LIBS=$ac_check_lib_save_LIBS
18862 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
18863 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
18864 if test $ac_cv_lib_pthread_pthread_create = yes; then
18865 PTHREAD_LIB="-lpthread"
18867 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
18868 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
18869 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
18870 echo $ECHO_N "(cached) $ECHO_C" >&6
18872 ac_check_lib_save_LIBS=$LIBS
18873 LIBS="-lpthreads $LIBS"
18874 cat >conftest.$ac_ext <<_ACEOF
18875 #line $LINENO "configure"
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h. */
18882 /* Override any gcc2 internal prototype to avoid an error. */
18886 /* We use char because int might match the return type of a gcc2
18887 builtin and then its argument prototype would still apply. */
18888 char pthread_create ();
18897 rm -f conftest.$ac_objext conftest$ac_exeext
18898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18899 (eval $ac_link) 2>&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } &&
18903 { ac_try='test -s conftest$ac_exeext'
18904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18905 (eval $ac_try) 2>&5
18907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18908 (exit $ac_status); }; }; then
18909 ac_cv_lib_pthreads_pthread_create=yes
18911 echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.$ac_ext >&5
18914 ac_cv_lib_pthreads_pthread_create=no
18916 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18917 LIBS=$ac_check_lib_save_LIBS
18919 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
18920 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
18921 if test $ac_cv_lib_pthreads_pthread_create = yes; then
18922 PTHREAD_LIB="-lpthreads"
18924 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
18925 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
18926 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18929 ac_check_lib_save_LIBS=$LIBS
18931 cat >conftest.$ac_ext <<_ACEOF
18932 #line $LINENO "configure"
18935 cat confdefs.h >>conftest.$ac_ext
18936 cat >>conftest.$ac_ext <<_ACEOF
18937 /* end confdefs.h. */
18939 /* Override any gcc2 internal prototype to avoid an error. */
18943 /* We use char because int might match the return type of a gcc2
18944 builtin and then its argument prototype would still apply. */
18945 char pthread_create ();
18954 rm -f conftest.$ac_objext conftest$ac_exeext
18955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18956 (eval $ac_link) 2>&5
18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959 (exit $ac_status); } &&
18960 { ac_try='test -s conftest$ac_exeext'
18961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18962 (eval $ac_try) 2>&5
18964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18965 (exit $ac_status); }; }; then
18966 ac_cv_lib_c_r_pthread_create=yes
18968 echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18971 ac_cv_lib_c_r_pthread_create=no
18973 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18974 LIBS=$ac_check_lib_save_LIBS
18976 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
18977 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
18978 if test $ac_cv_lib_c_r_pthread_create = yes; then
18979 PTHREAD_LIB="-lc_r"
18981 echo "$as_me:$LINENO: checking for pthread_create" >&5
18982 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
18983 if test "${ac_cv_func_pthread_create+set}" = set; then
18984 echo $ECHO_N "(cached) $ECHO_C" >&6
18986 cat >conftest.$ac_ext <<_ACEOF
18987 #line $LINENO "configure"
18990 cat confdefs.h >>conftest.$ac_ext
18991 cat >>conftest.$ac_ext <<_ACEOF
18992 /* end confdefs.h. */
18993 /* System header to define __stub macros and hopefully few prototypes,
18994 which can conflict with char pthread_create (); below.
18995 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18996 <limits.h> exists even on freestanding compilers. */
18998 # include <limits.h>
19000 # include <assert.h>
19002 /* Override any gcc2 internal prototype to avoid an error. */
19007 /* We use char because int might match the return type of a gcc2
19008 builtin and then its argument prototype would still apply. */
19009 char pthread_create ();
19010 /* The GNU C library defines this for functions which it implements
19011 to always fail with ENOSYS. Some functions are actually named
19012 something starting with __ and the normal name is an alias. */
19013 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
19016 char (*f) () = pthread_create;
19025 return f != pthread_create;
19030 rm -f conftest.$ac_objext conftest$ac_exeext
19031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19032 (eval $ac_link) 2>&5
19034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); } &&
19036 { ac_try='test -s conftest$ac_exeext'
19037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19038 (eval $ac_try) 2>&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); }; }; then
19042 ac_cv_func_pthread_create=yes
19044 echo "$as_me: failed program was:" >&5
19045 sed 's/^/| /' conftest.$ac_ext >&5
19047 ac_cv_func_pthread_create=no
19049 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19051 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
19052 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
19065 cat >>confdefs.h <<\_ACEOF
19071 CFLAGS=${CFLAGS--O}
19072 LDFLAGS=${LDFLAGS--O}
19073 DB_LIBS="${SQL_LFLAGS}"
19075 CPPFLAGS="$CPPFLAGS"
19100 # Finally we set appropriate distribution specific
19101 # variables and defaults
19103 # PFILES are platform specific files
19104 PFILES="platforms/Makefile"
19108 hostname=`uname -n | cut -d '.' -f 1`
19109 case "$DISTNAME" in
19112 PSCMD="ps -e -o pid,comm"
19113 PFILES="${PFILES} \
19114 platforms/aix/Makefile"
19115 TAPEDRIVE="/dev/rmt0.1"
19119 PTHREAD_LIB="-lpthread -lexc"
19120 if test "${CC}" = "gcc" ; then
19127 TAPEDRIVE="/dev/nrmt0"
19130 DISTVER=`uname -a |awk '{print $3}'`
19131 TAPEDRIVE="/dev/nrmt0"
19132 PTHREAD_LIB="-pthread"
19133 CFLAGS="${CFLAGS} -pthread"
19134 PSCMD="ps -x -o pid,command"
19137 PFILES="${PFILES} \
19138 platforms/bsdi/Makefile \
19139 platforms/bsdi/bacula-fd \
19140 platforms/bsdi/bacula-sd \
19141 platforms/bsdi/bacula-dir"
19142 largefile_support="yes"
19145 DISTVER=`uname -a |awk '{print $3}'`
19146 TAPEDRIVE="/dev/nrst0"
19148 WCFLAGS="-mwindows"
19149 WLDFLAGS="-mwindows"
19153 TAPEDRIVE="/dev/nst0"
19154 PSCMD="ps -e -o pid,command"
19156 PFILES="${PFILES} \
19157 platforms/darwin/Makefile"
19160 DISTVER=`cat /etc/debian_version`
19161 TAPEDRIVE="/dev/nrst0"
19162 PSCMD="ps -e -o pid,command"
19165 DISTVER=`uname -a |awk '{print $3}'`
19166 VER=`echo $DISTVER | cut -c 1`
19167 if test x$VER = x4 ; then
19168 PTHREAD_LIB="-pthread"
19169 CFLAGS="${CFLAGS} -pthread"
19173 TAPEDRIVE="/dev/nrsa0"
19174 PSCMD="ps -x -o pid,command"
19175 PFILES="${PFILES} \
19176 platforms/freebsd/Makefile \
19177 platforms/freebsd/bacula-fd \
19178 platforms/freebsd/bacula-sd \
19179 platforms/freebsd/bacula-dir"
19180 largefile_support="yes"
19183 PSCMD="UNIX95=1 ps -e -o pid,comm"
19184 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
19186 TAPEDRIVE="/dev/rmt/0hnb"
19190 TAPEDRIVE="/dev/rmt/0cbn"
19191 PSCMD="ps -e -o pid,comm"
19192 PFILES="${PFILES} \
19193 platforms/irix/Makefile \
19194 platforms/irix/bacula-fd \
19195 platforms/irix/bacula-sd \
19196 platforms/irix/bacula-dir"
19199 DISTVER=`uname -a |awk '{print $3}'`
19202 TAPEDRIVE="/dev/nrst0"
19203 PSCMD="ps -a -o pid,command"
19204 PTHREAD_LIB="-pthread"
19205 CFLAGS="${CFLAGS} -pthread"
19208 DISTVER=`uname -a |awk '{print $3}'`
19211 TAPEDRIVE="/dev/nrst0"
19212 PSCMD="ps -ax -o pid,command"
19213 PTHREAD_LIB="-pthread"
19214 CFLAGS="${CFLAGS} -pthread"
19215 PFILES="${PFILES} \
19216 platforms/openbsd/Makefile \
19217 platforms/openbsd/bacula-fd \
19218 platforms/openbsd/bacula-sd \
19219 platforms/openbsd/bacula-dir"
19222 if test -f /etc/whitebox-release ; then
19223 f=/etc/whitebox-release
19225 f=/etc/redhat-release
19227 if test `cat $f | grep release |\
19228 cut -f 3 -d ' '`x = "Enterprise"x ; then
19229 DISTVER="Enterprise "`cat $f | grep release |\
19232 DISTVER=`cat /etc/redhat-release | grep release |\
19235 TAPEDRIVE="/dev/nst0"
19236 PSCMD="ps -e -o pid,command"
19237 PFILES="${PFILES} \
19238 platforms/redhat/Makefile \
19239 platforms/redhat/bacula-fd \
19240 platforms/redhat/bacula-sd \
19241 platforms/redhat/bacula-dir \
19242 platforms/redhat/bacula.spec \
19244 hostname=`hostname -s`
19247 DISTVER=`cat /etc/mandrake-release | grep release |\
19249 TAPEDRIVE="/dev/nst0"
19250 PSCMD="ps -e -o pid,command"
19251 PFILES="${PFILES} \
19252 platforms/mandrake/Makefile \
19253 platforms/mandrake/bacula-fd \
19254 platforms/mandrake/bacula-sd \
19255 platforms/mandrake/bacula-dir \
19256 platforms/mandrake/bacula.spec \
19260 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
19261 TAPEDRIVE="/dev/nst0"
19262 PSCMD="ps -e -o pid,command"
19263 PFILES="${PFILES} \
19264 platforms/gentoo/Makefile \
19265 platforms/gentoo/bacula-init \
19266 platforms/gentoo/bacula-fd \
19267 platforms/gentoo/bacula-sd \
19268 platforms/gentoo/bacula-dir"
19271 DISTVER=`cat /etc/slackware-version`
19272 TAPEDRIVE="/dev/nst0"
19273 PSCMD="ps -e -o pid,command"
19274 PFILES="${PFILES} \
19275 platforms/slackware/Makefile \
19276 platforms/slackware/rc.bacula-fd \
19277 platforms/slackware/rc.bacula-sd \
19278 platforms/slackware/rc.bacula-dir\
19279 platforms/slackware/functions.bacula"
19283 TAPEDRIVE="/dev/rmt/0cbn"
19284 PSCMD="ps -e -o pid,comm"
19285 PFILES="${PFILES} \
19286 platforms/solaris/Makefile \
19287 platforms/solaris/bacula-fd \
19288 platforms/solaris/bacula-sd \
19289 platforms/solaris/bacula-dir"
19290 if test x$DISTVER = x5.6 ; then
19291 cat >>confdefs.h <<\_ACEOF
19292 #define HAVE_OLD_SOCKOPT 1
19298 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
19300 TAPEDRIVE="/dev/nst0"
19301 PSCMD="ps -e -o pid,command"
19302 PFILES="${PFILES} \
19303 platforms/suse/Makefile \
19304 platforms/suse/bacula-fd \
19305 platforms/suse/bacula-sd \
19306 platforms/suse/bacula-dir \
19307 platforms/suse/bacula \
19308 platforms/suse/bacula.spec"
19313 TAPEDRIVE="/dev/nst0"
19314 PSCMD="ps -e -o pid,command"
19315 PFILES="${PFILES} \
19316 platforms/suse/Makefile \
19317 platforms/suse/bacula-fd \
19318 platforms/suse/bacula-sd \
19319 platforms/suse/bacula-dir"
19323 TAPEDRIVE="/dev/nst0"
19326 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
19332 LIBS="$PTHREAD_LIB $LIBS"
19334 cat >>confdefs.h <<_ACEOF
19338 cat >>confdefs.h <<_ACEOF
19349 MCOMMON=./autoconf/Make.common
19352 if test "x${subsysdir}" = "x${sbindir}" ; then
19355 echo "You have set both --sbindir and --with-subsys-dir"
19356 echo " equal to: ${subsysdir} "
19357 echo "This is not permitted. Please reconfigure."
19359 echo "Aborting configuration ..."
19365 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/linux/cdrom/bacula/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/bacula-tray-monitor.desktop 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/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile src/bimagemgr/Makefile src/bimagemgr/bacula-bimagemgr.spec $PFILES"
19366 ac_config_commands="$ac_config_commands default"
19367 cat >confcache <<\_ACEOF
19368 # This file is a shell script that caches the results of configure
19369 # tests run on this system so they can be shared between configure
19370 # scripts and configure runs, see configure's option --config-cache.
19371 # It is not useful on other systems. If it contains results you don't
19372 # want to keep, you may remove or edit it.
19374 # config.status only pays attention to the cache file if you give it
19375 # the --recheck option to rerun configure.
19377 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19378 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19379 # following values.
19383 # The following way of writing the cache mishandles newlines in values,
19384 # but we know of no workaround that is simple, portable, and efficient.
19385 # So, don't put newlines in cache variables' values.
19386 # Ultrix sh set writes to stderr and can't be redirected directly,
19387 # and sets the high bit in the cache file unless we assign to the vars.
19390 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19392 # `set' does not quote correctly, so add quotes (double-quote
19393 # substitution turns \\\\ into \\, and sed turns \\ into \).
19396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19399 # `set' quotes correctly as required by POSIX, so do not add quotes.
19401 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19408 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19410 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19412 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19413 if test -w $cache_file; then
19414 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19415 cat confcache >$cache_file
19417 echo "not updating unwritable cache $cache_file"
19422 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19423 # Let make expand exec_prefix.
19424 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19426 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19427 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19428 # trailing colons and then remove the whole line if VPATH becomes empty
19429 # (actually we leave an empty line to preserve line numbers).
19430 if test "x$srcdir" = x.; then
19431 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19432 s/:*\$(srcdir):*/:/;
19433 s/:*\${srcdir}:*/:/;
19435 s/^\([^=]*=[ ]*\):*/\1/;
19441 DEFS=-DHAVE_CONFIG_H
19445 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19446 # 1. Remove the extension, and $U if already installed.
19447 ac_i=`echo "$ac_i" |
19448 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19450 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19451 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19453 LIBOBJS=$ac_libobjs
19455 LTLIBOBJS=$ac_ltlibobjs
19459 : ${CONFIG_STATUS=./config.status}
19460 ac_clean_files_save=$ac_clean_files
19461 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19462 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19463 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19464 cat >$CONFIG_STATUS <<_ACEOF
19466 # Generated by $as_me.
19467 # Run this file to recreate the current configuration.
19468 # Compiler output produced by configure, useful for debugging
19469 # configure, is in config.log if it exists.
19472 ac_cs_recheck=false
19474 SHELL=\${CONFIG_SHELL-$SHELL}
19477 cat >>$CONFIG_STATUS <<\_ACEOF
19478 ## --------------------- ##
19479 ## M4sh Initialization. ##
19480 ## --------------------- ##
19482 # Be Bourne compatible
19483 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19486 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19487 # is contrary to our usage. Disable this feature.
19488 alias -g '${1+"$@"}'='"$@"'
19489 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19493 # Support unset when possible.
19494 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19501 # Work around bugs in pre-3.0 UWIN ksh.
19502 $as_unset ENV MAIL MAILPATH
19509 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19510 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19511 LC_TELEPHONE LC_TIME
19513 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19514 eval $as_var=C; export $as_var
19520 # Required to use basename.
19521 if expr a : '\(a\)' >/dev/null 2>&1; then
19527 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19528 as_basename=basename
19534 # Name of the executable.
19535 as_me=`$as_basename "$0" ||
19536 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19537 X"$0" : 'X\(//\)$' \| \
19538 X"$0" : 'X\(/\)$' \| \
19539 . : '\(.\)' 2>/dev/null ||
19541 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19542 /^X\/\(\/\/\)$/{ s//\1/; q; }
19543 /^X\/\(\/\).*/{ s//\1/; q; }
19547 # PATH needs CR, and LINENO needs CR and PATH.
19548 # Avoid depending upon Character Ranges.
19549 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19550 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19551 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19552 as_cr_digits='0123456789'
19553 as_cr_alnum=$as_cr_Letters$as_cr_digits
19555 # The user is always right.
19556 if test "${PATH_SEPARATOR+set}" != set; then
19557 echo "#! /bin/sh" >conf$$.sh
19558 echo "exit 0" >>conf$$.sh
19560 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19569 as_lineno_1=$LINENO
19570 as_lineno_2=$LINENO
19571 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19572 test "x$as_lineno_1" != "x$as_lineno_2" &&
19573 test "x$as_lineno_3" = "x$as_lineno_2" || {
19574 # Find who we are. Look in the path if we contain no path at all
19577 *[\\/]* ) as_myself=$0 ;;
19578 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19579 for as_dir in $PATH
19582 test -z "$as_dir" && as_dir=.
19583 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19588 # We did not find ourselves, most probably we were run as `sh COMMAND'
19589 # in which case we are not to be found in the path.
19590 if test "x$as_myself" = x; then
19593 if test ! -f "$as_myself"; then
19594 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19595 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19596 { (exit 1); exit 1; }; }
19598 case $CONFIG_SHELL in
19600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19601 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19604 test -z "$as_dir" && as_dir=.
19605 for as_base in sh bash ksh sh5; do
19608 if ("$as_dir/$as_base" -c '
19609 as_lineno_1=$LINENO
19610 as_lineno_2=$LINENO
19611 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19612 test "x$as_lineno_1" != "x$as_lineno_2" &&
19613 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
19614 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19615 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19616 CONFIG_SHELL=$as_dir/$as_base
19617 export CONFIG_SHELL
19618 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19626 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19627 # uniformly replaced by the line number. The first 'sed' inserts a
19628 # line-number line before each line; the second 'sed' does the real
19629 # work. The second script uses 'N' to pair each line-number line
19630 # with the numbered line, and appends trailing '-' during
19631 # substitution so that $LINENO is not a special case at line end.
19632 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19633 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
19634 sed '=' <$as_myself |
19639 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19642 s,^['$as_cr_digits']*\n,,
19643 ' >$as_me.lineno &&
19644 chmod +x $as_me.lineno ||
19645 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19646 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19647 { (exit 1); exit 1; }; }
19649 # Don't try to exec as it changes $[0], causing all sort of problems
19650 # (the dirname of $[0] is not the place where we might find the
19651 # original and so on. Autoconf is especially sensible to this).
19653 # Exit status is that of the last command.
19658 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19659 *c*,-n*) ECHO_N= ECHO_C='
19661 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19662 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
19665 if expr a : '\(a\)' >/dev/null 2>&1; then
19671 rm -f conf$$ conf$$.exe conf$$.file
19673 if ln -s conf$$.file conf$$ 2>/dev/null; then
19674 # We could just check for DJGPP; but this test a) works b) is more generic
19675 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19676 if test -f conf$$.exe; then
19677 # Don't use ln at all; we don't have any links
19682 elif ln conf$$.file conf$$ 2>/dev/null; then
19687 rm -f conf$$ conf$$.exe conf$$.file
19689 if mkdir -p . 2>/dev/null; then
19695 as_executable_p="test -f"
19697 # Sed expression to map a string onto a valid CPP name.
19698 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19700 # Sed expression to map a string onto a valid variable name.
19701 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19705 # We need space, tab and new line, in precisely that order.
19715 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19716 # report actual input values of CONFIG_FILES etc. instead of their
19717 # values after options handling. Logging --version etc. is OK.
19721 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19722 ## Running $as_me. ##
19727 This file was extended by $as_me, which was
19728 generated by GNU Autoconf 2.57. Invocation command line was
19730 CONFIG_FILES = $CONFIG_FILES
19731 CONFIG_HEADERS = $CONFIG_HEADERS
19732 CONFIG_LINKS = $CONFIG_LINKS
19733 CONFIG_COMMANDS = $CONFIG_COMMANDS
19737 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19741 # Files that config.status was made for.
19742 if test -n "$ac_config_files"; then
19743 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19746 if test -n "$ac_config_headers"; then
19747 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19750 if test -n "$ac_config_links"; then
19751 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19754 if test -n "$ac_config_commands"; then
19755 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19758 cat >>$CONFIG_STATUS <<\_ACEOF
19761 \`$as_me' instantiates files from templates according to the
19762 current configuration.
19764 Usage: $0 [OPTIONS] [FILE]...
19766 -h, --help print this help, then exit
19767 -V, --version print version number, then exit
19768 -q, --quiet do not print progress messages
19769 -d, --debug don't remove temporary files
19770 --recheck update $as_me by reconfiguring in the same conditions
19771 --file=FILE[:TEMPLATE]
19772 instantiate the configuration file FILE
19773 --header=FILE[:TEMPLATE]
19774 instantiate the configuration header FILE
19776 Configuration files:
19779 Configuration headers:
19782 Configuration commands:
19785 Report bugs to <bug-autoconf@gnu.org>."
19788 cat >>$CONFIG_STATUS <<_ACEOF
19791 configured by $0, generated by GNU Autoconf 2.57,
19792 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19794 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
19795 Free Software Foundation, Inc.
19796 This config.status script is free software; the Free Software Foundation
19797 gives unlimited permission to copy, distribute and modify it."
19802 cat >>$CONFIG_STATUS <<\_ACEOF
19803 # If no file are specified by the user, then we need to provide default
19804 # value. By we need to know if files were specified by the user.
19810 ac_option=`expr "x$1" : 'x\([^=]*\)='`
19811 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19819 *) # This is not an option, so the user has probably given explicit
19822 ac_need_defaults=false;;
19826 # Handling of the options.
19828 cat >>$CONFIG_STATUS <<\_ACEOF
19829 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19831 --version | --vers* | -V )
19832 echo "$ac_cs_version"; exit 0 ;;
19834 # Conflict between --help and --header
19835 { { echo "$as_me:$LINENO: error: ambiguous option: $1
19836 Try \`$0 --help' for more information." >&5
19837 echo "$as_me: error: ambiguous option: $1
19838 Try \`$0 --help' for more information." >&2;}
19839 { (exit 1); exit 1; }; };;
19840 --help | --hel | -h )
19841 echo "$ac_cs_usage"; exit 0 ;;
19842 --debug | --d* | -d )
19844 --file | --fil | --fi | --f )
19846 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19847 ac_need_defaults=false;;
19848 --header | --heade | --head | --hea )
19850 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19851 ac_need_defaults=false;;
19852 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19853 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19856 # This is an error.
19857 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19858 Try \`$0 --help' for more information." >&5
19859 echo "$as_me: error: unrecognized option: $1
19860 Try \`$0 --help' for more information." >&2;}
19861 { (exit 1); exit 1; }; } ;;
19863 *) ac_config_targets="$ac_config_targets $1" ;;
19869 ac_configure_extra_args=
19871 if $ac_cs_silent; then
19873 ac_configure_extra_args="$ac_configure_extra_args --silent"
19877 cat >>$CONFIG_STATUS <<_ACEOF
19878 if \$ac_cs_recheck; then
19879 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19880 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19889 cat >>$CONFIG_STATUS <<\_ACEOF
19890 for ac_config_target in $ac_config_targets
19892 case "$ac_config_target" in
19893 # Handling of arguments.
19894 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
19895 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19896 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
19897 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
19898 "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
19899 "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
19900 "rescue/linux/cdrom/bacula/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/bacula/Makefile" ;;
19901 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
19902 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
19903 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
19904 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
19905 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
19906 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
19907 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
19908 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
19909 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
19910 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
19911 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
19912 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
19913 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
19914 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
19915 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
19916 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
19917 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
19918 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
19919 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
19920 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
19921 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
19922 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
19923 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19924 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19925 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
19926 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
19927 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
19928 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
19929 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
19930 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
19931 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
19932 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
19933 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
19934 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
19935 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
19936 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
19937 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
19938 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
19939 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
19940 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
19941 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
19942 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
19943 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
19944 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
19945 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
19946 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
19947 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
19948 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
19949 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
19950 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
19951 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
19952 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
19953 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
19954 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
19955 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
19956 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
19957 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
19958 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
19959 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
19960 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
19961 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
19962 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
19963 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
19964 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
19965 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
19966 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
19967 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
19968 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
19969 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
19970 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
19971 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
19972 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
19973 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
19974 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
19975 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
19976 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
19977 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
19978 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
19979 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
19980 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
19981 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
19982 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
19983 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
19984 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
19985 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
19986 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
19987 "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
19988 "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
19989 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
19990 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
19991 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
19992 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19993 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19994 { (exit 1); exit 1; }; };;
19998 # If the user did not use the arguments to specify the items to instantiate,
19999 # then the envvar interface is used. Set only those that are not.
20000 # We use the long form for the default assignment because of an extremely
20001 # bizarre bug on SunOS 4.1.3.
20002 if $ac_need_defaults; then
20003 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20004 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20005 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20008 # Have a temporary directory for convenience. Make it in the build tree
20009 # simply because there is no reason to put it here, and in addition,
20010 # creating and moving files from /tmp can sometimes cause problems.
20011 # Create a temporary directory, and hook for its removal unless debugging.
20014 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20015 trap '{ (exit 1); exit 1; }' 1 2 13 15
20018 # Create a (secure) tmp directory for tmp files.
20021 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20022 test -n "$tmp" && test -d "$tmp"
20025 tmp=./confstat$$-$RANDOM
20026 (umask 077 && mkdir $tmp)
20029 echo "$me: cannot create a temporary directory in ." >&2
20030 { (exit 1); exit 1; }
20035 cat >>$CONFIG_STATUS <<_ACEOF
20038 # CONFIG_FILES section.
20041 # No need to generate the scripts if there are no CONFIG_FILES.
20042 # This happens for instance when ./config.status config.h
20043 if test -n "\$CONFIG_FILES"; then
20044 # Protect against being on the right side of a sed subst in config.status.
20045 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20046 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20047 s,@SHELL@,$SHELL,;t t
20048 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20049 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20050 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20051 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20052 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20053 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20054 s,@exec_prefix@,$exec_prefix,;t t
20055 s,@prefix@,$prefix,;t t
20056 s,@program_transform_name@,$program_transform_name,;t t
20057 s,@bindir@,$bindir,;t t
20058 s,@sbindir@,$sbindir,;t t
20059 s,@libexecdir@,$libexecdir,;t t
20060 s,@datadir@,$datadir,;t t
20061 s,@sysconfdir@,$sysconfdir,;t t
20062 s,@sharedstatedir@,$sharedstatedir,;t t
20063 s,@localstatedir@,$localstatedir,;t t
20064 s,@libdir@,$libdir,;t t
20065 s,@includedir@,$includedir,;t t
20066 s,@oldincludedir@,$oldincludedir,;t t
20067 s,@infodir@,$infodir,;t t
20068 s,@mandir@,$mandir,;t t
20069 s,@build_alias@,$build_alias,;t t
20070 s,@host_alias@,$host_alias,;t t
20071 s,@target_alias@,$target_alias,;t t
20072 s,@DEFS@,$DEFS,;t t
20073 s,@ECHO_C@,$ECHO_C,;t t
20074 s,@ECHO_N@,$ECHO_N,;t t
20075 s,@ECHO_T@,$ECHO_T,;t t
20076 s,@LIBS@,$LIBS,;t t
20077 s,@BUILD_DIR@,$BUILD_DIR,;t t
20078 s,@TRUEPRG@,$TRUEPRG,;t t
20079 s,@FALSEPRG@,$FALSEPRG,;t t
20080 s,@VERSION@,$VERSION,;t t
20081 s,@DATE@,$DATE,;t t
20082 s,@LSMDATE@,$LSMDATE,;t t
20084 s,@CFLAGS@,$CFLAGS,;t t
20085 s,@LDFLAGS@,$LDFLAGS,;t t
20086 s,@CPPFLAGS@,$CPPFLAGS,;t t
20087 s,@ac_ct_CC@,$ac_ct_CC,;t t
20088 s,@EXEEXT@,$EXEEXT,;t t
20089 s,@OBJEXT@,$OBJEXT,;t t
20091 s,@CXXFLAGS@,$CXXFLAGS,;t t
20092 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20094 s,@EGREP@,$EGREP,;t t
20095 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20096 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20097 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20098 s,@RANLIB@,$RANLIB,;t t
20099 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20105 s,@ECHO@,$ECHO,;t t
20109 s,@OPENSSL@,$OPENSSL,;t t
20111 s,@PKGCONFIG@,$PKGCONFIG,;t t
20112 s,@WXCONFIG@,$WXCONFIG,;t t
20113 s,@CDRECORD@,$CDRECORD,;t t
20114 s,@ARFLAGS@,$ARFLAGS,;t t
20115 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
20116 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
20117 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
20118 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
20119 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
20120 s,@build@,$build,;t t
20121 s,@build_cpu@,$build_cpu,;t t
20122 s,@build_vendor@,$build_vendor,;t t
20123 s,@build_os@,$build_os,;t t
20124 s,@host@,$host,;t t
20125 s,@host_cpu@,$host_cpu,;t t
20126 s,@host_vendor@,$host_vendor,;t t
20127 s,@host_os@,$host_os,;t t
20128 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
20129 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
20130 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
20131 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
20132 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
20133 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
20134 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
20135 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
20136 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
20137 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
20138 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
20139 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
20140 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
20141 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
20142 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
20143 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
20144 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
20145 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
20146 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
20147 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
20148 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
20149 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
20150 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
20151 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
20152 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
20153 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
20154 s,@MSGFMT@,$MSGFMT,;t t
20155 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
20156 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
20157 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
20158 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
20159 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
20160 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
20161 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
20162 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
20163 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
20164 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
20165 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
20166 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
20167 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
20168 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
20169 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
20170 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
20171 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
20172 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
20173 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
20174 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
20175 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
20176 s,@GNOME_DIR@,$GNOME_DIR,;t t
20177 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
20178 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
20179 s,@WX_DIR@,$WX_DIR,;t t
20180 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
20181 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
20182 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
20183 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
20184 s,@STATIC_FD@,$STATIC_FD,;t t
20185 s,@STATIC_SD@,$STATIC_SD,;t t
20186 s,@STATIC_DIR@,$STATIC_DIR,;t t
20187 s,@STATIC_CONS@,$STATIC_CONS,;t t
20188 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
20189 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
20190 s,@ALL_DIRS@,$ALL_DIRS,;t t
20191 s,@CONS_INC@,$CONS_INC,;t t
20192 s,@CONS_OBJ@,$CONS_OBJ,;t t
20193 s,@CONS_SRC@,$CONS_SRC,;t t
20194 s,@CONS_LIBS@,$CONS_LIBS,;t t
20195 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
20196 s,@READLINE_SRC@,$READLINE_SRC,;t t
20197 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
20198 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
20199 s,@CDSTL@,$CDSTL,;t t
20200 s,@working_dir@,$working_dir,;t t
20201 s,@scriptdir@,$scriptdir,;t t
20202 s,@dump_email@,$dump_email,;t t
20203 s,@job_email@,$job_email,;t t
20204 s,@smtp_host@,$smtp_host,;t t
20205 s,@piddir@,$piddir,;t t
20206 s,@subsysdir@,$subsysdir,;t t
20207 s,@baseport@,$baseport,;t t
20208 s,@dir_port@,$dir_port,;t t
20209 s,@fd_port@,$fd_port,;t t
20210 s,@sd_port@,$sd_port,;t t
20211 s,@dir_password@,$dir_password,;t t
20212 s,@fd_password@,$fd_password,;t t
20213 s,@sd_password@,$sd_password,;t t
20214 s,@mon_dir_password@,$mon_dir_password,;t t
20215 s,@mon_fd_password@,$mon_fd_password,;t t
20216 s,@mon_sd_password@,$mon_sd_password,;t t
20217 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
20218 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
20219 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
20220 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
20221 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
20222 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
20223 s,@dir_user@,$dir_user,;t t
20224 s,@dir_group@,$dir_group,;t t
20225 s,@sd_user@,$sd_user,;t t
20226 s,@sd_group@,$sd_group,;t t
20227 s,@fd_user@,$fd_user,;t t
20228 s,@fd_group@,$fd_group,;t t
20229 s,@SBINPERM@,$SBINPERM,;t t
20230 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
20231 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
20232 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
20233 s,@cats@,$cats,;t t
20234 s,@DB_NAME@,$DB_NAME,;t t
20235 s,@GETCONF@,$GETCONF,;t t
20236 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
20237 s,@X_CFLAGS@,$X_CFLAGS,;t t
20238 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
20239 s,@X_LIBS@,$X_LIBS,;t t
20240 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
20241 s,@LIBOBJS@,$LIBOBJS,;t t
20242 s,@ALLOCA@,$ALLOCA,;t t
20243 s,@FDLIBS@,$FDLIBS,;t t
20244 s,@DEBUG@,$DEBUG,;t t
20245 s,@DINCLUDE@,$DINCLUDE,;t t
20246 s,@DLIB@,$DLIB,;t t
20247 s,@DB_LIBS@,$DB_LIBS,;t t
20248 s,@WCFLAGS@,$WCFLAGS,;t t
20249 s,@WLDFLAGS@,$WLDFLAGS,;t t
20250 s,@OBJLIST@,$OBJLIST,;t t
20251 s,@hostname@,$hostname,;t t
20252 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
20253 s,@PSCMD@,$PSCMD,;t t
20254 s,@WIN32@,$WIN32,;t t
20255 s,@MACOSX@,$MACOSX,;t t
20256 s,@DISTNAME@,$DISTNAME,;t t
20257 s,@DISTVER@,$DISTVER,;t t
20258 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20259 /@MCOMMON@/r $MCOMMON
20265 cat >>$CONFIG_STATUS <<\_ACEOF
20266 # Split the substitutions into bite-sized pieces for seds with
20267 # small command number limits, like on Digital OSF/1 and HP-UX.
20268 ac_max_sed_lines=48
20269 ac_sed_frag=1 # Number of current file.
20270 ac_beg=1 # First line for current file.
20271 ac_end=$ac_max_sed_lines # Line after last line for current file.
20274 while $ac_more_lines; do
20275 if test $ac_beg -gt 1; then
20276 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20278 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20280 if test ! -s $tmp/subs.frag; then
20281 ac_more_lines=false
20283 # The purpose of the label and of the branching condition is to
20284 # speed up the sed processing (if there are no `@' at all, there
20285 # is no need to browse any of the substitutions).
20286 # These are the two extra sed commands mentioned above.
20288 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20289 if test -z "$ac_sed_cmds"; then
20290 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20292 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20294 ac_sed_frag=`expr $ac_sed_frag + 1`
20296 ac_end=`expr $ac_end + $ac_max_sed_lines`
20299 if test -z "$ac_sed_cmds"; then
20302 fi # test -n "$CONFIG_FILES"
20305 cat >>$CONFIG_STATUS <<\_ACEOF
20306 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20307 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20309 - | *:- | *:-:* ) # input from stdin
20311 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20312 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20313 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20314 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20315 * ) ac_file_in=$ac_file.in ;;
20318 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20319 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20320 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20321 X"$ac_file" : 'X\(//\)[^/]' \| \
20322 X"$ac_file" : 'X\(//\)$' \| \
20323 X"$ac_file" : 'X\(/\)' \| \
20324 . : '\(.\)' 2>/dev/null ||
20326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20327 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20328 /^X\(\/\/\)$/{ s//\1/; q; }
20329 /^X\(\/\).*/{ s//\1/; q; }
20331 { if $as_mkdir_p; then
20336 while test ! -d "$as_dir"; do
20337 as_dirs="$as_dir $as_dirs"
20338 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20340 X"$as_dir" : 'X\(//\)[^/]' \| \
20341 X"$as_dir" : 'X\(//\)$' \| \
20342 X"$as_dir" : 'X\(/\)' \| \
20343 . : '\(.\)' 2>/dev/null ||
20345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20346 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20347 /^X\(\/\/\)$/{ s//\1/; q; }
20348 /^X\(\/\).*/{ s//\1/; q; }
20351 test ! -n "$as_dirs" || mkdir $as_dirs
20352 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20353 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20354 { (exit 1); exit 1; }; }; }
20358 if test "$ac_dir" != .; then
20359 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20360 # A "../" for each directory in $ac_dir_suffix.
20361 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20363 ac_dir_suffix= ac_top_builddir=
20367 .) # No --srcdir option. We are building in place.
20369 if test -z "$ac_top_builddir"; then
20372 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20374 [\\/]* | ?:[\\/]* ) # Absolute path.
20375 ac_srcdir=$srcdir$ac_dir_suffix;
20376 ac_top_srcdir=$srcdir ;;
20377 *) # Relative path.
20378 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20379 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20381 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20383 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20384 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20385 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20386 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20390 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20391 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20394 if test x"$ac_file" != x-; then
20395 { echo "$as_me:$LINENO: creating $ac_file" >&5
20396 echo "$as_me: creating $ac_file" >&6;}
20399 # Let's still pretend it is `configure' which instantiates (i.e., don't
20400 # use $as_me), people would be surprised to read:
20401 # /* config.h. Generated by config.status. */
20402 if test x"$ac_file" = x-; then
20405 configure_input="$ac_file. "
20407 configure_input=$configure_input"Generated from `echo $ac_file_in |
20408 sed 's,.*/,,'` by configure."
20410 # First look for the input files in the build tree, otherwise in the
20412 ac_file_inputs=`IFS=:
20413 for f in $ac_file_in; do
20415 -) echo $tmp/stdin ;;
20417 # Absolute (can't be DOS-style, as IFS=:)
20418 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20419 echo "$as_me: error: cannot find input file: $f" >&2;}
20420 { (exit 1); exit 1; }; }
20423 if test -f "$f"; then
20426 elif test -f "$srcdir/$f"; then
20431 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20432 echo "$as_me: error: cannot find input file: $f" >&2;}
20433 { (exit 1); exit 1; }; }
20436 done` || { (exit 1); exit 1; }
20438 cat >>$CONFIG_STATUS <<_ACEOF
20442 cat >>$CONFIG_STATUS <<\_ACEOF
20444 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20445 s,@configure_input@,$configure_input,;t t
20446 s,@srcdir@,$ac_srcdir,;t t
20447 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20448 s,@top_srcdir@,$ac_top_srcdir,;t t
20449 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20450 s,@builddir@,$ac_builddir,;t t
20451 s,@abs_builddir@,$ac_abs_builddir,;t t
20452 s,@top_builddir@,$ac_top_builddir,;t t
20453 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20454 s,@INSTALL@,$ac_INSTALL,;t t
20455 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20457 if test x"$ac_file" != x-; then
20458 mv $tmp/out $ac_file
20466 cat >>$CONFIG_STATUS <<\_ACEOF
20469 # CONFIG_HEADER section.
20472 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20473 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20475 # ac_d sets the value in "#define NAME VALUE" lines.
20476 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20477 ac_dB='[ ].*$,\1#\2'
20480 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20481 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20482 ac_uB='$,\1#\2define\3'
20486 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20487 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20489 - | *:- | *:-:* ) # input from stdin
20491 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20492 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20493 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20494 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20495 * ) ac_file_in=$ac_file.in ;;
20498 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20499 echo "$as_me: creating $ac_file" >&6;}
20501 # First look for the input files in the build tree, otherwise in the
20503 ac_file_inputs=`IFS=:
20504 for f in $ac_file_in; do
20506 -) echo $tmp/stdin ;;
20508 # Absolute (can't be DOS-style, as IFS=:)
20509 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20510 echo "$as_me: error: cannot find input file: $f" >&2;}
20511 { (exit 1); exit 1; }; }
20514 if test -f "$f"; then
20517 elif test -f "$srcdir/$f"; then
20522 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20523 echo "$as_me: error: cannot find input file: $f" >&2;}
20524 { (exit 1); exit 1; }; }
20527 done` || { (exit 1); exit 1; }
20528 # Remove the trailing spaces.
20529 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20533 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20534 # `conftest.undefs', that substitutes the proper values into
20535 # config.h.in to produce config.h. The first handles `#define'
20536 # templates, and the second `#undef' templates.
20537 # And first: Protect against being on the right side of a sed subst in
20538 # config.status. Protect against being in an unquoted here document
20539 # in config.status.
20540 rm -f conftest.defines conftest.undefs
20541 # Using a here document instead of a string reduces the quoting nightmare.
20542 # Putting comments in sed scripts is not portable.
20544 # `end' is used to avoid that the second main sed command (meant for
20545 # 0-ary CPP macros) applies to n-ary macro definitions.
20546 # See the Autoconf documentation for `clear'.
20547 cat >confdef2sed.sed <<\_ACEOF
20552 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20554 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20557 # If some macros were called several times there might be several times
20558 # the same #defines, which is useless. Nevertheless, we may not want to
20559 # sort them, since we want the *last* AC-DEFINE to be honored.
20560 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20561 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20562 rm -f confdef2sed.sed
20564 # This sed command replaces #undef with comments. This is necessary, for
20565 # example, in the case of _POSIX_SOURCE, which is predefined and required
20566 # on some systems where configure will not decide to define it.
20567 cat >>conftest.undefs <<\_ACEOF
20568 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20571 # Break up conftest.defines because some shells have a limit on the size
20572 # of here documents, and old seds have small limits too (100 cmds).
20573 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20574 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20575 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20576 echo ' :' >>$CONFIG_STATUS
20577 rm -f conftest.tail
20578 while grep . conftest.defines >/dev/null
20580 # Write a limited-size here document to $tmp/defines.sed.
20581 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20582 # Speed up: don't consider the non `#define' lines.
20583 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20584 # Work around the forget-to-reset-the-flag bug.
20585 echo 't clr' >>$CONFIG_STATUS
20586 echo ': clr' >>$CONFIG_STATUS
20587 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20589 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20591 mv $tmp/out $tmp/in
20593 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20594 rm -f conftest.defines
20595 mv conftest.tail conftest.defines
20597 rm -f conftest.defines
20598 echo ' fi # grep' >>$CONFIG_STATUS
20599 echo >>$CONFIG_STATUS
20601 # Break up conftest.undefs because some shells have a limit on the size
20602 # of here documents, and old seds have small limits too (100 cmds).
20603 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20604 rm -f conftest.tail
20605 while grep . conftest.undefs >/dev/null
20607 # Write a limited-size here document to $tmp/undefs.sed.
20608 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20609 # Speed up: don't consider the non `#undef'
20610 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20611 # Work around the forget-to-reset-the-flag bug.
20612 echo 't clr' >>$CONFIG_STATUS
20613 echo ': clr' >>$CONFIG_STATUS
20614 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20616 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20618 mv $tmp/out $tmp/in
20620 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20621 rm -f conftest.undefs
20622 mv conftest.tail conftest.undefs
20624 rm -f conftest.undefs
20626 cat >>$CONFIG_STATUS <<\_ACEOF
20627 # Let's still pretend it is `configure' which instantiates (i.e., don't
20628 # use $as_me), people would be surprised to read:
20629 # /* config.h. Generated by config.status. */
20630 if test x"$ac_file" = x-; then
20631 echo "/* Generated by configure. */" >$tmp/config.h
20633 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20635 cat $tmp/in >>$tmp/config.h
20637 if test x"$ac_file" != x-; then
20638 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20639 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20640 echo "$as_me: $ac_file is unchanged" >&6;}
20642 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20643 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20644 X"$ac_file" : 'X\(//\)[^/]' \| \
20645 X"$ac_file" : 'X\(//\)$' \| \
20646 X"$ac_file" : 'X\(/\)' \| \
20647 . : '\(.\)' 2>/dev/null ||
20649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20650 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20651 /^X\(\/\/\)$/{ s//\1/; q; }
20652 /^X\(\/\).*/{ s//\1/; q; }
20654 { if $as_mkdir_p; then
20659 while test ! -d "$as_dir"; do
20660 as_dirs="$as_dir $as_dirs"
20661 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20662 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20663 X"$as_dir" : 'X\(//\)[^/]' \| \
20664 X"$as_dir" : 'X\(//\)$' \| \
20665 X"$as_dir" : 'X\(/\)' \| \
20666 . : '\(.\)' 2>/dev/null ||
20668 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20669 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20670 /^X\(\/\/\)$/{ s//\1/; q; }
20671 /^X\(\/\).*/{ s//\1/; q; }
20674 test ! -n "$as_dirs" || mkdir $as_dirs
20675 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20676 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20677 { (exit 1); exit 1; }; }; }
20680 mv $tmp/config.h $ac_file
20684 rm -f $tmp/config.h
20688 cat >>$CONFIG_STATUS <<\_ACEOF
20691 # CONFIG_COMMANDS section.
20693 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20694 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20695 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20696 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20697 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20698 X"$ac_dest" : 'X\(//\)[^/]' \| \
20699 X"$ac_dest" : 'X\(//\)$' \| \
20700 X"$ac_dest" : 'X\(/\)' \| \
20701 . : '\(.\)' 2>/dev/null ||
20703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20705 /^X\(\/\/\)$/{ s//\1/; q; }
20706 /^X\(\/\).*/{ s//\1/; q; }
20710 if test "$ac_dir" != .; then
20711 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20712 # A "../" for each directory in $ac_dir_suffix.
20713 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20715 ac_dir_suffix= ac_top_builddir=
20719 .) # No --srcdir option. We are building in place.
20721 if test -z "$ac_top_builddir"; then
20724 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20726 [\\/]* | ?:[\\/]* ) # Absolute path.
20727 ac_srcdir=$srcdir$ac_dir_suffix;
20728 ac_top_srcdir=$srcdir ;;
20729 *) # Relative path.
20730 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20731 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20733 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20735 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20736 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20737 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20738 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20741 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20742 echo "$as_me: executing $ac_dest commands" >&6;}
20744 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
20750 cat >>$CONFIG_STATUS <<\_ACEOF
20752 { (exit 0); exit 0; }
20754 chmod +x $CONFIG_STATUS
20755 ac_clean_files=$ac_clean_files_save
20758 # configure is writing to config.log, and then calls config.status.
20759 # config.status does its own redirection, appending to config.log.
20760 # Unfortunately, on DOS this fails, as config.log is still kept open
20761 # by configure, so config.status won't be able to write to it; its
20762 # output is simply discarded. So we exec the FD to /dev/null,
20763 # effectively closing config.log, so it can be properly (re)opened and
20764 # appended to by config.status. When coming back to configure, we
20765 # need to make the FD available again.
20766 if test "$no_create" != yes; then
20768 ac_config_status_args=
20769 test "$silent" = yes &&
20770 ac_config_status_args="$ac_config_status_args --quiet"
20772 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20774 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20775 # would make configure fail if this is the last instruction.
20776 $ac_cs_success || { (exit 1); exit 1; }
20781 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
20782 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
20787 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
20788 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
20790 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
20791 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
20793 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
20794 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
20796 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
20797 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
20799 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
20800 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
20802 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
20803 chmod 755 $c/sqlite
20806 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
20807 largefile_support="yes"
20811 # A whole lot of hand springs to get the compiler version.
20812 # This is because gcc changed the output in version 3.0
20814 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20815 if test "x${CCVERSION}" = "x" ; then
20816 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20818 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
20819 if test x"${CXXVERSION}" = x ; then
20820 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
20823 if test "x${subsysdir}" = "x${sbindir}" ; then
20826 echo "You have set --sbindir and --with-subsys-dir"
20827 echo " both equal to: ${subsysdir} "
20828 echo " This is not permitted. Please reconfigure."
20830 echo "Aborting configuration ..."
20836 if test "x${db_name}" = "xInternal" ; then
20839 echo "You have not specified either --enable-client-only or one of the"
20840 echo " supported databases: MySQL, PostgreSQL, or SQLite".
20841 echo " This is not permitted. Please reconfigure."
20843 echo "Aborting the configuration ..."
20850 Configuration on `date`:
20852 Host: $host -- ${DISTNAME} ${DISTVER}
20853 Bacula version: ${VERSION} (${DATE})
20854 Source code location: ${srcdir}
20855 Install binaries: ${sbindir}
20856 Install config files: ${sysconfdir}
20857 Scripts directory: ${scriptdir}
20858 Working directory: ${working_dir}
20859 PID directory: ${piddir}
20860 Subsys directory: ${subsysdir}
20861 C Compiler: ${CC} ${CCVERSION}
20862 C++ Compiler: ${CXX} ${CXXVERSION}
20863 Compiler flags: ${WCFLAGS} ${CFLAGS}
20864 Linker flags: ${WLDFLAGS} ${LDFLAGS}
20866 Statically Linked Tools: ${support_static_tools}
20867 Statically Linked FD: ${support_static_fd}
20868 Statically Linked SD: ${support_static_sd}
20869 Statically Linked DIR: ${support_static_dir}
20870 Statically Linked CONS: ${support_static_cons}
20871 Database type: ${db_name}
20872 Database lib: ${DB_LIBS}
20874 Job Output Email: ${job_email}
20875 Traceback Email: ${dump_email}
20876 SMTP Host Address: ${smtp_host}
20878 Director Port: ${dir_port}
20879 File daemon Port: ${fd_port}
20880 Storage daemon Port: ${sd_port}
20882 Director User: ${dir_user}
20883 Director Group: ${dir_group}
20884 Storage Daemon User: ${sd_user}
20885 Storage DaemonGroup: ${sd_group}
20886 File Daemon User: ${fd_user}
20887 File Daemon Group: ${fd_group}
20889 SQL binaries Directory ${SQL_BINDIR}
20891 Large file support: $largefile_support
20892 Bacula conio support: ${got_conio} ${CONS_LIBS}
20893 readline support: ${got_readline} ${PRTREADLINE_SRC}
20894 TCP Wrappers support: ${TCPW_MSG}
20895 ZLIB support: ${have_zlib}
20896 enable-smartalloc: ${support_smartalloc}
20897 enable-gnome: ${support_gnome} ${gnome_version}
20898 enable-wx-console: ${support_wx_console}
20899 enable-tray-monitor: ${support_tray_monitor}
20900 client-only: ${build_client_only}
20901 ACL support: ${have_acl}
20902 Python support: ${support_python} ${PYTHON_LIBS}
20909 # cweb support: ${got_cweb} ${CWEB_SRC}
20910 # gmp support: ${got_gmp} ${GMP_SRC}