2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 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 ECHO CMP TBL AR OPENSSL MTX DF MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG WXFLAGS CDRECORD PIDOF AWK 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 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 OPENSSL_LIBS OPENSSL_INC 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 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'
313 ac_subst_files='MCOMMON'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
791 # Report the --help message.
793 if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
797 \`configure' configures this package to adapt to many kinds of systems.
799 Usage: $0 [OPTION]... [VAR=VALUE]...
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE. See below for descriptions of some of the useful variables.
804 Defaults for the options are specified in brackets.
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
820 Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
831 For better control, use the options below.
833 Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
860 if test -n "$ac_init_help"; then
865 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
866 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
867 --enable-gnome enable build of gnome-console GUI disabled
868 --enable-wx-console enable build of wxWidgets console disabled
869 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
870 --enable-smartalloc enable smartalloc debugging support disabled
871 --enable-static-tools enable static tape tools disabled
872 --enable-static-fd enable static File daemon disabled
873 --enable-static-sd enable static Storage daemon disabled
874 --enable-static-dir enable static Director disabled
875 --enable-static-cons enable static Console disabled
876 --enable-client-only build client (File daemon) only disabled
877 --disable-conio disable conio support enabled
879 --disable-readline disable readline support disable
881 --disable-largefile omit support for large files
884 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
885 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
886 --with-readline=DIR specify readline library directory
888 --with-python=DIR Include Python support. DIR is the Python base
889 install directory, default is to search through
890 a number of common places for the Python files.
891 --with-tcp-wrappers=DIR enable tcpwrappers support
893 Include OpenSSL support. DIR is the OpenSSL base
894 --with-working-dir=PATH specify path of Bacula working directory
895 --with-scriptdir=PATH specify path of Bacula scripts directory
896 --with-dump-email=EMAIL dump email address
897 --with-job-email=EMAIL job output email address
898 --with-smtp-host=HOST SMTP mail host address
899 --with-pid-dir=PATH specify location of Bacula pid files
900 --with-subsys-dir=PATH specify location of Bacula subsys file
901 --with-baseport=PORT specify base port address for daemons
902 --with-dir-password=PASSWORD specify Director's password
903 --with-fd-password=PASSWORD specify Client's password
904 --with-sd-password=PASSWORD specify Storage daemon's password
905 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
906 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
907 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
908 --with-dir-user=USER specify user for Director daemon
909 --with-dir-group=GROUP specify group for Director daemon
910 --with-sd-user=USER specify user for Storage daemon
911 --with-sd-group=GROUP specify group for Storage daemon
912 --with-fd-user=USER specify user for File daemon
913 --with-fd-group=GROUP specify group for File daemon
914 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
915 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
916 base install directory, defaults to /usr/local/pgsql
918 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
919 install directory, default is to search through
920 a number of common places for the MySQL files.
922 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
923 install directory, default is to search through
924 a number of common places for the MySQL files.
926 --with-sqlite3=DIR Include SQLite3 support. DIR is the SQLite3 base
927 install directory, default is to search through
928 a number of common places for the SQLite3 files.
930 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
931 install directory, default is to search through
932 a number of common places for the SQLite files.
933 --with-x use the X Window System
935 Some influential environment variables:
936 CC C compiler command
937 CFLAGS C compiler flags
938 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
939 nonstandard directory <lib dir>
940 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
941 headers in a nonstandard directory <include dir>
942 CXX C++ compiler command
943 CXXFLAGS C++ compiler flags
945 WXCONFIG wx-config command. On some systems, you must set it to
946 wx-config-2.6 to use wxWidgets 2.6.
947 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
949 Use these variables to override the choices made by `configure' or to help
950 it to find libraries and programs with nonstandard names/locations.
955 if test "$ac_init_help" = "recursive"; then
956 # If there are subdirs, report their specific --help.
958 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
959 test -d $ac_dir || continue
962 if test "$ac_dir" != .; then
963 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
964 # A "../" for each directory in $ac_dir_suffix.
965 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
967 ac_dir_suffix= ac_top_builddir=
971 .) # No --srcdir option. We are building in place.
973 if test -z "$ac_top_builddir"; then
976 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
978 [\\/]* | ?:[\\/]* ) # Absolute path.
979 ac_srcdir=$srcdir$ac_dir_suffix;
980 ac_top_srcdir=$srcdir ;;
982 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
983 ac_top_srcdir=$ac_top_builddir$srcdir ;;
986 # Do not use `cd foo && pwd` to compute absolute paths, because
987 # the directories may not exist.
989 .) ac_abs_builddir="$ac_dir";;
992 .) ac_abs_builddir=`pwd`;;
993 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
994 *) ac_abs_builddir=`pwd`/"$ac_dir";;
997 case $ac_abs_builddir in
998 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1000 case ${ac_top_builddir}. in
1001 .) ac_abs_top_builddir=$ac_abs_builddir;;
1002 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1003 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1006 case $ac_abs_builddir in
1007 .) ac_abs_srcdir=$ac_srcdir;;
1010 .) ac_abs_srcdir=$ac_abs_builddir;;
1011 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1012 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1015 case $ac_abs_builddir in
1016 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1018 case $ac_top_srcdir in
1019 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1020 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1021 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1026 # Check for guested configure; otherwise get Cygnus style configure.
1027 if test -f $ac_srcdir/configure.gnu; then
1029 $SHELL $ac_srcdir/configure.gnu --help=recursive
1030 elif test -f $ac_srcdir/configure; then
1032 $SHELL $ac_srcdir/configure --help=recursive
1033 elif test -f $ac_srcdir/configure.ac ||
1034 test -f $ac_srcdir/configure.in; then
1036 $ac_configure --help
1038 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1044 test -n "$ac_init_help" && exit 0
1045 if $ac_init_version; then
1048 Copyright (C) 2003 Free Software Foundation, Inc.
1049 This configure script is free software; the Free Software Foundation
1050 gives unlimited permission to copy, distribute and modify it.
1056 This file contains any messages produced by compilers while
1057 running configure, to aid debugging if configure makes a mistake.
1059 It was created by $as_me, which was
1060 generated by GNU Autoconf 2.59. Invocation command line was
1071 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1072 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1073 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1074 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1075 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1077 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1078 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1080 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1081 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1082 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1083 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1084 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1085 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1086 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1094 test -z "$as_dir" && as_dir=.
1095 echo "PATH: $as_dir"
1110 # Keep a trace of the command line.
1111 # Strip out --no-create and --no-recursion so they do not pile up.
1112 # Strip out --silent because we don't want to record it for future runs.
1113 # Also quote any args containing shell meta-characters.
1114 # Make two passes to allow for proper duplicate-argument suppression.
1119 ac_must_keep_next=false
1125 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1129 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1130 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1133 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1135 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1136 if test $ac_must_keep_next = true; then
1137 ac_must_keep_next=false # Got value, back to normal.
1140 *=* | --config-cache | -C | -disable-* | --disable-* \
1141 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1142 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1143 | -with-* | --with-* | -without-* | --without-* | --x)
1144 case "$ac_configure_args0 " in
1145 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1148 -* ) ac_must_keep_next=true ;;
1151 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1152 # Get rid of the leading space.
1158 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1159 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1161 # When interrupted or exit'd, cleanup temporary files, and complete
1162 # config.log. We remove comments because anyway the quotes in there
1163 # would cause problems or look ugly.
1164 # WARNING: Be sure not to use single quotes in there, as some shells,
1165 # such as our DU 5.0 friend, will then `close' the trap.
1166 trap 'exit_status=$?
1167 # Save into config.log some information that might help in debugging.
1172 ## ---------------- ##
1173 ## Cache variables. ##
1174 ## ---------------- ##
1177 # The following way of writing the cache mishandles newlines in values,
1180 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1183 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1188 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1195 ## ----------------- ##
1196 ## Output variables. ##
1197 ## ----------------- ##
1200 for ac_var in $ac_subst_vars
1202 eval ac_val=$`echo $ac_var`
1203 echo "$ac_var='"'"'$ac_val'"'"'"
1207 if test -n "$ac_subst_files"; then
1214 for ac_var in $ac_subst_files
1216 eval ac_val=$`echo $ac_var`
1217 echo "$ac_var='"'"'$ac_val'"'"'"
1222 if test -s confdefs.h; then
1229 sed "/^$/d" confdefs.h | sort
1232 test "$ac_signal" != 0 &&
1233 echo "$as_me: caught signal $ac_signal"
1234 echo "$as_me: exit $exit_status"
1236 rm -f core *.core &&
1237 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1240 for ac_signal in 1 2 13 15; do
1241 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1245 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1246 rm -rf conftest* confdefs.h
1247 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1250 # Predefined preprocessor variables.
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_NAME "$PACKAGE_NAME"
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_STRING "$PACKAGE_STRING"
1272 cat >>confdefs.h <<_ACEOF
1273 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1277 # Let the site file select an alternate cache file if it wants to.
1278 # Prefer explicitly selected file to automatically selected ones.
1279 if test -z "$CONFIG_SITE"; then
1280 if test "x$prefix" != xNONE; then
1281 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1283 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1286 for ac_site_file in $CONFIG_SITE; do
1287 if test -r "$ac_site_file"; then
1288 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1289 echo "$as_me: loading site script $ac_site_file" >&6;}
1290 sed 's/^/| /' "$ac_site_file" >&5
1295 if test -r "$cache_file"; then
1296 # Some versions of bash will fail to source /dev/null (special
1297 # files actually), so we avoid doing that.
1298 if test -f "$cache_file"; then
1299 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1300 echo "$as_me: loading cache $cache_file" >&6;}
1302 [\\/]* | ?:[\\/]* ) . $cache_file;;
1303 *) . ./$cache_file;;
1307 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1308 echo "$as_me: creating cache $cache_file" >&6;}
1312 # Check that the precious variables saved in the cache have kept the same
1314 ac_cache_corrupted=false
1315 for ac_var in `(set) 2>&1 |
1316 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1317 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1318 eval ac_new_set=\$ac_env_${ac_var}_set
1319 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1320 eval ac_new_val="\$ac_env_${ac_var}_value"
1321 case $ac_old_set,$ac_new_set in
1323 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1325 ac_cache_corrupted=: ;;
1327 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1328 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1329 ac_cache_corrupted=: ;;
1332 if test "x$ac_old_val" != "x$ac_new_val"; then
1333 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1334 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1335 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1336 echo "$as_me: former value: $ac_old_val" >&2;}
1337 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1338 echo "$as_me: current value: $ac_new_val" >&2;}
1339 ac_cache_corrupted=:
1342 # Pass precious variables to config.status.
1343 if test "$ac_new_set" = set; then
1345 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1346 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1347 *) ac_arg=$ac_var=$ac_new_val ;;
1349 case " $ac_configure_args " in
1350 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1351 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1355 if $ac_cache_corrupted; then
1356 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1357 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1358 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1359 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1360 { (exit 1); exit 1; }; }
1364 ac_cpp='$CPP $CPPFLAGS'
1365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1393 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1394 if test -f $ac_dir/install-sh; then
1396 ac_install_sh="$ac_aux_dir/install-sh -c"
1398 elif test -f $ac_dir/install.sh; then
1400 ac_install_sh="$ac_aux_dir/install.sh -c"
1402 elif test -f $ac_dir/shtool; then
1404 ac_install_sh="$ac_aux_dir/shtool install -c"
1408 if test -z "$ac_aux_dir"; then
1409 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1410 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1411 { (exit 1); exit 1; }; }
1413 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1414 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1415 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1417 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1425 # Extract the first word of "$ac_prog", so it can be a program name with args.
1426 set dummy $ac_prog; ac_word=$2
1427 echo "$as_me:$LINENO: checking for $ac_word" >&5
1428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1429 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1430 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1441 test -z "$as_dir" && as_dir=.
1442 for ac_exec_ext in '' $ac_executable_extensions; do
1443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1444 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 TRUEPRG=$ac_cv_path_TRUEPRG
1456 if test -n "$TRUEPRG"; then
1457 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1458 echo "${ECHO_T}$TRUEPRG" >&6
1460 echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1464 test -n "$TRUEPRG" && break
1466 test -n "$TRUEPRG" || TRUEPRG=":"
1468 for ac_prog in false
1470 # Extract the first word of "$ac_prog", so it can be a program name with args.
1471 set dummy $ac_prog; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 test -z "$as_dir" && as_dir=.
1487 for ac_exec_ext in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 FALSEPRG=$ac_cv_path_FALSEPRG
1501 if test -n "$FALSEPRG"; then
1502 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1503 echo "${ECHO_T}$FALSEPRG" >&6
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1509 test -n "$FALSEPRG" && break
1511 test -n "$FALSEPRG" || FALSEPRG=":"
1516 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1517 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1518 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1519 echo "configuring for bacula $VERSION ($DATE)"
1524 ac_cpp='$CPP $CPPFLAGS'
1525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528 if test -n "$ac_tool_prefix"; then
1529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1530 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1531 echo "$as_me:$LINENO: checking for $ac_word" >&5
1532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533 if test "${ac_cv_prog_CC+set}" = set; then
1534 echo $ECHO_N "(cached) $ECHO_C" >&6
1536 if test -n "$CC"; then
1537 ac_cv_prog_CC="$CC" # Let the user override the test.
1539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1543 test -z "$as_dir" && as_dir=.
1544 for ac_exec_ext in '' $ac_executable_extensions; do
1545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1556 if test -n "$CC"; then
1557 echo "$as_me:$LINENO: result: $CC" >&5
1558 echo "${ECHO_T}$CC" >&6
1560 echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1565 if test -z "$ac_cv_prog_CC"; then
1567 # Extract the first word of "gcc", so it can be a program name with args.
1568 set dummy gcc; ac_word=$2
1569 echo "$as_me:$LINENO: checking for $ac_word" >&5
1570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1574 if test -n "$ac_ct_CC"; then
1575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581 test -z "$as_dir" && as_dir=.
1582 for ac_exec_ext in '' $ac_executable_extensions; do
1583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584 ac_cv_prog_ac_ct_CC="gcc"
1585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1594 if test -n "$ac_ct_CC"; then
1595 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1596 echo "${ECHO_T}$ac_ct_CC" >&6
1598 echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1607 if test -z "$CC"; then
1608 if test -n "$ac_tool_prefix"; then
1609 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1610 set dummy ${ac_tool_prefix}cc; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_CC+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 if test -n "$CC"; then
1617 ac_cv_prog_CC="$CC" # Let the user override the test.
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623 test -z "$as_dir" && as_dir=.
1624 for ac_exec_ext in '' $ac_executable_extensions; do
1625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626 ac_cv_prog_CC="${ac_tool_prefix}cc"
1627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636 if test -n "$CC"; then
1637 echo "$as_me:$LINENO: result: $CC" >&5
1638 echo "${ECHO_T}$CC" >&6
1640 echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1645 if test -z "$ac_cv_prog_CC"; then
1647 # Extract the first word of "cc", so it can be a program name with args.
1648 set dummy cc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 if test -n "$ac_ct_CC"; then
1655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 test -z "$as_dir" && as_dir=.
1662 for ac_exec_ext in '' $ac_executable_extensions; do
1663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664 ac_cv_prog_ac_ct_CC="cc"
1665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674 if test -n "$ac_ct_CC"; then
1675 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1676 echo "${ECHO_T}$ac_ct_CC" >&6
1678 echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1688 if test -z "$CC"; then
1689 # Extract the first word of "cc", so it can be a program name with args.
1690 set dummy cc; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_CC+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 if test -n "$CC"; then
1697 ac_cv_prog_CC="$CC" # Let the user override the test.
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1708 ac_prog_rejected=yes
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 if test $ac_prog_rejected = yes; then
1719 # We found a bogon in the path, so make sure we never use it.
1720 set dummy $ac_cv_prog_CC
1722 if test $# != 0; then
1723 # We chose a different compiler from the bogus one.
1724 # However, it has the same basename, so the bogon will be chosen
1725 # first if we set CC to just the basename; use the full file name.
1727 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1733 if test -n "$CC"; then
1734 echo "$as_me:$LINENO: result: $CC" >&5
1735 echo "${ECHO_T}$CC" >&6
1737 echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1742 if test -z "$CC"; then
1743 if test -n "$ac_tool_prefix"; then
1746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1747 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_CC+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 if test -n "$CC"; then
1754 ac_cv_prog_CC="$CC" # Let the user override the test.
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 if test -n "$CC"; then
1774 echo "$as_me:$LINENO: result: $CC" >&5
1775 echo "${ECHO_T}$CC" >&6
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1781 test -n "$CC" && break
1784 if test -z "$CC"; then
1788 # Extract the first word of "$ac_prog", so it can be a program name with args.
1789 set dummy $ac_prog; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 if test -n "$ac_ct_CC"; then
1796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1802 test -z "$as_dir" && as_dir=.
1803 for ac_exec_ext in '' $ac_executable_extensions; do
1804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805 ac_cv_prog_ac_ct_CC="$ac_prog"
1806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1815 if test -n "$ac_ct_CC"; then
1816 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1817 echo "${ECHO_T}$ac_ct_CC" >&6
1819 echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1823 test -n "$ac_ct_CC" && break
1832 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: no acceptable C compiler found in \$PATH
1835 See \`config.log' for more details." >&2;}
1836 { (exit 1); exit 1; }; }
1838 # Provide some information about the compiler.
1839 echo "$as_me:$LINENO:" \
1840 "checking for C compiler version" >&5
1841 ac_compiler=`set X $ac_compile; echo $2`
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1843 (eval $ac_compiler --version </dev/null >&5) 2>&5
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1848 (eval $ac_compiler -v </dev/null >&5) 2>&5
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }
1852 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1853 (eval $ac_compiler -V </dev/null >&5) 2>&5
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }
1858 cat >conftest.$ac_ext <<_ACEOF
1861 cat confdefs.h >>conftest.$ac_ext
1862 cat >>conftest.$ac_ext <<_ACEOF
1863 /* end confdefs.h. */
1873 ac_clean_files_save=$ac_clean_files
1874 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1875 # Try to create an executable without -o first, disregard a.out.
1876 # It will help us diagnose broken compilers, and finding out an intuition
1878 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1879 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1880 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1882 (eval $ac_link_default) 2>&5
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
1886 # Find the output, starting from the most likely. This scheme is
1887 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1890 # Be careful to initialize this variable, since it used to be cached.
1891 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1893 # b.out is created by i960 compilers.
1894 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1896 test -f "$ac_file" || continue
1898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1901 # This is the source file.
1904 # We found the default executable, but exeext='' is most
1908 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1909 # FIXME: I believe we export ac_cv_exeext for Libtool,
1910 # but it would be cool to find out if it's true. Does anybody
1911 # maintain Libtool? --akim.
1919 echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1922 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&5
1924 echo "$as_me: error: C compiler cannot create executables
1925 See \`config.log' for more details." >&2;}
1926 { (exit 77); exit 77; }; }
1929 ac_exeext=$ac_cv_exeext
1930 echo "$as_me:$LINENO: result: $ac_file" >&5
1931 echo "${ECHO_T}$ac_file" >&6
1933 # Check the compiler produces executables we can run. If not, either
1934 # the compiler is broken, or we cross compile.
1935 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1936 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1937 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1938 # If not cross compiling, check that we can run a simple program.
1939 if test "$cross_compiling" != yes; then
1940 if { ac_try='./$ac_file'
1941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; }; then
1948 if test "$cross_compiling" = maybe; then
1951 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot run C compiled programs.
1955 If you meant to cross compile, use \`--host'.
1956 See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1961 echo "$as_me:$LINENO: result: yes" >&5
1962 echo "${ECHO_T}yes" >&6
1964 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1965 ac_clean_files=$ac_clean_files_save
1966 # Check the compiler produces executables we can run. If not, either
1967 # the compiler is broken, or we cross compile.
1968 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1969 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1970 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1971 echo "${ECHO_T}$cross_compiling" >&6
1973 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1974 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1976 (eval $ac_link) 2>&5
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }; then
1980 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1981 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1982 # work properly (i.e., refer to `conftest.exe'), while it won't with
1984 for ac_file in conftest.exe conftest conftest.*; do
1985 test -f "$ac_file" || continue
1987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1988 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1995 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&5
1997 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1998 See \`config.log' for more details." >&2;}
1999 { (exit 1); exit 1; }; }
2002 rm -f conftest$ac_cv_exeext
2003 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2004 echo "${ECHO_T}$ac_cv_exeext" >&6
2006 rm -f conftest.$ac_ext
2007 EXEEXT=$ac_cv_exeext
2009 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2010 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2011 if test "${ac_cv_objext+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 cat >conftest.$ac_ext <<_ACEOF
2017 cat confdefs.h >>conftest.$ac_ext
2018 cat >>conftest.$ac_ext <<_ACEOF
2019 /* end confdefs.h. */
2029 rm -f conftest.o conftest.obj
2030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031 (eval $ac_compile) 2>&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; then
2035 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2038 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2043 echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2046 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2047 See \`config.log' for more details." >&5
2048 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2049 See \`config.log' for more details." >&2;}
2050 { (exit 1); exit 1; }; }
2053 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2055 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2056 echo "${ECHO_T}$ac_cv_objext" >&6
2057 OBJEXT=$ac_cv_objext
2059 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2060 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2061 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 cat >conftest.$ac_ext <<_ACEOF
2067 cat confdefs.h >>conftest.$ac_ext
2068 cat >>conftest.$ac_ext <<_ACEOF
2069 /* end confdefs.h. */
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084 (eval $ac_compile) 2>conftest.er1
2086 grep -v '^ *+' conftest.er1 >conftest.err
2088 cat conftest.err >&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); } &&
2091 { ac_try='test -z "$ac_c_werror_flag"
2092 || test ! -s conftest.err'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; } &&
2098 { ac_try='test -s conftest.$ac_objext'
2099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; }; then
2106 echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2112 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2115 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2116 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2117 GCC=`test $ac_compiler_gnu = yes && echo yes`
2118 ac_test_CFLAGS=${CFLAGS+set}
2119 ac_save_CFLAGS=$CFLAGS
2121 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2122 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2123 if test "${ac_cv_prog_cc_g+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 cat >conftest.$ac_ext <<_ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h. */
2141 rm -f conftest.$ac_objext
2142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2143 (eval $ac_compile) 2>conftest.er1
2145 grep -v '^ *+' conftest.er1 >conftest.err
2147 cat conftest.err >&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
2150 { ac_try='test -z "$ac_c_werror_flag"
2151 || test ! -s conftest.err'
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; } &&
2157 { ac_try='test -s conftest.$ac_objext'
2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; }; then
2165 echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2172 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2173 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2174 if test "$ac_test_CFLAGS" = set; then
2175 CFLAGS=$ac_save_CFLAGS
2176 elif test $ac_cv_prog_cc_g = yes; then
2177 if test "$GCC" = yes; then
2183 if test "$GCC" = yes; then
2189 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2190 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2191 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 ac_cv_prog_cc_stdc=no
2196 cat >conftest.$ac_ext <<_ACEOF
2199 cat confdefs.h >>conftest.$ac_ext
2200 cat >>conftest.$ac_ext <<_ACEOF
2201 /* end confdefs.h. */
2204 #include <sys/types.h>
2205 #include <sys/stat.h>
2206 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2207 struct buf { int x; };
2208 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2209 static char *e (p, i)
2215 static char *f (char * (*g) (char **, int), char **p, ...)
2220 s = g (p, va_arg (v,int));
2225 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2226 function prototypes and stuff, but not '\xHH' hex character constants.
2227 These don't provoke an error unfortunately, instead are silently treated
2228 as 'x'. The following induces an error, until -std1 is added to get
2229 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2230 array size at least. It's necessary to write '\x00'==0 to get something
2231 that's true only with -std1. */
2232 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2234 int test (int i, double x);
2235 struct s1 {int (*f) (int a);};
2236 struct s2 {int (*f) (double a);};
2237 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2243 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2248 # Don't try gcc -ansi; that turns off useful extensions and
2249 # breaks some systems' header files.
2250 # AIX -qlanglvl=ansi
2251 # Ultrix and OSF/1 -std1
2252 # HP-UX 10.20 and later -Ae
2253 # HP-UX older versions -Aa -D_HPUX_SOURCE
2254 # SVR4 -Xc -D__EXTENSIONS__
2255 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2257 CC="$ac_save_CC $ac_arg"
2258 rm -f conftest.$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260 (eval $ac_compile) 2>conftest.er1
2262 grep -v '^ *+' conftest.er1 >conftest.err
2264 cat conftest.err >&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); } &&
2267 { ac_try='test -z "$ac_c_werror_flag"
2268 || test ! -s conftest.err'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; } &&
2274 { ac_try='test -s conftest.$ac_objext'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; }; then
2280 ac_cv_prog_cc_stdc=$ac_arg
2283 echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2287 rm -f conftest.err conftest.$ac_objext
2289 rm -f conftest.$ac_ext conftest.$ac_objext
2294 case "x$ac_cv_prog_cc_stdc" in
2296 echo "$as_me:$LINENO: result: none needed" >&5
2297 echo "${ECHO_T}none needed" >&6 ;;
2299 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2300 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2301 CC="$CC $ac_cv_prog_cc_stdc" ;;
2304 # Some people use a C++ compiler to compile C. Since we use `exit',
2305 # in C++ we need to declare it. In case someone uses the same compiler
2306 # for both compiling C and C++ we need to have the C++ compiler decide
2307 # the declaration of exit, since it's the most demanding environment.
2308 cat >conftest.$ac_ext <<_ACEOF
2313 rm -f conftest.$ac_objext
2314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315 (eval $ac_compile) 2>conftest.er1
2317 grep -v '^ *+' conftest.er1 >conftest.err
2319 cat conftest.err >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } &&
2322 { ac_try='test -z "$ac_c_werror_flag"
2323 || test ! -s conftest.err'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; } &&
2329 { ac_try='test -s conftest.$ac_objext'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; }; then
2335 for ac_declaration in \
2337 'extern "C" void std::exit (int) throw (); using std::exit;' \
2338 'extern "C" void std::exit (int); using std::exit;' \
2339 'extern "C" void exit (int) throw ();' \
2340 'extern "C" void exit (int);' \
2343 cat >conftest.$ac_ext <<_ACEOF
2346 cat confdefs.h >>conftest.$ac_ext
2347 cat >>conftest.$ac_ext <<_ACEOF
2348 /* end confdefs.h. */
2359 rm -f conftest.$ac_objext
2360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361 (eval $ac_compile) 2>conftest.er1
2363 grep -v '^ *+' conftest.er1 >conftest.err
2365 cat conftest.err >&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); } &&
2368 { ac_try='test -z "$ac_c_werror_flag"
2369 || test ! -s conftest.err'
2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; } &&
2375 { ac_try='test -s conftest.$ac_objext'
2376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; }; then
2383 echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2389 cat >conftest.$ac_ext <<_ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h. */
2404 rm -f conftest.$ac_objext
2405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2406 (eval $ac_compile) 2>conftest.er1
2408 grep -v '^ *+' conftest.er1 >conftest.err
2410 cat conftest.err >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); } &&
2413 { ac_try='test -z "$ac_c_werror_flag"
2414 || test ! -s conftest.err'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; } &&
2420 { ac_try='test -s conftest.$ac_objext'
2421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; }; then
2428 echo "$as_me: failed program was:" >&5
2429 sed 's/^/| /' conftest.$ac_ext >&5
2432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2435 if test -n "$ac_declaration"; then
2436 echo '#ifdef __cplusplus' >>confdefs.h
2437 echo $ac_declaration >>confdefs.h
2438 echo '#endif' >>confdefs.h
2442 echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2448 ac_cpp='$CPP $CPPFLAGS'
2449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2454 ac_cpp='$CXXCPP $CPPFLAGS'
2455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2458 if test -n "$ac_tool_prefix"; then
2459 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2463 echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2465 if test "${ac_cv_prog_CXX+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 if test -n "$CXX"; then
2469 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2478 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 if test -n "$CXX"; then
2489 echo "$as_me:$LINENO: result: $CXX" >&5
2490 echo "${ECHO_T}$CXX" >&6
2492 echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6
2496 test -n "$CXX" && break
2499 if test -z "$CXX"; then
2501 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2503 # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy $ac_prog; ac_word=$2
2505 echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2507 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 if test -n "$ac_ct_CXX"; then
2511 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2520 ac_cv_prog_ac_ct_CXX="$ac_prog"
2521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2530 if test -n "$ac_ct_CXX"; then
2531 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2532 echo "${ECHO_T}$ac_ct_CXX" >&6
2534 echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6
2538 test -n "$ac_ct_CXX" && break
2540 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2546 # Provide some information about the compiler.
2547 echo "$as_me:$LINENO:" \
2548 "checking for C++ compiler version" >&5
2549 ac_compiler=`set X $ac_compile; echo $2`
2550 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2551 (eval $ac_compiler --version </dev/null >&5) 2>&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }
2555 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2556 (eval $ac_compiler -v </dev/null >&5) 2>&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }
2560 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2561 (eval $ac_compiler -V </dev/null >&5) 2>&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }
2566 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2567 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2568 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 cat >conftest.$ac_ext <<_ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2589 rm -f conftest.$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591 (eval $ac_compile) 2>conftest.er1
2593 grep -v '^ *+' conftest.er1 >conftest.err
2595 cat conftest.err >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } &&
2598 { ac_try='test -z "$ac_cxx_werror_flag"
2599 || test ! -s conftest.err'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; } &&
2605 { ac_try='test -s conftest.$ac_objext'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2613 echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2619 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2622 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2623 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2624 GXX=`test $ac_compiler_gnu = yes && echo yes`
2625 ac_test_CXXFLAGS=${CXXFLAGS+set}
2626 ac_save_CXXFLAGS=$CXXFLAGS
2628 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2629 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2630 if test "${ac_cv_prog_cxx_g+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 cat >conftest.$ac_ext <<_ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h. */
2648 rm -f conftest.$ac_objext
2649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650 (eval $ac_compile) 2>conftest.er1
2652 grep -v '^ *+' conftest.er1 >conftest.err
2654 cat conftest.err >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); } &&
2657 { ac_try='test -z "$ac_cxx_werror_flag"
2658 || test ! -s conftest.err'
2659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; } &&
2664 { ac_try='test -s conftest.$ac_objext'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; }; then
2670 ac_cv_prog_cxx_g=yes
2672 echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2679 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2680 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2681 if test "$ac_test_CXXFLAGS" = set; then
2682 CXXFLAGS=$ac_save_CXXFLAGS
2683 elif test $ac_cv_prog_cxx_g = yes; then
2684 if test "$GXX" = yes; then
2690 if test "$GXX" = yes; then
2696 for ac_declaration in \
2698 'extern "C" void std::exit (int) throw (); using std::exit;' \
2699 'extern "C" void std::exit (int); using std::exit;' \
2700 'extern "C" void exit (int) throw ();' \
2701 'extern "C" void exit (int);' \
2704 cat >conftest.$ac_ext <<_ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h. */
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>conftest.er1
2724 grep -v '^ *+' conftest.er1 >conftest.err
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -z "$ac_cxx_werror_flag"
2730 || test ! -s conftest.err'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750 cat >conftest.$ac_ext <<_ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>conftest.er1
2769 grep -v '^ *+' conftest.er1 >conftest.err
2771 cat conftest.err >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 { ac_try='test -z "$ac_cxx_werror_flag"
2775 || test ! -s conftest.err'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; } &&
2781 { ac_try='test -s conftest.$ac_objext'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2796 if test -n "$ac_declaration"; then
2797 echo '#ifdef __cplusplus' >>confdefs.h
2798 echo $ac_declaration >>confdefs.h
2799 echo '#endif' >>confdefs.h
2803 ac_cpp='$CPP $CPPFLAGS'
2804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808 if test "x$CC" != xcc; then
2809 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2810 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2812 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2813 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2815 set dummy $CC; ac_cc=`echo $2 |
2816 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2817 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 cat >conftest.$ac_ext <<_ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2835 # Make sure it works both with $CC and with simple cc.
2836 # We do the test twice because some compilers refuse to overwrite an
2837 # existing .o file with -o, though they will create one.
2838 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2839 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); };
2850 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2851 if test "x$CC" != xcc; then
2852 # Test first that cc exists at all.
2853 if { ac_try='cc -c conftest.$ac_ext >&5'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2859 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2860 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } &&
2865 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); };
2874 # cc exists but doesn't like -o.
2875 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2880 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2885 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2886 echo "$as_me:$LINENO: result: yes" >&5
2887 echo "${ECHO_T}yes" >&6
2889 echo "$as_me:$LINENO: result: no" >&5
2890 echo "${ECHO_T}no" >&6
2892 cat >>confdefs.h <<\_ACEOF
2893 #define NO_MINUS_C_MINUS_O 1
2899 ac_cpp='$CPP $CPPFLAGS'
2900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2903 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2904 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2905 # On Suns, sometimes $CPP names a directory.
2906 if test -n "$CPP" && test -d "$CPP"; then
2909 if test -z "$CPP"; then
2910 if test "${ac_cv_prog_CPP+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 # Double quotes because CPP needs to be expanded
2914 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2917 for ac_c_preproc_warn_flag in '' yes
2919 # Use a header file that comes with gcc, so configuring glibc
2920 # with a fresh cross-compiler works.
2921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2922 # <limits.h> exists even on freestanding compilers.
2923 # On the NeXT, cc -E runs the code through the compiler's parser,
2924 # not just through cpp. "Syntax error" is here to catch this case.
2925 cat >conftest.$ac_ext <<_ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2932 # include <limits.h>
2934 # include <assert.h>
2938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2941 grep -v '^ *+' conftest.er1 >conftest.err
2943 cat conftest.err >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); } >/dev/null; then
2946 if test -s conftest.err; then
2947 ac_cpp_err=$ac_c_preproc_warn_flag
2948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2955 if test -z "$ac_cpp_err"; then
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 # Broken: fails on valid input.
2964 rm -f conftest.err conftest.$ac_ext
2966 # OK, works on sane cases. Now check whether non-existent headers
2967 # can be detected and how.
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2974 #include <ac_nonexistent.h>
2976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2979 grep -v '^ *+' conftest.er1 >conftest.err
2981 cat conftest.err >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } >/dev/null; then
2984 if test -s conftest.err; then
2985 ac_cpp_err=$ac_c_preproc_warn_flag
2986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2993 if test -z "$ac_cpp_err"; then
2994 # Broken: success on invalid input.
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 # Passes both tests.
3004 rm -f conftest.err conftest.$ac_ext
3007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3008 rm -f conftest.err conftest.$ac_ext
3009 if $ac_preproc_ok; then
3021 echo "$as_me:$LINENO: result: $CPP" >&5
3022 echo "${ECHO_T}$CPP" >&6
3024 for ac_c_preproc_warn_flag in '' yes
3026 # Use a header file that comes with gcc, so configuring glibc
3027 # with a fresh cross-compiler works.
3028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3029 # <limits.h> exists even on freestanding compilers.
3030 # On the NeXT, cc -E runs the code through the compiler's parser,
3031 # not just through cpp. "Syntax error" is here to catch this case.
3032 cat >conftest.$ac_ext <<_ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h. */
3039 # include <limits.h>
3041 # include <assert.h>
3045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3048 grep -v '^ *+' conftest.er1 >conftest.err
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } >/dev/null; then
3053 if test -s conftest.err; then
3054 ac_cpp_err=$ac_c_preproc_warn_flag
3055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3062 if test -z "$ac_cpp_err"; then
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3068 # Broken: fails on valid input.
3071 rm -f conftest.err conftest.$ac_ext
3073 # OK, works on sane cases. Now check whether non-existent headers
3074 # can be detected and how.
3075 cat >conftest.$ac_ext <<_ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3081 #include <ac_nonexistent.h>
3083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3086 grep -v '^ *+' conftest.er1 >conftest.err
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } >/dev/null; then
3091 if test -s conftest.err; then
3092 ac_cpp_err=$ac_c_preproc_warn_flag
3093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3100 if test -z "$ac_cpp_err"; then
3101 # Broken: success on invalid input.
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 # Passes both tests.
3111 rm -f conftest.err conftest.$ac_ext
3114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3115 rm -f conftest.err conftest.$ac_ext
3116 if $ac_preproc_ok; then
3119 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&5
3121 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3122 See \`config.log' for more details." >&2;}
3123 { (exit 1); exit 1; }; }
3127 ac_cpp='$CPP $CPPFLAGS'
3128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133 echo "$as_me:$LINENO: checking for egrep" >&5
3134 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3135 if test "${ac_cv_prog_egrep+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3139 then ac_cv_prog_egrep='grep -E'
3140 else ac_cv_prog_egrep='egrep'
3143 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3144 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3145 EGREP=$ac_cv_prog_egrep
3148 if test $ac_cv_c_compiler_gnu = yes; then
3149 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3150 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3151 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3154 ac_pattern="Autoconf.*'x'"
3155 cat >conftest.$ac_ext <<_ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3165 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3166 ac_cv_prog_gcc_traditional=yes
3168 ac_cv_prog_gcc_traditional=no
3173 if test $ac_cv_prog_gcc_traditional = no; then
3174 cat >conftest.$ac_ext <<_ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h. */
3183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3184 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3185 ac_cv_prog_gcc_traditional=yes
3191 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3192 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3193 if test $ac_cv_prog_gcc_traditional = yes; then
3194 CC="$CC -traditional"
3198 if test "x$CC" = xgcc; then
3199 cat >>confdefs.h <<\_ACEOF
3204 # Extract the first word of "$CXX", so it can be a program name with args.
3205 set dummy $CXX; ac_word=$2
3206 echo "$as_me:$LINENO: checking for $ac_word" >&5
3207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3208 if test "${ac_cv_path_CXX+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3223 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3236 if test -n "$CXX"; then
3237 echo "$as_me:$LINENO: result: $CXX" >&5
3238 echo "${ECHO_T}$CXX" >&6
3240 echo "$as_me:$LINENO: result: no" >&5
3241 echo "${ECHO_T}no" >&6
3244 if test ! -e $CXX; then
3245 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3246 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3247 { (exit 1); exit 1; }; }
3250 # Find a good install program. We prefer a C program (faster),
3251 # so one script is as good as another. But avoid the broken or
3252 # incompatible versions:
3253 # SysV /etc/install, /usr/sbin/install
3254 # SunOS /usr/etc/install
3255 # IRIX /sbin/install
3257 # AmigaOS /C/install, which installs bootblocks on floppy discs
3258 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3259 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3260 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3261 # OS/2's system install, which has a completely different semantic
3262 # ./install, which can be erroneously created by make from ./install.sh.
3263 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3264 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3265 if test -z "$INSTALL"; then
3266 if test "${ac_cv_path_install+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 test -z "$as_dir" && as_dir=.
3274 # Account for people who put trailing slashes in PATH elements.
3276 ./ | .// | /cC/* | \
3277 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3278 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3281 # OSF1 and SCO ODT 3.0 have their own names for install.
3282 # Don't use installbsd from OSF since it installs stuff as root
3284 for ac_prog in ginstall scoinst install; do
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3287 if test $ac_prog = install &&
3288 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3289 # AIX install. It has an incompatible calling convention.
3291 elif test $ac_prog = install &&
3292 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3293 # program-specific install script used by HP pwplus--don't use.
3296 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3308 if test "${ac_cv_path_install+set}" = set; then
3309 INSTALL=$ac_cv_path_install
3311 # As a last resort, use the slow shell script. We don't cache a
3312 # path for INSTALL within a source directory, because that will
3313 # break other packages using the cache if that directory is
3314 # removed, or if the path is relative.
3315 INSTALL=$ac_install_sh
3318 echo "$as_me:$LINENO: result: $INSTALL" >&5
3319 echo "${ECHO_T}$INSTALL" >&6
3321 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3322 # It thinks the first close brace ends the variable substitution.
3323 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3325 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3327 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3329 if test -n "$ac_tool_prefix"; then
3330 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3331 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3332 echo "$as_me:$LINENO: checking for $ac_word" >&5
3333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334 if test "${ac_cv_prog_RANLIB+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 if test -n "$RANLIB"; then
3338 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 test -z "$as_dir" && as_dir=.
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 RANLIB=$ac_cv_prog_RANLIB
3357 if test -n "$RANLIB"; then
3358 echo "$as_me:$LINENO: result: $RANLIB" >&5
3359 echo "${ECHO_T}$RANLIB" >&6
3361 echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6
3366 if test -z "$ac_cv_prog_RANLIB"; then
3367 ac_ct_RANLIB=$RANLIB
3368 # Extract the first word of "ranlib", so it can be a program name with args.
3369 set dummy ranlib; ac_word=$2
3370 echo "$as_me:$LINENO: checking for $ac_word" >&5
3371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3372 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 if test -n "$ac_ct_RANLIB"; then
3376 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385 ac_cv_prog_ac_ct_RANLIB="ranlib"
3386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3395 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3396 if test -n "$ac_ct_RANLIB"; then
3397 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3398 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3400 echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6
3404 RANLIB=$ac_ct_RANLIB
3406 RANLIB="$ac_cv_prog_RANLIB"
3409 # Extract the first word of "mv", so it can be a program name with args.
3410 set dummy mv; ac_word=$2
3411 echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_path_MV+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3441 if test -n "$MV"; then
3442 echo "$as_me:$LINENO: result: $MV" >&5
3443 echo "${ECHO_T}$MV" >&6
3445 echo "$as_me:$LINENO: result: no" >&5
3446 echo "${ECHO_T}no" >&6
3449 # Extract the first word of "rm", so it can be a program name with args.
3450 set dummy rm; ac_word=$2
3451 echo "$as_me:$LINENO: checking for $ac_word" >&5
3452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3453 if test "${ac_cv_path_RM+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3468 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3481 if test -n "$RM"; then
3482 echo "$as_me:$LINENO: result: $RM" >&5
3483 echo "${ECHO_T}$RM" >&6
3485 echo "$as_me:$LINENO: result: no" >&5
3486 echo "${ECHO_T}no" >&6
3489 # Extract the first word of "cp", so it can be a program name with args.
3490 set dummy cp; ac_word=$2
3491 echo "$as_me:$LINENO: checking for $ac_word" >&5
3492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3493 if test "${ac_cv_path_CP+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3508 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3521 if test -n "$CP"; then
3522 echo "$as_me:$LINENO: result: $CP" >&5
3523 echo "${ECHO_T}$CP" >&6
3525 echo "$as_me:$LINENO: result: no" >&5
3526 echo "${ECHO_T}no" >&6
3529 # Extract the first word of "sed", so it can be a program name with args.
3530 set dummy sed; ac_word=$2
3531 echo "$as_me:$LINENO: checking for $ac_word" >&5
3532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3533 if test "${ac_cv_path_SED+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3561 if test -n "$SED"; then
3562 echo "$as_me:$LINENO: result: $SED" >&5
3563 echo "${ECHO_T}$SED" >&6
3565 echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6
3569 # Extract the first word of "echo", so it can be a program name with args.
3570 set dummy echo; ac_word=$2
3571 echo "$as_me:$LINENO: checking for $ac_word" >&5
3572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3573 if test "${ac_cv_path_ECHO+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 test -z "$as_dir" && as_dir=.
3586 for ac_exec_ext in '' $ac_executable_extensions; do
3587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3588 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3599 ECHO=$ac_cv_path_ECHO
3601 if test -n "$ECHO"; then
3602 echo "$as_me:$LINENO: result: $ECHO" >&5
3603 echo "${ECHO_T}$ECHO" >&6
3605 echo "$as_me:$LINENO: result: no" >&5
3606 echo "${ECHO_T}no" >&6
3609 # Extract the first word of "cmp", so it can be a program name with args.
3610 set dummy cmp; ac_word=$2
3611 echo "$as_me:$LINENO: checking for $ac_word" >&5
3612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3613 if test "${ac_cv_path_CMP+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3641 if test -n "$CMP"; then
3642 echo "$as_me:$LINENO: result: $CMP" >&5
3643 echo "${ECHO_T}$CMP" >&6
3645 echo "$as_me:$LINENO: result: no" >&5
3646 echo "${ECHO_T}no" >&6
3649 # Extract the first word of "tbl", so it can be a program name with args.
3650 set dummy tbl; ac_word=$2
3651 echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3653 if test "${ac_cv_path_TBL+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3681 if test -n "$TBL"; then
3682 echo "$as_me:$LINENO: result: $TBL" >&5
3683 echo "${ECHO_T}$TBL" >&6
3685 echo "$as_me:$LINENO: result: no" >&5
3686 echo "${ECHO_T}no" >&6
3689 # Extract the first word of "ar", so it can be a program name with args.
3690 set dummy ar; ac_word=$2
3691 echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_path_AR+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3721 if test -n "$AR"; then
3722 echo "$as_me:$LINENO: result: $AR" >&5
3723 echo "${ECHO_T}$AR" >&6
3725 echo "$as_me:$LINENO: result: no" >&5
3726 echo "${ECHO_T}no" >&6
3729 # Extract the first word of "openssl", so it can be a program name with args.
3730 set dummy openssl; ac_word=$2
3731 echo "$as_me:$LINENO: checking for $ac_word" >&5
3732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3733 if test "${ac_cv_path_OPENSSL+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3759 OPENSSL=$ac_cv_path_OPENSSL
3761 if test -n "$OPENSSL"; then
3762 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3763 echo "${ECHO_T}$OPENSSL" >&6
3765 echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6
3769 # Extract the first word of "mtx", so it can be a program name with args.
3770 set dummy mtx; ac_word=$2
3771 echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_path_MTX+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3801 if test -n "$MTX"; then
3802 echo "$as_me:$LINENO: result: $MTX" >&5
3803 echo "${ECHO_T}$MTX" >&6
3805 echo "$as_me:$LINENO: result: no" >&5
3806 echo "${ECHO_T}no" >&6
3809 # Extract the first word of "df", so it can be a program name with args.
3810 set dummy df; ac_word=$2
3811 echo "$as_me:$LINENO: checking for $ac_word" >&5
3812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3813 if test "${ac_cv_path_DF+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 ac_cv_path_DF="$DF" # Let the user override the test with a path.
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
3829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3835 test -z "$ac_cv_path_DF" && ac_cv_path_DF="df"
3841 if test -n "$DF"; then
3842 echo "$as_me:$LINENO: result: $DF" >&5
3843 echo "${ECHO_T}$DF" >&6
3845 echo "$as_me:$LINENO: result: no" >&5
3846 echo "${ECHO_T}no" >&6
3849 # Extract the first word of "mkisofs", so it can be a program name with args.
3850 set dummy mkisofs; ac_word=$2
3851 echo "$as_me:$LINENO: checking for $ac_word" >&5
3852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3853 if test "${ac_cv_path_MKISOFS+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3875 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3879 MKISOFS=$ac_cv_path_MKISOFS
3881 if test -n "$MKISOFS"; then
3882 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3883 echo "${ECHO_T}$MKISOFS" >&6
3885 echo "$as_me:$LINENO: result: no" >&5
3886 echo "${ECHO_T}no" >&6
3889 # Extract the first word of "python", so it can be a program name with args.
3890 set dummy python; ac_word=$2
3891 echo "$as_me:$LINENO: checking for $ac_word" >&5
3892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3893 if test "${ac_cv_path_PYTHON+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3919 PYTHON=$ac_cv_path_PYTHON
3921 if test -n "$PYTHON"; then
3922 echo "$as_me:$LINENO: result: $PYTHON" >&5
3923 echo "${ECHO_T}$PYTHON" >&6
3925 echo "$as_me:$LINENO: result: no" >&5
3926 echo "${ECHO_T}no" >&6
3929 # Extract the first word of "growisofs", so it can be a program name with args.
3930 set dummy growisofs; ac_word=$2
3931 echo "$as_me:$LINENO: checking for $ac_word" >&5
3932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3933 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3948 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3959 GROWISOFS=$ac_cv_path_GROWISOFS
3961 if test -n "$GROWISOFS"; then
3962 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3963 echo "${ECHO_T}$GROWISOFS" >&6
3965 echo "$as_me:$LINENO: result: no" >&5
3966 echo "${ECHO_T}no" >&6
3969 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3970 set dummy dvd+rw-mediainfo; ac_word=$2
3971 echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 case $DVDRWMEDIAINFO in
3978 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 test -z "$as_dir" && as_dir=.
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3999 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4001 if test -n "$DVDRWMEDIAINFO"; then
4002 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4003 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4005 echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6
4009 # Extract the first word of "pkg-config", so it can be a program name with args.
4010 set dummy pkg-config; ac_word=$2
4011 echo "$as_me:$LINENO: checking for $ac_word" >&5
4012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4013 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 test -z "$as_dir" && as_dir=.
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4028 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4039 PKGCONFIG=$ac_cv_path_PKGCONFIG
4041 if test -n "$PKGCONFIG"; then
4042 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4043 echo "${ECHO_T}$PKGCONFIG" >&6
4045 echo "$as_me:$LINENO: result: no" >&5
4046 echo "${ECHO_T}no" >&6
4050 if test "x$WXCONFIG" = x; then
4053 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4054 set dummy ${WXCONFIG}; ac_word=$2
4055 echo "$as_me:$LINENO: checking for $ac_word" >&5
4056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4057 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 test -z "$as_dir" && as_dir=.
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4072 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4079 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4083 WXCONFIG=$ac_cv_path_WXCONFIG
4085 if test -n "$WXCONFIG"; then
4086 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4087 echo "${ECHO_T}$WXCONFIG" >&6
4089 echo "$as_me:$LINENO: result: no" >&5
4090 echo "${ECHO_T}no" >&6
4094 # Extract the first word of "cdrecord", so it can be a program name with args.
4095 set dummy cdrecord; ac_word=$2
4096 echo "$as_me:$LINENO: checking for $ac_word" >&5
4097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4098 if test "${ac_cv_path_CDRECORD+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 test -z "$as_dir" && as_dir=.
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4113 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4124 CDRECORD=$ac_cv_path_CDRECORD
4126 if test -n "$CDRECORD"; then
4127 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4128 echo "${ECHO_T}$CDRECORD" >&6
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4134 # Extract the first word of "pidof", so it can be a program name with args.
4135 set dummy pidof; ac_word=$2
4136 echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138 if test "${ac_cv_path_PIDOF+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4164 PIDOF=$ac_cv_path_PIDOF
4166 if test -n "$PIDOF"; then
4167 echo "$as_me:$LINENO: result: $PIDOF" >&5
4168 echo "${ECHO_T}$PIDOF" >&6
4170 echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4174 for ac_prog in gawk mawk nawk awk
4176 # Extract the first word of "$ac_prog", so it can be a program name with args.
4177 set dummy $ac_prog; ac_word=$2
4178 echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_prog_AWK+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 if test -n "$AWK"; then
4184 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 test -z "$as_dir" && as_dir=.
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193 ac_cv_prog_AWK="$ac_prog"
4194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 if test -n "$AWK"; then
4204 echo "$as_me:$LINENO: result: $AWK" >&5
4205 echo "${ECHO_T}$AWK" >&6
4207 echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4211 test -n "$AWK" && break
4214 # Some AWK programs fail, so test it and warn the user
4215 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4216 { if ((prog == $2) || (("(" prog ")") == $2) ||
4217 (("" prog "") == $2) ||
4218 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4220 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4221 The regex engine of $AWK is too broken to be used you
4222 might want to install GNU AWK.
4223 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4224 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4225 The regex engine of $AWK is too broken to be used you
4226 might want to install GNU AWK.
4227 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4228 { (exit 1); exit 1; }; }
4231 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4232 set dummy $THE_AWK; ac_word=$2
4233 echo "$as_me:$LINENO: checking for $ac_word" >&5
4234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4235 if test "${ac_cv_path_AWK+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4250 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4263 if test -n "$AWK"; then
4264 echo "$as_me:$LINENO: result: $AWK" >&5
4265 echo "${ECHO_T}$AWK" >&6
4267 echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6
4272 test -n "$ARFLAG" || ARFLAGS="cr"
4285 # Make sure we can run config.sub.
4286 $ac_config_sub sun4 >/dev/null 2>&1 ||
4287 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4288 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4289 { (exit 1); exit 1; }; }
4291 echo "$as_me:$LINENO: checking build system type" >&5
4292 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4293 if test "${ac_cv_build+set}" = set; then
4294 echo $ECHO_N "(cached) $ECHO_C" >&6
4296 ac_cv_build_alias=$build_alias
4297 test -z "$ac_cv_build_alias" &&
4298 ac_cv_build_alias=`$ac_config_guess`
4299 test -z "$ac_cv_build_alias" &&
4300 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4301 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4302 { (exit 1); exit 1; }; }
4303 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4304 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4305 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4306 { (exit 1); exit 1; }; }
4309 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4310 echo "${ECHO_T}$ac_cv_build" >&6
4312 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4313 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4314 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4318 echo "$as_me:$LINENO: checking host system type" >&5
4319 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4320 if test "${ac_cv_host+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4323 ac_cv_host_alias=$host_alias
4324 test -z "$ac_cv_host_alias" &&
4325 ac_cv_host_alias=$ac_cv_build_alias
4326 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4327 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4328 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4329 { (exit 1); exit 1; }; }
4332 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4333 echo "${ECHO_T}$ac_cv_host" >&6
4335 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4336 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4337 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4341 *cygwin* ) CYGWIN=yes;;
4345 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4351 HAVE_SUN_OS_FALSE='#'
4353 HAVE_SUN_OS_TRUE='#'
4356 cat >>confdefs.h <<\_ACEOF
4357 #define HAVE_SUN_OS 1
4365 HAVE_SUN_OS_FALSE='#'
4367 HAVE_SUN_OS_TRUE='#'
4372 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4378 HAVE_OSF1_OS_FALSE='#'
4380 HAVE_OSF1_OS_TRUE='#'
4383 cat >>confdefs.h <<\_ACEOF
4384 #define HAVE_OSF1_OS 1
4392 HAVE_OSF1_OS_FALSE='#'
4394 HAVE_OSF1_OS_TRUE='#'
4399 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4405 HAVE_AIX_OS_FALSE='#'
4407 HAVE_AIX_OS_TRUE='#'
4410 cat >>confdefs.h <<\_ACEOF
4411 #define HAVE_AIX_OS 1
4419 HAVE_AIX_OS_FALSE='#'
4421 HAVE_AIX_OS_TRUE='#'
4426 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4432 HAVE_HPUX_OS_FALSE='#'
4434 HAVE_HPUX_OS_TRUE='#'
4437 cat >>confdefs.h <<\_ACEOF
4438 #define HAVE_HPUX_OS 1
4446 HAVE_HPUX_OS_FALSE='#'
4448 HAVE_HPUX_OS_TRUE='#'
4453 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4459 HAVE_LINUX_OS_FALSE='#'
4461 HAVE_LINUX_OS_TRUE='#'
4462 HAVE_LINUX_OS_FALSE=
4464 cat >>confdefs.h <<\_ACEOF
4465 #define HAVE_LINUX_OS 1
4473 HAVE_LINUX_OS_FALSE='#'
4475 HAVE_LINUX_OS_TRUE='#'
4476 HAVE_LINUX_OS_FALSE=
4480 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4485 HAVE_FREEBSD_OS_TRUE=
4486 HAVE_FREEBSD_OS_FALSE='#'
4488 HAVE_FREEBSD_OS_TRUE='#'
4489 HAVE_FREEBSD_OS_FALSE=
4491 cat >>confdefs.h <<\_ACEOF
4492 #define HAVE_FREEBSD_OS 1
4499 HAVE_FREEBSD_OS_TRUE=
4500 HAVE_FREEBSD_OS_FALSE='#'
4502 HAVE_FREEBSD_OS_TRUE='#'
4503 HAVE_FREEBSD_OS_FALSE=
4507 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4512 HAVE_NETBSD_OS_TRUE=
4513 HAVE_NETBSD_OS_FALSE='#'
4515 HAVE_NETBSD_OS_TRUE='#'
4516 HAVE_NETBSD_OS_FALSE=
4518 cat >>confdefs.h <<\_ACEOF
4519 #define HAVE_NETBSD_OS 1
4526 HAVE_NETBSD_OS_TRUE=
4527 HAVE_NETBSD_OS_FALSE='#'
4529 HAVE_NETBSD_OS_TRUE='#'
4530 HAVE_NETBSD_OS_FALSE=
4534 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4539 HAVE_OPENBSD_OS_TRUE=
4540 HAVE_OPENBSD_OS_FALSE='#'
4542 HAVE_OPENBSD_OS_TRUE='#'
4543 HAVE_OPENBSD_OS_FALSE=
4545 cat >>confdefs.h <<\_ACEOF
4546 #define HAVE_OPENBSD_OS 1
4553 HAVE_OPENBSD_OS_TRUE=
4554 HAVE_OPENBSD_OS_FALSE='#'
4556 HAVE_OPENBSD_OS_TRUE='#'
4557 HAVE_OPENBSD_OS_FALSE=
4561 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4567 HAVE_BSDI_OS_FALSE='#'
4569 HAVE_BSDI_OS_TRUE='#'
4572 cat >>confdefs.h <<\_ACEOF
4573 #define HAVE_BSDI_OS 1
4581 HAVE_BSDI_OS_FALSE='#'
4583 HAVE_BSDI_OS_TRUE='#'
4588 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4594 HAVE_SGI_OS_FALSE='#'
4596 HAVE_SGI_OS_TRUE='#'
4599 cat >>confdefs.h <<\_ACEOF
4600 #define HAVE_SGI_OS 1
4608 HAVE_SGI_OS_FALSE='#'
4610 HAVE_SGI_OS_TRUE='#'
4615 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4621 HAVE_IRIX_OS_FALSE='#'
4623 HAVE_IRIX_OS_TRUE='#'
4626 cat >>confdefs.h <<\_ACEOF
4627 #define HAVE_IRIX_OS 1
4635 HAVE_IRIX_OS_FALSE='#'
4637 HAVE_IRIX_OS_TRUE='#'
4642 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4647 HAVE_DARWIN_OS_TRUE=
4648 HAVE_DARWIN_OS_FALSE='#'
4650 HAVE_DARWIN_OS_TRUE='#'
4651 HAVE_DARWIN_OS_FALSE=
4653 cat >>confdefs.h <<\_ACEOF
4654 #define HAVE_DARWIN_OS 1
4661 HAVE_DARWIN_OS_TRUE=
4662 HAVE_DARWIN_OS_FALSE='#'
4664 HAVE_DARWIN_OS_TRUE='#'
4665 HAVE_DARWIN_OS_FALSE=
4670 # -----------------------------------------------------------
4671 # ----------------------------------------------------------
4672 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4673 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4674 if test "x$DISTNAME" != "x"
4676 echo "distname set to $DISTNAME"
4677 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4680 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4683 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4686 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4689 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4692 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4695 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4698 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4701 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4704 elif test -f /etc/SuSE-release
4707 elif test -d /etc/SuSEconfig
4710 elif test -f /etc/mandrake-release
4713 elif test -f /etc/whitebox-release
4716 elif test -f /etc/redhat-release
4719 elif test -f /etc/gentoo-release
4722 elif test -f /etc/debian_version
4725 elif test -f /etc/slackware-version
4728 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4731 elif test -f /etc/engarde-version
4734 elif test "$CYGWIN" = yes
4737 cat >>confdefs.h <<\_ACEOF
4738 #define HAVE_CYGWIN 1
4744 echo "$as_me:$LINENO: result: done" >&5
4745 echo "${ECHO_T}done" >&6
4748 # -----------------------------------------------------------
4749 # ----------------------------------------------------------
4754 INSIDE_GNOME_COMMON_TRUE=
4755 INSIDE_GNOME_COMMON_FALSE='#'
4757 INSIDE_GNOME_COMMON_TRUE='#'
4758 INSIDE_GNOME_COMMON_FALSE=
4761 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4763 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4766 # ------------------------------------------------------------------
4767 # If the user has not set --prefix, we set our default to nothing.
4768 # In this case, if the user has not set --sysconfdir, we set it
4769 # to the package default of /etc/bacula. If either --prefix or
4770 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4771 # ------------------------------------------------------------------
4772 if test x${prefix} = xNONE ; then
4773 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4774 sysconfdir=/etc/bacula
4778 sysconfdir=`eval echo ${sysconfdir}`
4780 # -------------------------------------------------------------------------
4781 # If the user has not set --exec-prefix, we default to ${prefix}
4782 # -------------------------------------------------------------------------
4783 if test x${exec_prefix} = xNONE ; then
4784 exec_prefix=${prefix}
4787 # ------------------------------------------------------------------
4788 # If the user has not set --sbindir, we set our default as /sbin
4789 # ------------------------------------------------------------------
4790 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4791 sbindir=${exec_prefix}/sbin
4793 sbindir=`eval echo ${sbindir}`
4795 # -------------------------------------------------------------------------
4796 # If the user has not set --mandir, we default to /usr/share/man
4797 # -------------------------------------------------------------------------
4798 if test x$mandir = x'${prefix}/man' ; then
4799 mandir=/usr/share/man
4803 # ------------------------------------------------------------------
4804 # All list of languages for which a translation exist. Each
4805 # language is separated by a space.
4806 # ------------------------------------------------------------------
4809 for ac_prog in msgfmt
4811 # Extract the first word of "$ac_prog", so it can be a program name with args.
4812 set dummy $ac_prog; ac_word=$2
4813 echo "$as_me:$LINENO: checking for $ac_word" >&5
4814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4815 if test "${ac_cv_path_MSGFMT+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4820 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 test -z "$as_dir" && as_dir=.
4828 for ac_exec_ext in '' $ac_executable_extensions; do
4829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4830 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4840 MSGFMT=$ac_cv_path_MSGFMT
4842 if test -n "$MSGFMT"; then
4843 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4844 echo "${ECHO_T}$MSGFMT" >&6
4846 echo "$as_me:$LINENO: result: no" >&5
4847 echo "${ECHO_T}no" >&6
4850 test -n "$MSGFMT" && break
4852 test -n "$MSGFMT" || MSGFMT="no"
4854 if test "$MSGFMT" = "no"
4856 echo 'msgfmt program not found, disabling NLS !'
4858 USE_INCLUDED_LIBINTL=no
4867 support_postgresql=no
4868 support_smartalloc=yes
4869 support_readline=yes
4872 support_wx_console=no
4876 support_static_tools=no
4877 support_static_fd=no
4878 support_static_sd=no
4879 support_static_dir=no
4880 support_static_cons=no
4882 build_client_only=no
4888 # -------------------------------------------
4889 # gnome (default off)
4890 # -------------------------------------------
4891 # Check whether --enable-gnome or --disable-gnome was given.
4892 if test "${enable_gnome+set}" = set; then
4893 enableval="$enable_gnome"
4894 if test x$enableval = xyes; then
4900 if test x$support_gnome = xyes; then
4901 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4903 if test $pkg = 0; then
4904 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4905 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4906 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4907 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4912 GNOME_DIR=src/gnome2-console
4913 gnome_version="Version 2.x"
4915 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
4916 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
4917 { (exit 1); exit 1; }; }
4923 # -------------------------------------------
4924 # wx-console (default off)
4925 # -------------------------------------------
4926 # Check whether --enable-wx-console or --disable-wx-console was given.
4927 if test "${enable_wx_console+set}" = set; then
4928 enableval="$enable_wx_console"
4929 if test x$enableval = xyes; then
4930 support_wx_console=yes
4935 if test x$support_wx_console = xyes; then
4936 abc=`$WXCONFIG $WXFLAGS --cppflags`
4938 if test $pkg = 0; then
4939 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
4940 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
4941 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
4945 WX_DIR=src/wx-console
4948 echo "wx-config program not found. wx-console disabled."
4950 support_wx_console=no
4956 # -------------------------------------------
4957 # tray-monitor (default off)
4958 # -------------------------------------------
4959 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4960 if test "${enable_tray_monitor+set}" = set; then
4961 enableval="$enable_tray_monitor"
4962 if test x$enableval = xyes; then
4963 support_tray_monitor=yes
4968 if test x$support_tray_monitor = xyes; then
4969 abc=`$PKGCONFIG --exists gtk+-2.0`
4971 if test $pkg = 0; then
4972 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4973 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4976 TRAY_MONITOR_DIR=src/tray-monitor
4977 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4979 if test $pkg = 0; then
4980 cat >>confdefs.h <<\_ACEOF
4981 #define HAVE_GTK_2_4 1
4989 # -------------------------------------------
4990 # smartalloc (default off)
4991 # -------------------------------------------
4992 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4993 if test "${enable_smartalloc+set}" = set; then
4994 enableval="$enable_smartalloc"
4995 if test x$enableval = xno; then
4996 support_smartalloc=no
5000 if test x$support_smartalloc = xyes; then
5001 cat >>confdefs.h <<\_ACEOF
5002 #define SMARTALLOC 1
5007 # -------------------------------------------
5008 # static-tools (default off)
5009 # -------------------------------------------
5010 # Check whether --enable-static-tools or --disable-static-tools was given.
5011 if test "${enable_static_tools+set}" = set; then
5012 enableval="$enable_static_tools"
5013 if test x$enableval = xyes; then
5014 support_static_tools=yes
5019 if test x$support_static_tools = xyes; then
5020 TTOOL_LDFLAGS="-static"
5024 # -------------------------------------------
5025 # static-fd (default off)
5026 # -------------------------------------------
5027 # Check whether --enable-static-fd or --disable-static-fd was given.
5028 if test "${enable_static_fd+set}" = set; then
5029 enableval="$enable_static_fd"
5030 if test x$enableval = xyes; then
5031 support_static_fd=yes
5036 if test x$support_static_fd = xyes; then
5037 STATIC_FD="static-bacula-fd"
5041 # -------------------------------------------
5042 # static-sd (default off)
5043 # -------------------------------------------
5044 # Check whether --enable-static-sd or --disable-static-sd was given.
5045 if test "${enable_static_sd+set}" = set; then
5046 enableval="$enable_static_sd"
5047 if test x$enableval = xyes; then
5048 support_static_sd=yes
5053 if test x$support_static_sd = xyes; then
5054 STATIC_SD="static-bacula-sd"
5058 # -------------------------------------------
5059 # static-dir (default off)
5060 # -------------------------------------------
5061 # Check whether --enable-static-dir or --disable-static-dir was given.
5062 if test "${enable_static_dir+set}" = set; then
5063 enableval="$enable_static_dir"
5064 if test x$enableval = xyes; then
5065 support_static_dir=yes
5070 if test x$support_static_dir = xyes; then
5071 STATIC_DIR="static-bacula-dir"
5075 # -------------------------------------------
5076 # static-cons (default off)
5077 # -------------------------------------------
5078 # Check whether --enable-static-cons or --disable-static-cons was given.
5079 if test "${enable_static_cons+set}" = set; then
5080 enableval="$enable_static_cons"
5081 if test x$enableval = xyes; then
5082 support_static_cons=yes
5089 if test x$support_static_cons = xyes; then
5090 STATIC_CONS="static-bconsole"
5091 STATIC_GNOME_CONS="static-gnome-console"
5092 STATIC_WX_CONS="static-wx-console"
5098 # -------------------------------------------
5099 # client_only (default off)
5100 # -------------------------------------------
5101 # Check whether --enable-client-only or --disable-client-only was given.
5102 if test "${enable_client_only+set}" = set; then
5103 enableval="$enable_client_only"
5104 if test x$enableval = xyes; then
5105 build_client_only=yes
5110 if test x$build_client_only = xno; then
5117 # ---------------------------------------------------
5118 # Check for conio (Bacula readline substitute)(
5119 # ---------------------------------------------------
5120 # this allows you to turn it completely off
5121 # Check whether --enable-conio or --disable-conio was given.
5122 if test "${enable_conio+set}" = set; then
5123 enableval="$enable_conio"
5124 if test x$enableval = xno; then
5130 if test x$support_conio = xyes; then
5131 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5132 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5133 if test "${ac_cv_header_stdc+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 cat >conftest.$ac_ext <<_ACEOF
5139 cat confdefs.h >>conftest.$ac_ext
5140 cat >>conftest.$ac_ext <<_ACEOF
5141 /* end confdefs.h. */
5155 rm -f conftest.$ac_objext
5156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5157 (eval $ac_compile) 2>conftest.er1
5159 grep -v '^ *+' conftest.er1 >conftest.err
5161 cat conftest.err >&5
5162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163 (exit $ac_status); } &&
5164 { ac_try='test -z "$ac_c_werror_flag"
5165 || test ! -s conftest.err'
5166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; } &&
5171 { ac_try='test -s conftest.$ac_objext'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; }; then
5177 ac_cv_header_stdc=yes
5179 echo "$as_me: failed program was:" >&5
5180 sed 's/^/| /' conftest.$ac_ext >&5
5182 ac_cv_header_stdc=no
5184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5186 if test $ac_cv_header_stdc = yes; then
5187 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5188 cat >conftest.$ac_ext <<_ACEOF
5191 cat confdefs.h >>conftest.$ac_ext
5192 cat >>conftest.$ac_ext <<_ACEOF
5193 /* end confdefs.h. */
5197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5198 $EGREP "memchr" >/dev/null 2>&1; then
5201 ac_cv_header_stdc=no
5207 if test $ac_cv_header_stdc = yes; then
5208 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5209 cat >conftest.$ac_ext <<_ACEOF
5212 cat confdefs.h >>conftest.$ac_ext
5213 cat >>conftest.$ac_ext <<_ACEOF
5214 /* end confdefs.h. */
5218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5219 $EGREP "free" >/dev/null 2>&1; then
5222 ac_cv_header_stdc=no
5228 if test $ac_cv_header_stdc = yes; then
5229 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5230 if test "$cross_compiling" = yes; then
5233 cat >conftest.$ac_ext <<_ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5240 #if ((' ' & 0x0FF) == 0x020)
5241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5244 # define ISLOWER(c) \
5245 (('a' <= (c) && (c) <= 'i') \
5246 || ('j' <= (c) && (c) <= 'r') \
5247 || ('s' <= (c) && (c) <= 'z'))
5248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5256 for (i = 0; i < 256; i++)
5257 if (XOR (islower (i), ISLOWER (i))
5258 || toupper (i) != TOUPPER (i))
5263 rm -f conftest$ac_exeext
5264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5265 (eval $ac_link) 2>&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }; }; then
5276 echo "$as_me: program exited with status $ac_status" >&5
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5281 ac_cv_header_stdc=no
5283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5287 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5288 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5289 if test $ac_cv_header_stdc = yes; then
5291 cat >>confdefs.h <<\_ACEOF
5292 #define STDC_HEADERS 1
5297 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5308 inttypes.h stdint.h unistd.h
5310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5311 echo "$as_me:$LINENO: checking for $ac_header" >&5
5312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5316 cat >conftest.$ac_ext <<_ACEOF
5319 cat confdefs.h >>conftest.$ac_ext
5320 cat >>conftest.$ac_ext <<_ACEOF
5321 /* end confdefs.h. */
5322 $ac_includes_default
5324 #include <$ac_header>
5326 rm -f conftest.$ac_objext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5328 (eval $ac_compile) 2>conftest.er1
5330 grep -v '^ *+' conftest.er1 >conftest.err
5332 cat conftest.err >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); } &&
5335 { ac_try='test -z "$ac_c_werror_flag"
5336 || test ! -s conftest.err'
5337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); }; } &&
5342 { ac_try='test -s conftest.$ac_objext'
5343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5347 (exit $ac_status); }; }; then
5348 eval "$as_ac_Header=yes"
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 eval "$as_ac_Header=no"
5355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5360 cat >>confdefs.h <<_ACEOF
5361 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5369 if test "${ac_cv_header_termcap_h+set}" = set; then
5370 echo "$as_me:$LINENO: checking for termcap.h" >&5
5371 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5372 if test "${ac_cv_header_termcap_h+set}" = set; then
5373 echo $ECHO_N "(cached) $ECHO_C" >&6
5375 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5376 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5378 # Is the header compilable?
5379 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5380 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5381 cat >conftest.$ac_ext <<_ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5387 $ac_includes_default
5388 #include <termcap.h>
5390 rm -f conftest.$ac_objext
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392 (eval $ac_compile) 2>conftest.er1
5394 grep -v '^ *+' conftest.er1 >conftest.err
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398 (exit $ac_status); } &&
5399 { ac_try='test -z "$ac_c_werror_flag"
5400 || test ! -s conftest.err'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; } &&
5406 { ac_try='test -s conftest.$ac_objext'
5407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; }; then
5412 ac_header_compiler=yes
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.$ac_ext >&5
5417 ac_header_compiler=no
5419 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5420 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5421 echo "${ECHO_T}$ac_header_compiler" >&6
5423 # Is the header present?
5424 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5425 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5426 cat >conftest.$ac_ext <<_ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h. */
5432 #include <termcap.h>
5434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5437 grep -v '^ *+' conftest.er1 >conftest.err
5439 cat conftest.err >&5
5440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441 (exit $ac_status); } >/dev/null; then
5442 if test -s conftest.err; then
5443 ac_cpp_err=$ac_c_preproc_warn_flag
5444 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5451 if test -z "$ac_cpp_err"; then
5452 ac_header_preproc=yes
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5457 ac_header_preproc=no
5459 rm -f conftest.err conftest.$ac_ext
5460 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5461 echo "${ECHO_T}$ac_header_preproc" >&6
5463 # So? What about this header?
5464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5466 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5467 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5468 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5469 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5470 ac_header_preproc=yes
5473 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5474 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5475 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5476 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5477 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5478 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5479 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
5480 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
5481 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5482 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5483 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5484 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5487 ## ------------------------------------------ ##
5488 ## Report this to the AC_PACKAGE_NAME lists. ##
5489 ## ------------------------------------------ ##
5492 sed "s/^/$as_me: WARNING: /" >&2
5495 echo "$as_me:$LINENO: checking for termcap.h" >&5
5496 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5497 if test "${ac_cv_header_termcap_h+set}" = set; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 ac_cv_header_termcap_h=$ac_header_preproc
5502 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5503 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5506 if test $ac_cv_header_termcap_h = yes; then
5507 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5508 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5509 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5510 echo $ECHO_N "(cached) $ECHO_C" >&6
5512 ac_check_lib_save_LIBS=$LIBS
5513 LIBS="-ltermcap $LIBS"
5514 cat >conftest.$ac_ext <<_ACEOF
5517 cat confdefs.h >>conftest.$ac_ext
5518 cat >>conftest.$ac_ext <<_ACEOF
5519 /* end confdefs.h. */
5521 /* Override any gcc2 internal prototype to avoid an error. */
5525 /* We use char because int might match the return type of a gcc2
5526 builtin and then its argument prototype would still apply. */
5536 rm -f conftest.$ac_objext conftest$ac_exeext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5538 (eval $ac_link) 2>conftest.er1
5540 grep -v '^ *+' conftest.er1 >conftest.err
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } &&
5545 { ac_try='test -z "$ac_c_werror_flag"
5546 || test ! -s conftest.err'
5547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); }; } &&
5552 { ac_try='test -s conftest$ac_exeext'
5553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }; }; then
5558 ac_cv_lib_termcap_tgetent=yes
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5563 ac_cv_lib_termcap_tgetent=no
5565 rm -f conftest.err conftest.$ac_objext \
5566 conftest$ac_exeext conftest.$ac_ext
5567 LIBS=$ac_check_lib_save_LIBS
5569 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5570 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5571 if test $ac_cv_lib_termcap_tgetent = yes; then
5572 CONS_LIBS="-ltermcap"
5578 cat >>confdefs.h <<\_ACEOF
5579 #define HAVE_CONIO 1
5584 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5585 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5586 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 ac_check_lib_save_LIBS=$LIBS
5590 LIBS="-lncurses $LIBS"
5591 cat >conftest.$ac_ext <<_ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5598 /* Override any gcc2 internal prototype to avoid an error. */
5602 /* We use char because int might match the return type of a gcc2
5603 builtin and then its argument prototype would still apply. */
5613 rm -f conftest.$ac_objext conftest$ac_exeext
5614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5615 (eval $ac_link) 2>conftest.er1
5617 grep -v '^ *+' conftest.er1 >conftest.err
5619 cat conftest.err >&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); } &&
5622 { ac_try='test -z "$ac_c_werror_flag"
5623 || test ! -s conftest.err'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; } &&
5629 { ac_try='test -s conftest$ac_exeext'
5630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }; }; then
5635 ac_cv_lib_ncurses_tgetent=yes
5637 echo "$as_me: failed program was:" >&5
5638 sed 's/^/| /' conftest.$ac_ext >&5
5640 ac_cv_lib_ncurses_tgetent=no
5642 rm -f conftest.err conftest.$ac_objext \
5643 conftest$ac_exeext conftest.$ac_ext
5644 LIBS=$ac_check_lib_save_LIBS
5646 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5647 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5648 if test $ac_cv_lib_ncurses_tgetent = yes; then
5649 CONS_LIBS="-lncurses"
5655 cat >>confdefs.h <<\_ACEOF
5656 #define HAVE_CONIO 1
5669 for ac_header in curses.h
5671 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5672 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5673 echo "$as_me:$LINENO: checking for $ac_header" >&5
5674 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5675 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5678 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5679 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5681 # Is the header compilable?
5682 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5683 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5684 cat >conftest.$ac_ext <<_ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5690 $ac_includes_default
5691 #include <$ac_header>
5693 rm -f conftest.$ac_objext
5694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5695 (eval $ac_compile) 2>conftest.er1
5697 grep -v '^ *+' conftest.er1 >conftest.err
5699 cat conftest.err >&5
5700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } &&
5702 { ac_try='test -z "$ac_c_werror_flag"
5703 || test ! -s conftest.err'
5704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); }; } &&
5709 { ac_try='test -s conftest.$ac_objext'
5710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); }; }; then
5715 ac_header_compiler=yes
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5720 ac_header_compiler=no
5722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5724 echo "${ECHO_T}$ac_header_compiler" >&6
5726 # Is the header present?
5727 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5729 cat >conftest.$ac_ext <<_ACEOF
5732 cat confdefs.h >>conftest.$ac_ext
5733 cat >>conftest.$ac_ext <<_ACEOF
5734 /* end confdefs.h. */
5735 #include <$ac_header>
5737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5740 grep -v '^ *+' conftest.er1 >conftest.err
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } >/dev/null; then
5745 if test -s conftest.err; then
5746 ac_cpp_err=$ac_c_preproc_warn_flag
5747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5754 if test -z "$ac_cpp_err"; then
5755 ac_header_preproc=yes
5757 echo "$as_me: failed program was:" >&5
5758 sed 's/^/| /' conftest.$ac_ext >&5
5760 ac_header_preproc=no
5762 rm -f conftest.err conftest.$ac_ext
5763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5764 echo "${ECHO_T}$ac_header_preproc" >&6
5766 # So? What about this header?
5767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5773 ac_header_preproc=yes
5776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5783 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5790 ## ------------------------------------------ ##
5791 ## Report this to the AC_PACKAGE_NAME lists. ##
5792 ## ------------------------------------------ ##
5795 sed "s/^/$as_me: WARNING: /" >&2
5798 echo "$as_me:$LINENO: checking for $ac_header" >&5
5799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 eval "$as_ac_Header=\$ac_header_preproc"
5805 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5806 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5810 cat >>confdefs.h <<_ACEOF
5811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5818 echo "$as_me:$LINENO: checking for term.h" >&5
5819 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5820 if test "${ac_cv_header_term_h+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 cat >conftest.$ac_ext <<_ACEOF
5826 cat confdefs.h >>conftest.$ac_ext
5827 cat >>conftest.$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5836 rm -f conftest.$ac_objext
5837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838 (eval $ac_compile) 2>conftest.er1
5840 grep -v '^ *+' conftest.er1 >conftest.err
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -z "$ac_c_werror_flag"
5846 || test ! -s conftest.err'
5847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; } &&
5852 { ac_try='test -s conftest.$ac_objext'
5853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); }; }; then
5858 ac_cv_header_term_h=yes
5860 echo "$as_me: failed program was:" >&5
5861 sed 's/^/| /' conftest.$ac_ext >&5
5863 ac_cv_header_term_h=no
5865 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5867 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5868 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5869 if test $ac_cv_header_term_h = yes; then
5870 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5871 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5872 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5873 echo $ECHO_N "(cached) $ECHO_C" >&6
5875 ac_check_lib_save_LIBS=$LIBS
5876 LIBS="-lcurses $LIBS"
5877 cat >conftest.$ac_ext <<_ACEOF
5880 cat confdefs.h >>conftest.$ac_ext
5881 cat >>conftest.$ac_ext <<_ACEOF
5882 /* end confdefs.h. */
5884 /* Override any gcc2 internal prototype to avoid an error. */
5888 /* We use char because int might match the return type of a gcc2
5889 builtin and then its argument prototype would still apply. */
5899 rm -f conftest.$ac_objext conftest$ac_exeext
5900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5901 (eval $ac_link) 2>conftest.er1
5903 grep -v '^ *+' conftest.er1 >conftest.err
5905 cat conftest.err >&5
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } &&
5908 { ac_try='test -z "$ac_c_werror_flag"
5909 || test ! -s conftest.err'
5910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); }; } &&
5915 { ac_try='test -s conftest$ac_exeext'
5916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5920 (exit $ac_status); }; }; then
5921 ac_cv_lib_curses_tgetent=yes
5923 echo "$as_me: failed program was:" >&5
5924 sed 's/^/| /' conftest.$ac_ext >&5
5926 ac_cv_lib_curses_tgetent=no
5928 rm -f conftest.err conftest.$ac_objext \
5929 conftest$ac_exeext conftest.$ac_ext
5930 LIBS=$ac_check_lib_save_LIBS
5932 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5933 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5934 if test $ac_cv_lib_curses_tgetent = yes; then
5935 CONS_LIBS="-lcurses"
5941 cat >>confdefs.h <<\_ACEOF
5942 #define HAVE_CONIO 1
5950 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5961 # ---------------------------------------------------
5962 # Check for readline support/directory (default off)
5963 # ---------------------------------------------------
5964 # this allows you to turn it completely off
5965 # Check whether --enable-readline or --disable-readline was given.
5966 if test "${enable_readline+set}" = set; then
5967 enableval="$enable_readline"
5968 if test x$enableval = xno; then
5975 if test x$support_readline = xyes; then
5977 # Check whether --with-readline or --without-readline was given.
5978 if test "${with_readline+set}" = set; then
5979 withval="$with_readline"
5981 case "$with_readline" in
5984 if test -f ${with_readline}/readline.h; then
5985 CONS_INC="-I${with_readline}"
5986 CONS_LDFLAGS="-L$with_readline"
5987 elif test -f ${with_readline}/include/readline/readline.h; then
5988 CONS_INC="-I${with_readline}/include/readline"
5989 CONS_LDFLAGS="-L${with_readline}/lib"
5990 with_readline="${with_readline}/include/readline"
5992 with_readline="/usr/include/readline"
5994 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5996 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5997 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5999 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6002 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6004 # Is the header compilable?
6005 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6006 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6007 cat >conftest.$ac_ext <<_ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6013 $ac_includes_default
6014 #include <${with_readline}/readline.h>
6016 rm -f conftest.$ac_objext
6017 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6018 (eval $ac_compile) 2>conftest.er1
6020 grep -v '^ *+' conftest.er1 >conftest.err
6022 cat conftest.err >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); } &&
6025 { ac_try='test -z "$ac_c_werror_flag"
6026 || test ! -s conftest.err'
6027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); }; } &&
6032 { ac_try='test -s conftest.$ac_objext'
6033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; }; then
6038 ac_header_compiler=yes
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6043 ac_header_compiler=no
6045 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6046 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6047 echo "${ECHO_T}$ac_header_compiler" >&6
6049 # Is the header present?
6050 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6051 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6052 cat >conftest.$ac_ext <<_ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6058 #include <${with_readline}/readline.h>
6060 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6063 grep -v '^ *+' conftest.er1 >conftest.err
6065 cat conftest.err >&5
6066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067 (exit $ac_status); } >/dev/null; then
6068 if test -s conftest.err; then
6069 ac_cpp_err=$ac_c_preproc_warn_flag
6070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6077 if test -z "$ac_cpp_err"; then
6078 ac_header_preproc=yes
6080 echo "$as_me: failed program was:" >&5
6081 sed 's/^/| /' conftest.$ac_ext >&5
6083 ac_header_preproc=no
6085 rm -f conftest.err conftest.$ac_ext
6086 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6087 echo "${ECHO_T}$ac_header_preproc" >&6
6089 # So? What about this header?
6090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6092 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6093 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6094 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6095 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6096 ac_header_preproc=yes
6099 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6100 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6101 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
6102 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
6103 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6104 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6105 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6106 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6107 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6108 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6109 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6110 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6113 ## ------------------------------------------ ##
6114 ## Report this to the AC_PACKAGE_NAME lists. ##
6115 ## ------------------------------------------ ##
6118 sed "s/^/$as_me: WARNING: /" >&2
6121 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6122 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6126 eval "$as_ac_Header=\$ac_header_preproc"
6128 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6129 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6132 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6133 cat >>confdefs.h <<\_ACEOF
6134 #define HAVE_READLINE 1
6137 CONS_LIBS="-lreadline -lhistory -ltermcap"
6142 echo "readline.h not found. readline turned off ..."
6154 # check for standard readline library
6155 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6156 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6157 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6158 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6161 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6162 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6164 # Is the header compilable?
6165 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6166 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6167 cat >conftest.$ac_ext <<_ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6173 $ac_includes_default
6174 #include </usr/include/readline/readline.h>
6176 rm -f conftest.$ac_objext
6177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6178 (eval $ac_compile) 2>conftest.er1
6180 grep -v '^ *+' conftest.er1 >conftest.err
6182 cat conftest.err >&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); } &&
6185 { ac_try='test -z "$ac_c_werror_flag"
6186 || test ! -s conftest.err'
6187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); }; } &&
6192 { ac_try='test -s conftest.$ac_objext'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 ac_header_compiler=yes
6200 echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6203 ac_header_compiler=no
6205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6206 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6207 echo "${ECHO_T}$ac_header_compiler" >&6
6209 # Is the header present?
6210 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6211 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6212 cat >conftest.$ac_ext <<_ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 #include </usr/include/readline/readline.h>
6220 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6221 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6223 grep -v '^ *+' conftest.er1 >conftest.err
6225 cat conftest.err >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } >/dev/null; then
6228 if test -s conftest.err; then
6229 ac_cpp_err=$ac_c_preproc_warn_flag
6230 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6237 if test -z "$ac_cpp_err"; then
6238 ac_header_preproc=yes
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6243 ac_header_preproc=no
6245 rm -f conftest.err conftest.$ac_ext
6246 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6247 echo "${ECHO_T}$ac_header_preproc" >&6
6249 # So? What about this header?
6250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6252 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6253 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6254 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6255 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6256 ac_header_preproc=yes
6259 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6260 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6261 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6262 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6263 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6264 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6265 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6266 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6267 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6268 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6269 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6270 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6273 ## ------------------------------------------ ##
6274 ## Report this to the AC_PACKAGE_NAME lists. ##
6275 ## ------------------------------------------ ##
6278 sed "s/^/$as_me: WARNING: /" >&2
6281 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6282 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6283 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6286 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6288 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6289 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6292 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6293 cat >>confdefs.h <<\_ACEOF
6294 #define HAVE_READLINE 1
6298 CONS_INC="-I/usr/include/readline"
6299 CONS_LIBS="-lreadline -ltermcap"
6303 # Did not find standard library, so try Bacula's default
6304 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6305 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6306 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6307 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6308 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6309 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6312 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6314 # Is the header compilable?
6315 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6316 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6317 cat >conftest.$ac_ext <<_ACEOF
6320 cat confdefs.h >>conftest.$ac_ext
6321 cat >>conftest.$ac_ext <<_ACEOF
6322 /* end confdefs.h. */
6323 $ac_includes_default
6324 #include <${TOP_DIR}/depkgs/readline/readline.h>
6326 rm -f conftest.$ac_objext
6327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6328 (eval $ac_compile) 2>conftest.er1
6330 grep -v '^ *+' conftest.er1 >conftest.err
6332 cat conftest.err >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } &&
6335 { ac_try='test -z "$ac_c_werror_flag"
6336 || test ! -s conftest.err'
6337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; } &&
6342 { ac_try='test -s conftest.$ac_objext'
6343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }; }; then
6348 ac_header_compiler=yes
6350 echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.$ac_ext >&5
6353 ac_header_compiler=no
6355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6356 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6357 echo "${ECHO_T}$ac_header_compiler" >&6
6359 # Is the header present?
6360 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6361 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6362 cat >conftest.$ac_ext <<_ACEOF
6365 cat confdefs.h >>conftest.$ac_ext
6366 cat >>conftest.$ac_ext <<_ACEOF
6367 /* end confdefs.h. */
6368 #include <${TOP_DIR}/depkgs/readline/readline.h>
6370 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6371 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6373 grep -v '^ *+' conftest.er1 >conftest.err
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } >/dev/null; then
6378 if test -s conftest.err; then
6379 ac_cpp_err=$ac_c_preproc_warn_flag
6380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6387 if test -z "$ac_cpp_err"; then
6388 ac_header_preproc=yes
6390 echo "$as_me: failed program was:" >&5
6391 sed 's/^/| /' conftest.$ac_ext >&5
6393 ac_header_preproc=no
6395 rm -f conftest.err conftest.$ac_ext
6396 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6397 echo "${ECHO_T}$ac_header_preproc" >&6
6399 # So? What about this header?
6400 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6402 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6403 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6404 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6405 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6406 ac_header_preproc=yes
6409 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6410 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6411 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6412 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6413 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6414 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6415 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6416 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6417 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6418 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6419 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6420 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6423 ## ------------------------------------------ ##
6424 ## Report this to the AC_PACKAGE_NAME lists. ##
6425 ## ------------------------------------------ ##
6428 sed "s/^/$as_me: WARNING: /" >&2
6431 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6432 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6433 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6434 echo $ECHO_N "(cached) $ECHO_C" >&6
6436 eval "$as_ac_Header=\$ac_header_preproc"
6438 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6439 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6443 cat >>confdefs.h <<\_ACEOF
6444 #define HAVE_READLINE 1
6448 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6449 CONS_LIBS="-lreadline -lhistory -ltermcap"
6450 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6451 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6455 echo "readline.h not found. readline turned off ..."
6481 # Minimal stuff for readline Makefile configuration
6484 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6485 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6486 if test "${ac_cv_header_stat_broken+set}" = set; then
6487 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 cat >conftest.$ac_ext <<_ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h. */
6495 #include <sys/types.h>
6496 #include <sys/stat.h>
6498 #if defined(S_ISBLK) && defined(S_IFDIR)
6499 # if S_ISBLK (S_IFDIR)
6504 #if defined(S_ISBLK) && defined(S_IFCHR)
6505 # if S_ISBLK (S_IFCHR)
6510 #if defined(S_ISLNK) && defined(S_IFREG)
6511 # if S_ISLNK (S_IFREG)
6516 #if defined(S_ISSOCK) && defined(S_IFREG)
6517 # if S_ISSOCK (S_IFREG)
6523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6524 $EGREP "You lose" >/dev/null 2>&1; then
6525 ac_cv_header_stat_broken=yes
6527 ac_cv_header_stat_broken=no
6532 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6533 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6534 if test $ac_cv_header_stat_broken = yes; then
6536 cat >>confdefs.h <<\_ACEOF
6537 #define STAT_MACROS_BROKEN 1
6548 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6549 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6550 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6551 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6552 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6555 cat >conftest.$ac_ext <<_ACEOF
6558 cat confdefs.h >>conftest.$ac_ext
6559 cat >>conftest.$ac_ext <<_ACEOF
6560 /* end confdefs.h. */
6561 #include <sys/types.h>
6573 rm -f conftest.$ac_objext
6574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6575 (eval $ac_compile) 2>conftest.er1
6577 grep -v '^ *+' conftest.er1 >conftest.err
6579 cat conftest.err >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } &&
6582 { ac_try='test -z "$ac_c_werror_flag"
6583 || test ! -s conftest.err'
6584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6588 (exit $ac_status); }; } &&
6589 { ac_try='test -s conftest.$ac_objext'
6590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); }; }; then
6595 eval "$as_ac_Header=yes"
6597 echo "$as_me: failed program was:" >&5
6598 sed 's/^/| /' conftest.$ac_ext >&5
6600 eval "$as_ac_Header=no"
6602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6607 cat >>confdefs.h <<_ACEOF
6608 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6611 ac_header_dirent=$ac_hdr; break
6615 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6616 if test $ac_header_dirent = dirent.h; then
6617 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6618 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6619 if test "${ac_cv_search_opendir+set}" = set; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 ac_func_search_save_LIBS=$LIBS
6623 ac_cv_search_opendir=no
6624 cat >conftest.$ac_ext <<_ACEOF
6627 cat confdefs.h >>conftest.$ac_ext
6628 cat >>conftest.$ac_ext <<_ACEOF
6629 /* end confdefs.h. */
6631 /* Override any gcc2 internal prototype to avoid an error. */
6635 /* We use char because int might match the return type of a gcc2
6636 builtin and then its argument prototype would still apply. */
6646 rm -f conftest.$ac_objext conftest$ac_exeext
6647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6648 (eval $ac_link) 2>conftest.er1
6650 grep -v '^ *+' conftest.er1 >conftest.err
6652 cat conftest.err >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } &&
6655 { ac_try='test -z "$ac_c_werror_flag"
6656 || test ! -s conftest.err'
6657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; } &&
6662 { ac_try='test -s conftest$ac_exeext'
6663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); }; }; then
6668 ac_cv_search_opendir="none required"
6670 echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6674 rm -f conftest.err conftest.$ac_objext \
6675 conftest$ac_exeext conftest.$ac_ext
6676 if test "$ac_cv_search_opendir" = no; then
6677 for ac_lib in dir; do
6678 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6679 cat >conftest.$ac_ext <<_ACEOF
6682 cat confdefs.h >>conftest.$ac_ext
6683 cat >>conftest.$ac_ext <<_ACEOF
6684 /* end confdefs.h. */
6686 /* Override any gcc2 internal prototype to avoid an error. */
6690 /* We use char because int might match the return type of a gcc2
6691 builtin and then its argument prototype would still apply. */
6701 rm -f conftest.$ac_objext conftest$ac_exeext
6702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6703 (eval $ac_link) 2>conftest.er1
6705 grep -v '^ *+' conftest.er1 >conftest.err
6707 cat conftest.err >&5
6708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6709 (exit $ac_status); } &&
6710 { ac_try='test -z "$ac_c_werror_flag"
6711 || test ! -s conftest.err'
6712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; } &&
6717 { ac_try='test -s conftest$ac_exeext'
6718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); }; }; then
6723 ac_cv_search_opendir="-l$ac_lib"
6726 echo "$as_me: failed program was:" >&5
6727 sed 's/^/| /' conftest.$ac_ext >&5
6730 rm -f conftest.err conftest.$ac_objext \
6731 conftest$ac_exeext conftest.$ac_ext
6734 LIBS=$ac_func_search_save_LIBS
6736 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6737 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6738 if test "$ac_cv_search_opendir" != no; then
6739 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6744 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6745 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6746 if test "${ac_cv_search_opendir+set}" = set; then
6747 echo $ECHO_N "(cached) $ECHO_C" >&6
6749 ac_func_search_save_LIBS=$LIBS
6750 ac_cv_search_opendir=no
6751 cat >conftest.$ac_ext <<_ACEOF
6754 cat confdefs.h >>conftest.$ac_ext
6755 cat >>conftest.$ac_ext <<_ACEOF
6756 /* end confdefs.h. */
6758 /* Override any gcc2 internal prototype to avoid an error. */
6762 /* We use char because int might match the return type of a gcc2
6763 builtin and then its argument prototype would still apply. */
6773 rm -f conftest.$ac_objext conftest$ac_exeext
6774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6775 (eval $ac_link) 2>conftest.er1
6777 grep -v '^ *+' conftest.er1 >conftest.err
6779 cat conftest.err >&5
6780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6781 (exit $ac_status); } &&
6782 { ac_try='test -z "$ac_c_werror_flag"
6783 || test ! -s conftest.err'
6784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6788 (exit $ac_status); }; } &&
6789 { ac_try='test -s conftest$ac_exeext'
6790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; }; then
6795 ac_cv_search_opendir="none required"
6797 echo "$as_me: failed program was:" >&5
6798 sed 's/^/| /' conftest.$ac_ext >&5
6801 rm -f conftest.err conftest.$ac_objext \
6802 conftest$ac_exeext conftest.$ac_ext
6803 if test "$ac_cv_search_opendir" = no; then
6805 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6806 cat >conftest.$ac_ext <<_ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6813 /* Override any gcc2 internal prototype to avoid an error. */
6817 /* We use char because int might match the return type of a gcc2
6818 builtin and then its argument prototype would still apply. */
6828 rm -f conftest.$ac_objext conftest$ac_exeext
6829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6830 (eval $ac_link) 2>conftest.er1
6832 grep -v '^ *+' conftest.er1 >conftest.err
6834 cat conftest.err >&5
6835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } &&
6837 { ac_try='test -z "$ac_c_werror_flag"
6838 || test ! -s conftest.err'
6839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); }; } &&
6844 { ac_try='test -s conftest$ac_exeext'
6845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6849 (exit $ac_status); }; }; then
6850 ac_cv_search_opendir="-l$ac_lib"
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.$ac_ext >&5
6857 rm -f conftest.err conftest.$ac_objext \
6858 conftest$ac_exeext conftest.$ac_ext
6861 LIBS=$ac_func_search_save_LIBS
6863 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6864 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6865 if test "$ac_cv_search_opendir" != no; then
6866 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6880 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6882 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6883 echo "$as_me:$LINENO: checking for $ac_func" >&5
6884 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6885 if eval "test \"\${$as_ac_var+set}\" = set"; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6888 cat >conftest.$ac_ext <<_ACEOF
6891 cat confdefs.h >>conftest.$ac_ext
6892 cat >>conftest.$ac_ext <<_ACEOF
6893 /* end confdefs.h. */
6894 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6896 #define $ac_func innocuous_$ac_func
6898 /* System header to define __stub macros and hopefully few prototypes,
6899 which can conflict with char $ac_func (); below.
6900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6901 <limits.h> exists even on freestanding compilers. */
6904 # include <limits.h>
6906 # include <assert.h>
6911 /* Override any gcc2 internal prototype to avoid an error. */
6916 /* We use char because int might match the return type of a gcc2
6917 builtin and then its argument prototype would still apply. */
6919 /* The GNU C library defines this for functions which it implements
6920 to always fail with ENOSYS. Some functions are actually named
6921 something starting with __ and the normal name is an alias. */
6922 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6925 char (*f) () = $ac_func;
6934 return f != $ac_func;
6939 rm -f conftest.$ac_objext conftest$ac_exeext
6940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6941 (eval $ac_link) 2>conftest.er1
6943 grep -v '^ *+' conftest.er1 >conftest.err
6945 cat conftest.err >&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } &&
6948 { ac_try='test -z "$ac_c_werror_flag"
6949 || test ! -s conftest.err'
6950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); }; } &&
6955 { ac_try='test -s conftest$ac_exeext'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; }; then
6961 eval "$as_ac_var=yes"
6963 echo "$as_me: failed program was:" >&5
6964 sed 's/^/| /' conftest.$ac_ext >&5
6966 eval "$as_ac_var=no"
6968 rm -f conftest.err conftest.$ac_objext \
6969 conftest$ac_exeext conftest.$ac_ext
6971 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6972 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6973 if test `eval echo '${'$as_ac_var'}'` = yes; then
6974 cat >>confdefs.h <<_ACEOF
6975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6983 for ac_func in nanosleep nl_langinfo
6985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6986 echo "$as_me:$LINENO: checking for $ac_func" >&5
6987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6988 if eval "test \"\${$as_ac_var+set}\" = set"; then
6989 echo $ECHO_N "(cached) $ECHO_C" >&6
6991 cat >conftest.$ac_ext <<_ACEOF
6994 cat confdefs.h >>conftest.$ac_ext
6995 cat >>conftest.$ac_ext <<_ACEOF
6996 /* end confdefs.h. */
6997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6999 #define $ac_func innocuous_$ac_func
7001 /* System header to define __stub macros and hopefully few prototypes,
7002 which can conflict with char $ac_func (); below.
7003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7004 <limits.h> exists even on freestanding compilers. */
7007 # include <limits.h>
7009 # include <assert.h>
7014 /* Override any gcc2 internal prototype to avoid an error. */
7019 /* We use char because int might match the return type of a gcc2
7020 builtin and then its argument prototype would still apply. */
7022 /* The GNU C library defines this for functions which it implements
7023 to always fail with ENOSYS. Some functions are actually named
7024 something starting with __ and the normal name is an alias. */
7025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7028 char (*f) () = $ac_func;
7037 return f != $ac_func;
7042 rm -f conftest.$ac_objext conftest$ac_exeext
7043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7044 (eval $ac_link) 2>conftest.er1
7046 grep -v '^ *+' conftest.er1 >conftest.err
7048 cat conftest.err >&5
7049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050 (exit $ac_status); } &&
7051 { ac_try='test -z "$ac_c_werror_flag"
7052 || test ! -s conftest.err'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; } &&
7058 { ac_try='test -s conftest$ac_exeext'
7059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); }; }; then
7064 eval "$as_ac_var=yes"
7066 echo "$as_me: failed program was:" >&5
7067 sed 's/^/| /' conftest.$ac_ext >&5
7069 eval "$as_ac_var=no"
7071 rm -f conftest.err conftest.$ac_objext \
7072 conftest$ac_exeext conftest.$ac_ext
7074 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7075 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7076 if test `eval echo '${'$as_ac_var'}'` = yes; then
7077 cat >>confdefs.h <<_ACEOF
7078 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7085 for ac_header in varargs.h
7087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7088 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7089 echo "$as_me:$LINENO: checking for $ac_header" >&5
7090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7091 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7095 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7097 # Is the header compilable?
7098 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7100 cat >conftest.$ac_ext <<_ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 $ac_includes_default
7107 #include <$ac_header>
7109 rm -f conftest.$ac_objext
7110 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7111 (eval $ac_compile) 2>conftest.er1
7113 grep -v '^ *+' conftest.er1 >conftest.err
7115 cat conftest.err >&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } &&
7118 { ac_try='test -z "$ac_c_werror_flag"
7119 || test ! -s conftest.err'
7120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); }; } &&
7125 { ac_try='test -s conftest.$ac_objext'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; }; then
7131 ac_header_compiler=yes
7133 echo "$as_me: failed program was:" >&5
7134 sed 's/^/| /' conftest.$ac_ext >&5
7136 ac_header_compiler=no
7138 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7139 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7140 echo "${ECHO_T}$ac_header_compiler" >&6
7142 # Is the header present?
7143 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7144 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7145 cat >conftest.$ac_ext <<_ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h. */
7151 #include <$ac_header>
7153 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7154 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7156 grep -v '^ *+' conftest.er1 >conftest.err
7158 cat conftest.err >&5
7159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7160 (exit $ac_status); } >/dev/null; then
7161 if test -s conftest.err; then
7162 ac_cpp_err=$ac_c_preproc_warn_flag
7163 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7170 if test -z "$ac_cpp_err"; then
7171 ac_header_preproc=yes
7173 echo "$as_me: failed program was:" >&5
7174 sed 's/^/| /' conftest.$ac_ext >&5
7176 ac_header_preproc=no
7178 rm -f conftest.err conftest.$ac_ext
7179 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7180 echo "${ECHO_T}$ac_header_preproc" >&6
7182 # So? What about this header?
7183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7189 ac_header_preproc=yes
7192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7195 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7199 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7206 ## ------------------------------------------ ##
7207 ## Report this to the AC_PACKAGE_NAME lists. ##
7208 ## ------------------------------------------ ##
7211 sed "s/^/$as_me: WARNING: /" >&2
7214 echo "$as_me:$LINENO: checking for $ac_header" >&5
7215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7216 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7217 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 eval "$as_ac_Header=\$ac_header_preproc"
7221 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7222 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7225 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7226 cat >>confdefs.h <<_ACEOF
7227 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7235 # End of readline/conio stuff
7236 # -----------------------------------------------------------------------
7238 # -----------------------------------------------------------------------
7239 # Check for Python support
7241 echo "$as_me:$LINENO: checking for Python support" >&5
7242 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7244 # Check whether --with-python or --without-python was given.
7245 if test "${with_python+set}" = set; then
7246 withval="$with_python"
7250 if test "$withval" != "no"; then
7251 if test "$withval" = "yes"; then
7252 for python_root in /usr /usr/local; do
7253 if test -f $python_root/include/python2.2/Python.h; then
7254 PYTHON_INCDIR=-I$python_root/include/python2.2
7255 PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
7257 elif test -f $python_root/include/python2.3/Python.h; then
7258 PYTHON_INCDIR=-I$python_root/include/python2.3
7259 PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
7261 elif test -f $python_root/include/python2.4/Python.h; then
7262 PYTHON_INCDIR=-I$python_root/include/python2.4
7263 PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
7267 if test x$PYTHON_INCDIR = x; then
7268 if test -f $prefix/include/Python.h; then
7269 PYTHON_INCDIR=-I$prefix/include
7270 PYTHON_LIBS="-L$prefix/lib/config -lpython"
7272 echo "$as_me:$LINENO: result: no" >&5
7273 echo "${ECHO_T}no" >&6
7274 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7275 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7276 { (exit 1); exit 1; }; }
7280 if test -f $withval/Python.h; then
7281 PYTHON_INCDIR=-I$withval
7282 PYTHON_LIBS="-L$withval/config -lpython"
7283 elif test -f $withval/include/Python.h; then
7284 PYTHON_INCDIR=-I$withval/include
7285 PYTHON_LIBS="-L$withval/lib/config -lpython"
7286 elif test -f $withval/include/python/Python.h; then
7287 PYTHON_INCDIR=-I$withval/include/python
7288 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
7290 echo "$as_me:$LINENO: result: no" >&5
7291 echo "${ECHO_T}no" >&6
7292 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7293 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7294 { (exit 1); exit 1; }; }
7297 cat >>confdefs.h <<\_ACEOF
7298 #define HAVE_PYTHON 1
7301 echo "$as_me:$LINENO: result: yes" >&5
7302 echo "${ECHO_T}yes" >&6
7304 { echo "$as_me:$LINENO: checking for more Python libs" >&5
7305 echo "$as_me: checking for more Python libs" >&6;}
7306 saved_LIBS="$LIBS"; LIBS=
7307 echo "$as_me:$LINENO: checking for library containing shm_open" >&5
7308 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
7309 if test "${ac_cv_search_shm_open+set}" = set; then
7310 echo $ECHO_N "(cached) $ECHO_C" >&6
7312 ac_func_search_save_LIBS=$LIBS
7313 ac_cv_search_shm_open=no
7314 cat >conftest.$ac_ext <<_ACEOF
7317 cat confdefs.h >>conftest.$ac_ext
7318 cat >>conftest.$ac_ext <<_ACEOF
7319 /* end confdefs.h. */
7321 /* Override any gcc2 internal prototype to avoid an error. */
7325 /* We use char because int might match the return type of a gcc2
7326 builtin and then its argument prototype would still apply. */
7336 rm -f conftest.$ac_objext conftest$ac_exeext
7337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7338 (eval $ac_link) 2>conftest.er1
7340 grep -v '^ *+' conftest.er1 >conftest.err
7342 cat conftest.err >&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); } &&
7345 { ac_try='test -z "$ac_c_werror_flag"
7346 || test ! -s conftest.err'
7347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; } &&
7352 { ac_try='test -s conftest$ac_exeext'
7353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); }; }; then
7358 ac_cv_search_shm_open="none required"
7360 echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7364 rm -f conftest.err conftest.$ac_objext \
7365 conftest$ac_exeext conftest.$ac_ext
7366 if test "$ac_cv_search_shm_open" = no; then
7367 for ac_lib in rt; do
7368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7369 cat >conftest.$ac_ext <<_ACEOF
7372 cat confdefs.h >>conftest.$ac_ext
7373 cat >>conftest.$ac_ext <<_ACEOF
7374 /* end confdefs.h. */
7376 /* Override any gcc2 internal prototype to avoid an error. */
7380 /* We use char because int might match the return type of a gcc2
7381 builtin and then its argument prototype would still apply. */
7391 rm -f conftest.$ac_objext conftest$ac_exeext
7392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7393 (eval $ac_link) 2>conftest.er1
7395 grep -v '^ *+' conftest.er1 >conftest.err
7397 cat conftest.err >&5
7398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7399 (exit $ac_status); } &&
7400 { ac_try='test -z "$ac_c_werror_flag"
7401 || test ! -s conftest.err'
7402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7406 (exit $ac_status); }; } &&
7407 { ac_try='test -s conftest$ac_exeext'
7408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); }; }; then
7413 ac_cv_search_shm_open="-l$ac_lib"
7416 echo "$as_me: failed program was:" >&5
7417 sed 's/^/| /' conftest.$ac_ext >&5
7420 rm -f conftest.err conftest.$ac_objext \
7421 conftest$ac_exeext conftest.$ac_ext
7424 LIBS=$ac_func_search_save_LIBS
7426 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
7427 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
7428 if test "$ac_cv_search_shm_open" != no; then
7429 test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
7434 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
7435 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
7436 if test "${ac_cv_lib_util_openpty+set}" = set; then
7437 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 ac_check_lib_save_LIBS=$LIBS
7441 cat >conftest.$ac_ext <<_ACEOF
7444 cat confdefs.h >>conftest.$ac_ext
7445 cat >>conftest.$ac_ext <<_ACEOF
7446 /* end confdefs.h. */
7448 /* Override any gcc2 internal prototype to avoid an error. */
7452 /* We use char because int might match the return type of a gcc2
7453 builtin and then its argument prototype would still apply. */
7463 rm -f conftest.$ac_objext conftest$ac_exeext
7464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7465 (eval $ac_link) 2>conftest.er1
7467 grep -v '^ *+' conftest.er1 >conftest.err
7469 cat conftest.err >&5
7470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7471 (exit $ac_status); } &&
7472 { ac_try='test -z "$ac_c_werror_flag"
7473 || test ! -s conftest.err'
7474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); }; } &&
7479 { ac_try='test -s conftest$ac_exeext'
7480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7484 (exit $ac_status); }; }; then
7485 ac_cv_lib_util_openpty=yes
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7490 ac_cv_lib_util_openpty=no
7492 rm -f conftest.err conftest.$ac_objext \
7493 conftest$ac_exeext conftest.$ac_ext
7494 LIBS=$ac_check_lib_save_LIBS
7496 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
7497 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
7498 if test $ac_cv_lib_util_openpty = yes; then
7499 cat >>confdefs.h <<_ACEOF
7500 #define HAVE_LIBUTIL 1
7507 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
7510 echo "$as_me:$LINENO: result: no" >&5
7511 echo "${ECHO_T}no" >&6
7516 echo "$as_me:$LINENO: result: no" >&5
7517 echo "${ECHO_T}no" >&6
7525 # Find where sockets are (especially for Solaris)
7526 # Do this before the TCP Wrappers test since tcp wrappers
7527 # uses the socket library and some linkers are stupid.
7529 echo "$as_me:$LINENO: checking for socket" >&5
7530 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7531 if test "${ac_cv_func_socket+set}" = set; then
7532 echo $ECHO_N "(cached) $ECHO_C" >&6
7534 cat >conftest.$ac_ext <<_ACEOF
7537 cat confdefs.h >>conftest.$ac_ext
7538 cat >>conftest.$ac_ext <<_ACEOF
7539 /* end confdefs.h. */
7540 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7542 #define socket innocuous_socket
7544 /* System header to define __stub macros and hopefully few prototypes,
7545 which can conflict with char socket (); below.
7546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7547 <limits.h> exists even on freestanding compilers. */
7550 # include <limits.h>
7552 # include <assert.h>
7557 /* Override any gcc2 internal prototype to avoid an error. */
7562 /* We use char because int might match the return type of a gcc2
7563 builtin and then its argument prototype would still apply. */
7565 /* The GNU C library defines this for functions which it implements
7566 to always fail with ENOSYS. Some functions are actually named
7567 something starting with __ and the normal name is an alias. */
7568 #if defined (__stub_socket) || defined (__stub___socket)
7571 char (*f) () = socket;
7585 rm -f conftest.$ac_objext conftest$ac_exeext
7586 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7587 (eval $ac_link) 2>conftest.er1
7589 grep -v '^ *+' conftest.er1 >conftest.err
7591 cat conftest.err >&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); } &&
7594 { ac_try='test -z "$ac_c_werror_flag"
7595 || test ! -s conftest.err'
7596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); }; } &&
7601 { ac_try='test -s conftest$ac_exeext'
7602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); }; }; then
7607 ac_cv_func_socket=yes
7609 echo "$as_me: failed program was:" >&5
7610 sed 's/^/| /' conftest.$ac_ext >&5
7612 ac_cv_func_socket=no
7614 rm -f conftest.err conftest.$ac_objext \
7615 conftest$ac_exeext conftest.$ac_ext
7617 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7618 echo "${ECHO_T}$ac_cv_func_socket" >&6
7619 if test $ac_cv_func_socket = yes; then
7620 echo "$as_me:$LINENO: result: using libc's socket" >&5
7621 echo "${ECHO_T}using libc's socket" >&6
7624 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7625 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7626 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7627 echo $ECHO_N "(cached) $ECHO_C" >&6
7629 ac_check_lib_save_LIBS=$LIBS
7631 cat >conftest.$ac_ext <<_ACEOF
7634 cat confdefs.h >>conftest.$ac_ext
7635 cat >>conftest.$ac_ext <<_ACEOF
7636 /* end confdefs.h. */
7638 /* Override any gcc2 internal prototype to avoid an error. */
7642 /* We use char because int might match the return type of a gcc2
7643 builtin and then its argument prototype would still apply. */
7653 rm -f conftest.$ac_objext conftest$ac_exeext
7654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7655 (eval $ac_link) 2>conftest.er1
7657 grep -v '^ *+' conftest.er1 >conftest.err
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } &&
7662 { ac_try='test -z "$ac_c_werror_flag"
7663 || test ! -s conftest.err'
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; } &&
7669 { ac_try='test -s conftest$ac_exeext'
7670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7674 (exit $ac_status); }; }; then
7675 ac_cv_lib_xnet_socket=yes
7677 echo "$as_me: failed program was:" >&5
7678 sed 's/^/| /' conftest.$ac_ext >&5
7680 ac_cv_lib_xnet_socket=no
7682 rm -f conftest.err conftest.$ac_objext \
7683 conftest$ac_exeext conftest.$ac_ext
7684 LIBS=$ac_check_lib_save_LIBS
7686 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7687 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7688 if test $ac_cv_lib_xnet_socket = yes; then
7689 cat >>confdefs.h <<_ACEOF
7690 #define HAVE_LIBXNET 1
7698 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7699 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7700 if test "${ac_cv_lib_socket_socket+set}" = set; then
7701 echo $ECHO_N "(cached) $ECHO_C" >&6
7703 ac_check_lib_save_LIBS=$LIBS
7704 LIBS="-lsocket $LIBS"
7705 cat >conftest.$ac_ext <<_ACEOF
7708 cat confdefs.h >>conftest.$ac_ext
7709 cat >>conftest.$ac_ext <<_ACEOF
7710 /* end confdefs.h. */
7712 /* Override any gcc2 internal prototype to avoid an error. */
7716 /* We use char because int might match the return type of a gcc2
7717 builtin and then its argument prototype would still apply. */
7727 rm -f conftest.$ac_objext conftest$ac_exeext
7728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7729 (eval $ac_link) 2>conftest.er1
7731 grep -v '^ *+' conftest.er1 >conftest.err
7733 cat conftest.err >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } &&
7736 { ac_try='test -z "$ac_c_werror_flag"
7737 || test ! -s conftest.err'
7738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); }; } &&
7743 { ac_try='test -s conftest$ac_exeext'
7744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7748 (exit $ac_status); }; }; then
7749 ac_cv_lib_socket_socket=yes
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.$ac_ext >&5
7754 ac_cv_lib_socket_socket=no
7756 rm -f conftest.err conftest.$ac_objext \
7757 conftest$ac_exeext conftest.$ac_ext
7758 LIBS=$ac_check_lib_save_LIBS
7760 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7761 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7762 if test $ac_cv_lib_socket_socket = yes; then
7763 cat >>confdefs.h <<_ACEOF
7764 #define HAVE_LIBSOCKET 1
7767 LIBS="-lsocket $LIBS"
7772 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7773 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7774 if test "${ac_cv_lib_inet_socket+set}" = set; then
7775 echo $ECHO_N "(cached) $ECHO_C" >&6
7777 ac_check_lib_save_LIBS=$LIBS
7779 cat >conftest.$ac_ext <<_ACEOF
7782 cat confdefs.h >>conftest.$ac_ext
7783 cat >>conftest.$ac_ext <<_ACEOF
7784 /* end confdefs.h. */
7786 /* Override any gcc2 internal prototype to avoid an error. */
7790 /* We use char because int might match the return type of a gcc2
7791 builtin and then its argument prototype would still apply. */
7801 rm -f conftest.$ac_objext conftest$ac_exeext
7802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7803 (eval $ac_link) 2>conftest.er1
7805 grep -v '^ *+' conftest.er1 >conftest.err
7807 cat conftest.err >&5
7808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7809 (exit $ac_status); } &&
7810 { ac_try='test -z "$ac_c_werror_flag"
7811 || test ! -s conftest.err'
7812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); }; } &&
7817 { ac_try='test -s conftest$ac_exeext'
7818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7822 (exit $ac_status); }; }; then
7823 ac_cv_lib_inet_socket=yes
7825 echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.$ac_ext >&5
7828 ac_cv_lib_inet_socket=no
7830 rm -f conftest.err conftest.$ac_objext \
7831 conftest$ac_exeext conftest.$ac_ext
7832 LIBS=$ac_check_lib_save_LIBS
7834 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7835 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7836 if test $ac_cv_lib_inet_socket = yes; then
7837 cat >>confdefs.h <<_ACEOF
7838 #define HAVE_LIBINET 1
7849 # -----------------------------------------------------------
7850 # Check whether user wants TCP wrappers support (default off)
7851 # -----------------------------------------------------------
7854 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7855 if test "${with_tcp_wrappers+set}" = set; then
7856 withval="$with_tcp_wrappers"
7858 if test "x$withval" != "xno" ; then
7860 LIBS="$saved_LIBS -lwrap"
7861 echo "$as_me:$LINENO: checking for libwrap" >&5
7862 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7863 cat >conftest.$ac_ext <<_ACEOF
7866 cat confdefs.h >>conftest.$ac_ext
7867 cat >>conftest.$ac_ext <<_ACEOF
7868 /* end confdefs.h. */
7870 int deny_severity = 0;
7871 int allow_severity = 0;
7872 struct request_info *req;
7881 rm -f conftest.$ac_objext conftest$ac_exeext
7882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7883 (eval $ac_link) 2>conftest.er1
7885 grep -v '^ *+' conftest.er1 >conftest.err
7887 cat conftest.err >&5
7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7889 (exit $ac_status); } &&
7890 { ac_try='test -z "$ac_c_werror_flag"
7891 || test ! -s conftest.err'
7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7896 (exit $ac_status); }; } &&
7897 { ac_try='test -s conftest$ac_exeext'
7898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); }; }; then
7904 echo "$as_me:$LINENO: result: yes" >&5
7905 echo "${ECHO_T}yes" >&6
7906 cat >>confdefs.h <<\_ACEOF
7907 #define HAVE_LIBWRAP 1
7913 echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7917 LIBS="$saved_LIBS -lwrap -lnsl"
7918 cat >conftest.$ac_ext <<_ACEOF
7921 cat confdefs.h >>conftest.$ac_ext
7922 cat >>conftest.$ac_ext <<_ACEOF
7923 /* end confdefs.h. */
7925 int deny_severity = 0;
7926 int allow_severity = 0;
7927 struct request_info *req;
7936 rm -f conftest.$ac_objext conftest$ac_exeext
7937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7938 (eval $ac_link) 2>conftest.er1
7940 grep -v '^ *+' conftest.er1 >conftest.err
7942 cat conftest.err >&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } &&
7945 { ac_try='test -z "$ac_c_werror_flag"
7946 || test ! -s conftest.err'
7947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); }; } &&
7952 { ac_try='test -s conftest$ac_exeext'
7953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7957 (exit $ac_status); }; }; then
7959 echo "$as_me:$LINENO: result: yes" >&5
7960 echo "${ECHO_T}yes" >&6
7961 cat >>confdefs.h <<\_ACEOF
7962 #define HAVE_LIBWRAP 1
7968 echo "$as_me: failed program was:" >&5
7969 sed 's/^/| /' conftest.$ac_ext >&5
7971 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7972 echo "$as_me: error: *** libwrap missing" >&2;}
7973 { (exit 1); exit 1; }; }
7976 rm -f conftest.err conftest.$ac_objext \
7977 conftest$ac_exeext conftest.$ac_ext
7980 rm -f conftest.err conftest.$ac_objext \
7981 conftest$ac_exeext conftest.$ac_ext
7987 # -----------------------------------------------------------
7988 # Check whether OpenSSL is available
7989 # -----------------------------------------------------------
7990 echo "$as_me:$LINENO: checking for OpenSSL" >&5
7991 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
7993 # Check whether --with-openssl or --without-openssl was given.
7994 if test "${with_openssl+set}" = set; then
7995 withval="$with_openssl"
7996 with_openssl_directory=${withval}
7999 if test "x$with_openssl_directory" != "x"; then
8000 OPENSSL_LIBS="-lssl -lcrypto"
8003 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
8004 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
8005 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
8009 saved_CFLAGS="$CFLAGS"
8010 LIBS="$saved_LIBS $OPENSSL_LIBS"
8011 CFLAGS="$saved_CFLAGS $OPENSSL_INC"
8013 cat >conftest.$ac_ext <<_ACEOF
8016 cat confdefs.h >>conftest.$ac_ext
8017 cat >>conftest.$ac_ext <<_ACEOF
8018 /* end confdefs.h. */
8019 #include <openssl/ssl.h>
8023 CRYPTO_set_id_callback(NULL);
8028 rm -f conftest.$ac_objext conftest$ac_exeext
8029 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8030 (eval $ac_link) 2>conftest.er1
8032 grep -v '^ *+' conftest.er1 >conftest.err
8034 cat conftest.err >&5
8035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8036 (exit $ac_status); } &&
8037 { ac_try='test -z "$ac_c_werror_flag"
8038 || test ! -s conftest.err'
8039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); }; } &&
8044 { ac_try='test -s conftest$ac_exeext'
8045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); }; }; then
8052 echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8058 rm -f conftest.err conftest.$ac_objext \
8059 conftest$ac_exeext conftest.$ac_ext
8062 CFLAGS="$saved_CFLAGS"
8064 if test "$support_tls" = "yes"; then
8066 cat >>confdefs.h <<\_ACEOF
8067 #define HAVE_OPENSSL 1
8071 cat >>confdefs.h <<\_ACEOF
8082 echo "$as_me:$LINENO: result: $support_tls" >&5
8083 echo "${ECHO_T}$support_tls" >&6
8088 # -----------------------------------------------------------
8089 # Python and OpenSSL are using dlopen
8090 # -----------------------------------------------------------
8092 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
8093 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8094 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
8095 if test "${ac_cv_search_dlopen+set}" = set; then
8096 echo $ECHO_N "(cached) $ECHO_C" >&6
8098 ac_func_search_save_LIBS=$LIBS
8099 ac_cv_search_dlopen=no
8100 cat >conftest.$ac_ext <<_ACEOF
8103 cat confdefs.h >>conftest.$ac_ext
8104 cat >>conftest.$ac_ext <<_ACEOF
8105 /* end confdefs.h. */
8107 /* Override any gcc2 internal prototype to avoid an error. */
8111 /* We use char because int might match the return type of a gcc2
8112 builtin and then its argument prototype would still apply. */
8122 rm -f conftest.$ac_objext conftest$ac_exeext
8123 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8124 (eval $ac_link) 2>conftest.er1
8126 grep -v '^ *+' conftest.er1 >conftest.err
8128 cat conftest.err >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } &&
8131 { ac_try='test -z "$ac_c_werror_flag"
8132 || test ! -s conftest.err'
8133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; } &&
8138 { ac_try='test -s conftest$ac_exeext'
8139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); }; }; then
8144 ac_cv_search_dlopen="none required"
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8150 rm -f conftest.err conftest.$ac_objext \
8151 conftest$ac_exeext conftest.$ac_ext
8152 if test "$ac_cv_search_dlopen" = no; then
8153 for ac_lib in dl; do
8154 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8155 cat >conftest.$ac_ext <<_ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h. */
8162 /* Override any gcc2 internal prototype to avoid an error. */
8166 /* We use char because int might match the return type of a gcc2
8167 builtin and then its argument prototype would still apply. */
8177 rm -f conftest.$ac_objext conftest$ac_exeext
8178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8179 (eval $ac_link) 2>conftest.er1
8181 grep -v '^ *+' conftest.er1 >conftest.err
8183 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } &&
8186 { ac_try='test -z "$ac_c_werror_flag"
8187 || test ! -s conftest.err'
8188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); }; } &&
8193 { ac_try='test -s conftest$ac_exeext'
8194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8198 (exit $ac_status); }; }; then
8199 ac_cv_search_dlopen="-l$ac_lib"
8202 echo "$as_me: failed program was:" >&5
8203 sed 's/^/| /' conftest.$ac_ext >&5
8206 rm -f conftest.err conftest.$ac_objext \
8207 conftest$ac_exeext conftest.$ac_ext
8210 LIBS=$ac_func_search_save_LIBS
8212 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8213 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
8214 if test "$ac_cv_search_dlopen" != no; then
8215 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
8221 # ------------------------------------------
8222 # Where to place working dir
8223 # ------------------------------------------
8224 working_dir=`eval echo ${prefix}/var/bacula/working`
8226 # Check whether --with-working-dir or --without-working-dir was given.
8227 if test "${with_working_dir+set}" = set; then
8228 withval="$with_working_dir"
8230 if test "x$withval" != "xno" ; then
8231 working_dir=$withval
8240 # ------------------------------------------
8241 # Where to place scriptdir (script files)
8242 # ------------------------------------------
8243 scriptdir=`eval echo ${sysconfdir}`
8245 # Check whether --with-scriptdir or --without-scriptdir was given.
8246 if test "${with_scriptdir+set}" = set; then
8247 withval="$with_scriptdir"
8249 if test "x$withval" != "xno" ; then
8259 # ------------------------------------------
8260 # Where to send dump email
8261 # ------------------------------------------
8262 dump_email=root@localhost
8264 # Check whether --with-dump-email or --without-dump-email was given.
8265 if test "${with_dump_email+set}" = set; then
8266 withval="$with_dump_email"
8268 if test "x$withval" != "xno" ; then
8277 # ------------------------------------------
8278 # Where to send job email
8279 # ------------------------------------------
8280 job_email=root@localhost
8282 # Check whether --with-job-email or --without-job-email was given.
8283 if test "${with_job_email+set}" = set; then
8284 withval="$with_job_email"
8286 if test "x$withval" != "xno" ; then
8295 # ------------------------------------------
8296 # Where to find smtp host
8297 # ------------------------------------------
8300 # Check whether --with-smtp_host or --without-smtp_host was given.
8301 if test "${with_smtp_host+set}" = set; then
8302 withval="$with_smtp_host"
8304 if test "x$withval" != "xno" ; then
8314 # ------------------------------------
8315 # Where to place pid files
8316 # ------------------------------------
8319 # Check whether --with-pid-dir or --without-pid-dir was given.
8320 if test "${with_pid_dir+set}" = set; then
8321 withval="$with_pid_dir"
8323 if test "x$withval" != "xno" ; then
8330 cat >>confdefs.h <<_ACEOF
8331 #define _PATH_BACULA_PIDDIR "$piddir"
8337 # ------------------------------------
8338 # Where to place subsys "lock file"
8339 # ------------------------------------
8340 subsysdir=/var/run/subsys
8342 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8343 if test "${with_subsys_dir+set}" = set; then
8344 withval="$with_subsys_dir"
8346 if test "x$withval" != "xno" ; then
8357 # ------------------------------------
8358 # Where to start assigning ports
8359 # ------------------------------------
8362 # Check whether --with-baseport or --without-baseport was given.
8363 if test "${with_baseport+set}" = set; then
8364 withval="$with_baseport"
8366 if test "x$withval" != "xno" ; then
8374 dir_port=`expr $baseport`
8375 fd_port=`expr $baseport + 1`
8376 sd_port=`expr $fd_port + 1`
8383 # ------------------------------------------
8384 # Generate passwords
8385 # ------------------------------------------
8388 # Check whether --with-dir-password or --without-dir-password was given.
8389 if test "${with_dir_password+set}" = set; then
8390 withval="$with_dir_password"
8392 if test "x$withval" != "xno" ; then
8393 dir_password=$withval
8399 if test "x$dir_password" = "x" ; then
8400 if test "x$OPENSSL" = "xnone" ; then
8401 key=`autoconf/randpass 33`
8403 key=`openssl rand -base64 33`
8410 # Check whether --with-fd-password or --without-fd-password was given.
8411 if test "${with_fd_password+set}" = set; then
8412 withval="$with_fd_password"
8414 if test "x$withval" != "xno" ; then
8415 fd_password=$withval
8421 if test "x$fd_password" = "x" ; then
8422 if test "x$OPENSSL" = "xnone" ; then
8423 key=`autoconf/randpass 37`
8425 key=`openssl rand -base64 33`
8432 # Check whether --with-sd-password or --without-sd-password was given.
8433 if test "${with_sd_password+set}" = set; then
8434 withval="$with_sd_password"
8436 if test "x$withval" != "xno" ; then
8437 sd_password=$withval
8443 if test "x$sd_password" = "x" ; then
8444 if test "x$OPENSSL" = "xnone" ; then
8445 key=`autoconf/randpass 41`
8447 key=`openssl rand -base64 33`
8454 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8455 if test "${with_mon_dir_password+set}" = set; then
8456 withval="$with_mon_dir_password"
8458 if test "x$withval" != "xno" ; then
8459 mon_dir_password=$withval
8465 if test "x$mon_dir_password" = "x" ; then
8466 if test "x$OPENSSL" = "xnone" ; then
8467 key=`autoconf/randpass 33`
8469 key=`openssl rand -base64 33`
8471 mon_dir_password=$key
8476 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8477 if test "${with_mon_fd_password+set}" = set; then
8478 withval="$with_mon_fd_password"
8480 if test "x$withval" != "xno" ; then
8481 mon_fd_password=$withval
8487 if test "x$mon_fd_password" = "x" ; then
8488 if test "x$OPENSSL" = "xnone" ; then
8489 key=`autoconf/randpass 37`
8491 key=`openssl rand -base64 33`
8493 mon_fd_password=$key
8498 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8499 if test "${with_mon_sd_password+set}" = set; then
8500 withval="$with_mon_sd_password"
8502 if test "x$withval" != "xno" ; then
8503 mon_sd_password=$withval
8509 if test "x$mon_sd_password" = "x" ; then
8510 if test "x$OPENSSL" = "xnone" ; then
8511 key=`autoconf/randpass 41`
8513 key=`openssl rand -base64 33`
8515 mon_sd_password=$key
8527 # Handle users and groups for each daemon
8531 # Check whether --with-dir_user or --without-dir_user was given.
8532 if test "${with_dir_user+set}" = set; then
8533 withval="$with_dir_user"
8535 if test "x$withval" != "x" ; then
8544 # Check whether --with-dir_group or --without-dir_group was given.
8545 if test "${with_dir_group+set}" = set; then
8546 withval="$with_dir_group"
8548 if test "x$withval" != "x" ; then
8557 # Check whether --with-sd_user or --without-sd_user was given.
8558 if test "${with_sd_user+set}" = set; then
8559 withval="$with_sd_user"
8561 if test "x$withval" != "x" ; then
8570 # Check whether --with-sd_group or --without-sd_group was given.
8571 if test "${with_sd_group+set}" = set; then
8572 withval="$with_sd_group"
8574 if test "x$withval" != "x" ; then
8583 # Check whether --with-fd_user or --without-fd_user was given.
8584 if test "${with_fd_user+set}" = set; then
8585 withval="$with_fd_user"
8587 if test "x$withval" != "x" ; then
8596 # Check whether --with-fd_group or --without-fd_group was given.
8597 if test "${with_fd_group+set}" = set; then
8598 withval="$with_fd_group"
8600 if test "x$withval" != "x" ; then
8618 # allow setting default executable permissions
8622 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8623 if test "${with_sbin_perm+set}" = set; then
8624 withval="$with_sbin_perm"
8626 if test "x$withval" != "x" ; then
8635 # ------------------------------------------------
8636 # Bacula check for various SQL database engines
8637 # ------------------------------------------------
8640 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8641 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8643 # Check whether --with-postgresql or --without-postgresql was given.
8644 if test "${with_postgresql+set}" = set; then
8645 withval="$with_postgresql"
8647 if test "$withval" != "no"; then
8648 if test "$db_found" = "yes"; then
8649 echo "$as_me:$LINENO: result: error" >&5
8650 echo "${ECHO_T}error" >&6
8651 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8652 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8653 { (exit 1); exit 1; }; };
8655 if test "$withval" = "yes"; then
8656 if test -f /usr/local/include/libpq-fe.h; then
8657 POSTGRESQL_INCDIR=/usr/local/include
8658 POSTGRESQL_LIBDIR=/usr/local/lib
8659 POSTGRESQL_BINDIR=/usr/local/bin
8660 elif test -f /usr/include/libpq-fe.h; then
8661 POSTGRESQL_INCDIR=/usr/include
8662 POSTGRESQL_LIBDIR=/usr/lib
8663 POSTGRESQL_BINDIR=/usr/bin
8664 elif test -f /usr/include/pgsql/libpq-fe.h; then
8665 POSTGRESQL_INCDIR=/usr/include/pgsql
8666 POSTGRESQL_LIBDIR=/usr/lib/pgsql
8667 POSTGRESQL_BINDIR=/usr/bin
8668 elif test -f /usr/include/postgresql/libpq-fe.h; then
8669 POSTGRESQL_INCDIR=/usr/include/postgresql
8670 POSTGRESQL_LIBDIR=/usr/lib/postgresql
8671 POSTGRESQL_BINDIR=/usr/bin
8673 echo "$as_me:$LINENO: result: no" >&5
8674 echo "${ECHO_T}no" >&6
8675 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8676 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8677 { (exit 1); exit 1; }; }
8679 elif test -f $withval/include/libpq-fe.h; then
8680 POSTGRESQL_INCDIR=$withval/include
8681 POSTGRESQL_LIBDIR=$withval/lib
8682 POSTGRESQL_BINDIR=$withval/bin
8683 elif test -f $withval/include/postgresql/libpq-fe.h; then
8684 POSTGRESQL_INCDIR=$withval/include/postgresql
8685 POSTGRESQL_LIBDIR=$withval/lib
8686 POSTGRESQL_BINDIR=$withval/bin
8688 echo "$as_me:$LINENO: result: no" >&5
8689 echo "${ECHO_T}no" >&6
8690 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8691 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8692 { (exit 1); exit 1; }; }
8694 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8695 echo "$as_me:$LINENO: checking for crypt" >&5
8696 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8697 if test "${ac_cv_func_crypt+set}" = set; then
8698 echo $ECHO_N "(cached) $ECHO_C" >&6
8700 cat >conftest.$ac_ext <<_ACEOF
8703 cat confdefs.h >>conftest.$ac_ext
8704 cat >>conftest.$ac_ext <<_ACEOF
8705 /* end confdefs.h. */
8706 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8707 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8708 #define crypt innocuous_crypt
8710 /* System header to define __stub macros and hopefully few prototypes,
8711 which can conflict with char crypt (); below.
8712 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8713 <limits.h> exists even on freestanding compilers. */
8716 # include <limits.h>
8718 # include <assert.h>
8723 /* Override any gcc2 internal prototype to avoid an error. */
8728 /* We use char because int might match the return type of a gcc2
8729 builtin and then its argument prototype would still apply. */
8731 /* The GNU C library defines this for functions which it implements
8732 to always fail with ENOSYS. Some functions are actually named
8733 something starting with __ and the normal name is an alias. */
8734 #if defined (__stub_crypt) || defined (__stub___crypt)
8737 char (*f) () = crypt;
8751 rm -f conftest.$ac_objext conftest$ac_exeext
8752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753 (eval $ac_link) 2>conftest.er1
8755 grep -v '^ *+' conftest.er1 >conftest.err
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try='test -z "$ac_c_werror_flag"
8761 || test ! -s conftest.err'
8762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; } &&
8767 { ac_try='test -s conftest$ac_exeext'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; }; then
8773 ac_cv_func_crypt=yes
8775 echo "$as_me: failed program was:" >&5
8776 sed 's/^/| /' conftest.$ac_ext >&5
8780 rm -f conftest.err conftest.$ac_objext \
8781 conftest$ac_exeext conftest.$ac_ext
8783 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8784 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8785 if test $ac_cv_func_crypt = yes; then
8788 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8789 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8790 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8793 ac_check_lib_save_LIBS=$LIBS
8794 LIBS="-lcrypt $LIBS"
8795 cat >conftest.$ac_ext <<_ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8802 /* Override any gcc2 internal prototype to avoid an error. */
8806 /* We use char because int might match the return type of a gcc2
8807 builtin and then its argument prototype would still apply. */
8817 rm -f conftest.$ac_objext conftest$ac_exeext
8818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8819 (eval $ac_link) 2>conftest.er1
8821 grep -v '^ *+' conftest.er1 >conftest.err
8823 cat conftest.err >&5
8824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8825 (exit $ac_status); } &&
8826 { ac_try='test -z "$ac_c_werror_flag"
8827 || test ! -s conftest.err'
8828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; } &&
8833 { ac_try='test -s conftest$ac_exeext'
8834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); }; }; then
8839 ac_cv_lib_crypt_crypt=yes
8841 echo "$as_me: failed program was:" >&5
8842 sed 's/^/| /' conftest.$ac_ext >&5
8844 ac_cv_lib_crypt_crypt=no
8846 rm -f conftest.err conftest.$ac_objext \
8847 conftest$ac_exeext conftest.$ac_ext
8848 LIBS=$ac_check_lib_save_LIBS
8850 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8851 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8852 if test $ac_cv_lib_crypt_crypt = yes; then
8853 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8858 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8859 SQL_LFLAGS=$POSTGRESQL_LFLAGS
8860 SQL_BINDIR=$POSTGRESQL_BINDIR
8861 cat >>confdefs.h <<\_ACEOF
8862 #define HAVE_POSTGRESQL 1
8865 echo "$as_me:$LINENO: result: yes" >&5
8866 echo "${ECHO_T}yes" >&6
8868 support_postgresql=yes
8872 echo "$as_me:$LINENO: result: no" >&5
8873 echo "${ECHO_T}no" >&6
8878 echo "$as_me:$LINENO: result: no" >&5
8879 echo "${ECHO_T}no" >&6
8890 echo "$as_me:$LINENO: checking for MySQL support" >&5
8891 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8893 # Check whether --with-mysql or --without-mysql was given.
8894 if test "${with_mysql+set}" = set; then
8895 withval="$with_mysql"
8897 if test "$withval" != "no"; then
8898 if test "$withval" = "yes"; then
8899 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8900 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8901 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8902 MYSQL_BINDIR=/usr/local/mysql/bin
8903 elif test -f /usr/include/mysql/mysql.h; then
8904 MYSQL_INCDIR=/usr/include/mysql
8905 MYSQL_LIBDIR=/usr/lib/mysql
8906 MYSQL_BINDIR=/usr/bin
8907 elif test -f /usr/include/mysql.h; then
8908 MYSQL_INCDIR=/usr/include
8909 MYSQL_LIBDIR=/usr/lib
8910 MYSQL_BINDIR=/usr/bin
8911 elif test -f /usr/local/include/mysql/mysql.h; then
8912 MYSQL_INCDIR=/usr/local/include/mysql
8913 MYSQL_LIBDIR=/usr/local/lib/mysql
8914 MYSQL_BINDIR=/usr/local/bin
8915 elif test -f /usr/local/include/mysql.h; then
8916 MYSQL_INCDIR=/usr/local/include
8917 MYSQL_LIBDIR=/usr/local/lib
8918 MYSQL_BINDIR=/usr/local/bin
8920 echo "$as_me:$LINENO: result: no" >&5
8921 echo "${ECHO_T}no" >&6
8922 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8923 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8924 { (exit 1); exit 1; }; }
8927 if test -f $withval/include/mysql/mysql.h; then
8928 MYSQL_INCDIR=$withval/include/mysql
8929 MYSQL_LIBDIR=$withval/lib/mysql
8930 MYSQL_BINDIR=$withval/bin
8931 elif test -f $withval/include/mysql.h; then
8932 MYSQL_INCDIR=$withval/include
8933 MYSQL_LIBDIR=$withval/lib
8934 MYSQL_BINDIR=$withval/bin
8936 echo "$as_me:$LINENO: result: no" >&5
8937 echo "${ECHO_T}no" >&6
8938 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8939 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8940 { (exit 1); exit 1; }; }
8943 SQL_INCLUDE=-I$MYSQL_INCDIR
8944 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8945 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8946 cat >>confdefs.h <<\_ACEOF
8947 #define HAVE_THREAD_SAFE_MYSQL 1
8951 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8953 SQL_BINDIR=$MYSQL_BINDIR
8955 cat >>confdefs.h <<\_ACEOF
8956 #define HAVE_MYSQL 1
8959 echo "$as_me:$LINENO: result: yes" >&5
8960 echo "${ECHO_T}yes" >&6
8967 echo "$as_me:$LINENO: result: no" >&5
8968 echo "${ECHO_T}no" >&6
8975 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8976 if test "${with_embedded_mysql+set}" = set; then
8977 withval="$with_embedded_mysql"
8979 if test "$withval" != "no"; then
8980 if test "$withval" = "yes"; then
8981 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8982 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8983 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8984 MYSQL_BINDIR=/usr/local/mysql/bin
8985 elif test -f /usr/include/mysql/mysql.h; then
8986 MYSQL_INCDIR=/usr/include/mysql
8987 MYSQL_LIBDIR=/usr/lib/mysql
8988 MYSQL_BINDIR=/usr/bin
8989 elif test -f /usr/include/mysql.h; then
8990 MYSQL_INCDIR=/usr/include
8991 MYSQL_LIBDIR=/usr/lib
8992 MYSQL_BINDIR=/usr/bin
8993 elif test -f /usr/local/include/mysql/mysql.h; then
8994 MYSQL_INCDIR=/usr/local/include/mysql
8995 MYSQL_LIBDIR=/usr/local/lib/mysql
8996 MYSQL_BINDIR=/usr/local/bin
8997 elif test -f /usr/local/include/mysql.h; then
8998 MYSQL_INCDIR=/usr/local/include
8999 MYSQL_LIBDIR=/usr/local/lib
9000 MYSQL_BINDIR=/usr/local/bin
9002 echo "$as_me:$LINENO: result: no" >&5
9003 echo "${ECHO_T}no" >&6
9004 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
9005 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
9006 { (exit 1); exit 1; }; }
9009 if test -f $withval/include/mysql/mysql.h; then
9010 MYSQL_INCDIR=$withval/include/mysql
9011 MYSQL_LIBDIR=$withval/lib/mysql
9012 MYSQL_BINDIR=$withval/bin
9013 elif test -f $withval/include/mysql.h; then
9014 MYSQL_INCDIR=$withval/include
9015 MYSQL_LIBDIR=$withval/lib
9016 MYSQL_BINDIR=$withval/bin
9018 echo "$as_me:$LINENO: result: no" >&5
9019 echo "${ECHO_T}no" >&6
9020 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
9021 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
9022 { (exit 1); exit 1; }; }
9025 SQL_INCLUDE=-I$MYSQL_INCDIR
9026 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
9027 SQL_BINDIR=$MYSQL_BINDIR
9029 cat >>confdefs.h <<\_ACEOF
9030 #define HAVE_MYSQL 1
9033 cat >>confdefs.h <<\_ACEOF
9034 #define HAVE_EMBEDDED_MYSQL 1
9037 echo "$as_me:$LINENO: result: yes" >&5
9038 echo "${ECHO_T}yes" >&6
9045 echo "$as_me:$LINENO: result: no" >&5
9046 echo "${ECHO_T}no" >&6
9061 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
9062 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
9064 # Check whether --with-sqlite3 or --without-sqlite3 was given.
9065 if test "${with_sqlite3+set}" = set; then
9066 withval="$with_sqlite3"
9068 if test "$withval" != "no"; then
9069 if test "$withval" = "yes"; then
9070 if test -f /usr/local/include/sqlite3.h; then
9071 SQLITE_INCDIR=/usr/local/include
9072 SQLITE_LIBDIR=/usr/local/lib
9073 SQLITE_BINDIR=/usr/local/bin
9074 elif test -f /usr/include/sqlite3.h; then
9075 SQLITE_INCDIR=/usr/include
9076 SQLITE_LIBDIR=/usr/lib
9077 SQLITE_BINDIR=/usr/bin
9078 elif test -f $prefix/include/sqlite3.h; then
9079 SQLITE_INCDIR=$prefix/include
9080 SQLITE_LIBDIR=$prefix/lib
9081 SQLITE_BINDIR=$prefix/bin
9083 echo "$as_me:$LINENO: result: no" >&5
9084 echo "${ECHO_T}no" >&6
9085 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
9086 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
9087 { (exit 1); exit 1; }; }
9090 if test -f $withval/sqlite3.h; then
9091 SQLITE_INCDIR=$withval
9092 SQLITE_LIBDIR=$withval
9093 SQLITE_BINDIR=$withval
9094 elif test -f $withval/include/sqlite3.h; then
9095 SQLITE_INCDIR=$withval/include
9096 SQLITE_LIBDIR=$withval/lib
9097 SQLITE_BINDIR=$withval/bin
9099 echo "$as_me:$LINENO: result: no" >&5
9100 echo "${ECHO_T}no" >&6
9101 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
9102 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
9103 { (exit 1); exit 1; }; }
9106 SQL_INCLUDE=-I$SQLITE_INCDIR
9107 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
9108 SQL_BINDIR=$SQLITE_BINDIR
9110 cat >>confdefs.h <<\_ACEOF
9111 #define HAVE_SQLITE3 1
9114 echo "$as_me:$LINENO: result: yes" >&5
9115 echo "${ECHO_T}yes" >&6
9122 echo "$as_me:$LINENO: result: no" >&5
9123 echo "${ECHO_T}no" >&6
9128 echo "$as_me:$LINENO: result: no" >&5
9129 echo "${ECHO_T}no" >&6
9140 echo "$as_me:$LINENO: checking for SQLite support" >&5
9141 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
9143 # Check whether --with-sqlite or --without-sqlite was given.
9144 if test "${with_sqlite+set}" = set; then
9145 withval="$with_sqlite"
9147 if test "$withval" != "no"; then
9148 if test "$withval" = "yes"; then
9149 if test -f /usr/local/include/sqlite.h; then
9150 SQLITE_INCDIR=/usr/local/include
9151 SQLITE_LIBDIR=/usr/local/lib
9152 SQLITE_BINDIR=/usr/local/bin
9153 elif test -f /usr/include/sqlite.h; then
9154 SQLITE_INCDIR=/usr/include
9155 SQLITE_LIBDIR=/usr/lib
9156 SQLITE_BINDIR=/usr/bin
9157 elif test -f $prefix/include/sqlite.h; then
9158 SQLITE_INCDIR=$prefix/include
9159 SQLITE_LIBDIR=$prefix/lib
9160 SQLITE_BINDIR=$prefix/bin
9162 echo "$as_me:$LINENO: result: no" >&5
9163 echo "${ECHO_T}no" >&6
9164 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
9165 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
9166 { (exit 1); exit 1; }; }
9169 if test -f $withval/sqlite.h; then
9170 SQLITE_INCDIR=$withval
9171 SQLITE_LIBDIR=$withval
9172 SQLITE_BINDIR=$withval
9173 elif test -f $withval/include/sqlite.h; then
9174 SQLITE_INCDIR=$withval/include
9175 SQLITE_LIBDIR=$withval/lib
9176 SQLITE_BINDIR=$withval/bin
9178 echo "$as_me:$LINENO: result: no" >&5
9179 echo "${ECHO_T}no" >&6
9180 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
9181 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
9182 { (exit 1); exit 1; }; }
9185 SQL_INCLUDE=-I$SQLITE_INCDIR
9186 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
9187 SQL_BINDIR=$SQLITE_BINDIR
9189 cat >>confdefs.h <<\_ACEOF
9190 #define HAVE_SQLITE 1
9193 echo "$as_me:$LINENO: result: yes" >&5
9194 echo "${ECHO_T}yes" >&6
9201 echo "$as_me:$LINENO: result: no" >&5
9202 echo "${ECHO_T}no" >&6
9207 echo "$as_me:$LINENO: result: no" >&5
9208 echo "${ECHO_T}no" >&6
9220 cat >>confdefs.h <<\_ACEOF
9221 #define PROTOTYPES 1
9225 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
9226 if test -z "$CCOPTS"; then
9227 CCOPTS='-g -O2 -Wall'
9235 largefile_support="no"
9237 # Check whether --enable-largefile or --disable-largefile was given.
9238 if test "${enable_largefile+set}" = set; then
9239 enableval="$enable_largefile"
9242 if test "$enable_largefile" != no; then
9243 if test -n "$ac_tool_prefix"; then
9244 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
9245 set dummy ${ac_tool_prefix}getconf; ac_word=$2
9246 echo "$as_me:$LINENO: checking for $ac_word" >&5
9247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9248 if test "${ac_cv_prog_GETCONF+set}" = set; then
9249 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 if test -n "$GETCONF"; then
9252 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
9254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258 test -z "$as_dir" && as_dir=.
9259 for ac_exec_ext in '' $ac_executable_extensions; do
9260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9261 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
9262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9270 GETCONF=$ac_cv_prog_GETCONF
9271 if test -n "$GETCONF"; then
9272 echo "$as_me:$LINENO: result: $GETCONF" >&5
9273 echo "${ECHO_T}$GETCONF" >&6
9275 echo "$as_me:$LINENO: result: no" >&5
9276 echo "${ECHO_T}no" >&6
9280 if test -z "$ac_cv_prog_GETCONF"; then
9281 ac_ct_GETCONF=$GETCONF
9282 # Extract the first word of "getconf", so it can be a program name with args.
9283 set dummy getconf; ac_word=$2
9284 echo "$as_me:$LINENO: checking for $ac_word" >&5
9285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9286 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9289 if test -n "$ac_ct_GETCONF"; then
9290 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
9292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9296 test -z "$as_dir" && as_dir=.
9297 for ac_exec_ext in '' $ac_executable_extensions; do
9298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9299 ac_cv_prog_ac_ct_GETCONF="getconf"
9300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9308 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9309 if test -n "$ac_ct_GETCONF"; then
9310 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9311 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9313 echo "$as_me:$LINENO: result: no" >&5
9314 echo "${ECHO_T}no" >&6
9317 GETCONF=$ac_ct_GETCONF
9319 GETCONF="$ac_cv_prog_GETCONF"
9322 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9323 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9324 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9328 ac_cv_sys_largefile_CFLAGS=no
9330 # IRIX 6.2 and later require cc -n32.
9331 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9332 if test "$GCC" != yes; then
9333 ac_cv_sys_largefile_CFLAGS=-n32
9336 CC="$CC $ac_cv_sys_largefile_CFLAGS"
9337 cat >conftest.$ac_ext <<_ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9352 rm -f conftest.$ac_objext conftest$ac_exeext
9353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9354 (eval $ac_link) 2>conftest.er1
9356 grep -v '^ *+' conftest.er1 >conftest.err
9358 cat conftest.err >&5
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } &&
9361 { ac_try='test -z "$ac_c_werror_flag"
9362 || test ! -s conftest.err'
9363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); }; } &&
9368 { ac_try='test -s conftest$ac_exeext'
9369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; }; then
9376 echo "$as_me: failed program was:" >&5
9377 sed 's/^/| /' conftest.$ac_ext >&5
9379 ac_cv_sys_largefile_CFLAGS=no
9381 rm -f conftest.err conftest.$ac_objext \
9382 conftest$ac_exeext conftest.$ac_ext
9387 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9388 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9389 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9390 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9391 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9392 echo $ECHO_N "(cached) $ECHO_C" >&6
9394 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9395 ac_cv_sys_largefile_LDFLAGS=no
9399 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9400 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9401 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9402 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9403 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9404 echo $ECHO_N "(cached) $ECHO_C" >&6
9406 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9407 ac_cv_sys_largefile_LIBS=no
9411 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9412 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9414 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9417 -D_FILE_OFFSET_BITS=*) ;;
9418 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9419 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9425 '') CPPFLAGS="$ac_flag" ;;
9426 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9434 '') CFLAGS="$ac_flag" ;;
9435 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9440 case "$ac_cv_sys_largefile_LDFLAGS" in
9444 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9445 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9448 case "$ac_cv_sys_largefile_LIBS" in
9452 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9453 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9456 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9457 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9458 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 ac_cv_sys_file_offset_bits=no
9462 ac_cv_sys_file_offset_bits=64
9463 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9465 -D_FILE_OFFSET_BITS)
9466 ac_cv_sys_file_offset_bits=1 ;;
9467 -D_FILE_OFFSET_BITS=*)
9468 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9473 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9474 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9475 if test "$ac_cv_sys_file_offset_bits" != no; then
9477 cat >>confdefs.h <<_ACEOF
9478 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9482 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9483 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9484 if test "${ac_cv_sys_largefile_source+set}" = set; then
9485 echo $ECHO_N "(cached) $ECHO_C" >&6
9487 ac_cv_sys_largefile_source=no
9488 ac_cv_sys_largefile_source=1
9489 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9491 -D_LARGEFILE_SOURCE)
9492 ac_cv_sys_largefile_source=1 ;;
9493 -D_LARGEFILE_SOURCE=*)
9494 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9499 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9500 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9501 if test "$ac_cv_sys_largefile_source" != no; then
9503 cat >>confdefs.h <<_ACEOF
9504 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9508 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9509 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9510 if test "${ac_cv_sys_large_files+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9513 ac_cv_sys_large_files=no
9514 ac_cv_sys_large_files=1
9515 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9518 ac_cv_sys_large_files=1 ;;
9520 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9525 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9526 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9527 if test "$ac_cv_sys_large_files" != no; then
9529 cat >>confdefs.h <<_ACEOF
9530 #define _LARGE_FILES $ac_cv_sys_large_files
9538 echo "$as_me:$LINENO: checking for X" >&5
9539 echo $ECHO_N "checking for X... $ECHO_C" >&6
9542 # Check whether --with-x or --without-x was given.
9543 if test "${with_x+set}" = set; then
9547 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9548 if test "x$with_x" = xno; then
9549 # The user explicitly disabled X.
9552 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9553 # Both variables are already set.
9556 if test "${ac_cv_have_x+set}" = set; then
9557 echo $ECHO_N "(cached) $ECHO_C" >&6
9559 # One or both of the vars are not set, and there is no cached value.
9560 ac_x_includes=no ac_x_libraries=no
9562 if mkdir conftest.dir; then
9564 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9565 cat >Imakefile <<'_ACEOF'
9567 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9569 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9570 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9571 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9572 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9573 for ac_extension in a so sl; do
9574 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9575 test -f $ac_im_libdir/libX11.$ac_extension; then
9576 ac_im_usrlibdir=$ac_im_libdir; break
9579 # Screen out bogus values from the imake configuration. They are
9580 # bogus both because they are the default anyway, and because
9581 # using them would break gcc on systems where it needs fixed includes.
9582 case $ac_im_incroot in
9584 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9586 case $ac_im_usrlibdir in
9588 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9595 # Standard set of common directories for X headers.
9596 # Check X11 before X11Rn because it is often a symlink to the current release.
9608 /usr/local/X11/include
9609 /usr/local/X11R6/include
9610 /usr/local/X11R5/include
9611 /usr/local/X11R4/include
9613 /usr/local/include/X11
9614 /usr/local/include/X11R6
9615 /usr/local/include/X11R5
9616 /usr/local/include/X11R4
9620 /usr/XFree86/include/X11
9624 /usr/unsupported/include
9626 /usr/local/x11r5/include
9627 /usr/lpp/Xamples/include
9629 /usr/openwin/include
9630 /usr/openwin/share/include'
9632 if test "$ac_x_includes" = no; then
9633 # Guess where to find include files, by looking for Intrinsic.h.
9634 # First, try using that file with no special directory specified.
9635 cat >conftest.$ac_ext <<_ACEOF
9638 cat confdefs.h >>conftest.$ac_ext
9639 cat >>conftest.$ac_ext <<_ACEOF
9640 /* end confdefs.h. */
9641 #include <X11/Intrinsic.h>
9643 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9644 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9646 grep -v '^ *+' conftest.er1 >conftest.err
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } >/dev/null; then
9651 if test -s conftest.err; then
9652 ac_cpp_err=$ac_c_preproc_warn_flag
9653 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9660 if test -z "$ac_cpp_err"; then
9661 # We can compile using X headers with no special include directory.
9664 echo "$as_me: failed program was:" >&5
9665 sed 's/^/| /' conftest.$ac_ext >&5
9667 for ac_dir in $ac_x_header_dirs; do
9668 if test -r "$ac_dir/X11/Intrinsic.h"; then
9669 ac_x_includes=$ac_dir
9674 rm -f conftest.err conftest.$ac_ext
9675 fi # $ac_x_includes = no
9677 if test "$ac_x_libraries" = no; then
9678 # Check for the libraries.
9679 # See if we find them without any special options.
9680 # Don't add to $LIBS permanently.
9683 cat >conftest.$ac_ext <<_ACEOF
9686 cat confdefs.h >>conftest.$ac_ext
9687 cat >>conftest.$ac_ext <<_ACEOF
9688 /* end confdefs.h. */
9689 #include <X11/Intrinsic.h>
9698 rm -f conftest.$ac_objext conftest$ac_exeext
9699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9700 (eval $ac_link) 2>conftest.er1
9702 grep -v '^ *+' conftest.er1 >conftest.err
9704 cat conftest.err >&5
9705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } &&
9707 { ac_try='test -z "$ac_c_werror_flag"
9708 || test ! -s conftest.err'
9709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; } &&
9714 { ac_try='test -s conftest$ac_exeext'
9715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9719 (exit $ac_status); }; }; then
9721 # We can link X programs with no special library path.
9724 echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.$ac_ext >&5
9728 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9730 # Don't even attempt the hair of trying to link an X program!
9731 for ac_extension in a so sl; do
9732 if test -r $ac_dir/libXt.$ac_extension; then
9733 ac_x_libraries=$ac_dir
9739 rm -f conftest.err conftest.$ac_objext \
9740 conftest$ac_exeext conftest.$ac_ext
9741 fi # $ac_x_libraries = no
9743 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9744 # Didn't find X anywhere. Cache the known absence of X.
9745 ac_cv_have_x="have_x=no"
9747 # Record where we found X for the cache.
9748 ac_cv_have_x="have_x=yes \
9749 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9754 eval "$ac_cv_have_x"
9757 if test "$have_x" != yes; then
9758 echo "$as_me:$LINENO: result: $have_x" >&5
9759 echo "${ECHO_T}$have_x" >&6
9762 # If each of the values was on the command line, it overrides each guess.
9763 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9764 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9765 # Update the cache value to reflect the command line values.
9766 ac_cv_have_x="have_x=yes \
9767 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9768 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9769 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9772 if test "$no_x" = yes; then
9773 # Not all programs may use this symbol, but it does not hurt to define it.
9775 cat >>confdefs.h <<\_ACEOF
9776 #define X_DISPLAY_MISSING 1
9779 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9781 if test -n "$x_includes"; then
9782 X_CFLAGS="$X_CFLAGS -I$x_includes"
9785 # It would also be nice to do this for all -L options, not just this one.
9786 if test -n "$x_libraries"; then
9787 X_LIBS="$X_LIBS -L$x_libraries"
9788 # For Solaris; some versions of Sun CC require a space after -R and
9789 # others require no space. Words are not sufficient . . . .
9790 case `(uname -sr) 2>/dev/null` in
9792 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9793 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9794 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9795 cat >conftest.$ac_ext <<_ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9810 rm -f conftest.$ac_objext conftest$ac_exeext
9811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9812 (eval $ac_link) 2>conftest.er1
9814 grep -v '^ *+' conftest.er1 >conftest.err
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
9819 { ac_try='test -z "$ac_c_werror_flag"
9820 || test ! -s conftest.err'
9821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); }; } &&
9826 { ac_try='test -s conftest$ac_exeext'
9827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9834 echo "$as_me: failed program was:" >&5
9835 sed 's/^/| /' conftest.$ac_ext >&5
9839 rm -f conftest.err conftest.$ac_objext \
9840 conftest$ac_exeext conftest.$ac_ext
9841 if test $ac_R_nospace = yes; then
9842 echo "$as_me:$LINENO: result: no" >&5
9843 echo "${ECHO_T}no" >&6
9844 X_LIBS="$X_LIBS -R$x_libraries"
9846 LIBS="$ac_xsave_LIBS -R $x_libraries"
9847 cat >conftest.$ac_ext <<_ACEOF
9850 cat confdefs.h >>conftest.$ac_ext
9851 cat >>conftest.$ac_ext <<_ACEOF
9852 /* end confdefs.h. */
9862 rm -f conftest.$ac_objext conftest$ac_exeext
9863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9864 (eval $ac_link) 2>conftest.er1
9866 grep -v '^ *+' conftest.er1 >conftest.err
9868 cat conftest.err >&5
9869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9870 (exit $ac_status); } &&
9871 { ac_try='test -z "$ac_c_werror_flag"
9872 || test ! -s conftest.err'
9873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); }; } &&
9878 { ac_try='test -s conftest$ac_exeext'
9879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; }; then
9886 echo "$as_me: failed program was:" >&5
9887 sed 's/^/| /' conftest.$ac_ext >&5
9891 rm -f conftest.err conftest.$ac_objext \
9892 conftest$ac_exeext conftest.$ac_ext
9893 if test $ac_R_space = yes; then
9894 echo "$as_me:$LINENO: result: yes" >&5
9895 echo "${ECHO_T}yes" >&6
9896 X_LIBS="$X_LIBS -R $x_libraries"
9898 echo "$as_me:$LINENO: result: neither works" >&5
9899 echo "${ECHO_T}neither works" >&6
9906 # Check for system-dependent libraries X programs must link with.
9907 # Do this before checking for the system-independent R6 libraries
9908 # (-lICE), since we may need -lsocket or whatever for X linking.
9910 if test "$ISC" = yes; then
9911 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9913 # Martyn Johnson says this is needed for Ultrix, if the X
9914 # libraries were built with DECnet support. And Karl Berry says
9915 # the Alpha needs dnet_stub (dnet does not exist).
9916 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9917 cat >conftest.$ac_ext <<_ACEOF
9920 cat confdefs.h >>conftest.$ac_ext
9921 cat >>conftest.$ac_ext <<_ACEOF
9922 /* end confdefs.h. */
9924 /* Override any gcc2 internal prototype to avoid an error. */
9928 /* We use char because int might match the return type of a gcc2
9929 builtin and then its argument prototype would still apply. */
9930 char XOpenDisplay ();
9939 rm -f conftest.$ac_objext conftest$ac_exeext
9940 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9941 (eval $ac_link) 2>conftest.er1
9943 grep -v '^ *+' conftest.er1 >conftest.err
9945 cat conftest.err >&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); } &&
9948 { ac_try='test -z "$ac_c_werror_flag"
9949 || test ! -s conftest.err'
9950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); }; } &&
9955 { ac_try='test -s conftest$ac_exeext'
9956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9960 (exit $ac_status); }; }; then
9963 echo "$as_me: failed program was:" >&5
9964 sed 's/^/| /' conftest.$ac_ext >&5
9966 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9967 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9968 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 ac_check_lib_save_LIBS=$LIBS
9973 cat >conftest.$ac_ext <<_ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h. */
9980 /* Override any gcc2 internal prototype to avoid an error. */
9984 /* We use char because int might match the return type of a gcc2
9985 builtin and then its argument prototype would still apply. */
9995 rm -f conftest.$ac_objext conftest$ac_exeext
9996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9997 (eval $ac_link) 2>conftest.er1
9999 grep -v '^ *+' conftest.er1 >conftest.err
10001 cat conftest.err >&5
10002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003 (exit $ac_status); } &&
10004 { ac_try='test -z "$ac_c_werror_flag"
10005 || test ! -s conftest.err'
10006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10007 (eval $ac_try) 2>&5
10009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10010 (exit $ac_status); }; } &&
10011 { ac_try='test -s conftest$ac_exeext'
10012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10013 (eval $ac_try) 2>&5
10015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); }; }; then
10017 ac_cv_lib_dnet_dnet_ntoa=yes
10019 echo "$as_me: failed program was:" >&5
10020 sed 's/^/| /' conftest.$ac_ext >&5
10022 ac_cv_lib_dnet_dnet_ntoa=no
10024 rm -f conftest.err conftest.$ac_objext \
10025 conftest$ac_exeext conftest.$ac_ext
10026 LIBS=$ac_check_lib_save_LIBS
10028 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10029 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10030 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10031 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10034 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10035 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10036 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10037 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10038 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 ac_check_lib_save_LIBS=$LIBS
10041 LIBS="-ldnet_stub $LIBS"
10042 cat >conftest.$ac_ext <<_ACEOF
10045 cat confdefs.h >>conftest.$ac_ext
10046 cat >>conftest.$ac_ext <<_ACEOF
10047 /* end confdefs.h. */
10049 /* Override any gcc2 internal prototype to avoid an error. */
10053 /* We use char because int might match the return type of a gcc2
10054 builtin and then its argument prototype would still apply. */
10064 rm -f conftest.$ac_objext conftest$ac_exeext
10065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10066 (eval $ac_link) 2>conftest.er1
10068 grep -v '^ *+' conftest.er1 >conftest.err
10070 cat conftest.err >&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } &&
10073 { ac_try='test -z "$ac_c_werror_flag"
10074 || test ! -s conftest.err'
10075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10076 (eval $ac_try) 2>&5
10078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079 (exit $ac_status); }; } &&
10080 { ac_try='test -s conftest$ac_exeext'
10081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10082 (eval $ac_try) 2>&5
10084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10085 (exit $ac_status); }; }; then
10086 ac_cv_lib_dnet_stub_dnet_ntoa=yes
10088 echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10091 ac_cv_lib_dnet_stub_dnet_ntoa=no
10093 rm -f conftest.err conftest.$ac_objext \
10094 conftest$ac_exeext conftest.$ac_ext
10095 LIBS=$ac_check_lib_save_LIBS
10097 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10098 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10099 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10100 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10105 rm -f conftest.err conftest.$ac_objext \
10106 conftest$ac_exeext conftest.$ac_ext
10107 LIBS="$ac_xsave_LIBS"
10109 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10110 # to get the SysV transport functions.
10111 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10113 # The nsl library prevents programs from opening the X display
10114 # on Irix 5.2, according to T.E. Dickey.
10115 # The functions gethostbyname, getservbyname, and inet_addr are
10116 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10117 echo "$as_me:$LINENO: checking for gethostbyname" >&5
10118 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10119 if test "${ac_cv_func_gethostbyname+set}" = set; then
10120 echo $ECHO_N "(cached) $ECHO_C" >&6
10122 cat >conftest.$ac_ext <<_ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h. */
10128 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10130 #define gethostbyname innocuous_gethostbyname
10132 /* System header to define __stub macros and hopefully few prototypes,
10133 which can conflict with char gethostbyname (); below.
10134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10135 <limits.h> exists even on freestanding compilers. */
10138 # include <limits.h>
10140 # include <assert.h>
10143 #undef gethostbyname
10145 /* Override any gcc2 internal prototype to avoid an error. */
10150 /* We use char because int might match the return type of a gcc2
10151 builtin and then its argument prototype would still apply. */
10152 char gethostbyname ();
10153 /* The GNU C library defines this for functions which it implements
10154 to always fail with ENOSYS. Some functions are actually named
10155 something starting with __ and the normal name is an alias. */
10156 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10159 char (*f) () = gethostbyname;
10168 return f != gethostbyname;
10173 rm -f conftest.$ac_objext conftest$ac_exeext
10174 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10175 (eval $ac_link) 2>conftest.er1
10177 grep -v '^ *+' conftest.er1 >conftest.err
10179 cat conftest.err >&5
10180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181 (exit $ac_status); } &&
10182 { ac_try='test -z "$ac_c_werror_flag"
10183 || test ! -s conftest.err'
10184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10185 (eval $ac_try) 2>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; } &&
10189 { ac_try='test -s conftest$ac_exeext'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; }; then
10195 ac_cv_func_gethostbyname=yes
10197 echo "$as_me: failed program was:" >&5
10198 sed 's/^/| /' conftest.$ac_ext >&5
10200 ac_cv_func_gethostbyname=no
10202 rm -f conftest.err conftest.$ac_objext \
10203 conftest$ac_exeext conftest.$ac_ext
10205 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10206 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10208 if test $ac_cv_func_gethostbyname = no; then
10209 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10210 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10211 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10212 echo $ECHO_N "(cached) $ECHO_C" >&6
10214 ac_check_lib_save_LIBS=$LIBS
10216 cat >conftest.$ac_ext <<_ACEOF
10219 cat confdefs.h >>conftest.$ac_ext
10220 cat >>conftest.$ac_ext <<_ACEOF
10221 /* end confdefs.h. */
10223 /* Override any gcc2 internal prototype to avoid an error. */
10227 /* We use char because int might match the return type of a gcc2
10228 builtin and then its argument prototype would still apply. */
10229 char gethostbyname ();
10238 rm -f conftest.$ac_objext conftest$ac_exeext
10239 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10240 (eval $ac_link) 2>conftest.er1
10242 grep -v '^ *+' conftest.er1 >conftest.err
10244 cat conftest.err >&5
10245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10246 (exit $ac_status); } &&
10247 { ac_try='test -z "$ac_c_werror_flag"
10248 || test ! -s conftest.err'
10249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10250 (eval $ac_try) 2>&5
10252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10253 (exit $ac_status); }; } &&
10254 { ac_try='test -s conftest$ac_exeext'
10255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10256 (eval $ac_try) 2>&5
10258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10259 (exit $ac_status); }; }; then
10260 ac_cv_lib_nsl_gethostbyname=yes
10262 echo "$as_me: failed program was:" >&5
10263 sed 's/^/| /' conftest.$ac_ext >&5
10265 ac_cv_lib_nsl_gethostbyname=no
10267 rm -f conftest.err conftest.$ac_objext \
10268 conftest$ac_exeext conftest.$ac_ext
10269 LIBS=$ac_check_lib_save_LIBS
10271 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10272 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10273 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10274 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10277 if test $ac_cv_lib_nsl_gethostbyname = no; then
10278 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10279 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10280 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 ac_check_lib_save_LIBS=$LIBS
10285 cat >conftest.$ac_ext <<_ACEOF
10288 cat confdefs.h >>conftest.$ac_ext
10289 cat >>conftest.$ac_ext <<_ACEOF
10290 /* end confdefs.h. */
10292 /* Override any gcc2 internal prototype to avoid an error. */
10296 /* We use char because int might match the return type of a gcc2
10297 builtin and then its argument prototype would still apply. */
10298 char gethostbyname ();
10307 rm -f conftest.$ac_objext conftest$ac_exeext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10309 (eval $ac_link) 2>conftest.er1
10311 grep -v '^ *+' conftest.er1 >conftest.err
10313 cat conftest.err >&5
10314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315 (exit $ac_status); } &&
10316 { ac_try='test -z "$ac_c_werror_flag"
10317 || test ! -s conftest.err'
10318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319 (eval $ac_try) 2>&5
10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322 (exit $ac_status); }; } &&
10323 { ac_try='test -s conftest$ac_exeext'
10324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325 (eval $ac_try) 2>&5
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
10329 ac_cv_lib_bsd_gethostbyname=yes
10331 echo "$as_me: failed program was:" >&5
10332 sed 's/^/| /' conftest.$ac_ext >&5
10334 ac_cv_lib_bsd_gethostbyname=no
10336 rm -f conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
10338 LIBS=$ac_check_lib_save_LIBS
10340 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10341 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10342 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10343 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10349 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10350 # socket/setsockopt and other routines are undefined under SCO ODT
10351 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10352 # on later versions), says Simon Leinen: it contains gethostby*
10353 # variants that don't use the name server (or something). -lsocket
10354 # must be given before -lnsl if both are needed. We assume that
10355 # if connect needs -lnsl, so does gethostbyname.
10356 echo "$as_me:$LINENO: checking for connect" >&5
10357 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10358 if test "${ac_cv_func_connect+set}" = set; then
10359 echo $ECHO_N "(cached) $ECHO_C" >&6
10361 cat >conftest.$ac_ext <<_ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10367 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10369 #define connect innocuous_connect
10371 /* System header to define __stub macros and hopefully few prototypes,
10372 which can conflict with char connect (); below.
10373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10374 <limits.h> exists even on freestanding compilers. */
10377 # include <limits.h>
10379 # include <assert.h>
10384 /* Override any gcc2 internal prototype to avoid an error. */
10389 /* We use char because int might match the return type of a gcc2
10390 builtin and then its argument prototype would still apply. */
10392 /* The GNU C library defines this for functions which it implements
10393 to always fail with ENOSYS. Some functions are actually named
10394 something starting with __ and the normal name is an alias. */
10395 #if defined (__stub_connect) || defined (__stub___connect)
10398 char (*f) () = connect;
10407 return f != connect;
10412 rm -f conftest.$ac_objext conftest$ac_exeext
10413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10414 (eval $ac_link) 2>conftest.er1
10416 grep -v '^ *+' conftest.er1 >conftest.err
10418 cat conftest.err >&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } &&
10421 { ac_try='test -z "$ac_c_werror_flag"
10422 || test ! -s conftest.err'
10423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10424 (eval $ac_try) 2>&5
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; } &&
10428 { ac_try='test -s conftest$ac_exeext'
10429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10430 (eval $ac_try) 2>&5
10432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10433 (exit $ac_status); }; }; then
10434 ac_cv_func_connect=yes
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.$ac_ext >&5
10439 ac_cv_func_connect=no
10441 rm -f conftest.err conftest.$ac_objext \
10442 conftest$ac_exeext conftest.$ac_ext
10444 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10445 echo "${ECHO_T}$ac_cv_func_connect" >&6
10447 if test $ac_cv_func_connect = no; then
10448 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10449 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10450 if test "${ac_cv_lib_socket_connect+set}" = set; then
10451 echo $ECHO_N "(cached) $ECHO_C" >&6
10453 ac_check_lib_save_LIBS=$LIBS
10454 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10455 cat >conftest.$ac_ext <<_ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10462 /* Override any gcc2 internal prototype to avoid an error. */
10466 /* We use char because int might match the return type of a gcc2
10467 builtin and then its argument prototype would still apply. */
10477 rm -f conftest.$ac_objext conftest$ac_exeext
10478 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10479 (eval $ac_link) 2>conftest.er1
10481 grep -v '^ *+' conftest.er1 >conftest.err
10483 cat conftest.err >&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); } &&
10486 { ac_try='test -z "$ac_c_werror_flag"
10487 || test ! -s conftest.err'
10488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10489 (eval $ac_try) 2>&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; } &&
10493 { ac_try='test -s conftest$ac_exeext'
10494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10495 (eval $ac_try) 2>&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }; }; then
10499 ac_cv_lib_socket_connect=yes
10501 echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10504 ac_cv_lib_socket_connect=no
10506 rm -f conftest.err conftest.$ac_objext \
10507 conftest$ac_exeext conftest.$ac_ext
10508 LIBS=$ac_check_lib_save_LIBS
10510 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10511 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10512 if test $ac_cv_lib_socket_connect = yes; then
10513 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10518 # Guillermo Gomez says -lposix is necessary on A/UX.
10519 echo "$as_me:$LINENO: checking for remove" >&5
10520 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10521 if test "${ac_cv_func_remove+set}" = set; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10524 cat >conftest.$ac_ext <<_ACEOF
10527 cat confdefs.h >>conftest.$ac_ext
10528 cat >>conftest.$ac_ext <<_ACEOF
10529 /* end confdefs.h. */
10530 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10532 #define remove innocuous_remove
10534 /* System header to define __stub macros and hopefully few prototypes,
10535 which can conflict with char remove (); below.
10536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10537 <limits.h> exists even on freestanding compilers. */
10540 # include <limits.h>
10542 # include <assert.h>
10547 /* Override any gcc2 internal prototype to avoid an error. */
10552 /* We use char because int might match the return type of a gcc2
10553 builtin and then its argument prototype would still apply. */
10555 /* The GNU C library defines this for functions which it implements
10556 to always fail with ENOSYS. Some functions are actually named
10557 something starting with __ and the normal name is an alias. */
10558 #if defined (__stub_remove) || defined (__stub___remove)
10561 char (*f) () = remove;
10570 return f != remove;
10575 rm -f conftest.$ac_objext conftest$ac_exeext
10576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10577 (eval $ac_link) 2>conftest.er1
10579 grep -v '^ *+' conftest.er1 >conftest.err
10581 cat conftest.err >&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } &&
10584 { ac_try='test -z "$ac_c_werror_flag"
10585 || test ! -s conftest.err'
10586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10587 (eval $ac_try) 2>&5
10589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10590 (exit $ac_status); }; } &&
10591 { ac_try='test -s conftest$ac_exeext'
10592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10593 (eval $ac_try) 2>&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); }; }; then
10597 ac_cv_func_remove=yes
10599 echo "$as_me: failed program was:" >&5
10600 sed 's/^/| /' conftest.$ac_ext >&5
10602 ac_cv_func_remove=no
10604 rm -f conftest.err conftest.$ac_objext \
10605 conftest$ac_exeext conftest.$ac_ext
10607 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10608 echo "${ECHO_T}$ac_cv_func_remove" >&6
10610 if test $ac_cv_func_remove = no; then
10611 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10612 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10613 if test "${ac_cv_lib_posix_remove+set}" = set; then
10614 echo $ECHO_N "(cached) $ECHO_C" >&6
10616 ac_check_lib_save_LIBS=$LIBS
10617 LIBS="-lposix $LIBS"
10618 cat >conftest.$ac_ext <<_ACEOF
10621 cat confdefs.h >>conftest.$ac_ext
10622 cat >>conftest.$ac_ext <<_ACEOF
10623 /* end confdefs.h. */
10625 /* Override any gcc2 internal prototype to avoid an error. */
10629 /* We use char because int might match the return type of a gcc2
10630 builtin and then its argument prototype would still apply. */
10640 rm -f conftest.$ac_objext conftest$ac_exeext
10641 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10642 (eval $ac_link) 2>conftest.er1
10644 grep -v '^ *+' conftest.er1 >conftest.err
10646 cat conftest.err >&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); } &&
10649 { ac_try='test -z "$ac_c_werror_flag"
10650 || test ! -s conftest.err'
10651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10652 (eval $ac_try) 2>&5
10654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655 (exit $ac_status); }; } &&
10656 { ac_try='test -s conftest$ac_exeext'
10657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10658 (eval $ac_try) 2>&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
10662 ac_cv_lib_posix_remove=yes
10664 echo "$as_me: failed program was:" >&5
10665 sed 's/^/| /' conftest.$ac_ext >&5
10667 ac_cv_lib_posix_remove=no
10669 rm -f conftest.err conftest.$ac_objext \
10670 conftest$ac_exeext conftest.$ac_ext
10671 LIBS=$ac_check_lib_save_LIBS
10673 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10674 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10675 if test $ac_cv_lib_posix_remove = yes; then
10676 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10681 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10682 echo "$as_me:$LINENO: checking for shmat" >&5
10683 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10684 if test "${ac_cv_func_shmat+set}" = set; then
10685 echo $ECHO_N "(cached) $ECHO_C" >&6
10687 cat >conftest.$ac_ext <<_ACEOF
10690 cat confdefs.h >>conftest.$ac_ext
10691 cat >>conftest.$ac_ext <<_ACEOF
10692 /* end confdefs.h. */
10693 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10695 #define shmat innocuous_shmat
10697 /* System header to define __stub macros and hopefully few prototypes,
10698 which can conflict with char shmat (); below.
10699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10700 <limits.h> exists even on freestanding compilers. */
10703 # include <limits.h>
10705 # include <assert.h>
10710 /* Override any gcc2 internal prototype to avoid an error. */
10715 /* We use char because int might match the return type of a gcc2
10716 builtin and then its argument prototype would still apply. */
10718 /* The GNU C library defines this for functions which it implements
10719 to always fail with ENOSYS. Some functions are actually named
10720 something starting with __ and the normal name is an alias. */
10721 #if defined (__stub_shmat) || defined (__stub___shmat)
10724 char (*f) () = shmat;
10738 rm -f conftest.$ac_objext conftest$ac_exeext
10739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10740 (eval $ac_link) 2>conftest.er1
10742 grep -v '^ *+' conftest.er1 >conftest.err
10744 cat conftest.err >&5
10745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10746 (exit $ac_status); } &&
10747 { ac_try='test -z "$ac_c_werror_flag"
10748 || test ! -s conftest.err'
10749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750 (eval $ac_try) 2>&5
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; } &&
10754 { ac_try='test -s conftest$ac_exeext'
10755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10756 (eval $ac_try) 2>&5
10758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10759 (exit $ac_status); }; }; then
10760 ac_cv_func_shmat=yes
10762 echo "$as_me: failed program was:" >&5
10763 sed 's/^/| /' conftest.$ac_ext >&5
10765 ac_cv_func_shmat=no
10767 rm -f conftest.err conftest.$ac_objext \
10768 conftest$ac_exeext conftest.$ac_ext
10770 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10771 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10773 if test $ac_cv_func_shmat = no; then
10774 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10775 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10776 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10779 ac_check_lib_save_LIBS=$LIBS
10781 cat >conftest.$ac_ext <<_ACEOF
10784 cat confdefs.h >>conftest.$ac_ext
10785 cat >>conftest.$ac_ext <<_ACEOF
10786 /* end confdefs.h. */
10788 /* Override any gcc2 internal prototype to avoid an error. */
10792 /* We use char because int might match the return type of a gcc2
10793 builtin and then its argument prototype would still apply. */
10803 rm -f conftest.$ac_objext conftest$ac_exeext
10804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10805 (eval $ac_link) 2>conftest.er1
10807 grep -v '^ *+' conftest.er1 >conftest.err
10809 cat conftest.err >&5
10810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811 (exit $ac_status); } &&
10812 { ac_try='test -z "$ac_c_werror_flag"
10813 || test ! -s conftest.err'
10814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10815 (eval $ac_try) 2>&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; } &&
10819 { ac_try='test -s conftest$ac_exeext'
10820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10821 (eval $ac_try) 2>&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); }; }; then
10825 ac_cv_lib_ipc_shmat=yes
10827 echo "$as_me: failed program was:" >&5
10828 sed 's/^/| /' conftest.$ac_ext >&5
10830 ac_cv_lib_ipc_shmat=no
10832 rm -f conftest.err conftest.$ac_objext \
10833 conftest$ac_exeext conftest.$ac_ext
10834 LIBS=$ac_check_lib_save_LIBS
10836 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10837 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10838 if test $ac_cv_lib_ipc_shmat = yes; then
10839 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10845 # Check for libraries that X11R6 Xt/Xaw programs need.
10846 ac_save_LDFLAGS=$LDFLAGS
10847 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10848 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10849 # check for ICE first), but we must link in the order -lSM -lICE or
10850 # we get undefined symbols. So assume we have SM if we have ICE.
10851 # These have to be linked with before -lX11, unlike the other
10852 # libraries we check for below, so use a different variable.
10853 # John Interrante, Karl Berry
10854 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10855 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10856 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10857 echo $ECHO_N "(cached) $ECHO_C" >&6
10859 ac_check_lib_save_LIBS=$LIBS
10860 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10861 cat >conftest.$ac_ext <<_ACEOF
10864 cat confdefs.h >>conftest.$ac_ext
10865 cat >>conftest.$ac_ext <<_ACEOF
10866 /* end confdefs.h. */
10868 /* Override any gcc2 internal prototype to avoid an error. */
10872 /* We use char because int might match the return type of a gcc2
10873 builtin and then its argument prototype would still apply. */
10874 char IceConnectionNumber ();
10878 IceConnectionNumber ();
10883 rm -f conftest.$ac_objext conftest$ac_exeext
10884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10885 (eval $ac_link) 2>conftest.er1
10887 grep -v '^ *+' conftest.er1 >conftest.err
10889 cat conftest.err >&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); } &&
10892 { ac_try='test -z "$ac_c_werror_flag"
10893 || test ! -s conftest.err'
10894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10895 (eval $ac_try) 2>&5
10897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10898 (exit $ac_status); }; } &&
10899 { ac_try='test -s conftest$ac_exeext'
10900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10901 (eval $ac_try) 2>&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }; }; then
10905 ac_cv_lib_ICE_IceConnectionNumber=yes
10907 echo "$as_me: failed program was:" >&5
10908 sed 's/^/| /' conftest.$ac_ext >&5
10910 ac_cv_lib_ICE_IceConnectionNumber=no
10912 rm -f conftest.err conftest.$ac_objext \
10913 conftest$ac_exeext conftest.$ac_ext
10914 LIBS=$ac_check_lib_save_LIBS
10916 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10917 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10918 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10919 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10922 LDFLAGS=$ac_save_LDFLAGS
10984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10985 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10986 echo "$as_me:$LINENO: checking for $ac_header" >&5
10987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10988 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10991 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10992 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10994 # Is the header compilable?
10995 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10997 cat >conftest.$ac_ext <<_ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h. */
11003 $ac_includes_default
11004 #include <$ac_header>
11006 rm -f conftest.$ac_objext
11007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11008 (eval $ac_compile) 2>conftest.er1
11010 grep -v '^ *+' conftest.er1 >conftest.err
11012 cat conftest.err >&5
11013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014 (exit $ac_status); } &&
11015 { ac_try='test -z "$ac_c_werror_flag"
11016 || test ! -s conftest.err'
11017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11018 (eval $ac_try) 2>&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); }; } &&
11022 { ac_try='test -s conftest.$ac_objext'
11023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11024 (eval $ac_try) 2>&5
11026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027 (exit $ac_status); }; }; then
11028 ac_header_compiler=yes
11030 echo "$as_me: failed program was:" >&5
11031 sed 's/^/| /' conftest.$ac_ext >&5
11033 ac_header_compiler=no
11035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11036 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11037 echo "${ECHO_T}$ac_header_compiler" >&6
11039 # Is the header present?
11040 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11041 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11042 cat >conftest.$ac_ext <<_ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048 #include <$ac_header>
11050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11053 grep -v '^ *+' conftest.er1 >conftest.err
11055 cat conftest.err >&5
11056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } >/dev/null; then
11058 if test -s conftest.err; then
11059 ac_cpp_err=$ac_c_preproc_warn_flag
11060 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11067 if test -z "$ac_cpp_err"; then
11068 ac_header_preproc=yes
11070 echo "$as_me: failed program was:" >&5
11071 sed 's/^/| /' conftest.$ac_ext >&5
11073 ac_header_preproc=no
11075 rm -f conftest.err conftest.$ac_ext
11076 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11077 echo "${ECHO_T}$ac_header_preproc" >&6
11079 # So? What about this header?
11080 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11082 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11083 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11085 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11086 ac_header_preproc=yes
11089 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11090 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11091 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11092 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11093 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11094 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11095 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11096 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11097 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11098 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11099 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11100 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11103 ## ------------------------------------------ ##
11104 ## Report this to the AC_PACKAGE_NAME lists. ##
11105 ## ------------------------------------------ ##
11108 sed "s/^/$as_me: WARNING: /" >&2
11111 echo "$as_me:$LINENO: checking for $ac_header" >&5
11112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11113 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11114 echo $ECHO_N "(cached) $ECHO_C" >&6
11116 eval "$as_ac_Header=\$ac_header_preproc"
11118 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11119 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11122 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11123 cat >>confdefs.h <<_ACEOF
11124 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11131 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11132 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11133 if test "${ac_cv_header_stdc+set}" = set; then
11134 echo $ECHO_N "(cached) $ECHO_C" >&6
11136 cat >conftest.$ac_ext <<_ACEOF
11139 cat confdefs.h >>conftest.$ac_ext
11140 cat >>conftest.$ac_ext <<_ACEOF
11141 /* end confdefs.h. */
11142 #include <stdlib.h>
11143 #include <stdarg.h>
11144 #include <string.h>
11155 rm -f conftest.$ac_objext
11156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11157 (eval $ac_compile) 2>conftest.er1
11159 grep -v '^ *+' conftest.er1 >conftest.err
11161 cat conftest.err >&5
11162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11163 (exit $ac_status); } &&
11164 { ac_try='test -z "$ac_c_werror_flag"
11165 || test ! -s conftest.err'
11166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11167 (eval $ac_try) 2>&5
11169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11170 (exit $ac_status); }; } &&
11171 { ac_try='test -s conftest.$ac_objext'
11172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11173 (eval $ac_try) 2>&5
11175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11176 (exit $ac_status); }; }; then
11177 ac_cv_header_stdc=yes
11179 echo "$as_me: failed program was:" >&5
11180 sed 's/^/| /' conftest.$ac_ext >&5
11182 ac_cv_header_stdc=no
11184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11186 if test $ac_cv_header_stdc = yes; then
11187 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11188 cat >conftest.$ac_ext <<_ACEOF
11191 cat confdefs.h >>conftest.$ac_ext
11192 cat >>conftest.$ac_ext <<_ACEOF
11193 /* end confdefs.h. */
11194 #include <string.h>
11197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11198 $EGREP "memchr" >/dev/null 2>&1; then
11201 ac_cv_header_stdc=no
11207 if test $ac_cv_header_stdc = yes; then
11208 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11209 cat >conftest.$ac_ext <<_ACEOF
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h. */
11215 #include <stdlib.h>
11218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11219 $EGREP "free" >/dev/null 2>&1; then
11222 ac_cv_header_stdc=no
11228 if test $ac_cv_header_stdc = yes; then
11229 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11230 if test "$cross_compiling" = yes; then
11233 cat >conftest.$ac_ext <<_ACEOF
11236 cat confdefs.h >>conftest.$ac_ext
11237 cat >>conftest.$ac_ext <<_ACEOF
11238 /* end confdefs.h. */
11240 #if ((' ' & 0x0FF) == 0x020)
11241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11244 # define ISLOWER(c) \
11245 (('a' <= (c) && (c) <= 'i') \
11246 || ('j' <= (c) && (c) <= 'r') \
11247 || ('s' <= (c) && (c) <= 'z'))
11248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11256 for (i = 0; i < 256; i++)
11257 if (XOR (islower (i), ISLOWER (i))
11258 || toupper (i) != TOUPPER (i))
11263 rm -f conftest$ac_exeext
11264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11265 (eval $ac_link) 2>&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11270 (eval $ac_try) 2>&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); }; }; then
11276 echo "$as_me: program exited with status $ac_status" >&5
11277 echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11280 ( exit $ac_status )
11281 ac_cv_header_stdc=no
11283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11287 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11288 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11289 if test $ac_cv_header_stdc = yes; then
11291 cat >>confdefs.h <<\_ACEOF
11292 #define STDC_HEADERS 1
11297 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
11298 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
11299 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
11300 echo $ECHO_N "(cached) $ECHO_C" >&6
11302 cat >conftest.$ac_ext <<_ACEOF
11305 cat confdefs.h >>conftest.$ac_ext
11306 cat >>conftest.$ac_ext <<_ACEOF
11307 /* end confdefs.h. */
11308 #include <sys/types.h>
11312 return makedev(0, 0);
11317 rm -f conftest.$ac_objext conftest$ac_exeext
11318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11319 (eval $ac_link) 2>conftest.er1
11321 grep -v '^ *+' conftest.er1 >conftest.err
11323 cat conftest.err >&5
11324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); } &&
11326 { ac_try='test -z "$ac_c_werror_flag"
11327 || test ! -s conftest.err'
11328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11329 (eval $ac_try) 2>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; } &&
11333 { ac_try='test -s conftest$ac_exeext'
11334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11335 (eval $ac_try) 2>&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); }; }; then
11339 ac_cv_header_sys_types_h_makedev=yes
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11344 ac_cv_header_sys_types_h_makedev=no
11346 rm -f conftest.err conftest.$ac_objext \
11347 conftest$ac_exeext conftest.$ac_ext
11350 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11351 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11353 if test $ac_cv_header_sys_types_h_makedev = no; then
11354 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11355 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11356 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11357 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11361 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11363 # Is the header compilable?
11364 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11365 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11366 cat >conftest.$ac_ext <<_ACEOF
11369 cat confdefs.h >>conftest.$ac_ext
11370 cat >>conftest.$ac_ext <<_ACEOF
11371 /* end confdefs.h. */
11372 $ac_includes_default
11373 #include <sys/mkdev.h>
11375 rm -f conftest.$ac_objext
11376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11377 (eval $ac_compile) 2>conftest.er1
11379 grep -v '^ *+' conftest.er1 >conftest.err
11381 cat conftest.err >&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } &&
11384 { ac_try='test -z "$ac_c_werror_flag"
11385 || test ! -s conftest.err'
11386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11387 (eval $ac_try) 2>&5
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); }; } &&
11391 { ac_try='test -s conftest.$ac_objext'
11392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11393 (eval $ac_try) 2>&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); }; }; then
11397 ac_header_compiler=yes
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11402 ac_header_compiler=no
11404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11405 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11406 echo "${ECHO_T}$ac_header_compiler" >&6
11408 # Is the header present?
11409 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11410 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11411 cat >conftest.$ac_ext <<_ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h. */
11417 #include <sys/mkdev.h>
11419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11422 grep -v '^ *+' conftest.er1 >conftest.err
11424 cat conftest.err >&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); } >/dev/null; then
11427 if test -s conftest.err; then
11428 ac_cpp_err=$ac_c_preproc_warn_flag
11429 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11436 if test -z "$ac_cpp_err"; then
11437 ac_header_preproc=yes
11439 echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.$ac_ext >&5
11442 ac_header_preproc=no
11444 rm -f conftest.err conftest.$ac_ext
11445 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11446 echo "${ECHO_T}$ac_header_preproc" >&6
11448 # So? What about this header?
11449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11451 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11452 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11454 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11455 ac_header_preproc=yes
11458 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11459 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
11461 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
11462 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11463 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11464 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
11465 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
11466 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11467 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11468 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11469 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11472 ## ------------------------------------------ ##
11473 ## Report this to the AC_PACKAGE_NAME lists. ##
11474 ## ------------------------------------------ ##
11477 sed "s/^/$as_me: WARNING: /" >&2
11480 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11481 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11482 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
11485 ac_cv_header_sys_mkdev_h=$ac_header_preproc
11487 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11488 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11491 if test $ac_cv_header_sys_mkdev_h = yes; then
11493 cat >>confdefs.h <<\_ACEOF
11494 #define MAJOR_IN_MKDEV 1
11501 if test $ac_cv_header_sys_mkdev_h = no; then
11502 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11503 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11504 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11505 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11506 echo $ECHO_N "(cached) $ECHO_C" >&6
11508 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11509 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11511 # Is the header compilable?
11512 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11513 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11514 cat >conftest.$ac_ext <<_ACEOF
11517 cat confdefs.h >>conftest.$ac_ext
11518 cat >>conftest.$ac_ext <<_ACEOF
11519 /* end confdefs.h. */
11520 $ac_includes_default
11521 #include <sys/sysmacros.h>
11523 rm -f conftest.$ac_objext
11524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11525 (eval $ac_compile) 2>conftest.er1
11527 grep -v '^ *+' conftest.er1 >conftest.err
11529 cat conftest.err >&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } &&
11532 { ac_try='test -z "$ac_c_werror_flag"
11533 || test ! -s conftest.err'
11534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535 (eval $ac_try) 2>&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; } &&
11539 { ac_try='test -s conftest.$ac_objext'
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; }; then
11545 ac_header_compiler=yes
11547 echo "$as_me: failed program was:" >&5
11548 sed 's/^/| /' conftest.$ac_ext >&5
11550 ac_header_compiler=no
11552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11554 echo "${ECHO_T}$ac_header_compiler" >&6
11556 # Is the header present?
11557 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11558 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11559 cat >conftest.$ac_ext <<_ACEOF
11562 cat confdefs.h >>conftest.$ac_ext
11563 cat >>conftest.$ac_ext <<_ACEOF
11564 /* end confdefs.h. */
11565 #include <sys/sysmacros.h>
11567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11570 grep -v '^ *+' conftest.er1 >conftest.err
11572 cat conftest.err >&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); } >/dev/null; then
11575 if test -s conftest.err; then
11576 ac_cpp_err=$ac_c_preproc_warn_flag
11577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11584 if test -z "$ac_cpp_err"; then
11585 ac_header_preproc=yes
11587 echo "$as_me: failed program was:" >&5
11588 sed 's/^/| /' conftest.$ac_ext >&5
11590 ac_header_preproc=no
11592 rm -f conftest.err conftest.$ac_ext
11593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11594 echo "${ECHO_T}$ac_header_preproc" >&6
11596 # So? What about this header?
11597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11599 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11600 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11601 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11602 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11603 ac_header_preproc=yes
11606 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11607 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11608 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
11609 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
11610 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11611 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11612 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
11613 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11615 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11617 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11620 ## ------------------------------------------ ##
11621 ## Report this to the AC_PACKAGE_NAME lists. ##
11622 ## ------------------------------------------ ##
11625 sed "s/^/$as_me: WARNING: /" >&2
11628 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11629 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11630 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11633 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11635 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11636 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11639 if test $ac_cv_header_sys_sysmacros_h = yes; then
11641 cat >>confdefs.h <<\_ACEOF
11642 #define MAJOR_IN_SYSMACROS 1
11656 ac_header_dirent=no
11657 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11658 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11659 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11660 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11661 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11662 echo $ECHO_N "(cached) $ECHO_C" >&6
11664 cat >conftest.$ac_ext <<_ACEOF
11667 cat confdefs.h >>conftest.$ac_ext
11668 cat >>conftest.$ac_ext <<_ACEOF
11669 /* end confdefs.h. */
11670 #include <sys/types.h>
11682 rm -f conftest.$ac_objext
11683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11684 (eval $ac_compile) 2>conftest.er1
11686 grep -v '^ *+' conftest.er1 >conftest.err
11688 cat conftest.err >&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } &&
11691 { ac_try='test -z "$ac_c_werror_flag"
11692 || test ! -s conftest.err'
11693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11694 (eval $ac_try) 2>&5
11696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11697 (exit $ac_status); }; } &&
11698 { ac_try='test -s conftest.$ac_objext'
11699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11700 (eval $ac_try) 2>&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); }; }; then
11704 eval "$as_ac_Header=yes"
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11709 eval "$as_ac_Header=no"
11711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11716 cat >>confdefs.h <<_ACEOF
11717 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11720 ac_header_dirent=$ac_hdr; break
11724 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11725 if test $ac_header_dirent = dirent.h; then
11726 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11727 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11728 if test "${ac_cv_search_opendir+set}" = set; then
11729 echo $ECHO_N "(cached) $ECHO_C" >&6
11731 ac_func_search_save_LIBS=$LIBS
11732 ac_cv_search_opendir=no
11733 cat >conftest.$ac_ext <<_ACEOF
11736 cat confdefs.h >>conftest.$ac_ext
11737 cat >>conftest.$ac_ext <<_ACEOF
11738 /* end confdefs.h. */
11740 /* Override any gcc2 internal prototype to avoid an error. */
11744 /* We use char because int might match the return type of a gcc2
11745 builtin and then its argument prototype would still apply. */
11755 rm -f conftest.$ac_objext conftest$ac_exeext
11756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11757 (eval $ac_link) 2>conftest.er1
11759 grep -v '^ *+' conftest.er1 >conftest.err
11761 cat conftest.err >&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); } &&
11764 { ac_try='test -z "$ac_c_werror_flag"
11765 || test ! -s conftest.err'
11766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; } &&
11771 { ac_try='test -s conftest$ac_exeext'
11772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11773 (eval $ac_try) 2>&5
11775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); }; }; then
11777 ac_cv_search_opendir="none required"
11779 echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.$ac_ext >&5
11783 rm -f conftest.err conftest.$ac_objext \
11784 conftest$ac_exeext conftest.$ac_ext
11785 if test "$ac_cv_search_opendir" = no; then
11786 for ac_lib in dir; do
11787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11788 cat >conftest.$ac_ext <<_ACEOF
11791 cat confdefs.h >>conftest.$ac_ext
11792 cat >>conftest.$ac_ext <<_ACEOF
11793 /* end confdefs.h. */
11795 /* Override any gcc2 internal prototype to avoid an error. */
11799 /* We use char because int might match the return type of a gcc2
11800 builtin and then its argument prototype would still apply. */
11810 rm -f conftest.$ac_objext conftest$ac_exeext
11811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11812 (eval $ac_link) 2>conftest.er1
11814 grep -v '^ *+' conftest.er1 >conftest.err
11816 cat conftest.err >&5
11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11818 (exit $ac_status); } &&
11819 { ac_try='test -z "$ac_c_werror_flag"
11820 || test ! -s conftest.err'
11821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11822 (eval $ac_try) 2>&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; } &&
11826 { ac_try='test -s conftest$ac_exeext'
11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11828 (eval $ac_try) 2>&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); }; }; then
11832 ac_cv_search_opendir="-l$ac_lib"
11835 echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11839 rm -f conftest.err conftest.$ac_objext \
11840 conftest$ac_exeext conftest.$ac_ext
11843 LIBS=$ac_func_search_save_LIBS
11845 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11846 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11847 if test "$ac_cv_search_opendir" != no; then
11848 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11853 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11854 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11855 if test "${ac_cv_search_opendir+set}" = set; then
11856 echo $ECHO_N "(cached) $ECHO_C" >&6
11858 ac_func_search_save_LIBS=$LIBS
11859 ac_cv_search_opendir=no
11860 cat >conftest.$ac_ext <<_ACEOF
11863 cat confdefs.h >>conftest.$ac_ext
11864 cat >>conftest.$ac_ext <<_ACEOF
11865 /* end confdefs.h. */
11867 /* Override any gcc2 internal prototype to avoid an error. */
11871 /* We use char because int might match the return type of a gcc2
11872 builtin and then its argument prototype would still apply. */
11882 rm -f conftest.$ac_objext conftest$ac_exeext
11883 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11884 (eval $ac_link) 2>conftest.er1
11886 grep -v '^ *+' conftest.er1 >conftest.err
11888 cat conftest.err >&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } &&
11891 { ac_try='test -z "$ac_c_werror_flag"
11892 || test ! -s conftest.err'
11893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894 (eval $ac_try) 2>&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; } &&
11898 { ac_try='test -s conftest$ac_exeext'
11899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900 (eval $ac_try) 2>&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; }; then
11904 ac_cv_search_opendir="none required"
11906 echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.$ac_ext >&5
11910 rm -f conftest.err conftest.$ac_objext \
11911 conftest$ac_exeext conftest.$ac_ext
11912 if test "$ac_cv_search_opendir" = no; then
11913 for ac_lib in x; do
11914 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11915 cat >conftest.$ac_ext <<_ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h. */
11922 /* Override any gcc2 internal prototype to avoid an error. */
11926 /* We use char because int might match the return type of a gcc2
11927 builtin and then its argument prototype would still apply. */
11937 rm -f conftest.$ac_objext conftest$ac_exeext
11938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11939 (eval $ac_link) 2>conftest.er1
11941 grep -v '^ *+' conftest.er1 >conftest.err
11943 cat conftest.err >&5
11944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11945 (exit $ac_status); } &&
11946 { ac_try='test -z "$ac_c_werror_flag"
11947 || test ! -s conftest.err'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; } &&
11953 { ac_try='test -s conftest$ac_exeext'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
11959 ac_cv_search_opendir="-l$ac_lib"
11962 echo "$as_me: failed program was:" >&5
11963 sed 's/^/| /' conftest.$ac_ext >&5
11966 rm -f conftest.err conftest.$ac_objext \
11967 conftest$ac_exeext conftest.$ac_ext
11970 LIBS=$ac_func_search_save_LIBS
11972 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11973 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11974 if test "$ac_cv_search_opendir" != no; then
11975 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11981 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11982 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11983 if test "${ac_cv_header_stat_broken+set}" = set; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11986 cat >conftest.$ac_ext <<_ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h. */
11992 #include <sys/types.h>
11993 #include <sys/stat.h>
11995 #if defined(S_ISBLK) && defined(S_IFDIR)
11996 # if S_ISBLK (S_IFDIR)
12001 #if defined(S_ISBLK) && defined(S_IFCHR)
12002 # if S_ISBLK (S_IFCHR)
12007 #if defined(S_ISLNK) && defined(S_IFREG)
12008 # if S_ISLNK (S_IFREG)
12013 #if defined(S_ISSOCK) && defined(S_IFREG)
12014 # if S_ISSOCK (S_IFREG)
12020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12021 $EGREP "You lose" >/dev/null 2>&1; then
12022 ac_cv_header_stat_broken=yes
12024 ac_cv_header_stat_broken=no
12029 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12030 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12031 if test $ac_cv_header_stat_broken = yes; then
12033 cat >>confdefs.h <<\_ACEOF
12034 #define STAT_MACROS_BROKEN 1
12039 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12040 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12041 if test "${ac_cv_header_sys_wait_h+set}" = set; then
12042 echo $ECHO_N "(cached) $ECHO_C" >&6
12044 cat >conftest.$ac_ext <<_ACEOF
12047 cat confdefs.h >>conftest.$ac_ext
12048 cat >>conftest.$ac_ext <<_ACEOF
12049 /* end confdefs.h. */
12050 #include <sys/types.h>
12051 #include <sys/wait.h>
12052 #ifndef WEXITSTATUS
12053 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
12056 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12064 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12069 rm -f conftest.$ac_objext
12070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12071 (eval $ac_compile) 2>conftest.er1
12073 grep -v '^ *+' conftest.er1 >conftest.err
12075 cat conftest.err >&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } &&
12078 { ac_try='test -z "$ac_c_werror_flag"
12079 || test ! -s conftest.err'
12080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12081 (eval $ac_try) 2>&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); }; } &&
12085 { ac_try='test -s conftest.$ac_objext'
12086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12087 (eval $ac_try) 2>&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 (exit $ac_status); }; }; then
12091 ac_cv_header_sys_wait_h=yes
12093 echo "$as_me: failed program was:" >&5
12094 sed 's/^/| /' conftest.$ac_ext >&5
12096 ac_cv_header_sys_wait_h=no
12098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12100 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12101 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
12102 if test $ac_cv_header_sys_wait_h = yes; then
12104 cat >>confdefs.h <<\_ACEOF
12105 #define HAVE_SYS_WAIT_H 1
12110 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12111 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12112 if test "${ac_cv_header_time+set}" = set; then
12113 echo $ECHO_N "(cached) $ECHO_C" >&6
12115 cat >conftest.$ac_ext <<_ACEOF
12118 cat confdefs.h >>conftest.$ac_ext
12119 cat >>conftest.$ac_ext <<_ACEOF
12120 /* end confdefs.h. */
12121 #include <sys/types.h>
12122 #include <sys/time.h>
12128 if ((struct tm *) 0)
12134 rm -f conftest.$ac_objext
12135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12136 (eval $ac_compile) 2>conftest.er1
12138 grep -v '^ *+' conftest.er1 >conftest.err
12140 cat conftest.err >&5
12141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } &&
12143 { ac_try='test -z "$ac_c_werror_flag"
12144 || test ! -s conftest.err'
12145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12146 (eval $ac_try) 2>&5
12148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12149 (exit $ac_status); }; } &&
12150 { ac_try='test -s conftest.$ac_objext'
12151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12152 (eval $ac_try) 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156 ac_cv_header_time=yes
12158 echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.$ac_ext >&5
12161 ac_cv_header_time=no
12163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12165 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12166 echo "${ECHO_T}$ac_cv_header_time" >&6
12167 if test $ac_cv_header_time = yes; then
12169 cat >>confdefs.h <<\_ACEOF
12170 #define TIME_WITH_SYS_TIME 1
12176 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12177 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
12178 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12179 echo $ECHO_N "(cached) $ECHO_C" >&6
12181 cat >conftest.$ac_ext <<_ACEOF
12184 cat confdefs.h >>conftest.$ac_ext
12185 cat >>conftest.$ac_ext <<_ACEOF
12186 /* end confdefs.h. */
12187 $ac_includes_default
12191 static struct stat ac_aggr;
12192 if (ac_aggr.st_blksize)
12198 rm -f conftest.$ac_objext
12199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12200 (eval $ac_compile) 2>conftest.er1
12202 grep -v '^ *+' conftest.er1 >conftest.err
12204 cat conftest.err >&5
12205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206 (exit $ac_status); } &&
12207 { ac_try='test -z "$ac_c_werror_flag"
12208 || test ! -s conftest.err'
12209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12210 (eval $ac_try) 2>&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; } &&
12214 { ac_try='test -s conftest.$ac_objext'
12215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12216 (eval $ac_try) 2>&5
12218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12219 (exit $ac_status); }; }; then
12220 ac_cv_member_struct_stat_st_blksize=yes
12222 echo "$as_me: failed program was:" >&5
12223 sed 's/^/| /' conftest.$ac_ext >&5
12225 cat >conftest.$ac_ext <<_ACEOF
12228 cat confdefs.h >>conftest.$ac_ext
12229 cat >>conftest.$ac_ext <<_ACEOF
12230 /* end confdefs.h. */
12231 $ac_includes_default
12235 static struct stat ac_aggr;
12236 if (sizeof ac_aggr.st_blksize)
12242 rm -f conftest.$ac_objext
12243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12244 (eval $ac_compile) 2>conftest.er1
12246 grep -v '^ *+' conftest.er1 >conftest.err
12248 cat conftest.err >&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } &&
12251 { ac_try='test -z "$ac_c_werror_flag"
12252 || test ! -s conftest.err'
12253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12254 (eval $ac_try) 2>&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); }; } &&
12258 { ac_try='test -s conftest.$ac_objext'
12259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12260 (eval $ac_try) 2>&5
12262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263 (exit $ac_status); }; }; then
12264 ac_cv_member_struct_stat_st_blksize=yes
12266 echo "$as_me: failed program was:" >&5
12267 sed 's/^/| /' conftest.$ac_ext >&5
12269 ac_cv_member_struct_stat_st_blksize=no
12271 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12273 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12275 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12276 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12277 if test $ac_cv_member_struct_stat_st_blksize = yes; then
12279 cat >>confdefs.h <<_ACEOF
12280 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12284 cat >>confdefs.h <<\_ACEOF
12285 #define HAVE_ST_BLKSIZE 1
12291 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12292 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12293 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12294 echo $ECHO_N "(cached) $ECHO_C" >&6
12296 cat >conftest.$ac_ext <<_ACEOF
12299 cat confdefs.h >>conftest.$ac_ext
12300 cat >>conftest.$ac_ext <<_ACEOF
12301 /* end confdefs.h. */
12302 $ac_includes_default
12306 static struct stat ac_aggr;
12307 if (ac_aggr.st_blocks)
12313 rm -f conftest.$ac_objext
12314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12315 (eval $ac_compile) 2>conftest.er1
12317 grep -v '^ *+' conftest.er1 >conftest.err
12319 cat conftest.err >&5
12320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12321 (exit $ac_status); } &&
12322 { ac_try='test -z "$ac_c_werror_flag"
12323 || test ! -s conftest.err'
12324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12325 (eval $ac_try) 2>&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); }; } &&
12329 { ac_try='test -s conftest.$ac_objext'
12330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12331 (eval $ac_try) 2>&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; }; then
12335 ac_cv_member_struct_stat_st_blocks=yes
12337 echo "$as_me: failed program was:" >&5
12338 sed 's/^/| /' conftest.$ac_ext >&5
12340 cat >conftest.$ac_ext <<_ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12346 $ac_includes_default
12350 static struct stat ac_aggr;
12351 if (sizeof ac_aggr.st_blocks)
12357 rm -f conftest.$ac_objext
12358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12359 (eval $ac_compile) 2>conftest.er1
12361 grep -v '^ *+' conftest.er1 >conftest.err
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
12366 { ac_try='test -z "$ac_c_werror_flag"
12367 || test ! -s conftest.err'
12368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12369 (eval $ac_try) 2>&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; } &&
12373 { ac_try='test -s conftest.$ac_objext'
12374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12375 (eval $ac_try) 2>&5
12377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); }; }; then
12379 ac_cv_member_struct_stat_st_blocks=yes
12381 echo "$as_me: failed program was:" >&5
12382 sed 's/^/| /' conftest.$ac_ext >&5
12384 ac_cv_member_struct_stat_st_blocks=no
12386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12390 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12391 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12392 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12394 cat >>confdefs.h <<_ACEOF
12395 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12399 cat >>confdefs.h <<\_ACEOF
12400 #define HAVE_ST_BLOCKS 1
12405 "fileblocks.$ac_objext" | \
12406 *" fileblocks.$ac_objext" | \
12407 "fileblocks.$ac_objext "* | \
12408 *" fileblocks.$ac_objext "* ) ;;
12409 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12415 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12416 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12417 if test "${ac_cv_struct_tm+set}" = set; then
12418 echo $ECHO_N "(cached) $ECHO_C" >&6
12420 cat >conftest.$ac_ext <<_ACEOF
12423 cat confdefs.h >>conftest.$ac_ext
12424 cat >>conftest.$ac_ext <<_ACEOF
12425 /* end confdefs.h. */
12426 #include <sys/types.h>
12432 struct tm *tp; tp->tm_sec;
12437 rm -f conftest.$ac_objext
12438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12439 (eval $ac_compile) 2>conftest.er1
12441 grep -v '^ *+' conftest.er1 >conftest.err
12443 cat conftest.err >&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); } &&
12446 { ac_try='test -z "$ac_c_werror_flag"
12447 || test ! -s conftest.err'
12448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12449 (eval $ac_try) 2>&5
12451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12452 (exit $ac_status); }; } &&
12453 { ac_try='test -s conftest.$ac_objext'
12454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12455 (eval $ac_try) 2>&5
12457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458 (exit $ac_status); }; }; then
12459 ac_cv_struct_tm=time.h
12461 echo "$as_me: failed program was:" >&5
12462 sed 's/^/| /' conftest.$ac_ext >&5
12464 ac_cv_struct_tm=sys/time.h
12466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12468 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12469 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12470 if test $ac_cv_struct_tm = sys/time.h; then
12472 cat >>confdefs.h <<\_ACEOF
12473 #define TM_IN_SYS_TIME 1
12478 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12479 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12480 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12483 cat >conftest.$ac_ext <<_ACEOF
12486 cat confdefs.h >>conftest.$ac_ext
12487 cat >>conftest.$ac_ext <<_ACEOF
12488 /* end confdefs.h. */
12489 #include <sys/types.h>
12490 #include <$ac_cv_struct_tm>
12496 static struct tm ac_aggr;
12497 if (ac_aggr.tm_zone)
12503 rm -f conftest.$ac_objext
12504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12505 (eval $ac_compile) 2>conftest.er1
12507 grep -v '^ *+' conftest.er1 >conftest.err
12509 cat conftest.err >&5
12510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12511 (exit $ac_status); } &&
12512 { ac_try='test -z "$ac_c_werror_flag"
12513 || test ! -s conftest.err'
12514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; } &&
12519 { ac_try='test -s conftest.$ac_objext'
12520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12521 (eval $ac_try) 2>&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }; }; then
12525 ac_cv_member_struct_tm_tm_zone=yes
12527 echo "$as_me: failed program was:" >&5
12528 sed 's/^/| /' conftest.$ac_ext >&5
12530 cat >conftest.$ac_ext <<_ACEOF
12533 cat confdefs.h >>conftest.$ac_ext
12534 cat >>conftest.$ac_ext <<_ACEOF
12535 /* end confdefs.h. */
12536 #include <sys/types.h>
12537 #include <$ac_cv_struct_tm>
12543 static struct tm ac_aggr;
12544 if (sizeof ac_aggr.tm_zone)
12550 rm -f conftest.$ac_objext
12551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12552 (eval $ac_compile) 2>conftest.er1
12554 grep -v '^ *+' conftest.er1 >conftest.err
12556 cat conftest.err >&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } &&
12559 { ac_try='test -z "$ac_c_werror_flag"
12560 || test ! -s conftest.err'
12561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12562 (eval $ac_try) 2>&5
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; } &&
12566 { ac_try='test -s conftest.$ac_objext'
12567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568 (eval $ac_try) 2>&5
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }; }; then
12572 ac_cv_member_struct_tm_tm_zone=yes
12574 echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.$ac_ext >&5
12577 ac_cv_member_struct_tm_tm_zone=no
12579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12583 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12584 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12585 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12587 cat >>confdefs.h <<_ACEOF
12588 #define HAVE_STRUCT_TM_TM_ZONE 1
12594 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12596 cat >>confdefs.h <<\_ACEOF
12597 #define HAVE_TM_ZONE 1
12601 echo "$as_me:$LINENO: checking for tzname" >&5
12602 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12603 if test "${ac_cv_var_tzname+set}" = set; then
12604 echo $ECHO_N "(cached) $ECHO_C" >&6
12606 cat >conftest.$ac_ext <<_ACEOF
12609 cat confdefs.h >>conftest.$ac_ext
12610 cat >>conftest.$ac_ext <<_ACEOF
12611 /* end confdefs.h. */
12613 #ifndef tzname /* For SGI. */
12614 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
12625 rm -f conftest.$ac_objext conftest$ac_exeext
12626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12627 (eval $ac_link) 2>conftest.er1
12629 grep -v '^ *+' conftest.er1 >conftest.err
12631 cat conftest.err >&5
12632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } &&
12634 { ac_try='test -z "$ac_c_werror_flag"
12635 || test ! -s conftest.err'
12636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12637 (eval $ac_try) 2>&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); }; } &&
12641 { ac_try='test -s conftest$ac_exeext'
12642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12643 (eval $ac_try) 2>&5
12645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12646 (exit $ac_status); }; }; then
12647 ac_cv_var_tzname=yes
12649 echo "$as_me: failed program was:" >&5
12650 sed 's/^/| /' conftest.$ac_ext >&5
12652 ac_cv_var_tzname=no
12654 rm -f conftest.err conftest.$ac_objext \
12655 conftest$ac_exeext conftest.$ac_ext
12657 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12658 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12659 if test $ac_cv_var_tzname = yes; then
12661 cat >>confdefs.h <<\_ACEOF
12662 #define HAVE_TZNAME 1
12669 echo "$as_me:$LINENO: checking for utime.h" >&5
12670 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12671 if test "${ba_cv_header_utime_h+set}" = set; then
12672 echo $ECHO_N "(cached) $ECHO_C" >&6
12674 cat >conftest.$ac_ext <<_ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h. */
12681 #include <sys/types.h>
12691 rm -f conftest.$ac_objext
12692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12693 (eval $ac_compile) 2>conftest.er1
12695 grep -v '^ *+' conftest.er1 >conftest.err
12697 cat conftest.err >&5
12698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12699 (exit $ac_status); } &&
12700 { ac_try='test -z "$ac_c_werror_flag"
12701 || test ! -s conftest.err'
12702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12703 (eval $ac_try) 2>&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); }; } &&
12707 { ac_try='test -s conftest.$ac_objext'
12708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12709 (eval $ac_try) 2>&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); }; }; then
12713 ba_cv_header_utime_h=yes
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12718 ba_cv_header_utime_h=no
12720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12722 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12723 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12724 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12725 #define HAVE_UTIME_H 1
12729 echo "$as_me:$LINENO: checking for socklen_t" >&5
12730 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12731 if test "${ba_cv_header_socklen_t+set}" = set; then
12732 echo $ECHO_N "(cached) $ECHO_C" >&6
12734 cat >conftest.$ac_ext <<_ACEOF
12737 cat confdefs.h >>conftest.$ac_ext
12738 cat >>conftest.$ac_ext <<_ACEOF
12739 /* end confdefs.h. */
12741 #include <sys/types.h>
12742 #include <sys/socket.h>
12751 rm -f conftest.$ac_objext
12752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12753 (eval $ac_compile) 2>conftest.er1
12755 grep -v '^ *+' conftest.er1 >conftest.err
12757 cat conftest.err >&5
12758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12759 (exit $ac_status); } &&
12760 { ac_try='test -z "$ac_c_werror_flag"
12761 || test ! -s conftest.err'
12762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12763 (eval $ac_try) 2>&5
12765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12766 (exit $ac_status); }; } &&
12767 { ac_try='test -s conftest.$ac_objext'
12768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12769 (eval $ac_try) 2>&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); }; }; then
12773 ba_cv_header_socklen_t=yes
12775 echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.$ac_ext >&5
12778 ba_cv_header_socklen_t=no
12780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12782 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12783 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12784 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12785 #define HAVE_SOCKLEN_T 1
12789 echo "$as_me:$LINENO: checking for bigendian" >&5
12790 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12791 if test "${ba_cv_bigendian+set}" = set; then
12792 echo $ECHO_N "(cached) $ECHO_C" >&6
12794 if test "$cross_compiling" = yes; then
12797 cat >conftest.$ac_ext <<_ACEOF
12800 cat confdefs.h >>conftest.$ac_ext
12801 cat >>conftest.$ac_ext <<_ACEOF
12802 /* end confdefs.h. */
12803 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12805 rm -f conftest$ac_exeext
12806 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12807 (eval $ac_link) 2>&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12812 (eval $ac_try) 2>&5
12814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12815 (exit $ac_status); }; }; then
12816 ba_cv_bigendian=yes
12818 echo "$as_me: program exited with status $ac_status" >&5
12819 echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.$ac_ext >&5
12822 ( exit $ac_status )
12825 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12828 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12829 echo "${ECHO_T}$ba_cv_bigendian" >&6
12830 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12831 #define HAVE_BIGENDIAN 1
12836 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12837 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12838 if test "${ac_cv_c_const+set}" = set; then
12839 echo $ECHO_N "(cached) $ECHO_C" >&6
12841 cat >conftest.$ac_ext <<_ACEOF
12844 cat confdefs.h >>conftest.$ac_ext
12845 cat >>conftest.$ac_ext <<_ACEOF
12846 /* end confdefs.h. */
12851 /* FIXME: Include the comments suggested by Paul. */
12852 #ifndef __cplusplus
12853 /* Ultrix mips cc rejects this. */
12854 typedef int charset[2];
12856 /* SunOS 4.1.1 cc rejects this. */
12857 char const *const *ccp;
12859 /* NEC SVR4.0.2 mips cc rejects this. */
12860 struct point {int x, y;};
12861 static struct point const zero = {0,0};
12862 /* AIX XL C 1.02.0.0 rejects this.
12863 It does not let you subtract one const X* pointer from another in
12864 an arm of an if-expression whose if-part is not a constant
12866 const char *g = "string";
12867 ccp = &g + (g ? g-g : 0);
12868 /* HPUX 7.0 cc rejects these. */
12871 ccp = (char const *const *) p;
12872 { /* SCO 3.2v4 cc rejects this. */
12874 char const *s = 0 ? (char *) 0 : (char const *) 0;
12878 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12879 int x[] = {25, 17};
12880 const int *foo = &x[0];
12883 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12884 typedef const int *iptr;
12888 { /* AIX XL C 1.02.0.0 rejects this saying
12889 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12890 struct s { int j; const int *ap[3]; };
12891 struct s *b; b->j = 5;
12893 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12894 const int foo = 10;
12902 rm -f conftest.$ac_objext
12903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12904 (eval $ac_compile) 2>conftest.er1
12906 grep -v '^ *+' conftest.er1 >conftest.err
12908 cat conftest.err >&5
12909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } &&
12911 { ac_try='test -z "$ac_c_werror_flag"
12912 || test ! -s conftest.err'
12913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12914 (eval $ac_try) 2>&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); }; } &&
12918 { ac_try='test -s conftest.$ac_objext'
12919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12920 (eval $ac_try) 2>&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); }; }; then
12926 echo "$as_me: failed program was:" >&5
12927 sed 's/^/| /' conftest.$ac_ext >&5
12931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12933 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12934 echo "${ECHO_T}$ac_cv_c_const" >&6
12935 if test $ac_cv_c_const = no; then
12937 cat >>confdefs.h <<\_ACEOF
12945 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12946 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12948 # The order of these tests is important.
12949 cat >conftest.$ac_ext <<_ACEOF
12952 cat confdefs.h >>conftest.$ac_ext
12953 cat >>conftest.$ac_ext <<_ACEOF
12954 /* end confdefs.h. */
12955 #include <sys/statvfs.h>
12956 #include <sys/fstyp.h>
12958 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12959 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12961 grep -v '^ *+' conftest.er1 >conftest.err
12963 cat conftest.err >&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); } >/dev/null; then
12966 if test -s conftest.err; then
12967 ac_cpp_err=$ac_c_preproc_warn_flag
12968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12975 if test -z "$ac_cpp_err"; then
12976 cat >>confdefs.h <<\_ACEOF
12977 #define FSTYPE_STATVFS 1
12981 echo "$as_me: failed program was:" >&5
12982 sed 's/^/| /' conftest.$ac_ext >&5
12986 rm -f conftest.err conftest.$ac_ext
12987 if test $fstype = no; then
12988 cat >conftest.$ac_ext <<_ACEOF
12991 cat confdefs.h >>conftest.$ac_ext
12992 cat >>conftest.$ac_ext <<_ACEOF
12993 /* end confdefs.h. */
12994 #include <sys/statfs.h>
12995 #include <sys/fstyp.h>
12997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13000 grep -v '^ *+' conftest.er1 >conftest.err
13002 cat conftest.err >&5
13003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13004 (exit $ac_status); } >/dev/null; then
13005 if test -s conftest.err; then
13006 ac_cpp_err=$ac_c_preproc_warn_flag
13007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13014 if test -z "$ac_cpp_err"; then
13015 cat >>confdefs.h <<\_ACEOF
13016 #define FSTYPE_USG_STATFS 1
13020 echo "$as_me: failed program was:" >&5
13021 sed 's/^/| /' conftest.$ac_ext >&5
13025 rm -f conftest.err conftest.$ac_ext
13027 if test $fstype = no; then
13028 cat >conftest.$ac_ext <<_ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h. */
13034 #include <sys/statfs.h>
13035 #include <sys/vmount.h>
13037 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13038 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13040 grep -v '^ *+' conftest.er1 >conftest.err
13042 cat conftest.err >&5
13043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13044 (exit $ac_status); } >/dev/null; then
13045 if test -s conftest.err; then
13046 ac_cpp_err=$ac_c_preproc_warn_flag
13047 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13054 if test -z "$ac_cpp_err"; then
13055 cat >>confdefs.h <<\_ACEOF
13056 #define FSTYPE_AIX_STATFS 1
13060 echo "$as_me: failed program was:" >&5
13061 sed 's/^/| /' conftest.$ac_ext >&5
13065 rm -f conftest.err conftest.$ac_ext
13067 if test $fstype = no; then
13068 cat >conftest.$ac_ext <<_ACEOF
13071 cat confdefs.h >>conftest.$ac_ext
13072 cat >>conftest.$ac_ext <<_ACEOF
13073 /* end confdefs.h. */
13074 #include <mntent.h>
13076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13077 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13079 grep -v '^ *+' conftest.er1 >conftest.err
13081 cat conftest.err >&5
13082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13083 (exit $ac_status); } >/dev/null; then
13084 if test -s conftest.err; then
13085 ac_cpp_err=$ac_c_preproc_warn_flag
13086 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13093 if test -z "$ac_cpp_err"; then
13094 cat >>confdefs.h <<\_ACEOF
13095 #define FSTYPE_MNTENT 1
13099 echo "$as_me: failed program was:" >&5
13100 sed 's/^/| /' conftest.$ac_ext >&5
13104 rm -f conftest.err conftest.$ac_ext
13106 if test $fstype = no; then
13107 cat >conftest.$ac_ext <<_ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13113 #include <sys/mount.h>
13116 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13117 $EGREP "f_type;" >/dev/null 2>&1; then
13118 cat >>confdefs.h <<\_ACEOF
13119 #define FSTYPE_STATFS 1
13126 if test $fstype = no; then
13127 cat >conftest.$ac_ext <<_ACEOF
13130 cat confdefs.h >>conftest.$ac_ext
13131 cat >>conftest.$ac_ext <<_ACEOF
13132 /* end confdefs.h. */
13133 #include <sys/mount.h>
13134 #include <sys/fs_types.h>
13136 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13137 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13139 grep -v '^ *+' conftest.er1 >conftest.err
13141 cat conftest.err >&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } >/dev/null; then
13144 if test -s conftest.err; then
13145 ac_cpp_err=$ac_c_preproc_warn_flag
13146 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13153 if test -z "$ac_cpp_err"; then
13154 cat >>confdefs.h <<\_ACEOF
13155 #define FSTYPE_GETMNT 1
13159 echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13164 rm -f conftest.err conftest.$ac_ext
13166 echo "$as_me:$LINENO: result: $fstype" >&5
13167 echo "${ECHO_T}$fstype" >&6
13169 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13170 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13171 if test "${ac_cv_type_signal+set}" = set; then
13172 echo $ECHO_N "(cached) $ECHO_C" >&6
13174 cat >conftest.$ac_ext <<_ACEOF
13177 cat confdefs.h >>conftest.$ac_ext
13178 cat >>conftest.$ac_ext <<_ACEOF
13179 /* end confdefs.h. */
13180 #include <sys/types.h>
13181 #include <signal.h>
13186 extern "C" void (*signal (int, void (*)(int)))(int);
13188 void (*signal ()) ();
13199 rm -f conftest.$ac_objext
13200 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13201 (eval $ac_compile) 2>conftest.er1
13203 grep -v '^ *+' conftest.er1 >conftest.err
13205 cat conftest.err >&5
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); } &&
13208 { ac_try='test -z "$ac_c_werror_flag"
13209 || test ! -s conftest.err'
13210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13211 (eval $ac_try) 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_signal=void
13223 echo "$as_me: failed program was:" >&5
13224 sed 's/^/| /' conftest.$ac_ext >&5
13226 ac_cv_type_signal=int
13228 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13230 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13231 echo "${ECHO_T}$ac_cv_type_signal" >&6
13233 cat >>confdefs.h <<_ACEOF
13234 #define RETSIGTYPE $ac_cv_type_signal
13239 echo "$as_me:$LINENO: checking for type of signal functions" >&5
13240 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
13241 if test "${bash_cv_signal_vintage+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13245 cat >conftest.$ac_ext <<_ACEOF
13248 cat confdefs.h >>conftest.$ac_ext
13249 cat >>conftest.$ac_ext <<_ACEOF
13250 /* end confdefs.h. */
13251 #include <signal.h>
13257 struct sigaction sa;
13258 sigemptyset(&ss); sigsuspend(&ss);
13259 sigaction(SIGINT, &sa, (struct sigaction *) 0);
13260 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
13266 rm -f conftest.$ac_objext conftest$ac_exeext
13267 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13268 (eval $ac_link) 2>conftest.er1
13270 grep -v '^ *+' conftest.er1 >conftest.err
13272 cat conftest.err >&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } &&
13275 { ac_try='test -z "$ac_c_werror_flag"
13276 || test ! -s conftest.err'
13277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13278 (eval $ac_try) 2>&5
13280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13281 (exit $ac_status); }; } &&
13282 { ac_try='test -s conftest$ac_exeext'
13283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13284 (eval $ac_try) 2>&5
13286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); }; }; then
13288 bash_cv_signal_vintage=posix
13290 echo "$as_me: failed program was:" >&5
13291 sed 's/^/| /' conftest.$ac_ext >&5
13294 cat >conftest.$ac_ext <<_ACEOF
13297 cat confdefs.h >>conftest.$ac_ext
13298 cat >>conftest.$ac_ext <<_ACEOF
13299 /* end confdefs.h. */
13300 #include <signal.h>
13305 int mask = sigmask(SIGINT);
13306 sigsetmask(mask); sigblock(mask); sigpause(mask);
13312 rm -f conftest.$ac_objext conftest$ac_exeext
13313 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13314 (eval $ac_link) 2>conftest.er1
13316 grep -v '^ *+' conftest.er1 >conftest.err
13318 cat conftest.err >&5
13319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13320 (exit $ac_status); } &&
13321 { ac_try='test -z "$ac_c_werror_flag"
13322 || test ! -s conftest.err'
13323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13324 (eval $ac_try) 2>&5
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); }; } &&
13328 { ac_try='test -s conftest$ac_exeext'
13329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13330 (eval $ac_try) 2>&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); }; }; then
13334 bash_cv_signal_vintage=4.2bsd
13336 echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13340 cat >conftest.$ac_ext <<_ACEOF
13343 cat confdefs.h >>conftest.$ac_ext
13344 cat >>conftest.$ac_ext <<_ACEOF
13345 /* end confdefs.h. */
13347 #include <signal.h>
13348 RETSIGTYPE foo() { }
13353 int mask = sigmask(SIGINT);
13354 sigset(SIGINT, foo); sigrelse(SIGINT);
13355 sighold(SIGINT); sigpause(SIGINT);
13361 rm -f conftest.$ac_objext conftest$ac_exeext
13362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13363 (eval $ac_link) 2>conftest.er1
13365 grep -v '^ *+' conftest.er1 >conftest.err
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } &&
13370 { ac_try='test -z "$ac_c_werror_flag"
13371 || test ! -s conftest.err'
13372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13373 (eval $ac_try) 2>&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); }; } &&
13377 { ac_try='test -s conftest$ac_exeext'
13378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13379 (eval $ac_try) 2>&5
13381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13382 (exit $ac_status); }; }; then
13383 bash_cv_signal_vintage=svr3
13385 echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.$ac_ext >&5
13388 bash_cv_signal_vintage=v7
13391 rm -f conftest.err conftest.$ac_objext \
13392 conftest$ac_exeext conftest.$ac_ext
13395 rm -f conftest.err conftest.$ac_objext \
13396 conftest$ac_exeext conftest.$ac_ext
13399 rm -f conftest.err conftest.$ac_objext \
13400 conftest$ac_exeext conftest.$ac_ext
13404 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13405 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13406 if test "$bash_cv_signal_vintage" = posix; then
13407 cat >>confdefs.h <<\_ACEOF
13408 #define HAVE_POSIX_SIGNALS 1
13411 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13412 cat >>confdefs.h <<\_ACEOF
13413 #define HAVE_BSD_SIGNALS 1
13416 elif test "$bash_cv_signal_vintage" = svr3; then
13417 cat >>confdefs.h <<\_ACEOF
13418 #define HAVE_USG_SIGHOLD 1
13423 echo "$as_me:$LINENO: checking for mode_t" >&5
13424 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13425 if test "${ac_cv_type_mode_t+set}" = set; then
13426 echo $ECHO_N "(cached) $ECHO_C" >&6
13428 cat >conftest.$ac_ext <<_ACEOF
13431 cat confdefs.h >>conftest.$ac_ext
13432 cat >>conftest.$ac_ext <<_ACEOF
13433 /* end confdefs.h. */
13434 $ac_includes_default
13440 if (sizeof (mode_t))
13446 rm -f conftest.$ac_objext
13447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13448 (eval $ac_compile) 2>conftest.er1
13450 grep -v '^ *+' conftest.er1 >conftest.err
13452 cat conftest.err >&5
13453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13454 (exit $ac_status); } &&
13455 { ac_try='test -z "$ac_c_werror_flag"
13456 || test ! -s conftest.err'
13457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13458 (eval $ac_try) 2>&5
13460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13461 (exit $ac_status); }; } &&
13462 { ac_try='test -s conftest.$ac_objext'
13463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13464 (eval $ac_try) 2>&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); }; }; then
13468 ac_cv_type_mode_t=yes
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13473 ac_cv_type_mode_t=no
13475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13477 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13478 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13479 if test $ac_cv_type_mode_t = yes; then
13483 cat >>confdefs.h <<_ACEOF
13489 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13490 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13491 if test "${ac_cv_type_uid_t+set}" = set; then
13492 echo $ECHO_N "(cached) $ECHO_C" >&6
13494 cat >conftest.$ac_ext <<_ACEOF
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h. */
13500 #include <sys/types.h>
13503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13504 $EGREP "uid_t" >/dev/null 2>&1; then
13505 ac_cv_type_uid_t=yes
13507 ac_cv_type_uid_t=no
13512 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13513 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13514 if test $ac_cv_type_uid_t = no; then
13516 cat >>confdefs.h <<\_ACEOF
13521 cat >>confdefs.h <<\_ACEOF
13527 echo "$as_me:$LINENO: checking for size_t" >&5
13528 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13529 if test "${ac_cv_type_size_t+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13532 cat >conftest.$ac_ext <<_ACEOF
13535 cat confdefs.h >>conftest.$ac_ext
13536 cat >>conftest.$ac_ext <<_ACEOF
13537 /* end confdefs.h. */
13538 $ac_includes_default
13544 if (sizeof (size_t))
13550 rm -f conftest.$ac_objext
13551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13552 (eval $ac_compile) 2>conftest.er1
13554 grep -v '^ *+' conftest.er1 >conftest.err
13556 cat conftest.err >&5
13557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13558 (exit $ac_status); } &&
13559 { ac_try='test -z "$ac_c_werror_flag"
13560 || test ! -s conftest.err'
13561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; } &&
13566 { ac_try='test -s conftest.$ac_objext'
13567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13568 (eval $ac_try) 2>&5
13570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13571 (exit $ac_status); }; }; then
13572 ac_cv_type_size_t=yes
13574 echo "$as_me: failed program was:" >&5
13575 sed 's/^/| /' conftest.$ac_ext >&5
13577 ac_cv_type_size_t=no
13579 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13581 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13582 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13583 if test $ac_cv_type_size_t = yes; then
13587 cat >>confdefs.h <<_ACEOF
13588 #define size_t unsigned
13593 echo "$as_me:$LINENO: checking for pid_t" >&5
13594 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13595 if test "${ac_cv_type_pid_t+set}" = set; then
13596 echo $ECHO_N "(cached) $ECHO_C" >&6
13598 cat >conftest.$ac_ext <<_ACEOF
13601 cat confdefs.h >>conftest.$ac_ext
13602 cat >>conftest.$ac_ext <<_ACEOF
13603 /* end confdefs.h. */
13604 $ac_includes_default
13610 if (sizeof (pid_t))
13616 rm -f conftest.$ac_objext
13617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13618 (eval $ac_compile) 2>conftest.er1
13620 grep -v '^ *+' conftest.er1 >conftest.err
13622 cat conftest.err >&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); } &&
13625 { ac_try='test -z "$ac_c_werror_flag"
13626 || test ! -s conftest.err'
13627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13628 (eval $ac_try) 2>&5
13630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13631 (exit $ac_status); }; } &&
13632 { ac_try='test -s conftest.$ac_objext'
13633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13634 (eval $ac_try) 2>&5
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }; }; then
13638 ac_cv_type_pid_t=yes
13640 echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.$ac_ext >&5
13643 ac_cv_type_pid_t=no
13645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13647 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13648 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13649 if test $ac_cv_type_pid_t = yes; then
13653 cat >>confdefs.h <<_ACEOF
13659 echo "$as_me:$LINENO: checking for off_t" >&5
13660 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13661 if test "${ac_cv_type_off_t+set}" = set; then
13662 echo $ECHO_N "(cached) $ECHO_C" >&6
13664 cat >conftest.$ac_ext <<_ACEOF
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h. */
13670 $ac_includes_default
13676 if (sizeof (off_t))
13682 rm -f conftest.$ac_objext
13683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13684 (eval $ac_compile) 2>conftest.er1
13686 grep -v '^ *+' conftest.er1 >conftest.err
13688 cat conftest.err >&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); } &&
13691 { ac_try='test -z "$ac_c_werror_flag"
13692 || test ! -s conftest.err'
13693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13694 (eval $ac_try) 2>&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 (exit $ac_status); }; } &&
13698 { ac_try='test -s conftest.$ac_objext'
13699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13700 (eval $ac_try) 2>&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); }; }; then
13704 ac_cv_type_off_t=yes
13706 echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.$ac_ext >&5
13709 ac_cv_type_off_t=no
13711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13713 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13714 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13715 if test $ac_cv_type_off_t = yes; then
13719 cat >>confdefs.h <<_ACEOF
13725 echo "$as_me:$LINENO: checking for ino_t" >&5
13726 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13727 if test "${ac_cv_type_ino_t+set}" = set; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13730 cat >conftest.$ac_ext <<_ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13736 $ac_includes_default
13742 if (sizeof (ino_t))
13748 rm -f conftest.$ac_objext
13749 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13750 (eval $ac_compile) 2>conftest.er1
13752 grep -v '^ *+' conftest.er1 >conftest.err
13754 cat conftest.err >&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); } &&
13757 { ac_try='test -z "$ac_c_werror_flag"
13758 || test ! -s conftest.err'
13759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760 (eval $ac_try) 2>&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; } &&
13764 { ac_try='test -s conftest.$ac_objext'
13765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13766 (eval $ac_try) 2>&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); }; }; then
13770 ac_cv_type_ino_t=yes
13772 echo "$as_me: failed program was:" >&5
13773 sed 's/^/| /' conftest.$ac_ext >&5
13775 ac_cv_type_ino_t=no
13777 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13779 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13780 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13781 if test $ac_cv_type_ino_t = yes; then
13785 cat >>confdefs.h <<_ACEOF
13786 #define ino_t unsigned long
13791 echo "$as_me:$LINENO: checking for dev_t" >&5
13792 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13793 if test "${ac_cv_type_dev_t+set}" = set; then
13794 echo $ECHO_N "(cached) $ECHO_C" >&6
13796 cat >conftest.$ac_ext <<_ACEOF
13799 cat confdefs.h >>conftest.$ac_ext
13800 cat >>conftest.$ac_ext <<_ACEOF
13801 /* end confdefs.h. */
13802 $ac_includes_default
13808 if (sizeof (dev_t))
13814 rm -f conftest.$ac_objext
13815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13816 (eval $ac_compile) 2>conftest.er1
13818 grep -v '^ *+' conftest.er1 >conftest.err
13820 cat conftest.err >&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } &&
13823 { ac_try='test -z "$ac_c_werror_flag"
13824 || test ! -s conftest.err'
13825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13826 (eval $ac_try) 2>&5
13828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13829 (exit $ac_status); }; } &&
13830 { ac_try='test -s conftest.$ac_objext'
13831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13832 (eval $ac_try) 2>&5
13834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); }; }; then
13836 ac_cv_type_dev_t=yes
13838 echo "$as_me: failed program was:" >&5
13839 sed 's/^/| /' conftest.$ac_ext >&5
13841 ac_cv_type_dev_t=no
13843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13845 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13846 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13847 if test $ac_cv_type_dev_t = yes; then
13851 cat >>confdefs.h <<_ACEOF
13852 #define dev_t unsigned long
13857 echo "$as_me:$LINENO: checking for daddr_t" >&5
13858 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13859 if test "${ac_cv_type_daddr_t+set}" = set; then
13860 echo $ECHO_N "(cached) $ECHO_C" >&6
13862 cat >conftest.$ac_ext <<_ACEOF
13865 cat confdefs.h >>conftest.$ac_ext
13866 cat >>conftest.$ac_ext <<_ACEOF
13867 /* end confdefs.h. */
13868 $ac_includes_default
13874 if (sizeof (daddr_t))
13880 rm -f conftest.$ac_objext
13881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13882 (eval $ac_compile) 2>conftest.er1
13884 grep -v '^ *+' conftest.er1 >conftest.err
13886 cat conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } &&
13889 { ac_try='test -z "$ac_c_werror_flag"
13890 || test ! -s conftest.err'
13891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892 (eval $ac_try) 2>&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; } &&
13896 { ac_try='test -s conftest.$ac_objext'
13897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898 (eval $ac_try) 2>&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
13902 ac_cv_type_daddr_t=yes
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13907 ac_cv_type_daddr_t=no
13909 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13911 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13912 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13913 if test $ac_cv_type_daddr_t = yes; then
13917 cat >>confdefs.h <<_ACEOF
13918 #define daddr_t long
13923 echo "$as_me:$LINENO: checking for major_t" >&5
13924 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13925 if test "${ac_cv_type_major_t+set}" = set; then
13926 echo $ECHO_N "(cached) $ECHO_C" >&6
13928 cat >conftest.$ac_ext <<_ACEOF
13931 cat confdefs.h >>conftest.$ac_ext
13932 cat >>conftest.$ac_ext <<_ACEOF
13933 /* end confdefs.h. */
13934 $ac_includes_default
13940 if (sizeof (major_t))
13946 rm -f conftest.$ac_objext
13947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13948 (eval $ac_compile) 2>conftest.er1
13950 grep -v '^ *+' conftest.er1 >conftest.err
13952 cat conftest.err >&5
13953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13954 (exit $ac_status); } &&
13955 { ac_try='test -z "$ac_c_werror_flag"
13956 || test ! -s conftest.err'
13957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13958 (eval $ac_try) 2>&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); }; } &&
13962 { ac_try='test -s conftest.$ac_objext'
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
13968 ac_cv_type_major_t=yes
13970 echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13973 ac_cv_type_major_t=no
13975 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13977 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13978 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13979 if test $ac_cv_type_major_t = yes; then
13983 cat >>confdefs.h <<_ACEOF
13984 #define major_t int
13989 echo "$as_me:$LINENO: checking for minor_t" >&5
13990 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13991 if test "${ac_cv_type_minor_t+set}" = set; then
13992 echo $ECHO_N "(cached) $ECHO_C" >&6
13994 cat >conftest.$ac_ext <<_ACEOF
13997 cat confdefs.h >>conftest.$ac_ext
13998 cat >>conftest.$ac_ext <<_ACEOF
13999 /* end confdefs.h. */
14000 $ac_includes_default
14006 if (sizeof (minor_t))
14012 rm -f conftest.$ac_objext
14013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14014 (eval $ac_compile) 2>conftest.er1
14016 grep -v '^ *+' conftest.er1 >conftest.err
14018 cat conftest.err >&5
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); } &&
14021 { ac_try='test -z "$ac_c_werror_flag"
14022 || test ! -s conftest.err'
14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024 (eval $ac_try) 2>&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; } &&
14028 { ac_try='test -s conftest.$ac_objext'
14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14030 (eval $ac_try) 2>&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); }; }; then
14034 ac_cv_type_minor_t=yes
14036 echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14039 ac_cv_type_minor_t=no
14041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14043 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
14044 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
14045 if test $ac_cv_type_minor_t = yes; then
14049 cat >>confdefs.h <<_ACEOF
14050 #define minor_t int
14055 echo "$as_me:$LINENO: checking for ssize_t" >&5
14056 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14057 if test "${ac_cv_type_ssize_t+set}" = set; then
14058 echo $ECHO_N "(cached) $ECHO_C" >&6
14060 cat >conftest.$ac_ext <<_ACEOF
14063 cat confdefs.h >>conftest.$ac_ext
14064 cat >>conftest.$ac_ext <<_ACEOF
14065 /* end confdefs.h. */
14066 $ac_includes_default
14072 if (sizeof (ssize_t))
14078 rm -f conftest.$ac_objext
14079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14080 (eval $ac_compile) 2>conftest.er1
14082 grep -v '^ *+' conftest.er1 >conftest.err
14084 cat conftest.err >&5
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); } &&
14087 { ac_try='test -z "$ac_c_werror_flag"
14088 || test ! -s conftest.err'
14089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090 (eval $ac_try) 2>&5
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); }; } &&
14094 { ac_try='test -s conftest.$ac_objext'
14095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14096 (eval $ac_try) 2>&5
14098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14099 (exit $ac_status); }; }; then
14100 ac_cv_type_ssize_t=yes
14102 echo "$as_me: failed program was:" >&5
14103 sed 's/^/| /' conftest.$ac_ext >&5
14105 ac_cv_type_ssize_t=no
14107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14109 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14110 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14111 if test $ac_cv_type_ssize_t = yes; then
14115 cat >>confdefs.h <<_ACEOF
14116 #define ssize_t int
14121 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14122 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14123 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14124 echo $ECHO_N "(cached) $ECHO_C" >&6
14126 cat >conftest.$ac_ext <<_ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h. */
14132 $ac_includes_default
14136 static struct stat ac_aggr;
14137 if (ac_aggr.st_blocks)
14143 rm -f conftest.$ac_objext
14144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14145 (eval $ac_compile) 2>conftest.er1
14147 grep -v '^ *+' conftest.er1 >conftest.err
14149 cat conftest.err >&5
14150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14151 (exit $ac_status); } &&
14152 { ac_try='test -z "$ac_c_werror_flag"
14153 || test ! -s conftest.err'
14154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14155 (eval $ac_try) 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
14165 ac_cv_member_struct_stat_st_blocks=yes
14167 echo "$as_me: failed program was:" >&5
14168 sed 's/^/| /' conftest.$ac_ext >&5
14170 cat >conftest.$ac_ext <<_ACEOF
14173 cat confdefs.h >>conftest.$ac_ext
14174 cat >>conftest.$ac_ext <<_ACEOF
14175 /* end confdefs.h. */
14176 $ac_includes_default
14180 static struct stat ac_aggr;
14181 if (sizeof ac_aggr.st_blocks)
14187 rm -f conftest.$ac_objext
14188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14189 (eval $ac_compile) 2>conftest.er1
14191 grep -v '^ *+' conftest.er1 >conftest.err
14193 cat conftest.err >&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } &&
14196 { ac_try='test -z "$ac_c_werror_flag"
14197 || test ! -s conftest.err'
14198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199 (eval $ac_try) 2>&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; } &&
14203 { ac_try='test -s conftest.$ac_objext'
14204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205 (eval $ac_try) 2>&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; }; then
14209 ac_cv_member_struct_stat_st_blocks=yes
14211 echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14214 ac_cv_member_struct_stat_st_blocks=no
14216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14218 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14220 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14221 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14222 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14224 cat >>confdefs.h <<_ACEOF
14225 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14229 cat >>confdefs.h <<\_ACEOF
14230 #define HAVE_ST_BLOCKS 1
14235 "fileblocks.$ac_objext" | \
14236 *" fileblocks.$ac_objext" | \
14237 "fileblocks.$ac_objext "* | \
14238 *" fileblocks.$ac_objext "* ) ;;
14239 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14246 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
14247 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
14248 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
14249 echo $ECHO_N "(cached) $ECHO_C" >&6
14251 cat >conftest.$ac_ext <<_ACEOF
14254 cat confdefs.h >>conftest.$ac_ext
14255 cat >>conftest.$ac_ext <<_ACEOF
14256 /* end confdefs.h. */
14257 $ac_includes_default
14261 static struct stat ac_aggr;
14262 if (ac_aggr.st_rdev)
14268 rm -f conftest.$ac_objext
14269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14270 (eval $ac_compile) 2>conftest.er1
14272 grep -v '^ *+' conftest.er1 >conftest.err
14274 cat conftest.err >&5
14275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276 (exit $ac_status); } &&
14277 { ac_try='test -z "$ac_c_werror_flag"
14278 || test ! -s conftest.err'
14279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14280 (eval $ac_try) 2>&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); }; } &&
14284 { ac_try='test -s conftest.$ac_objext'
14285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14286 (eval $ac_try) 2>&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; }; then
14290 ac_cv_member_struct_stat_st_rdev=yes
14292 echo "$as_me: failed program was:" >&5
14293 sed 's/^/| /' conftest.$ac_ext >&5
14295 cat >conftest.$ac_ext <<_ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h. */
14301 $ac_includes_default
14305 static struct stat ac_aggr;
14306 if (sizeof ac_aggr.st_rdev)
14312 rm -f conftest.$ac_objext
14313 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14314 (eval $ac_compile) 2>conftest.er1
14316 grep -v '^ *+' conftest.er1 >conftest.err
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
14321 { ac_try='test -z "$ac_c_werror_flag"
14322 || test ! -s conftest.err'
14323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14324 (eval $ac_try) 2>&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; } &&
14328 { ac_try='test -s conftest.$ac_objext'
14329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14330 (eval $ac_try) 2>&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
14334 ac_cv_member_struct_stat_st_rdev=yes
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14339 ac_cv_member_struct_stat_st_rdev=no
14341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14345 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14346 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14347 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14349 cat >>confdefs.h <<_ACEOF
14350 #define HAVE_STRUCT_STAT_ST_RDEV 1
14354 cat >>confdefs.h <<\_ACEOF
14355 #define HAVE_ST_RDEV 1
14361 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14362 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14363 if test "${ac_cv_struct_tm+set}" = set; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14366 cat >conftest.$ac_ext <<_ACEOF
14369 cat confdefs.h >>conftest.$ac_ext
14370 cat >>conftest.$ac_ext <<_ACEOF
14371 /* end confdefs.h. */
14372 #include <sys/types.h>
14378 struct tm *tp; tp->tm_sec;
14383 rm -f conftest.$ac_objext
14384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14385 (eval $ac_compile) 2>conftest.er1
14387 grep -v '^ *+' conftest.er1 >conftest.err
14389 cat conftest.err >&5
14390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391 (exit $ac_status); } &&
14392 { ac_try='test -z "$ac_c_werror_flag"
14393 || test ! -s conftest.err'
14394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14395 (eval $ac_try) 2>&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); }; } &&
14399 { ac_try='test -s conftest.$ac_objext'
14400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14401 (eval $ac_try) 2>&5
14403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14404 (exit $ac_status); }; }; then
14405 ac_cv_struct_tm=time.h
14407 echo "$as_me: failed program was:" >&5
14408 sed 's/^/| /' conftest.$ac_ext >&5
14410 ac_cv_struct_tm=sys/time.h
14412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14414 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14415 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14416 if test $ac_cv_struct_tm = sys/time.h; then
14418 cat >>confdefs.h <<\_ACEOF
14419 #define TM_IN_SYS_TIME 1
14424 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14425 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14426 if test "${ac_cv_c_const+set}" = set; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 cat >conftest.$ac_ext <<_ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14439 /* FIXME: Include the comments suggested by Paul. */
14440 #ifndef __cplusplus
14441 /* Ultrix mips cc rejects this. */
14442 typedef int charset[2];
14444 /* SunOS 4.1.1 cc rejects this. */
14445 char const *const *ccp;
14447 /* NEC SVR4.0.2 mips cc rejects this. */
14448 struct point {int x, y;};
14449 static struct point const zero = {0,0};
14450 /* AIX XL C 1.02.0.0 rejects this.
14451 It does not let you subtract one const X* pointer from another in
14452 an arm of an if-expression whose if-part is not a constant
14454 const char *g = "string";
14455 ccp = &g + (g ? g-g : 0);
14456 /* HPUX 7.0 cc rejects these. */
14459 ccp = (char const *const *) p;
14460 { /* SCO 3.2v4 cc rejects this. */
14462 char const *s = 0 ? (char *) 0 : (char const *) 0;
14466 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14467 int x[] = {25, 17};
14468 const int *foo = &x[0];
14471 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14472 typedef const int *iptr;
14476 { /* AIX XL C 1.02.0.0 rejects this saying
14477 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14478 struct s { int j; const int *ap[3]; };
14479 struct s *b; b->j = 5;
14481 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14482 const int foo = 10;
14490 rm -f conftest.$ac_objext
14491 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14492 (eval $ac_compile) 2>conftest.er1
14494 grep -v '^ *+' conftest.er1 >conftest.err
14496 cat conftest.err >&5
14497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } &&
14499 { ac_try='test -z "$ac_c_werror_flag"
14500 || test ! -s conftest.err'
14501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14502 (eval $ac_try) 2>&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); }; } &&
14506 { ac_try='test -s conftest.$ac_objext'
14507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14508 (eval $ac_try) 2>&5
14510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14511 (exit $ac_status); }; }; then
14514 echo "$as_me: failed program was:" >&5
14515 sed 's/^/| /' conftest.$ac_ext >&5
14519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14521 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14522 echo "${ECHO_T}$ac_cv_c_const" >&6
14523 if test $ac_cv_c_const = no; then
14525 cat >>confdefs.h <<\_ACEOF
14533 echo "$as_me:$LINENO: checking for char" >&5
14534 echo $ECHO_N "checking for char... $ECHO_C" >&6
14535 if test "${ac_cv_type_char+set}" = set; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14538 cat >conftest.$ac_ext <<_ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14544 $ac_includes_default
14556 rm -f conftest.$ac_objext
14557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14558 (eval $ac_compile) 2>conftest.er1
14560 grep -v '^ *+' conftest.er1 >conftest.err
14562 cat conftest.err >&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } &&
14565 { ac_try='test -z "$ac_c_werror_flag"
14566 || test ! -s conftest.err'
14567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14568 (eval $ac_try) 2>&5
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); }; } &&
14572 { ac_try='test -s conftest.$ac_objext'
14573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574 (eval $ac_try) 2>&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; }; then
14578 ac_cv_type_char=yes
14580 echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14587 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14588 echo "${ECHO_T}$ac_cv_type_char" >&6
14590 echo "$as_me:$LINENO: checking size of char" >&5
14591 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14592 if test "${ac_cv_sizeof_char+set}" = set; then
14593 echo $ECHO_N "(cached) $ECHO_C" >&6
14595 if test "$ac_cv_type_char" = yes; then
14596 # The cast to unsigned long works around a bug in the HP C Compiler
14597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14599 # This bug is HP SR number 8606223364.
14600 if test "$cross_compiling" = yes; then
14601 # Depending upon the size, compute the lo and hi bounds.
14602 cat >conftest.$ac_ext <<_ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h. */
14608 $ac_includes_default
14612 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14619 rm -f conftest.$ac_objext
14620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14621 (eval $ac_compile) 2>conftest.er1
14623 grep -v '^ *+' conftest.er1 >conftest.err
14625 cat conftest.err >&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); } &&
14628 { ac_try='test -z "$ac_c_werror_flag"
14629 || test ! -s conftest.err'
14630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14631 (eval $ac_try) 2>&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); }; } &&
14635 { ac_try='test -s conftest.$ac_objext'
14636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14637 (eval $ac_try) 2>&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; }; then
14643 cat >conftest.$ac_ext <<_ACEOF
14646 cat confdefs.h >>conftest.$ac_ext
14647 cat >>conftest.$ac_ext <<_ACEOF
14648 /* end confdefs.h. */
14649 $ac_includes_default
14653 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14660 rm -f conftest.$ac_objext
14661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14662 (eval $ac_compile) 2>conftest.er1
14664 grep -v '^ *+' conftest.er1 >conftest.err
14666 cat conftest.err >&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } &&
14669 { ac_try='test -z "$ac_c_werror_flag"
14670 || test ! -s conftest.err'
14671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14672 (eval $ac_try) 2>&5
14674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14675 (exit $ac_status); }; } &&
14676 { ac_try='test -s conftest.$ac_objext'
14677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14678 (eval $ac_try) 2>&5
14680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14681 (exit $ac_status); }; }; then
14682 ac_hi=$ac_mid; break
14684 echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.$ac_ext >&5
14687 ac_lo=`expr $ac_mid + 1`
14688 if test $ac_lo -le $ac_mid; then
14692 ac_mid=`expr 2 '*' $ac_mid + 1`
14694 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14697 echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.$ac_ext >&5
14700 cat >conftest.$ac_ext <<_ACEOF
14703 cat confdefs.h >>conftest.$ac_ext
14704 cat >>conftest.$ac_ext <<_ACEOF
14705 /* end confdefs.h. */
14706 $ac_includes_default
14710 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14717 rm -f conftest.$ac_objext
14718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14719 (eval $ac_compile) 2>conftest.er1
14721 grep -v '^ *+' conftest.er1 >conftest.err
14723 cat conftest.err >&5
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } &&
14726 { ac_try='test -z "$ac_c_werror_flag"
14727 || test ! -s conftest.err'
14728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14729 (eval $ac_try) 2>&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; } &&
14733 { ac_try='test -s conftest.$ac_objext'
14734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14735 (eval $ac_try) 2>&5
14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14738 (exit $ac_status); }; }; then
14741 cat >conftest.$ac_ext <<_ACEOF
14744 cat confdefs.h >>conftest.$ac_ext
14745 cat >>conftest.$ac_ext <<_ACEOF
14746 /* end confdefs.h. */
14747 $ac_includes_default
14751 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14758 rm -f conftest.$ac_objext
14759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14760 (eval $ac_compile) 2>conftest.er1
14762 grep -v '^ *+' conftest.er1 >conftest.err
14764 cat conftest.err >&5
14765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766 (exit $ac_status); } &&
14767 { ac_try='test -z "$ac_c_werror_flag"
14768 || test ! -s conftest.err'
14769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14770 (eval $ac_try) 2>&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); }; } &&
14774 { ac_try='test -s conftest.$ac_objext'
14775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14776 (eval $ac_try) 2>&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); }; }; then
14780 ac_lo=$ac_mid; break
14782 echo "$as_me: failed program was:" >&5
14783 sed 's/^/| /' conftest.$ac_ext >&5
14785 ac_hi=`expr '(' $ac_mid ')' - 1`
14786 if test $ac_mid -le $ac_hi; then
14790 ac_mid=`expr 2 '*' $ac_mid`
14792 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14795 echo "$as_me: failed program was:" >&5
14796 sed 's/^/| /' conftest.$ac_ext >&5
14800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14803 # Binary search between lo and hi bounds.
14804 while test "x$ac_lo" != "x$ac_hi"; do
14805 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14806 cat >conftest.$ac_ext <<_ACEOF
14809 cat confdefs.h >>conftest.$ac_ext
14810 cat >>conftest.$ac_ext <<_ACEOF
14811 /* end confdefs.h. */
14812 $ac_includes_default
14816 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14823 rm -f conftest.$ac_objext
14824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14825 (eval $ac_compile) 2>conftest.er1
14827 grep -v '^ *+' conftest.er1 >conftest.err
14829 cat conftest.err >&5
14830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14831 (exit $ac_status); } &&
14832 { ac_try='test -z "$ac_c_werror_flag"
14833 || test ! -s conftest.err'
14834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14835 (eval $ac_try) 2>&5
14837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14838 (exit $ac_status); }; } &&
14839 { ac_try='test -s conftest.$ac_objext'
14840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14841 (eval $ac_try) 2>&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }; then
14847 echo "$as_me: failed program was:" >&5
14848 sed 's/^/| /' conftest.$ac_ext >&5
14850 ac_lo=`expr '(' $ac_mid ')' + 1`
14852 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14855 ?*) ac_cv_sizeof_char=$ac_lo;;
14856 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14857 See \`config.log' for more details." >&5
14858 echo "$as_me: error: cannot compute sizeof (char), 77
14859 See \`config.log' for more details." >&2;}
14860 { (exit 1); exit 1; }; } ;;
14863 if test "$cross_compiling" = yes; then
14864 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14865 See \`config.log' for more details." >&5
14866 echo "$as_me: error: cannot run test program while cross compiling
14867 See \`config.log' for more details." >&2;}
14868 { (exit 1); exit 1; }; }
14870 cat >conftest.$ac_ext <<_ACEOF
14873 cat confdefs.h >>conftest.$ac_ext
14874 cat >>conftest.$ac_ext <<_ACEOF
14875 /* end confdefs.h. */
14876 $ac_includes_default
14877 long longval () { return (long) (sizeof (char)); }
14878 unsigned long ulongval () { return (long) (sizeof (char)); }
14880 #include <stdlib.h>
14885 FILE *f = fopen ("conftest.val", "w");
14888 if (((long) (sizeof (char))) < 0)
14890 long i = longval ();
14891 if (i != ((long) (sizeof (char))))
14893 fprintf (f, "%ld\n", i);
14897 unsigned long i = ulongval ();
14898 if (i != ((long) (sizeof (char))))
14900 fprintf (f, "%lu\n", i);
14902 exit (ferror (f) || fclose (f) != 0);
14908 rm -f conftest$ac_exeext
14909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14910 (eval $ac_link) 2>&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14915 (eval $ac_try) 2>&5
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); }; }; then
14919 ac_cv_sizeof_char=`cat conftest.val`
14921 echo "$as_me: program exited with status $ac_status" >&5
14922 echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14925 ( exit $ac_status )
14926 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14927 See \`config.log' for more details." >&5
14928 echo "$as_me: error: cannot compute sizeof (char), 77
14929 See \`config.log' for more details." >&2;}
14930 { (exit 1); exit 1; }; }
14932 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14937 ac_cv_sizeof_char=0
14940 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14941 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14942 cat >>confdefs.h <<_ACEOF
14943 #define SIZEOF_CHAR $ac_cv_sizeof_char
14947 echo "$as_me:$LINENO: checking for short int" >&5
14948 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14949 if test "${ac_cv_type_short_int+set}" = set; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14952 cat >conftest.$ac_ext <<_ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14958 $ac_includes_default
14962 if ((short int *) 0)
14964 if (sizeof (short int))
14970 rm -f conftest.$ac_objext
14971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14972 (eval $ac_compile) 2>conftest.er1
14974 grep -v '^ *+' conftest.er1 >conftest.err
14976 cat conftest.err >&5
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); } &&
14979 { ac_try='test -z "$ac_c_werror_flag"
14980 || test ! -s conftest.err'
14981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14982 (eval $ac_try) 2>&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); }; } &&
14986 { ac_try='test -s conftest.$ac_objext'
14987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14988 (eval $ac_try) 2>&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); }; }; then
14992 ac_cv_type_short_int=yes
14994 echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14997 ac_cv_type_short_int=no
14999 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15001 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
15002 echo "${ECHO_T}$ac_cv_type_short_int" >&6
15004 echo "$as_me:$LINENO: checking size of short int" >&5
15005 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
15006 if test "${ac_cv_sizeof_short_int+set}" = set; then
15007 echo $ECHO_N "(cached) $ECHO_C" >&6
15009 if test "$ac_cv_type_short_int" = yes; then
15010 # The cast to unsigned long works around a bug in the HP C Compiler
15011 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15012 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15013 # This bug is HP SR number 8606223364.
15014 if test "$cross_compiling" = yes; then
15015 # Depending upon the size, compute the lo and hi bounds.
15016 cat >conftest.$ac_ext <<_ACEOF
15019 cat confdefs.h >>conftest.$ac_ext
15020 cat >>conftest.$ac_ext <<_ACEOF
15021 /* end confdefs.h. */
15022 $ac_includes_default
15026 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
15033 rm -f conftest.$ac_objext
15034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15035 (eval $ac_compile) 2>conftest.er1
15037 grep -v '^ *+' conftest.er1 >conftest.err
15039 cat conftest.err >&5
15040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15041 (exit $ac_status); } &&
15042 { ac_try='test -z "$ac_c_werror_flag"
15043 || test ! -s conftest.err'
15044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15045 (eval $ac_try) 2>&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; } &&
15049 { ac_try='test -s conftest.$ac_objext'
15050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15051 (eval $ac_try) 2>&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 (exit $ac_status); }; }; then
15057 cat >conftest.$ac_ext <<_ACEOF
15060 cat confdefs.h >>conftest.$ac_ext
15061 cat >>conftest.$ac_ext <<_ACEOF
15062 /* end confdefs.h. */
15063 $ac_includes_default
15067 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15074 rm -f conftest.$ac_objext
15075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15076 (eval $ac_compile) 2>conftest.er1
15078 grep -v '^ *+' conftest.er1 >conftest.err
15080 cat conftest.err >&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); } &&
15083 { ac_try='test -z "$ac_c_werror_flag"
15084 || test ! -s conftest.err'
15085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15086 (eval $ac_try) 2>&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); }; } &&
15090 { ac_try='test -s conftest.$ac_objext'
15091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092 (eval $ac_try) 2>&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; }; then
15096 ac_hi=$ac_mid; break
15098 echo "$as_me: failed program was:" >&5
15099 sed 's/^/| /' conftest.$ac_ext >&5
15101 ac_lo=`expr $ac_mid + 1`
15102 if test $ac_lo -le $ac_mid; then
15106 ac_mid=`expr 2 '*' $ac_mid + 1`
15108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15111 echo "$as_me: failed program was:" >&5
15112 sed 's/^/| /' conftest.$ac_ext >&5
15114 cat >conftest.$ac_ext <<_ACEOF
15117 cat confdefs.h >>conftest.$ac_ext
15118 cat >>conftest.$ac_ext <<_ACEOF
15119 /* end confdefs.h. */
15120 $ac_includes_default
15124 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
15131 rm -f conftest.$ac_objext
15132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15133 (eval $ac_compile) 2>conftest.er1
15135 grep -v '^ *+' conftest.er1 >conftest.err
15137 cat conftest.err >&5
15138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15139 (exit $ac_status); } &&
15140 { ac_try='test -z "$ac_c_werror_flag"
15141 || test ! -s conftest.err'
15142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15143 (eval $ac_try) 2>&5
15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15146 (exit $ac_status); }; } &&
15147 { ac_try='test -s conftest.$ac_objext'
15148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15149 (eval $ac_try) 2>&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); }; }; then
15155 cat >conftest.$ac_ext <<_ACEOF
15158 cat confdefs.h >>conftest.$ac_ext
15159 cat >>conftest.$ac_ext <<_ACEOF
15160 /* end confdefs.h. */
15161 $ac_includes_default
15165 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
15172 rm -f conftest.$ac_objext
15173 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15174 (eval $ac_compile) 2>conftest.er1
15176 grep -v '^ *+' conftest.er1 >conftest.err
15178 cat conftest.err >&5
15179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180 (exit $ac_status); } &&
15181 { ac_try='test -z "$ac_c_werror_flag"
15182 || test ! -s conftest.err'
15183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15184 (eval $ac_try) 2>&5
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; } &&
15188 { ac_try='test -s conftest.$ac_objext'
15189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15190 (eval $ac_try) 2>&5
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); }; }; then
15194 ac_lo=$ac_mid; break
15196 echo "$as_me: failed program was:" >&5
15197 sed 's/^/| /' conftest.$ac_ext >&5
15199 ac_hi=`expr '(' $ac_mid ')' - 1`
15200 if test $ac_mid -le $ac_hi; then
15204 ac_mid=`expr 2 '*' $ac_mid`
15206 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15209 echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.$ac_ext >&5
15214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15217 # Binary search between lo and hi bounds.
15218 while test "x$ac_lo" != "x$ac_hi"; do
15219 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15220 cat >conftest.$ac_ext <<_ACEOF
15223 cat confdefs.h >>conftest.$ac_ext
15224 cat >>conftest.$ac_ext <<_ACEOF
15225 /* end confdefs.h. */
15226 $ac_includes_default
15230 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15237 rm -f conftest.$ac_objext
15238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15239 (eval $ac_compile) 2>conftest.er1
15241 grep -v '^ *+' conftest.er1 >conftest.err
15243 cat conftest.err >&5
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); } &&
15246 { ac_try='test -z "$ac_c_werror_flag"
15247 || test ! -s conftest.err'
15248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15249 (eval $ac_try) 2>&5
15251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15252 (exit $ac_status); }; } &&
15253 { ac_try='test -s conftest.$ac_objext'
15254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15255 (eval $ac_try) 2>&5
15257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); }; }; then
15261 echo "$as_me: failed program was:" >&5
15262 sed 's/^/| /' conftest.$ac_ext >&5
15264 ac_lo=`expr '(' $ac_mid ')' + 1`
15266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15269 ?*) ac_cv_sizeof_short_int=$ac_lo;;
15270 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15271 See \`config.log' for more details." >&5
15272 echo "$as_me: error: cannot compute sizeof (short int), 77
15273 See \`config.log' for more details." >&2;}
15274 { (exit 1); exit 1; }; } ;;
15277 if test "$cross_compiling" = yes; then
15278 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15279 See \`config.log' for more details." >&5
15280 echo "$as_me: error: cannot run test program while cross compiling
15281 See \`config.log' for more details." >&2;}
15282 { (exit 1); exit 1; }; }
15284 cat >conftest.$ac_ext <<_ACEOF
15287 cat confdefs.h >>conftest.$ac_ext
15288 cat >>conftest.$ac_ext <<_ACEOF
15289 /* end confdefs.h. */
15290 $ac_includes_default
15291 long longval () { return (long) (sizeof (short int)); }
15292 unsigned long ulongval () { return (long) (sizeof (short int)); }
15294 #include <stdlib.h>
15299 FILE *f = fopen ("conftest.val", "w");
15302 if (((long) (sizeof (short int))) < 0)
15304 long i = longval ();
15305 if (i != ((long) (sizeof (short int))))
15307 fprintf (f, "%ld\n", i);
15311 unsigned long i = ulongval ();
15312 if (i != ((long) (sizeof (short int))))
15314 fprintf (f, "%lu\n", i);
15316 exit (ferror (f) || fclose (f) != 0);
15322 rm -f conftest$ac_exeext
15323 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15324 (eval $ac_link) 2>&5
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15329 (eval $ac_try) 2>&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); }; }; then
15333 ac_cv_sizeof_short_int=`cat conftest.val`
15335 echo "$as_me: program exited with status $ac_status" >&5
15336 echo "$as_me: failed program was:" >&5
15337 sed 's/^/| /' conftest.$ac_ext >&5
15339 ( exit $ac_status )
15340 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15341 See \`config.log' for more details." >&5
15342 echo "$as_me: error: cannot compute sizeof (short int), 77
15343 See \`config.log' for more details." >&2;}
15344 { (exit 1); exit 1; }; }
15346 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15351 ac_cv_sizeof_short_int=0
15354 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15355 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15356 cat >>confdefs.h <<_ACEOF
15357 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15361 echo "$as_me:$LINENO: checking for int" >&5
15362 echo $ECHO_N "checking for int... $ECHO_C" >&6
15363 if test "${ac_cv_type_int+set}" = set; then
15364 echo $ECHO_N "(cached) $ECHO_C" >&6
15366 cat >conftest.$ac_ext <<_ACEOF
15369 cat confdefs.h >>conftest.$ac_ext
15370 cat >>conftest.$ac_ext <<_ACEOF
15371 /* end confdefs.h. */
15372 $ac_includes_default
15384 rm -f conftest.$ac_objext
15385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15386 (eval $ac_compile) 2>conftest.er1
15388 grep -v '^ *+' conftest.er1 >conftest.err
15390 cat conftest.err >&5
15391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15392 (exit $ac_status); } &&
15393 { ac_try='test -z "$ac_c_werror_flag"
15394 || test ! -s conftest.err'
15395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15396 (eval $ac_try) 2>&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; } &&
15400 { ac_try='test -s conftest.$ac_objext'
15401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15402 (eval $ac_try) 2>&5
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); }; }; then
15408 echo "$as_me: failed program was:" >&5
15409 sed 's/^/| /' conftest.$ac_ext >&5
15413 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15415 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15416 echo "${ECHO_T}$ac_cv_type_int" >&6
15418 echo "$as_me:$LINENO: checking size of int" >&5
15419 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15420 if test "${ac_cv_sizeof_int+set}" = set; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
15423 if test "$ac_cv_type_int" = yes; then
15424 # The cast to unsigned long works around a bug in the HP C Compiler
15425 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15426 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15427 # This bug is HP SR number 8606223364.
15428 if test "$cross_compiling" = yes; then
15429 # Depending upon the size, compute the lo and hi bounds.
15430 cat >conftest.$ac_ext <<_ACEOF
15433 cat confdefs.h >>conftest.$ac_ext
15434 cat >>conftest.$ac_ext <<_ACEOF
15435 /* end confdefs.h. */
15436 $ac_includes_default
15440 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15447 rm -f conftest.$ac_objext
15448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15449 (eval $ac_compile) 2>conftest.er1
15451 grep -v '^ *+' conftest.er1 >conftest.err
15453 cat conftest.err >&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } &&
15456 { ac_try='test -z "$ac_c_werror_flag"
15457 || test ! -s conftest.err'
15458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15459 (eval $ac_try) 2>&5
15461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15462 (exit $ac_status); }; } &&
15463 { ac_try='test -s conftest.$ac_objext'
15464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465 (eval $ac_try) 2>&5
15467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); }; }; then
15471 cat >conftest.$ac_ext <<_ACEOF
15474 cat confdefs.h >>conftest.$ac_ext
15475 cat >>conftest.$ac_ext <<_ACEOF
15476 /* end confdefs.h. */
15477 $ac_includes_default
15481 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15488 rm -f conftest.$ac_objext
15489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15490 (eval $ac_compile) 2>conftest.er1
15492 grep -v '^ *+' conftest.er1 >conftest.err
15494 cat conftest.err >&5
15495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15496 (exit $ac_status); } &&
15497 { ac_try='test -z "$ac_c_werror_flag"
15498 || test ! -s conftest.err'
15499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15500 (eval $ac_try) 2>&5
15502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15503 (exit $ac_status); }; } &&
15504 { ac_try='test -s conftest.$ac_objext'
15505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15506 (eval $ac_try) 2>&5
15508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15509 (exit $ac_status); }; }; then
15510 ac_hi=$ac_mid; break
15512 echo "$as_me: failed program was:" >&5
15513 sed 's/^/| /' conftest.$ac_ext >&5
15515 ac_lo=`expr $ac_mid + 1`
15516 if test $ac_lo -le $ac_mid; then
15520 ac_mid=`expr 2 '*' $ac_mid + 1`
15522 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15525 echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15528 cat >conftest.$ac_ext <<_ACEOF
15531 cat confdefs.h >>conftest.$ac_ext
15532 cat >>conftest.$ac_ext <<_ACEOF
15533 /* end confdefs.h. */
15534 $ac_includes_default
15538 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15545 rm -f conftest.$ac_objext
15546 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15547 (eval $ac_compile) 2>conftest.er1
15549 grep -v '^ *+' conftest.er1 >conftest.err
15551 cat conftest.err >&5
15552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15553 (exit $ac_status); } &&
15554 { ac_try='test -z "$ac_c_werror_flag"
15555 || test ! -s conftest.err'
15556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15557 (eval $ac_try) 2>&5
15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15560 (exit $ac_status); }; } &&
15561 { ac_try='test -s conftest.$ac_objext'
15562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15563 (eval $ac_try) 2>&5
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); }; }; then
15569 cat >conftest.$ac_ext <<_ACEOF
15572 cat confdefs.h >>conftest.$ac_ext
15573 cat >>conftest.$ac_ext <<_ACEOF
15574 /* end confdefs.h. */
15575 $ac_includes_default
15579 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15586 rm -f conftest.$ac_objext
15587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15588 (eval $ac_compile) 2>conftest.er1
15590 grep -v '^ *+' conftest.er1 >conftest.err
15592 cat conftest.err >&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } &&
15595 { ac_try='test -z "$ac_c_werror_flag"
15596 || test ! -s conftest.err'
15597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15598 (eval $ac_try) 2>&5
15600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15601 (exit $ac_status); }; } &&
15602 { ac_try='test -s conftest.$ac_objext'
15603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15604 (eval $ac_try) 2>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); }; }; then
15608 ac_lo=$ac_mid; break
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15613 ac_hi=`expr '(' $ac_mid ')' - 1`
15614 if test $ac_mid -le $ac_hi; then
15618 ac_mid=`expr 2 '*' $ac_mid`
15620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15623 echo "$as_me: failed program was:" >&5
15624 sed 's/^/| /' conftest.$ac_ext >&5
15628 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15631 # Binary search between lo and hi bounds.
15632 while test "x$ac_lo" != "x$ac_hi"; do
15633 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15634 cat >conftest.$ac_ext <<_ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15640 $ac_includes_default
15644 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15651 rm -f conftest.$ac_objext
15652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15653 (eval $ac_compile) 2>conftest.er1
15655 grep -v '^ *+' conftest.er1 >conftest.err
15657 cat conftest.err >&5
15658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659 (exit $ac_status); } &&
15660 { ac_try='test -z "$ac_c_werror_flag"
15661 || test ! -s conftest.err'
15662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15663 (eval $ac_try) 2>&5
15665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15666 (exit $ac_status); }; } &&
15667 { ac_try='test -s conftest.$ac_objext'
15668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15669 (eval $ac_try) 2>&5
15671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); }; }; then
15675 echo "$as_me: failed program was:" >&5
15676 sed 's/^/| /' conftest.$ac_ext >&5
15678 ac_lo=`expr '(' $ac_mid ')' + 1`
15680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15683 ?*) ac_cv_sizeof_int=$ac_lo;;
15684 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15685 See \`config.log' for more details." >&5
15686 echo "$as_me: error: cannot compute sizeof (int), 77
15687 See \`config.log' for more details." >&2;}
15688 { (exit 1); exit 1; }; } ;;
15691 if test "$cross_compiling" = yes; then
15692 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15693 See \`config.log' for more details." >&5
15694 echo "$as_me: error: cannot run test program while cross compiling
15695 See \`config.log' for more details." >&2;}
15696 { (exit 1); exit 1; }; }
15698 cat >conftest.$ac_ext <<_ACEOF
15701 cat confdefs.h >>conftest.$ac_ext
15702 cat >>conftest.$ac_ext <<_ACEOF
15703 /* end confdefs.h. */
15704 $ac_includes_default
15705 long longval () { return (long) (sizeof (int)); }
15706 unsigned long ulongval () { return (long) (sizeof (int)); }
15708 #include <stdlib.h>
15713 FILE *f = fopen ("conftest.val", "w");
15716 if (((long) (sizeof (int))) < 0)
15718 long i = longval ();
15719 if (i != ((long) (sizeof (int))))
15721 fprintf (f, "%ld\n", i);
15725 unsigned long i = ulongval ();
15726 if (i != ((long) (sizeof (int))))
15728 fprintf (f, "%lu\n", i);
15730 exit (ferror (f) || fclose (f) != 0);
15736 rm -f conftest$ac_exeext
15737 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15738 (eval $ac_link) 2>&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15743 (eval $ac_try) 2>&5
15745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15746 (exit $ac_status); }; }; then
15747 ac_cv_sizeof_int=`cat conftest.val`
15749 echo "$as_me: program exited with status $ac_status" >&5
15750 echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15753 ( exit $ac_status )
15754 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15755 See \`config.log' for more details." >&5
15756 echo "$as_me: error: cannot compute sizeof (int), 77
15757 See \`config.log' for more details." >&2;}
15758 { (exit 1); exit 1; }; }
15760 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15768 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15769 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15770 cat >>confdefs.h <<_ACEOF
15771 #define SIZEOF_INT $ac_cv_sizeof_int
15775 echo "$as_me:$LINENO: checking for long int" >&5
15776 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15777 if test "${ac_cv_type_long_int+set}" = set; then
15778 echo $ECHO_N "(cached) $ECHO_C" >&6
15780 cat >conftest.$ac_ext <<_ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h. */
15786 $ac_includes_default
15790 if ((long int *) 0)
15792 if (sizeof (long int))
15798 rm -f conftest.$ac_objext
15799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15800 (eval $ac_compile) 2>conftest.er1
15802 grep -v '^ *+' conftest.er1 >conftest.err
15804 cat conftest.err >&5
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); } &&
15807 { ac_try='test -z "$ac_c_werror_flag"
15808 || test ! -s conftest.err'
15809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15810 (eval $ac_try) 2>&5
15812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); }; } &&
15814 { ac_try='test -s conftest.$ac_objext'
15815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15816 (eval $ac_try) 2>&5
15818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15819 (exit $ac_status); }; }; then
15820 ac_cv_type_long_int=yes
15822 echo "$as_me: failed program was:" >&5
15823 sed 's/^/| /' conftest.$ac_ext >&5
15825 ac_cv_type_long_int=no
15827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15829 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15830 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15832 echo "$as_me:$LINENO: checking size of long int" >&5
15833 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15834 if test "${ac_cv_sizeof_long_int+set}" = set; then
15835 echo $ECHO_N "(cached) $ECHO_C" >&6
15837 if test "$ac_cv_type_long_int" = yes; then
15838 # The cast to unsigned long works around a bug in the HP C Compiler
15839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15841 # This bug is HP SR number 8606223364.
15842 if test "$cross_compiling" = yes; then
15843 # Depending upon the size, compute the lo and hi bounds.
15844 cat >conftest.$ac_ext <<_ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h. */
15850 $ac_includes_default
15854 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15861 rm -f conftest.$ac_objext
15862 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15863 (eval $ac_compile) 2>conftest.er1
15865 grep -v '^ *+' conftest.er1 >conftest.err
15867 cat conftest.err >&5
15868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15869 (exit $ac_status); } &&
15870 { ac_try='test -z "$ac_c_werror_flag"
15871 || test ! -s conftest.err'
15872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15873 (eval $ac_try) 2>&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; } &&
15877 { ac_try='test -s conftest.$ac_objext'
15878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15879 (eval $ac_try) 2>&5
15881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15882 (exit $ac_status); }; }; then
15885 cat >conftest.$ac_ext <<_ACEOF
15888 cat confdefs.h >>conftest.$ac_ext
15889 cat >>conftest.$ac_ext <<_ACEOF
15890 /* end confdefs.h. */
15891 $ac_includes_default
15895 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15902 rm -f conftest.$ac_objext
15903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15904 (eval $ac_compile) 2>conftest.er1
15906 grep -v '^ *+' conftest.er1 >conftest.err
15908 cat conftest.err >&5
15909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15910 (exit $ac_status); } &&
15911 { ac_try='test -z "$ac_c_werror_flag"
15912 || test ! -s conftest.err'
15913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15914 (eval $ac_try) 2>&5
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); }; } &&
15918 { ac_try='test -s conftest.$ac_objext'
15919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15920 (eval $ac_try) 2>&5
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); }; }; then
15924 ac_hi=$ac_mid; break
15926 echo "$as_me: failed program was:" >&5
15927 sed 's/^/| /' conftest.$ac_ext >&5
15929 ac_lo=`expr $ac_mid + 1`
15930 if test $ac_lo -le $ac_mid; then
15934 ac_mid=`expr 2 '*' $ac_mid + 1`
15936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15939 echo "$as_me: failed program was:" >&5
15940 sed 's/^/| /' conftest.$ac_ext >&5
15942 cat >conftest.$ac_ext <<_ACEOF
15945 cat confdefs.h >>conftest.$ac_ext
15946 cat >>conftest.$ac_ext <<_ACEOF
15947 /* end confdefs.h. */
15948 $ac_includes_default
15952 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15959 rm -f conftest.$ac_objext
15960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15961 (eval $ac_compile) 2>conftest.er1
15963 grep -v '^ *+' conftest.er1 >conftest.err
15965 cat conftest.err >&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } &&
15968 { ac_try='test -z "$ac_c_werror_flag"
15969 || test ! -s conftest.err'
15970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15971 (eval $ac_try) 2>&5
15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15974 (exit $ac_status); }; } &&
15975 { ac_try='test -s conftest.$ac_objext'
15976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15977 (eval $ac_try) 2>&5
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); }; }; then
15983 cat >conftest.$ac_ext <<_ACEOF
15986 cat confdefs.h >>conftest.$ac_ext
15987 cat >>conftest.$ac_ext <<_ACEOF
15988 /* end confdefs.h. */
15989 $ac_includes_default
15993 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
16000 rm -f conftest.$ac_objext
16001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16002 (eval $ac_compile) 2>conftest.er1
16004 grep -v '^ *+' conftest.er1 >conftest.err
16006 cat conftest.err >&5
16007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16008 (exit $ac_status); } &&
16009 { ac_try='test -z "$ac_c_werror_flag"
16010 || test ! -s conftest.err'
16011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16012 (eval $ac_try) 2>&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); }; } &&
16016 { ac_try='test -s conftest.$ac_objext'
16017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018 (eval $ac_try) 2>&5
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; }; then
16022 ac_lo=$ac_mid; break
16024 echo "$as_me: failed program was:" >&5
16025 sed 's/^/| /' conftest.$ac_ext >&5
16027 ac_hi=`expr '(' $ac_mid ')' - 1`
16028 if test $ac_mid -le $ac_hi; then
16032 ac_mid=`expr 2 '*' $ac_mid`
16034 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16037 echo "$as_me: failed program was:" >&5
16038 sed 's/^/| /' conftest.$ac_ext >&5
16042 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16044 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16045 # Binary search between lo and hi bounds.
16046 while test "x$ac_lo" != "x$ac_hi"; do
16047 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16048 cat >conftest.$ac_ext <<_ACEOF
16051 cat confdefs.h >>conftest.$ac_ext
16052 cat >>conftest.$ac_ext <<_ACEOF
16053 /* end confdefs.h. */
16054 $ac_includes_default
16058 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
16065 rm -f conftest.$ac_objext
16066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16067 (eval $ac_compile) 2>conftest.er1
16069 grep -v '^ *+' conftest.er1 >conftest.err
16071 cat conftest.err >&5
16072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16073 (exit $ac_status); } &&
16074 { ac_try='test -z "$ac_c_werror_flag"
16075 || test ! -s conftest.err'
16076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16077 (eval $ac_try) 2>&5
16079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16080 (exit $ac_status); }; } &&
16081 { ac_try='test -s conftest.$ac_objext'
16082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16083 (eval $ac_try) 2>&5
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); }; }; then
16089 echo "$as_me: failed program was:" >&5
16090 sed 's/^/| /' conftest.$ac_ext >&5
16092 ac_lo=`expr '(' $ac_mid ')' + 1`
16094 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16097 ?*) ac_cv_sizeof_long_int=$ac_lo;;
16098 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16099 See \`config.log' for more details." >&5
16100 echo "$as_me: error: cannot compute sizeof (long int), 77
16101 See \`config.log' for more details." >&2;}
16102 { (exit 1); exit 1; }; } ;;
16105 if test "$cross_compiling" = yes; then
16106 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16107 See \`config.log' for more details." >&5
16108 echo "$as_me: error: cannot run test program while cross compiling
16109 See \`config.log' for more details." >&2;}
16110 { (exit 1); exit 1; }; }
16112 cat >conftest.$ac_ext <<_ACEOF
16115 cat confdefs.h >>conftest.$ac_ext
16116 cat >>conftest.$ac_ext <<_ACEOF
16117 /* end confdefs.h. */
16118 $ac_includes_default
16119 long longval () { return (long) (sizeof (long int)); }
16120 unsigned long ulongval () { return (long) (sizeof (long int)); }
16122 #include <stdlib.h>
16127 FILE *f = fopen ("conftest.val", "w");
16130 if (((long) (sizeof (long int))) < 0)
16132 long i = longval ();
16133 if (i != ((long) (sizeof (long int))))
16135 fprintf (f, "%ld\n", i);
16139 unsigned long i = ulongval ();
16140 if (i != ((long) (sizeof (long int))))
16142 fprintf (f, "%lu\n", i);
16144 exit (ferror (f) || fclose (f) != 0);
16150 rm -f conftest$ac_exeext
16151 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16152 (eval $ac_link) 2>&5
16154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16157 (eval $ac_try) 2>&5
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); }; }; then
16161 ac_cv_sizeof_long_int=`cat conftest.val`
16163 echo "$as_me: program exited with status $ac_status" >&5
16164 echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16167 ( exit $ac_status )
16168 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16169 See \`config.log' for more details." >&5
16170 echo "$as_me: error: cannot compute sizeof (long int), 77
16171 See \`config.log' for more details." >&2;}
16172 { (exit 1); exit 1; }; }
16174 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16179 ac_cv_sizeof_long_int=0
16182 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
16183 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
16184 cat >>confdefs.h <<_ACEOF
16185 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16189 echo "$as_me:$LINENO: checking for long long int" >&5
16190 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16191 if test "${ac_cv_type_long_long_int+set}" = set; then
16192 echo $ECHO_N "(cached) $ECHO_C" >&6
16194 cat >conftest.$ac_ext <<_ACEOF
16197 cat confdefs.h >>conftest.$ac_ext
16198 cat >>conftest.$ac_ext <<_ACEOF
16199 /* end confdefs.h. */
16200 $ac_includes_default
16204 if ((long long int *) 0)
16206 if (sizeof (long long int))
16212 rm -f conftest.$ac_objext
16213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16214 (eval $ac_compile) 2>conftest.er1
16216 grep -v '^ *+' conftest.er1 >conftest.err
16218 cat conftest.err >&5
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); } &&
16221 { ac_try='test -z "$ac_c_werror_flag"
16222 || test ! -s conftest.err'
16223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16224 (eval $ac_try) 2>&5
16226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16227 (exit $ac_status); }; } &&
16228 { ac_try='test -s conftest.$ac_objext'
16229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16230 (eval $ac_try) 2>&5
16232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16233 (exit $ac_status); }; }; then
16234 ac_cv_type_long_long_int=yes
16236 echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16239 ac_cv_type_long_long_int=no
16241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16243 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16244 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16246 echo "$as_me:$LINENO: checking size of long long int" >&5
16247 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
16248 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
16249 echo $ECHO_N "(cached) $ECHO_C" >&6
16251 if test "$ac_cv_type_long_long_int" = yes; then
16252 # The cast to unsigned long works around a bug in the HP C Compiler
16253 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16254 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16255 # This bug is HP SR number 8606223364.
16256 if test "$cross_compiling" = yes; then
16257 # Depending upon the size, compute the lo and hi bounds.
16258 cat >conftest.$ac_ext <<_ACEOF
16261 cat confdefs.h >>conftest.$ac_ext
16262 cat >>conftest.$ac_ext <<_ACEOF
16263 /* end confdefs.h. */
16264 $ac_includes_default
16268 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
16275 rm -f conftest.$ac_objext
16276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16277 (eval $ac_compile) 2>conftest.er1
16279 grep -v '^ *+' conftest.er1 >conftest.err
16281 cat conftest.err >&5
16282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283 (exit $ac_status); } &&
16284 { ac_try='test -z "$ac_c_werror_flag"
16285 || test ! -s conftest.err'
16286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16287 (eval $ac_try) 2>&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); }; } &&
16291 { ac_try='test -s conftest.$ac_objext'
16292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16293 (eval $ac_try) 2>&5
16295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16296 (exit $ac_status); }; }; then
16299 cat >conftest.$ac_ext <<_ACEOF
16302 cat confdefs.h >>conftest.$ac_ext
16303 cat >>conftest.$ac_ext <<_ACEOF
16304 /* end confdefs.h. */
16305 $ac_includes_default
16309 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16316 rm -f conftest.$ac_objext
16317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16318 (eval $ac_compile) 2>conftest.er1
16320 grep -v '^ *+' conftest.er1 >conftest.err
16322 cat conftest.err >&5
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); } &&
16325 { ac_try='test -z "$ac_c_werror_flag"
16326 || test ! -s conftest.err'
16327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16328 (eval $ac_try) 2>&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; } &&
16332 { ac_try='test -s conftest.$ac_objext'
16333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334 (eval $ac_try) 2>&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; }; then
16338 ac_hi=$ac_mid; break
16340 echo "$as_me: failed program was:" >&5
16341 sed 's/^/| /' conftest.$ac_ext >&5
16343 ac_lo=`expr $ac_mid + 1`
16344 if test $ac_lo -le $ac_mid; then
16348 ac_mid=`expr 2 '*' $ac_mid + 1`
16350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16353 echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16356 cat >conftest.$ac_ext <<_ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h. */
16362 $ac_includes_default
16366 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16373 rm -f conftest.$ac_objext
16374 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16375 (eval $ac_compile) 2>conftest.er1
16377 grep -v '^ *+' conftest.er1 >conftest.err
16379 cat conftest.err >&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); } &&
16382 { ac_try='test -z "$ac_c_werror_flag"
16383 || test ! -s conftest.err'
16384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16385 (eval $ac_try) 2>&5
16387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388 (exit $ac_status); }; } &&
16389 { ac_try='test -s conftest.$ac_objext'
16390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16391 (eval $ac_try) 2>&5
16393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16394 (exit $ac_status); }; }; then
16397 cat >conftest.$ac_ext <<_ACEOF
16400 cat confdefs.h >>conftest.$ac_ext
16401 cat >>conftest.$ac_ext <<_ACEOF
16402 /* end confdefs.h. */
16403 $ac_includes_default
16407 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16414 rm -f conftest.$ac_objext
16415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16416 (eval $ac_compile) 2>conftest.er1
16418 grep -v '^ *+' conftest.er1 >conftest.err
16420 cat conftest.err >&5
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); } &&
16423 { ac_try='test -z "$ac_c_werror_flag"
16424 || test ! -s conftest.err'
16425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16426 (eval $ac_try) 2>&5
16428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16429 (exit $ac_status); }; } &&
16430 { ac_try='test -s conftest.$ac_objext'
16431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16432 (eval $ac_try) 2>&5
16434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16435 (exit $ac_status); }; }; then
16436 ac_lo=$ac_mid; break
16438 echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16441 ac_hi=`expr '(' $ac_mid ')' - 1`
16442 if test $ac_mid -le $ac_hi; then
16446 ac_mid=`expr 2 '*' $ac_mid`
16448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16451 echo "$as_me: failed program was:" >&5
16452 sed 's/^/| /' conftest.$ac_ext >&5
16456 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16458 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16459 # Binary search between lo and hi bounds.
16460 while test "x$ac_lo" != "x$ac_hi"; do
16461 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16462 cat >conftest.$ac_ext <<_ACEOF
16465 cat confdefs.h >>conftest.$ac_ext
16466 cat >>conftest.$ac_ext <<_ACEOF
16467 /* end confdefs.h. */
16468 $ac_includes_default
16472 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16479 rm -f conftest.$ac_objext
16480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16481 (eval $ac_compile) 2>conftest.er1
16483 grep -v '^ *+' conftest.er1 >conftest.err
16485 cat conftest.err >&5
16486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16487 (exit $ac_status); } &&
16488 { ac_try='test -z "$ac_c_werror_flag"
16489 || test ! -s conftest.err'
16490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16491 (eval $ac_try) 2>&5
16493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16494 (exit $ac_status); }; } &&
16495 { ac_try='test -s conftest.$ac_objext'
16496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16497 (eval $ac_try) 2>&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; }; then
16503 echo "$as_me: failed program was:" >&5
16504 sed 's/^/| /' conftest.$ac_ext >&5
16506 ac_lo=`expr '(' $ac_mid ')' + 1`
16508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16511 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16512 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16513 See \`config.log' for more details." >&5
16514 echo "$as_me: error: cannot compute sizeof (long long int), 77
16515 See \`config.log' for more details." >&2;}
16516 { (exit 1); exit 1; }; } ;;
16519 if test "$cross_compiling" = yes; then
16520 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16521 See \`config.log' for more details." >&5
16522 echo "$as_me: error: cannot run test program while cross compiling
16523 See \`config.log' for more details." >&2;}
16524 { (exit 1); exit 1; }; }
16526 cat >conftest.$ac_ext <<_ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h. */
16532 $ac_includes_default
16533 long longval () { return (long) (sizeof (long long int)); }
16534 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16536 #include <stdlib.h>
16541 FILE *f = fopen ("conftest.val", "w");
16544 if (((long) (sizeof (long long int))) < 0)
16546 long i = longval ();
16547 if (i != ((long) (sizeof (long long int))))
16549 fprintf (f, "%ld\n", i);
16553 unsigned long i = ulongval ();
16554 if (i != ((long) (sizeof (long long int))))
16556 fprintf (f, "%lu\n", i);
16558 exit (ferror (f) || fclose (f) != 0);
16564 rm -f conftest$ac_exeext
16565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16566 (eval $ac_link) 2>&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16571 (eval $ac_try) 2>&5
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); }; }; then
16575 ac_cv_sizeof_long_long_int=`cat conftest.val`
16577 echo "$as_me: program exited with status $ac_status" >&5
16578 echo "$as_me: failed program was:" >&5
16579 sed 's/^/| /' conftest.$ac_ext >&5
16581 ( exit $ac_status )
16582 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16583 See \`config.log' for more details." >&5
16584 echo "$as_me: error: cannot compute sizeof (long long int), 77
16585 See \`config.log' for more details." >&2;}
16586 { (exit 1); exit 1; }; }
16588 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16593 ac_cv_sizeof_long_long_int=0
16596 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16597 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16598 cat >>confdefs.h <<_ACEOF
16599 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16603 echo "$as_me:$LINENO: checking for int *" >&5
16604 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16605 if test "${ac_cv_type_int_p+set}" = set; then
16606 echo $ECHO_N "(cached) $ECHO_C" >&6
16608 cat >conftest.$ac_ext <<_ACEOF
16611 cat confdefs.h >>conftest.$ac_ext
16612 cat >>conftest.$ac_ext <<_ACEOF
16613 /* end confdefs.h. */
16614 $ac_includes_default
16620 if (sizeof (int *))
16626 rm -f conftest.$ac_objext
16627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16628 (eval $ac_compile) 2>conftest.er1
16630 grep -v '^ *+' conftest.er1 >conftest.err
16632 cat conftest.err >&5
16633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16634 (exit $ac_status); } &&
16635 { ac_try='test -z "$ac_c_werror_flag"
16636 || test ! -s conftest.err'
16637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16638 (eval $ac_try) 2>&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; } &&
16642 { ac_try='test -s conftest.$ac_objext'
16643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16644 (eval $ac_try) 2>&5
16646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16647 (exit $ac_status); }; }; then
16648 ac_cv_type_int_p=yes
16650 echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16653 ac_cv_type_int_p=no
16655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16657 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16658 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16660 echo "$as_me:$LINENO: checking size of int *" >&5
16661 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16662 if test "${ac_cv_sizeof_int_p+set}" = set; then
16663 echo $ECHO_N "(cached) $ECHO_C" >&6
16665 if test "$ac_cv_type_int_p" = yes; then
16666 # The cast to unsigned long works around a bug in the HP C Compiler
16667 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16668 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16669 # This bug is HP SR number 8606223364.
16670 if test "$cross_compiling" = yes; then
16671 # Depending upon the size, compute the lo and hi bounds.
16672 cat >conftest.$ac_ext <<_ACEOF
16675 cat confdefs.h >>conftest.$ac_ext
16676 cat >>conftest.$ac_ext <<_ACEOF
16677 /* end confdefs.h. */
16678 $ac_includes_default
16682 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16689 rm -f conftest.$ac_objext
16690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16691 (eval $ac_compile) 2>conftest.er1
16693 grep -v '^ *+' conftest.er1 >conftest.err
16695 cat conftest.err >&5
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); } &&
16698 { ac_try='test -z "$ac_c_werror_flag"
16699 || test ! -s conftest.err'
16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16701 (eval $ac_try) 2>&5
16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16704 (exit $ac_status); }; } &&
16705 { ac_try='test -s conftest.$ac_objext'
16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16707 (eval $ac_try) 2>&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); }; }; then
16713 cat >conftest.$ac_ext <<_ACEOF
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h. */
16719 $ac_includes_default
16723 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16730 rm -f conftest.$ac_objext
16731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16732 (eval $ac_compile) 2>conftest.er1
16734 grep -v '^ *+' conftest.er1 >conftest.err
16736 cat conftest.err >&5
16737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16738 (exit $ac_status); } &&
16739 { ac_try='test -z "$ac_c_werror_flag"
16740 || test ! -s conftest.err'
16741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16742 (eval $ac_try) 2>&5
16744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16745 (exit $ac_status); }; } &&
16746 { ac_try='test -s conftest.$ac_objext'
16747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16748 (eval $ac_try) 2>&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); }; }; then
16752 ac_hi=$ac_mid; break
16754 echo "$as_me: failed program was:" >&5
16755 sed 's/^/| /' conftest.$ac_ext >&5
16757 ac_lo=`expr $ac_mid + 1`
16758 if test $ac_lo -le $ac_mid; then
16762 ac_mid=`expr 2 '*' $ac_mid + 1`
16764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16767 echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.$ac_ext >&5
16770 cat >conftest.$ac_ext <<_ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16776 $ac_includes_default
16780 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16787 rm -f conftest.$ac_objext
16788 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16789 (eval $ac_compile) 2>conftest.er1
16791 grep -v '^ *+' conftest.er1 >conftest.err
16793 cat conftest.err >&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); } &&
16796 { ac_try='test -z "$ac_c_werror_flag"
16797 || test ! -s conftest.err'
16798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16799 (eval $ac_try) 2>&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 (exit $ac_status); }; } &&
16803 { ac_try='test -s conftest.$ac_objext'
16804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16805 (eval $ac_try) 2>&5
16807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16808 (exit $ac_status); }; }; then
16811 cat >conftest.$ac_ext <<_ACEOF
16814 cat confdefs.h >>conftest.$ac_ext
16815 cat >>conftest.$ac_ext <<_ACEOF
16816 /* end confdefs.h. */
16817 $ac_includes_default
16821 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16828 rm -f conftest.$ac_objext
16829 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16830 (eval $ac_compile) 2>conftest.er1
16832 grep -v '^ *+' conftest.er1 >conftest.err
16834 cat conftest.err >&5
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); } &&
16837 { ac_try='test -z "$ac_c_werror_flag"
16838 || test ! -s conftest.err'
16839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16840 (eval $ac_try) 2>&5
16842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16843 (exit $ac_status); }; } &&
16844 { ac_try='test -s conftest.$ac_objext'
16845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16846 (eval $ac_try) 2>&5
16848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16849 (exit $ac_status); }; }; then
16850 ac_lo=$ac_mid; break
16852 echo "$as_me: failed program was:" >&5
16853 sed 's/^/| /' conftest.$ac_ext >&5
16855 ac_hi=`expr '(' $ac_mid ')' - 1`
16856 if test $ac_mid -le $ac_hi; then
16860 ac_mid=`expr 2 '*' $ac_mid`
16862 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16865 echo "$as_me: failed program was:" >&5
16866 sed 's/^/| /' conftest.$ac_ext >&5
16870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16873 # Binary search between lo and hi bounds.
16874 while test "x$ac_lo" != "x$ac_hi"; do
16875 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16876 cat >conftest.$ac_ext <<_ACEOF
16879 cat confdefs.h >>conftest.$ac_ext
16880 cat >>conftest.$ac_ext <<_ACEOF
16881 /* end confdefs.h. */
16882 $ac_includes_default
16886 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16893 rm -f conftest.$ac_objext
16894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16895 (eval $ac_compile) 2>conftest.er1
16897 grep -v '^ *+' conftest.er1 >conftest.err
16899 cat conftest.err >&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 (exit $ac_status); } &&
16902 { ac_try='test -z "$ac_c_werror_flag"
16903 || test ! -s conftest.err'
16904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16905 (eval $ac_try) 2>&5
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); }; } &&
16909 { ac_try='test -s conftest.$ac_objext'
16910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16911 (eval $ac_try) 2>&5
16913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16914 (exit $ac_status); }; }; then
16917 echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.$ac_ext >&5
16920 ac_lo=`expr '(' $ac_mid ')' + 1`
16922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16925 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16926 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16927 See \`config.log' for more details." >&5
16928 echo "$as_me: error: cannot compute sizeof (int *), 77
16929 See \`config.log' for more details." >&2;}
16930 { (exit 1); exit 1; }; } ;;
16933 if test "$cross_compiling" = yes; then
16934 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16935 See \`config.log' for more details." >&5
16936 echo "$as_me: error: cannot run test program while cross compiling
16937 See \`config.log' for more details." >&2;}
16938 { (exit 1); exit 1; }; }
16940 cat >conftest.$ac_ext <<_ACEOF
16943 cat confdefs.h >>conftest.$ac_ext
16944 cat >>conftest.$ac_ext <<_ACEOF
16945 /* end confdefs.h. */
16946 $ac_includes_default
16947 long longval () { return (long) (sizeof (int *)); }
16948 unsigned long ulongval () { return (long) (sizeof (int *)); }
16950 #include <stdlib.h>
16955 FILE *f = fopen ("conftest.val", "w");
16958 if (((long) (sizeof (int *))) < 0)
16960 long i = longval ();
16961 if (i != ((long) (sizeof (int *))))
16963 fprintf (f, "%ld\n", i);
16967 unsigned long i = ulongval ();
16968 if (i != ((long) (sizeof (int *))))
16970 fprintf (f, "%lu\n", i);
16972 exit (ferror (f) || fclose (f) != 0);
16978 rm -f conftest$ac_exeext
16979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16980 (eval $ac_link) 2>&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16985 (eval $ac_try) 2>&5
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); }; }; then
16989 ac_cv_sizeof_int_p=`cat conftest.val`
16991 echo "$as_me: program exited with status $ac_status" >&5
16992 echo "$as_me: failed program was:" >&5
16993 sed 's/^/| /' conftest.$ac_ext >&5
16995 ( exit $ac_status )
16996 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16997 See \`config.log' for more details." >&5
16998 echo "$as_me: error: cannot compute sizeof (int *), 77
16999 See \`config.log' for more details." >&2;}
17000 { (exit 1); exit 1; }; }
17002 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17007 ac_cv_sizeof_int_p=0
17010 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
17011 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
17012 cat >>confdefs.h <<_ACEOF
17013 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
17018 # Check for sys/types.h types
17019 echo "$as_me:$LINENO: checking for u_int type" >&5
17020 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
17021 if test "${ac_cv_have_u_int+set}" = set; then
17022 echo $ECHO_N "(cached) $ECHO_C" >&6
17025 cat >conftest.$ac_ext <<_ACEOF
17028 cat confdefs.h >>conftest.$ac_ext
17029 cat >>conftest.$ac_ext <<_ACEOF
17030 /* end confdefs.h. */
17031 #include <sys/types.h>
17040 rm -f conftest.$ac_objext
17041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17042 (eval $ac_compile) 2>conftest.er1
17044 grep -v '^ *+' conftest.er1 >conftest.err
17046 cat conftest.err >&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); } &&
17049 { ac_try='test -z "$ac_c_werror_flag"
17050 || test ! -s conftest.err'
17051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17052 (eval $ac_try) 2>&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); }; } &&
17056 { ac_try='test -s conftest.$ac_objext'
17057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17058 (eval $ac_try) 2>&5
17060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17061 (exit $ac_status); }; }; then
17062 ac_cv_have_u_int="yes"
17064 echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17067 ac_cv_have_u_int="no"
17070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17073 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
17074 echo "${ECHO_T}$ac_cv_have_u_int" >&6
17075 if test "x$ac_cv_have_u_int" = "xyes" ; then
17076 cat >>confdefs.h <<\_ACEOF
17077 #define HAVE_U_INT 1
17083 echo "$as_me:$LINENO: checking for intmax_t type" >&5
17084 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
17085 if test "${ac_cv_have_intmax_t+set}" = set; then
17086 echo $ECHO_N "(cached) $ECHO_C" >&6
17089 cat >conftest.$ac_ext <<_ACEOF
17092 cat confdefs.h >>conftest.$ac_ext
17093 cat >>conftest.$ac_ext <<_ACEOF
17094 /* end confdefs.h. */
17095 #include <sys/types.h>
17104 rm -f conftest.$ac_objext
17105 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17106 (eval $ac_compile) 2>conftest.er1
17108 grep -v '^ *+' conftest.er1 >conftest.err
17110 cat conftest.err >&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } &&
17113 { ac_try='test -z "$ac_c_werror_flag"
17114 || test ! -s conftest.err'
17115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17116 (eval $ac_try) 2>&5
17118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17119 (exit $ac_status); }; } &&
17120 { ac_try='test -s conftest.$ac_objext'
17121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17122 (eval $ac_try) 2>&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); }; }; then
17126 ac_cv_have_intmax_t="yes"
17128 echo "$as_me: failed program was:" >&5
17129 sed 's/^/| /' conftest.$ac_ext >&5
17132 cat >conftest.$ac_ext <<_ACEOF
17135 cat confdefs.h >>conftest.$ac_ext
17136 cat >>conftest.$ac_ext <<_ACEOF
17137 /* end confdefs.h. */
17138 #include <stdint.h>
17147 rm -f conftest.$ac_objext
17148 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17149 (eval $ac_compile) 2>conftest.er1
17151 grep -v '^ *+' conftest.er1 >conftest.err
17153 cat conftest.err >&5
17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } &&
17156 { ac_try='test -z "$ac_c_werror_flag"
17157 || test ! -s conftest.err'
17158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17159 (eval $ac_try) 2>&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); }; } &&
17163 { ac_try='test -s conftest.$ac_objext'
17164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165 (eval $ac_try) 2>&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; }; then
17169 ac_cv_have_intmax_t="yes"
17171 echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17174 ac_cv_have_intmax_t="no"
17177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17185 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
17186 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
17187 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
17188 cat >>confdefs.h <<\_ACEOF
17189 #define HAVE_INTMAX_T 1
17196 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
17197 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
17198 if test "${ac_cv_have_u_intmax_t+set}" = set; then
17199 echo $ECHO_N "(cached) $ECHO_C" >&6
17202 cat >conftest.$ac_ext <<_ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17208 #include <sys/types.h>
17212 u_intmax_t a; a = 1;
17217 rm -f conftest.$ac_objext
17218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17219 (eval $ac_compile) 2>conftest.er1
17221 grep -v '^ *+' conftest.er1 >conftest.err
17223 cat conftest.err >&5
17224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17225 (exit $ac_status); } &&
17226 { ac_try='test -z "$ac_c_werror_flag"
17227 || test ! -s conftest.err'
17228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17229 (eval $ac_try) 2>&5
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); }; } &&
17233 { ac_try='test -s conftest.$ac_objext'
17234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17235 (eval $ac_try) 2>&5
17237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17238 (exit $ac_status); }; }; then
17239 ac_cv_have_u_intmax_t="yes"
17241 echo "$as_me: failed program was:" >&5
17242 sed 's/^/| /' conftest.$ac_ext >&5
17245 cat >conftest.$ac_ext <<_ACEOF
17248 cat confdefs.h >>conftest.$ac_ext
17249 cat >>conftest.$ac_ext <<_ACEOF
17250 /* end confdefs.h. */
17251 #include <stdint.h>
17255 u_intmax_t a; a = 1;
17260 rm -f conftest.$ac_objext
17261 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17262 (eval $ac_compile) 2>conftest.er1
17264 grep -v '^ *+' conftest.er1 >conftest.err
17266 cat conftest.err >&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); } &&
17269 { ac_try='test -z "$ac_c_werror_flag"
17270 || test ! -s conftest.err'
17271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17272 (eval $ac_try) 2>&5
17274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17275 (exit $ac_status); }; } &&
17276 { ac_try='test -s conftest.$ac_objext'
17277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17278 (eval $ac_try) 2>&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); }; }; then
17282 ac_cv_have_u_intmax_t="yes"
17284 echo "$as_me: failed program was:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17287 ac_cv_have_u_intmax_t="no"
17290 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17297 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
17298 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
17299 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
17300 cat >>confdefs.h <<\_ACEOF
17301 #define HAVE_U_INTMAX_T 1
17308 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17309 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17310 if test "${ac_cv_have_intxx_t+set}" = set; then
17311 echo $ECHO_N "(cached) $ECHO_C" >&6
17314 cat >conftest.$ac_ext <<_ACEOF
17317 cat confdefs.h >>conftest.$ac_ext
17318 cat >>conftest.$ac_ext <<_ACEOF
17319 /* end confdefs.h. */
17320 #include <sys/types.h>
17324 int8_t a; int16_t b; int32_t c; a = b = c = 1;
17329 rm -f conftest.$ac_objext
17330 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17331 (eval $ac_compile) 2>conftest.er1
17333 grep -v '^ *+' conftest.er1 >conftest.err
17335 cat conftest.err >&5
17336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17337 (exit $ac_status); } &&
17338 { ac_try='test -z "$ac_c_werror_flag"
17339 || test ! -s conftest.err'
17340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17341 (eval $ac_try) 2>&5
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); }; } &&
17345 { ac_try='test -s conftest.$ac_objext'
17346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347 (eval $ac_try) 2>&5
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); }; }; then
17351 ac_cv_have_intxx_t="yes"
17353 echo "$as_me: failed program was:" >&5
17354 sed 's/^/| /' conftest.$ac_ext >&5
17356 ac_cv_have_intxx_t="no"
17359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17362 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17363 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17364 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17365 cat >>confdefs.h <<\_ACEOF
17366 #define HAVE_INTXX_T 1
17372 echo "$as_me:$LINENO: checking for int64_t type" >&5
17373 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17374 if test "${ac_cv_have_int64_t+set}" = set; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17378 cat >conftest.$ac_ext <<_ACEOF
17381 cat confdefs.h >>conftest.$ac_ext
17382 cat >>conftest.$ac_ext <<_ACEOF
17383 /* end confdefs.h. */
17384 #include <sys/types.h>
17393 rm -f conftest.$ac_objext
17394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17395 (eval $ac_compile) 2>conftest.er1
17397 grep -v '^ *+' conftest.er1 >conftest.err
17399 cat conftest.err >&5
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); } &&
17402 { ac_try='test -z "$ac_c_werror_flag"
17403 || test ! -s conftest.err'
17404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17405 (eval $ac_try) 2>&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); }; } &&
17409 { ac_try='test -s conftest.$ac_objext'
17410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17411 (eval $ac_try) 2>&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; }; then
17415 ac_cv_have_int64_t="yes"
17417 echo "$as_me: failed program was:" >&5
17418 sed 's/^/| /' conftest.$ac_ext >&5
17420 ac_cv_have_int64_t="no"
17423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17426 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17427 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17428 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17429 cat >>confdefs.h <<\_ACEOF
17430 #define HAVE_INT64_T 1
17436 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17437 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17438 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17439 echo $ECHO_N "(cached) $ECHO_C" >&6
17442 cat >conftest.$ac_ext <<_ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h. */
17448 #include <sys/types.h>
17452 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17457 rm -f conftest.$ac_objext
17458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17459 (eval $ac_compile) 2>conftest.er1
17461 grep -v '^ *+' conftest.er1 >conftest.err
17463 cat conftest.err >&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); } &&
17466 { ac_try='test -z "$ac_c_werror_flag"
17467 || test ! -s conftest.err'
17468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469 (eval $ac_try) 2>&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); }; } &&
17473 { ac_try='test -s conftest.$ac_objext'
17474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; }; then
17479 ac_cv_have_u_intxx_t="yes"
17481 echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17484 ac_cv_have_u_intxx_t="no"
17487 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17490 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17491 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17492 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17493 cat >>confdefs.h <<\_ACEOF
17494 #define HAVE_U_INTXX_T 1
17500 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17501 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17502 if test "${ac_cv_have_u_int64_t+set}" = set; then
17503 echo $ECHO_N "(cached) $ECHO_C" >&6
17506 cat >conftest.$ac_ext <<_ACEOF
17509 cat confdefs.h >>conftest.$ac_ext
17510 cat >>conftest.$ac_ext <<_ACEOF
17511 /* end confdefs.h. */
17512 #include <sys/types.h>
17516 u_int64_t a; a = 1;
17521 rm -f conftest.$ac_objext
17522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17523 (eval $ac_compile) 2>conftest.er1
17525 grep -v '^ *+' conftest.er1 >conftest.err
17527 cat conftest.err >&5
17528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529 (exit $ac_status); } &&
17530 { ac_try='test -z "$ac_c_werror_flag"
17531 || test ! -s conftest.err'
17532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17533 (eval $ac_try) 2>&5
17535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); }; } &&
17537 { ac_try='test -s conftest.$ac_objext'
17538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17539 (eval $ac_try) 2>&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); }; }; then
17543 ac_cv_have_u_int64_t="yes"
17545 echo "$as_me: failed program was:" >&5
17546 sed 's/^/| /' conftest.$ac_ext >&5
17548 ac_cv_have_u_int64_t="no"
17551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17554 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17555 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17556 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17557 cat >>confdefs.h <<\_ACEOF
17558 #define HAVE_U_INT64_T 1
17564 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17565 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17567 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17568 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17569 cat >conftest.$ac_ext <<_ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h. */
17575 #include <sys/bitypes.h>
17579 int8_t a; int16_t b; int32_t c;
17580 u_int8_t e; u_int16_t f; u_int32_t g;
17581 a = b = c = e = f = g = 1;
17586 rm -f conftest.$ac_objext
17587 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17588 (eval $ac_compile) 2>conftest.er1
17590 grep -v '^ *+' conftest.er1 >conftest.err
17592 cat conftest.err >&5
17593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17594 (exit $ac_status); } &&
17595 { ac_try='test -z "$ac_c_werror_flag"
17596 || test ! -s conftest.err'
17597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17598 (eval $ac_try) 2>&5
17600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17601 (exit $ac_status); }; } &&
17602 { ac_try='test -s conftest.$ac_objext'
17603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17604 (eval $ac_try) 2>&5
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
17608 cat >>confdefs.h <<\_ACEOF
17609 #define HAVE_U_INTXX_T 1
17612 cat >>confdefs.h <<\_ACEOF
17613 #define HAVE_INTXX_T 1
17616 cat >>confdefs.h <<\_ACEOF
17617 #define HAVE_SYS_BITYPES_H 1
17620 echo "$as_me:$LINENO: result: yes" >&5
17621 echo "${ECHO_T}yes" >&6
17623 echo "$as_me: failed program was:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17626 echo "$as_me:$LINENO: result: no" >&5
17627 echo "${ECHO_T}no" >&6
17630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17633 if test -z "$have_u_intxx_t" ; then
17634 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17635 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17636 if test "${ac_cv_have_uintxx_t+set}" = set; then
17637 echo $ECHO_N "(cached) $ECHO_C" >&6
17640 cat >conftest.$ac_ext <<_ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17646 #include <sys/types.h>
17650 uint8_t a; uint16_t b;
17651 uint32_t c; a = b = c = 1;
17656 rm -f conftest.$ac_objext
17657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17658 (eval $ac_compile) 2>conftest.er1
17660 grep -v '^ *+' conftest.er1 >conftest.err
17662 cat conftest.err >&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } &&
17665 { ac_try='test -z "$ac_c_werror_flag"
17666 || test ! -s conftest.err'
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; } &&
17672 { ac_try='test -s conftest.$ac_objext'
17673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17674 (eval $ac_try) 2>&5
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); }; }; then
17678 ac_cv_have_uintxx_t="yes"
17680 echo "$as_me: failed program was:" >&5
17681 sed 's/^/| /' conftest.$ac_ext >&5
17683 ac_cv_have_uintxx_t="no"
17686 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17689 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17690 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17691 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17692 cat >>confdefs.h <<\_ACEOF
17693 #define HAVE_UINTXX_T 1
17699 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17700 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17702 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17703 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17704 cat >conftest.$ac_ext <<_ACEOF
17707 cat confdefs.h >>conftest.$ac_ext
17708 cat >>conftest.$ac_ext <<_ACEOF
17709 /* end confdefs.h. */
17710 #include <sys/bitypes.h>
17714 int64_t a; u_int64_t b;
17720 rm -f conftest.$ac_objext
17721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17722 (eval $ac_compile) 2>conftest.er1
17724 grep -v '^ *+' conftest.er1 >conftest.err
17726 cat conftest.err >&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); } &&
17729 { ac_try='test -z "$ac_c_werror_flag"
17730 || test ! -s conftest.err'
17731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17732 (eval $ac_try) 2>&5
17734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17735 (exit $ac_status); }; } &&
17736 { ac_try='test -s conftest.$ac_objext'
17737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17738 (eval $ac_try) 2>&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; }; then
17742 cat >>confdefs.h <<\_ACEOF
17743 #define HAVE_U_INT64_T 1
17746 cat >>confdefs.h <<\_ACEOF
17747 #define HAVE_INT64_T 1
17750 echo "$as_me:$LINENO: result: yes" >&5
17751 echo "${ECHO_T}yes" >&6
17753 echo "$as_me: failed program was:" >&5
17754 sed 's/^/| /' conftest.$ac_ext >&5
17756 echo "$as_me:$LINENO: result: no" >&5
17757 echo "${ECHO_T}no" >&6
17760 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17763 if (test -z "$have_uintxx_t" && \
17764 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17766 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17767 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17768 cat >conftest.$ac_ext <<_ACEOF
17771 cat confdefs.h >>conftest.$ac_ext
17772 cat >>conftest.$ac_ext <<_ACEOF
17773 /* end confdefs.h. */
17774 #include <sys/bitypes.h>
17778 uint8_t a; uint16_t b;
17779 uint32_t c; a = b = c = 1;
17784 rm -f conftest.$ac_objext
17785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17786 (eval $ac_compile) 2>conftest.er1
17788 grep -v '^ *+' conftest.er1 >conftest.err
17790 cat conftest.err >&5
17791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17792 (exit $ac_status); } &&
17793 { ac_try='test -z "$ac_c_werror_flag"
17794 || test ! -s conftest.err'
17795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17796 (eval $ac_try) 2>&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; } &&
17800 { ac_try='test -s conftest.$ac_objext'
17801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17802 (eval $ac_try) 2>&5
17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805 (exit $ac_status); }; }; then
17806 cat >>confdefs.h <<\_ACEOF
17807 #define HAVE_UINTXX_T 1
17810 echo "$as_me:$LINENO: result: yes" >&5
17811 echo "${ECHO_T}yes" >&6
17813 echo "$as_me: failed program was:" >&5
17814 sed 's/^/| /' conftest.$ac_ext >&5
17816 echo "$as_me:$LINENO: result: no" >&5
17817 echo "${ECHO_T}no" >&6
17820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17857 echo "$as_me:$LINENO: checking for $ac_func" >&5
17858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17859 if eval "test \"\${$as_ac_var+set}\" = set"; then
17860 echo $ECHO_N "(cached) $ECHO_C" >&6
17862 cat >conftest.$ac_ext <<_ACEOF
17865 cat confdefs.h >>conftest.$ac_ext
17866 cat >>conftest.$ac_ext <<_ACEOF
17867 /* end confdefs.h. */
17868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17870 #define $ac_func innocuous_$ac_func
17872 /* System header to define __stub macros and hopefully few prototypes,
17873 which can conflict with char $ac_func (); below.
17874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17875 <limits.h> exists even on freestanding compilers. */
17878 # include <limits.h>
17880 # include <assert.h>
17885 /* Override any gcc2 internal prototype to avoid an error. */
17890 /* We use char because int might match the return type of a gcc2
17891 builtin and then its argument prototype would still apply. */
17893 /* The GNU C library defines this for functions which it implements
17894 to always fail with ENOSYS. Some functions are actually named
17895 something starting with __ and the normal name is an alias. */
17896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17899 char (*f) () = $ac_func;
17908 return f != $ac_func;
17913 rm -f conftest.$ac_objext conftest$ac_exeext
17914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17915 (eval $ac_link) 2>conftest.er1
17917 grep -v '^ *+' conftest.er1 >conftest.err
17919 cat conftest.err >&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); } &&
17922 { ac_try='test -z "$ac_c_werror_flag"
17923 || test ! -s conftest.err'
17924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17925 (eval $ac_try) 2>&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); }; } &&
17929 { ac_try='test -s conftest$ac_exeext'
17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931 (eval $ac_try) 2>&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; }; then
17935 eval "$as_ac_var=yes"
17937 echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17940 eval "$as_ac_var=no"
17942 rm -f conftest.err conftest.$ac_objext \
17943 conftest$ac_exeext conftest.$ac_ext
17945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17947 if test `eval echo '${'$as_ac_var'}'` = yes; then
17948 cat >>confdefs.h <<_ACEOF
17949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17953 echo 'configure: cannot find needed function.'; exit 1
17960 for ac_func in fchdir
17962 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17963 echo "$as_me:$LINENO: checking for $ac_func" >&5
17964 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17965 if eval "test \"\${$as_ac_var+set}\" = set"; then
17966 echo $ECHO_N "(cached) $ECHO_C" >&6
17968 cat >conftest.$ac_ext <<_ACEOF
17971 cat confdefs.h >>conftest.$ac_ext
17972 cat >>conftest.$ac_ext <<_ACEOF
17973 /* end confdefs.h. */
17974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17976 #define $ac_func innocuous_$ac_func
17978 /* System header to define __stub macros and hopefully few prototypes,
17979 which can conflict with char $ac_func (); below.
17980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17981 <limits.h> exists even on freestanding compilers. */
17984 # include <limits.h>
17986 # include <assert.h>
17991 /* Override any gcc2 internal prototype to avoid an error. */
17996 /* We use char because int might match the return type of a gcc2
17997 builtin and then its argument prototype would still apply. */
17999 /* The GNU C library defines this for functions which it implements
18000 to always fail with ENOSYS. Some functions are actually named
18001 something starting with __ and the normal name is an alias. */
18002 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18005 char (*f) () = $ac_func;
18014 return f != $ac_func;
18019 rm -f conftest.$ac_objext conftest$ac_exeext
18020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18021 (eval $ac_link) 2>conftest.er1
18023 grep -v '^ *+' conftest.er1 >conftest.err
18025 cat conftest.err >&5
18026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18027 (exit $ac_status); } &&
18028 { ac_try='test -z "$ac_c_werror_flag"
18029 || test ! -s conftest.err'
18030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18031 (eval $ac_try) 2>&5
18033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18034 (exit $ac_status); }; } &&
18035 { ac_try='test -s conftest$ac_exeext'
18036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18037 (eval $ac_try) 2>&5
18039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18040 (exit $ac_status); }; }; then
18041 eval "$as_ac_var=yes"
18043 echo "$as_me: failed program was:" >&5
18044 sed 's/^/| /' conftest.$ac_ext >&5
18046 eval "$as_ac_var=no"
18048 rm -f conftest.err conftest.$ac_objext \
18049 conftest$ac_exeext conftest.$ac_ext
18051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18052 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18053 if test `eval echo '${'$as_ac_var'}'` = yes; then
18054 cat >>confdefs.h <<_ACEOF
18055 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18057 cat >>confdefs.h <<\_ACEOF
18058 #define HAVE_FCHDIR 1
18065 for ac_func in strtoll
18067 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18068 echo "$as_me:$LINENO: checking for $ac_func" >&5
18069 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18070 if eval "test \"\${$as_ac_var+set}\" = set"; then
18071 echo $ECHO_N "(cached) $ECHO_C" >&6
18073 cat >conftest.$ac_ext <<_ACEOF
18076 cat confdefs.h >>conftest.$ac_ext
18077 cat >>conftest.$ac_ext <<_ACEOF
18078 /* end confdefs.h. */
18079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18081 #define $ac_func innocuous_$ac_func
18083 /* System header to define __stub macros and hopefully few prototypes,
18084 which can conflict with char $ac_func (); below.
18085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18086 <limits.h> exists even on freestanding compilers. */
18089 # include <limits.h>
18091 # include <assert.h>
18096 /* Override any gcc2 internal prototype to avoid an error. */
18101 /* We use char because int might match the return type of a gcc2
18102 builtin and then its argument prototype would still apply. */
18104 /* The GNU C library defines this for functions which it implements
18105 to always fail with ENOSYS. Some functions are actually named
18106 something starting with __ and the normal name is an alias. */
18107 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18110 char (*f) () = $ac_func;
18119 return f != $ac_func;
18124 rm -f conftest.$ac_objext conftest$ac_exeext
18125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18126 (eval $ac_link) 2>conftest.er1
18128 grep -v '^ *+' conftest.er1 >conftest.err
18130 cat conftest.err >&5
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); } &&
18133 { ac_try='test -z "$ac_c_werror_flag"
18134 || test ! -s conftest.err'
18135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18136 (eval $ac_try) 2>&5
18138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18139 (exit $ac_status); }; } &&
18140 { ac_try='test -s conftest$ac_exeext'
18141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18142 (eval $ac_try) 2>&5
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); }; }; then
18146 eval "$as_ac_var=yes"
18148 echo "$as_me: failed program was:" >&5
18149 sed 's/^/| /' conftest.$ac_ext >&5
18151 eval "$as_ac_var=no"
18153 rm -f conftest.err conftest.$ac_objext \
18154 conftest$ac_exeext conftest.$ac_ext
18156 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18157 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18158 if test `eval echo '${'$as_ac_var'}'` = yes; then
18159 cat >>confdefs.h <<_ACEOF
18160 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18162 cat >>confdefs.h <<\_ACEOF
18163 #define HAVE_STRTOLL 1
18171 for ac_func in chflags
18173 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18174 echo "$as_me:$LINENO: checking for $ac_func" >&5
18175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18176 if eval "test \"\${$as_ac_var+set}\" = set"; then
18177 echo $ECHO_N "(cached) $ECHO_C" >&6
18179 cat >conftest.$ac_ext <<_ACEOF
18182 cat confdefs.h >>conftest.$ac_ext
18183 cat >>conftest.$ac_ext <<_ACEOF
18184 /* end confdefs.h. */
18185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18187 #define $ac_func innocuous_$ac_func
18189 /* System header to define __stub macros and hopefully few prototypes,
18190 which can conflict with char $ac_func (); below.
18191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18192 <limits.h> exists even on freestanding compilers. */
18195 # include <limits.h>
18197 # include <assert.h>
18202 /* Override any gcc2 internal prototype to avoid an error. */
18207 /* We use char because int might match the return type of a gcc2
18208 builtin and then its argument prototype would still apply. */
18210 /* The GNU C library defines this for functions which it implements
18211 to always fail with ENOSYS. Some functions are actually named
18212 something starting with __ and the normal name is an alias. */
18213 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18216 char (*f) () = $ac_func;
18225 return f != $ac_func;
18230 rm -f conftest.$ac_objext conftest$ac_exeext
18231 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18232 (eval $ac_link) 2>conftest.er1
18234 grep -v '^ *+' conftest.er1 >conftest.err
18236 cat conftest.err >&5
18237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18238 (exit $ac_status); } &&
18239 { ac_try='test -z "$ac_c_werror_flag"
18240 || test ! -s conftest.err'
18241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18242 (eval $ac_try) 2>&5
18244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245 (exit $ac_status); }; } &&
18246 { ac_try='test -s conftest$ac_exeext'
18247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18248 (eval $ac_try) 2>&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); }; }; then
18252 eval "$as_ac_var=yes"
18254 echo "$as_me: failed program was:" >&5
18255 sed 's/^/| /' conftest.$ac_ext >&5
18257 eval "$as_ac_var=no"
18259 rm -f conftest.err conftest.$ac_objext \
18260 conftest$ac_exeext conftest.$ac_ext
18262 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18263 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18264 if test `eval echo '${'$as_ac_var'}'` = yes; then
18265 cat >>confdefs.h <<_ACEOF
18266 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18277 for ac_func in snprintf vsnprintf gethostid fseeko
18279 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18280 echo "$as_me:$LINENO: checking for $ac_func" >&5
18281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18282 if eval "test \"\${$as_ac_var+set}\" = set"; then
18283 echo $ECHO_N "(cached) $ECHO_C" >&6
18285 cat >conftest.$ac_ext <<_ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h. */
18291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18293 #define $ac_func innocuous_$ac_func
18295 /* System header to define __stub macros and hopefully few prototypes,
18296 which can conflict with char $ac_func (); below.
18297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18298 <limits.h> exists even on freestanding compilers. */
18301 # include <limits.h>
18303 # include <assert.h>
18308 /* Override any gcc2 internal prototype to avoid an error. */
18313 /* We use char because int might match the return type of a gcc2
18314 builtin and then its argument prototype would still apply. */
18316 /* The GNU C library defines this for functions which it implements
18317 to always fail with ENOSYS. Some functions are actually named
18318 something starting with __ and the normal name is an alias. */
18319 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18322 char (*f) () = $ac_func;
18331 return f != $ac_func;
18336 rm -f conftest.$ac_objext conftest$ac_exeext
18337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18338 (eval $ac_link) 2>conftest.er1
18340 grep -v '^ *+' conftest.er1 >conftest.err
18342 cat conftest.err >&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); } &&
18345 { ac_try='test -z "$ac_c_werror_flag"
18346 || test ! -s conftest.err'
18347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18348 (eval $ac_try) 2>&5
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; } &&
18352 { ac_try='test -s conftest$ac_exeext'
18353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18354 (eval $ac_try) 2>&5
18356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357 (exit $ac_status); }; }; then
18358 eval "$as_ac_var=yes"
18360 echo "$as_me: failed program was:" >&5
18361 sed 's/^/| /' conftest.$ac_ext >&5
18363 eval "$as_ac_var=no"
18365 rm -f conftest.err conftest.$ac_objext \
18366 conftest$ac_exeext conftest.$ac_ext
18368 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18369 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18370 if test `eval echo '${'$as_ac_var'}'` = yes; then
18371 cat >>confdefs.h <<_ACEOF
18372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18383 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18386 echo "$as_me:$LINENO: checking for $ac_func" >&5
18387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18388 if eval "test \"\${$as_ac_var+set}\" = set"; then
18389 echo $ECHO_N "(cached) $ECHO_C" >&6
18391 cat >conftest.$ac_ext <<_ACEOF
18394 cat confdefs.h >>conftest.$ac_ext
18395 cat >>conftest.$ac_ext <<_ACEOF
18396 /* end confdefs.h. */
18397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18399 #define $ac_func innocuous_$ac_func
18401 /* System header to define __stub macros and hopefully few prototypes,
18402 which can conflict with char $ac_func (); below.
18403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18404 <limits.h> exists even on freestanding compilers. */
18407 # include <limits.h>
18409 # include <assert.h>
18414 /* Override any gcc2 internal prototype to avoid an error. */
18419 /* We use char because int might match the return type of a gcc2
18420 builtin and then its argument prototype would still apply. */
18422 /* The GNU C library defines this for functions which it implements
18423 to always fail with ENOSYS. Some functions are actually named
18424 something starting with __ and the normal name is an alias. */
18425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18428 char (*f) () = $ac_func;
18437 return f != $ac_func;
18442 rm -f conftest.$ac_objext conftest$ac_exeext
18443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18444 (eval $ac_link) 2>conftest.er1
18446 grep -v '^ *+' conftest.er1 >conftest.err
18448 cat conftest.err >&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); } &&
18451 { ac_try='test -z "$ac_c_werror_flag"
18452 || test ! -s conftest.err'
18453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18454 (eval $ac_try) 2>&5
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); }; } &&
18458 { ac_try='test -s conftest$ac_exeext'
18459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18460 (eval $ac_try) 2>&5
18462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18463 (exit $ac_status); }; }; then
18464 eval "$as_ac_var=yes"
18466 echo "$as_me: failed program was:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18469 eval "$as_ac_var=no"
18471 rm -f conftest.err conftest.$ac_objext \
18472 conftest$ac_exeext conftest.$ac_ext
18474 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18475 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18476 if test `eval echo '${'$as_ac_var'}'` = yes; then
18477 cat >>confdefs.h <<_ACEOF
18478 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18485 # If resolver functions are not in libc check for -lnsl or -lresolv.
18486 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18487 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18488 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18489 echo $ECHO_N "(cached) $ECHO_C" >&6
18491 cat >conftest.$ac_ext <<_ACEOF
18494 cat confdefs.h >>conftest.$ac_ext
18495 cat >>conftest.$ac_ext <<_ACEOF
18496 /* end confdefs.h. */
18497 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18498 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18499 #define gethostbyname_r innocuous_gethostbyname_r
18501 /* System header to define __stub macros and hopefully few prototypes,
18502 which can conflict with char gethostbyname_r (); below.
18503 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18504 <limits.h> exists even on freestanding compilers. */
18507 # include <limits.h>
18509 # include <assert.h>
18512 #undef gethostbyname_r
18514 /* Override any gcc2 internal prototype to avoid an error. */
18519 /* We use char because int might match the return type of a gcc2
18520 builtin and then its argument prototype would still apply. */
18521 char gethostbyname_r ();
18522 /* The GNU C library defines this for functions which it implements
18523 to always fail with ENOSYS. Some functions are actually named
18524 something starting with __ and the normal name is an alias. */
18525 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18528 char (*f) () = gethostbyname_r;
18537 return f != gethostbyname_r;
18542 rm -f conftest.$ac_objext conftest$ac_exeext
18543 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18544 (eval $ac_link) 2>conftest.er1
18546 grep -v '^ *+' conftest.er1 >conftest.err
18548 cat conftest.err >&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } &&
18551 { ac_try='test -z "$ac_c_werror_flag"
18552 || test ! -s conftest.err'
18553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18554 (eval $ac_try) 2>&5
18556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18557 (exit $ac_status); }; } &&
18558 { ac_try='test -s conftest$ac_exeext'
18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560 (eval $ac_try) 2>&5
18562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; }; then
18564 ac_cv_func_gethostbyname_r=yes
18566 echo "$as_me: failed program was:" >&5
18567 sed 's/^/| /' conftest.$ac_ext >&5
18569 ac_cv_func_gethostbyname_r=no
18571 rm -f conftest.err conftest.$ac_objext \
18572 conftest$ac_exeext conftest.$ac_ext
18574 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18575 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18576 if test $ac_cv_func_gethostbyname_r = yes; then
18577 echo "$as_me:$LINENO: result: using libc's resolver" >&5
18578 echo "${ECHO_T}using libc's resolver" >&6
18581 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18582 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18583 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18584 echo $ECHO_N "(cached) $ECHO_C" >&6
18586 ac_check_lib_save_LIBS=$LIBS
18588 cat >conftest.$ac_ext <<_ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h. */
18595 /* Override any gcc2 internal prototype to avoid an error. */
18599 /* We use char because int might match the return type of a gcc2
18600 builtin and then its argument prototype would still apply. */
18601 char gethostbyname_r ();
18605 gethostbyname_r ();
18610 rm -f conftest.$ac_objext conftest$ac_exeext
18611 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18612 (eval $ac_link) 2>conftest.er1
18614 grep -v '^ *+' conftest.er1 >conftest.err
18616 cat conftest.err >&5
18617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18618 (exit $ac_status); } &&
18619 { ac_try='test -z "$ac_c_werror_flag"
18620 || test ! -s conftest.err'
18621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18622 (eval $ac_try) 2>&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }; } &&
18626 { ac_try='test -s conftest$ac_exeext'
18627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18628 (eval $ac_try) 2>&5
18630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18631 (exit $ac_status); }; }; then
18632 ac_cv_lib_nsl_gethostbyname_r=yes
18634 echo "$as_me: failed program was:" >&5
18635 sed 's/^/| /' conftest.$ac_ext >&5
18637 ac_cv_lib_nsl_gethostbyname_r=no
18639 rm -f conftest.err conftest.$ac_objext \
18640 conftest$ac_exeext conftest.$ac_ext
18641 LIBS=$ac_check_lib_save_LIBS
18643 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18644 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18645 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18646 cat >>confdefs.h <<_ACEOF
18647 #define HAVE_LIBNSL 1
18655 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18656 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18657 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18658 echo $ECHO_N "(cached) $ECHO_C" >&6
18660 ac_check_lib_save_LIBS=$LIBS
18661 LIBS="-lresolv $LIBS"
18662 cat >conftest.$ac_ext <<_ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h. */
18669 /* Override any gcc2 internal prototype to avoid an error. */
18673 /* We use char because int might match the return type of a gcc2
18674 builtin and then its argument prototype would still apply. */
18675 char gethostbyname_r ();
18679 gethostbyname_r ();
18684 rm -f conftest.$ac_objext conftest$ac_exeext
18685 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18686 (eval $ac_link) 2>conftest.er1
18688 grep -v '^ *+' conftest.er1 >conftest.err
18690 cat conftest.err >&5
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); } &&
18693 { ac_try='test -z "$ac_c_werror_flag"
18694 || test ! -s conftest.err'
18695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18696 (eval $ac_try) 2>&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; } &&
18700 { ac_try='test -s conftest$ac_exeext'
18701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18702 (eval $ac_try) 2>&5
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; }; then
18706 ac_cv_lib_resolv_gethostbyname_r=yes
18708 echo "$as_me: failed program was:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18711 ac_cv_lib_resolv_gethostbyname_r=no
18713 rm -f conftest.err conftest.$ac_objext \
18714 conftest$ac_exeext conftest.$ac_ext
18715 LIBS=$ac_check_lib_save_LIBS
18717 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18718 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18719 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18720 cat >>confdefs.h <<_ACEOF
18721 #define HAVE_LIBRESOLV 1
18724 LIBS="-lresolv $LIBS"
18734 for ac_func in inet_pton
18736 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18737 echo "$as_me:$LINENO: checking for $ac_func" >&5
18738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18739 if eval "test \"\${$as_ac_var+set}\" = set"; then
18740 echo $ECHO_N "(cached) $ECHO_C" >&6
18742 cat >conftest.$ac_ext <<_ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h. */
18748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18750 #define $ac_func innocuous_$ac_func
18752 /* System header to define __stub macros and hopefully few prototypes,
18753 which can conflict with char $ac_func (); below.
18754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18755 <limits.h> exists even on freestanding compilers. */
18758 # include <limits.h>
18760 # include <assert.h>
18765 /* Override any gcc2 internal prototype to avoid an error. */
18770 /* We use char because int might match the return type of a gcc2
18771 builtin and then its argument prototype would still apply. */
18773 /* The GNU C library defines this for functions which it implements
18774 to always fail with ENOSYS. Some functions are actually named
18775 something starting with __ and the normal name is an alias. */
18776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18779 char (*f) () = $ac_func;
18788 return f != $ac_func;
18793 rm -f conftest.$ac_objext conftest$ac_exeext
18794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18795 (eval $ac_link) 2>conftest.er1
18797 grep -v '^ *+' conftest.er1 >conftest.err
18799 cat conftest.err >&5
18800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801 (exit $ac_status); } &&
18802 { ac_try='test -z "$ac_c_werror_flag"
18803 || test ! -s conftest.err'
18804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18805 (eval $ac_try) 2>&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); }; } &&
18809 { ac_try='test -s conftest$ac_exeext'
18810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18811 (eval $ac_try) 2>&5
18813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18814 (exit $ac_status); }; }; then
18815 eval "$as_ac_var=yes"
18817 echo "$as_me: failed program was:" >&5
18818 sed 's/^/| /' conftest.$ac_ext >&5
18820 eval "$as_ac_var=no"
18822 rm -f conftest.err conftest.$ac_objext \
18823 conftest$ac_exeext conftest.$ac_ext
18825 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18826 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18827 if test `eval echo '${'$as_ac_var'}'` = yes; then
18828 cat >>confdefs.h <<_ACEOF
18829 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18831 cat >>confdefs.h <<\_ACEOF
18832 #define HAVE_INET_PTON 1
18839 for ac_func in inet_ntop
18841 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18842 echo "$as_me:$LINENO: checking for $ac_func" >&5
18843 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18844 if eval "test \"\${$as_ac_var+set}\" = set"; then
18845 echo $ECHO_N "(cached) $ECHO_C" >&6
18847 cat >conftest.$ac_ext <<_ACEOF
18850 cat confdefs.h >>conftest.$ac_ext
18851 cat >>conftest.$ac_ext <<_ACEOF
18852 /* end confdefs.h. */
18853 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18855 #define $ac_func innocuous_$ac_func
18857 /* System header to define __stub macros and hopefully few prototypes,
18858 which can conflict with char $ac_func (); below.
18859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18860 <limits.h> exists even on freestanding compilers. */
18863 # include <limits.h>
18865 # include <assert.h>
18870 /* Override any gcc2 internal prototype to avoid an error. */
18875 /* We use char because int might match the return type of a gcc2
18876 builtin and then its argument prototype would still apply. */
18878 /* The GNU C library defines this for functions which it implements
18879 to always fail with ENOSYS. Some functions are actually named
18880 something starting with __ and the normal name is an alias. */
18881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18884 char (*f) () = $ac_func;
18893 return f != $ac_func;
18898 rm -f conftest.$ac_objext conftest$ac_exeext
18899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18900 (eval $ac_link) 2>conftest.er1
18902 grep -v '^ *+' conftest.er1 >conftest.err
18904 cat conftest.err >&5
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } &&
18907 { ac_try='test -z "$ac_c_werror_flag"
18908 || test ! -s conftest.err'
18909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18910 (eval $ac_try) 2>&5
18912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18913 (exit $ac_status); }; } &&
18914 { ac_try='test -s conftest$ac_exeext'
18915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18916 (eval $ac_try) 2>&5
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); }; }; then
18920 eval "$as_ac_var=yes"
18922 echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18925 eval "$as_ac_var=no"
18927 rm -f conftest.err conftest.$ac_objext \
18928 conftest$ac_exeext conftest.$ac_ext
18930 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18931 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18932 if test `eval echo '${'$as_ac_var'}'` = yes; then
18933 cat >>confdefs.h <<_ACEOF
18934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18936 cat >>confdefs.h <<\_ACEOF
18937 #define HAVE_INET_NTOP 1
18944 for ac_func in gethostbyname2
18946 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18947 echo "$as_me:$LINENO: checking for $ac_func" >&5
18948 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18949 if eval "test \"\${$as_ac_var+set}\" = set"; then
18950 echo $ECHO_N "(cached) $ECHO_C" >&6
18952 cat >conftest.$ac_ext <<_ACEOF
18955 cat confdefs.h >>conftest.$ac_ext
18956 cat >>conftest.$ac_ext <<_ACEOF
18957 /* end confdefs.h. */
18958 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18960 #define $ac_func innocuous_$ac_func
18962 /* System header to define __stub macros and hopefully few prototypes,
18963 which can conflict with char $ac_func (); below.
18964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18965 <limits.h> exists even on freestanding compilers. */
18968 # include <limits.h>
18970 # include <assert.h>
18975 /* Override any gcc2 internal prototype to avoid an error. */
18980 /* We use char because int might match the return type of a gcc2
18981 builtin and then its argument prototype would still apply. */
18983 /* The GNU C library defines this for functions which it implements
18984 to always fail with ENOSYS. Some functions are actually named
18985 something starting with __ and the normal name is an alias. */
18986 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18989 char (*f) () = $ac_func;
18998 return f != $ac_func;
19003 rm -f conftest.$ac_objext conftest$ac_exeext
19004 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19005 (eval $ac_link) 2>conftest.er1
19007 grep -v '^ *+' conftest.er1 >conftest.err
19009 cat conftest.err >&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); } &&
19012 { ac_try='test -z "$ac_c_werror_flag"
19013 || test ! -s conftest.err'
19014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19015 (eval $ac_try) 2>&5
19017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018 (exit $ac_status); }; } &&
19019 { ac_try='test -s conftest$ac_exeext'
19020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19021 (eval $ac_try) 2>&5
19023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19024 (exit $ac_status); }; }; then
19025 eval "$as_ac_var=yes"
19027 echo "$as_me: failed program was:" >&5
19028 sed 's/^/| /' conftest.$ac_ext >&5
19030 eval "$as_ac_var=no"
19032 rm -f conftest.err conftest.$ac_objext \
19033 conftest$ac_exeext conftest.$ac_ext
19035 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19036 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19037 if test `eval echo '${'$as_ac_var'}'` = yes; then
19038 cat >>confdefs.h <<_ACEOF
19039 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19041 cat >>confdefs.h <<\_ACEOF
19042 #define HAVE_GETHOSTBYNAME2 1
19049 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
19050 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
19051 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
19052 echo $ECHO_N "(cached) $ECHO_C" >&6
19054 cat >conftest.$ac_ext <<_ACEOF
19057 cat confdefs.h >>conftest.$ac_ext
19058 cat >>conftest.$ac_ext <<_ACEOF
19059 /* end confdefs.h. */
19060 #include <sys/socket.h>
19064 struct sockaddr s; s.sa_len;
19069 rm -f conftest.$ac_objext
19070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19071 (eval $ac_compile) 2>conftest.er1
19073 grep -v '^ *+' conftest.er1 >conftest.err
19075 cat conftest.err >&5
19076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077 (exit $ac_status); } &&
19078 { ac_try='test -z "$ac_c_werror_flag"
19079 || test ! -s conftest.err'
19080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19081 (eval $ac_try) 2>&5
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); }; } &&
19085 { ac_try='test -s conftest.$ac_objext'
19086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; }; then
19091 ac_cv_struct_sockaddr_sa_len=yes
19093 echo "$as_me: failed program was:" >&5
19094 sed 's/^/| /' conftest.$ac_ext >&5
19096 ac_cv_struct_sockaddr_sa_len=no
19098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19100 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
19101 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
19103 if test $ac_cv_struct_sockaddr_sa_len = yes; then
19105 cat >>confdefs.h <<\_ACEOF
19106 #define HAVE_SA_LEN 1
19112 echo "$as_me:$LINENO: checking for IPv6 support" >&5
19113 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
19114 if test "${ac_cv_ipv6_support+set}" = set; then
19115 echo $ECHO_N "(cached) $ECHO_C" >&6
19117 cat >conftest.$ac_ext <<_ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h. */
19123 #include <sys/types.h>
19124 #include <sys/socket.h>
19125 #include <netinet/in.h>
19129 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
19135 rm -f conftest.$ac_objext conftest$ac_exeext
19136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19137 (eval $ac_link) 2>conftest.er1
19139 grep -v '^ *+' conftest.er1 >conftest.err
19141 cat conftest.err >&5
19142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19143 (exit $ac_status); } &&
19144 { ac_try='test -z "$ac_c_werror_flag"
19145 || test ! -s conftest.err'
19146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19147 (eval $ac_try) 2>&5
19149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19150 (exit $ac_status); }; } &&
19151 { ac_try='test -s conftest$ac_exeext'
19152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19153 (eval $ac_try) 2>&5
19155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156 (exit $ac_status); }; }; then
19157 ac_cv_ipv6_support=yes
19159 echo "$as_me: failed program was:" >&5
19160 sed 's/^/| /' conftest.$ac_ext >&5
19162 ac_cv_ipv6_support=no
19164 rm -f conftest.err conftest.$ac_objext \
19165 conftest$ac_exeext conftest.$ac_ext
19167 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
19168 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
19170 if test "$ac_cv_ipv6_support" = yes; then
19172 cat >>confdefs.h <<\_ACEOF
19173 #define HAVE_IPV6 1
19181 for ac_func in strftime
19183 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19184 echo "$as_me:$LINENO: checking for $ac_func" >&5
19185 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19186 if eval "test \"\${$as_ac_var+set}\" = set"; then
19187 echo $ECHO_N "(cached) $ECHO_C" >&6
19189 cat >conftest.$ac_ext <<_ACEOF
19192 cat confdefs.h >>conftest.$ac_ext
19193 cat >>conftest.$ac_ext <<_ACEOF
19194 /* end confdefs.h. */
19195 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19197 #define $ac_func innocuous_$ac_func
19199 /* System header to define __stub macros and hopefully few prototypes,
19200 which can conflict with char $ac_func (); below.
19201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19202 <limits.h> exists even on freestanding compilers. */
19205 # include <limits.h>
19207 # include <assert.h>
19212 /* Override any gcc2 internal prototype to avoid an error. */
19217 /* We use char because int might match the return type of a gcc2
19218 builtin and then its argument prototype would still apply. */
19220 /* The GNU C library defines this for functions which it implements
19221 to always fail with ENOSYS. Some functions are actually named
19222 something starting with __ and the normal name is an alias. */
19223 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19226 char (*f) () = $ac_func;
19235 return f != $ac_func;
19240 rm -f conftest.$ac_objext conftest$ac_exeext
19241 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19242 (eval $ac_link) 2>conftest.er1
19244 grep -v '^ *+' conftest.er1 >conftest.err
19246 cat conftest.err >&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); } &&
19249 { ac_try='test -z "$ac_c_werror_flag"
19250 || test ! -s conftest.err'
19251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19252 (eval $ac_try) 2>&5
19254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19255 (exit $ac_status); }; } &&
19256 { ac_try='test -s conftest$ac_exeext'
19257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19258 (eval $ac_try) 2>&5
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; }; then
19262 eval "$as_ac_var=yes"
19264 echo "$as_me: failed program was:" >&5
19265 sed 's/^/| /' conftest.$ac_ext >&5
19267 eval "$as_ac_var=no"
19269 rm -f conftest.err conftest.$ac_objext \
19270 conftest$ac_exeext conftest.$ac_ext
19272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19273 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19274 if test `eval echo '${'$as_ac_var'}'` = yes; then
19275 cat >>confdefs.h <<_ACEOF
19276 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19280 # strftime is in -lintl on SCO UNIX.
19281 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19282 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
19283 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19284 echo $ECHO_N "(cached) $ECHO_C" >&6
19286 ac_check_lib_save_LIBS=$LIBS
19287 LIBS="-lintl $LIBS"
19288 cat >conftest.$ac_ext <<_ACEOF
19291 cat confdefs.h >>conftest.$ac_ext
19292 cat >>conftest.$ac_ext <<_ACEOF
19293 /* end confdefs.h. */
19295 /* Override any gcc2 internal prototype to avoid an error. */
19299 /* We use char because int might match the return type of a gcc2
19300 builtin and then its argument prototype would still apply. */
19310 rm -f conftest.$ac_objext conftest$ac_exeext
19311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19312 (eval $ac_link) 2>conftest.er1
19314 grep -v '^ *+' conftest.er1 >conftest.err
19316 cat conftest.err >&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } &&
19319 { ac_try='test -z "$ac_c_werror_flag"
19320 || test ! -s conftest.err'
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; } &&
19326 { ac_try='test -s conftest$ac_exeext'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; }; then
19332 ac_cv_lib_intl_strftime=yes
19334 echo "$as_me: failed program was:" >&5
19335 sed 's/^/| /' conftest.$ac_ext >&5
19337 ac_cv_lib_intl_strftime=no
19339 rm -f conftest.err conftest.$ac_objext \
19340 conftest$ac_exeext conftest.$ac_ext
19341 LIBS=$ac_check_lib_save_LIBS
19343 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19344 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19345 if test $ac_cv_lib_intl_strftime = yes; then
19346 cat >>confdefs.h <<\_ACEOF
19347 #define HAVE_STRFTIME 1
19350 LIBS="-lintl $LIBS"
19357 for ac_func in vprintf
19359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19360 echo "$as_me:$LINENO: checking for $ac_func" >&5
19361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19362 if eval "test \"\${$as_ac_var+set}\" = set"; then
19363 echo $ECHO_N "(cached) $ECHO_C" >&6
19365 cat >conftest.$ac_ext <<_ACEOF
19368 cat confdefs.h >>conftest.$ac_ext
19369 cat >>conftest.$ac_ext <<_ACEOF
19370 /* end confdefs.h. */
19371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19373 #define $ac_func innocuous_$ac_func
19375 /* System header to define __stub macros and hopefully few prototypes,
19376 which can conflict with char $ac_func (); below.
19377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19378 <limits.h> exists even on freestanding compilers. */
19381 # include <limits.h>
19383 # include <assert.h>
19388 /* Override any gcc2 internal prototype to avoid an error. */
19393 /* We use char because int might match the return type of a gcc2
19394 builtin and then its argument prototype would still apply. */
19396 /* The GNU C library defines this for functions which it implements
19397 to always fail with ENOSYS. Some functions are actually named
19398 something starting with __ and the normal name is an alias. */
19399 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19402 char (*f) () = $ac_func;
19411 return f != $ac_func;
19416 rm -f conftest.$ac_objext conftest$ac_exeext
19417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19418 (eval $ac_link) 2>conftest.er1
19420 grep -v '^ *+' conftest.er1 >conftest.err
19422 cat conftest.err >&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } &&
19425 { ac_try='test -z "$ac_c_werror_flag"
19426 || test ! -s conftest.err'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; } &&
19432 { ac_try='test -s conftest$ac_exeext'
19433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; }; then
19438 eval "$as_ac_var=yes"
19440 echo "$as_me: failed program was:" >&5
19441 sed 's/^/| /' conftest.$ac_ext >&5
19443 eval "$as_ac_var=no"
19445 rm -f conftest.err conftest.$ac_objext \
19446 conftest$ac_exeext conftest.$ac_ext
19448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19449 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19450 if test `eval echo '${'$as_ac_var'}'` = yes; then
19451 cat >>confdefs.h <<_ACEOF
19452 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19455 echo "$as_me:$LINENO: checking for _doprnt" >&5
19456 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19457 if test "${ac_cv_func__doprnt+set}" = set; then
19458 echo $ECHO_N "(cached) $ECHO_C" >&6
19460 cat >conftest.$ac_ext <<_ACEOF
19463 cat confdefs.h >>conftest.$ac_ext
19464 cat >>conftest.$ac_ext <<_ACEOF
19465 /* end confdefs.h. */
19466 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19468 #define _doprnt innocuous__doprnt
19470 /* System header to define __stub macros and hopefully few prototypes,
19471 which can conflict with char _doprnt (); below.
19472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19473 <limits.h> exists even on freestanding compilers. */
19476 # include <limits.h>
19478 # include <assert.h>
19483 /* Override any gcc2 internal prototype to avoid an error. */
19488 /* We use char because int might match the return type of a gcc2
19489 builtin and then its argument prototype would still apply. */
19491 /* The GNU C library defines this for functions which it implements
19492 to always fail with ENOSYS. Some functions are actually named
19493 something starting with __ and the normal name is an alias. */
19494 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19497 char (*f) () = _doprnt;
19506 return f != _doprnt;
19511 rm -f conftest.$ac_objext conftest$ac_exeext
19512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19513 (eval $ac_link) 2>conftest.er1
19515 grep -v '^ *+' conftest.er1 >conftest.err
19517 cat conftest.err >&5
19518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19519 (exit $ac_status); } &&
19520 { ac_try='test -z "$ac_c_werror_flag"
19521 || test ! -s conftest.err'
19522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19523 (eval $ac_try) 2>&5
19525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19526 (exit $ac_status); }; } &&
19527 { ac_try='test -s conftest$ac_exeext'
19528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19529 (eval $ac_try) 2>&5
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; }; then
19533 ac_cv_func__doprnt=yes
19535 echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.$ac_ext >&5
19538 ac_cv_func__doprnt=no
19540 rm -f conftest.err conftest.$ac_objext \
19541 conftest$ac_exeext conftest.$ac_ext
19543 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19544 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19545 if test $ac_cv_func__doprnt = yes; then
19547 cat >>confdefs.h <<\_ACEOF
19548 #define HAVE_DOPRNT 1
19557 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19558 # for constant arguments. Useless!
19559 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19560 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19561 if test "${ac_cv_working_alloca_h+set}" = set; then
19562 echo $ECHO_N "(cached) $ECHO_C" >&6
19564 cat >conftest.$ac_ext <<_ACEOF
19567 cat confdefs.h >>conftest.$ac_ext
19568 cat >>conftest.$ac_ext <<_ACEOF
19569 /* end confdefs.h. */
19570 #include <alloca.h>
19574 char *p = (char *) alloca (2 * sizeof (int));
19579 rm -f conftest.$ac_objext conftest$ac_exeext
19580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19581 (eval $ac_link) 2>conftest.er1
19583 grep -v '^ *+' conftest.er1 >conftest.err
19585 cat conftest.err >&5
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); } &&
19588 { ac_try='test -z "$ac_c_werror_flag"
19589 || test ! -s conftest.err'
19590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19591 (eval $ac_try) 2>&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; } &&
19595 { ac_try='test -s conftest$ac_exeext'
19596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19597 (eval $ac_try) 2>&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); }; }; then
19601 ac_cv_working_alloca_h=yes
19603 echo "$as_me: failed program was:" >&5
19604 sed 's/^/| /' conftest.$ac_ext >&5
19606 ac_cv_working_alloca_h=no
19608 rm -f conftest.err conftest.$ac_objext \
19609 conftest$ac_exeext conftest.$ac_ext
19611 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19612 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19613 if test $ac_cv_working_alloca_h = yes; then
19615 cat >>confdefs.h <<\_ACEOF
19616 #define HAVE_ALLOCA_H 1
19621 echo "$as_me:$LINENO: checking for alloca" >&5
19622 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19623 if test "${ac_cv_func_alloca_works+set}" = set; then
19624 echo $ECHO_N "(cached) $ECHO_C" >&6
19626 cat >conftest.$ac_ext <<_ACEOF
19629 cat confdefs.h >>conftest.$ac_ext
19630 cat >>conftest.$ac_ext <<_ACEOF
19631 /* end confdefs.h. */
19633 # define alloca __builtin_alloca
19636 # include <malloc.h>
19637 # define alloca _alloca
19640 # include <alloca.h>
19645 # ifndef alloca /* predefined by HP cc +Olibcalls */
19656 char *p = (char *) alloca (1);
19661 rm -f conftest.$ac_objext conftest$ac_exeext
19662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19663 (eval $ac_link) 2>conftest.er1
19665 grep -v '^ *+' conftest.er1 >conftest.err
19667 cat conftest.err >&5
19668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19669 (exit $ac_status); } &&
19670 { ac_try='test -z "$ac_c_werror_flag"
19671 || test ! -s conftest.err'
19672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19673 (eval $ac_try) 2>&5
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); }; } &&
19677 { ac_try='test -s conftest$ac_exeext'
19678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679 (eval $ac_try) 2>&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; }; then
19683 ac_cv_func_alloca_works=yes
19685 echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.$ac_ext >&5
19688 ac_cv_func_alloca_works=no
19690 rm -f conftest.err conftest.$ac_objext \
19691 conftest$ac_exeext conftest.$ac_ext
19693 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19694 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19696 if test $ac_cv_func_alloca_works = yes; then
19698 cat >>confdefs.h <<\_ACEOF
19699 #define HAVE_ALLOCA 1
19703 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19704 # that cause trouble. Some versions do not even contain alloca or
19705 # contain a buggy version. If you still want to use their alloca,
19706 # use ar to extract alloca.o from them instead of compiling alloca.c.
19708 ALLOCA=alloca.$ac_objext
19710 cat >>confdefs.h <<\_ACEOF
19715 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19716 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19717 if test "${ac_cv_os_cray+set}" = set; then
19718 echo $ECHO_N "(cached) $ECHO_C" >&6
19720 cat >conftest.$ac_ext <<_ACEOF
19723 cat confdefs.h >>conftest.$ac_ext
19724 cat >>conftest.$ac_ext <<_ACEOF
19725 /* end confdefs.h. */
19726 #if defined(CRAY) && ! defined(CRAY2)
19733 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19734 $EGREP "webecray" >/dev/null 2>&1; then
19742 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19743 echo "${ECHO_T}$ac_cv_os_cray" >&6
19744 if test $ac_cv_os_cray = yes; then
19745 for ac_func in _getb67 GETB67 getb67; do
19746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19747 echo "$as_me:$LINENO: checking for $ac_func" >&5
19748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19749 if eval "test \"\${$as_ac_var+set}\" = set"; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
19752 cat >conftest.$ac_ext <<_ACEOF
19755 cat confdefs.h >>conftest.$ac_ext
19756 cat >>conftest.$ac_ext <<_ACEOF
19757 /* end confdefs.h. */
19758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19760 #define $ac_func innocuous_$ac_func
19762 /* System header to define __stub macros and hopefully few prototypes,
19763 which can conflict with char $ac_func (); below.
19764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19765 <limits.h> exists even on freestanding compilers. */
19768 # include <limits.h>
19770 # include <assert.h>
19775 /* Override any gcc2 internal prototype to avoid an error. */
19780 /* We use char because int might match the return type of a gcc2
19781 builtin and then its argument prototype would still apply. */
19783 /* The GNU C library defines this for functions which it implements
19784 to always fail with ENOSYS. Some functions are actually named
19785 something starting with __ and the normal name is an alias. */
19786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19789 char (*f) () = $ac_func;
19798 return f != $ac_func;
19803 rm -f conftest.$ac_objext conftest$ac_exeext
19804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19805 (eval $ac_link) 2>conftest.er1
19807 grep -v '^ *+' conftest.er1 >conftest.err
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); } &&
19812 { ac_try='test -z "$ac_c_werror_flag"
19813 || test ! -s conftest.err'
19814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815 (eval $ac_try) 2>&5
19817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; } &&
19819 { ac_try='test -s conftest$ac_exeext'
19820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19821 (eval $ac_try) 2>&5
19823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19824 (exit $ac_status); }; }; then
19825 eval "$as_ac_var=yes"
19827 echo "$as_me: failed program was:" >&5
19828 sed 's/^/| /' conftest.$ac_ext >&5
19830 eval "$as_ac_var=no"
19832 rm -f conftest.err conftest.$ac_objext \
19833 conftest$ac_exeext conftest.$ac_ext
19835 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19836 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19837 if test `eval echo '${'$as_ac_var'}'` = yes; then
19839 cat >>confdefs.h <<_ACEOF
19840 #define CRAY_STACKSEG_END $ac_func
19849 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19850 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19851 if test "${ac_cv_c_stack_direction+set}" = set; then
19852 echo $ECHO_N "(cached) $ECHO_C" >&6
19854 if test "$cross_compiling" = yes; then
19855 ac_cv_c_stack_direction=0
19857 cat >conftest.$ac_ext <<_ACEOF
19860 cat confdefs.h >>conftest.$ac_ext
19861 cat >>conftest.$ac_ext <<_ACEOF
19862 /* end confdefs.h. */
19864 find_stack_direction ()
19866 static char *addr = 0;
19871 return find_stack_direction ();
19874 return (&dummy > addr) ? 1 : -1;
19880 exit (find_stack_direction () < 0);
19883 rm -f conftest$ac_exeext
19884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19885 (eval $ac_link) 2>&5
19887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890 (eval $ac_try) 2>&5
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; }; then
19894 ac_cv_c_stack_direction=1
19896 echo "$as_me: program exited with status $ac_status" >&5
19897 echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19900 ( exit $ac_status )
19901 ac_cv_c_stack_direction=-1
19903 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19906 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19907 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19909 cat >>confdefs.h <<_ACEOF
19910 #define STACK_DIRECTION $ac_cv_c_stack_direction
19916 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19917 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19918 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19919 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19920 echo $ECHO_N "(cached) $ECHO_C" >&6
19922 ac_check_lib_save_LIBS=$LIBS
19924 cat >conftest.$ac_ext <<_ACEOF
19927 cat confdefs.h >>conftest.$ac_ext
19928 cat >>conftest.$ac_ext <<_ACEOF
19929 /* end confdefs.h. */
19931 /* Override any gcc2 internal prototype to avoid an error. */
19935 /* We use char because int might match the return type of a gcc2
19936 builtin and then its argument prototype would still apply. */
19946 rm -f conftest.$ac_objext conftest$ac_exeext
19947 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19948 (eval $ac_link) 2>conftest.er1
19950 grep -v '^ *+' conftest.er1 >conftest.err
19952 cat conftest.err >&5
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } &&
19955 { ac_try='test -z "$ac_c_werror_flag"
19956 || test ! -s conftest.err'
19957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19958 (eval $ac_try) 2>&5
19960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19961 (exit $ac_status); }; } &&
19962 { ac_try='test -s conftest$ac_exeext'
19963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19964 (eval $ac_try) 2>&5
19966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19967 (exit $ac_status); }; }; then
19968 ac_cv_lib_sun_getmntent=yes
19970 echo "$as_me: failed program was:" >&5
19971 sed 's/^/| /' conftest.$ac_ext >&5
19973 ac_cv_lib_sun_getmntent=no
19975 rm -f conftest.err conftest.$ac_objext \
19976 conftest$ac_exeext conftest.$ac_ext
19977 LIBS=$ac_check_lib_save_LIBS
19979 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19980 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19981 if test $ac_cv_lib_sun_getmntent = yes; then
19984 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19985 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19986 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19987 echo $ECHO_N "(cached) $ECHO_C" >&6
19989 ac_check_lib_save_LIBS=$LIBS
19991 cat >conftest.$ac_ext <<_ACEOF
19994 cat confdefs.h >>conftest.$ac_ext
19995 cat >>conftest.$ac_ext <<_ACEOF
19996 /* end confdefs.h. */
19998 /* Override any gcc2 internal prototype to avoid an error. */
20002 /* We use char because int might match the return type of a gcc2
20003 builtin and then its argument prototype would still apply. */
20013 rm -f conftest.$ac_objext conftest$ac_exeext
20014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20015 (eval $ac_link) 2>conftest.er1
20017 grep -v '^ *+' conftest.er1 >conftest.err
20019 cat conftest.err >&5
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); } &&
20022 { ac_try='test -z "$ac_c_werror_flag"
20023 || test ! -s conftest.err'
20024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20025 (eval $ac_try) 2>&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); }; } &&
20029 { ac_try='test -s conftest$ac_exeext'
20030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031 (eval $ac_try) 2>&5
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; }; then
20035 ac_cv_lib_seq_getmntent=yes
20037 echo "$as_me: failed program was:" >&5
20038 sed 's/^/| /' conftest.$ac_ext >&5
20040 ac_cv_lib_seq_getmntent=no
20042 rm -f conftest.err conftest.$ac_objext \
20043 conftest$ac_exeext conftest.$ac_ext
20044 LIBS=$ac_check_lib_save_LIBS
20046 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
20047 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
20048 if test $ac_cv_lib_seq_getmntent = yes; then
20051 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
20052 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
20053 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
20054 echo $ECHO_N "(cached) $ECHO_C" >&6
20056 ac_check_lib_save_LIBS=$LIBS
20058 cat >conftest.$ac_ext <<_ACEOF
20061 cat confdefs.h >>conftest.$ac_ext
20062 cat >>conftest.$ac_ext <<_ACEOF
20063 /* end confdefs.h. */
20065 /* Override any gcc2 internal prototype to avoid an error. */
20069 /* We use char because int might match the return type of a gcc2
20070 builtin and then its argument prototype would still apply. */
20080 rm -f conftest.$ac_objext conftest$ac_exeext
20081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20082 (eval $ac_link) 2>conftest.er1
20084 grep -v '^ *+' conftest.er1 >conftest.err
20086 cat conftest.err >&5
20087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20088 (exit $ac_status); } &&
20089 { ac_try='test -z "$ac_c_werror_flag"
20090 || test ! -s conftest.err'
20091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092 (eval $ac_try) 2>&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); }; } &&
20096 { ac_try='test -s conftest$ac_exeext'
20097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20098 (eval $ac_try) 2>&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); }; }; then
20102 ac_cv_lib_gen_getmntent=yes
20104 echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20107 ac_cv_lib_gen_getmntent=no
20109 rm -f conftest.err conftest.$ac_objext \
20110 conftest$ac_exeext conftest.$ac_ext
20111 LIBS=$ac_check_lib_save_LIBS
20113 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
20114 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
20115 if test $ac_cv_lib_gen_getmntent = yes; then
20124 for ac_func in getmntent
20126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20127 echo "$as_me:$LINENO: checking for $ac_func" >&5
20128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20129 if eval "test \"\${$as_ac_var+set}\" = set"; then
20130 echo $ECHO_N "(cached) $ECHO_C" >&6
20132 cat >conftest.$ac_ext <<_ACEOF
20135 cat confdefs.h >>conftest.$ac_ext
20136 cat >>conftest.$ac_ext <<_ACEOF
20137 /* end confdefs.h. */
20138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20140 #define $ac_func innocuous_$ac_func
20142 /* System header to define __stub macros and hopefully few prototypes,
20143 which can conflict with char $ac_func (); below.
20144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20145 <limits.h> exists even on freestanding compilers. */
20148 # include <limits.h>
20150 # include <assert.h>
20155 /* Override any gcc2 internal prototype to avoid an error. */
20160 /* We use char because int might match the return type of a gcc2
20161 builtin and then its argument prototype would still apply. */
20163 /* The GNU C library defines this for functions which it implements
20164 to always fail with ENOSYS. Some functions are actually named
20165 something starting with __ and the normal name is an alias. */
20166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20169 char (*f) () = $ac_func;
20178 return f != $ac_func;
20183 rm -f conftest.$ac_objext conftest$ac_exeext
20184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20185 (eval $ac_link) 2>conftest.er1
20187 grep -v '^ *+' conftest.er1 >conftest.err
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } &&
20192 { ac_try='test -z "$ac_c_werror_flag"
20193 || test ! -s conftest.err'
20194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20195 (eval $ac_try) 2>&5
20197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198 (exit $ac_status); }; } &&
20199 { ac_try='test -s conftest$ac_exeext'
20200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20201 (eval $ac_try) 2>&5
20203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20204 (exit $ac_status); }; }; then
20205 eval "$as_ac_var=yes"
20207 echo "$as_me: failed program was:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20210 eval "$as_ac_var=no"
20212 rm -f conftest.err conftest.$ac_objext \
20213 conftest$ac_exeext conftest.$ac_ext
20215 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20216 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20217 if test `eval echo '${'$as_ac_var'}'` = yes; then
20218 cat >>confdefs.h <<_ACEOF
20219 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20226 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
20227 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
20228 if test "${ac_cv_func_closedir_void+set}" = set; then
20229 echo $ECHO_N "(cached) $ECHO_C" >&6
20231 if test "$cross_compiling" = yes; then
20232 ac_cv_func_closedir_void=yes
20234 cat >conftest.$ac_ext <<_ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h. */
20240 $ac_includes_default
20241 #include <$ac_header_dirent>
20242 #ifndef __cplusplus
20249 exit (closedir (opendir (".")) != 0);
20254 rm -f conftest$ac_exeext
20255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20256 (eval $ac_link) 2>&5
20258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20261 (eval $ac_try) 2>&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); }; }; then
20265 ac_cv_func_closedir_void=no
20267 echo "$as_me: program exited with status $ac_status" >&5
20268 echo "$as_me: failed program was:" >&5
20269 sed 's/^/| /' conftest.$ac_ext >&5
20271 ( exit $ac_status )
20272 ac_cv_func_closedir_void=yes
20274 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20277 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20278 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20279 if test $ac_cv_func_closedir_void = yes; then
20281 cat >>confdefs.h <<\_ACEOF
20282 #define CLOSEDIR_VOID 1
20287 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20288 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20289 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20290 echo $ECHO_N "(cached) $ECHO_C" >&6
20292 if test "$cross_compiling" = yes; then
20293 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20294 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20295 { (exit 1); exit 1; }; }
20297 cat >conftest.$ac_ext <<_ACEOF
20300 cat confdefs.h >>conftest.$ac_ext
20301 cat >>conftest.$ac_ext <<_ACEOF
20302 /* end confdefs.h. */
20304 # include <unistd.h>
20310 /* If this system has a BSD-style setpgrp which takes arguments,
20311 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20312 exit successfully. */
20313 exit (setpgrp (1,1) == -1 ? 0 : 1);
20318 rm -f conftest$ac_exeext
20319 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20320 (eval $ac_link) 2>&5
20322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20325 (eval $ac_try) 2>&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); }; }; then
20329 ac_cv_func_setpgrp_void=no
20331 echo "$as_me: program exited with status $ac_status" >&5
20332 echo "$as_me: failed program was:" >&5
20333 sed 's/^/| /' conftest.$ac_ext >&5
20335 ( exit $ac_status )
20336 ac_cv_func_setpgrp_void=yes
20338 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20341 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20342 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20343 if test $ac_cv_func_setpgrp_void = yes; then
20345 cat >>confdefs.h <<\_ACEOF
20346 #define SETPGRP_VOID 1
20350 # AC_FUNC_FNMATCH dnl use local version
20353 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20354 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20355 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20356 echo $ECHO_N "(cached) $ECHO_C" >&6
20358 ac_check_lib_save_LIBS=$LIBS
20359 LIBS="-lxpg4 $LIBS"
20360 cat >conftest.$ac_ext <<_ACEOF
20363 cat confdefs.h >>conftest.$ac_ext
20364 cat >>conftest.$ac_ext <<_ACEOF
20365 /* end confdefs.h. */
20367 /* Override any gcc2 internal prototype to avoid an error. */
20371 /* We use char because int might match the return type of a gcc2
20372 builtin and then its argument prototype would still apply. */
20382 rm -f conftest.$ac_objext conftest$ac_exeext
20383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20384 (eval $ac_link) 2>conftest.er1
20386 grep -v '^ *+' conftest.er1 >conftest.err
20388 cat conftest.err >&5
20389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20390 (exit $ac_status); } &&
20391 { ac_try='test -z "$ac_c_werror_flag"
20392 || test ! -s conftest.err'
20393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20394 (eval $ac_try) 2>&5
20396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20397 (exit $ac_status); }; } &&
20398 { ac_try='test -s conftest$ac_exeext'
20399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20400 (eval $ac_try) 2>&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); }; }; then
20404 ac_cv_lib_xpg4_setlocale=yes
20406 echo "$as_me: failed program was:" >&5
20407 sed 's/^/| /' conftest.$ac_ext >&5
20409 ac_cv_lib_xpg4_setlocale=no
20411 rm -f conftest.err conftest.$ac_objext \
20412 conftest$ac_exeext conftest.$ac_ext
20413 LIBS=$ac_check_lib_save_LIBS
20415 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20416 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20417 if test $ac_cv_lib_xpg4_setlocale = yes; then
20418 LIBS="$LIBS -lxpg4"
20424 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20425 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20426 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20427 echo $ECHO_N "(cached) $ECHO_C" >&6
20429 ac_check_lib_save_LIBS=$LIBS
20431 cat >conftest.$ac_ext <<_ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h. */
20438 /* Override any gcc2 internal prototype to avoid an error. */
20442 /* We use char because int might match the return type of a gcc2
20443 builtin and then its argument prototype would still apply. */
20453 rm -f conftest.$ac_objext conftest$ac_exeext
20454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20455 (eval $ac_link) 2>conftest.er1
20457 grep -v '^ *+' conftest.er1 >conftest.err
20459 cat conftest.err >&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } &&
20462 { ac_try='test -z "$ac_c_werror_flag"
20463 || test ! -s conftest.err'
20464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20465 (eval $ac_try) 2>&5
20467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20468 (exit $ac_status); }; } &&
20469 { ac_try='test -s conftest$ac_exeext'
20470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20471 (eval $ac_try) 2>&5
20473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474 (exit $ac_status); }; }; then
20475 ac_cv_lib_sun_getpwnam=yes
20477 echo "$as_me: failed program was:" >&5
20478 sed 's/^/| /' conftest.$ac_ext >&5
20480 ac_cv_lib_sun_getpwnam=no
20482 rm -f conftest.err conftest.$ac_objext \
20483 conftest$ac_exeext conftest.$ac_ext
20484 LIBS=$ac_check_lib_save_LIBS
20486 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20487 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20488 if test $ac_cv_lib_sun_getpwnam = yes; then
20489 cat >>confdefs.h <<_ACEOF
20490 #define HAVE_LIBSUN 1
20499 for ac_header in zlib.h
20501 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20502 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20503 echo "$as_me:$LINENO: checking for $ac_header" >&5
20504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20505 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20506 echo $ECHO_N "(cached) $ECHO_C" >&6
20508 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20509 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20511 # Is the header compilable?
20512 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20514 cat >conftest.$ac_ext <<_ACEOF
20517 cat confdefs.h >>conftest.$ac_ext
20518 cat >>conftest.$ac_ext <<_ACEOF
20519 /* end confdefs.h. */
20520 $ac_includes_default
20521 #include <$ac_header>
20523 rm -f conftest.$ac_objext
20524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20525 (eval $ac_compile) 2>conftest.er1
20527 grep -v '^ *+' conftest.er1 >conftest.err
20529 cat conftest.err >&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); } &&
20532 { ac_try='test -z "$ac_c_werror_flag"
20533 || test ! -s conftest.err'
20534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20535 (eval $ac_try) 2>&5
20537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538 (exit $ac_status); }; } &&
20539 { ac_try='test -s conftest.$ac_objext'
20540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20541 (eval $ac_try) 2>&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); }; }; then
20545 ac_header_compiler=yes
20547 echo "$as_me: failed program was:" >&5
20548 sed 's/^/| /' conftest.$ac_ext >&5
20550 ac_header_compiler=no
20552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20553 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20554 echo "${ECHO_T}$ac_header_compiler" >&6
20556 # Is the header present?
20557 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20558 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20559 cat >conftest.$ac_ext <<_ACEOF
20562 cat confdefs.h >>conftest.$ac_ext
20563 cat >>conftest.$ac_ext <<_ACEOF
20564 /* end confdefs.h. */
20565 #include <$ac_header>
20567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20570 grep -v '^ *+' conftest.er1 >conftest.err
20572 cat conftest.err >&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); } >/dev/null; then
20575 if test -s conftest.err; then
20576 ac_cpp_err=$ac_c_preproc_warn_flag
20577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20584 if test -z "$ac_cpp_err"; then
20585 ac_header_preproc=yes
20587 echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.$ac_ext >&5
20590 ac_header_preproc=no
20592 rm -f conftest.err conftest.$ac_ext
20593 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20594 echo "${ECHO_T}$ac_header_preproc" >&6
20596 # So? What about this header?
20597 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20599 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20600 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20601 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20602 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20603 ac_header_preproc=yes
20606 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20607 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20608 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20609 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20610 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20611 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20612 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20613 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20615 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20616 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20617 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20620 ## ------------------------------------------ ##
20621 ## Report this to the AC_PACKAGE_NAME lists. ##
20622 ## ------------------------------------------ ##
20625 sed "s/^/$as_me: WARNING: /" >&2
20628 echo "$as_me:$LINENO: checking for $ac_header" >&5
20629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20630 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20631 echo $ECHO_N "(cached) $ECHO_C" >&6
20633 eval "$as_ac_Header=\$ac_header_preproc"
20635 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20636 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20640 cat >>confdefs.h <<_ACEOF
20641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20648 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20649 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20650 if test "${ac_cv_lib_z_deflate+set}" = set; then
20651 echo $ECHO_N "(cached) $ECHO_C" >&6
20653 ac_check_lib_save_LIBS=$LIBS
20655 cat >conftest.$ac_ext <<_ACEOF
20658 cat confdefs.h >>conftest.$ac_ext
20659 cat >>conftest.$ac_ext <<_ACEOF
20660 /* end confdefs.h. */
20662 /* Override any gcc2 internal prototype to avoid an error. */
20666 /* We use char because int might match the return type of a gcc2
20667 builtin and then its argument prototype would still apply. */
20677 rm -f conftest.$ac_objext conftest$ac_exeext
20678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20679 (eval $ac_link) 2>conftest.er1
20681 grep -v '^ *+' conftest.er1 >conftest.err
20683 cat conftest.err >&5
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); } &&
20686 { ac_try='test -z "$ac_c_werror_flag"
20687 || test ! -s conftest.err'
20688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20689 (eval $ac_try) 2>&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); }; } &&
20693 { ac_try='test -s conftest$ac_exeext'
20694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20695 (eval $ac_try) 2>&5
20697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20698 (exit $ac_status); }; }; then
20699 ac_cv_lib_z_deflate=yes
20701 echo "$as_me: failed program was:" >&5
20702 sed 's/^/| /' conftest.$ac_ext >&5
20704 ac_cv_lib_z_deflate=no
20706 rm -f conftest.err conftest.$ac_objext \
20707 conftest$ac_exeext conftest.$ac_ext
20708 LIBS=$ac_check_lib_save_LIBS
20710 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20711 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20712 if test $ac_cv_lib_z_deflate = yes; then
20717 if test x$FDLIBS = x-lz; then
20718 cat >>confdefs.h <<\_ACEOF
20719 #define HAVE_LIBZ 1
20725 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20726 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20727 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20728 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20729 echo $ECHO_N "(cached) $ECHO_C" >&6
20731 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20732 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20734 # Is the header compilable?
20735 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20736 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20737 cat >conftest.$ac_ext <<_ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h. */
20743 $ac_includes_default
20744 #include <sys/acl.h>
20746 rm -f conftest.$ac_objext
20747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20748 (eval $ac_compile) 2>conftest.er1
20750 grep -v '^ *+' conftest.er1 >conftest.err
20752 cat conftest.err >&5
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); } &&
20755 { ac_try='test -z "$ac_c_werror_flag"
20756 || test ! -s conftest.err'
20757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20758 (eval $ac_try) 2>&5
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); }; } &&
20762 { ac_try='test -s conftest.$ac_objext'
20763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20764 (eval $ac_try) 2>&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); }; }; then
20768 ac_header_compiler=yes
20770 echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20773 ac_header_compiler=no
20775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20776 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20777 echo "${ECHO_T}$ac_header_compiler" >&6
20779 # Is the header present?
20780 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20781 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20782 cat >conftest.$ac_ext <<_ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h. */
20788 #include <sys/acl.h>
20790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20793 grep -v '^ *+' conftest.er1 >conftest.err
20795 cat conftest.err >&5
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } >/dev/null; then
20798 if test -s conftest.err; then
20799 ac_cpp_err=$ac_c_preproc_warn_flag
20800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20807 if test -z "$ac_cpp_err"; then
20808 ac_header_preproc=yes
20810 echo "$as_me: failed program was:" >&5
20811 sed 's/^/| /' conftest.$ac_ext >&5
20813 ac_header_preproc=no
20815 rm -f conftest.err conftest.$ac_ext
20816 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20817 echo "${ECHO_T}$ac_header_preproc" >&6
20819 # So? What about this header?
20820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20822 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20823 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20824 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20825 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20826 ac_header_preproc=yes
20829 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20830 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20831 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
20832 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
20833 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20834 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20835 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
20836 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20837 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20838 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20839 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20840 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20843 ## ------------------------------------------ ##
20844 ## Report this to the AC_PACKAGE_NAME lists. ##
20845 ## ------------------------------------------ ##
20848 sed "s/^/$as_me: WARNING: /" >&2
20851 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20852 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20853 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20854 echo $ECHO_N "(cached) $ECHO_C" >&6
20856 ac_cv_header_sys_acl_h=$ac_header_preproc
20858 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20859 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20864 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20865 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20866 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20867 echo $ECHO_N "(cached) $ECHO_C" >&6
20869 ac_check_lib_save_LIBS=$LIBS
20871 cat >conftest.$ac_ext <<_ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h. */
20878 /* Override any gcc2 internal prototype to avoid an error. */
20882 /* We use char because int might match the return type of a gcc2
20883 builtin and then its argument prototype would still apply. */
20884 char acl_get_file ();
20893 rm -f conftest.$ac_objext conftest$ac_exeext
20894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20895 (eval $ac_link) 2>conftest.er1
20897 grep -v '^ *+' conftest.er1 >conftest.err
20899 cat conftest.err >&5
20900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); } &&
20902 { ac_try='test -z "$ac_c_werror_flag"
20903 || test ! -s conftest.err'
20904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905 (eval $ac_try) 2>&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); }; } &&
20909 { ac_try='test -s conftest$ac_exeext'
20910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20911 (eval $ac_try) 2>&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); }; }; then
20915 ac_cv_lib_acl_acl_get_file=yes
20917 echo "$as_me: failed program was:" >&5
20918 sed 's/^/| /' conftest.$ac_ext >&5
20920 ac_cv_lib_acl_acl_get_file=no
20922 rm -f conftest.err conftest.$ac_objext \
20923 conftest$ac_exeext conftest.$ac_ext
20924 LIBS=$ac_check_lib_save_LIBS
20926 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20927 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20928 if test $ac_cv_lib_acl_acl_get_file = yes; then
20929 FDLIBS="-lacl $FDLIBS"
20933 if test $ac_cv_lib_acl_acl_get_file = yes; then
20934 cat >>confdefs.h <<\_ACEOF
20942 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20943 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20944 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20945 echo $ECHO_N "(cached) $ECHO_C" >&6
20947 ac_check_lib_save_LIBS=$LIBS
20948 LIBS="-lpthread $LIBS"
20949 cat >conftest.$ac_ext <<_ACEOF
20952 cat confdefs.h >>conftest.$ac_ext
20953 cat >>conftest.$ac_ext <<_ACEOF
20954 /* end confdefs.h. */
20956 /* Override any gcc2 internal prototype to avoid an error. */
20960 /* We use char because int might match the return type of a gcc2
20961 builtin and then its argument prototype would still apply. */
20962 char pthread_create ();
20971 rm -f conftest.$ac_objext conftest$ac_exeext
20972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20973 (eval $ac_link) 2>conftest.er1
20975 grep -v '^ *+' conftest.er1 >conftest.err
20977 cat conftest.err >&5
20978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20979 (exit $ac_status); } &&
20980 { ac_try='test -z "$ac_c_werror_flag"
20981 || test ! -s conftest.err'
20982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20983 (eval $ac_try) 2>&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); }; } &&
20987 { ac_try='test -s conftest$ac_exeext'
20988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989 (eval $ac_try) 2>&5
20991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992 (exit $ac_status); }; }; then
20993 ac_cv_lib_pthread_pthread_create=yes
20995 echo "$as_me: failed program was:" >&5
20996 sed 's/^/| /' conftest.$ac_ext >&5
20998 ac_cv_lib_pthread_pthread_create=no
21000 rm -f conftest.err conftest.$ac_objext \
21001 conftest$ac_exeext conftest.$ac_ext
21002 LIBS=$ac_check_lib_save_LIBS
21004 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21005 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
21006 if test $ac_cv_lib_pthread_pthread_create = yes; then
21007 PTHREAD_LIB="-lpthread"
21009 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
21010 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
21011 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
21012 echo $ECHO_N "(cached) $ECHO_C" >&6
21014 ac_check_lib_save_LIBS=$LIBS
21015 LIBS="-lpthreads $LIBS"
21016 cat >conftest.$ac_ext <<_ACEOF
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h. */
21023 /* Override any gcc2 internal prototype to avoid an error. */
21027 /* We use char because int might match the return type of a gcc2
21028 builtin and then its argument prototype would still apply. */
21029 char pthread_create ();
21038 rm -f conftest.$ac_objext conftest$ac_exeext
21039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21040 (eval $ac_link) 2>conftest.er1
21042 grep -v '^ *+' conftest.er1 >conftest.err
21044 cat conftest.err >&5
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); } &&
21047 { ac_try='test -z "$ac_c_werror_flag"
21048 || test ! -s conftest.err'
21049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21050 (eval $ac_try) 2>&5
21052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21053 (exit $ac_status); }; } &&
21054 { ac_try='test -s conftest$ac_exeext'
21055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21056 (eval $ac_try) 2>&5
21058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21059 (exit $ac_status); }; }; then
21060 ac_cv_lib_pthreads_pthread_create=yes
21062 echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21065 ac_cv_lib_pthreads_pthread_create=no
21067 rm -f conftest.err conftest.$ac_objext \
21068 conftest$ac_exeext conftest.$ac_ext
21069 LIBS=$ac_check_lib_save_LIBS
21071 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
21072 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
21073 if test $ac_cv_lib_pthreads_pthread_create = yes; then
21074 PTHREAD_LIB="-lpthreads"
21076 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21077 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
21078 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21079 echo $ECHO_N "(cached) $ECHO_C" >&6
21081 ac_check_lib_save_LIBS=$LIBS
21083 cat >conftest.$ac_ext <<_ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21090 /* Override any gcc2 internal prototype to avoid an error. */
21094 /* We use char because int might match the return type of a gcc2
21095 builtin and then its argument prototype would still apply. */
21096 char pthread_create ();
21105 rm -f conftest.$ac_objext conftest$ac_exeext
21106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21107 (eval $ac_link) 2>conftest.er1
21109 grep -v '^ *+' conftest.er1 >conftest.err
21111 cat conftest.err >&5
21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); } &&
21114 { ac_try='test -z "$ac_c_werror_flag"
21115 || test ! -s conftest.err'
21116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117 (eval $ac_try) 2>&5
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); }; } &&
21121 { ac_try='test -s conftest$ac_exeext'
21122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21123 (eval $ac_try) 2>&5
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); }; }; then
21127 ac_cv_lib_c_r_pthread_create=yes
21129 echo "$as_me: failed program was:" >&5
21130 sed 's/^/| /' conftest.$ac_ext >&5
21132 ac_cv_lib_c_r_pthread_create=no
21134 rm -f conftest.err conftest.$ac_objext \
21135 conftest$ac_exeext conftest.$ac_ext
21136 LIBS=$ac_check_lib_save_LIBS
21138 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21139 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
21140 if test $ac_cv_lib_c_r_pthread_create = yes; then
21141 PTHREAD_LIB="-lc_r"
21143 echo "$as_me:$LINENO: checking for pthread_create" >&5
21144 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
21145 if test "${ac_cv_func_pthread_create+set}" = set; then
21146 echo $ECHO_N "(cached) $ECHO_C" >&6
21148 cat >conftest.$ac_ext <<_ACEOF
21151 cat confdefs.h >>conftest.$ac_ext
21152 cat >>conftest.$ac_ext <<_ACEOF
21153 /* end confdefs.h. */
21154 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
21155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21156 #define pthread_create innocuous_pthread_create
21158 /* System header to define __stub macros and hopefully few prototypes,
21159 which can conflict with char pthread_create (); below.
21160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21161 <limits.h> exists even on freestanding compilers. */
21164 # include <limits.h>
21166 # include <assert.h>
21169 #undef pthread_create
21171 /* Override any gcc2 internal prototype to avoid an error. */
21176 /* We use char because int might match the return type of a gcc2
21177 builtin and then its argument prototype would still apply. */
21178 char pthread_create ();
21179 /* The GNU C library defines this for functions which it implements
21180 to always fail with ENOSYS. Some functions are actually named
21181 something starting with __ and the normal name is an alias. */
21182 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
21185 char (*f) () = pthread_create;
21194 return f != pthread_create;
21199 rm -f conftest.$ac_objext conftest$ac_exeext
21200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21201 (eval $ac_link) 2>conftest.er1
21203 grep -v '^ *+' conftest.er1 >conftest.err
21205 cat conftest.err >&5
21206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21207 (exit $ac_status); } &&
21208 { ac_try='test -z "$ac_c_werror_flag"
21209 || test ! -s conftest.err'
21210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21211 (eval $ac_try) 2>&5
21213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21214 (exit $ac_status); }; } &&
21215 { ac_try='test -s conftest$ac_exeext'
21216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21217 (eval $ac_try) 2>&5
21219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21220 (exit $ac_status); }; }; then
21221 ac_cv_func_pthread_create=yes
21223 echo "$as_me: failed program was:" >&5
21224 sed 's/^/| /' conftest.$ac_ext >&5
21226 ac_cv_func_pthread_create=no
21228 rm -f conftest.err conftest.$ac_objext \
21229 conftest$ac_exeext conftest.$ac_ext
21231 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
21232 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
21245 cat >>confdefs.h <<\_ACEOF
21251 CFLAGS=${CFLAGS--O}
21252 LDFLAGS=${LDFLAGS--O}
21253 DB_LIBS="${SQL_LFLAGS}"
21255 CPPFLAGS="$CPPFLAGS"
21280 # Finally we set appropriate distribution specific
21281 # variables and defaults
21283 # PFILES are platform specific files
21284 PFILES="platforms/Makefile"
21288 hostname=`uname -n | cut -d '.' -f 1`
21289 case "$DISTNAME" in
21292 PSCMD="ps -e -o pid,comm"
21293 PFILES="${PFILES} \
21294 platforms/aix/Makefile"
21295 TAPEDRIVE="/dev/rmt0.1"
21299 PTHREAD_LIB="-lpthread -lexc"
21300 if test "${CC}" = "gcc" ; then
21307 TAPEDRIVE="/dev/nrmt0"
21310 DISTVER=`uname -a |awk '{print $3}'`
21311 TAPEDRIVE="/dev/nrmt0"
21312 PTHREAD_LIB="-pthread"
21313 CFLAGS="${CFLAGS} -pthread"
21314 PSCMD="ps -ax -o pid,command"
21317 PFILES="${PFILES} \
21318 platforms/bsdi/Makefile \
21319 platforms/bsdi/bacula-fd \
21320 platforms/bsdi/bacula-sd \
21321 platforms/bsdi/bacula-dir"
21322 largefile_support="yes"
21325 DISTVER=`uname -a |awk '{print $3}'`
21326 TAPEDRIVE="/dev/nrst0"
21328 WCFLAGS="-mwindows"
21329 WLDFLAGS="-mwindows"
21333 TAPEDRIVE="/dev/nst0"
21334 PSCMD="ps -e -o pid,command"
21336 PFILES="${PFILES} \
21337 platforms/darwin/Makefile"
21340 DISTVER=`cat /etc/debian_version`
21341 TAPEDRIVE="/dev/nrst0"
21342 PSCMD="ps -e -o pid,command"
21345 DISTVER=`uname -a |awk '{print $3}'`
21346 VER=`echo $DISTVER | cut -c 1`
21347 if test x$VER = x4 ; then
21348 PTHREAD_LIB="-pthread"
21349 CFLAGS="${CFLAGS} -pthread"
21353 TAPEDRIVE="/dev/nrsa0"
21354 PSCMD="ps -ax -o pid,command"
21355 PFILES="${PFILES} \
21356 platforms/freebsd/Makefile \
21357 platforms/freebsd/bacula-fd \
21358 platforms/freebsd/bacula-sd \
21359 platforms/freebsd/bacula-dir"
21360 largefile_support="yes"
21363 PSCMD="UNIX95=1 ps -e -o pid,comm"
21364 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21366 TAPEDRIVE="/dev/rmt/0hnb"
21367 PTHREAD_LIB="-lpthread"
21368 cat >>confdefs.h <<\_ACEOF
21369 #define _INCLUDE_LONGLONG 1
21375 TAPEDRIVE="/dev/rmt/0cbn"
21376 PSCMD="ps -e -o pid,comm"
21377 PFILES="${PFILES} \
21378 platforms/irix/Makefile \
21379 platforms/irix/bacula-fd \
21380 platforms/irix/bacula-sd \
21381 platforms/irix/bacula-dir"
21384 DISTVER=`uname -a |awk '{print $3}'`
21387 TAPEDRIVE="/dev/nrst0"
21388 PSCMD="ps -ax -o pid,command"
21389 PTHREAD_LIB="-pthread"
21390 CFLAGS="${CFLAGS} -pthread"
21393 DISTVER=`uname -a |awk '{print $3}'`
21396 TAPEDRIVE="/dev/nrst0"
21397 PSCMD="ps -ax -o pid,command"
21398 PTHREAD_LIB="-pthread"
21399 CFLAGS="${CFLAGS} -pthread"
21400 PFILES="${PFILES} \
21401 platforms/openbsd/Makefile \
21402 platforms/openbsd/bacula-fd \
21403 platforms/openbsd/bacula-sd \
21404 platforms/openbsd/bacula-dir"
21407 if test -f /etc/whitebox-release ; then
21408 f=/etc/whitebox-release
21410 f=/etc/redhat-release
21412 if test `cat $f | grep release |\
21413 cut -f 3 -d ' '`x = "Enterprise"x ; then
21414 DISTVER="Enterprise "`cat $f | grep release |\
21417 DISTVER=`cat /etc/redhat-release | grep release |\
21420 TAPEDRIVE="/dev/nst0"
21421 PSCMD="ps -e -o pid,command"
21422 PFILES="${PFILES} \
21423 platforms/redhat/Makefile \
21424 platforms/redhat/bacula-fd \
21425 platforms/redhat/bacula-sd \
21426 platforms/redhat/bacula-dir \
21427 platforms/redhat/bacula.spec \
21429 hostname=`hostname -s`
21432 DISTVER=`cat /etc/mandrake-release | grep release |\
21434 TAPEDRIVE="/dev/nst0"
21435 PSCMD="ps -e -o pid,command"
21436 PFILES="${PFILES} \
21437 platforms/mandrake/Makefile \
21438 platforms/mandrake/bacula-fd \
21439 platforms/mandrake/bacula-sd \
21440 platforms/mandrake/bacula-dir \
21441 platforms/mandrake/bacula.spec \
21445 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21446 TAPEDRIVE="/dev/nst0"
21447 PSCMD="ps -e -o pid,command"
21448 PFILES="${PFILES} \
21449 platforms/gentoo/Makefile \
21450 platforms/gentoo/bacula-init \
21451 platforms/gentoo/bacula-fd \
21452 platforms/gentoo/bacula-sd \
21453 platforms/gentoo/bacula-dir"
21456 DISTVER=`cat /etc/slackware-version`
21457 TAPEDRIVE="/dev/nst0"
21458 PSCMD="ps -e -o pid,command"
21459 PFILES="${PFILES} \
21460 platforms/slackware/Makefile \
21461 platforms/slackware/rc.bacula-fd \
21462 platforms/slackware/rc.bacula-sd \
21463 platforms/slackware/rc.bacula-dir\
21464 platforms/slackware/functions.bacula"
21468 TAPEDRIVE="/dev/rmt/0cbn"
21469 PSCMD="ps -e -o pid,comm"
21470 PFILES="${PFILES} \
21471 platforms/solaris/Makefile \
21472 platforms/solaris/bacula-fd \
21473 platforms/solaris/bacula-sd \
21474 platforms/solaris/bacula-dir"
21475 if test x$DISTVER = x5.6 ; then
21476 cat >>confdefs.h <<\_ACEOF
21477 #define HAVE_OLD_SOCKOPT 1
21481 LIBS="$LIBS -lresolv"
21484 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21486 TAPEDRIVE="/dev/nst0"
21487 PSCMD="ps -e -o pid,command"
21488 PFILES="${PFILES} \
21489 platforms/suse/Makefile \
21490 platforms/suse/bacula-fd \
21491 platforms/suse/bacula-sd \
21492 platforms/suse/bacula-dir \
21493 platforms/suse/bacula \
21494 platforms/suse/bacula.spec"
21499 TAPEDRIVE="/dev/nst0"
21500 PSCMD="ps -e -o pid,command"
21501 PFILES="${PFILES} \
21502 platforms/suse/Makefile \
21503 platforms/suse/bacula-fd \
21504 platforms/suse/bacula-sd \
21505 platforms/suse/bacula-dir"
21509 TAPEDRIVE="/dev/nst0"
21512 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21518 LIBS="$PTHREAD_LIB $LIBS"
21520 cat >>confdefs.h <<_ACEOF
21524 cat >>confdefs.h <<_ACEOF
21535 MCOMMON=./autoconf/Make.common
21538 if test "x${subsysdir}" = "x${sbindir}" ; then
21541 echo "You have set both --sbindir and --with-subsys-dir"
21542 echo " equal to: ${subsysdir} "
21543 echo "This is not permitted. Please reconfigure."
21545 echo "Aborting configuration ..."
21551 ac_config_files="$ac_config_files autoconf/Make.common 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/dvd-writepart scripts/dvd-freespace scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf src/Makefile src/host.h src/console/Makefile src/console/bconsole.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/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_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 $PFILES"
21552 ac_config_commands="$ac_config_commands default"
21553 cat >confcache <<\_ACEOF
21554 # This file is a shell script that caches the results of configure
21555 # tests run on this system so they can be shared between configure
21556 # scripts and configure runs, see configure's option --config-cache.
21557 # It is not useful on other systems. If it contains results you don't
21558 # want to keep, you may remove or edit it.
21560 # config.status only pays attention to the cache file if you give it
21561 # the --recheck option to rerun configure.
21563 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21564 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21565 # following values.
21569 # The following way of writing the cache mishandles newlines in values,
21570 # but we know of no workaround that is simple, portable, and efficient.
21571 # So, don't put newlines in cache variables' values.
21572 # Ultrix sh set writes to stderr and can't be redirected directly,
21573 # and sets the high bit in the cache file unless we assign to the vars.
21576 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21578 # `set' does not quote correctly, so add quotes (double-quote
21579 # substitution turns \\\\ into \\, and sed turns \\ into \).
21582 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21585 # `set' quotes correctly as required by POSIX, so do not add quotes.
21587 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21594 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21596 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21598 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21599 if test -w $cache_file; then
21600 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21601 cat confcache >$cache_file
21603 echo "not updating unwritable cache $cache_file"
21608 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21609 # Let make expand exec_prefix.
21610 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21612 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21613 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21614 # trailing colons and then remove the whole line if VPATH becomes empty
21615 # (actually we leave an empty line to preserve line numbers).
21616 if test "x$srcdir" = x.; then
21617 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21618 s/:*\$(srcdir):*/:/;
21619 s/:*\${srcdir}:*/:/;
21621 s/^\([^=]*=[ ]*\):*/\1/;
21627 DEFS=-DHAVE_CONFIG_H
21631 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21632 # 1. Remove the extension, and $U if already installed.
21633 ac_i=`echo "$ac_i" |
21634 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21636 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21637 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21639 LIBOBJS=$ac_libobjs
21641 LTLIBOBJS=$ac_ltlibobjs
21645 : ${CONFIG_STATUS=./config.status}
21646 ac_clean_files_save=$ac_clean_files
21647 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21648 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21649 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21650 cat >$CONFIG_STATUS <<_ACEOF
21652 # Generated by $as_me.
21653 # Run this file to recreate the current configuration.
21654 # Compiler output produced by configure, useful for debugging
21655 # configure, is in config.log if it exists.
21658 ac_cs_recheck=false
21660 SHELL=\${CONFIG_SHELL-$SHELL}
21663 cat >>$CONFIG_STATUS <<\_ACEOF
21664 ## --------------------- ##
21665 ## M4sh Initialization. ##
21666 ## --------------------- ##
21668 # Be Bourne compatible
21669 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21672 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21673 # is contrary to our usage. Disable this feature.
21674 alias -g '${1+"$@"}'='"$@"'
21675 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21678 DUALCASE=1; export DUALCASE # for MKS sh
21680 # Support unset when possible.
21681 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21688 # Work around bugs in pre-3.0 UWIN ksh.
21689 $as_unset ENV MAIL MAILPATH
21696 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21697 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21698 LC_TELEPHONE LC_TIME
21700 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21701 eval $as_var=C; export $as_var
21707 # Required to use basename.
21708 if expr a : '\(a\)' >/dev/null 2>&1; then
21714 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21715 as_basename=basename
21721 # Name of the executable.
21722 as_me=`$as_basename "$0" ||
21723 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21724 X"$0" : 'X\(//\)$' \| \
21725 X"$0" : 'X\(/\)$' \| \
21726 . : '\(.\)' 2>/dev/null ||
21728 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21729 /^X\/\(\/\/\)$/{ s//\1/; q; }
21730 /^X\/\(\/\).*/{ s//\1/; q; }
21734 # PATH needs CR, and LINENO needs CR and PATH.
21735 # Avoid depending upon Character Ranges.
21736 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21737 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21738 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21739 as_cr_digits='0123456789'
21740 as_cr_alnum=$as_cr_Letters$as_cr_digits
21742 # The user is always right.
21743 if test "${PATH_SEPARATOR+set}" != set; then
21744 echo "#! /bin/sh" >conf$$.sh
21745 echo "exit 0" >>conf$$.sh
21747 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21756 as_lineno_1=$LINENO
21757 as_lineno_2=$LINENO
21758 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21759 test "x$as_lineno_1" != "x$as_lineno_2" &&
21760 test "x$as_lineno_3" = "x$as_lineno_2" || {
21761 # Find who we are. Look in the path if we contain no path at all
21764 *[\\/]* ) as_myself=$0 ;;
21765 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21766 for as_dir in $PATH
21769 test -z "$as_dir" && as_dir=.
21770 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21775 # We did not find ourselves, most probably we were run as `sh COMMAND'
21776 # in which case we are not to be found in the path.
21777 if test "x$as_myself" = x; then
21780 if test ! -f "$as_myself"; then
21781 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21782 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21783 { (exit 1); exit 1; }; }
21785 case $CONFIG_SHELL in
21787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21788 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21791 test -z "$as_dir" && as_dir=.
21792 for as_base in sh bash ksh sh5; do
21795 if ("$as_dir/$as_base" -c '
21796 as_lineno_1=$LINENO
21797 as_lineno_2=$LINENO
21798 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21799 test "x$as_lineno_1" != "x$as_lineno_2" &&
21800 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21801 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21802 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21803 CONFIG_SHELL=$as_dir/$as_base
21804 export CONFIG_SHELL
21805 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21813 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21814 # uniformly replaced by the line number. The first 'sed' inserts a
21815 # line-number line before each line; the second 'sed' does the real
21816 # work. The second script uses 'N' to pair each line-number line
21817 # with the numbered line, and appends trailing '-' during
21818 # substitution so that $LINENO is not a special case at line end.
21819 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21820 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21821 sed '=' <$as_myself |
21826 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21829 s,^['$as_cr_digits']*\n,,
21830 ' >$as_me.lineno &&
21831 chmod +x $as_me.lineno ||
21832 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21833 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21834 { (exit 1); exit 1; }; }
21836 # Don't try to exec as it changes $[0], causing all sort of problems
21837 # (the dirname of $[0] is not the place where we might find the
21838 # original and so on. Autoconf is especially sensible to this).
21840 # Exit status is that of the last command.
21845 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21846 *c*,-n*) ECHO_N= ECHO_C='
21848 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21849 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21852 if expr a : '\(a\)' >/dev/null 2>&1; then
21858 rm -f conf$$ conf$$.exe conf$$.file
21860 if ln -s conf$$.file conf$$ 2>/dev/null; then
21861 # We could just check for DJGPP; but this test a) works b) is more generic
21862 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21863 if test -f conf$$.exe; then
21864 # Don't use ln at all; we don't have any links
21869 elif ln conf$$.file conf$$ 2>/dev/null; then
21874 rm -f conf$$ conf$$.exe conf$$.file
21876 if mkdir -p . 2>/dev/null; then
21879 test -d ./-p && rmdir ./-p
21883 as_executable_p="test -f"
21885 # Sed expression to map a string onto a valid CPP name.
21886 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21888 # Sed expression to map a string onto a valid variable name.
21889 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21893 # We need space, tab and new line, in precisely that order.
21903 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21904 # report actual input values of CONFIG_FILES etc. instead of their
21905 # values after options handling. Logging --version etc. is OK.
21909 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21910 ## Running $as_me. ##
21915 This file was extended by $as_me, which was
21916 generated by GNU Autoconf 2.59. Invocation command line was
21918 CONFIG_FILES = $CONFIG_FILES
21919 CONFIG_HEADERS = $CONFIG_HEADERS
21920 CONFIG_LINKS = $CONFIG_LINKS
21921 CONFIG_COMMANDS = $CONFIG_COMMANDS
21925 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21929 # Files that config.status was made for.
21930 if test -n "$ac_config_files"; then
21931 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21934 if test -n "$ac_config_headers"; then
21935 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21938 if test -n "$ac_config_links"; then
21939 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21942 if test -n "$ac_config_commands"; then
21943 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21946 cat >>$CONFIG_STATUS <<\_ACEOF
21949 \`$as_me' instantiates files from templates according to the
21950 current configuration.
21952 Usage: $0 [OPTIONS] [FILE]...
21954 -h, --help print this help, then exit
21955 -V, --version print version number, then exit
21956 -q, --quiet do not print progress messages
21957 -d, --debug don't remove temporary files
21958 --recheck update $as_me by reconfiguring in the same conditions
21959 --file=FILE[:TEMPLATE]
21960 instantiate the configuration file FILE
21961 --header=FILE[:TEMPLATE]
21962 instantiate the configuration header FILE
21964 Configuration files:
21967 Configuration headers:
21970 Configuration commands:
21973 Report bugs to <bug-autoconf@gnu.org>."
21976 cat >>$CONFIG_STATUS <<_ACEOF
21979 configured by $0, generated by GNU Autoconf 2.59,
21980 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21982 Copyright (C) 2003 Free Software Foundation, Inc.
21983 This config.status script is free software; the Free Software Foundation
21984 gives unlimited permission to copy, distribute and modify it."
21989 cat >>$CONFIG_STATUS <<\_ACEOF
21990 # If no file are specified by the user, then we need to provide default
21991 # value. By we need to know if files were specified by the user.
21997 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21998 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22006 *) # This is not an option, so the user has probably given explicit
22009 ac_need_defaults=false;;
22013 # Handling of the options.
22015 cat >>$CONFIG_STATUS <<\_ACEOF
22016 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22018 --version | --vers* | -V )
22019 echo "$ac_cs_version"; exit 0 ;;
22021 # Conflict between --help and --header
22022 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22023 Try \`$0 --help' for more information." >&5
22024 echo "$as_me: error: ambiguous option: $1
22025 Try \`$0 --help' for more information." >&2;}
22026 { (exit 1); exit 1; }; };;
22027 --help | --hel | -h )
22028 echo "$ac_cs_usage"; exit 0 ;;
22029 --debug | --d* | -d )
22031 --file | --fil | --fi | --f )
22033 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22034 ac_need_defaults=false;;
22035 --header | --heade | --head | --hea )
22037 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22038 ac_need_defaults=false;;
22039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22040 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22043 # This is an error.
22044 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22045 Try \`$0 --help' for more information." >&5
22046 echo "$as_me: error: unrecognized option: $1
22047 Try \`$0 --help' for more information." >&2;}
22048 { (exit 1); exit 1; }; } ;;
22050 *) ac_config_targets="$ac_config_targets $1" ;;
22056 ac_configure_extra_args=
22058 if $ac_cs_silent; then
22060 ac_configure_extra_args="$ac_configure_extra_args --silent"
22064 cat >>$CONFIG_STATUS <<_ACEOF
22065 if \$ac_cs_recheck; then
22066 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22067 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22076 cat >>$CONFIG_STATUS <<\_ACEOF
22077 for ac_config_target in $ac_config_targets
22079 case "$ac_config_target" in
22080 # Handling of arguments.
22081 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
22082 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22083 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
22084 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
22085 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
22086 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
22087 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
22088 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
22089 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
22090 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
22091 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
22092 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
22093 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
22094 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
22095 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
22096 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
22097 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
22098 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
22099 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
22100 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
22101 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
22102 "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
22103 "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
22104 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
22105 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
22106 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
22107 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22108 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
22109 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
22110 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
22111 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
22112 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
22113 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
22114 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
22115 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
22116 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
22117 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
22118 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
22119 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
22120 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
22121 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
22122 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
22123 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
22124 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
22125 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
22126 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
22127 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
22128 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
22129 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
22130 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
22131 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
22132 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
22133 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
22134 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
22135 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
22136 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
22137 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
22138 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
22139 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
22140 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
22141 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
22142 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
22143 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
22144 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
22145 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
22146 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
22147 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
22148 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
22149 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
22150 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
22151 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
22152 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
22153 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
22154 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
22155 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
22156 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
22157 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
22158 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
22159 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
22160 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
22161 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
22162 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
22163 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
22164 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
22165 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
22166 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
22167 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
22168 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
22169 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
22170 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
22171 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
22172 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
22173 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
22174 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
22175 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22176 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
22177 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22178 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22179 { (exit 1); exit 1; }; };;
22183 # If the user did not use the arguments to specify the items to instantiate,
22184 # then the envvar interface is used. Set only those that are not.
22185 # We use the long form for the default assignment because of an extremely
22186 # bizarre bug on SunOS 4.1.3.
22187 if $ac_need_defaults; then
22188 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22189 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22190 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22193 # Have a temporary directory for convenience. Make it in the build tree
22194 # simply because there is no reason to put it here, and in addition,
22195 # creating and moving files from /tmp can sometimes cause problems.
22196 # Create a temporary directory, and hook for its removal unless debugging.
22199 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22200 trap '{ (exit 1); exit 1; }' 1 2 13 15
22203 # Create a (secure) tmp directory for tmp files.
22206 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22207 test -n "$tmp" && test -d "$tmp"
22210 tmp=./confstat$$-$RANDOM
22211 (umask 077 && mkdir $tmp)
22214 echo "$me: cannot create a temporary directory in ." >&2
22215 { (exit 1); exit 1; }
22220 cat >>$CONFIG_STATUS <<_ACEOF
22223 # CONFIG_FILES section.
22226 # No need to generate the scripts if there are no CONFIG_FILES.
22227 # This happens for instance when ./config.status config.h
22228 if test -n "\$CONFIG_FILES"; then
22229 # Protect against being on the right side of a sed subst in config.status.
22230 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22231 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22232 s,@SHELL@,$SHELL,;t t
22233 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22234 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22235 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22236 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22237 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22238 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22239 s,@exec_prefix@,$exec_prefix,;t t
22240 s,@prefix@,$prefix,;t t
22241 s,@program_transform_name@,$program_transform_name,;t t
22242 s,@bindir@,$bindir,;t t
22243 s,@sbindir@,$sbindir,;t t
22244 s,@libexecdir@,$libexecdir,;t t
22245 s,@datadir@,$datadir,;t t
22246 s,@sysconfdir@,$sysconfdir,;t t
22247 s,@sharedstatedir@,$sharedstatedir,;t t
22248 s,@localstatedir@,$localstatedir,;t t
22249 s,@libdir@,$libdir,;t t
22250 s,@includedir@,$includedir,;t t
22251 s,@oldincludedir@,$oldincludedir,;t t
22252 s,@infodir@,$infodir,;t t
22253 s,@mandir@,$mandir,;t t
22254 s,@build_alias@,$build_alias,;t t
22255 s,@host_alias@,$host_alias,;t t
22256 s,@target_alias@,$target_alias,;t t
22257 s,@DEFS@,$DEFS,;t t
22258 s,@ECHO_C@,$ECHO_C,;t t
22259 s,@ECHO_N@,$ECHO_N,;t t
22260 s,@ECHO_T@,$ECHO_T,;t t
22261 s,@LIBS@,$LIBS,;t t
22262 s,@BUILD_DIR@,$BUILD_DIR,;t t
22263 s,@TRUEPRG@,$TRUEPRG,;t t
22264 s,@FALSEPRG@,$FALSEPRG,;t t
22265 s,@VERSION@,$VERSION,;t t
22266 s,@DATE@,$DATE,;t t
22267 s,@LSMDATE@,$LSMDATE,;t t
22269 s,@CFLAGS@,$CFLAGS,;t t
22270 s,@LDFLAGS@,$LDFLAGS,;t t
22271 s,@CPPFLAGS@,$CPPFLAGS,;t t
22272 s,@ac_ct_CC@,$ac_ct_CC,;t t
22273 s,@EXEEXT@,$EXEEXT,;t t
22274 s,@OBJEXT@,$OBJEXT,;t t
22276 s,@CXXFLAGS@,$CXXFLAGS,;t t
22277 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22279 s,@EGREP@,$EGREP,;t t
22280 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22281 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22282 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22283 s,@RANLIB@,$RANLIB,;t t
22284 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22289 s,@ECHO@,$ECHO,;t t
22293 s,@OPENSSL@,$OPENSSL,;t t
22296 s,@MKISOFS@,$MKISOFS,;t t
22297 s,@PYTHON@,$PYTHON,;t t
22298 s,@GROWISOFS@,$GROWISOFS,;t t
22299 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
22300 s,@PKGCONFIG@,$PKGCONFIG,;t t
22301 s,@WXCONFIG@,$WXCONFIG,;t t
22302 s,@WXFLAGS@,$WXFLAGS,;t t
22303 s,@CDRECORD@,$CDRECORD,;t t
22304 s,@PIDOF@,$PIDOF,;t t
22306 s,@ARFLAGS@,$ARFLAGS,;t t
22307 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
22308 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
22309 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
22310 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22311 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
22312 s,@build@,$build,;t t
22313 s,@build_cpu@,$build_cpu,;t t
22314 s,@build_vendor@,$build_vendor,;t t
22315 s,@build_os@,$build_os,;t t
22316 s,@host@,$host,;t t
22317 s,@host_cpu@,$host_cpu,;t t
22318 s,@host_vendor@,$host_vendor,;t t
22319 s,@host_os@,$host_os,;t t
22320 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22321 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22322 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22323 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22324 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22325 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22326 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22327 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22328 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22329 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22330 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22331 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22332 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22333 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22334 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22335 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22336 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22337 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22338 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22339 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22340 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22341 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22342 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22343 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22344 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22345 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22346 s,@MSGFMT@,$MSGFMT,;t t
22347 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22348 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22349 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22350 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22351 s,@GNOME_DIR@,$GNOME_DIR,;t t
22352 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22353 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22354 s,@WX_DIR@,$WX_DIR,;t t
22355 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22356 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22357 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22358 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22359 s,@STATIC_FD@,$STATIC_FD,;t t
22360 s,@STATIC_SD@,$STATIC_SD,;t t
22361 s,@STATIC_DIR@,$STATIC_DIR,;t t
22362 s,@STATIC_CONS@,$STATIC_CONS,;t t
22363 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22364 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22365 s,@ALL_DIRS@,$ALL_DIRS,;t t
22366 s,@CONS_INC@,$CONS_INC,;t t
22367 s,@CONS_OBJ@,$CONS_OBJ,;t t
22368 s,@CONS_SRC@,$CONS_SRC,;t t
22369 s,@CONS_LIBS@,$CONS_LIBS,;t t
22370 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22371 s,@READLINE_SRC@,$READLINE_SRC,;t t
22372 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22373 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22374 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
22375 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
22376 s,@working_dir@,$working_dir,;t t
22377 s,@scriptdir@,$scriptdir,;t t
22378 s,@dump_email@,$dump_email,;t t
22379 s,@job_email@,$job_email,;t t
22380 s,@smtp_host@,$smtp_host,;t t
22381 s,@piddir@,$piddir,;t t
22382 s,@subsysdir@,$subsysdir,;t t
22383 s,@baseport@,$baseport,;t t
22384 s,@dir_port@,$dir_port,;t t
22385 s,@fd_port@,$fd_port,;t t
22386 s,@sd_port@,$sd_port,;t t
22387 s,@dir_password@,$dir_password,;t t
22388 s,@fd_password@,$fd_password,;t t
22389 s,@sd_password@,$sd_password,;t t
22390 s,@mon_dir_password@,$mon_dir_password,;t t
22391 s,@mon_fd_password@,$mon_fd_password,;t t
22392 s,@mon_sd_password@,$mon_sd_password,;t t
22393 s,@dir_user@,$dir_user,;t t
22394 s,@dir_group@,$dir_group,;t t
22395 s,@sd_user@,$sd_user,;t t
22396 s,@sd_group@,$sd_group,;t t
22397 s,@fd_user@,$fd_user,;t t
22398 s,@fd_group@,$fd_group,;t t
22399 s,@SBINPERM@,$SBINPERM,;t t
22400 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22401 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22402 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22403 s,@cats@,$cats,;t t
22404 s,@DB_NAME@,$DB_NAME,;t t
22405 s,@GETCONF@,$GETCONF,;t t
22406 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22407 s,@X_CFLAGS@,$X_CFLAGS,;t t
22408 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22409 s,@X_LIBS@,$X_LIBS,;t t
22410 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22411 s,@LIBOBJS@,$LIBOBJS,;t t
22412 s,@ALLOCA@,$ALLOCA,;t t
22413 s,@FDLIBS@,$FDLIBS,;t t
22414 s,@DEBUG@,$DEBUG,;t t
22415 s,@DINCLUDE@,$DINCLUDE,;t t
22416 s,@DLIB@,$DLIB,;t t
22417 s,@DB_LIBS@,$DB_LIBS,;t t
22418 s,@WCFLAGS@,$WCFLAGS,;t t
22419 s,@WLDFLAGS@,$WLDFLAGS,;t t
22420 s,@OBJLIST@,$OBJLIST,;t t
22421 s,@hostname@,$hostname,;t t
22422 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22423 s,@PSCMD@,$PSCMD,;t t
22424 s,@WIN32@,$WIN32,;t t
22425 s,@MACOSX@,$MACOSX,;t t
22426 s,@DISTNAME@,$DISTNAME,;t t
22427 s,@DISTVER@,$DISTVER,;t t
22428 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22429 /@MCOMMON@/r $MCOMMON
22435 cat >>$CONFIG_STATUS <<\_ACEOF
22436 # Split the substitutions into bite-sized pieces for seds with
22437 # small command number limits, like on Digital OSF/1 and HP-UX.
22438 ac_max_sed_lines=48
22439 ac_sed_frag=1 # Number of current file.
22440 ac_beg=1 # First line for current file.
22441 ac_end=$ac_max_sed_lines # Line after last line for current file.
22444 while $ac_more_lines; do
22445 if test $ac_beg -gt 1; then
22446 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22448 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22450 if test ! -s $tmp/subs.frag; then
22451 ac_more_lines=false
22453 # The purpose of the label and of the branching condition is to
22454 # speed up the sed processing (if there are no `@' at all, there
22455 # is no need to browse any of the substitutions).
22456 # These are the two extra sed commands mentioned above.
22458 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22459 if test -z "$ac_sed_cmds"; then
22460 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22462 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22464 ac_sed_frag=`expr $ac_sed_frag + 1`
22466 ac_end=`expr $ac_end + $ac_max_sed_lines`
22469 if test -z "$ac_sed_cmds"; then
22472 fi # test -n "$CONFIG_FILES"
22475 cat >>$CONFIG_STATUS <<\_ACEOF
22476 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22477 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22479 - | *:- | *:-:* ) # input from stdin
22481 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22482 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22483 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22484 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22485 * ) ac_file_in=$ac_file.in ;;
22488 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22489 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22490 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22491 X"$ac_file" : 'X\(//\)[^/]' \| \
22492 X"$ac_file" : 'X\(//\)$' \| \
22493 X"$ac_file" : 'X\(/\)' \| \
22494 . : '\(.\)' 2>/dev/null ||
22496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22497 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22498 /^X\(\/\/\)$/{ s//\1/; q; }
22499 /^X\(\/\).*/{ s//\1/; q; }
22501 { if $as_mkdir_p; then
22506 while test ! -d "$as_dir"; do
22507 as_dirs="$as_dir $as_dirs"
22508 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22509 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22510 X"$as_dir" : 'X\(//\)[^/]' \| \
22511 X"$as_dir" : 'X\(//\)$' \| \
22512 X"$as_dir" : 'X\(/\)' \| \
22513 . : '\(.\)' 2>/dev/null ||
22515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22516 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22517 /^X\(\/\/\)$/{ s//\1/; q; }
22518 /^X\(\/\).*/{ s//\1/; q; }
22521 test ! -n "$as_dirs" || mkdir $as_dirs
22522 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22523 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22524 { (exit 1); exit 1; }; }; }
22528 if test "$ac_dir" != .; then
22529 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22530 # A "../" for each directory in $ac_dir_suffix.
22531 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22533 ac_dir_suffix= ac_top_builddir=
22537 .) # No --srcdir option. We are building in place.
22539 if test -z "$ac_top_builddir"; then
22542 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22544 [\\/]* | ?:[\\/]* ) # Absolute path.
22545 ac_srcdir=$srcdir$ac_dir_suffix;
22546 ac_top_srcdir=$srcdir ;;
22547 *) # Relative path.
22548 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22549 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22552 # Do not use `cd foo && pwd` to compute absolute paths, because
22553 # the directories may not exist.
22555 .) ac_abs_builddir="$ac_dir";;
22558 .) ac_abs_builddir=`pwd`;;
22559 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22560 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22563 case $ac_abs_builddir in
22564 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22566 case ${ac_top_builddir}. in
22567 .) ac_abs_top_builddir=$ac_abs_builddir;;
22568 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22569 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22572 case $ac_abs_builddir in
22573 .) ac_abs_srcdir=$ac_srcdir;;
22576 .) ac_abs_srcdir=$ac_abs_builddir;;
22577 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22578 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22581 case $ac_abs_builddir in
22582 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22584 case $ac_top_srcdir in
22585 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22586 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22587 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22593 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22594 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22597 if test x"$ac_file" != x-; then
22598 { echo "$as_me:$LINENO: creating $ac_file" >&5
22599 echo "$as_me: creating $ac_file" >&6;}
22602 # Let's still pretend it is `configure' which instantiates (i.e., don't
22603 # use $as_me), people would be surprised to read:
22604 # /* config.h. Generated by config.status. */
22605 if test x"$ac_file" = x-; then
22608 configure_input="$ac_file. "
22610 configure_input=$configure_input"Generated from `echo $ac_file_in |
22611 sed 's,.*/,,'` by configure."
22613 # First look for the input files in the build tree, otherwise in the
22615 ac_file_inputs=`IFS=:
22616 for f in $ac_file_in; do
22618 -) echo $tmp/stdin ;;
22620 # Absolute (can't be DOS-style, as IFS=:)
22621 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22622 echo "$as_me: error: cannot find input file: $f" >&2;}
22623 { (exit 1); exit 1; }; }
22626 if test -f "$f"; then
22629 elif test -f "$srcdir/$f"; then
22634 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22635 echo "$as_me: error: cannot find input file: $f" >&2;}
22636 { (exit 1); exit 1; }; }
22639 done` || { (exit 1); exit 1; }
22641 cat >>$CONFIG_STATUS <<_ACEOF
22645 cat >>$CONFIG_STATUS <<\_ACEOF
22647 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22648 s,@configure_input@,$configure_input,;t t
22649 s,@srcdir@,$ac_srcdir,;t t
22650 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22651 s,@top_srcdir@,$ac_top_srcdir,;t t
22652 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22653 s,@builddir@,$ac_builddir,;t t
22654 s,@abs_builddir@,$ac_abs_builddir,;t t
22655 s,@top_builddir@,$ac_top_builddir,;t t
22656 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22657 s,@INSTALL@,$ac_INSTALL,;t t
22658 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22660 if test x"$ac_file" != x-; then
22661 mv $tmp/out $ac_file
22669 cat >>$CONFIG_STATUS <<\_ACEOF
22672 # CONFIG_HEADER section.
22675 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22676 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22678 # ac_d sets the value in "#define NAME VALUE" lines.
22679 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22680 ac_dB='[ ].*$,\1#\2'
22683 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22684 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22685 ac_uB='$,\1#\2define\3'
22689 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22690 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22692 - | *:- | *:-:* ) # input from stdin
22694 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22695 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22696 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22697 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22698 * ) ac_file_in=$ac_file.in ;;
22701 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22702 echo "$as_me: creating $ac_file" >&6;}
22704 # First look for the input files in the build tree, otherwise in the
22706 ac_file_inputs=`IFS=:
22707 for f in $ac_file_in; do
22709 -) echo $tmp/stdin ;;
22711 # Absolute (can't be DOS-style, as IFS=:)
22712 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22713 echo "$as_me: error: cannot find input file: $f" >&2;}
22714 { (exit 1); exit 1; }; }
22715 # Do quote $f, to prevent DOS paths from being IFS'd.
22718 if test -f "$f"; then
22721 elif test -f "$srcdir/$f"; then
22726 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22727 echo "$as_me: error: cannot find input file: $f" >&2;}
22728 { (exit 1); exit 1; }; }
22731 done` || { (exit 1); exit 1; }
22732 # Remove the trailing spaces.
22733 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22737 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22738 # `conftest.undefs', that substitutes the proper values into
22739 # config.h.in to produce config.h. The first handles `#define'
22740 # templates, and the second `#undef' templates.
22741 # And first: Protect against being on the right side of a sed subst in
22742 # config.status. Protect against being in an unquoted here document
22743 # in config.status.
22744 rm -f conftest.defines conftest.undefs
22745 # Using a here document instead of a string reduces the quoting nightmare.
22746 # Putting comments in sed scripts is not portable.
22748 # `end' is used to avoid that the second main sed command (meant for
22749 # 0-ary CPP macros) applies to n-ary macro definitions.
22750 # See the Autoconf documentation for `clear'.
22751 cat >confdef2sed.sed <<\_ACEOF
22756 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22758 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22761 # If some macros were called several times there might be several times
22762 # the same #defines, which is useless. Nevertheless, we may not want to
22763 # sort them, since we want the *last* AC-DEFINE to be honored.
22764 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22765 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22766 rm -f confdef2sed.sed
22768 # This sed command replaces #undef with comments. This is necessary, for
22769 # example, in the case of _POSIX_SOURCE, which is predefined and required
22770 # on some systems where configure will not decide to define it.
22771 cat >>conftest.undefs <<\_ACEOF
22772 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22775 # Break up conftest.defines because some shells have a limit on the size
22776 # of here documents, and old seds have small limits too (100 cmds).
22777 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22778 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22779 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22780 echo ' :' >>$CONFIG_STATUS
22781 rm -f conftest.tail
22782 while grep . conftest.defines >/dev/null
22784 # Write a limited-size here document to $tmp/defines.sed.
22785 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22786 # Speed up: don't consider the non `#define' lines.
22787 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22788 # Work around the forget-to-reset-the-flag bug.
22789 echo 't clr' >>$CONFIG_STATUS
22790 echo ': clr' >>$CONFIG_STATUS
22791 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22793 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22795 mv $tmp/out $tmp/in
22797 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22798 rm -f conftest.defines
22799 mv conftest.tail conftest.defines
22801 rm -f conftest.defines
22802 echo ' fi # grep' >>$CONFIG_STATUS
22803 echo >>$CONFIG_STATUS
22805 # Break up conftest.undefs because some shells have a limit on the size
22806 # of here documents, and old seds have small limits too (100 cmds).
22807 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22808 rm -f conftest.tail
22809 while grep . conftest.undefs >/dev/null
22811 # Write a limited-size here document to $tmp/undefs.sed.
22812 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22813 # Speed up: don't consider the non `#undef'
22814 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22815 # Work around the forget-to-reset-the-flag bug.
22816 echo 't clr' >>$CONFIG_STATUS
22817 echo ': clr' >>$CONFIG_STATUS
22818 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22820 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22822 mv $tmp/out $tmp/in
22824 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22825 rm -f conftest.undefs
22826 mv conftest.tail conftest.undefs
22828 rm -f conftest.undefs
22830 cat >>$CONFIG_STATUS <<\_ACEOF
22831 # Let's still pretend it is `configure' which instantiates (i.e., don't
22832 # use $as_me), people would be surprised to read:
22833 # /* config.h. Generated by config.status. */
22834 if test x"$ac_file" = x-; then
22835 echo "/* Generated by configure. */" >$tmp/config.h
22837 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22839 cat $tmp/in >>$tmp/config.h
22841 if test x"$ac_file" != x-; then
22842 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22843 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22844 echo "$as_me: $ac_file is unchanged" >&6;}
22846 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22847 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22848 X"$ac_file" : 'X\(//\)[^/]' \| \
22849 X"$ac_file" : 'X\(//\)$' \| \
22850 X"$ac_file" : 'X\(/\)' \| \
22851 . : '\(.\)' 2>/dev/null ||
22853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22854 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22855 /^X\(\/\/\)$/{ s//\1/; q; }
22856 /^X\(\/\).*/{ s//\1/; q; }
22858 { if $as_mkdir_p; then
22863 while test ! -d "$as_dir"; do
22864 as_dirs="$as_dir $as_dirs"
22865 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22866 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22867 X"$as_dir" : 'X\(//\)[^/]' \| \
22868 X"$as_dir" : 'X\(//\)$' \| \
22869 X"$as_dir" : 'X\(/\)' \| \
22870 . : '\(.\)' 2>/dev/null ||
22872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22874 /^X\(\/\/\)$/{ s//\1/; q; }
22875 /^X\(\/\).*/{ s//\1/; q; }
22878 test ! -n "$as_dirs" || mkdir $as_dirs
22879 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22880 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22881 { (exit 1); exit 1; }; }; }
22884 mv $tmp/config.h $ac_file
22888 rm -f $tmp/config.h
22892 cat >>$CONFIG_STATUS <<\_ACEOF
22895 # CONFIG_COMMANDS section.
22897 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22898 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22899 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22900 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22901 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22902 X"$ac_dest" : 'X\(//\)[^/]' \| \
22903 X"$ac_dest" : 'X\(//\)$' \| \
22904 X"$ac_dest" : 'X\(/\)' \| \
22905 . : '\(.\)' 2>/dev/null ||
22907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22908 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22909 /^X\(\/\/\)$/{ s//\1/; q; }
22910 /^X\(\/\).*/{ s//\1/; q; }
22912 { if $as_mkdir_p; then
22917 while test ! -d "$as_dir"; do
22918 as_dirs="$as_dir $as_dirs"
22919 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22920 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22921 X"$as_dir" : 'X\(//\)[^/]' \| \
22922 X"$as_dir" : 'X\(//\)$' \| \
22923 X"$as_dir" : 'X\(/\)' \| \
22924 . : '\(.\)' 2>/dev/null ||
22926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22927 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22928 /^X\(\/\/\)$/{ s//\1/; q; }
22929 /^X\(\/\).*/{ s//\1/; q; }
22932 test ! -n "$as_dirs" || mkdir $as_dirs
22933 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22934 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22935 { (exit 1); exit 1; }; }; }
22939 if test "$ac_dir" != .; then
22940 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22941 # A "../" for each directory in $ac_dir_suffix.
22942 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22944 ac_dir_suffix= ac_top_builddir=
22948 .) # No --srcdir option. We are building in place.
22950 if test -z "$ac_top_builddir"; then
22953 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22955 [\\/]* | ?:[\\/]* ) # Absolute path.
22956 ac_srcdir=$srcdir$ac_dir_suffix;
22957 ac_top_srcdir=$srcdir ;;
22958 *) # Relative path.
22959 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22960 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22963 # Do not use `cd foo && pwd` to compute absolute paths, because
22964 # the directories may not exist.
22966 .) ac_abs_builddir="$ac_dir";;
22969 .) ac_abs_builddir=`pwd`;;
22970 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22971 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22974 case $ac_abs_builddir in
22975 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22977 case ${ac_top_builddir}. in
22978 .) ac_abs_top_builddir=$ac_abs_builddir;;
22979 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22980 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22983 case $ac_abs_builddir in
22984 .) ac_abs_srcdir=$ac_srcdir;;
22987 .) ac_abs_srcdir=$ac_abs_builddir;;
22988 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22989 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22992 case $ac_abs_builddir in
22993 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22995 case $ac_top_srcdir in
22996 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22997 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22998 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23003 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23004 echo "$as_me: executing $ac_dest commands" >&6;}
23006 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
23012 cat >>$CONFIG_STATUS <<\_ACEOF
23014 { (exit 0); exit 0; }
23016 chmod +x $CONFIG_STATUS
23017 ac_clean_files=$ac_clean_files_save
23020 # configure is writing to config.log, and then calls config.status.
23021 # config.status does its own redirection, appending to config.log.
23022 # Unfortunately, on DOS this fails, as config.log is still kept open
23023 # by configure, so config.status won't be able to write to it; its
23024 # output is simply discarded. So we exec the FD to /dev/null,
23025 # effectively closing config.log, so it can be properly (re)opened and
23026 # appended to by config.status. When coming back to configure, we
23027 # need to make the FD available again.
23028 if test "$no_create" != yes; then
23030 ac_config_status_args=
23031 test "$silent" = yes &&
23032 ac_config_status_args="$ac_config_status_args --quiet"
23034 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23036 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23037 # would make configure fail if this is the last instruction.
23038 $ac_cs_success || { (exit 1); exit 1; }
23043 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
23044 chmod 755 dvd-writepart dvd-freespace
23045 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
23050 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
23051 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
23053 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
23054 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
23056 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
23057 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
23059 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
23060 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
23062 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
23063 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
23065 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
23066 chmod 755 $c/sqlite
23069 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
23070 largefile_support="yes"
23074 # A whole lot of hand springs to get the compiler version.
23075 # This is because gcc changed the output in version 3.0
23077 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23078 if test "x${CCVERSION}" = "x" ; then
23079 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23081 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23082 if test x"${CXXVERSION}" = x ; then
23083 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23086 if test "x${subsysdir}" = "x${sbindir}" ; then
23089 echo "You have set --sbindir and --with-subsys-dir"
23090 echo " both equal to: ${subsysdir} "
23091 echo " This is not permitted. Please reconfigure."
23093 echo "Aborting configuration ..."
23099 if test "x${db_name}" = "xInternal" ; then
23102 echo "You have not specified either --enable-client-only or one of the"
23103 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
23104 echo " This is not permitted. Please reconfigure."
23106 echo "Aborting the configuration ..."
23113 Configuration on `date`:
23115 Host: $host -- ${DISTNAME} ${DISTVER}
23116 Bacula version: ${VERSION} (${DATE})
23117 Source code location: ${srcdir}
23118 Install binaries: ${sbindir}
23119 Install config files: ${sysconfdir}
23120 Scripts directory: ${scriptdir}
23121 Working directory: ${working_dir}
23122 PID directory: ${piddir}
23123 Subsys directory: ${subsysdir}
23124 Man directory: ${mandir}
23125 C Compiler: ${CC} ${CCVERSION}
23126 C++ Compiler: ${CXX} ${CXXVERSION}
23127 Compiler flags: ${WCFLAGS} ${CFLAGS}
23128 Linker flags: ${WLDFLAGS} ${LDFLAGS}
23130 Statically Linked Tools: ${support_static_tools}
23131 Statically Linked FD: ${support_static_fd}
23132 Statically Linked SD: ${support_static_sd}
23133 Statically Linked DIR: ${support_static_dir}
23134 Statically Linked CONS: ${support_static_cons}
23135 Database type: ${db_name}
23136 Database lib: ${DB_LIBS}
23138 Job Output Email: ${job_email}
23139 Traceback Email: ${dump_email}
23140 SMTP Host Address: ${smtp_host}
23142 Director Port: ${dir_port}
23143 File daemon Port: ${fd_port}
23144 Storage daemon Port: ${sd_port}
23146 Director User: ${dir_user}
23147 Director Group: ${dir_group}
23148 Storage Daemon User: ${sd_user}
23149 Storage DaemonGroup: ${sd_group}
23150 File Daemon User: ${fd_user}
23151 File Daemon Group: ${fd_group}
23153 SQL binaries Directory ${SQL_BINDIR}
23155 Large file support: $largefile_support
23156 Bacula conio support: ${got_conio} ${CONS_LIBS}
23157 readline support: ${got_readline} ${PRTREADLINE_SRC}
23158 TCP Wrappers support: ${TCPW_MSG}
23159 TLS support: ${support_tls}
23160 ZLIB support: ${have_zlib}
23161 enable-smartalloc: ${support_smartalloc}
23162 enable-gnome: ${support_gnome} ${gnome_version}
23163 enable-wx-console: ${support_wx_console} ${wx_version}
23164 enable-tray-monitor: ${support_tray_monitor}
23165 client-only: ${build_client_only}
23166 ACL support: ${have_acl}
23167 Python support: ${support_python} ${PYTHON_LIBS}