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 MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG 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 GNOMEGNORBA_LIBS GTKXMHTML_LIBS ZVT_LIBS GNOME_CONFIG ORBIT_CONFIG ORBIT_IDL HAVE_ORBIT_TRUE HAVE_ORBIT_FALSE ORBIT_CFLAGS ORBIT_LIBS HAVE_GNORBA_TRUE HAVE_GNORBA_FALSE GNORBA_CFLAGS GNORBA_LIBS GNOME_APPLETS_LIBS GNOME_DOCKLETS_LIBS GNOME_CAPPLET_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR CDSTL working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password bimagemgr_cgidir bimagemgr_docdir bimagemgr_binowner bimagemgr_bingroup bimagemgr_dataowner bimagemgr_datagroup dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
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
783 # Report the --help message.
785 if test "$ac_init_help" = "long"; then
786 # Omit some internal or obsolete options to make the list less imposing.
787 # This message is too long to be a string in the A/UX 3.1 sh.
789 \`configure' configures this package to adapt to many kinds of systems.
791 Usage: $0 [OPTION]... [VAR=VALUE]...
793 To assign environment variables (e.g., CC, CFLAGS...), specify them as
794 VAR=VALUE. See below for descriptions of some of the useful variables.
796 Defaults for the options are specified in brackets.
799 -h, --help display this help and exit
800 --help=short display options specific to this package
801 --help=recursive display the short help of all the included packages
802 -V, --version display version information and exit
803 -q, --quiet, --silent do not print \`checking...' messages
804 --cache-file=FILE cache test results in FILE [disabled]
805 -C, --config-cache alias for \`--cache-file=config.cache'
806 -n, --no-create do not create output files
807 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 Installation directories:
813 --prefix=PREFIX install architecture-independent files in PREFIX
815 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
818 By default, \`make install' will install all the files in
819 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
820 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
821 for instance \`--prefix=\$HOME'.
823 For better control, use the options below.
825 Fine tuning of the installation directories:
826 --bindir=DIR user executables [EPREFIX/bin]
827 --sbindir=DIR system admin executables [EPREFIX/sbin]
828 --libexecdir=DIR program executables [EPREFIX/libexec]
829 --datadir=DIR read-only architecture-independent data [PREFIX/share]
830 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
831 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
832 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
833 --libdir=DIR object code libraries [EPREFIX/lib]
834 --includedir=DIR C header files [PREFIX/include]
835 --oldincludedir=DIR C header files for non-gcc [/usr/include]
836 --infodir=DIR info documentation [PREFIX/info]
837 --mandir=DIR man documentation [PREFIX/man]
843 --x-includes=DIR X include files are in DIR
844 --x-libraries=DIR X library files are in DIR
847 --build=BUILD configure for building on BUILD [guessed]
848 --host=HOST cross-compile to build programs to run on HOST [BUILD]
852 if test -n "$ac_init_help"; then
857 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
858 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
859 --enable-gnome enable build of gnome-console GUI disabled
860 --enable-wx-console enable build of wxWidgets console disabled
861 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
862 --enable-smartalloc enable smartalloc debugging support disabled
863 --enable-static-tools enable static tape tools disabled
864 --enable-static-fd enable static File daemon disabled
865 --enable-static-sd enable static Storage daemon disabled
866 --enable-static-dir enable static Director disabled
867 --enable-static-cons enable static Console disabled
868 --enable-client-only build client (File daemon) only disabled
869 --disable-conio disable conio support enabled
871 --disable-readline disable readline support disable
873 --disable-largefile omit support for large files
876 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
877 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
878 --with-gnome-includes Specify location of GNOME headers
879 --with-gnome-libs Specify location of GNOME libs
880 --with-gnome Specify prefix for GNOME files
881 --with-readline=DIR specify readline library directory
883 --with-python=DIR Include Python support. DIR is the Python base
884 install directory, default is to search through
885 a number of common places for the Python files.
886 --with-tcp-wrappers=DIR enable tcpwrappers support
887 --with-working-dir=PATH specify path of Bacula working directory
888 --with-scriptdir=PATH specify path of Bacula scripts directory
889 --with-dump-email=EMAIL dump email address
890 --with-job-email=EMAIL job output email address
891 --with-smtp-host=HOST SMTP mail host address
892 --with-pid-dir=PATH specify location of Bacula pid files
893 --with-subsys-dir=PATH specify location of Bacula subsys file
894 --with-baseport=PORT specify base port address for daemons
895 --with-dir-password=PASSWORD specify Director's password
896 --with-fd-password=PASSWORD specify Client's password
897 --with-sd-password=PASSWORD specify Storage daemon's password
898 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
899 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
900 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
901 --with-bimagemgr-cgidir=DIR specify bimagemgr cgi-bin dir
902 --with-bimagemgr-docdir=DIR specify bimagemgr doc root dir
903 --with-bimagemgr-binowner=USER specify bimagemgr binary file owner
904 --with-bimagemgr-bingroup=USER specify bimagemgr binary file group
905 --with-bimagemgr-dataowner=USER specify bimagemgr data file owner
906 --with-bimagemgr-datagroup=USER specify bimagemgr data file group
907 --with-dir-user=USER specify user for Director daemon
908 --with-dir-group=GROUP specify group for Director daemon
909 --with-sd-user=USER specify user for Storage daemon
910 --with-sd-group=GROUP specify group for Storage daemon
911 --with-fd-user=USER specify user for File daemon
912 --with-fd-group=GROUP specify group for File daemon
913 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
914 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
915 base install directory, defaults to /usr/local/pgsql
917 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
918 install directory, default is to search through
919 a number of common places for the MySQL files.
921 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
922 install directory, default is to search through
923 a number of common places for the MySQL files.
925 --with-sqlite3=DIR Include SQLite3 support. DIR is the SQLite3 base
926 install directory, default is to search through
927 a number of common places for the SQLite3 files.
929 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
930 install directory, default is to search through
931 a number of common places for the SQLite files.
932 --with-x use the X Window System
934 Some influential environment variables:
935 CC C compiler command
936 CFLAGS C compiler flags
937 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
938 nonstandard directory <lib dir>
939 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
940 headers in a nonstandard directory <include dir>
941 CXX C++ compiler command
942 CXXFLAGS C++ compiler flags
945 Use these variables to override the choices made by `configure' or to help
946 it to find libraries and programs with nonstandard names/locations.
951 if test "$ac_init_help" = "recursive"; then
952 # If there are subdirs, report their specific --help.
954 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
955 test -d $ac_dir || continue
958 if test "$ac_dir" != .; then
959 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
960 # A "../" for each directory in $ac_dir_suffix.
961 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
963 ac_dir_suffix= ac_top_builddir=
967 .) # No --srcdir option. We are building in place.
969 if test -z "$ac_top_builddir"; then
972 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
974 [\\/]* | ?:[\\/]* ) # Absolute path.
975 ac_srcdir=$srcdir$ac_dir_suffix;
976 ac_top_srcdir=$srcdir ;;
978 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
979 ac_top_srcdir=$ac_top_builddir$srcdir ;;
982 # Do not use `cd foo && pwd` to compute absolute paths, because
983 # the directories may not exist.
985 .) ac_abs_builddir="$ac_dir";;
988 .) ac_abs_builddir=`pwd`;;
989 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
990 *) ac_abs_builddir=`pwd`/"$ac_dir";;
993 case $ac_abs_builddir in
994 .) ac_abs_top_builddir=${ac_top_builddir}.;;
996 case ${ac_top_builddir}. in
997 .) ac_abs_top_builddir=$ac_abs_builddir;;
998 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
999 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1002 case $ac_abs_builddir in
1003 .) ac_abs_srcdir=$ac_srcdir;;
1006 .) ac_abs_srcdir=$ac_abs_builddir;;
1007 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1008 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1011 case $ac_abs_builddir in
1012 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1014 case $ac_top_srcdir in
1015 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1016 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1017 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1022 # Check for guested configure; otherwise get Cygnus style configure.
1023 if test -f $ac_srcdir/configure.gnu; then
1025 $SHELL $ac_srcdir/configure.gnu --help=recursive
1026 elif test -f $ac_srcdir/configure; then
1028 $SHELL $ac_srcdir/configure --help=recursive
1029 elif test -f $ac_srcdir/configure.ac ||
1030 test -f $ac_srcdir/configure.in; then
1032 $ac_configure --help
1034 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1040 test -n "$ac_init_help" && exit 0
1041 if $ac_init_version; then
1044 Copyright (C) 2003 Free Software Foundation, Inc.
1045 This configure script is free software; the Free Software Foundation
1046 gives unlimited permission to copy, distribute and modify it.
1052 This file contains any messages produced by compilers while
1053 running configure, to aid debugging if configure makes a mistake.
1055 It was created by $as_me, which was
1056 generated by GNU Autoconf 2.59. Invocation command line was
1067 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1068 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1069 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1070 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1071 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1073 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1074 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1076 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1077 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1078 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1079 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1080 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1081 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1082 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1090 test -z "$as_dir" && as_dir=.
1091 echo "PATH: $as_dir"
1106 # Keep a trace of the command line.
1107 # Strip out --no-create and --no-recursion so they do not pile up.
1108 # Strip out --silent because we don't want to record it for future runs.
1109 # Also quote any args containing shell meta-characters.
1110 # Make two passes to allow for proper duplicate-argument suppression.
1115 ac_must_keep_next=false
1121 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1125 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1126 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1129 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1131 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1132 if test $ac_must_keep_next = true; then
1133 ac_must_keep_next=false # Got value, back to normal.
1136 *=* | --config-cache | -C | -disable-* | --disable-* \
1137 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1138 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1139 | -with-* | --with-* | -without-* | --without-* | --x)
1140 case "$ac_configure_args0 " in
1141 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1144 -* ) ac_must_keep_next=true ;;
1147 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1148 # Get rid of the leading space.
1154 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1155 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1157 # When interrupted or exit'd, cleanup temporary files, and complete
1158 # config.log. We remove comments because anyway the quotes in there
1159 # would cause problems or look ugly.
1160 # WARNING: Be sure not to use single quotes in there, as some shells,
1161 # such as our DU 5.0 friend, will then `close' the trap.
1162 trap 'exit_status=$?
1163 # Save into config.log some information that might help in debugging.
1168 ## ---------------- ##
1169 ## Cache variables. ##
1170 ## ---------------- ##
1173 # The following way of writing the cache mishandles newlines in values,
1176 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1179 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1180 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1184 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1191 ## ----------------- ##
1192 ## Output variables. ##
1193 ## ----------------- ##
1196 for ac_var in $ac_subst_vars
1198 eval ac_val=$`echo $ac_var`
1199 echo "$ac_var='"'"'$ac_val'"'"'"
1203 if test -n "$ac_subst_files"; then
1210 for ac_var in $ac_subst_files
1212 eval ac_val=$`echo $ac_var`
1213 echo "$ac_var='"'"'$ac_val'"'"'"
1218 if test -s confdefs.h; then
1225 sed "/^$/d" confdefs.h | sort
1228 test "$ac_signal" != 0 &&
1229 echo "$as_me: caught signal $ac_signal"
1230 echo "$as_me: exit $exit_status"
1232 rm -f core *.core &&
1233 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1236 for ac_signal in 1 2 13 15; do
1237 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1241 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1242 rm -rf conftest* confdefs.h
1243 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1246 # Predefined preprocessor variables.
1248 cat >>confdefs.h <<_ACEOF
1249 #define PACKAGE_NAME "$PACKAGE_NAME"
1253 cat >>confdefs.h <<_ACEOF
1254 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1258 cat >>confdefs.h <<_ACEOF
1259 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1263 cat >>confdefs.h <<_ACEOF
1264 #define PACKAGE_STRING "$PACKAGE_STRING"
1268 cat >>confdefs.h <<_ACEOF
1269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1273 # Let the site file select an alternate cache file if it wants to.
1274 # Prefer explicitly selected file to automatically selected ones.
1275 if test -z "$CONFIG_SITE"; then
1276 if test "x$prefix" != xNONE; then
1277 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1279 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1282 for ac_site_file in $CONFIG_SITE; do
1283 if test -r "$ac_site_file"; then
1284 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1285 echo "$as_me: loading site script $ac_site_file" >&6;}
1286 sed 's/^/| /' "$ac_site_file" >&5
1291 if test -r "$cache_file"; then
1292 # Some versions of bash will fail to source /dev/null (special
1293 # files actually), so we avoid doing that.
1294 if test -f "$cache_file"; then
1295 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1296 echo "$as_me: loading cache $cache_file" >&6;}
1298 [\\/]* | ?:[\\/]* ) . $cache_file;;
1299 *) . ./$cache_file;;
1303 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1304 echo "$as_me: creating cache $cache_file" >&6;}
1308 # Check that the precious variables saved in the cache have kept the same
1310 ac_cache_corrupted=false
1311 for ac_var in `(set) 2>&1 |
1312 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1313 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1314 eval ac_new_set=\$ac_env_${ac_var}_set
1315 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1316 eval ac_new_val="\$ac_env_${ac_var}_value"
1317 case $ac_old_set,$ac_new_set in
1319 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1320 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1321 ac_cache_corrupted=: ;;
1323 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1325 ac_cache_corrupted=: ;;
1328 if test "x$ac_old_val" != "x$ac_new_val"; then
1329 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1330 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1331 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1332 echo "$as_me: former value: $ac_old_val" >&2;}
1333 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1334 echo "$as_me: current value: $ac_new_val" >&2;}
1335 ac_cache_corrupted=:
1338 # Pass precious variables to config.status.
1339 if test "$ac_new_set" = set; then
1341 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1342 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1343 *) ac_arg=$ac_var=$ac_new_val ;;
1345 case " $ac_configure_args " in
1346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1347 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1351 if $ac_cache_corrupted; then
1352 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1353 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1354 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1355 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1356 { (exit 1); exit 1; }; }
1360 ac_cpp='$CPP $CPPFLAGS'
1361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1389 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1390 if test -f $ac_dir/install-sh; then
1392 ac_install_sh="$ac_aux_dir/install-sh -c"
1394 elif test -f $ac_dir/install.sh; then
1396 ac_install_sh="$ac_aux_dir/install.sh -c"
1398 elif test -f $ac_dir/shtool; then
1400 ac_install_sh="$ac_aux_dir/shtool install -c"
1404 if test -z "$ac_aux_dir"; then
1405 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1406 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1407 { (exit 1); exit 1; }; }
1409 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1410 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1411 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1413 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1421 # Extract the first word of "$ac_prog", so it can be a program name with args.
1422 set dummy $ac_prog; ac_word=$2
1423 echo "$as_me:$LINENO: checking for $ac_word" >&5
1424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1425 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1426 echo $ECHO_N "(cached) $ECHO_C" >&6
1430 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1437 test -z "$as_dir" && as_dir=.
1438 for ac_exec_ext in '' $ac_executable_extensions; do
1439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1440 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1450 TRUEPRG=$ac_cv_path_TRUEPRG
1452 if test -n "$TRUEPRG"; then
1453 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1454 echo "${ECHO_T}$TRUEPRG" >&6
1456 echo "$as_me:$LINENO: result: no" >&5
1457 echo "${ECHO_T}no" >&6
1460 test -n "$TRUEPRG" && break
1462 test -n "$TRUEPRG" || TRUEPRG=":"
1464 for ac_prog in false
1466 # Extract the first word of "$ac_prog", so it can be a program name with args.
1467 set dummy $ac_prog; ac_word=$2
1468 echo "$as_me:$LINENO: checking for $ac_word" >&5
1469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1470 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1471 echo $ECHO_N "(cached) $ECHO_C" >&6
1475 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 test -z "$as_dir" && as_dir=.
1483 for ac_exec_ext in '' $ac_executable_extensions; do
1484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1485 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495 FALSEPRG=$ac_cv_path_FALSEPRG
1497 if test -n "$FALSEPRG"; then
1498 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1499 echo "${ECHO_T}$FALSEPRG" >&6
1501 echo "$as_me:$LINENO: result: no" >&5
1502 echo "${ECHO_T}no" >&6
1505 test -n "$FALSEPRG" && break
1507 test -n "$FALSEPRG" || FALSEPRG=":"
1512 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1513 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1514 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1515 echo "configuring for bacula $VERSION ($DATE)"
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524 if test -n "$ac_tool_prefix"; then
1525 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_CC+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 if test -n "$CC"; then
1533 ac_cv_prog_CC="$CC" # Let the user override the test.
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539 test -z "$as_dir" && as_dir=.
1540 for ac_exec_ext in '' $ac_executable_extensions; do
1541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1552 if test -n "$CC"; then
1553 echo "$as_me:$LINENO: result: $CC" >&5
1554 echo "${ECHO_T}$CC" >&6
1556 echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1561 if test -z "$ac_cv_prog_CC"; then
1563 # Extract the first word of "gcc", so it can be a program name with args.
1564 set dummy gcc; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 if test -n "$ac_ct_CC"; then
1571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1577 test -z "$as_dir" && as_dir=.
1578 for ac_exec_ext in '' $ac_executable_extensions; do
1579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580 ac_cv_prog_ac_ct_CC="gcc"
1581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1590 if test -n "$ac_ct_CC"; then
1591 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1592 echo "${ECHO_T}$ac_ct_CC" >&6
1594 echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1603 if test -z "$CC"; then
1604 if test -n "$ac_tool_prefix"; then
1605 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1606 set dummy ${ac_tool_prefix}cc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_CC+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 if test -n "$CC"; then
1613 ac_cv_prog_CC="$CC" # Let the user override the test.
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 test -z "$as_dir" && as_dir=.
1620 for ac_exec_ext in '' $ac_executable_extensions; do
1621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622 ac_cv_prog_CC="${ac_tool_prefix}cc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632 if test -n "$CC"; then
1633 echo "$as_me:$LINENO: result: $CC" >&5
1634 echo "${ECHO_T}$CC" >&6
1636 echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1641 if test -z "$ac_cv_prog_CC"; then
1643 # Extract the first word of "cc", so it can be a program name with args.
1644 set dummy cc; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1650 if test -n "$ac_ct_CC"; then
1651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 test -z "$as_dir" && as_dir=.
1658 for ac_exec_ext in '' $ac_executable_extensions; do
1659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660 ac_cv_prog_ac_ct_CC="cc"
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1674 echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1684 if test -z "$CC"; then
1685 # Extract the first word of "cc", so it can be a program name with args.
1686 set dummy cc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 if test -n "$CC"; then
1693 ac_cv_prog_CC="$CC" # Let the user override the test.
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1704 ac_prog_rejected=yes
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 if test $ac_prog_rejected = yes; then
1715 # We found a bogon in the path, so make sure we never use it.
1716 set dummy $ac_cv_prog_CC
1718 if test $# != 0; then
1719 # We chose a different compiler from the bogus one.
1720 # However, it has the same basename, so the bogon will be chosen
1721 # first if we set CC to just the basename; use the full file name.
1723 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1729 if test -n "$CC"; then
1730 echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1738 if test -z "$CC"; then
1739 if test -n "$ac_tool_prefix"; then
1742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1744 echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746 if test "${ac_cv_prog_CC+set}" = set; then
1747 echo $ECHO_N "(cached) $ECHO_C" >&6
1749 if test -n "$CC"; then
1750 ac_cv_prog_CC="$CC" # Let the user override the test.
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 test -z "$as_dir" && as_dir=.
1757 for ac_exec_ext in '' $ac_executable_extensions; do
1758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769 if test -n "$CC"; then
1770 echo "$as_me:$LINENO: result: $CC" >&5
1771 echo "${ECHO_T}$CC" >&6
1773 echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1777 test -n "$CC" && break
1780 if test -z "$CC"; then
1784 # Extract the first word of "$ac_prog", so it can be a program name with args.
1785 set dummy $ac_prog; ac_word=$2
1786 echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1789 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 if test -n "$ac_ct_CC"; then
1792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 test -z "$as_dir" && as_dir=.
1799 for ac_exec_ext in '' $ac_executable_extensions; do
1800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801 ac_cv_prog_ac_ct_CC="$ac_prog"
1802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1811 if test -n "$ac_ct_CC"; then
1812 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1813 echo "${ECHO_T}$ac_ct_CC" >&6
1815 echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1819 test -n "$ac_ct_CC" && break
1828 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: no acceptable C compiler found in \$PATH
1831 See \`config.log' for more details." >&2;}
1832 { (exit 1); exit 1; }; }
1834 # Provide some information about the compiler.
1835 echo "$as_me:$LINENO:" \
1836 "checking for C compiler version" >&5
1837 ac_compiler=`set X $ac_compile; echo $2`
1838 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1839 (eval $ac_compiler --version </dev/null >&5) 2>&5
1841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842 (exit $ac_status); }
1843 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1844 (eval $ac_compiler -v </dev/null >&5) 2>&5
1846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847 (exit $ac_status); }
1848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1849 (eval $ac_compiler -V </dev/null >&5) 2>&5
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }
1854 cat >conftest.$ac_ext <<_ACEOF
1857 cat confdefs.h >>conftest.$ac_ext
1858 cat >>conftest.$ac_ext <<_ACEOF
1859 /* end confdefs.h. */
1869 ac_clean_files_save=$ac_clean_files
1870 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1871 # Try to create an executable without -o first, disregard a.out.
1872 # It will help us diagnose broken compilers, and finding out an intuition
1874 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1875 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1876 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1877 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1878 (eval $ac_link_default) 2>&5
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); }; then
1882 # Find the output, starting from the most likely. This scheme is
1883 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1886 # Be careful to initialize this variable, since it used to be cached.
1887 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1889 # b.out is created by i960 compilers.
1890 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1892 test -f "$ac_file" || continue
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1897 # This is the source file.
1900 # We found the default executable, but exeext='' is most
1904 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1905 # FIXME: I believe we export ac_cv_exeext for Libtool,
1906 # but it would be cool to find out if it's true. Does anybody
1907 # maintain Libtool? --akim.
1915 echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1918 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&2;}
1922 { (exit 77); exit 77; }; }
1925 ac_exeext=$ac_cv_exeext
1926 echo "$as_me:$LINENO: result: $ac_file" >&5
1927 echo "${ECHO_T}$ac_file" >&6
1929 # Check the compiler produces executables we can run. If not, either
1930 # the compiler is broken, or we cross compile.
1931 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1932 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1933 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1934 # If not cross compiling, check that we can run a simple program.
1935 if test "$cross_compiling" != yes; then
1936 if { ac_try='./$ac_file'
1937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; }; then
1944 if test "$cross_compiling" = maybe; then
1947 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1948 If you meant to cross compile, use \`--host'.
1949 See \`config.log' for more details." >&5
1950 echo "$as_me: error: cannot run C compiled programs.
1951 If you meant to cross compile, use \`--host'.
1952 See \`config.log' for more details." >&2;}
1953 { (exit 1); exit 1; }; }
1957 echo "$as_me:$LINENO: result: yes" >&5
1958 echo "${ECHO_T}yes" >&6
1960 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1961 ac_clean_files=$ac_clean_files_save
1962 # Check the compiler produces executables we can run. If not, either
1963 # the compiler is broken, or we cross compile.
1964 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1965 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1966 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1967 echo "${ECHO_T}$cross_compiling" >&6
1969 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1970 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1972 (eval $ac_link) 2>&5
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975 (exit $ac_status); }; then
1976 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1977 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1978 # work properly (i.e., refer to `conftest.exe'), while it won't with
1980 for ac_file in conftest.exe conftest conftest.*; do
1981 test -f "$ac_file" || continue
1983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1991 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1992 See \`config.log' for more details." >&5
1993 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&2;}
1995 { (exit 1); exit 1; }; }
1998 rm -f conftest$ac_cv_exeext
1999 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2000 echo "${ECHO_T}$ac_cv_exeext" >&6
2002 rm -f conftest.$ac_ext
2003 EXEEXT=$ac_cv_exeext
2005 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2006 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2007 if test "${ac_cv_objext+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 cat >conftest.$ac_ext <<_ACEOF
2013 cat confdefs.h >>conftest.$ac_ext
2014 cat >>conftest.$ac_ext <<_ACEOF
2015 /* end confdefs.h. */
2025 rm -f conftest.o conftest.obj
2026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027 (eval $ac_compile) 2>&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; then
2031 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2034 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2039 echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2042 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2043 See \`config.log' for more details." >&5
2044 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2045 See \`config.log' for more details." >&2;}
2046 { (exit 1); exit 1; }; }
2049 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2051 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2052 echo "${ECHO_T}$ac_cv_objext" >&6
2053 OBJEXT=$ac_cv_objext
2055 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2056 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2057 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 cat >conftest.$ac_ext <<_ACEOF
2063 cat confdefs.h >>conftest.$ac_ext
2064 cat >>conftest.$ac_ext <<_ACEOF
2065 /* end confdefs.h. */
2078 rm -f conftest.$ac_objext
2079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080 (eval $ac_compile) 2>conftest.er1
2082 grep -v '^ *+' conftest.er1 >conftest.err
2084 cat conftest.err >&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); } &&
2087 { ac_try='test -z "$ac_c_werror_flag"
2088 || test ! -s conftest.err'
2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; } &&
2094 { ac_try='test -s conftest.$ac_objext'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; }; then
2102 echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.$ac_ext >&5
2107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2108 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2111 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2112 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2113 GCC=`test $ac_compiler_gnu = yes && echo yes`
2114 ac_test_CFLAGS=${CFLAGS+set}
2115 ac_save_CFLAGS=$CFLAGS
2117 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2118 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2119 if test "${ac_cv_prog_cc_g+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 cat >conftest.$ac_ext <<_ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h. */
2137 rm -f conftest.$ac_objext
2138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2139 (eval $ac_compile) 2>conftest.er1
2141 grep -v '^ *+' conftest.er1 >conftest.err
2143 cat conftest.err >&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); } &&
2146 { ac_try='test -z "$ac_c_werror_flag"
2147 || test ! -s conftest.err'
2148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; } &&
2153 { ac_try='test -s conftest.$ac_objext'
2154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; }; then
2161 echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.$ac_ext >&5
2166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2168 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2169 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2170 if test "$ac_test_CFLAGS" = set; then
2171 CFLAGS=$ac_save_CFLAGS
2172 elif test $ac_cv_prog_cc_g = yes; then
2173 if test "$GCC" = yes; then
2179 if test "$GCC" = yes; then
2185 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2186 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2187 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 ac_cv_prog_cc_stdc=no
2192 cat >conftest.$ac_ext <<_ACEOF
2195 cat confdefs.h >>conftest.$ac_ext
2196 cat >>conftest.$ac_ext <<_ACEOF
2197 /* end confdefs.h. */
2200 #include <sys/types.h>
2201 #include <sys/stat.h>
2202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2203 struct buf { int x; };
2204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2205 static char *e (p, i)
2211 static char *f (char * (*g) (char **, int), char **p, ...)
2216 s = g (p, va_arg (v,int));
2221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2222 function prototypes and stuff, but not '\xHH' hex character constants.
2223 These don't provoke an error unfortunately, instead are silently treated
2224 as 'x'. The following induces an error, until -std1 is added to get
2225 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2226 array size at least. It's necessary to write '\x00'==0 to get something
2227 that's true only with -std1. */
2228 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2230 int test (int i, double x);
2231 struct s1 {int (*f) (int a);};
2232 struct s2 {int (*f) (double a);};
2233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2239 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2244 # Don't try gcc -ansi; that turns off useful extensions and
2245 # breaks some systems' header files.
2246 # AIX -qlanglvl=ansi
2247 # Ultrix and OSF/1 -std1
2248 # HP-UX 10.20 and later -Ae
2249 # HP-UX older versions -Aa -D_HPUX_SOURCE
2250 # SVR4 -Xc -D__EXTENSIONS__
2251 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2253 CC="$ac_save_CC $ac_arg"
2254 rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>conftest.er1
2258 grep -v '^ *+' conftest.er1 >conftest.err
2260 cat conftest.err >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); } &&
2263 { ac_try='test -z "$ac_c_werror_flag"
2264 || test ! -s conftest.err'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; } &&
2270 { ac_try='test -s conftest.$ac_objext'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; }; then
2276 ac_cv_prog_cc_stdc=$ac_arg
2279 echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2283 rm -f conftest.err conftest.$ac_objext
2285 rm -f conftest.$ac_ext conftest.$ac_objext
2290 case "x$ac_cv_prog_cc_stdc" in
2292 echo "$as_me:$LINENO: result: none needed" >&5
2293 echo "${ECHO_T}none needed" >&6 ;;
2295 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2296 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2297 CC="$CC $ac_cv_prog_cc_stdc" ;;
2300 # Some people use a C++ compiler to compile C. Since we use `exit',
2301 # in C++ we need to declare it. In case someone uses the same compiler
2302 # for both compiling C and C++ we need to have the C++ compiler decide
2303 # the declaration of exit, since it's the most demanding environment.
2304 cat >conftest.$ac_ext <<_ACEOF
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>conftest.er1
2313 grep -v '^ *+' conftest.er1 >conftest.err
2315 cat conftest.err >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
2318 { ac_try='test -z "$ac_c_werror_flag"
2319 || test ! -s conftest.err'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; } &&
2325 { ac_try='test -s conftest.$ac_objext'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2331 for ac_declaration in \
2333 'extern "C" void std::exit (int) throw (); using std::exit;' \
2334 'extern "C" void std::exit (int); using std::exit;' \
2335 'extern "C" void exit (int) throw ();' \
2336 'extern "C" void exit (int);' \
2339 cat >conftest.$ac_ext <<_ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h. */
2355 rm -f conftest.$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>conftest.er1
2359 grep -v '^ *+' conftest.er1 >conftest.err
2361 cat conftest.err >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try='test -z "$ac_c_werror_flag"
2365 || test ! -s conftest.err'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; } &&
2371 { ac_try='test -s conftest.$ac_objext'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385 cat >conftest.$ac_ext <<_ACEOF
2388 cat confdefs.h >>conftest.$ac_ext
2389 cat >>conftest.$ac_ext <<_ACEOF
2390 /* end confdefs.h. */
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2404 grep -v '^ *+' conftest.er1 >conftest.err
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try='test -z "$ac_c_werror_flag"
2410 || test ! -s conftest.err'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try='test -s conftest.$ac_objext'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2431 if test -n "$ac_declaration"; then
2432 echo '#ifdef __cplusplus' >>confdefs.h
2433 echo $ac_declaration >>confdefs.h
2434 echo '#endif' >>confdefs.h
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2444 ac_cpp='$CPP $CPPFLAGS'
2445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450 ac_cpp='$CXXCPP $CPPFLAGS'
2451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2454 if test -n "$ac_tool_prefix"; then
2455 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2457 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2458 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2459 echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2461 if test "${ac_cv_prog_CXX+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2464 if test -n "$CXX"; then
2465 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2474 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 if test -n "$CXX"; then
2485 echo "$as_me:$LINENO: result: $CXX" >&5
2486 echo "${ECHO_T}$CXX" >&6
2488 echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6
2492 test -n "$CXX" && break
2495 if test -z "$CXX"; then
2497 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2499 # Extract the first word of "$ac_prog", so it can be a program name with args.
2500 set dummy $ac_prog; ac_word=$2
2501 echo "$as_me:$LINENO: checking for $ac_word" >&5
2502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2503 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2504 echo $ECHO_N "(cached) $ECHO_C" >&6
2506 if test -n "$ac_ct_CXX"; then
2507 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 test -z "$as_dir" && as_dir=.
2514 for ac_exec_ext in '' $ac_executable_extensions; do
2515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2516 ac_cv_prog_ac_ct_CXX="$ac_prog"
2517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2525 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2526 if test -n "$ac_ct_CXX"; then
2527 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2528 echo "${ECHO_T}$ac_ct_CXX" >&6
2530 echo "$as_me:$LINENO: result: no" >&5
2531 echo "${ECHO_T}no" >&6
2534 test -n "$ac_ct_CXX" && break
2536 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2542 # Provide some information about the compiler.
2543 echo "$as_me:$LINENO:" \
2544 "checking for C++ compiler version" >&5
2545 ac_compiler=`set X $ac_compile; echo $2`
2546 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2547 (eval $ac_compiler --version </dev/null >&5) 2>&5
2549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2550 (exit $ac_status); }
2551 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2552 (eval $ac_compiler -v </dev/null >&5) 2>&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); }
2556 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2557 (eval $ac_compiler -V </dev/null >&5) 2>&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }
2562 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2563 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2564 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2565 echo $ECHO_N "(cached) $ECHO_C" >&6
2567 cat >conftest.$ac_ext <<_ACEOF
2570 cat confdefs.h >>conftest.$ac_ext
2571 cat >>conftest.$ac_ext <<_ACEOF
2572 /* end confdefs.h. */
2585 rm -f conftest.$ac_objext
2586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587 (eval $ac_compile) 2>conftest.er1
2589 grep -v '^ *+' conftest.er1 >conftest.err
2591 cat conftest.err >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); } &&
2594 { ac_try='test -z "$ac_cxx_werror_flag"
2595 || test ! -s conftest.err'
2596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; } &&
2601 { ac_try='test -s conftest.$ac_objext'
2602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); }; }; then
2609 echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2614 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2615 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2618 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2619 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2620 GXX=`test $ac_compiler_gnu = yes && echo yes`
2621 ac_test_CXXFLAGS=${CXXFLAGS+set}
2622 ac_save_CXXFLAGS=$CXXFLAGS
2624 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2625 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2626 if test "${ac_cv_prog_cxx_g+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 cat >conftest.$ac_ext <<_ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2644 rm -f conftest.$ac_objext
2645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2646 (eval $ac_compile) 2>conftest.er1
2648 grep -v '^ *+' conftest.er1 >conftest.err
2650 cat conftest.err >&5
2651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2652 (exit $ac_status); } &&
2653 { ac_try='test -z "$ac_cxx_werror_flag"
2654 || test ! -s conftest.err'
2655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; } &&
2660 { ac_try='test -s conftest.$ac_objext'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2666 ac_cv_prog_cxx_g=yes
2668 echo "$as_me: failed program was:" >&5
2669 sed 's/^/| /' conftest.$ac_ext >&5
2673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2675 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2676 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2677 if test "$ac_test_CXXFLAGS" = set; then
2678 CXXFLAGS=$ac_save_CXXFLAGS
2679 elif test $ac_cv_prog_cxx_g = yes; then
2680 if test "$GXX" = yes; then
2686 if test "$GXX" = yes; then
2692 for ac_declaration in \
2694 'extern "C" void std::exit (int) throw (); using std::exit;' \
2695 'extern "C" void std::exit (int); using std::exit;' \
2696 'extern "C" void exit (int) throw ();' \
2697 'extern "C" void exit (int);' \
2700 cat >conftest.$ac_ext <<_ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2716 rm -f conftest.$ac_objext
2717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2718 (eval $ac_compile) 2>conftest.er1
2720 grep -v '^ *+' conftest.er1 >conftest.err
2722 cat conftest.err >&5
2723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724 (exit $ac_status); } &&
2725 { ac_try='test -z "$ac_cxx_werror_flag"
2726 || test ! -s conftest.err'
2727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; } &&
2732 { ac_try='test -s conftest.$ac_objext'
2733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2737 (exit $ac_status); }; }; then
2740 echo "$as_me: failed program was:" >&5
2741 sed 's/^/| /' conftest.$ac_ext >&5
2745 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2746 cat >conftest.$ac_ext <<_ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h. */
2761 rm -f conftest.$ac_objext
2762 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2763 (eval $ac_compile) 2>conftest.er1
2765 grep -v '^ *+' conftest.er1 >conftest.err
2767 cat conftest.err >&5
2768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2769 (exit $ac_status); } &&
2770 { ac_try='test -z "$ac_cxx_werror_flag"
2771 || test ! -s conftest.err'
2772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; } &&
2777 { ac_try='test -s conftest.$ac_objext'
2778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; }; then
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2789 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2792 if test -n "$ac_declaration"; then
2793 echo '#ifdef __cplusplus' >>confdefs.h
2794 echo $ac_declaration >>confdefs.h
2795 echo '#endif' >>confdefs.h
2799 ac_cpp='$CPP $CPPFLAGS'
2800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2804 if test "x$CC" != xcc; then
2805 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2806 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2808 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2809 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2811 set dummy $CC; ac_cc=`echo $2 |
2812 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2813 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2814 echo $ECHO_N "(cached) $ECHO_C" >&6
2816 cat >conftest.$ac_ext <<_ACEOF
2819 cat confdefs.h >>conftest.$ac_ext
2820 cat >>conftest.$ac_ext <<_ACEOF
2821 /* end confdefs.h. */
2831 # Make sure it works both with $CC and with simple cc.
2832 # We do the test twice because some compilers refuse to overwrite an
2833 # existing .o file with -o, though they will create one.
2834 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2835 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2839 (exit $ac_status); } &&
2840 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2844 (exit $ac_status); };
2846 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2847 if test "x$CC" != xcc; then
2848 # Test first that cc exists at all.
2849 if { ac_try='cc -c conftest.$ac_ext >&5'
2850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; }; then
2855 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2856 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); } &&
2861 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); };
2870 # cc exists but doesn't like -o.
2871 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2876 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2881 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2882 echo "$as_me:$LINENO: result: yes" >&5
2883 echo "${ECHO_T}yes" >&6
2885 echo "$as_me:$LINENO: result: no" >&5
2886 echo "${ECHO_T}no" >&6
2888 cat >>confdefs.h <<\_ACEOF
2889 #define NO_MINUS_C_MINUS_O 1
2895 ac_cpp='$CPP $CPPFLAGS'
2896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2899 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2900 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2901 # On Suns, sometimes $CPP names a directory.
2902 if test -n "$CPP" && test -d "$CPP"; then
2905 if test -z "$CPP"; then
2906 if test "${ac_cv_prog_CPP+set}" = set; then
2907 echo $ECHO_N "(cached) $ECHO_C" >&6
2909 # Double quotes because CPP needs to be expanded
2910 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2913 for ac_c_preproc_warn_flag in '' yes
2915 # Use a header file that comes with gcc, so configuring glibc
2916 # with a fresh cross-compiler works.
2917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2918 # <limits.h> exists even on freestanding compilers.
2919 # On the NeXT, cc -E runs the code through the compiler's parser,
2920 # not just through cpp. "Syntax error" is here to catch this case.
2921 cat >conftest.$ac_ext <<_ACEOF
2924 cat confdefs.h >>conftest.$ac_ext
2925 cat >>conftest.$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2928 # include <limits.h>
2930 # include <assert.h>
2934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2935 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2937 grep -v '^ *+' conftest.er1 >conftest.err
2939 cat conftest.err >&5
2940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } >/dev/null; then
2942 if test -s conftest.err; then
2943 ac_cpp_err=$ac_c_preproc_warn_flag
2944 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2951 if test -z "$ac_cpp_err"; then
2954 echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2957 # Broken: fails on valid input.
2960 rm -f conftest.err conftest.$ac_ext
2962 # OK, works on sane cases. Now check whether non-existent headers
2963 # can be detected and how.
2964 cat >conftest.$ac_ext <<_ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2970 #include <ac_nonexistent.h>
2972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2975 grep -v '^ *+' conftest.er1 >conftest.err
2977 cat conftest.err >&5
2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979 (exit $ac_status); } >/dev/null; then
2980 if test -s conftest.err; then
2981 ac_cpp_err=$ac_c_preproc_warn_flag
2982 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2989 if test -z "$ac_cpp_err"; then
2990 # Broken: success on invalid input.
2993 echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.$ac_ext >&5
2996 # Passes both tests.
3000 rm -f conftest.err conftest.$ac_ext
3003 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3004 rm -f conftest.err conftest.$ac_ext
3005 if $ac_preproc_ok; then
3017 echo "$as_me:$LINENO: result: $CPP" >&5
3018 echo "${ECHO_T}$CPP" >&6
3020 for ac_c_preproc_warn_flag in '' yes
3022 # Use a header file that comes with gcc, so configuring glibc
3023 # with a fresh cross-compiler works.
3024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3025 # <limits.h> exists even on freestanding compilers.
3026 # On the NeXT, cc -E runs the code through the compiler's parser,
3027 # not just through cpp. "Syntax error" is here to catch this case.
3028 cat >conftest.$ac_ext <<_ACEOF
3031 cat confdefs.h >>conftest.$ac_ext
3032 cat >>conftest.$ac_ext <<_ACEOF
3033 /* end confdefs.h. */
3035 # include <limits.h>
3037 # include <assert.h>
3041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3044 grep -v '^ *+' conftest.er1 >conftest.err
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } >/dev/null; then
3049 if test -s conftest.err; then
3050 ac_cpp_err=$ac_c_preproc_warn_flag
3051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3058 if test -z "$ac_cpp_err"; then
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3064 # Broken: fails on valid input.
3067 rm -f conftest.err conftest.$ac_ext
3069 # OK, works on sane cases. Now check whether non-existent headers
3070 # can be detected and how.
3071 cat >conftest.$ac_ext <<_ACEOF
3074 cat confdefs.h >>conftest.$ac_ext
3075 cat >>conftest.$ac_ext <<_ACEOF
3076 /* end confdefs.h. */
3077 #include <ac_nonexistent.h>
3079 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3082 grep -v '^ *+' conftest.er1 >conftest.err
3084 cat conftest.err >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } >/dev/null; then
3087 if test -s conftest.err; then
3088 ac_cpp_err=$ac_c_preproc_warn_flag
3089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3096 if test -z "$ac_cpp_err"; then
3097 # Broken: success on invalid input.
3100 echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3103 # Passes both tests.
3107 rm -f conftest.err conftest.$ac_ext
3110 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3111 rm -f conftest.err conftest.$ac_ext
3112 if $ac_preproc_ok; then
3115 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3116 See \`config.log' for more details." >&5
3117 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3118 See \`config.log' for more details." >&2;}
3119 { (exit 1); exit 1; }; }
3123 ac_cpp='$CPP $CPPFLAGS'
3124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129 echo "$as_me:$LINENO: checking for egrep" >&5
3130 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3131 if test "${ac_cv_prog_egrep+set}" = set; then
3132 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3135 then ac_cv_prog_egrep='grep -E'
3136 else ac_cv_prog_egrep='egrep'
3139 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3140 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3141 EGREP=$ac_cv_prog_egrep
3144 if test $ac_cv_c_compiler_gnu = yes; then
3145 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3146 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3147 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3148 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 ac_pattern="Autoconf.*'x'"
3151 cat >conftest.$ac_ext <<_ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3160 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3161 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3162 ac_cv_prog_gcc_traditional=yes
3164 ac_cv_prog_gcc_traditional=no
3169 if test $ac_cv_prog_gcc_traditional = no; then
3170 cat >conftest.$ac_ext <<_ACEOF
3173 cat confdefs.h >>conftest.$ac_ext
3174 cat >>conftest.$ac_ext <<_ACEOF
3175 /* end confdefs.h. */
3179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3180 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3181 ac_cv_prog_gcc_traditional=yes
3187 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3188 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3189 if test $ac_cv_prog_gcc_traditional = yes; then
3190 CC="$CC -traditional"
3194 if test "x$CC" = xgcc
3196 cat >>confdefs.h <<\_ACEOF
3202 # Find a good install program. We prefer a C program (faster),
3203 # so one script is as good as another. But avoid the broken or
3204 # incompatible versions:
3205 # SysV /etc/install, /usr/sbin/install
3206 # SunOS /usr/etc/install
3207 # IRIX /sbin/install
3209 # AmigaOS /C/install, which installs bootblocks on floppy discs
3210 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3211 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3212 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3213 # OS/2's system install, which has a completely different semantic
3214 # ./install, which can be erroneously created by make from ./install.sh.
3215 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3216 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3217 if test -z "$INSTALL"; then
3218 if test "${ac_cv_path_install+set}" = set; then
3219 echo $ECHO_N "(cached) $ECHO_C" >&6
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 test -z "$as_dir" && as_dir=.
3226 # Account for people who put trailing slashes in PATH elements.
3228 ./ | .// | /cC/* | \
3229 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3230 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3233 # OSF1 and SCO ODT 3.0 have their own names for install.
3234 # Don't use installbsd from OSF since it installs stuff as root
3236 for ac_prog in ginstall scoinst install; do
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3239 if test $ac_prog = install &&
3240 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3241 # AIX install. It has an incompatible calling convention.
3243 elif test $ac_prog = install &&
3244 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3245 # program-specific install script used by HP pwplus--don't use.
3248 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3260 if test "${ac_cv_path_install+set}" = set; then
3261 INSTALL=$ac_cv_path_install
3263 # As a last resort, use the slow shell script. We don't cache a
3264 # path for INSTALL within a source directory, because that will
3265 # break other packages using the cache if that directory is
3266 # removed, or if the path is relative.
3267 INSTALL=$ac_install_sh
3270 echo "$as_me:$LINENO: result: $INSTALL" >&5
3271 echo "${ECHO_T}$INSTALL" >&6
3273 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3274 # It thinks the first close brace ends the variable substitution.
3275 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3277 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3279 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3281 if test -n "$ac_tool_prefix"; then
3282 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3283 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3284 echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3286 if test "${ac_cv_prog_RANLIB+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 if test -n "$RANLIB"; then
3290 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 test -z "$as_dir" && as_dir=.
3297 for ac_exec_ext in '' $ac_executable_extensions; do
3298 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3299 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3308 RANLIB=$ac_cv_prog_RANLIB
3309 if test -n "$RANLIB"; then
3310 echo "$as_me:$LINENO: result: $RANLIB" >&5
3311 echo "${ECHO_T}$RANLIB" >&6
3313 echo "$as_me:$LINENO: result: no" >&5
3314 echo "${ECHO_T}no" >&6
3318 if test -z "$ac_cv_prog_RANLIB"; then
3319 ac_ct_RANLIB=$RANLIB
3320 # Extract the first word of "ranlib", so it can be a program name with args.
3321 set dummy ranlib; ac_word=$2
3322 echo "$as_me:$LINENO: checking for $ac_word" >&5
3323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3324 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3325 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 if test -n "$ac_ct_RANLIB"; then
3328 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337 ac_cv_prog_ac_ct_RANLIB="ranlib"
3338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3347 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3348 if test -n "$ac_ct_RANLIB"; then
3349 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3350 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3352 echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3356 RANLIB=$ac_ct_RANLIB
3358 RANLIB="$ac_cv_prog_RANLIB"
3361 # Extract the first word of "mv", so it can be a program name with args.
3362 set dummy mv; ac_word=$2
3363 echo "$as_me:$LINENO: checking for $ac_word" >&5
3364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3365 if test "${ac_cv_path_MV+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3370 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3393 if test -n "$MV"; then
3394 echo "$as_me:$LINENO: result: $MV" >&5
3395 echo "${ECHO_T}$MV" >&6
3397 echo "$as_me:$LINENO: result: no" >&5
3398 echo "${ECHO_T}no" >&6
3401 # Extract the first word of "rm", so it can be a program name with args.
3402 set dummy rm; ac_word=$2
3403 echo "$as_me:$LINENO: checking for $ac_word" >&5
3404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3405 if test "${ac_cv_path_RM+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3420 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3433 if test -n "$RM"; then
3434 echo "$as_me:$LINENO: result: $RM" >&5
3435 echo "${ECHO_T}$RM" >&6
3437 echo "$as_me:$LINENO: result: no" >&5
3438 echo "${ECHO_T}no" >&6
3441 # Extract the first word of "cp", so it can be a program name with args.
3442 set dummy cp; ac_word=$2
3443 echo "$as_me:$LINENO: checking for $ac_word" >&5
3444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3445 if test "${ac_cv_path_CP+set}" = set; then
3446 echo $ECHO_N "(cached) $ECHO_C" >&6
3450 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 test -z "$as_dir" && as_dir=.
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3460 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3461 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3473 if test -n "$CP"; then
3474 echo "$as_me:$LINENO: result: $CP" >&5
3475 echo "${ECHO_T}$CP" >&6
3477 echo "$as_me:$LINENO: result: no" >&5
3478 echo "${ECHO_T}no" >&6
3481 # Extract the first word of "sed", so it can be a program name with args.
3482 set dummy sed; ac_word=$2
3483 echo "$as_me:$LINENO: checking for $ac_word" >&5
3484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3485 if test "${ac_cv_path_SED+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3490 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 test -z "$as_dir" && as_dir=.
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3500 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3513 if test -n "$SED"; then
3514 echo "$as_me:$LINENO: result: $SED" >&5
3515 echo "${ECHO_T}$SED" >&6
3517 echo "$as_me:$LINENO: result: no" >&5
3518 echo "${ECHO_T}no" >&6
3521 # Extract the first word of "echo", so it can be a program name with args.
3522 set dummy echo; ac_word=$2
3523 echo "$as_me:$LINENO: checking for $ac_word" >&5
3524 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3525 if test "${ac_cv_path_ECHO+set}" = set; then
3526 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537 test -z "$as_dir" && as_dir=.
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3540 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3547 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3551 ECHO=$ac_cv_path_ECHO
3553 if test -n "$ECHO"; then
3554 echo "$as_me:$LINENO: result: $ECHO" >&5
3555 echo "${ECHO_T}$ECHO" >&6
3557 echo "$as_me:$LINENO: result: no" >&5
3558 echo "${ECHO_T}no" >&6
3561 # Extract the first word of "cmp", so it can be a program name with args.
3562 set dummy cmp; ac_word=$2
3563 echo "$as_me:$LINENO: checking for $ac_word" >&5
3564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3565 if test "${ac_cv_path_CMP+set}" = set; then
3566 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 test -z "$as_dir" && as_dir=.
3578 for ac_exec_ext in '' $ac_executable_extensions; do
3579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3580 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3593 if test -n "$CMP"; then
3594 echo "$as_me:$LINENO: result: $CMP" >&5
3595 echo "${ECHO_T}$CMP" >&6
3597 echo "$as_me:$LINENO: result: no" >&5
3598 echo "${ECHO_T}no" >&6
3601 # Extract the first word of "tbl", so it can be a program name with args.
3602 set dummy tbl; ac_word=$2
3603 echo "$as_me:$LINENO: checking for $ac_word" >&5
3604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3605 if test "${ac_cv_path_TBL+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3610 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 test -z "$as_dir" && as_dir=.
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3627 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3633 if test -n "$TBL"; then
3634 echo "$as_me:$LINENO: result: $TBL" >&5
3635 echo "${ECHO_T}$TBL" >&6
3637 echo "$as_me:$LINENO: result: no" >&5
3638 echo "${ECHO_T}no" >&6
3641 # Extract the first word of "ar", so it can be a program name with args.
3642 set dummy ar; ac_word=$2
3643 echo "$as_me:$LINENO: checking for $ac_word" >&5
3644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3645 if test "${ac_cv_path_AR+set}" = set; then
3646 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 test -z "$as_dir" && as_dir=.
3658 for ac_exec_ext in '' $ac_executable_extensions; do
3659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3660 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3673 if test -n "$AR"; then
3674 echo "$as_me:$LINENO: result: $AR" >&5
3675 echo "${ECHO_T}$AR" >&6
3677 echo "$as_me:$LINENO: result: no" >&5
3678 echo "${ECHO_T}no" >&6
3681 # Extract the first word of "openssl", so it can be a program name with args.
3682 set dummy openssl; ac_word=$2
3683 echo "$as_me:$LINENO: checking for $ac_word" >&5
3684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3685 if test "${ac_cv_path_OPENSSL+set}" = set; then
3686 echo $ECHO_N "(cached) $ECHO_C" >&6
3690 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3697 test -z "$as_dir" && as_dir=.
3698 for ac_exec_ext in '' $ac_executable_extensions; do
3699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3700 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3711 OPENSSL=$ac_cv_path_OPENSSL
3713 if test -n "$OPENSSL"; then
3714 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3715 echo "${ECHO_T}$OPENSSL" >&6
3717 echo "$as_me:$LINENO: result: no" >&5
3718 echo "${ECHO_T}no" >&6
3721 # Extract the first word of "mtx", so it can be a program name with args.
3722 set dummy mtx; ac_word=$2
3723 echo "$as_me:$LINENO: checking for $ac_word" >&5
3724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3725 if test "${ac_cv_path_MTX+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3737 test -z "$as_dir" && as_dir=.
3738 for ac_exec_ext in '' $ac_executable_extensions; do
3739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3740 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3747 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3753 if test -n "$MTX"; then
3754 echo "$as_me:$LINENO: result: $MTX" >&5
3755 echo "${ECHO_T}$MTX" >&6
3757 echo "$as_me:$LINENO: result: no" >&5
3758 echo "${ECHO_T}no" >&6
3761 # Extract the first word of "mkisofs", so it can be a program name with args.
3762 set dummy mkisofs; ac_word=$2
3763 echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3765 if test "${ac_cv_path_MKISOFS+set}" = set; then
3766 echo $ECHO_N "(cached) $ECHO_C" >&6
3770 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 test -z "$as_dir" && as_dir=.
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3780 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3787 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3791 MKISOFS=$ac_cv_path_MKISOFS
3793 if test -n "$MKISOFS"; then
3794 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3795 echo "${ECHO_T}$MKISOFS" >&6
3797 echo "$as_me:$LINENO: result: no" >&5
3798 echo "${ECHO_T}no" >&6
3801 # Extract the first word of "python", so it can be a program name with args.
3802 set dummy python; ac_word=$2
3803 echo "$as_me:$LINENO: checking for $ac_word" >&5
3804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3805 if test "${ac_cv_path_PYTHON+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3827 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3831 PYTHON=$ac_cv_path_PYTHON
3833 if test -n "$PYTHON"; then
3834 echo "$as_me:$LINENO: result: $PYTHON" >&5
3835 echo "${ECHO_T}$PYTHON" >&6
3837 echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6
3841 # Extract the first word of "growisofs", so it can be a program name with args.
3842 set dummy growisofs; ac_word=$2
3843 echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3850 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3867 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3871 GROWISOFS=$ac_cv_path_GROWISOFS
3873 if test -n "$GROWISOFS"; then
3874 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3875 echo "${ECHO_T}$GROWISOFS" >&6
3877 echo "$as_me:$LINENO: result: no" >&5
3878 echo "${ECHO_T}no" >&6
3881 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3882 set dummy dvd+rw-mediainfo; ac_word=$2
3883 echo "$as_me:$LINENO: checking for $ac_word" >&5
3884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3885 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 case $DVDRWMEDIAINFO in
3890 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 test -z "$as_dir" && as_dir=.
3898 for ac_exec_ext in '' $ac_executable_extensions; do
3899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3900 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3911 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
3913 if test -n "$DVDRWMEDIAINFO"; then
3914 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
3915 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
3917 echo "$as_me:$LINENO: result: no" >&5
3918 echo "${ECHO_T}no" >&6
3921 # Extract the first word of "pkg-config", so it can be a program name with args.
3922 set dummy pkg-config; ac_word=$2
3923 echo "$as_me:$LINENO: checking for $ac_word" >&5
3924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3925 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
3926 echo $ECHO_N "(cached) $ECHO_C" >&6
3930 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
3933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 test -z "$as_dir" && as_dir=.
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3940 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
3941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
3951 PKGCONFIG=$ac_cv_path_PKGCONFIG
3953 if test -n "$PKGCONFIG"; then
3954 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
3955 echo "${ECHO_T}$PKGCONFIG" >&6
3957 echo "$as_me:$LINENO: result: no" >&5
3958 echo "${ECHO_T}no" >&6
3961 # Extract the first word of "wx-config", so it can be a program name with args.
3962 set dummy wx-config; ac_word=$2
3963 echo "$as_me:$LINENO: checking for $ac_word" >&5
3964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3965 if test "${ac_cv_path_WXCONFIG+set}" = set; then
3966 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
3973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 test -z "$as_dir" && as_dir=.
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3980 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
3981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3987 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="wx-config"
3991 WXCONFIG=$ac_cv_path_WXCONFIG
3993 if test -n "$WXCONFIG"; then
3994 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
3995 echo "${ECHO_T}$WXCONFIG" >&6
3997 echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6
4001 # Extract the first word of "cdrecord", so it can be a program name with args.
4002 set dummy cdrecord; ac_word=$2
4003 echo "$as_me:$LINENO: checking for $ac_word" >&5
4004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4005 if test "${ac_cv_path_CDRECORD+set}" = set; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4010 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017 test -z "$as_dir" && as_dir=.
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4020 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4027 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4031 CDRECORD=$ac_cv_path_CDRECORD
4033 if test -n "$CDRECORD"; then
4034 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4035 echo "${ECHO_T}$CDRECORD" >&6
4037 echo "$as_me:$LINENO: result: no" >&5
4038 echo "${ECHO_T}no" >&6
4041 # Extract the first word of "pidof", so it can be a program name with args.
4042 set dummy pidof; ac_word=$2
4043 echo "$as_me:$LINENO: checking for $ac_word" >&5
4044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4045 if test "${ac_cv_path_PIDOF+set}" = set; then
4046 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 test -z "$as_dir" && as_dir=.
4058 for ac_exec_ext in '' $ac_executable_extensions; do
4059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4060 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4067 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4071 PIDOF=$ac_cv_path_PIDOF
4073 if test -n "$PIDOF"; then
4074 echo "$as_me:$LINENO: result: $PIDOF" >&5
4075 echo "${ECHO_T}$PIDOF" >&6
4077 echo "$as_me:$LINENO: result: no" >&5
4078 echo "${ECHO_T}no" >&6
4081 for ac_prog in gawk mawk nawk awk
4083 # Extract the first word of "$ac_prog", so it can be a program name with args.
4084 set dummy $ac_prog; ac_word=$2
4085 echo "$as_me:$LINENO: checking for $ac_word" >&5
4086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4087 if test "${ac_cv_prog_AWK+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 if test -n "$AWK"; then
4091 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4100 ac_cv_prog_AWK="$ac_prog"
4101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4110 if test -n "$AWK"; then
4111 echo "$as_me:$LINENO: result: $AWK" >&5
4112 echo "${ECHO_T}$AWK" >&6
4114 echo "$as_me:$LINENO: result: no" >&5
4115 echo "${ECHO_T}no" >&6
4118 test -n "$AWK" && break
4121 # Some AWK programs fail, so test it and warn the user
4122 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4123 { if ((prog == $2) || (("(" prog ")") == $2) ||
4124 (("" prog "") == $2) ||
4125 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4127 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4128 The regex engine of $AWK is too broken to be used you
4129 might want to install GNU AWK.
4130 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4131 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4132 The regex engine of $AWK is too broken to be used you
4133 might want to install GNU AWK.
4134 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4135 { (exit 1); exit 1; }; }
4138 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4139 set dummy $THE_AWK; ac_word=$2
4140 echo "$as_me:$LINENO: checking for $ac_word" >&5
4141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4142 if test "${ac_cv_path_AWK+set}" = set; then
4143 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4170 if test -n "$AWK"; then
4171 echo "$as_me:$LINENO: result: $AWK" >&5
4172 echo "${ECHO_T}$AWK" >&6
4174 echo "$as_me:$LINENO: result: no" >&5
4175 echo "${ECHO_T}no" >&6
4179 test -n "$ARFLAG" || ARFLAGS="cr"
4192 # Make sure we can run config.sub.
4193 $ac_config_sub sun4 >/dev/null 2>&1 ||
4194 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4195 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4196 { (exit 1); exit 1; }; }
4198 echo "$as_me:$LINENO: checking build system type" >&5
4199 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4200 if test "${ac_cv_build+set}" = set; then
4201 echo $ECHO_N "(cached) $ECHO_C" >&6
4203 ac_cv_build_alias=$build_alias
4204 test -z "$ac_cv_build_alias" &&
4205 ac_cv_build_alias=`$ac_config_guess`
4206 test -z "$ac_cv_build_alias" &&
4207 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4208 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4209 { (exit 1); exit 1; }; }
4210 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4211 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4212 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4213 { (exit 1); exit 1; }; }
4216 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4217 echo "${ECHO_T}$ac_cv_build" >&6
4219 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4220 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4221 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4225 echo "$as_me:$LINENO: checking host system type" >&5
4226 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4227 if test "${ac_cv_host+set}" = set; then
4228 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 ac_cv_host_alias=$host_alias
4231 test -z "$ac_cv_host_alias" &&
4232 ac_cv_host_alias=$ac_cv_build_alias
4233 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4234 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4235 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4236 { (exit 1); exit 1; }; }
4239 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4240 echo "${ECHO_T}$ac_cv_host" >&6
4242 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4243 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4244 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4248 *cygwin* ) CYGWIN=yes;;
4252 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4258 HAVE_SUN_OS_FALSE='#'
4260 HAVE_SUN_OS_TRUE='#'
4263 cat >>confdefs.h <<\_ACEOF
4264 #define HAVE_SUN_OS 1
4272 HAVE_SUN_OS_FALSE='#'
4274 HAVE_SUN_OS_TRUE='#'
4279 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4285 HAVE_OSF1_OS_FALSE='#'
4287 HAVE_OSF1_OS_TRUE='#'
4290 cat >>confdefs.h <<\_ACEOF
4291 #define HAVE_OSF1_OS 1
4299 HAVE_OSF1_OS_FALSE='#'
4301 HAVE_OSF1_OS_TRUE='#'
4306 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4312 HAVE_AIX_OS_FALSE='#'
4314 HAVE_AIX_OS_TRUE='#'
4317 cat >>confdefs.h <<\_ACEOF
4318 #define HAVE_AIX_OS 1
4326 HAVE_AIX_OS_FALSE='#'
4328 HAVE_AIX_OS_TRUE='#'
4333 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4339 HAVE_HPUX_OS_FALSE='#'
4341 HAVE_HPUX_OS_TRUE='#'
4344 cat >>confdefs.h <<\_ACEOF
4345 #define HAVE_HPUX_OS 1
4353 HAVE_HPUX_OS_FALSE='#'
4355 HAVE_HPUX_OS_TRUE='#'
4360 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4366 HAVE_LINUX_OS_FALSE='#'
4368 HAVE_LINUX_OS_TRUE='#'
4369 HAVE_LINUX_OS_FALSE=
4371 cat >>confdefs.h <<\_ACEOF
4372 #define HAVE_LINUX_OS 1
4380 HAVE_LINUX_OS_FALSE='#'
4382 HAVE_LINUX_OS_TRUE='#'
4383 HAVE_LINUX_OS_FALSE=
4387 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4392 HAVE_FREEBSD_OS_TRUE=
4393 HAVE_FREEBSD_OS_FALSE='#'
4395 HAVE_FREEBSD_OS_TRUE='#'
4396 HAVE_FREEBSD_OS_FALSE=
4398 cat >>confdefs.h <<\_ACEOF
4399 #define HAVE_FREEBSD_OS 1
4406 HAVE_FREEBSD_OS_TRUE=
4407 HAVE_FREEBSD_OS_FALSE='#'
4409 HAVE_FREEBSD_OS_TRUE='#'
4410 HAVE_FREEBSD_OS_FALSE=
4414 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4419 HAVE_NETBSD_OS_TRUE=
4420 HAVE_NETBSD_OS_FALSE='#'
4422 HAVE_NETBSD_OS_TRUE='#'
4423 HAVE_NETBSD_OS_FALSE=
4425 cat >>confdefs.h <<\_ACEOF
4426 #define HAVE_NETBSD_OS 1
4433 HAVE_NETBSD_OS_TRUE=
4434 HAVE_NETBSD_OS_FALSE='#'
4436 HAVE_NETBSD_OS_TRUE='#'
4437 HAVE_NETBSD_OS_FALSE=
4441 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4446 HAVE_OPENBSD_OS_TRUE=
4447 HAVE_OPENBSD_OS_FALSE='#'
4449 HAVE_OPENBSD_OS_TRUE='#'
4450 HAVE_OPENBSD_OS_FALSE=
4452 cat >>confdefs.h <<\_ACEOF
4453 #define HAVE_OPENBSD_OS 1
4460 HAVE_OPENBSD_OS_TRUE=
4461 HAVE_OPENBSD_OS_FALSE='#'
4463 HAVE_OPENBSD_OS_TRUE='#'
4464 HAVE_OPENBSD_OS_FALSE=
4468 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4474 HAVE_BSDI_OS_FALSE='#'
4476 HAVE_BSDI_OS_TRUE='#'
4479 cat >>confdefs.h <<\_ACEOF
4480 #define HAVE_BSDI_OS 1
4488 HAVE_BSDI_OS_FALSE='#'
4490 HAVE_BSDI_OS_TRUE='#'
4495 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4501 HAVE_SGI_OS_FALSE='#'
4503 HAVE_SGI_OS_TRUE='#'
4506 cat >>confdefs.h <<\_ACEOF
4507 #define HAVE_SGI_OS 1
4515 HAVE_SGI_OS_FALSE='#'
4517 HAVE_SGI_OS_TRUE='#'
4522 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4528 HAVE_IRIX_OS_FALSE='#'
4530 HAVE_IRIX_OS_TRUE='#'
4533 cat >>confdefs.h <<\_ACEOF
4534 #define HAVE_IRIX_OS 1
4542 HAVE_IRIX_OS_FALSE='#'
4544 HAVE_IRIX_OS_TRUE='#'
4549 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4554 HAVE_DARWIN_OS_TRUE=
4555 HAVE_DARWIN_OS_FALSE='#'
4557 HAVE_DARWIN_OS_TRUE='#'
4558 HAVE_DARWIN_OS_FALSE=
4560 cat >>confdefs.h <<\_ACEOF
4561 #define HAVE_DARWIN_OS 1
4568 HAVE_DARWIN_OS_TRUE=
4569 HAVE_DARWIN_OS_FALSE='#'
4571 HAVE_DARWIN_OS_TRUE='#'
4572 HAVE_DARWIN_OS_FALSE=
4577 # -----------------------------------------------------------
4578 # ----------------------------------------------------------
4579 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4580 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4581 if test "x$DISTNAME" != "x"
4583 echo "distname set to $DISTNAME"
4584 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4587 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4590 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4593 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4596 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4599 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4602 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4605 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4608 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4611 elif test -f /etc/SuSE-release
4614 elif test -d /etc/SuSEconfig
4617 elif test -f /etc/mandrake-release
4620 elif test -f /etc/whitebox-release
4623 elif test -f /etc/redhat-release
4626 elif test -f /etc/gentoo-release
4629 elif test -f /etc/debian_version
4632 elif test -f /etc/slackware-version
4635 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4638 elif test -f /etc/engarde-version
4641 elif test "$CYGWIN" = yes
4644 cat >>confdefs.h <<\_ACEOF
4645 #define HAVE_CYGWIN 1
4651 echo "$as_me:$LINENO: result: done" >&5
4652 echo "${ECHO_T}done" >&6
4655 # -----------------------------------------------------------
4656 # ----------------------------------------------------------
4661 INSIDE_GNOME_COMMON_TRUE=
4662 INSIDE_GNOME_COMMON_FALSE='#'
4664 INSIDE_GNOME_COMMON_TRUE='#'
4665 INSIDE_GNOME_COMMON_FALSE=
4668 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
4670 for k in gnome-macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
4673 # ------------------------------------------------------------------
4674 # If the user has not set --prefix, we set our default to nothing.
4675 # In this case, if the user has not set --sysconfdir, we set it
4676 # to the package default of /etc/bacula. If either --prefix or
4677 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4678 # ------------------------------------------------------------------
4679 if test x${prefix} = xNONE ; then
4680 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4681 sysconfdir=/etc/bacula
4685 sysconfdir=`eval echo ${sysconfdir}`
4687 # -------------------------------------------------------------------------
4688 # If the user has not set --exec-prefix, we default to ${prefix}
4689 # -------------------------------------------------------------------------
4690 if test x${exec_prefix} = xNONE ; then
4691 exec_prefix=${prefix}
4694 # ------------------------------------------------------------------
4695 # If the user has not set --sbindir, we set our default as /sbin
4696 # ------------------------------------------------------------------
4697 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4698 sbindir=${exec_prefix}/sbin
4700 sbindir=`eval echo ${sbindir}`
4702 # ------------------------------------------------------------------
4703 # All list of languages for which a translation exist. Each
4704 # language is separated by a space.
4705 # ------------------------------------------------------------------
4708 for ac_prog in msgfmt
4710 # Extract the first word of "$ac_prog", so it can be a program name with args.
4711 set dummy $ac_prog; ac_word=$2
4712 echo "$as_me:$LINENO: checking for $ac_word" >&5
4713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4714 if test "${ac_cv_path_MSGFMT+set}" = set; then
4715 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 test -z "$as_dir" && as_dir=.
4727 for ac_exec_ext in '' $ac_executable_extensions; do
4728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4729 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 MSGFMT=$ac_cv_path_MSGFMT
4741 if test -n "$MSGFMT"; then
4742 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4743 echo "${ECHO_T}$MSGFMT" >&6
4745 echo "$as_me:$LINENO: result: no" >&5
4746 echo "${ECHO_T}no" >&6
4749 test -n "$MSGFMT" && break
4751 test -n "$MSGFMT" || MSGFMT="no"
4753 if test "$MSGFMT" = "no"
4755 echo 'msgfmt program not found, disabling NLS !'
4757 USE_INCLUDED_LIBINTL=no
4766 support_postgresql=no
4767 support_smartalloc=yes
4768 support_readline=yes
4771 support_wx_console=no
4773 support_static_tools=no
4774 support_static_fd=no
4775 support_static_sd=no
4776 support_static_dir=no
4777 support_static_cons=no
4779 build_client_only=no
4785 # -------------------------------------------
4786 # gnome (default off)
4787 # -------------------------------------------
4788 # Check whether --enable-gnome or --disable-gnome was given.
4789 if test "${enable_gnome+set}" = set; then
4790 enableval="$enable_gnome"
4791 if test x$enableval = xyes; then
4797 if test x$support_gnome = xyes; then
4798 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4800 if test $pkg = 0; then
4801 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4802 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4803 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4804 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4809 GNOME_DIR=src/gnome2-console
4810 gnome_version="Version 2.x"
4823 # Check whether --with-gnome-includes or --without-gnome-includes was given.
4824 if test "${with_gnome_includes+set}" = set; then
4825 withval="$with_gnome_includes"
4827 CFLAGS="$CFLAGS -I$withval"
4832 # Check whether --with-gnome-libs or --without-gnome-libs was given.
4833 if test "${with_gnome_libs+set}" = set; then
4834 withval="$with_gnome_libs"
4836 LDFLAGS="$LDFLAGS -L$withval"
4837 gnome_prefix=$withval
4842 # Check whether --with-gnome or --without-gnome was given.
4843 if test "${with_gnome+set}" = set; then
4844 withval="$with_gnome"
4845 if test x$withval = xyes; then
4849 if test "x$withval" = xno; then
4853 LDFLAGS="$LDFLAGS -L$withval/lib"
4854 CFLAGS="$CFLAGS -I$withval/include"
4855 gnome_prefix=$withval/lib
4862 if test "x$want_gnome" = xyes; then
4864 # Extract the first word of "gnome-config", so it can be a program name with args.
4865 set dummy gnome-config; ac_word=$2
4866 echo "$as_me:$LINENO: checking for $ac_word" >&5
4867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4868 if test "${ac_cv_path_GNOME_CONFIG+set}" = set; then
4869 echo $ECHO_N "(cached) $ECHO_C" >&6
4871 case $GNOME_CONFIG in
4873 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
4876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880 test -z "$as_dir" && as_dir=.
4881 for ac_exec_ext in '' $ac_executable_extensions; do
4882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4883 ac_cv_path_GNOME_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4890 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
4894 GNOME_CONFIG=$ac_cv_path_GNOME_CONFIG
4896 if test -n "$GNOME_CONFIG"; then
4897 echo "$as_me:$LINENO: result: $GNOME_CONFIG" >&5
4898 echo "${ECHO_T}$GNOME_CONFIG" >&6
4900 echo "$as_me:$LINENO: result: no" >&5
4901 echo "${ECHO_T}no" >&6
4904 if test "$GNOME_CONFIG" = "no"; then
4905 no_gnome_config="yes"
4907 echo "$as_me:$LINENO: checking if $GNOME_CONFIG works" >&5
4908 echo $ECHO_N "checking if $GNOME_CONFIG works... $ECHO_C" >&6
4909 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
4910 echo "$as_me:$LINENO: result: yes" >&5
4911 echo "${ECHO_T}yes" >&6
4914 # Extract the first word of "orbit-config", so it can be a program name with args.
4915 set dummy orbit-config; ac_word=$2
4916 echo "$as_me:$LINENO: checking for $ac_word" >&5
4917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4918 if test "${ac_cv_path_ORBIT_CONFIG+set}" = set; then
4919 echo $ECHO_N "(cached) $ECHO_C" >&6
4921 case $ORBIT_CONFIG in
4923 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
4926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 test -z "$as_dir" && as_dir=.
4931 for ac_exec_ext in '' $ac_executable_extensions; do
4932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4933 ac_cv_path_ORBIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
4944 ORBIT_CONFIG=$ac_cv_path_ORBIT_CONFIG
4946 if test -n "$ORBIT_CONFIG"; then
4947 echo "$as_me:$LINENO: result: $ORBIT_CONFIG" >&5
4948 echo "${ECHO_T}$ORBIT_CONFIG" >&6
4950 echo "$as_me:$LINENO: result: no" >&5
4951 echo "${ECHO_T}no" >&6
4954 # Extract the first word of "orbit-idl", so it can be a program name with args.
4955 set dummy orbit-idl; ac_word=$2
4956 echo "$as_me:$LINENO: checking for $ac_word" >&5
4957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4958 if test "${ac_cv_path_ORBIT_IDL+set}" = set; then
4959 echo $ECHO_N "(cached) $ECHO_C" >&6
4963 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_path_ORBIT_IDL="$as_dir/$ac_word$ac_exec_ext"
4974 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
4984 ORBIT_IDL=$ac_cv_path_ORBIT_IDL
4986 if test -n "$ORBIT_IDL"; then
4987 echo "$as_me:$LINENO: result: $ORBIT_IDL" >&5
4988 echo "${ECHO_T}$ORBIT_IDL" >&6
4990 echo "$as_me:$LINENO: result: no" >&5
4991 echo "${ECHO_T}no" >&6
4994 echo "$as_me:$LINENO: checking for working ORBit environment" >&5
4995 echo $ECHO_N "checking for working ORBit environment... $ECHO_C" >&6
4996 if test "${gnome_cv_orbit_found+set}" = set; then
4997 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
5001 gnome_cv_orbit_found=no
5003 gnome_cv_orbit_found=yes
5007 echo "$as_me:$LINENO: result: $gnome_cv_orbit_found" >&5
5008 echo "${ECHO_T}$gnome_cv_orbit_found" >&6
5011 if test x$gnome_cv_orbit_found = xyes; then
5013 HAVE_ORBIT_FALSE='#'
5018 if test x$gnome_cv_orbit_found = xyes; then
5020 ORBIT_CFLAGS=`orbit-config --cflags client server`
5021 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
5025 if test xfail = xfailure; then
5026 { { echo "$as_me:$LINENO: error: ORBit not installed or installation problem" >&5
5027 echo "$as_me: error: ORBit not installed or installation problem" >&2;}
5028 { (exit 1); exit 1; }; }
5032 echo "$as_me:$LINENO: checking for gnorba libraries" >&5
5033 echo $ECHO_N "checking for gnorba libraries... $ECHO_C" >&6
5034 if test "${gnome_cv_gnorba_found+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5038 gnome_cv_gnorba_found=no
5039 if test x$gnome_cv_orbit_found = xyes; then
5040 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5041 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5042 if test -n "$GNORBA_LIBS"; then
5043 gnome_cv_gnorba_found=yes
5048 echo "$as_me:$LINENO: result: $gnome_cv_gnorba_found" >&5
5049 echo "${ECHO_T}$gnome_cv_gnorba_found" >&6
5052 if test x$gnome_cv_gnorba_found = xyes; then
5054 HAVE_GNORBA_FALSE='#'
5056 HAVE_GNORBA_TRUE='#'
5059 if test x$gnome_cv_orbit_found = xyes; then
5061 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
5062 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
5066 if test xfail = xfailure; then
5067 { { echo "$as_me:$LINENO: error: gnorba library not installed or installation problem" >&5
5068 echo "$as_me: error: gnorba library not installed or installation problem" >&2;}
5069 { (exit 1); exit 1; }; }
5073 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
5074 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
5075 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
5076 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
5077 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
5078 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
5079 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
5082 echo "$as_me:$LINENO: result: no" >&5
5083 echo "${ECHO_T}no" >&6
5084 no_gnome_config="yes"
5088 if test x$exec_prefix = xNONE; then
5089 if test x$prefix = xNONE; then
5090 gnome_prefix=$ac_default_prefix/lib
5092 gnome_prefix=$prefix/lib
5095 gnome_prefix=`eval echo \`echo $libdir\``
5098 if test "$no_gnome_config" = "yes"; then
5099 echo "$as_me:$LINENO: checking for gnomeConf.sh file in $gnome_prefix" >&5
5100 echo $ECHO_N "checking for gnomeConf.sh file in $gnome_prefix... $ECHO_C" >&6
5101 if test -f $gnome_prefix/gnomeConf.sh; then
5102 echo "$as_me:$LINENO: result: found" >&5
5103 echo "${ECHO_T}found" >&6
5104 echo "loading gnome configuration from" \
5105 "$gnome_prefix/gnomeConf.sh"
5106 . $gnome_prefix/gnomeConf.sh
5109 echo "$as_me:$LINENO: result: not found" >&5
5110 echo "${ECHO_T}not found" >&6
5111 if test xfail = xfail; then
5112 { { echo "$as_me:$LINENO: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&5
5113 echo "$as_me: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" >&2;}
5114 { (exit 1); exit 1; }; }
5123 echo "$as_me:$LINENO: checking extra library \"$i\"" >&5
5124 echo $ECHO_N "checking extra library \"$i\"... $ECHO_C" >&6
5128 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
5129 echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
5130 echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6;;
5133 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
5134 echo "$as_me:$LINENO: result: $GNOME_DOCKLETS_LIBS" >&5
5135 echo "${ECHO_T}$GNOME_DOCKLETS_LIBS" >&6;;
5138 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
5139 echo "$as_me:$LINENO: result: $GNOME_CAPPLET_LIBS" >&5
5140 echo "${ECHO_T}$GNOME_CAPPLET_LIBS" >&6;;
5142 echo "$as_me:$LINENO: result: unknown library" >&5
5143 echo "${ECHO_T}unknown library" >&6
5145 EXTRA_INCLUDEDIR=`$GNOME_CONFIG --cflags $i`
5146 GNOME_INCLUDEDIR="$GNOME_INCLUDEDIR $EXTRA_INCLUDEDIR"
5151 GNOME_DIR=src/gnome-console
5152 gnome_version="Version 1.4"
5158 # -------------------------------------------
5159 # wx-console (default off)
5160 # -------------------------------------------
5161 # Check whether --enable-wx-console or --disable-wx-console was given.
5162 if test "${enable_wx_console+set}" = set; then
5163 enableval="$enable_wx_console"
5164 if test x$enableval = xyes; then
5165 support_wx_console=yes
5170 if test x$support_wx_console = xyes; then
5171 abc=`$WXCONFIG --cppflags`
5173 if test $pkg = 0; then
5174 WXCONS_CPPFLAGS=`$WXCONFIG --cppflags`
5175 WXCONS_LDFLAGS=`$WXCONFIG --libs`
5178 WX_DIR=src/wx-console
5181 echo "wx-config program not found. wx-console disabled."
5183 support_wx_console=no
5189 # -------------------------------------------
5190 # tray-monitor (default off)
5191 # -------------------------------------------
5192 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
5193 if test "${enable_tray_monitor+set}" = set; then
5194 enableval="$enable_tray_monitor"
5195 if test x$enableval = xyes; then
5196 support_tray_monitor=yes
5201 if test x$support_tray_monitor = xyes; then
5202 abc=`$PKGCONFIG --exists gtk+-2.0`
5204 if test $pkg = 0; then
5205 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
5206 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
5209 TRAY_MONITOR_DIR=src/tray-monitor
5210 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
5212 if test $pkg = 0; then
5213 cat >>confdefs.h <<\_ACEOF
5214 #define HAVE_GTK_2_4 1
5222 # -------------------------------------------
5223 # smartalloc (default off)
5224 # -------------------------------------------
5225 # Check whether --enable-smartalloc or --disable-smartalloc was given.
5226 if test "${enable_smartalloc+set}" = set; then
5227 enableval="$enable_smartalloc"
5228 if test x$enableval = xno; then
5229 support_smartalloc=no
5233 if test x$support_smartalloc = xyes; then
5234 cat >>confdefs.h <<\_ACEOF
5235 #define SMARTALLOC 1
5240 # -------------------------------------------
5241 # static-tools (default off)
5242 # -------------------------------------------
5243 # Check whether --enable-static-tools or --disable-static-tools was given.
5244 if test "${enable_static_tools+set}" = set; then
5245 enableval="$enable_static_tools"
5246 if test x$enableval = xyes; then
5247 support_static_tools=yes
5252 if test x$support_static_tools = xyes; then
5253 TTOOL_LDFLAGS="-static"
5257 # -------------------------------------------
5258 # static-fd (default off)
5259 # -------------------------------------------
5260 # Check whether --enable-static-fd or --disable-static-fd was given.
5261 if test "${enable_static_fd+set}" = set; then
5262 enableval="$enable_static_fd"
5263 if test x$enableval = xyes; then
5264 support_static_fd=yes
5269 if test x$support_static_fd = xyes; then
5270 STATIC_FD="static-bacula-fd"
5274 # -------------------------------------------
5275 # static-sd (default off)
5276 # -------------------------------------------
5277 # Check whether --enable-static-sd or --disable-static-sd was given.
5278 if test "${enable_static_sd+set}" = set; then
5279 enableval="$enable_static_sd"
5280 if test x$enableval = xyes; then
5281 support_static_sd=yes
5286 if test x$support_static_sd = xyes; then
5287 STATIC_SD="static-bacula-sd"
5291 # -------------------------------------------
5292 # static-dir (default off)
5293 # -------------------------------------------
5294 # Check whether --enable-static-dir or --disable-static-dir was given.
5295 if test "${enable_static_dir+set}" = set; then
5296 enableval="$enable_static_dir"
5297 if test x$enableval = xyes; then
5298 support_static_dir=yes
5303 if test x$support_static_dir = xyes; then
5304 STATIC_DIR="static-bacula-dir"
5308 # -------------------------------------------
5309 # static-cons (default off)
5310 # -------------------------------------------
5311 # Check whether --enable-static-cons or --disable-static-cons was given.
5312 if test "${enable_static_cons+set}" = set; then
5313 enableval="$enable_static_cons"
5314 if test x$enableval = xyes; then
5315 support_static_cons=yes
5322 if test x$support_static_cons = xyes; then
5323 STATIC_CONS="static-bconsole"
5324 STATIC_GNOME_CONS="static-gnome-console"
5325 STATIC_WX_CONS="static-wx-console"
5331 # -------------------------------------------
5332 # client_only (default off)
5333 # -------------------------------------------
5334 # Check whether --enable-client-only or --disable-client-only was given.
5335 if test "${enable_client_only+set}" = set; then
5336 enableval="$enable_client_only"
5337 if test x$enableval = xyes; then
5338 build_client_only=yes
5343 if test x$build_client_only = xno; then
5350 # ---------------------------------------------------
5351 # Check for conio (Bacula readline substitute)(
5352 # ---------------------------------------------------
5353 # this allows you to turn it completely off
5354 # Check whether --enable-conio or --disable-conio was given.
5355 if test "${enable_conio+set}" = set; then
5356 enableval="$enable_conio"
5357 if test x$enableval = xno; then
5363 if test x$support_conio = xyes; then
5364 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5365 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5366 if test "${ac_cv_header_stdc+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 cat >conftest.$ac_ext <<_ACEOF
5372 cat confdefs.h >>conftest.$ac_ext
5373 cat >>conftest.$ac_ext <<_ACEOF
5374 /* end confdefs.h. */
5388 rm -f conftest.$ac_objext
5389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5390 (eval $ac_compile) 2>conftest.er1
5392 grep -v '^ *+' conftest.er1 >conftest.err
5394 cat conftest.err >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); } &&
5397 { ac_try='test -z "$ac_c_werror_flag"
5398 || test ! -s conftest.err'
5399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; } &&
5404 { ac_try='test -s conftest.$ac_objext'
5405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409 (exit $ac_status); }; }; then
5410 ac_cv_header_stdc=yes
5412 echo "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5415 ac_cv_header_stdc=no
5417 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5419 if test $ac_cv_header_stdc = yes; then
5420 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5421 cat >conftest.$ac_ext <<_ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5431 $EGREP "memchr" >/dev/null 2>&1; then
5434 ac_cv_header_stdc=no
5440 if test $ac_cv_header_stdc = yes; then
5441 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5442 cat >conftest.$ac_ext <<_ACEOF
5445 cat confdefs.h >>conftest.$ac_ext
5446 cat >>conftest.$ac_ext <<_ACEOF
5447 /* end confdefs.h. */
5451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5452 $EGREP "free" >/dev/null 2>&1; then
5455 ac_cv_header_stdc=no
5461 if test $ac_cv_header_stdc = yes; then
5462 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5463 if test "$cross_compiling" = yes; then
5466 cat >conftest.$ac_ext <<_ACEOF
5469 cat confdefs.h >>conftest.$ac_ext
5470 cat >>conftest.$ac_ext <<_ACEOF
5471 /* end confdefs.h. */
5473 #if ((' ' & 0x0FF) == 0x020)
5474 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5475 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5477 # define ISLOWER(c) \
5478 (('a' <= (c) && (c) <= 'i') \
5479 || ('j' <= (c) && (c) <= 'r') \
5480 || ('s' <= (c) && (c) <= 'z'))
5481 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5484 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5489 for (i = 0; i < 256; i++)
5490 if (XOR (islower (i), ISLOWER (i))
5491 || toupper (i) != TOUPPER (i))
5496 rm -f conftest$ac_exeext
5497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5498 (eval $ac_link) 2>&5
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); }; }; then
5509 echo "$as_me: program exited with status $ac_status" >&5
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5514 ac_cv_header_stdc=no
5516 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5520 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5521 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5522 if test $ac_cv_header_stdc = yes; then
5524 cat >>confdefs.h <<\_ACEOF
5525 #define STDC_HEADERS 1
5530 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5540 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5541 inttypes.h stdint.h unistd.h
5543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5544 echo "$as_me:$LINENO: checking for $ac_header" >&5
5545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5546 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5547 echo $ECHO_N "(cached) $ECHO_C" >&6
5549 cat >conftest.$ac_ext <<_ACEOF
5552 cat confdefs.h >>conftest.$ac_ext
5553 cat >>conftest.$ac_ext <<_ACEOF
5554 /* end confdefs.h. */
5555 $ac_includes_default
5557 #include <$ac_header>
5559 rm -f conftest.$ac_objext
5560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5561 (eval $ac_compile) 2>conftest.er1
5563 grep -v '^ *+' conftest.er1 >conftest.err
5565 cat conftest.err >&5
5566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5567 (exit $ac_status); } &&
5568 { ac_try='test -z "$ac_c_werror_flag"
5569 || test ! -s conftest.err'
5570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); }; } &&
5575 { ac_try='test -s conftest.$ac_objext'
5576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; }; then
5581 eval "$as_ac_Header=yes"
5583 echo "$as_me: failed program was:" >&5
5584 sed 's/^/| /' conftest.$ac_ext >&5
5586 eval "$as_ac_Header=no"
5588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5590 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5591 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5593 cat >>confdefs.h <<_ACEOF
5594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5602 if test "${ac_cv_header_termcap_h+set}" = set; then
5603 echo "$as_me:$LINENO: checking for termcap.h" >&5
5604 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5605 if test "${ac_cv_header_termcap_h+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5608 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5609 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5611 # Is the header compilable?
5612 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5613 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5614 cat >conftest.$ac_ext <<_ACEOF
5617 cat confdefs.h >>conftest.$ac_ext
5618 cat >>conftest.$ac_ext <<_ACEOF
5619 /* end confdefs.h. */
5620 $ac_includes_default
5621 #include <termcap.h>
5623 rm -f conftest.$ac_objext
5624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5625 (eval $ac_compile) 2>conftest.er1
5627 grep -v '^ *+' conftest.er1 >conftest.err
5629 cat conftest.err >&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); } &&
5632 { ac_try='test -z "$ac_c_werror_flag"
5633 || test ! -s conftest.err'
5634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); }; } &&
5639 { ac_try='test -s conftest.$ac_objext'
5640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }; }; then
5645 ac_header_compiler=yes
5647 echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5650 ac_header_compiler=no
5652 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5653 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5654 echo "${ECHO_T}$ac_header_compiler" >&6
5656 # Is the header present?
5657 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5658 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5659 cat >conftest.$ac_ext <<_ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665 #include <termcap.h>
5667 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5668 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5670 grep -v '^ *+' conftest.er1 >conftest.err
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } >/dev/null; then
5675 if test -s conftest.err; then
5676 ac_cpp_err=$ac_c_preproc_warn_flag
5677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5684 if test -z "$ac_cpp_err"; then
5685 ac_header_preproc=yes
5687 echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5690 ac_header_preproc=no
5692 rm -f conftest.err conftest.$ac_ext
5693 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5694 echo "${ECHO_T}$ac_header_preproc" >&6
5696 # So? What about this header?
5697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5699 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5700 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5701 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5702 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5703 ac_header_preproc=yes
5706 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5707 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5708 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5709 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5710 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5711 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5712 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
5713 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
5714 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5715 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5716 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5717 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5720 ## ------------------------------------------ ##
5721 ## Report this to the AC_PACKAGE_NAME lists. ##
5722 ## ------------------------------------------ ##
5725 sed "s/^/$as_me: WARNING: /" >&2
5728 echo "$as_me:$LINENO: checking for termcap.h" >&5
5729 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5730 if test "${ac_cv_header_termcap_h+set}" = set; then
5731 echo $ECHO_N "(cached) $ECHO_C" >&6
5733 ac_cv_header_termcap_h=$ac_header_preproc
5735 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5736 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5739 if test $ac_cv_header_termcap_h = yes; then
5740 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5741 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5742 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5745 ac_check_lib_save_LIBS=$LIBS
5746 LIBS="-ltermcap $LIBS"
5747 cat >conftest.$ac_ext <<_ACEOF
5750 cat confdefs.h >>conftest.$ac_ext
5751 cat >>conftest.$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5754 /* Override any gcc2 internal prototype to avoid an error. */
5758 /* We use char because int might match the return type of a gcc2
5759 builtin and then its argument prototype would still apply. */
5769 rm -f conftest.$ac_objext conftest$ac_exeext
5770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5771 (eval $ac_link) 2>conftest.er1
5773 grep -v '^ *+' conftest.er1 >conftest.err
5775 cat conftest.err >&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); } &&
5778 { ac_try='test -z "$ac_c_werror_flag"
5779 || test ! -s conftest.err'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; } &&
5785 { ac_try='test -s conftest$ac_exeext'
5786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 ac_cv_lib_termcap_tgetent=yes
5793 echo "$as_me: failed program was:" >&5
5794 sed 's/^/| /' conftest.$ac_ext >&5
5796 ac_cv_lib_termcap_tgetent=no
5798 rm -f conftest.err conftest.$ac_objext \
5799 conftest$ac_exeext conftest.$ac_ext
5800 LIBS=$ac_check_lib_save_LIBS
5802 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5803 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5804 if test $ac_cv_lib_termcap_tgetent = yes; then
5805 CONS_LIBS="-ltermcap"
5811 cat >>confdefs.h <<\_ACEOF
5812 #define HAVE_CONIO 1
5817 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5818 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5819 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 ac_check_lib_save_LIBS=$LIBS
5823 LIBS="-lncurses $LIBS"
5824 cat >conftest.$ac_ext <<_ACEOF
5827 cat confdefs.h >>conftest.$ac_ext
5828 cat >>conftest.$ac_ext <<_ACEOF
5829 /* end confdefs.h. */
5831 /* Override any gcc2 internal prototype to avoid an error. */
5835 /* We use char because int might match the return type of a gcc2
5836 builtin and then its argument prototype would still apply. */
5846 rm -f conftest.$ac_objext conftest$ac_exeext
5847 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5848 (eval $ac_link) 2>conftest.er1
5850 grep -v '^ *+' conftest.er1 >conftest.err
5852 cat conftest.err >&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); } &&
5855 { ac_try='test -z "$ac_c_werror_flag"
5856 || test ! -s conftest.err'
5857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); }; } &&
5862 { ac_try='test -s conftest$ac_exeext'
5863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); }; }; then
5868 ac_cv_lib_ncurses_tgetent=yes
5870 echo "$as_me: failed program was:" >&5
5871 sed 's/^/| /' conftest.$ac_ext >&5
5873 ac_cv_lib_ncurses_tgetent=no
5875 rm -f conftest.err conftest.$ac_objext \
5876 conftest$ac_exeext conftest.$ac_ext
5877 LIBS=$ac_check_lib_save_LIBS
5879 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5880 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5881 if test $ac_cv_lib_ncurses_tgetent = yes; then
5882 CONS_LIBS="-lncurses"
5888 cat >>confdefs.h <<\_ACEOF
5889 #define HAVE_CONIO 1
5902 for ac_header in curses.h
5904 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5905 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5906 echo "$as_me:$LINENO: checking for $ac_header" >&5
5907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5912 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5914 # Is the header compilable?
5915 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5916 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5917 cat >conftest.$ac_ext <<_ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h. */
5923 $ac_includes_default
5924 #include <$ac_header>
5926 rm -f conftest.$ac_objext
5927 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5928 (eval $ac_compile) 2>conftest.er1
5930 grep -v '^ *+' conftest.er1 >conftest.err
5932 cat conftest.err >&5
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); } &&
5935 { ac_try='test -z "$ac_c_werror_flag"
5936 || test ! -s conftest.err'
5937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); }; } &&
5942 { ac_try='test -s conftest.$ac_objext'
5943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); }; }; then
5948 ac_header_compiler=yes
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.$ac_ext >&5
5953 ac_header_compiler=no
5955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5956 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5957 echo "${ECHO_T}$ac_header_compiler" >&6
5959 # Is the header present?
5960 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5962 cat >conftest.$ac_ext <<_ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 #include <$ac_header>
5970 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5971 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5973 grep -v '^ *+' conftest.er1 >conftest.err
5975 cat conftest.err >&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); } >/dev/null; then
5978 if test -s conftest.err; then
5979 ac_cpp_err=$ac_c_preproc_warn_flag
5980 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5987 if test -z "$ac_cpp_err"; then
5988 ac_header_preproc=yes
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5993 ac_header_preproc=no
5995 rm -f conftest.err conftest.$ac_ext
5996 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5997 echo "${ECHO_T}$ac_header_preproc" >&6
5999 # So? What about this header?
6000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6003 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6005 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6006 ac_header_preproc=yes
6009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6010 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6012 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6014 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6016 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6018 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6020 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6023 ## ------------------------------------------ ##
6024 ## Report this to the AC_PACKAGE_NAME lists. ##
6025 ## ------------------------------------------ ##
6028 sed "s/^/$as_me: WARNING: /" >&2
6031 echo "$as_me:$LINENO: checking for $ac_header" >&5
6032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6033 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6034 echo $ECHO_N "(cached) $ECHO_C" >&6
6036 eval "$as_ac_Header=\$ac_header_preproc"
6038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6042 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6043 cat >>confdefs.h <<_ACEOF
6044 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6051 echo "$as_me:$LINENO: checking for term.h" >&5
6052 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
6053 if test "${ac_cv_header_term_h+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 cat >conftest.$ac_ext <<_ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6069 rm -f conftest.$ac_objext
6070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6071 (eval $ac_compile) 2>conftest.er1
6073 grep -v '^ *+' conftest.er1 >conftest.err
6075 cat conftest.err >&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try='test -z "$ac_c_werror_flag"
6079 || test ! -s conftest.err'
6080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); }; } &&
6085 { ac_try='test -s conftest.$ac_objext'
6086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }; }; then
6091 ac_cv_header_term_h=yes
6093 echo "$as_me: failed program was:" >&5
6094 sed 's/^/| /' conftest.$ac_ext >&5
6096 ac_cv_header_term_h=no
6098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6100 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
6101 echo "${ECHO_T}$ac_cv_header_term_h" >&6
6102 if test $ac_cv_header_term_h = yes; then
6103 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
6104 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
6105 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6108 ac_check_lib_save_LIBS=$LIBS
6109 LIBS="-lcurses $LIBS"
6110 cat >conftest.$ac_ext <<_ACEOF
6113 cat confdefs.h >>conftest.$ac_ext
6114 cat >>conftest.$ac_ext <<_ACEOF
6115 /* end confdefs.h. */
6117 /* Override any gcc2 internal prototype to avoid an error. */
6121 /* We use char because int might match the return type of a gcc2
6122 builtin and then its argument prototype would still apply. */
6132 rm -f conftest.$ac_objext conftest$ac_exeext
6133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6134 (eval $ac_link) 2>conftest.er1
6136 grep -v '^ *+' conftest.er1 >conftest.err
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } &&
6141 { ac_try='test -z "$ac_c_werror_flag"
6142 || test ! -s conftest.err'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; } &&
6148 { ac_try='test -s conftest$ac_exeext'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; }; then
6154 ac_cv_lib_curses_tgetent=yes
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6159 ac_cv_lib_curses_tgetent=no
6161 rm -f conftest.err conftest.$ac_objext \
6162 conftest$ac_exeext conftest.$ac_ext
6163 LIBS=$ac_check_lib_save_LIBS
6165 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
6166 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
6167 if test $ac_cv_lib_curses_tgetent = yes; then
6168 CONS_LIBS="-lcurses"
6174 cat >>confdefs.h <<\_ACEOF
6175 #define HAVE_CONIO 1
6183 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
6194 # ---------------------------------------------------
6195 # Check for readline support/directory (default off)
6196 # ---------------------------------------------------
6197 # this allows you to turn it completely off
6198 # Check whether --enable-readline or --disable-readline was given.
6199 if test "${enable_readline+set}" = set; then
6200 enableval="$enable_readline"
6201 if test x$enableval = xno; then
6208 if test x$support_readline = xyes; then
6210 # Check whether --with-readline or --without-readline was given.
6211 if test "${with_readline+set}" = set; then
6212 withval="$with_readline"
6214 case "$with_readline" in
6217 if test "$with_readline" != "yes"; then
6218 CONS_INC="-I${with_readline}"
6219 CONS_LDFLAGS="-L$with_readline"
6221 with_readline="/usr/include/readline"
6223 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
6224 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6225 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6226 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6227 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6231 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6233 # Is the header compilable?
6234 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
6235 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
6236 cat >conftest.$ac_ext <<_ACEOF
6239 cat confdefs.h >>conftest.$ac_ext
6240 cat >>conftest.$ac_ext <<_ACEOF
6241 /* end confdefs.h. */
6242 $ac_includes_default
6243 #include <${with_readline}/readline.h>
6245 rm -f conftest.$ac_objext
6246 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6247 (eval $ac_compile) 2>conftest.er1
6249 grep -v '^ *+' conftest.er1 >conftest.err
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } &&
6254 { ac_try='test -z "$ac_c_werror_flag"
6255 || test ! -s conftest.err'
6256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); }; } &&
6261 { ac_try='test -s conftest.$ac_objext'
6262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); }; }; then
6267 ac_header_compiler=yes
6269 echo "$as_me: failed program was:" >&5
6270 sed 's/^/| /' conftest.$ac_ext >&5
6272 ac_header_compiler=no
6274 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6275 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6276 echo "${ECHO_T}$ac_header_compiler" >&6
6278 # Is the header present?
6279 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6280 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6281 cat >conftest.$ac_ext <<_ACEOF
6284 cat confdefs.h >>conftest.$ac_ext
6285 cat >>conftest.$ac_ext <<_ACEOF
6286 /* end confdefs.h. */
6287 #include <${with_readline}/readline.h>
6289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6292 grep -v '^ *+' conftest.er1 >conftest.err
6294 cat conftest.err >&5
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); } >/dev/null; then
6297 if test -s conftest.err; then
6298 ac_cpp_err=$ac_c_preproc_warn_flag
6299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6306 if test -z "$ac_cpp_err"; then
6307 ac_header_preproc=yes
6309 echo "$as_me: failed program was:" >&5
6310 sed 's/^/| /' conftest.$ac_ext >&5
6312 ac_header_preproc=no
6314 rm -f conftest.err conftest.$ac_ext
6315 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6316 echo "${ECHO_T}$ac_header_preproc" >&6
6318 # So? What about this header?
6319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6321 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6322 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6323 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6324 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6325 ac_header_preproc=yes
6328 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6329 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6330 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
6331 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
6332 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6333 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6334 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6335 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6336 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6337 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6338 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6339 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6342 ## ------------------------------------------ ##
6343 ## Report this to the AC_PACKAGE_NAME lists. ##
6344 ## ------------------------------------------ ##
6347 sed "s/^/$as_me: WARNING: /" >&2
6350 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6351 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6352 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6353 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 eval "$as_ac_Header=\$ac_header_preproc"
6357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6362 cat >>confdefs.h <<\_ACEOF
6363 #define HAVE_READLINE 1
6366 CONS_LIBS="-lreadline -ltermcap"
6371 echo "readline.h not found. readline turned off ..."
6383 # check for standard readline library
6384 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6385 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6386 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6387 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6390 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6391 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6393 # Is the header compilable?
6394 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6395 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6396 cat >conftest.$ac_ext <<_ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h. */
6402 $ac_includes_default
6403 #include </usr/include/readline/readline.h>
6405 rm -f conftest.$ac_objext
6406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6407 (eval $ac_compile) 2>conftest.er1
6409 grep -v '^ *+' conftest.er1 >conftest.err
6411 cat conftest.err >&5
6412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6413 (exit $ac_status); } &&
6414 { ac_try='test -z "$ac_c_werror_flag"
6415 || test ! -s conftest.err'
6416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420 (exit $ac_status); }; } &&
6421 { ac_try='test -s conftest.$ac_objext'
6422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; }; then
6427 ac_header_compiler=yes
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.$ac_ext >&5
6432 ac_header_compiler=no
6434 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6435 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6436 echo "${ECHO_T}$ac_header_compiler" >&6
6438 # Is the header present?
6439 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6440 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6441 cat >conftest.$ac_ext <<_ACEOF
6444 cat confdefs.h >>conftest.$ac_ext
6445 cat >>conftest.$ac_ext <<_ACEOF
6446 /* end confdefs.h. */
6447 #include </usr/include/readline/readline.h>
6449 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6450 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6452 grep -v '^ *+' conftest.er1 >conftest.err
6454 cat conftest.err >&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); } >/dev/null; then
6457 if test -s conftest.err; then
6458 ac_cpp_err=$ac_c_preproc_warn_flag
6459 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6466 if test -z "$ac_cpp_err"; then
6467 ac_header_preproc=yes
6469 echo "$as_me: failed program was:" >&5
6470 sed 's/^/| /' conftest.$ac_ext >&5
6472 ac_header_preproc=no
6474 rm -f conftest.err conftest.$ac_ext
6475 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6476 echo "${ECHO_T}$ac_header_preproc" >&6
6478 # So? What about this header?
6479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6481 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6482 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6483 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6484 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6485 ac_header_preproc=yes
6488 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6489 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6490 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6491 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6492 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6493 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6494 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6495 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6496 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6497 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6498 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6499 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6502 ## ------------------------------------------ ##
6503 ## Report this to the AC_PACKAGE_NAME lists. ##
6504 ## ------------------------------------------ ##
6507 sed "s/^/$as_me: WARNING: /" >&2
6510 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6511 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6512 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6513 echo $ECHO_N "(cached) $ECHO_C" >&6
6515 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6517 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6518 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6521 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6522 cat >>confdefs.h <<\_ACEOF
6523 #define HAVE_READLINE 1
6527 CONS_INC="-I/usr/include/readline"
6528 CONS_LIBS="-lreadline -ltermcap"
6532 # Did not find standard library, so try Bacula's default
6533 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6534 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6535 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6536 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6537 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6541 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6543 # Is the header compilable?
6544 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6545 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6546 cat >conftest.$ac_ext <<_ACEOF
6549 cat confdefs.h >>conftest.$ac_ext
6550 cat >>conftest.$ac_ext <<_ACEOF
6551 /* end confdefs.h. */
6552 $ac_includes_default
6553 #include <${TOP_DIR}/depkgs/readline/readline.h>
6555 rm -f conftest.$ac_objext
6556 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6557 (eval $ac_compile) 2>conftest.er1
6559 grep -v '^ *+' conftest.er1 >conftest.err
6561 cat conftest.err >&5
6562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6563 (exit $ac_status); } &&
6564 { ac_try='test -z "$ac_c_werror_flag"
6565 || test ! -s conftest.err'
6566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); }; } &&
6571 { ac_try='test -s conftest.$ac_objext'
6572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }; }; then
6577 ac_header_compiler=yes
6579 echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6582 ac_header_compiler=no
6584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6585 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6586 echo "${ECHO_T}$ac_header_compiler" >&6
6588 # Is the header present?
6589 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6590 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6591 cat >conftest.$ac_ext <<_ACEOF
6594 cat confdefs.h >>conftest.$ac_ext
6595 cat >>conftest.$ac_ext <<_ACEOF
6596 /* end confdefs.h. */
6597 #include <${TOP_DIR}/depkgs/readline/readline.h>
6599 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6600 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6602 grep -v '^ *+' conftest.er1 >conftest.err
6604 cat conftest.err >&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); } >/dev/null; then
6607 if test -s conftest.err; then
6608 ac_cpp_err=$ac_c_preproc_warn_flag
6609 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6616 if test -z "$ac_cpp_err"; then
6617 ac_header_preproc=yes
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6622 ac_header_preproc=no
6624 rm -f conftest.err conftest.$ac_ext
6625 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6626 echo "${ECHO_T}$ac_header_preproc" >&6
6628 # So? What about this header?
6629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6631 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6632 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6633 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6634 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6635 ac_header_preproc=yes
6638 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6639 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6640 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6641 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6642 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6643 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6644 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6645 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6646 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6647 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6648 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6649 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6652 ## ------------------------------------------ ##
6653 ## Report this to the AC_PACKAGE_NAME lists. ##
6654 ## ------------------------------------------ ##
6657 sed "s/^/$as_me: WARNING: /" >&2
6660 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6661 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6662 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6663 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 eval "$as_ac_Header=\$ac_header_preproc"
6667 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6668 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6672 cat >>confdefs.h <<\_ACEOF
6673 #define HAVE_READLINE 1
6677 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6678 CONS_LIBS="-lreadline -lhistory -ltermcap"
6679 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6680 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6684 echo "readline.h not found. readline turned off ..."
6710 # Minimal stuff for readline Makefile configuration
6713 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6714 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6715 if test "${ac_cv_header_stat_broken+set}" = set; then
6716 echo $ECHO_N "(cached) $ECHO_C" >&6
6718 cat >conftest.$ac_ext <<_ACEOF
6721 cat confdefs.h >>conftest.$ac_ext
6722 cat >>conftest.$ac_ext <<_ACEOF
6723 /* end confdefs.h. */
6724 #include <sys/types.h>
6725 #include <sys/stat.h>
6727 #if defined(S_ISBLK) && defined(S_IFDIR)
6728 # if S_ISBLK (S_IFDIR)
6733 #if defined(S_ISBLK) && defined(S_IFCHR)
6734 # if S_ISBLK (S_IFCHR)
6739 #if defined(S_ISLNK) && defined(S_IFREG)
6740 # if S_ISLNK (S_IFREG)
6745 #if defined(S_ISSOCK) && defined(S_IFREG)
6746 # if S_ISSOCK (S_IFREG)
6752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6753 $EGREP "You lose" >/dev/null 2>&1; then
6754 ac_cv_header_stat_broken=yes
6756 ac_cv_header_stat_broken=no
6761 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6762 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6763 if test $ac_cv_header_stat_broken = yes; then
6765 cat >>confdefs.h <<\_ACEOF
6766 #define STAT_MACROS_BROKEN 1
6777 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6778 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6779 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6780 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6781 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6782 echo $ECHO_N "(cached) $ECHO_C" >&6
6784 cat >conftest.$ac_ext <<_ACEOF
6787 cat confdefs.h >>conftest.$ac_ext
6788 cat >>conftest.$ac_ext <<_ACEOF
6789 /* end confdefs.h. */
6790 #include <sys/types.h>
6802 rm -f conftest.$ac_objext
6803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6804 (eval $ac_compile) 2>conftest.er1
6806 grep -v '^ *+' conftest.er1 >conftest.err
6808 cat conftest.err >&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } &&
6811 { ac_try='test -z "$ac_c_werror_flag"
6812 || test ! -s conftest.err'
6813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; } &&
6818 { ac_try='test -s conftest.$ac_objext'
6819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; }; then
6824 eval "$as_ac_Header=yes"
6826 echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6829 eval "$as_ac_Header=no"
6831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6836 cat >>confdefs.h <<_ACEOF
6837 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6840 ac_header_dirent=$ac_hdr; break
6844 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6845 if test $ac_header_dirent = dirent.h; then
6846 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6847 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6848 if test "${ac_cv_search_opendir+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 ac_func_search_save_LIBS=$LIBS
6852 ac_cv_search_opendir=no
6853 cat >conftest.$ac_ext <<_ACEOF
6856 cat confdefs.h >>conftest.$ac_ext
6857 cat >>conftest.$ac_ext <<_ACEOF
6858 /* end confdefs.h. */
6860 /* Override any gcc2 internal prototype to avoid an error. */
6864 /* We use char because int might match the return type of a gcc2
6865 builtin and then its argument prototype would still apply. */
6875 rm -f conftest.$ac_objext conftest$ac_exeext
6876 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6877 (eval $ac_link) 2>conftest.er1
6879 grep -v '^ *+' conftest.er1 >conftest.err
6881 cat conftest.err >&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } &&
6884 { ac_try='test -z "$ac_c_werror_flag"
6885 || test ! -s conftest.err'
6886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; } &&
6891 { ac_try='test -s conftest$ac_exeext'
6892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6897 ac_cv_search_opendir="none required"
6899 echo "$as_me: failed program was:" >&5
6900 sed 's/^/| /' conftest.$ac_ext >&5
6903 rm -f conftest.err conftest.$ac_objext \
6904 conftest$ac_exeext conftest.$ac_ext
6905 if test "$ac_cv_search_opendir" = no; then
6906 for ac_lib in dir; do
6907 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6908 cat >conftest.$ac_ext <<_ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h. */
6915 /* Override any gcc2 internal prototype to avoid an error. */
6919 /* We use char because int might match the return type of a gcc2
6920 builtin and then its argument prototype would still apply. */
6930 rm -f conftest.$ac_objext conftest$ac_exeext
6931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6932 (eval $ac_link) 2>conftest.er1
6934 grep -v '^ *+' conftest.er1 >conftest.err
6936 cat conftest.err >&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } &&
6939 { ac_try='test -z "$ac_c_werror_flag"
6940 || test ! -s conftest.err'
6941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); }; } &&
6946 { ac_try='test -s conftest$ac_exeext'
6947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); }; }; then
6952 ac_cv_search_opendir="-l$ac_lib"
6955 echo "$as_me: failed program was:" >&5
6956 sed 's/^/| /' conftest.$ac_ext >&5
6959 rm -f conftest.err conftest.$ac_objext \
6960 conftest$ac_exeext conftest.$ac_ext
6963 LIBS=$ac_func_search_save_LIBS
6965 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6966 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6967 if test "$ac_cv_search_opendir" != no; then
6968 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6973 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6974 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6975 if test "${ac_cv_search_opendir+set}" = set; then
6976 echo $ECHO_N "(cached) $ECHO_C" >&6
6978 ac_func_search_save_LIBS=$LIBS
6979 ac_cv_search_opendir=no
6980 cat >conftest.$ac_ext <<_ACEOF
6983 cat confdefs.h >>conftest.$ac_ext
6984 cat >>conftest.$ac_ext <<_ACEOF
6985 /* end confdefs.h. */
6987 /* Override any gcc2 internal prototype to avoid an error. */
6991 /* We use char because int might match the return type of a gcc2
6992 builtin and then its argument prototype would still apply. */
7002 rm -f conftest.$ac_objext conftest$ac_exeext
7003 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7004 (eval $ac_link) 2>conftest.er1
7006 grep -v '^ *+' conftest.er1 >conftest.err
7008 cat conftest.err >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); } &&
7011 { ac_try='test -z "$ac_c_werror_flag"
7012 || test ! -s conftest.err'
7013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); }; } &&
7018 { ac_try='test -s conftest$ac_exeext'
7019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); }; }; then
7024 ac_cv_search_opendir="none required"
7026 echo "$as_me: failed program was:" >&5
7027 sed 's/^/| /' conftest.$ac_ext >&5
7030 rm -f conftest.err conftest.$ac_objext \
7031 conftest$ac_exeext conftest.$ac_ext
7032 if test "$ac_cv_search_opendir" = no; then
7034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7035 cat >conftest.$ac_ext <<_ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h. */
7042 /* Override any gcc2 internal prototype to avoid an error. */
7046 /* We use char because int might match the return type of a gcc2
7047 builtin and then its argument prototype would still apply. */
7057 rm -f conftest.$ac_objext conftest$ac_exeext
7058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7059 (eval $ac_link) 2>conftest.er1
7061 grep -v '^ *+' conftest.er1 >conftest.err
7063 cat conftest.err >&5
7064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7065 (exit $ac_status); } &&
7066 { ac_try='test -z "$ac_c_werror_flag"
7067 || test ! -s conftest.err'
7068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; } &&
7073 { ac_try='test -s conftest$ac_exeext'
7074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); }; }; then
7079 ac_cv_search_opendir="-l$ac_lib"
7082 echo "$as_me: failed program was:" >&5
7083 sed 's/^/| /' conftest.$ac_ext >&5
7086 rm -f conftest.err conftest.$ac_objext \
7087 conftest$ac_exeext conftest.$ac_ext
7090 LIBS=$ac_func_search_save_LIBS
7092 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7093 echo "${ECHO_T}$ac_cv_search_opendir" >&6
7094 if test "$ac_cv_search_opendir" != no; then
7095 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
7109 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
7111 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7112 echo "$as_me:$LINENO: checking for $ac_func" >&5
7113 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7114 if eval "test \"\${$as_ac_var+set}\" = set"; then
7115 echo $ECHO_N "(cached) $ECHO_C" >&6
7117 cat >conftest.$ac_ext <<_ACEOF
7120 cat confdefs.h >>conftest.$ac_ext
7121 cat >>conftest.$ac_ext <<_ACEOF
7122 /* end confdefs.h. */
7123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7125 #define $ac_func innocuous_$ac_func
7127 /* System header to define __stub macros and hopefully few prototypes,
7128 which can conflict with char $ac_func (); below.
7129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7130 <limits.h> exists even on freestanding compilers. */
7133 # include <limits.h>
7135 # include <assert.h>
7140 /* Override any gcc2 internal prototype to avoid an error. */
7145 /* We use char because int might match the return type of a gcc2
7146 builtin and then its argument prototype would still apply. */
7148 /* The GNU C library defines this for functions which it implements
7149 to always fail with ENOSYS. Some functions are actually named
7150 something starting with __ and the normal name is an alias. */
7151 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7154 char (*f) () = $ac_func;
7163 return f != $ac_func;
7168 rm -f conftest.$ac_objext conftest$ac_exeext
7169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7170 (eval $ac_link) 2>conftest.er1
7172 grep -v '^ *+' conftest.er1 >conftest.err
7174 cat conftest.err >&5
7175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176 (exit $ac_status); } &&
7177 { ac_try='test -z "$ac_c_werror_flag"
7178 || test ! -s conftest.err'
7179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7183 (exit $ac_status); }; } &&
7184 { ac_try='test -s conftest$ac_exeext'
7185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7189 (exit $ac_status); }; }; then
7190 eval "$as_ac_var=yes"
7192 echo "$as_me: failed program was:" >&5
7193 sed 's/^/| /' conftest.$ac_ext >&5
7195 eval "$as_ac_var=no"
7197 rm -f conftest.err conftest.$ac_objext \
7198 conftest$ac_exeext conftest.$ac_ext
7200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7201 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7202 if test `eval echo '${'$as_ac_var'}'` = yes; then
7203 cat >>confdefs.h <<_ACEOF
7204 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7212 for ac_func in nanosleep nl_langinfo
7214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7215 echo "$as_me:$LINENO: checking for $ac_func" >&5
7216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7217 if eval "test \"\${$as_ac_var+set}\" = set"; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 cat >conftest.$ac_ext <<_ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7228 #define $ac_func innocuous_$ac_func
7230 /* System header to define __stub macros and hopefully few prototypes,
7231 which can conflict with char $ac_func (); below.
7232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7233 <limits.h> exists even on freestanding compilers. */
7236 # include <limits.h>
7238 # include <assert.h>
7243 /* Override any gcc2 internal prototype to avoid an error. */
7248 /* We use char because int might match the return type of a gcc2
7249 builtin and then its argument prototype would still apply. */
7251 /* The GNU C library defines this for functions which it implements
7252 to always fail with ENOSYS. Some functions are actually named
7253 something starting with __ and the normal name is an alias. */
7254 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7257 char (*f) () = $ac_func;
7266 return f != $ac_func;
7271 rm -f conftest.$ac_objext conftest$ac_exeext
7272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7273 (eval $ac_link) 2>conftest.er1
7275 grep -v '^ *+' conftest.er1 >conftest.err
7277 cat conftest.err >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } &&
7280 { ac_try='test -z "$ac_c_werror_flag"
7281 || test ! -s conftest.err'
7282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); }; } &&
7287 { ac_try='test -s conftest$ac_exeext'
7288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); }; }; then
7293 eval "$as_ac_var=yes"
7295 echo "$as_me: failed program was:" >&5
7296 sed 's/^/| /' conftest.$ac_ext >&5
7298 eval "$as_ac_var=no"
7300 rm -f conftest.err conftest.$ac_objext \
7301 conftest$ac_exeext conftest.$ac_ext
7303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7304 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7305 if test `eval echo '${'$as_ac_var'}'` = yes; then
7306 cat >>confdefs.h <<_ACEOF
7307 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7314 for ac_header in varargs.h
7316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7318 echo "$as_me:$LINENO: checking for $ac_header" >&5
7319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7326 # Is the header compilable?
7327 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7329 cat >conftest.$ac_ext <<_ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335 $ac_includes_default
7336 #include <$ac_header>
7338 rm -f conftest.$ac_objext
7339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7340 (eval $ac_compile) 2>conftest.er1
7342 grep -v '^ *+' conftest.er1 >conftest.err
7344 cat conftest.err >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } &&
7347 { ac_try='test -z "$ac_c_werror_flag"
7348 || test ! -s conftest.err'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; } &&
7354 { ac_try='test -s conftest.$ac_objext'
7355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }; }; then
7360 ac_header_compiler=yes
7362 echo "$as_me: failed program was:" >&5
7363 sed 's/^/| /' conftest.$ac_ext >&5
7365 ac_header_compiler=no
7367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7368 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7369 echo "${ECHO_T}$ac_header_compiler" >&6
7371 # Is the header present?
7372 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7374 cat >conftest.$ac_ext <<_ACEOF
7377 cat confdefs.h >>conftest.$ac_ext
7378 cat >>conftest.$ac_ext <<_ACEOF
7379 /* end confdefs.h. */
7380 #include <$ac_header>
7382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7385 grep -v '^ *+' conftest.er1 >conftest.err
7387 cat conftest.err >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } >/dev/null; then
7390 if test -s conftest.err; then
7391 ac_cpp_err=$ac_c_preproc_warn_flag
7392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7399 if test -z "$ac_cpp_err"; then
7400 ac_header_preproc=yes
7402 echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7405 ac_header_preproc=no
7407 rm -f conftest.err conftest.$ac_ext
7408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7409 echo "${ECHO_T}$ac_header_preproc" >&6
7411 # So? What about this header?
7412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7418 ac_header_preproc=yes
7421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7424 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7428 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7435 ## ------------------------------------------ ##
7436 ## Report this to the AC_PACKAGE_NAME lists. ##
7437 ## ------------------------------------------ ##
7440 sed "s/^/$as_me: WARNING: /" >&2
7443 echo "$as_me:$LINENO: checking for $ac_header" >&5
7444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7446 echo $ECHO_N "(cached) $ECHO_C" >&6
7448 eval "$as_ac_Header=\$ac_header_preproc"
7450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7455 cat >>confdefs.h <<_ACEOF
7456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7464 # End of readline/conio stuff
7465 # -----------------------------------------------------------------------
7467 # -----------------------------------------------------------------------
7468 # Check for Python support
7470 echo "$as_me:$LINENO: checking for Python support" >&5
7471 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7473 # Check whether --with-python or --without-python was given.
7474 if test "${with_python+set}" = set; then
7475 withval="$with_python"
7479 if test "$withval" != "no"; then
7480 if test "$withval" = "yes"; then
7481 if test -f /usr/include/python2.2/Python.h; then
7482 PYTHON_INCDIR=-I/usr/include/python2.2
7483 PYTHON_LIBS="-L/usr/lib/python2.2/config -lpython2.2 -lutil -ldl"
7484 elif test -f /usr/include/python2.3/Python.h; then
7485 PYTHON_INCDIR=-I/usr/include/python2.3
7486 PYTHON_LIBS="-L/usr/lib/python2.3/config -lpython2.3 -lutil -ldl"
7487 elif test -f /usr/include/python2.4/Python.h; then
7488 PYTHON_INCDIR=-I/usr/include/python2.4
7489 PYTHON_LIBS="-L/usr/lib/python2.4/config -lpython2.4 -lutil -ldl"
7490 elif test -f $prefix/include/Python.h; then
7491 PYTHON_INCDIR=-I$prefix/include
7492 PYTHON_LIBS="-L$prefix/lib/config -lpython -lutil -ldl"
7494 echo "$as_me:$LINENO: result: no" >&5
7495 echo "${ECHO_T}no" >&6
7496 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7497 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7498 { (exit 1); exit 1; }; }
7501 if test -f $withval/Python.h; then
7502 PYTHON_INCDIR=-I$withval
7503 PYTHON_LIBS="-L$withval/config -lpython -lutil -ldl"
7504 elif test -f $withval/include/Python.h; then
7505 PYTHON_INCDIR=-I$withval/include
7506 PYTHON_LIBS="-L$withval/lib/config -lpython -lutil -ldl"
7508 echo "$as_me:$LINENO: result: no" >&5
7509 echo "${ECHO_T}no" >&6
7510 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7511 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7512 { (exit 1); exit 1; }; }
7515 cat >>confdefs.h <<\_ACEOF
7516 #define HAVE_PYTHON 1
7519 echo "$as_me:$LINENO: result: yes" >&5
7520 echo "${ECHO_T}yes" >&6
7524 echo "$as_me:$LINENO: result: no" >&5
7525 echo "${ECHO_T}no" >&6
7530 echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6
7538 # -------------------------------------------
7539 # check for cdrecord writer location
7540 # get scsibus,target,lun
7541 # -------------------------------------------
7543 if test ! x$CDRECORD = x ; then
7544 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD-RW | ${AWK} '{print $1}'`
7545 if test x${CDSTL} = x ; then
7546 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep CD+RW | ${AWK} '{print $1}'`
7548 if test x${CDSTL} = x ; then
7549 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep DVD+RW | ${AWK} '{print $1}'`
7551 if test x${CDSTL} = x ; then
7552 CDSTL=`${CDRECORD} -scanbus 2>/dev/null | grep DVD-RW | ${AWK} '{print $1}'`
7554 if test x${CDSTL} = x ; then
7562 # Find where sockets are (especially for Solaris)
7563 # Do this before the TCP Wrappers test since tcp wrappers
7564 # uses the socket library and some linkers are stupid.
7566 echo "$as_me:$LINENO: checking for socket" >&5
7567 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7568 if test "${ac_cv_func_socket+set}" = set; then
7569 echo $ECHO_N "(cached) $ECHO_C" >&6
7571 cat >conftest.$ac_ext <<_ACEOF
7574 cat confdefs.h >>conftest.$ac_ext
7575 cat >>conftest.$ac_ext <<_ACEOF
7576 /* end confdefs.h. */
7577 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7579 #define socket innocuous_socket
7581 /* System header to define __stub macros and hopefully few prototypes,
7582 which can conflict with char socket (); below.
7583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7584 <limits.h> exists even on freestanding compilers. */
7587 # include <limits.h>
7589 # include <assert.h>
7594 /* Override any gcc2 internal prototype to avoid an error. */
7599 /* We use char because int might match the return type of a gcc2
7600 builtin and then its argument prototype would still apply. */
7602 /* The GNU C library defines this for functions which it implements
7603 to always fail with ENOSYS. Some functions are actually named
7604 something starting with __ and the normal name is an alias. */
7605 #if defined (__stub_socket) || defined (__stub___socket)
7608 char (*f) () = socket;
7622 rm -f conftest.$ac_objext conftest$ac_exeext
7623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7624 (eval $ac_link) 2>conftest.er1
7626 grep -v '^ *+' conftest.er1 >conftest.err
7628 cat conftest.err >&5
7629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7630 (exit $ac_status); } &&
7631 { ac_try='test -z "$ac_c_werror_flag"
7632 || test ! -s conftest.err'
7633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); }; } &&
7638 { ac_try='test -s conftest$ac_exeext'
7639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; }; then
7644 ac_cv_func_socket=yes
7646 echo "$as_me: failed program was:" >&5
7647 sed 's/^/| /' conftest.$ac_ext >&5
7649 ac_cv_func_socket=no
7651 rm -f conftest.err conftest.$ac_objext \
7652 conftest$ac_exeext conftest.$ac_ext
7654 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7655 echo "${ECHO_T}$ac_cv_func_socket" >&6
7656 if test $ac_cv_func_socket = yes; then
7657 echo "$as_me:$LINENO: result: using libc's socket" >&5
7658 echo "${ECHO_T}using libc's socket" >&6
7661 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7662 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7663 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 ac_check_lib_save_LIBS=$LIBS
7668 cat >conftest.$ac_ext <<_ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7675 /* Override any gcc2 internal prototype to avoid an error. */
7679 /* We use char because int might match the return type of a gcc2
7680 builtin and then its argument prototype would still apply. */
7690 rm -f conftest.$ac_objext conftest$ac_exeext
7691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7692 (eval $ac_link) 2>conftest.er1
7694 grep -v '^ *+' conftest.er1 >conftest.err
7696 cat conftest.err >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } &&
7699 { ac_try='test -z "$ac_c_werror_flag"
7700 || test ! -s conftest.err'
7701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }; } &&
7706 { ac_try='test -s conftest$ac_exeext'
7707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); }; }; then
7712 ac_cv_lib_xnet_socket=yes
7714 echo "$as_me: failed program was:" >&5
7715 sed 's/^/| /' conftest.$ac_ext >&5
7717 ac_cv_lib_xnet_socket=no
7719 rm -f conftest.err conftest.$ac_objext \
7720 conftest$ac_exeext conftest.$ac_ext
7721 LIBS=$ac_check_lib_save_LIBS
7723 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7724 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7725 if test $ac_cv_lib_xnet_socket = yes; then
7726 cat >>confdefs.h <<_ACEOF
7727 #define HAVE_LIBXNET 1
7735 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7736 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7737 if test "${ac_cv_lib_socket_socket+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 ac_check_lib_save_LIBS=$LIBS
7741 LIBS="-lsocket $LIBS"
7742 cat >conftest.$ac_ext <<_ACEOF
7745 cat confdefs.h >>conftest.$ac_ext
7746 cat >>conftest.$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7749 /* Override any gcc2 internal prototype to avoid an error. */
7753 /* We use char because int might match the return type of a gcc2
7754 builtin and then its argument prototype would still apply. */
7764 rm -f conftest.$ac_objext conftest$ac_exeext
7765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7766 (eval $ac_link) 2>conftest.er1
7768 grep -v '^ *+' conftest.er1 >conftest.err
7770 cat conftest.err >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } &&
7773 { ac_try='test -z "$ac_c_werror_flag"
7774 || test ! -s conftest.err'
7775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7779 (exit $ac_status); }; } &&
7780 { ac_try='test -s conftest$ac_exeext'
7781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); }; }; then
7786 ac_cv_lib_socket_socket=yes
7788 echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7791 ac_cv_lib_socket_socket=no
7793 rm -f conftest.err conftest.$ac_objext \
7794 conftest$ac_exeext conftest.$ac_ext
7795 LIBS=$ac_check_lib_save_LIBS
7797 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7798 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7799 if test $ac_cv_lib_socket_socket = yes; then
7800 cat >>confdefs.h <<_ACEOF
7801 #define HAVE_LIBSOCKET 1
7804 LIBS="-lsocket $LIBS"
7809 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7810 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7811 if test "${ac_cv_lib_inet_socket+set}" = set; then
7812 echo $ECHO_N "(cached) $ECHO_C" >&6
7814 ac_check_lib_save_LIBS=$LIBS
7816 cat >conftest.$ac_ext <<_ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h. */
7823 /* Override any gcc2 internal prototype to avoid an error. */
7827 /* We use char because int might match the return type of a gcc2
7828 builtin and then its argument prototype would still apply. */
7838 rm -f conftest.$ac_objext conftest$ac_exeext
7839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7840 (eval $ac_link) 2>conftest.er1
7842 grep -v '^ *+' conftest.er1 >conftest.err
7844 cat conftest.err >&5
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); } &&
7847 { ac_try='test -z "$ac_c_werror_flag"
7848 || test ! -s conftest.err'
7849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); }; } &&
7854 { ac_try='test -s conftest$ac_exeext'
7855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; }; then
7860 ac_cv_lib_inet_socket=yes
7862 echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7865 ac_cv_lib_inet_socket=no
7867 rm -f conftest.err conftest.$ac_objext \
7868 conftest$ac_exeext conftest.$ac_ext
7869 LIBS=$ac_check_lib_save_LIBS
7871 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7872 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7873 if test $ac_cv_lib_inet_socket = yes; then
7874 cat >>confdefs.h <<_ACEOF
7875 #define HAVE_LIBINET 1
7886 # -----------------------------------------------------------
7887 # Check whether user wants TCP wrappers support (default off)
7888 # -----------------------------------------------------------
7891 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7892 if test "${with_tcp_wrappers+set}" = set; then
7893 withval="$with_tcp_wrappers"
7895 if test "x$withval" != "xno" ; then
7897 LIBS="$saved_LIBS -lwrap"
7898 echo "$as_me:$LINENO: checking for libwrap" >&5
7899 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7900 cat >conftest.$ac_ext <<_ACEOF
7903 cat confdefs.h >>conftest.$ac_ext
7904 cat >>conftest.$ac_ext <<_ACEOF
7905 /* end confdefs.h. */
7907 int deny_severity = 0;
7908 int allow_severity = 0;
7909 struct request_info *req;
7918 rm -f conftest.$ac_objext conftest$ac_exeext
7919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7920 (eval $ac_link) 2>conftest.er1
7922 grep -v '^ *+' conftest.er1 >conftest.err
7924 cat conftest.err >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); } &&
7927 { ac_try='test -z "$ac_c_werror_flag"
7928 || test ! -s conftest.err'
7929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); }; } &&
7934 { ac_try='test -s conftest$ac_exeext'
7935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); }; }; then
7941 echo "$as_me:$LINENO: result: yes" >&5
7942 echo "${ECHO_T}yes" >&6
7943 cat >>confdefs.h <<\_ACEOF
7944 #define HAVE_LIBWRAP 1
7950 echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.$ac_ext >&5
7954 LIBS="$saved_LIBS -lwrap -lnsl"
7955 cat >conftest.$ac_ext <<_ACEOF
7958 cat confdefs.h >>conftest.$ac_ext
7959 cat >>conftest.$ac_ext <<_ACEOF
7960 /* end confdefs.h. */
7962 int deny_severity = 0;
7963 int allow_severity = 0;
7964 struct request_info *req;
7973 rm -f conftest.$ac_objext conftest$ac_exeext
7974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7975 (eval $ac_link) 2>conftest.er1
7977 grep -v '^ *+' conftest.er1 >conftest.err
7979 cat conftest.err >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } &&
7982 { ac_try='test -z "$ac_c_werror_flag"
7983 || test ! -s conftest.err'
7984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); }; } &&
7989 { ac_try='test -s conftest$ac_exeext'
7990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; }; then
7996 echo "$as_me:$LINENO: result: yes" >&5
7997 echo "${ECHO_T}yes" >&6
7998 cat >>confdefs.h <<\_ACEOF
7999 #define HAVE_LIBWRAP 1
8005 echo "$as_me: failed program was:" >&5
8006 sed 's/^/| /' conftest.$ac_ext >&5
8008 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
8009 echo "$as_me: error: *** libwrap missing" >&2;}
8010 { (exit 1); exit 1; }; }
8013 rm -f conftest.err conftest.$ac_objext \
8014 conftest$ac_exeext conftest.$ac_ext
8017 rm -f conftest.err conftest.$ac_objext \
8018 conftest$ac_exeext conftest.$ac_ext
8024 # ------------------------------------------
8025 # Where to place working dir
8026 # ------------------------------------------
8027 working_dir=`eval echo ${prefix}/var/bacula/working`
8029 # Check whether --with-working-dir or --without-working-dir was given.
8030 if test "${with_working_dir+set}" = set; then
8031 withval="$with_working_dir"
8033 if test "x$withval" != "xno" ; then
8034 working_dir=$withval
8043 # ------------------------------------------
8044 # Where to place scriptdir (script files)
8045 # ------------------------------------------
8046 scriptdir=`eval echo ${sysconfdir}`
8048 # Check whether --with-scriptdir or --without-scriptdir was given.
8049 if test "${with_scriptdir+set}" = set; then
8050 withval="$with_scriptdir"
8052 if test "x$withval" != "xno" ; then
8062 # ------------------------------------------
8063 # Where to send dump email
8064 # ------------------------------------------
8065 dump_email=root@localhost
8067 # Check whether --with-dump-email or --without-dump-email was given.
8068 if test "${with_dump_email+set}" = set; then
8069 withval="$with_dump_email"
8071 if test "x$withval" != "xno" ; then
8080 # ------------------------------------------
8081 # Where to send job email
8082 # ------------------------------------------
8083 job_email=root@localhost
8085 # Check whether --with-job-email or --without-job-email was given.
8086 if test "${with_job_email+set}" = set; then
8087 withval="$with_job_email"
8089 if test "x$withval" != "xno" ; then
8098 # ------------------------------------------
8099 # Where to find smtp host
8100 # ------------------------------------------
8103 # Check whether --with-smtp_host or --without-smtp_host was given.
8104 if test "${with_smtp_host+set}" = set; then
8105 withval="$with_smtp_host"
8107 if test "x$withval" != "xno" ; then
8117 # ------------------------------------
8118 # Where to place pid files
8119 # ------------------------------------
8122 # Check whether --with-pid-dir or --without-pid-dir was given.
8123 if test "${with_pid_dir+set}" = set; then
8124 withval="$with_pid_dir"
8126 if test "x$withval" != "xno" ; then
8133 cat >>confdefs.h <<_ACEOF
8134 #define _PATH_BACULA_PIDDIR "$piddir"
8140 # ------------------------------------
8141 # Where to place subsys "lock file"
8142 # ------------------------------------
8143 subsysdir=/var/run/subsys
8145 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8146 if test "${with_subsys_dir+set}" = set; then
8147 withval="$with_subsys_dir"
8149 if test "x$withval" != "xno" ; then
8160 # ------------------------------------
8161 # Where to start assigning ports
8162 # ------------------------------------
8165 # Check whether --with-baseport or --without-baseport was given.
8166 if test "${with_baseport+set}" = set; then
8167 withval="$with_baseport"
8169 if test "x$withval" != "xno" ; then
8177 dir_port=`expr $baseport`
8178 fd_port=`expr $baseport + 1`
8179 sd_port=`expr $fd_port + 1`
8186 # ------------------------------------------
8187 # Generate passwords
8188 # ------------------------------------------
8191 # Check whether --with-dir-password or --without-dir-password was given.
8192 if test "${with_dir_password+set}" = set; then
8193 withval="$with_dir_password"
8195 if test "x$withval" != "xno" ; then
8196 dir_password=$withval
8202 if test "x$dir_password" = "x" ; then
8203 if test "x$OPENSSL" = "xnone" ; then
8204 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8205 key=`autoconf/randpass 33`
8207 key=`openssl rand -base64 33`
8214 # Check whether --with-fd-password or --without-fd-password was given.
8215 if test "${with_fd_password+set}" = set; then
8216 withval="$with_fd_password"
8218 if test "x$withval" != "xno" ; then
8219 fd_password=$withval
8225 if test "x$fd_password" = "x" ; then
8226 if test "x$OPENSSL" = "xnone" ; then
8227 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8228 key=`autoconf/randpass 37`
8230 key=`openssl rand -base64 33`
8237 # Check whether --with-sd-password or --without-sd-password was given.
8238 if test "${with_sd_password+set}" = set; then
8239 withval="$with_sd_password"
8241 if test "x$withval" != "xno" ; then
8242 sd_password=$withval
8248 if test "x$sd_password" = "x" ; then
8249 if test "x$OPENSSL" = "xnone" ; then
8250 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8251 key=`autoconf/randpass 41`
8253 key=`openssl rand -base64 33`
8260 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8261 if test "${with_mon_dir_password+set}" = set; then
8262 withval="$with_mon_dir_password"
8264 if test "x$withval" != "xno" ; then
8265 mon_dir_password=$withval
8271 if test "x$mon_dir_password" = "x" ; then
8272 if test "x$OPENSSL" = "xnone" ; then
8273 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" abcdefghijklmnopqrst | awk '{getline} {print} {exit}'`
8274 key=`autoconf/randpass 33`
8276 key=`openssl rand -base64 33`
8278 mon_dir_password=$key
8283 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8284 if test "${with_mon_fd_password+set}" = set; then
8285 withval="$with_mon_fd_password"
8287 if test "x$withval" != "xno" ; then
8288 mon_fd_password=$withval
8294 if test "x$mon_fd_password" = "x" ; then
8295 if test "x$OPENSSL" = "xnone" ; then
8296 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" tsrqponmlkjihgfedcba | awk '{getline} {print} {exit}'`
8297 key=`autoconf/randpass 37`
8299 key=`openssl rand -base64 33`
8301 mon_fd_password=$key
8306 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8307 if test "${with_mon_sd_password+set}" = set; then
8308 withval="$with_mon_sd_password"
8310 if test "x$withval" != "xno" ; then
8311 mon_sd_password=$withval
8317 if test "x$mon_sd_password" = "x" ; then
8318 if test "x$OPENSSL" = "xnone" ; then
8319 # key=`date | uuencode /dev/stdout | tr "\"@\\\`\\ \\=\\,\\(\\)\\#\\.\\!\\-$'" 123456789uvwxyzabcdef | awk '{getline} {print} {exit}'`
8320 key=`autoconf/randpass 41`
8322 key=`openssl rand -base64 33`
8324 mon_sd_password=$key
8334 # -------------------------------------------------------------------------
8335 # Set variables for bimagemgr installation
8336 # -------------------------------------------------------------------------
8337 bimagemgr_cgidir=/var/www/cgi-bin
8339 # Check whether --with-bimagemgr-cgidir or --without-bimagemgr-cgidir was given.
8340 if test "${with_bimagemgr_cgidir+set}" = set; then
8341 withval="$with_bimagemgr_cgidir"
8343 if test "x$withval" != "xno" ; then
8344 bimagemgr_cgidir=$withval
8350 bimagemgr_docdir=/var/www/html
8352 # Check whether --with-bimagemgr-docdir or --without-bimagemgr-docdir was given.
8353 if test "${with_bimagemgr_docdir+set}" = set; then
8354 withval="$with_bimagemgr_docdir"
8356 if test "x$withval" != "xno" ; then
8357 bimagemgr_docdir=$withval
8363 bimagemgr_binowner=root
8365 # Check whether --with-bimagemgr-binowner or --without-bimagemgr-binowner was given.
8366 if test "${with_bimagemgr_binowner+set}" = set; then
8367 withval="$with_bimagemgr_binowner"
8369 if test "x$withval" != "xno" ; then
8370 bimagemgr_binowner=$withval
8376 bimagemgr_bingroup=root
8378 # Check whether --with-bimagemgr-bingroup or --without-bimagemgr-bingroup was given.
8379 if test "${with_bimagemgr_bingroup+set}" = set; then
8380 withval="$with_bimagemgr_bingroup"
8382 if test "x$withval" != "xno" ; then
8383 bimagemgr_bingroup=$withval
8389 bimagemgr_dataowner=apache
8391 # Check whether --with-bimagemgr-dataowner or --without-bimagemgr-dataowner was given.
8392 if test "${with_bimagemgr_dataowner+set}" = set; then
8393 withval="$with_bimagemgr_dataowner"
8395 if test "x$withval" != "xno" ; then
8396 bimagemgr_dataowner=$withval
8402 bimagemgr_datagroup=apache
8404 # Check whether --with-bimagemgr-datagroup or --without-bimagemgr-datagroup was given.
8405 if test "${with_bimagemgr_datagroup+set}" = set; then
8406 withval="$with_bimagemgr_datagroup"
8408 if test "x$withval" != "xno" ; then
8409 bimagemgr_datagroup=$withval
8423 # Handle users and groups for each daemon
8427 # Check whether --with-dir_user or --without-dir_user was given.
8428 if test "${with_dir_user+set}" = set; then
8429 withval="$with_dir_user"
8431 if test "x$withval" != "x" ; then
8440 # Check whether --with-dir_group or --without-dir_group was given.
8441 if test "${with_dir_group+set}" = set; then
8442 withval="$with_dir_group"
8444 if test "x$withval" != "x" ; then
8453 # Check whether --with-sd_user or --without-sd_user was given.
8454 if test "${with_sd_user+set}" = set; then
8455 withval="$with_sd_user"
8457 if test "x$withval" != "x" ; then
8466 # Check whether --with-sd_group or --without-sd_group was given.
8467 if test "${with_sd_group+set}" = set; then
8468 withval="$with_sd_group"
8470 if test "x$withval" != "x" ; then
8479 # Check whether --with-fd_user or --without-fd_user was given.
8480 if test "${with_fd_user+set}" = set; then
8481 withval="$with_fd_user"
8483 if test "x$withval" != "x" ; then
8492 # Check whether --with-fd_group or --without-fd_group was given.
8493 if test "${with_fd_group+set}" = set; then
8494 withval="$with_fd_group"
8496 if test "x$withval" != "x" ; then
8514 # allow setting default executable permissions
8518 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8519 if test "${with_sbin_perm+set}" = set; then
8520 withval="$with_sbin_perm"
8522 if test "x$withval" != "x" ; then
8531 # ------------------------------------------------
8532 # Bacula check for various SQL database engines
8533 # ------------------------------------------------
8536 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8537 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8539 # Check whether --with-postgresql or --without-postgresql was given.
8540 if test "${with_postgresql+set}" = set; then
8541 withval="$with_postgresql"
8543 if test "$withval" != "no"; then
8544 if test "$db_found" = "yes"; then
8545 echo "$as_me:$LINENO: result: error" >&5
8546 echo "${ECHO_T}error" >&6
8547 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8548 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8549 { (exit 1); exit 1; }; };
8551 if test "$withval" = "yes"; then
8552 if test -f /usr/local/include/libpq-fe.h; then
8553 POSTGRESQL_INCDIR=/usr/local/include
8554 POSTGRESQL_LIBDIR=/usr/local/lib
8555 POSTGRESQL_BINDIR=/usr/local/bin
8556 elif test -f /usr/include/libpq-fe.h; then
8557 POSTGRESQL_INCDIR=/usr/include
8558 POSTGRESQL_LIBDIR=/usr/lib
8559 POSTGRESQL_BINDIR=/usr/bin
8560 elif test -f /usr/include/pgsql/libpq-fe.h; then
8561 POSTGRESQL_INCDIR=/usr/include/pgsql
8562 POSTGRESQL_LIBDIR=/usr/lib/pgsql
8563 POSTGRESQL_BINDIR=/usr/bin
8564 elif test -f /usr/include/postgresql/libpq-fe.h; then
8565 POSTGRESQL_INCDIR=/usr/include/postgresql
8566 POSTGRESQL_LIBDIR=/usr/lib/postgresql
8567 POSTGRESQL_BINDIR=/usr/bin
8569 echo "$as_me:$LINENO: result: no" >&5
8570 echo "${ECHO_T}no" >&6
8571 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8572 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8573 { (exit 1); exit 1; }; }
8575 elif test -f $withval/include/libpq-fe.h; then
8576 POSTGRESQL_INCDIR=$withval/include
8577 POSTGRESQL_LIBDIR=$withval/lib
8578 POSTGRESQL_BINDIR=$withval/bin
8579 elif test -f $withval/include/postgresql/libpq-fe.h; then
8580 POSTGRESQL_INCDIR=$withval/include/postgresql
8581 POSTGRESQL_LIBDIR=$withval/lib
8582 POSTGRESQL_BINDIR=$withval/bin
8584 echo "$as_me:$LINENO: result: no" >&5
8585 echo "${ECHO_T}no" >&6
8586 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8587 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8588 { (exit 1); exit 1; }; }
8590 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8591 echo "$as_me:$LINENO: checking for crypt" >&5
8592 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8593 if test "${ac_cv_func_crypt+set}" = set; then
8594 echo $ECHO_N "(cached) $ECHO_C" >&6
8596 cat >conftest.$ac_ext <<_ACEOF
8599 cat confdefs.h >>conftest.$ac_ext
8600 cat >>conftest.$ac_ext <<_ACEOF
8601 /* end confdefs.h. */
8602 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8604 #define crypt innocuous_crypt
8606 /* System header to define __stub macros and hopefully few prototypes,
8607 which can conflict with char crypt (); below.
8608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8609 <limits.h> exists even on freestanding compilers. */
8612 # include <limits.h>
8614 # include <assert.h>
8619 /* Override any gcc2 internal prototype to avoid an error. */
8624 /* We use char because int might match the return type of a gcc2
8625 builtin and then its argument prototype would still apply. */
8627 /* The GNU C library defines this for functions which it implements
8628 to always fail with ENOSYS. Some functions are actually named
8629 something starting with __ and the normal name is an alias. */
8630 #if defined (__stub_crypt) || defined (__stub___crypt)
8633 char (*f) () = crypt;
8647 rm -f conftest.$ac_objext conftest$ac_exeext
8648 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8649 (eval $ac_link) 2>conftest.er1
8651 grep -v '^ *+' conftest.er1 >conftest.err
8653 cat conftest.err >&5
8654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8655 (exit $ac_status); } &&
8656 { ac_try='test -z "$ac_c_werror_flag"
8657 || test ! -s conftest.err'
8658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; } &&
8663 { ac_try='test -s conftest$ac_exeext'
8664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); }; }; then
8669 ac_cv_func_crypt=yes
8671 echo "$as_me: failed program was:" >&5
8672 sed 's/^/| /' conftest.$ac_ext >&5
8676 rm -f conftest.err conftest.$ac_objext \
8677 conftest$ac_exeext conftest.$ac_ext
8679 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8680 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8681 if test $ac_cv_func_crypt = yes; then
8684 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8685 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8686 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8689 ac_check_lib_save_LIBS=$LIBS
8690 LIBS="-lcrypt $LIBS"
8691 cat >conftest.$ac_ext <<_ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h. */
8698 /* Override any gcc2 internal prototype to avoid an error. */
8702 /* We use char because int might match the return type of a gcc2
8703 builtin and then its argument prototype would still apply. */
8713 rm -f conftest.$ac_objext conftest$ac_exeext
8714 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8715 (eval $ac_link) 2>conftest.er1
8717 grep -v '^ *+' conftest.er1 >conftest.err
8719 cat conftest.err >&5
8720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } &&
8722 { ac_try='test -z "$ac_c_werror_flag"
8723 || test ! -s conftest.err'
8724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); }; } &&
8729 { ac_try='test -s conftest$ac_exeext'
8730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); }; }; then
8735 ac_cv_lib_crypt_crypt=yes
8737 echo "$as_me: failed program was:" >&5
8738 sed 's/^/| /' conftest.$ac_ext >&5
8740 ac_cv_lib_crypt_crypt=no
8742 rm -f conftest.err conftest.$ac_objext \
8743 conftest$ac_exeext conftest.$ac_ext
8744 LIBS=$ac_check_lib_save_LIBS
8746 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8747 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8748 if test $ac_cv_lib_crypt_crypt = yes; then
8749 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8754 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8755 SQL_LFLAGS=$POSTGRESQL_LFLAGS
8756 SQL_BINDIR=$POSTGRESQL_BINDIR
8757 cat >>confdefs.h <<\_ACEOF
8758 #define HAVE_POSTGRESQL 1
8761 echo "$as_me:$LINENO: result: yes" >&5
8762 echo "${ECHO_T}yes" >&6
8764 support_postgresql=yes
8768 echo "$as_me:$LINENO: result: no" >&5
8769 echo "${ECHO_T}no" >&6
8774 echo "$as_me:$LINENO: result: no" >&5
8775 echo "${ECHO_T}no" >&6
8786 echo "$as_me:$LINENO: checking for MySQL support" >&5
8787 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8789 # Check whether --with-mysql or --without-mysql was given.
8790 if test "${with_mysql+set}" = set; then
8791 withval="$with_mysql"
8793 if test "$withval" != "no"; then
8794 if test "$withval" = "yes"; then
8795 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8796 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8797 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8798 MYSQL_BINDIR=/usr/local/mysql/bin
8799 elif test -f /usr/include/mysql/mysql.h; then
8800 MYSQL_INCDIR=/usr/include/mysql
8801 MYSQL_LIBDIR=/usr/lib/mysql
8802 MYSQL_BINDIR=/usr/bin
8803 elif test -f /usr/include/mysql.h; then
8804 MYSQL_INCDIR=/usr/include
8805 MYSQL_LIBDIR=/usr/lib
8806 MYSQL_BINDIR=/usr/bin
8807 elif test -f /usr/local/include/mysql/mysql.h; then
8808 MYSQL_INCDIR=/usr/local/include/mysql
8809 MYSQL_LIBDIR=/usr/local/lib/mysql
8810 MYSQL_BINDIR=/usr/local/bin
8811 elif test -f /usr/local/include/mysql.h; then
8812 MYSQL_INCDIR=/usr/local/include
8813 MYSQL_LIBDIR=/usr/local/lib
8814 MYSQL_BINDIR=/usr/local/bin
8816 echo "$as_me:$LINENO: result: no" >&5
8817 echo "${ECHO_T}no" >&6
8818 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8819 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8820 { (exit 1); exit 1; }; }
8823 if test -f $withval/include/mysql/mysql.h; then
8824 MYSQL_INCDIR=$withval/include/mysql
8825 MYSQL_LIBDIR=$withval/lib/mysql
8826 MYSQL_BINDIR=$withval/bin
8827 elif test -f $withval/include/mysql.h; then
8828 MYSQL_INCDIR=$withval/include
8829 MYSQL_LIBDIR=$withval/lib
8830 MYSQL_BINDIR=$withval/bin
8832 echo "$as_me:$LINENO: result: no" >&5
8833 echo "${ECHO_T}no" >&6
8834 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8835 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8836 { (exit 1); exit 1; }; }
8839 SQL_INCLUDE=-I$MYSQL_INCDIR
8840 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8841 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8842 cat >>confdefs.h <<\_ACEOF
8843 #define HAVE_THREAD_SAFE_MYSQL 1
8847 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8849 SQL_BINDIR=$MYSQL_BINDIR
8851 cat >>confdefs.h <<\_ACEOF
8852 #define HAVE_MYSQL 1
8855 echo "$as_me:$LINENO: result: yes" >&5
8856 echo "${ECHO_T}yes" >&6
8863 echo "$as_me:$LINENO: result: no" >&5
8864 echo "${ECHO_T}no" >&6
8871 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8872 if test "${with_embedded_mysql+set}" = set; then
8873 withval="$with_embedded_mysql"
8875 if test "$withval" != "no"; then
8876 if test "$withval" = "yes"; then
8877 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8878 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8879 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8880 MYSQL_BINDIR=/usr/local/mysql/bin
8881 elif test -f /usr/include/mysql/mysql.h; then
8882 MYSQL_INCDIR=/usr/include/mysql
8883 MYSQL_LIBDIR=/usr/lib/mysql
8884 MYSQL_BINDIR=/usr/bin
8885 elif test -f /usr/include/mysql.h; then
8886 MYSQL_INCDIR=/usr/include
8887 MYSQL_LIBDIR=/usr/lib
8888 MYSQL_BINDIR=/usr/bin
8889 elif test -f /usr/local/include/mysql/mysql.h; then
8890 MYSQL_INCDIR=/usr/local/include/mysql
8891 MYSQL_LIBDIR=/usr/local/lib/mysql
8892 MYSQL_BINDIR=/usr/local/bin
8893 elif test -f /usr/local/include/mysql.h; then
8894 MYSQL_INCDIR=/usr/local/include
8895 MYSQL_LIBDIR=/usr/local/lib
8896 MYSQL_BINDIR=/usr/local/bin
8898 echo "$as_me:$LINENO: result: no" >&5
8899 echo "${ECHO_T}no" >&6
8900 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8901 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8902 { (exit 1); exit 1; }; }
8905 if test -f $withval/include/mysql/mysql.h; then
8906 MYSQL_INCDIR=$withval/include/mysql
8907 MYSQL_LIBDIR=$withval/lib/mysql
8908 MYSQL_BINDIR=$withval/bin
8909 elif test -f $withval/include/mysql.h; then
8910 MYSQL_INCDIR=$withval/include
8911 MYSQL_LIBDIR=$withval/lib
8912 MYSQL_BINDIR=$withval/bin
8914 echo "$as_me:$LINENO: result: no" >&5
8915 echo "${ECHO_T}no" >&6
8916 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8917 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8918 { (exit 1); exit 1; }; }
8921 SQL_INCLUDE=-I$MYSQL_INCDIR
8922 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
8923 SQL_BINDIR=$MYSQL_BINDIR
8925 cat >>confdefs.h <<\_ACEOF
8926 #define HAVE_MYSQL 1
8929 cat >>confdefs.h <<\_ACEOF
8930 #define HAVE_EMBEDDED_MYSQL 1
8933 echo "$as_me:$LINENO: result: yes" >&5
8934 echo "${ECHO_T}yes" >&6
8941 echo "$as_me:$LINENO: result: no" >&5
8942 echo "${ECHO_T}no" >&6
8957 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
8958 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
8960 # Check whether --with-sqlite3 or --without-sqlite3 was given.
8961 if test "${with_sqlite3+set}" = set; then
8962 withval="$with_sqlite3"
8964 if test "$withval" != "no"; then
8965 if test "$withval" = "yes"; then
8966 if test -f /usr/local/include/sqlite3.h; then
8967 SQLITE_INCDIR=/usr/local/include
8968 SQLITE_LIBDIR=/usr/local/lib
8969 SQLITE_BINDIR=/usr/local/bin
8970 elif test -f /usr/include/sqlite3.h; then
8971 SQLITE_INCDIR=/usr/include
8972 SQLITE_LIBDIR=/usr/lib
8973 SQLITE_BINDIR=/usr/bin
8974 elif test -f $prefix/include/sqlite3.h; then
8975 SQLITE_INCDIR=$prefix/include
8976 SQLITE_LIBDIR=$prefix/lib
8977 SQLITE_BINDIR=$prefix/bin
8979 echo "$as_me:$LINENO: result: no" >&5
8980 echo "${ECHO_T}no" >&6
8981 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
8982 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
8983 { (exit 1); exit 1; }; }
8986 if test -f $withval/sqlite3.h; then
8987 SQLITE_INCDIR=$withval
8988 SQLITE_LIBDIR=$withval
8989 SQLITE_BINDIR=$withval
8990 elif test -f $withval/include/sqlite3.h; then
8991 SQLITE_INCDIR=$withval/include
8992 SQLITE_LIBDIR=$withval/lib
8993 SQLITE_BINDIR=$withval/bin
8995 echo "$as_me:$LINENO: result: no" >&5
8996 echo "${ECHO_T}no" >&6
8997 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
8998 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
8999 { (exit 1); exit 1; }; }
9002 SQL_INCLUDE=-I$SQLITE_INCDIR
9003 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
9004 SQL_BINDIR=$SQLITE_BINDIR
9006 cat >>confdefs.h <<\_ACEOF
9007 #define HAVE_SQLITE3 1
9010 echo "$as_me:$LINENO: result: yes" >&5
9011 echo "${ECHO_T}yes" >&6
9018 echo "$as_me:$LINENO: result: no" >&5
9019 echo "${ECHO_T}no" >&6
9024 echo "$as_me:$LINENO: result: no" >&5
9025 echo "${ECHO_T}no" >&6
9036 echo "$as_me:$LINENO: checking for SQLite support" >&5
9037 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
9039 # Check whether --with-sqlite or --without-sqlite was given.
9040 if test "${with_sqlite+set}" = set; then
9041 withval="$with_sqlite"
9043 if test "$withval" != "no"; then
9044 if test "$withval" = "yes"; then
9045 if test -f /usr/local/include/sqlite.h; then
9046 SQLITE_INCDIR=/usr/local/include
9047 SQLITE_LIBDIR=/usr/local/lib
9048 SQLITE_BINDIR=/usr/local/bin
9049 elif test -f /usr/include/sqlite.h; then
9050 SQLITE_INCDIR=/usr/include
9051 SQLITE_LIBDIR=/usr/lib
9052 SQLITE_BINDIR=/usr/bin
9053 elif test -f $prefix/include/sqlite.h; then
9054 SQLITE_INCDIR=$prefix/include
9055 SQLITE_LIBDIR=$prefix/lib
9056 SQLITE_BINDIR=$prefix/bin
9058 echo "$as_me:$LINENO: result: no" >&5
9059 echo "${ECHO_T}no" >&6
9060 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
9061 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
9062 { (exit 1); exit 1; }; }
9065 if test -f $withval/sqlite.h; then
9066 SQLITE_INCDIR=$withval
9067 SQLITE_LIBDIR=$withval
9068 SQLITE_BINDIR=$withval
9069 elif test -f $withval/include/sqlite.h; then
9070 SQLITE_INCDIR=$withval/include
9071 SQLITE_LIBDIR=$withval/lib
9072 SQLITE_BINDIR=$withval/bin
9074 echo "$as_me:$LINENO: result: no" >&5
9075 echo "${ECHO_T}no" >&6
9076 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
9077 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
9078 { (exit 1); exit 1; }; }
9081 SQL_INCLUDE=-I$SQLITE_INCDIR
9082 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
9083 SQL_BINDIR=$SQLITE_BINDIR
9085 cat >>confdefs.h <<\_ACEOF
9086 #define HAVE_SQLITE 1
9089 echo "$as_me:$LINENO: result: yes" >&5
9090 echo "${ECHO_T}yes" >&6
9097 echo "$as_me:$LINENO: result: no" >&5
9098 echo "${ECHO_T}no" >&6
9103 echo "$as_me:$LINENO: result: no" >&5
9104 echo "${ECHO_T}no" >&6
9116 cat >>confdefs.h <<\_ACEOF
9117 #define PROTOTYPES 1
9121 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
9122 if test -z "$CCOPTS"; then
9123 CCOPTS='-g -O2 -Wall'
9131 largefile_support="no"
9133 # Check whether --enable-largefile or --disable-largefile was given.
9134 if test "${enable_largefile+set}" = set; then
9135 enableval="$enable_largefile"
9138 if test "$enable_largefile" != no; then
9139 if test -n "$ac_tool_prefix"; then
9140 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
9141 set dummy ${ac_tool_prefix}getconf; ac_word=$2
9142 echo "$as_me:$LINENO: checking for $ac_word" >&5
9143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9144 if test "${ac_cv_prog_GETCONF+set}" = set; then
9145 echo $ECHO_N "(cached) $ECHO_C" >&6
9147 if test -n "$GETCONF"; then
9148 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
9150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9154 test -z "$as_dir" && as_dir=.
9155 for ac_exec_ext in '' $ac_executable_extensions; do
9156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9157 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
9158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9166 GETCONF=$ac_cv_prog_GETCONF
9167 if test -n "$GETCONF"; then
9168 echo "$as_me:$LINENO: result: $GETCONF" >&5
9169 echo "${ECHO_T}$GETCONF" >&6
9171 echo "$as_me:$LINENO: result: no" >&5
9172 echo "${ECHO_T}no" >&6
9176 if test -z "$ac_cv_prog_GETCONF"; then
9177 ac_ct_GETCONF=$GETCONF
9178 # Extract the first word of "getconf", so it can be a program name with args.
9179 set dummy getconf; ac_word=$2
9180 echo "$as_me:$LINENO: checking for $ac_word" >&5
9181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9182 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
9183 echo $ECHO_N "(cached) $ECHO_C" >&6
9185 if test -n "$ac_ct_GETCONF"; then
9186 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
9188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9192 test -z "$as_dir" && as_dir=.
9193 for ac_exec_ext in '' $ac_executable_extensions; do
9194 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9195 ac_cv_prog_ac_ct_GETCONF="getconf"
9196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9204 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9205 if test -n "$ac_ct_GETCONF"; then
9206 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9207 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9209 echo "$as_me:$LINENO: result: no" >&5
9210 echo "${ECHO_T}no" >&6
9213 GETCONF=$ac_ct_GETCONF
9215 GETCONF="$ac_cv_prog_GETCONF"
9218 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9219 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9220 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9221 echo $ECHO_N "(cached) $ECHO_C" >&6
9223 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9224 ac_cv_sys_largefile_CFLAGS=no
9226 # IRIX 6.2 and later require cc -n32.
9227 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9228 if test "$GCC" != yes; then
9229 ac_cv_sys_largefile_CFLAGS=-n32
9232 CC="$CC $ac_cv_sys_largefile_CFLAGS"
9233 cat >conftest.$ac_ext <<_ACEOF
9236 cat confdefs.h >>conftest.$ac_ext
9237 cat >>conftest.$ac_ext <<_ACEOF
9238 /* end confdefs.h. */
9248 rm -f conftest.$ac_objext conftest$ac_exeext
9249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9250 (eval $ac_link) 2>conftest.er1
9252 grep -v '^ *+' conftest.er1 >conftest.err
9254 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); } &&
9257 { ac_try='test -z "$ac_c_werror_flag"
9258 || test ! -s conftest.err'
9259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263 (exit $ac_status); }; } &&
9264 { ac_try='test -s conftest$ac_exeext'
9265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); }; }; then
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9275 ac_cv_sys_largefile_CFLAGS=no
9277 rm -f conftest.err conftest.$ac_objext \
9278 conftest$ac_exeext conftest.$ac_ext
9283 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9284 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9285 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9286 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9287 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9290 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9291 ac_cv_sys_largefile_LDFLAGS=no
9295 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9296 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9297 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9298 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9299 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
9302 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9303 ac_cv_sys_largefile_LIBS=no
9307 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9308 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9310 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9313 -D_FILE_OFFSET_BITS=*) ;;
9314 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9315 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9321 '') CPPFLAGS="$ac_flag" ;;
9322 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9330 '') CFLAGS="$ac_flag" ;;
9331 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9336 case "$ac_cv_sys_largefile_LDFLAGS" in
9340 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9341 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9344 case "$ac_cv_sys_largefile_LIBS" in
9348 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9349 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9352 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9353 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9354 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9355 echo $ECHO_N "(cached) $ECHO_C" >&6
9357 ac_cv_sys_file_offset_bits=no
9358 ac_cv_sys_file_offset_bits=64
9359 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9361 -D_FILE_OFFSET_BITS)
9362 ac_cv_sys_file_offset_bits=1 ;;
9363 -D_FILE_OFFSET_BITS=*)
9364 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9369 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9370 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9371 if test "$ac_cv_sys_file_offset_bits" != no; then
9373 cat >>confdefs.h <<_ACEOF
9374 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9378 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9379 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9380 if test "${ac_cv_sys_largefile_source+set}" = set; then
9381 echo $ECHO_N "(cached) $ECHO_C" >&6
9383 ac_cv_sys_largefile_source=no
9384 ac_cv_sys_largefile_source=1
9385 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9387 -D_LARGEFILE_SOURCE)
9388 ac_cv_sys_largefile_source=1 ;;
9389 -D_LARGEFILE_SOURCE=*)
9390 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9395 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9396 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9397 if test "$ac_cv_sys_largefile_source" != no; then
9399 cat >>confdefs.h <<_ACEOF
9400 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9404 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9405 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9406 if test "${ac_cv_sys_large_files+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
9409 ac_cv_sys_large_files=no
9410 ac_cv_sys_large_files=1
9411 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9414 ac_cv_sys_large_files=1 ;;
9416 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9421 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9422 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9423 if test "$ac_cv_sys_large_files" != no; then
9425 cat >>confdefs.h <<_ACEOF
9426 #define _LARGE_FILES $ac_cv_sys_large_files
9434 echo "$as_me:$LINENO: checking for X" >&5
9435 echo $ECHO_N "checking for X... $ECHO_C" >&6
9438 # Check whether --with-x or --without-x was given.
9439 if test "${with_x+set}" = set; then
9443 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9444 if test "x$with_x" = xno; then
9445 # The user explicitly disabled X.
9448 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9449 # Both variables are already set.
9452 if test "${ac_cv_have_x+set}" = set; then
9453 echo $ECHO_N "(cached) $ECHO_C" >&6
9455 # One or both of the vars are not set, and there is no cached value.
9456 ac_x_includes=no ac_x_libraries=no
9458 if mkdir conftest.dir; then
9460 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9461 cat >Imakefile <<'_ACEOF'
9463 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9465 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9466 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9467 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9468 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9469 for ac_extension in a so sl; do
9470 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9471 test -f $ac_im_libdir/libX11.$ac_extension; then
9472 ac_im_usrlibdir=$ac_im_libdir; break
9475 # Screen out bogus values from the imake configuration. They are
9476 # bogus both because they are the default anyway, and because
9477 # using them would break gcc on systems where it needs fixed includes.
9478 case $ac_im_incroot in
9480 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9482 case $ac_im_usrlibdir in
9484 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9491 # Standard set of common directories for X headers.
9492 # Check X11 before X11Rn because it is often a symlink to the current release.
9504 /usr/local/X11/include
9505 /usr/local/X11R6/include
9506 /usr/local/X11R5/include
9507 /usr/local/X11R4/include
9509 /usr/local/include/X11
9510 /usr/local/include/X11R6
9511 /usr/local/include/X11R5
9512 /usr/local/include/X11R4
9516 /usr/XFree86/include/X11
9520 /usr/unsupported/include
9522 /usr/local/x11r5/include
9523 /usr/lpp/Xamples/include
9525 /usr/openwin/include
9526 /usr/openwin/share/include'
9528 if test "$ac_x_includes" = no; then
9529 # Guess where to find include files, by looking for Intrinsic.h.
9530 # First, try using that file with no special directory specified.
9531 cat >conftest.$ac_ext <<_ACEOF
9534 cat confdefs.h >>conftest.$ac_ext
9535 cat >>conftest.$ac_ext <<_ACEOF
9536 /* end confdefs.h. */
9537 #include <X11/Intrinsic.h>
9539 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9540 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9542 grep -v '^ *+' conftest.er1 >conftest.err
9544 cat conftest.err >&5
9545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9546 (exit $ac_status); } >/dev/null; then
9547 if test -s conftest.err; then
9548 ac_cpp_err=$ac_c_preproc_warn_flag
9549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9556 if test -z "$ac_cpp_err"; then
9557 # We can compile using X headers with no special include directory.
9560 echo "$as_me: failed program was:" >&5
9561 sed 's/^/| /' conftest.$ac_ext >&5
9563 for ac_dir in $ac_x_header_dirs; do
9564 if test -r "$ac_dir/X11/Intrinsic.h"; then
9565 ac_x_includes=$ac_dir
9570 rm -f conftest.err conftest.$ac_ext
9571 fi # $ac_x_includes = no
9573 if test "$ac_x_libraries" = no; then
9574 # Check for the libraries.
9575 # See if we find them without any special options.
9576 # Don't add to $LIBS permanently.
9579 cat >conftest.$ac_ext <<_ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9585 #include <X11/Intrinsic.h>
9594 rm -f conftest.$ac_objext conftest$ac_exeext
9595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9596 (eval $ac_link) 2>conftest.er1
9598 grep -v '^ *+' conftest.er1 >conftest.err
9600 cat conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } &&
9603 { ac_try='test -z "$ac_c_werror_flag"
9604 || test ! -s conftest.err'
9605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; } &&
9610 { ac_try='test -s conftest$ac_exeext'
9611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; }; then
9617 # We can link X programs with no special library path.
9620 echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9624 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9626 # Don't even attempt the hair of trying to link an X program!
9627 for ac_extension in a so sl; do
9628 if test -r $ac_dir/libXt.$ac_extension; then
9629 ac_x_libraries=$ac_dir
9635 rm -f conftest.err conftest.$ac_objext \
9636 conftest$ac_exeext conftest.$ac_ext
9637 fi # $ac_x_libraries = no
9639 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9640 # Didn't find X anywhere. Cache the known absence of X.
9641 ac_cv_have_x="have_x=no"
9643 # Record where we found X for the cache.
9644 ac_cv_have_x="have_x=yes \
9645 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9650 eval "$ac_cv_have_x"
9653 if test "$have_x" != yes; then
9654 echo "$as_me:$LINENO: result: $have_x" >&5
9655 echo "${ECHO_T}$have_x" >&6
9658 # If each of the values was on the command line, it overrides each guess.
9659 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9660 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9661 # Update the cache value to reflect the command line values.
9662 ac_cv_have_x="have_x=yes \
9663 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9664 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9665 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9668 if test "$no_x" = yes; then
9669 # Not all programs may use this symbol, but it does not hurt to define it.
9671 cat >>confdefs.h <<\_ACEOF
9672 #define X_DISPLAY_MISSING 1
9675 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9677 if test -n "$x_includes"; then
9678 X_CFLAGS="$X_CFLAGS -I$x_includes"
9681 # It would also be nice to do this for all -L options, not just this one.
9682 if test -n "$x_libraries"; then
9683 X_LIBS="$X_LIBS -L$x_libraries"
9684 # For Solaris; some versions of Sun CC require a space after -R and
9685 # others require no space. Words are not sufficient . . . .
9686 case `(uname -sr) 2>/dev/null` in
9688 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9689 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9690 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9691 cat >conftest.$ac_ext <<_ACEOF
9694 cat confdefs.h >>conftest.$ac_ext
9695 cat >>conftest.$ac_ext <<_ACEOF
9696 /* end confdefs.h. */
9706 rm -f conftest.$ac_objext conftest$ac_exeext
9707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9708 (eval $ac_link) 2>conftest.er1
9710 grep -v '^ *+' conftest.er1 >conftest.err
9712 cat conftest.err >&5
9713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9714 (exit $ac_status); } &&
9715 { ac_try='test -z "$ac_c_werror_flag"
9716 || test ! -s conftest.err'
9717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721 (exit $ac_status); }; } &&
9722 { ac_try='test -s conftest$ac_exeext'
9723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); }; }; then
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9735 rm -f conftest.err conftest.$ac_objext \
9736 conftest$ac_exeext conftest.$ac_ext
9737 if test $ac_R_nospace = yes; then
9738 echo "$as_me:$LINENO: result: no" >&5
9739 echo "${ECHO_T}no" >&6
9740 X_LIBS="$X_LIBS -R$x_libraries"
9742 LIBS="$ac_xsave_LIBS -R $x_libraries"
9743 cat >conftest.$ac_ext <<_ACEOF
9746 cat confdefs.h >>conftest.$ac_ext
9747 cat >>conftest.$ac_ext <<_ACEOF
9748 /* end confdefs.h. */
9758 rm -f conftest.$ac_objext conftest$ac_exeext
9759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9760 (eval $ac_link) 2>conftest.er1
9762 grep -v '^ *+' conftest.er1 >conftest.err
9764 cat conftest.err >&5
9765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9766 (exit $ac_status); } &&
9767 { ac_try='test -z "$ac_c_werror_flag"
9768 || test ! -s conftest.err'
9769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); }; } &&
9774 { ac_try='test -s conftest$ac_exeext'
9775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); }; }; then
9782 echo "$as_me: failed program was:" >&5
9783 sed 's/^/| /' conftest.$ac_ext >&5
9787 rm -f conftest.err conftest.$ac_objext \
9788 conftest$ac_exeext conftest.$ac_ext
9789 if test $ac_R_space = yes; then
9790 echo "$as_me:$LINENO: result: yes" >&5
9791 echo "${ECHO_T}yes" >&6
9792 X_LIBS="$X_LIBS -R $x_libraries"
9794 echo "$as_me:$LINENO: result: neither works" >&5
9795 echo "${ECHO_T}neither works" >&6
9802 # Check for system-dependent libraries X programs must link with.
9803 # Do this before checking for the system-independent R6 libraries
9804 # (-lICE), since we may need -lsocket or whatever for X linking.
9806 if test "$ISC" = yes; then
9807 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9809 # Martyn Johnson says this is needed for Ultrix, if the X
9810 # libraries were built with DECnet support. And Karl Berry says
9811 # the Alpha needs dnet_stub (dnet does not exist).
9812 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9813 cat >conftest.$ac_ext <<_ACEOF
9816 cat confdefs.h >>conftest.$ac_ext
9817 cat >>conftest.$ac_ext <<_ACEOF
9818 /* end confdefs.h. */
9820 /* Override any gcc2 internal prototype to avoid an error. */
9824 /* We use char because int might match the return type of a gcc2
9825 builtin and then its argument prototype would still apply. */
9826 char XOpenDisplay ();
9835 rm -f conftest.$ac_objext conftest$ac_exeext
9836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9837 (eval $ac_link) 2>conftest.er1
9839 grep -v '^ *+' conftest.er1 >conftest.err
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } &&
9844 { ac_try='test -z "$ac_c_werror_flag"
9845 || test ! -s conftest.err'
9846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9850 (exit $ac_status); }; } &&
9851 { ac_try='test -s conftest$ac_exeext'
9852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856 (exit $ac_status); }; }; then
9859 echo "$as_me: failed program was:" >&5
9860 sed 's/^/| /' conftest.$ac_ext >&5
9862 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9863 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9864 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 ac_check_lib_save_LIBS=$LIBS
9869 cat >conftest.$ac_ext <<_ACEOF
9872 cat confdefs.h >>conftest.$ac_ext
9873 cat >>conftest.$ac_ext <<_ACEOF
9874 /* end confdefs.h. */
9876 /* Override any gcc2 internal prototype to avoid an error. */
9880 /* We use char because int might match the return type of a gcc2
9881 builtin and then its argument prototype would still apply. */
9891 rm -f conftest.$ac_objext conftest$ac_exeext
9892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9893 (eval $ac_link) 2>conftest.er1
9895 grep -v '^ *+' conftest.er1 >conftest.err
9897 cat conftest.err >&5
9898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9899 (exit $ac_status); } &&
9900 { ac_try='test -z "$ac_c_werror_flag"
9901 || test ! -s conftest.err'
9902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; } &&
9907 { ac_try='test -s conftest$ac_exeext'
9908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); }; }; then
9913 ac_cv_lib_dnet_dnet_ntoa=yes
9915 echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9918 ac_cv_lib_dnet_dnet_ntoa=no
9920 rm -f conftest.err conftest.$ac_objext \
9921 conftest$ac_exeext conftest.$ac_ext
9922 LIBS=$ac_check_lib_save_LIBS
9924 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9925 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9926 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9927 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9930 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9931 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9932 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9933 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9934 echo $ECHO_N "(cached) $ECHO_C" >&6
9936 ac_check_lib_save_LIBS=$LIBS
9937 LIBS="-ldnet_stub $LIBS"
9938 cat >conftest.$ac_ext <<_ACEOF
9941 cat confdefs.h >>conftest.$ac_ext
9942 cat >>conftest.$ac_ext <<_ACEOF
9943 /* end confdefs.h. */
9945 /* Override any gcc2 internal prototype to avoid an error. */
9949 /* We use char because int might match the return type of a gcc2
9950 builtin and then its argument prototype would still apply. */
9960 rm -f conftest.$ac_objext conftest$ac_exeext
9961 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9962 (eval $ac_link) 2>conftest.er1
9964 grep -v '^ *+' conftest.er1 >conftest.err
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } &&
9969 { ac_try='test -z "$ac_c_werror_flag"
9970 || test ! -s conftest.err'
9971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9975 (exit $ac_status); }; } &&
9976 { ac_try='test -s conftest$ac_exeext'
9977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; }; then
9982 ac_cv_lib_dnet_stub_dnet_ntoa=yes
9984 echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9987 ac_cv_lib_dnet_stub_dnet_ntoa=no
9989 rm -f conftest.err conftest.$ac_objext \
9990 conftest$ac_exeext conftest.$ac_ext
9991 LIBS=$ac_check_lib_save_LIBS
9993 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9994 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9995 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9996 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10001 rm -f conftest.err conftest.$ac_objext \
10002 conftest$ac_exeext conftest.$ac_ext
10003 LIBS="$ac_xsave_LIBS"
10005 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10006 # to get the SysV transport functions.
10007 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10009 # The nsl library prevents programs from opening the X display
10010 # on Irix 5.2, according to T.E. Dickey.
10011 # The functions gethostbyname, getservbyname, and inet_addr are
10012 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10013 echo "$as_me:$LINENO: checking for gethostbyname" >&5
10014 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10015 if test "${ac_cv_func_gethostbyname+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 cat >conftest.$ac_ext <<_ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10026 #define gethostbyname innocuous_gethostbyname
10028 /* System header to define __stub macros and hopefully few prototypes,
10029 which can conflict with char gethostbyname (); below.
10030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10031 <limits.h> exists even on freestanding compilers. */
10034 # include <limits.h>
10036 # include <assert.h>
10039 #undef gethostbyname
10041 /* Override any gcc2 internal prototype to avoid an error. */
10046 /* We use char because int might match the return type of a gcc2
10047 builtin and then its argument prototype would still apply. */
10048 char gethostbyname ();
10049 /* The GNU C library defines this for functions which it implements
10050 to always fail with ENOSYS. Some functions are actually named
10051 something starting with __ and the normal name is an alias. */
10052 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10055 char (*f) () = gethostbyname;
10064 return f != gethostbyname;
10069 rm -f conftest.$ac_objext conftest$ac_exeext
10070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10071 (eval $ac_link) 2>conftest.er1
10073 grep -v '^ *+' conftest.er1 >conftest.err
10075 cat conftest.err >&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } &&
10078 { ac_try='test -z "$ac_c_werror_flag"
10079 || test ! -s conftest.err'
10080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10081 (eval $ac_try) 2>&5
10083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10084 (exit $ac_status); }; } &&
10085 { ac_try='test -s conftest$ac_exeext'
10086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10087 (eval $ac_try) 2>&5
10089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10090 (exit $ac_status); }; }; then
10091 ac_cv_func_gethostbyname=yes
10093 echo "$as_me: failed program was:" >&5
10094 sed 's/^/| /' conftest.$ac_ext >&5
10096 ac_cv_func_gethostbyname=no
10098 rm -f conftest.err conftest.$ac_objext \
10099 conftest$ac_exeext conftest.$ac_ext
10101 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10102 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10104 if test $ac_cv_func_gethostbyname = no; then
10105 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10106 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10107 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
10110 ac_check_lib_save_LIBS=$LIBS
10112 cat >conftest.$ac_ext <<_ACEOF
10115 cat confdefs.h >>conftest.$ac_ext
10116 cat >>conftest.$ac_ext <<_ACEOF
10117 /* end confdefs.h. */
10119 /* Override any gcc2 internal prototype to avoid an error. */
10123 /* We use char because int might match the return type of a gcc2
10124 builtin and then its argument prototype would still apply. */
10125 char gethostbyname ();
10134 rm -f conftest.$ac_objext conftest$ac_exeext
10135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10136 (eval $ac_link) 2>conftest.er1
10138 grep -v '^ *+' conftest.er1 >conftest.err
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } &&
10143 { ac_try='test -z "$ac_c_werror_flag"
10144 || test ! -s conftest.err'
10145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10146 (eval $ac_try) 2>&5
10148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10149 (exit $ac_status); }; } &&
10150 { ac_try='test -s conftest$ac_exeext'
10151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10152 (eval $ac_try) 2>&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; }; then
10156 ac_cv_lib_nsl_gethostbyname=yes
10158 echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10161 ac_cv_lib_nsl_gethostbyname=no
10163 rm -f conftest.err conftest.$ac_objext \
10164 conftest$ac_exeext conftest.$ac_ext
10165 LIBS=$ac_check_lib_save_LIBS
10167 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10168 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10169 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10170 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10173 if test $ac_cv_lib_nsl_gethostbyname = no; then
10174 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10175 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10176 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10177 echo $ECHO_N "(cached) $ECHO_C" >&6
10179 ac_check_lib_save_LIBS=$LIBS
10181 cat >conftest.$ac_ext <<_ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h. */
10188 /* Override any gcc2 internal prototype to avoid an error. */
10192 /* We use char because int might match the return type of a gcc2
10193 builtin and then its argument prototype would still apply. */
10194 char gethostbyname ();
10203 rm -f conftest.$ac_objext conftest$ac_exeext
10204 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10205 (eval $ac_link) 2>conftest.er1
10207 grep -v '^ *+' conftest.er1 >conftest.err
10209 cat conftest.err >&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } &&
10212 { ac_try='test -z "$ac_c_werror_flag"
10213 || test ! -s conftest.err'
10214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10215 (eval $ac_try) 2>&5
10217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10218 (exit $ac_status); }; } &&
10219 { ac_try='test -s conftest$ac_exeext'
10220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10221 (eval $ac_try) 2>&5
10223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10224 (exit $ac_status); }; }; then
10225 ac_cv_lib_bsd_gethostbyname=yes
10227 echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.$ac_ext >&5
10230 ac_cv_lib_bsd_gethostbyname=no
10232 rm -f conftest.err conftest.$ac_objext \
10233 conftest$ac_exeext conftest.$ac_ext
10234 LIBS=$ac_check_lib_save_LIBS
10236 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10237 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10238 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10239 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10245 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10246 # socket/setsockopt and other routines are undefined under SCO ODT
10247 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10248 # on later versions), says Simon Leinen: it contains gethostby*
10249 # variants that don't use the name server (or something). -lsocket
10250 # must be given before -lnsl if both are needed. We assume that
10251 # if connect needs -lnsl, so does gethostbyname.
10252 echo "$as_me:$LINENO: checking for connect" >&5
10253 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10254 if test "${ac_cv_func_connect+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10257 cat >conftest.$ac_ext <<_ACEOF
10260 cat confdefs.h >>conftest.$ac_ext
10261 cat >>conftest.$ac_ext <<_ACEOF
10262 /* end confdefs.h. */
10263 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10265 #define connect innocuous_connect
10267 /* System header to define __stub macros and hopefully few prototypes,
10268 which can conflict with char connect (); below.
10269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10270 <limits.h> exists even on freestanding compilers. */
10273 # include <limits.h>
10275 # include <assert.h>
10280 /* Override any gcc2 internal prototype to avoid an error. */
10285 /* We use char because int might match the return type of a gcc2
10286 builtin and then its argument prototype would still apply. */
10288 /* The GNU C library defines this for functions which it implements
10289 to always fail with ENOSYS. Some functions are actually named
10290 something starting with __ and the normal name is an alias. */
10291 #if defined (__stub_connect) || defined (__stub___connect)
10294 char (*f) () = connect;
10303 return f != connect;
10308 rm -f conftest.$ac_objext conftest$ac_exeext
10309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10310 (eval $ac_link) 2>conftest.er1
10312 grep -v '^ *+' conftest.er1 >conftest.err
10314 cat conftest.err >&5
10315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10316 (exit $ac_status); } &&
10317 { ac_try='test -z "$ac_c_werror_flag"
10318 || test ! -s conftest.err'
10319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10320 (eval $ac_try) 2>&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); }; } &&
10324 { ac_try='test -s conftest$ac_exeext'
10325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10326 (eval $ac_try) 2>&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); }; }; then
10330 ac_cv_func_connect=yes
10332 echo "$as_me: failed program was:" >&5
10333 sed 's/^/| /' conftest.$ac_ext >&5
10335 ac_cv_func_connect=no
10337 rm -f conftest.err conftest.$ac_objext \
10338 conftest$ac_exeext conftest.$ac_ext
10340 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10341 echo "${ECHO_T}$ac_cv_func_connect" >&6
10343 if test $ac_cv_func_connect = no; then
10344 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10345 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10346 if test "${ac_cv_lib_socket_connect+set}" = set; then
10347 echo $ECHO_N "(cached) $ECHO_C" >&6
10349 ac_check_lib_save_LIBS=$LIBS
10350 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10351 cat >conftest.$ac_ext <<_ACEOF
10354 cat confdefs.h >>conftest.$ac_ext
10355 cat >>conftest.$ac_ext <<_ACEOF
10356 /* end confdefs.h. */
10358 /* Override any gcc2 internal prototype to avoid an error. */
10362 /* We use char because int might match the return type of a gcc2
10363 builtin and then its argument prototype would still apply. */
10373 rm -f conftest.$ac_objext conftest$ac_exeext
10374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10375 (eval $ac_link) 2>conftest.er1
10377 grep -v '^ *+' conftest.er1 >conftest.err
10379 cat conftest.err >&5
10380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10381 (exit $ac_status); } &&
10382 { ac_try='test -z "$ac_c_werror_flag"
10383 || test ! -s conftest.err'
10384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10385 (eval $ac_try) 2>&5
10387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10388 (exit $ac_status); }; } &&
10389 { ac_try='test -s conftest$ac_exeext'
10390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10391 (eval $ac_try) 2>&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; }; then
10395 ac_cv_lib_socket_connect=yes
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10400 ac_cv_lib_socket_connect=no
10402 rm -f conftest.err conftest.$ac_objext \
10403 conftest$ac_exeext conftest.$ac_ext
10404 LIBS=$ac_check_lib_save_LIBS
10406 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10407 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10408 if test $ac_cv_lib_socket_connect = yes; then
10409 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10414 # Guillermo Gomez says -lposix is necessary on A/UX.
10415 echo "$as_me:$LINENO: checking for remove" >&5
10416 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10417 if test "${ac_cv_func_remove+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10420 cat >conftest.$ac_ext <<_ACEOF
10423 cat confdefs.h >>conftest.$ac_ext
10424 cat >>conftest.$ac_ext <<_ACEOF
10425 /* end confdefs.h. */
10426 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10428 #define remove innocuous_remove
10430 /* System header to define __stub macros and hopefully few prototypes,
10431 which can conflict with char remove (); below.
10432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10433 <limits.h> exists even on freestanding compilers. */
10436 # include <limits.h>
10438 # include <assert.h>
10443 /* Override any gcc2 internal prototype to avoid an error. */
10448 /* We use char because int might match the return type of a gcc2
10449 builtin and then its argument prototype would still apply. */
10451 /* The GNU C library defines this for functions which it implements
10452 to always fail with ENOSYS. Some functions are actually named
10453 something starting with __ and the normal name is an alias. */
10454 #if defined (__stub_remove) || defined (__stub___remove)
10457 char (*f) () = remove;
10466 return f != remove;
10471 rm -f conftest.$ac_objext conftest$ac_exeext
10472 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10473 (eval $ac_link) 2>conftest.er1
10475 grep -v '^ *+' conftest.er1 >conftest.err
10477 cat conftest.err >&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } &&
10480 { ac_try='test -z "$ac_c_werror_flag"
10481 || test ! -s conftest.err'
10482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10483 (eval $ac_try) 2>&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; } &&
10487 { ac_try='test -s conftest$ac_exeext'
10488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10489 (eval $ac_try) 2>&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; }; then
10493 ac_cv_func_remove=yes
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10498 ac_cv_func_remove=no
10500 rm -f conftest.err conftest.$ac_objext \
10501 conftest$ac_exeext conftest.$ac_ext
10503 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10504 echo "${ECHO_T}$ac_cv_func_remove" >&6
10506 if test $ac_cv_func_remove = no; then
10507 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10508 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10509 if test "${ac_cv_lib_posix_remove+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10512 ac_check_lib_save_LIBS=$LIBS
10513 LIBS="-lposix $LIBS"
10514 cat >conftest.$ac_ext <<_ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10521 /* Override any gcc2 internal prototype to avoid an error. */
10525 /* We use char because int might match the return type of a gcc2
10526 builtin and then its argument prototype would still apply. */
10536 rm -f conftest.$ac_objext conftest$ac_exeext
10537 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10538 (eval $ac_link) 2>conftest.er1
10540 grep -v '^ *+' conftest.er1 >conftest.err
10542 cat conftest.err >&5
10543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10544 (exit $ac_status); } &&
10545 { ac_try='test -z "$ac_c_werror_flag"
10546 || test ! -s conftest.err'
10547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10548 (eval $ac_try) 2>&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); }; } &&
10552 { ac_try='test -s conftest$ac_exeext'
10553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10554 (eval $ac_try) 2>&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; }; then
10558 ac_cv_lib_posix_remove=yes
10560 echo "$as_me: failed program was:" >&5
10561 sed 's/^/| /' conftest.$ac_ext >&5
10563 ac_cv_lib_posix_remove=no
10565 rm -f conftest.err conftest.$ac_objext \
10566 conftest$ac_exeext conftest.$ac_ext
10567 LIBS=$ac_check_lib_save_LIBS
10569 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10570 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10571 if test $ac_cv_lib_posix_remove = yes; then
10572 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10577 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10578 echo "$as_me:$LINENO: checking for shmat" >&5
10579 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10580 if test "${ac_cv_func_shmat+set}" = set; then
10581 echo $ECHO_N "(cached) $ECHO_C" >&6
10583 cat >conftest.$ac_ext <<_ACEOF
10586 cat confdefs.h >>conftest.$ac_ext
10587 cat >>conftest.$ac_ext <<_ACEOF
10588 /* end confdefs.h. */
10589 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10591 #define shmat innocuous_shmat
10593 /* System header to define __stub macros and hopefully few prototypes,
10594 which can conflict with char shmat (); below.
10595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10596 <limits.h> exists even on freestanding compilers. */
10599 # include <limits.h>
10601 # include <assert.h>
10606 /* Override any gcc2 internal prototype to avoid an error. */
10611 /* We use char because int might match the return type of a gcc2
10612 builtin and then its argument prototype would still apply. */
10614 /* The GNU C library defines this for functions which it implements
10615 to always fail with ENOSYS. Some functions are actually named
10616 something starting with __ and the normal name is an alias. */
10617 #if defined (__stub_shmat) || defined (__stub___shmat)
10620 char (*f) () = shmat;
10634 rm -f conftest.$ac_objext conftest$ac_exeext
10635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10636 (eval $ac_link) 2>conftest.er1
10638 grep -v '^ *+' conftest.er1 >conftest.err
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } &&
10643 { ac_try='test -z "$ac_c_werror_flag"
10644 || test ! -s conftest.err'
10645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10646 (eval $ac_try) 2>&5
10648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10649 (exit $ac_status); }; } &&
10650 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
10656 ac_cv_func_shmat=yes
10658 echo "$as_me: failed program was:" >&5
10659 sed 's/^/| /' conftest.$ac_ext >&5
10661 ac_cv_func_shmat=no
10663 rm -f conftest.err conftest.$ac_objext \
10664 conftest$ac_exeext conftest.$ac_ext
10666 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10667 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10669 if test $ac_cv_func_shmat = no; then
10670 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10671 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10672 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 ac_check_lib_save_LIBS=$LIBS
10677 cat >conftest.$ac_ext <<_ACEOF
10680 cat confdefs.h >>conftest.$ac_ext
10681 cat >>conftest.$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10684 /* Override any gcc2 internal prototype to avoid an error. */
10688 /* We use char because int might match the return type of a gcc2
10689 builtin and then its argument prototype would still apply. */
10699 rm -f conftest.$ac_objext conftest$ac_exeext
10700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10701 (eval $ac_link) 2>conftest.er1
10703 grep -v '^ *+' conftest.er1 >conftest.err
10705 cat conftest.err >&5
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); } &&
10708 { ac_try='test -z "$ac_c_werror_flag"
10709 || test ! -s conftest.err'
10710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10711 (eval $ac_try) 2>&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; } &&
10715 { ac_try='test -s conftest$ac_exeext'
10716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717 (eval $ac_try) 2>&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); }; }; then
10721 ac_cv_lib_ipc_shmat=yes
10723 echo "$as_me: failed program was:" >&5
10724 sed 's/^/| /' conftest.$ac_ext >&5
10726 ac_cv_lib_ipc_shmat=no
10728 rm -f conftest.err conftest.$ac_objext \
10729 conftest$ac_exeext conftest.$ac_ext
10730 LIBS=$ac_check_lib_save_LIBS
10732 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10733 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10734 if test $ac_cv_lib_ipc_shmat = yes; then
10735 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10741 # Check for libraries that X11R6 Xt/Xaw programs need.
10742 ac_save_LDFLAGS=$LDFLAGS
10743 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10744 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10745 # check for ICE first), but we must link in the order -lSM -lICE or
10746 # we get undefined symbols. So assume we have SM if we have ICE.
10747 # These have to be linked with before -lX11, unlike the other
10748 # libraries we check for below, so use a different variable.
10749 # John Interrante, Karl Berry
10750 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10751 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10752 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10755 ac_check_lib_save_LIBS=$LIBS
10756 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10757 cat >conftest.$ac_ext <<_ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
10762 /* end confdefs.h. */
10764 /* Override any gcc2 internal prototype to avoid an error. */
10768 /* We use char because int might match the return type of a gcc2
10769 builtin and then its argument prototype would still apply. */
10770 char IceConnectionNumber ();
10774 IceConnectionNumber ();
10779 rm -f conftest.$ac_objext conftest$ac_exeext
10780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10781 (eval $ac_link) 2>conftest.er1
10783 grep -v '^ *+' conftest.er1 >conftest.err
10785 cat conftest.err >&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try='test -z "$ac_c_werror_flag"
10789 || test ! -s conftest.err'
10790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10791 (eval $ac_try) 2>&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); }; } &&
10795 { ac_try='test -s conftest$ac_exeext'
10796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10797 (eval $ac_try) 2>&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); }; }; then
10801 ac_cv_lib_ICE_IceConnectionNumber=yes
10803 echo "$as_me: failed program was:" >&5
10804 sed 's/^/| /' conftest.$ac_ext >&5
10806 ac_cv_lib_ICE_IceConnectionNumber=no
10808 rm -f conftest.err conftest.$ac_objext \
10809 conftest$ac_exeext conftest.$ac_ext
10810 LIBS=$ac_check_lib_save_LIBS
10812 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10813 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10814 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10815 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10818 LDFLAGS=$ac_save_LDFLAGS
10880 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10881 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10882 echo "$as_me:$LINENO: checking for $ac_header" >&5
10883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10884 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10885 echo $ECHO_N "(cached) $ECHO_C" >&6
10887 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10888 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10890 # Is the header compilable?
10891 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10892 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10893 cat >conftest.$ac_ext <<_ACEOF
10896 cat confdefs.h >>conftest.$ac_ext
10897 cat >>conftest.$ac_ext <<_ACEOF
10898 /* end confdefs.h. */
10899 $ac_includes_default
10900 #include <$ac_header>
10902 rm -f conftest.$ac_objext
10903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10904 (eval $ac_compile) 2>conftest.er1
10906 grep -v '^ *+' conftest.er1 >conftest.err
10908 cat conftest.err >&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); } &&
10911 { ac_try='test -z "$ac_c_werror_flag"
10912 || test ! -s conftest.err'
10913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10914 (eval $ac_try) 2>&5
10916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10917 (exit $ac_status); }; } &&
10918 { ac_try='test -s conftest.$ac_objext'
10919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10920 (eval $ac_try) 2>&5
10922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); }; }; then
10924 ac_header_compiler=yes
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.$ac_ext >&5
10929 ac_header_compiler=no
10931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10933 echo "${ECHO_T}$ac_header_compiler" >&6
10935 # Is the header present?
10936 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10937 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10938 cat >conftest.$ac_ext <<_ACEOF
10941 cat confdefs.h >>conftest.$ac_ext
10942 cat >>conftest.$ac_ext <<_ACEOF
10943 /* end confdefs.h. */
10944 #include <$ac_header>
10946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10949 grep -v '^ *+' conftest.er1 >conftest.err
10951 cat conftest.err >&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); } >/dev/null; then
10954 if test -s conftest.err; then
10955 ac_cpp_err=$ac_c_preproc_warn_flag
10956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10963 if test -z "$ac_cpp_err"; then
10964 ac_header_preproc=yes
10966 echo "$as_me: failed program was:" >&5
10967 sed 's/^/| /' conftest.$ac_ext >&5
10969 ac_header_preproc=no
10971 rm -f conftest.err conftest.$ac_ext
10972 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10973 echo "${ECHO_T}$ac_header_preproc" >&6
10975 # So? What about this header?
10976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10982 ac_header_preproc=yes
10985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10992 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10999 ## ------------------------------------------ ##
11000 ## Report this to the AC_PACKAGE_NAME lists. ##
11001 ## ------------------------------------------ ##
11004 sed "s/^/$as_me: WARNING: /" >&2
11007 echo "$as_me:$LINENO: checking for $ac_header" >&5
11008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11009 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11010 echo $ECHO_N "(cached) $ECHO_C" >&6
11012 eval "$as_ac_Header=\$ac_header_preproc"
11014 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11015 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11019 cat >>confdefs.h <<_ACEOF
11020 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11027 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11028 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11029 if test "${ac_cv_header_stdc+set}" = set; then
11030 echo $ECHO_N "(cached) $ECHO_C" >&6
11032 cat >conftest.$ac_ext <<_ACEOF
11035 cat confdefs.h >>conftest.$ac_ext
11036 cat >>conftest.$ac_ext <<_ACEOF
11037 /* end confdefs.h. */
11038 #include <stdlib.h>
11039 #include <stdarg.h>
11040 #include <string.h>
11051 rm -f conftest.$ac_objext
11052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11053 (eval $ac_compile) 2>conftest.er1
11055 grep -v '^ *+' conftest.er1 >conftest.err
11057 cat conftest.err >&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } &&
11060 { ac_try='test -z "$ac_c_werror_flag"
11061 || test ! -s conftest.err'
11062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11063 (eval $ac_try) 2>&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); }; } &&
11067 { ac_try='test -s conftest.$ac_objext'
11068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11069 (eval $ac_try) 2>&5
11071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11072 (exit $ac_status); }; }; then
11073 ac_cv_header_stdc=yes
11075 echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11078 ac_cv_header_stdc=no
11080 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11082 if test $ac_cv_header_stdc = yes; then
11083 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11084 cat >conftest.$ac_ext <<_ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h. */
11090 #include <string.h>
11093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11094 $EGREP "memchr" >/dev/null 2>&1; then
11097 ac_cv_header_stdc=no
11103 if test $ac_cv_header_stdc = yes; then
11104 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11105 cat >conftest.$ac_ext <<_ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h. */
11111 #include <stdlib.h>
11114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11115 $EGREP "free" >/dev/null 2>&1; then
11118 ac_cv_header_stdc=no
11124 if test $ac_cv_header_stdc = yes; then
11125 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11126 if test "$cross_compiling" = yes; then
11129 cat >conftest.$ac_ext <<_ACEOF
11132 cat confdefs.h >>conftest.$ac_ext
11133 cat >>conftest.$ac_ext <<_ACEOF
11134 /* end confdefs.h. */
11136 #if ((' ' & 0x0FF) == 0x020)
11137 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11138 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11140 # define ISLOWER(c) \
11141 (('a' <= (c) && (c) <= 'i') \
11142 || ('j' <= (c) && (c) <= 'r') \
11143 || ('s' <= (c) && (c) <= 'z'))
11144 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11147 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11152 for (i = 0; i < 256; i++)
11153 if (XOR (islower (i), ISLOWER (i))
11154 || toupper (i) != TOUPPER (i))
11159 rm -f conftest$ac_exeext
11160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11161 (eval $ac_link) 2>&5
11163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11164 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11166 (eval $ac_try) 2>&5
11168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11169 (exit $ac_status); }; }; then
11172 echo "$as_me: program exited with status $ac_status" >&5
11173 echo "$as_me: failed program was:" >&5
11174 sed 's/^/| /' conftest.$ac_ext >&5
11176 ( exit $ac_status )
11177 ac_cv_header_stdc=no
11179 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11183 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11184 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11185 if test $ac_cv_header_stdc = yes; then
11187 cat >>confdefs.h <<\_ACEOF
11188 #define STDC_HEADERS 1
11193 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
11194 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
11195 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
11196 echo $ECHO_N "(cached) $ECHO_C" >&6
11198 cat >conftest.$ac_ext <<_ACEOF
11201 cat confdefs.h >>conftest.$ac_ext
11202 cat >>conftest.$ac_ext <<_ACEOF
11203 /* end confdefs.h. */
11204 #include <sys/types.h>
11208 return makedev(0, 0);
11213 rm -f conftest.$ac_objext conftest$ac_exeext
11214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11215 (eval $ac_link) 2>conftest.er1
11217 grep -v '^ *+' conftest.er1 >conftest.err
11219 cat conftest.err >&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } &&
11222 { ac_try='test -z "$ac_c_werror_flag"
11223 || test ! -s conftest.err'
11224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11225 (eval $ac_try) 2>&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; } &&
11229 { ac_try='test -s conftest$ac_exeext'
11230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11231 (eval $ac_try) 2>&5
11233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234 (exit $ac_status); }; }; then
11235 ac_cv_header_sys_types_h_makedev=yes
11237 echo "$as_me: failed program was:" >&5
11238 sed 's/^/| /' conftest.$ac_ext >&5
11240 ac_cv_header_sys_types_h_makedev=no
11242 rm -f conftest.err conftest.$ac_objext \
11243 conftest$ac_exeext conftest.$ac_ext
11246 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11247 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11249 if test $ac_cv_header_sys_types_h_makedev = no; then
11250 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11251 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11252 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11253 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11257 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11259 # Is the header compilable?
11260 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11261 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11262 cat >conftest.$ac_ext <<_ACEOF
11265 cat confdefs.h >>conftest.$ac_ext
11266 cat >>conftest.$ac_ext <<_ACEOF
11267 /* end confdefs.h. */
11268 $ac_includes_default
11269 #include <sys/mkdev.h>
11271 rm -f conftest.$ac_objext
11272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11273 (eval $ac_compile) 2>conftest.er1
11275 grep -v '^ *+' conftest.er1 >conftest.err
11277 cat conftest.err >&5
11278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11279 (exit $ac_status); } &&
11280 { ac_try='test -z "$ac_c_werror_flag"
11281 || test ! -s conftest.err'
11282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11283 (eval $ac_try) 2>&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; } &&
11287 { ac_try='test -s conftest.$ac_objext'
11288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11289 (eval $ac_try) 2>&5
11291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292 (exit $ac_status); }; }; then
11293 ac_header_compiler=yes
11295 echo "$as_me: failed program was:" >&5
11296 sed 's/^/| /' conftest.$ac_ext >&5
11298 ac_header_compiler=no
11300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11301 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11302 echo "${ECHO_T}$ac_header_compiler" >&6
11304 # Is the header present?
11305 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11306 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11307 cat >conftest.$ac_ext <<_ACEOF
11310 cat confdefs.h >>conftest.$ac_ext
11311 cat >>conftest.$ac_ext <<_ACEOF
11312 /* end confdefs.h. */
11313 #include <sys/mkdev.h>
11315 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11316 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11318 grep -v '^ *+' conftest.er1 >conftest.err
11320 cat conftest.err >&5
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } >/dev/null; then
11323 if test -s conftest.err; then
11324 ac_cpp_err=$ac_c_preproc_warn_flag
11325 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11332 if test -z "$ac_cpp_err"; then
11333 ac_header_preproc=yes
11335 echo "$as_me: failed program was:" >&5
11336 sed 's/^/| /' conftest.$ac_ext >&5
11338 ac_header_preproc=no
11340 rm -f conftest.err conftest.$ac_ext
11341 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11342 echo "${ECHO_T}$ac_header_preproc" >&6
11344 # So? What about this header?
11345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11347 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11348 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11349 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11350 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11351 ac_header_preproc=yes
11354 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11355 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11356 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
11357 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
11358 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11359 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11360 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
11361 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
11362 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11363 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11364 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11365 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11368 ## ------------------------------------------ ##
11369 ## Report this to the AC_PACKAGE_NAME lists. ##
11370 ## ------------------------------------------ ##
11373 sed "s/^/$as_me: WARNING: /" >&2
11376 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11377 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11378 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11381 ac_cv_header_sys_mkdev_h=$ac_header_preproc
11383 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11384 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11387 if test $ac_cv_header_sys_mkdev_h = yes; then
11389 cat >>confdefs.h <<\_ACEOF
11390 #define MAJOR_IN_MKDEV 1
11397 if test $ac_cv_header_sys_mkdev_h = no; then
11398 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11399 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11400 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11401 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11404 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11405 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11407 # Is the header compilable?
11408 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11409 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11410 cat >conftest.$ac_ext <<_ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11416 $ac_includes_default
11417 #include <sys/sysmacros.h>
11419 rm -f conftest.$ac_objext
11420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11421 (eval $ac_compile) 2>conftest.er1
11423 grep -v '^ *+' conftest.er1 >conftest.err
11425 cat conftest.err >&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } &&
11428 { ac_try='test -z "$ac_c_werror_flag"
11429 || test ! -s conftest.err'
11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11431 (eval $ac_try) 2>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); }; } &&
11435 { ac_try='test -s conftest.$ac_objext'
11436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437 (eval $ac_try) 2>&5
11439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440 (exit $ac_status); }; }; then
11441 ac_header_compiler=yes
11443 echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.$ac_ext >&5
11446 ac_header_compiler=no
11448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11450 echo "${ECHO_T}$ac_header_compiler" >&6
11452 # Is the header present?
11453 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11454 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11455 cat >conftest.$ac_ext <<_ACEOF
11458 cat confdefs.h >>conftest.$ac_ext
11459 cat >>conftest.$ac_ext <<_ACEOF
11460 /* end confdefs.h. */
11461 #include <sys/sysmacros.h>
11463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11466 grep -v '^ *+' conftest.er1 >conftest.err
11468 cat conftest.err >&5
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); } >/dev/null; then
11471 if test -s conftest.err; then
11472 ac_cpp_err=$ac_c_preproc_warn_flag
11473 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11480 if test -z "$ac_cpp_err"; then
11481 ac_header_preproc=yes
11483 echo "$as_me: failed program was:" >&5
11484 sed 's/^/| /' conftest.$ac_ext >&5
11486 ac_header_preproc=no
11488 rm -f conftest.err conftest.$ac_ext
11489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11490 echo "${ECHO_T}$ac_header_preproc" >&6
11492 # So? What about this header?
11493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11495 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11496 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11497 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11498 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11499 ac_header_preproc=yes
11502 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11503 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11504 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
11505 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
11506 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11507 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11508 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
11509 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
11510 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11511 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11512 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11513 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11516 ## ------------------------------------------ ##
11517 ## Report this to the AC_PACKAGE_NAME lists. ##
11518 ## ------------------------------------------ ##
11521 sed "s/^/$as_me: WARNING: /" >&2
11524 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11525 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11526 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11527 echo $ECHO_N "(cached) $ECHO_C" >&6
11529 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11531 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11532 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11535 if test $ac_cv_header_sys_sysmacros_h = yes; then
11537 cat >>confdefs.h <<\_ACEOF
11538 #define MAJOR_IN_SYSMACROS 1
11552 ac_header_dirent=no
11553 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11554 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11555 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11556 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11557 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11558 echo $ECHO_N "(cached) $ECHO_C" >&6
11560 cat >conftest.$ac_ext <<_ACEOF
11563 cat confdefs.h >>conftest.$ac_ext
11564 cat >>conftest.$ac_ext <<_ACEOF
11565 /* end confdefs.h. */
11566 #include <sys/types.h>
11578 rm -f conftest.$ac_objext
11579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11580 (eval $ac_compile) 2>conftest.er1
11582 grep -v '^ *+' conftest.er1 >conftest.err
11584 cat conftest.err >&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } &&
11587 { ac_try='test -z "$ac_c_werror_flag"
11588 || test ! -s conftest.err'
11589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11590 (eval $ac_try) 2>&5
11592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593 (exit $ac_status); }; } &&
11594 { ac_try='test -s conftest.$ac_objext'
11595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11596 (eval $ac_try) 2>&5
11598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11599 (exit $ac_status); }; }; then
11600 eval "$as_ac_Header=yes"
11602 echo "$as_me: failed program was:" >&5
11603 sed 's/^/| /' conftest.$ac_ext >&5
11605 eval "$as_ac_Header=no"
11607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11609 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11610 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11612 cat >>confdefs.h <<_ACEOF
11613 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11616 ac_header_dirent=$ac_hdr; break
11620 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11621 if test $ac_header_dirent = dirent.h; then
11622 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11623 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11624 if test "${ac_cv_search_opendir+set}" = set; then
11625 echo $ECHO_N "(cached) $ECHO_C" >&6
11627 ac_func_search_save_LIBS=$LIBS
11628 ac_cv_search_opendir=no
11629 cat >conftest.$ac_ext <<_ACEOF
11632 cat confdefs.h >>conftest.$ac_ext
11633 cat >>conftest.$ac_ext <<_ACEOF
11634 /* end confdefs.h. */
11636 /* Override any gcc2 internal prototype to avoid an error. */
11640 /* We use char because int might match the return type of a gcc2
11641 builtin and then its argument prototype would still apply. */
11651 rm -f conftest.$ac_objext conftest$ac_exeext
11652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11653 (eval $ac_link) 2>conftest.er1
11655 grep -v '^ *+' conftest.er1 >conftest.err
11657 cat conftest.err >&5
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); } &&
11660 { ac_try='test -z "$ac_c_werror_flag"
11661 || test ! -s conftest.err'
11662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11663 (eval $ac_try) 2>&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); }; } &&
11667 { ac_try='test -s conftest$ac_exeext'
11668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11669 (eval $ac_try) 2>&5
11671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11672 (exit $ac_status); }; }; then
11673 ac_cv_search_opendir="none required"
11675 echo "$as_me: failed program was:" >&5
11676 sed 's/^/| /' conftest.$ac_ext >&5
11679 rm -f conftest.err conftest.$ac_objext \
11680 conftest$ac_exeext conftest.$ac_ext
11681 if test "$ac_cv_search_opendir" = no; then
11682 for ac_lib in dir; do
11683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11684 cat >conftest.$ac_ext <<_ACEOF
11687 cat confdefs.h >>conftest.$ac_ext
11688 cat >>conftest.$ac_ext <<_ACEOF
11689 /* end confdefs.h. */
11691 /* Override any gcc2 internal prototype to avoid an error. */
11695 /* We use char because int might match the return type of a gcc2
11696 builtin and then its argument prototype would still apply. */
11706 rm -f conftest.$ac_objext conftest$ac_exeext
11707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11708 (eval $ac_link) 2>conftest.er1
11710 grep -v '^ *+' conftest.er1 >conftest.err
11712 cat conftest.err >&5
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); } &&
11715 { ac_try='test -z "$ac_c_werror_flag"
11716 || test ! -s conftest.err'
11717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11718 (eval $ac_try) 2>&5
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; } &&
11722 { ac_try='test -s conftest$ac_exeext'
11723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11724 (eval $ac_try) 2>&5
11726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727 (exit $ac_status); }; }; then
11728 ac_cv_search_opendir="-l$ac_lib"
11731 echo "$as_me: failed program was:" >&5
11732 sed 's/^/| /' conftest.$ac_ext >&5
11735 rm -f conftest.err conftest.$ac_objext \
11736 conftest$ac_exeext conftest.$ac_ext
11739 LIBS=$ac_func_search_save_LIBS
11741 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11742 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11743 if test "$ac_cv_search_opendir" != no; then
11744 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11749 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11750 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11751 if test "${ac_cv_search_opendir+set}" = set; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 ac_func_search_save_LIBS=$LIBS
11755 ac_cv_search_opendir=no
11756 cat >conftest.$ac_ext <<_ACEOF
11759 cat confdefs.h >>conftest.$ac_ext
11760 cat >>conftest.$ac_ext <<_ACEOF
11761 /* end confdefs.h. */
11763 /* Override any gcc2 internal prototype to avoid an error. */
11767 /* We use char because int might match the return type of a gcc2
11768 builtin and then its argument prototype would still apply. */
11778 rm -f conftest.$ac_objext conftest$ac_exeext
11779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11780 (eval $ac_link) 2>conftest.er1
11782 grep -v '^ *+' conftest.er1 >conftest.err
11784 cat conftest.err >&5
11785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11786 (exit $ac_status); } &&
11787 { ac_try='test -z "$ac_c_werror_flag"
11788 || test ! -s conftest.err'
11789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11790 (eval $ac_try) 2>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; } &&
11794 { ac_try='test -s conftest$ac_exeext'
11795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11796 (eval $ac_try) 2>&5
11798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11799 (exit $ac_status); }; }; then
11800 ac_cv_search_opendir="none required"
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11806 rm -f conftest.err conftest.$ac_objext \
11807 conftest$ac_exeext conftest.$ac_ext
11808 if test "$ac_cv_search_opendir" = no; then
11809 for ac_lib in x; do
11810 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11811 cat >conftest.$ac_ext <<_ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h. */
11818 /* Override any gcc2 internal prototype to avoid an error. */
11822 /* We use char because int might match the return type of a gcc2
11823 builtin and then its argument prototype would still apply. */
11833 rm -f conftest.$ac_objext conftest$ac_exeext
11834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11835 (eval $ac_link) 2>conftest.er1
11837 grep -v '^ *+' conftest.er1 >conftest.err
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } &&
11842 { ac_try='test -z "$ac_c_werror_flag"
11843 || test ! -s conftest.err'
11844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11845 (eval $ac_try) 2>&5
11847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848 (exit $ac_status); }; } &&
11849 { ac_try='test -s conftest$ac_exeext'
11850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11851 (eval $ac_try) 2>&5
11853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11854 (exit $ac_status); }; }; then
11855 ac_cv_search_opendir="-l$ac_lib"
11858 echo "$as_me: failed program was:" >&5
11859 sed 's/^/| /' conftest.$ac_ext >&5
11862 rm -f conftest.err conftest.$ac_objext \
11863 conftest$ac_exeext conftest.$ac_ext
11866 LIBS=$ac_func_search_save_LIBS
11868 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11869 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11870 if test "$ac_cv_search_opendir" != no; then
11871 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11877 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11878 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11879 if test "${ac_cv_header_stat_broken+set}" = set; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11882 cat >conftest.$ac_ext <<_ACEOF
11885 cat confdefs.h >>conftest.$ac_ext
11886 cat >>conftest.$ac_ext <<_ACEOF
11887 /* end confdefs.h. */
11888 #include <sys/types.h>
11889 #include <sys/stat.h>
11891 #if defined(S_ISBLK) && defined(S_IFDIR)
11892 # if S_ISBLK (S_IFDIR)
11897 #if defined(S_ISBLK) && defined(S_IFCHR)
11898 # if S_ISBLK (S_IFCHR)
11903 #if defined(S_ISLNK) && defined(S_IFREG)
11904 # if S_ISLNK (S_IFREG)
11909 #if defined(S_ISSOCK) && defined(S_IFREG)
11910 # if S_ISSOCK (S_IFREG)
11916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11917 $EGREP "You lose" >/dev/null 2>&1; then
11918 ac_cv_header_stat_broken=yes
11920 ac_cv_header_stat_broken=no
11925 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
11926 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
11927 if test $ac_cv_header_stat_broken = yes; then
11929 cat >>confdefs.h <<\_ACEOF
11930 #define STAT_MACROS_BROKEN 1
11935 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
11936 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
11937 if test "${ac_cv_header_sys_wait_h+set}" = set; then
11938 echo $ECHO_N "(cached) $ECHO_C" >&6
11940 cat >conftest.$ac_ext <<_ACEOF
11943 cat confdefs.h >>conftest.$ac_ext
11944 cat >>conftest.$ac_ext <<_ACEOF
11945 /* end confdefs.h. */
11946 #include <sys/types.h>
11947 #include <sys/wait.h>
11948 #ifndef WEXITSTATUS
11949 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
11952 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11960 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11965 rm -f conftest.$ac_objext
11966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11967 (eval $ac_compile) 2>conftest.er1
11969 grep -v '^ *+' conftest.er1 >conftest.err
11971 cat conftest.err >&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } &&
11974 { ac_try='test -z "$ac_c_werror_flag"
11975 || test ! -s conftest.err'
11976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11977 (eval $ac_try) 2>&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); }; } &&
11981 { ac_try='test -s conftest.$ac_objext'
11982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11983 (eval $ac_try) 2>&5
11985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); }; }; then
11987 ac_cv_header_sys_wait_h=yes
11989 echo "$as_me: failed program was:" >&5
11990 sed 's/^/| /' conftest.$ac_ext >&5
11992 ac_cv_header_sys_wait_h=no
11994 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11996 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
11997 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
11998 if test $ac_cv_header_sys_wait_h = yes; then
12000 cat >>confdefs.h <<\_ACEOF
12001 #define HAVE_SYS_WAIT_H 1
12006 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12007 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12008 if test "${ac_cv_header_time+set}" = set; then
12009 echo $ECHO_N "(cached) $ECHO_C" >&6
12011 cat >conftest.$ac_ext <<_ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h. */
12017 #include <sys/types.h>
12018 #include <sys/time.h>
12024 if ((struct tm *) 0)
12030 rm -f conftest.$ac_objext
12031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12032 (eval $ac_compile) 2>conftest.er1
12034 grep -v '^ *+' conftest.er1 >conftest.err
12036 cat conftest.err >&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } &&
12039 { ac_try='test -z "$ac_c_werror_flag"
12040 || test ! -s conftest.err'
12041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12042 (eval $ac_try) 2>&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); }; } &&
12046 { ac_try='test -s conftest.$ac_objext'
12047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12048 (eval $ac_try) 2>&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); }; }; then
12052 ac_cv_header_time=yes
12054 echo "$as_me: failed program was:" >&5
12055 sed 's/^/| /' conftest.$ac_ext >&5
12057 ac_cv_header_time=no
12059 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12061 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12062 echo "${ECHO_T}$ac_cv_header_time" >&6
12063 if test $ac_cv_header_time = yes; then
12065 cat >>confdefs.h <<\_ACEOF
12066 #define TIME_WITH_SYS_TIME 1
12072 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12073 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
12074 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12077 cat >conftest.$ac_ext <<_ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12083 $ac_includes_default
12087 static struct stat ac_aggr;
12088 if (ac_aggr.st_blksize)
12094 rm -f conftest.$ac_objext
12095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12096 (eval $ac_compile) 2>conftest.er1
12098 grep -v '^ *+' conftest.er1 >conftest.err
12100 cat conftest.err >&5
12101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102 (exit $ac_status); } &&
12103 { ac_try='test -z "$ac_c_werror_flag"
12104 || test ! -s conftest.err'
12105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12106 (eval $ac_try) 2>&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; } &&
12110 { ac_try='test -s conftest.$ac_objext'
12111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12112 (eval $ac_try) 2>&5
12114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12115 (exit $ac_status); }; }; then
12116 ac_cv_member_struct_stat_st_blksize=yes
12118 echo "$as_me: failed program was:" >&5
12119 sed 's/^/| /' conftest.$ac_ext >&5
12121 cat >conftest.$ac_ext <<_ACEOF
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h. */
12127 $ac_includes_default
12131 static struct stat ac_aggr;
12132 if (sizeof ac_aggr.st_blksize)
12138 rm -f conftest.$ac_objext
12139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12140 (eval $ac_compile) 2>conftest.er1
12142 grep -v '^ *+' conftest.er1 >conftest.err
12144 cat conftest.err >&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); } &&
12147 { ac_try='test -z "$ac_c_werror_flag"
12148 || test ! -s conftest.err'
12149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150 (eval $ac_try) 2>&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); }; } &&
12154 { ac_try='test -s conftest.$ac_objext'
12155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12156 (eval $ac_try) 2>&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); }; }; then
12160 ac_cv_member_struct_stat_st_blksize=yes
12162 echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12165 ac_cv_member_struct_stat_st_blksize=no
12167 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12171 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12172 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12173 if test $ac_cv_member_struct_stat_st_blksize = yes; then
12175 cat >>confdefs.h <<_ACEOF
12176 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12180 cat >>confdefs.h <<\_ACEOF
12181 #define HAVE_ST_BLKSIZE 1
12187 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12188 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12189 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 cat >conftest.$ac_ext <<_ACEOF
12195 cat confdefs.h >>conftest.$ac_ext
12196 cat >>conftest.$ac_ext <<_ACEOF
12197 /* end confdefs.h. */
12198 $ac_includes_default
12202 static struct stat ac_aggr;
12203 if (ac_aggr.st_blocks)
12209 rm -f conftest.$ac_objext
12210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12211 (eval $ac_compile) 2>conftest.er1
12213 grep -v '^ *+' conftest.er1 >conftest.err
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } &&
12218 { ac_try='test -z "$ac_c_werror_flag"
12219 || test ! -s conftest.err'
12220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12221 (eval $ac_try) 2>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); }; } &&
12225 { ac_try='test -s conftest.$ac_objext'
12226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227 (eval $ac_try) 2>&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; }; then
12231 ac_cv_member_struct_stat_st_blocks=yes
12233 echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12236 cat >conftest.$ac_ext <<_ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242 $ac_includes_default
12246 static struct stat ac_aggr;
12247 if (sizeof ac_aggr.st_blocks)
12253 rm -f conftest.$ac_objext
12254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12255 (eval $ac_compile) 2>conftest.er1
12257 grep -v '^ *+' conftest.er1 >conftest.err
12259 cat conftest.err >&5
12260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12261 (exit $ac_status); } &&
12262 { ac_try='test -z "$ac_c_werror_flag"
12263 || test ! -s conftest.err'
12264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12265 (eval $ac_try) 2>&5
12267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12268 (exit $ac_status); }; } &&
12269 { ac_try='test -s conftest.$ac_objext'
12270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12271 (eval $ac_try) 2>&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); }; }; then
12275 ac_cv_member_struct_stat_st_blocks=yes
12277 echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12280 ac_cv_member_struct_stat_st_blocks=no
12282 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12284 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12286 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12287 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12288 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12290 cat >>confdefs.h <<_ACEOF
12291 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12295 cat >>confdefs.h <<\_ACEOF
12296 #define HAVE_ST_BLOCKS 1
12301 "fileblocks.$ac_objext" | \
12302 *" fileblocks.$ac_objext" | \
12303 "fileblocks.$ac_objext "* | \
12304 *" fileblocks.$ac_objext "* ) ;;
12305 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12311 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12312 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12313 if test "${ac_cv_struct_tm+set}" = set; then
12314 echo $ECHO_N "(cached) $ECHO_C" >&6
12316 cat >conftest.$ac_ext <<_ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h. */
12322 #include <sys/types.h>
12328 struct tm *tp; tp->tm_sec;
12333 rm -f conftest.$ac_objext
12334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12335 (eval $ac_compile) 2>conftest.er1
12337 grep -v '^ *+' conftest.er1 >conftest.err
12339 cat conftest.err >&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } &&
12342 { ac_try='test -z "$ac_c_werror_flag"
12343 || test ! -s conftest.err'
12344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12345 (eval $ac_try) 2>&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; } &&
12349 { ac_try='test -s conftest.$ac_objext'
12350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12351 (eval $ac_try) 2>&5
12353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12354 (exit $ac_status); }; }; then
12355 ac_cv_struct_tm=time.h
12357 echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12360 ac_cv_struct_tm=sys/time.h
12362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12364 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12365 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12366 if test $ac_cv_struct_tm = sys/time.h; then
12368 cat >>confdefs.h <<\_ACEOF
12369 #define TM_IN_SYS_TIME 1
12374 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12375 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12376 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 cat >conftest.$ac_ext <<_ACEOF
12382 cat confdefs.h >>conftest.$ac_ext
12383 cat >>conftest.$ac_ext <<_ACEOF
12384 /* end confdefs.h. */
12385 #include <sys/types.h>
12386 #include <$ac_cv_struct_tm>
12392 static struct tm ac_aggr;
12393 if (ac_aggr.tm_zone)
12399 rm -f conftest.$ac_objext
12400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12401 (eval $ac_compile) 2>conftest.er1
12403 grep -v '^ *+' conftest.er1 >conftest.err
12405 cat conftest.err >&5
12406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } &&
12408 { ac_try='test -z "$ac_c_werror_flag"
12409 || test ! -s conftest.err'
12410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12411 (eval $ac_try) 2>&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); }; } &&
12415 { ac_try='test -s conftest.$ac_objext'
12416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417 (eval $ac_try) 2>&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; }; then
12421 ac_cv_member_struct_tm_tm_zone=yes
12423 echo "$as_me: failed program was:" >&5
12424 sed 's/^/| /' conftest.$ac_ext >&5
12426 cat >conftest.$ac_ext <<_ACEOF
12429 cat confdefs.h >>conftest.$ac_ext
12430 cat >>conftest.$ac_ext <<_ACEOF
12431 /* end confdefs.h. */
12432 #include <sys/types.h>
12433 #include <$ac_cv_struct_tm>
12439 static struct tm ac_aggr;
12440 if (sizeof ac_aggr.tm_zone)
12446 rm -f conftest.$ac_objext
12447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12448 (eval $ac_compile) 2>conftest.er1
12450 grep -v '^ *+' conftest.er1 >conftest.err
12452 cat conftest.err >&5
12453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12454 (exit $ac_status); } &&
12455 { ac_try='test -z "$ac_c_werror_flag"
12456 || test ! -s conftest.err'
12457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12458 (eval $ac_try) 2>&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); }; } &&
12462 { ac_try='test -s conftest.$ac_objext'
12463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12464 (eval $ac_try) 2>&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
12468 ac_cv_member_struct_tm_tm_zone=yes
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12473 ac_cv_member_struct_tm_tm_zone=no
12475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12477 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12479 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12480 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12481 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12483 cat >>confdefs.h <<_ACEOF
12484 #define HAVE_STRUCT_TM_TM_ZONE 1
12490 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12492 cat >>confdefs.h <<\_ACEOF
12493 #define HAVE_TM_ZONE 1
12497 echo "$as_me:$LINENO: checking for tzname" >&5
12498 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12499 if test "${ac_cv_var_tzname+set}" = set; then
12500 echo $ECHO_N "(cached) $ECHO_C" >&6
12502 cat >conftest.$ac_ext <<_ACEOF
12505 cat confdefs.h >>conftest.$ac_ext
12506 cat >>conftest.$ac_ext <<_ACEOF
12507 /* end confdefs.h. */
12509 #ifndef tzname /* For SGI. */
12510 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
12521 rm -f conftest.$ac_objext conftest$ac_exeext
12522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12523 (eval $ac_link) 2>conftest.er1
12525 grep -v '^ *+' conftest.er1 >conftest.err
12527 cat conftest.err >&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); } &&
12530 { ac_try='test -z "$ac_c_werror_flag"
12531 || test ! -s conftest.err'
12532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12533 (eval $ac_try) 2>&5
12535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12536 (exit $ac_status); }; } &&
12537 { ac_try='test -s conftest$ac_exeext'
12538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12539 (eval $ac_try) 2>&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); }; }; then
12543 ac_cv_var_tzname=yes
12545 echo "$as_me: failed program was:" >&5
12546 sed 's/^/| /' conftest.$ac_ext >&5
12548 ac_cv_var_tzname=no
12550 rm -f conftest.err conftest.$ac_objext \
12551 conftest$ac_exeext conftest.$ac_ext
12553 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12554 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12555 if test $ac_cv_var_tzname = yes; then
12557 cat >>confdefs.h <<\_ACEOF
12558 #define HAVE_TZNAME 1
12565 echo "$as_me:$LINENO: checking for utime.h" >&5
12566 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12567 if test "${ba_cv_header_utime_h+set}" = set; then
12568 echo $ECHO_N "(cached) $ECHO_C" >&6
12570 cat >conftest.$ac_ext <<_ACEOF
12573 cat confdefs.h >>conftest.$ac_ext
12574 cat >>conftest.$ac_ext <<_ACEOF
12575 /* end confdefs.h. */
12577 #include <sys/types.h>
12587 rm -f conftest.$ac_objext
12588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12589 (eval $ac_compile) 2>conftest.er1
12591 grep -v '^ *+' conftest.er1 >conftest.err
12593 cat conftest.err >&5
12594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); } &&
12596 { ac_try='test -z "$ac_c_werror_flag"
12597 || test ! -s conftest.err'
12598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12599 (eval $ac_try) 2>&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); }; } &&
12603 { ac_try='test -s conftest.$ac_objext'
12604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12605 (eval $ac_try) 2>&5
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; }; then
12609 ba_cv_header_utime_h=yes
12611 echo "$as_me: failed program was:" >&5
12612 sed 's/^/| /' conftest.$ac_ext >&5
12614 ba_cv_header_utime_h=no
12616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12618 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12619 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12620 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12621 #define HAVE_UTIME_H 1
12625 echo "$as_me:$LINENO: checking for socklen_t" >&5
12626 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12627 if test "${ba_cv_header_socklen_t+set}" = set; then
12628 echo $ECHO_N "(cached) $ECHO_C" >&6
12630 cat >conftest.$ac_ext <<_ACEOF
12633 cat confdefs.h >>conftest.$ac_ext
12634 cat >>conftest.$ac_ext <<_ACEOF
12635 /* end confdefs.h. */
12637 #include <sys/types.h>
12638 #include <sys/socket.h>
12647 rm -f conftest.$ac_objext
12648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12649 (eval $ac_compile) 2>conftest.er1
12651 grep -v '^ *+' conftest.er1 >conftest.err
12653 cat conftest.err >&5
12654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12655 (exit $ac_status); } &&
12656 { ac_try='test -z "$ac_c_werror_flag"
12657 || test ! -s conftest.err'
12658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12659 (eval $ac_try) 2>&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); }; } &&
12663 { ac_try='test -s conftest.$ac_objext'
12664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12665 (eval $ac_try) 2>&5
12667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12668 (exit $ac_status); }; }; then
12669 ba_cv_header_socklen_t=yes
12671 echo "$as_me: failed program was:" >&5
12672 sed 's/^/| /' conftest.$ac_ext >&5
12674 ba_cv_header_socklen_t=no
12676 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12678 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12679 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12680 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12681 #define HAVE_SOCKLEN_T 1
12685 echo "$as_me:$LINENO: checking for bigendian" >&5
12686 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12687 if test "${ba_cv_bigendian+set}" = set; then
12688 echo $ECHO_N "(cached) $ECHO_C" >&6
12690 if test "$cross_compiling" = yes; then
12693 cat >conftest.$ac_ext <<_ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h. */
12699 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12701 rm -f conftest$ac_exeext
12702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12703 (eval $ac_link) 2>&5
12705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12708 (eval $ac_try) 2>&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); }; }; then
12712 ba_cv_bigendian=yes
12714 echo "$as_me: program exited with status $ac_status" >&5
12715 echo "$as_me: failed program was:" >&5
12716 sed 's/^/| /' conftest.$ac_ext >&5
12718 ( exit $ac_status )
12721 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12724 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12725 echo "${ECHO_T}$ba_cv_bigendian" >&6
12726 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12727 #define HAVE_BIGENDIAN 1
12732 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12733 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12734 if test "${ac_cv_c_const+set}" = set; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12737 cat >conftest.$ac_ext <<_ACEOF
12740 cat confdefs.h >>conftest.$ac_ext
12741 cat >>conftest.$ac_ext <<_ACEOF
12742 /* end confdefs.h. */
12747 /* FIXME: Include the comments suggested by Paul. */
12748 #ifndef __cplusplus
12749 /* Ultrix mips cc rejects this. */
12750 typedef int charset[2];
12752 /* SunOS 4.1.1 cc rejects this. */
12753 char const *const *ccp;
12755 /* NEC SVR4.0.2 mips cc rejects this. */
12756 struct point {int x, y;};
12757 static struct point const zero = {0,0};
12758 /* AIX XL C 1.02.0.0 rejects this.
12759 It does not let you subtract one const X* pointer from another in
12760 an arm of an if-expression whose if-part is not a constant
12762 const char *g = "string";
12763 ccp = &g + (g ? g-g : 0);
12764 /* HPUX 7.0 cc rejects these. */
12767 ccp = (char const *const *) p;
12768 { /* SCO 3.2v4 cc rejects this. */
12770 char const *s = 0 ? (char *) 0 : (char const *) 0;
12774 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12775 int x[] = {25, 17};
12776 const int *foo = &x[0];
12779 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12780 typedef const int *iptr;
12784 { /* AIX XL C 1.02.0.0 rejects this saying
12785 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12786 struct s { int j; const int *ap[3]; };
12787 struct s *b; b->j = 5;
12789 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12790 const int foo = 10;
12798 rm -f conftest.$ac_objext
12799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12800 (eval $ac_compile) 2>conftest.er1
12802 grep -v '^ *+' conftest.er1 >conftest.err
12804 cat conftest.err >&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } &&
12807 { ac_try='test -z "$ac_c_werror_flag"
12808 || test ! -s conftest.err'
12809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810 (eval $ac_try) 2>&5
12812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813 (exit $ac_status); }; } &&
12814 { ac_try='test -s conftest.$ac_objext'
12815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12816 (eval $ac_try) 2>&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); }; }; then
12822 echo "$as_me: failed program was:" >&5
12823 sed 's/^/| /' conftest.$ac_ext >&5
12827 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12829 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12830 echo "${ECHO_T}$ac_cv_c_const" >&6
12831 if test $ac_cv_c_const = no; then
12833 cat >>confdefs.h <<\_ACEOF
12841 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12842 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12844 # The order of these tests is important.
12845 cat >conftest.$ac_ext <<_ACEOF
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12851 #include <sys/statvfs.h>
12852 #include <sys/fstyp.h>
12854 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12855 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12857 grep -v '^ *+' conftest.er1 >conftest.err
12859 cat conftest.err >&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); } >/dev/null; then
12862 if test -s conftest.err; then
12863 ac_cpp_err=$ac_c_preproc_warn_flag
12864 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12871 if test -z "$ac_cpp_err"; then
12872 cat >>confdefs.h <<\_ACEOF
12873 #define FSTYPE_STATVFS 1
12877 echo "$as_me: failed program was:" >&5
12878 sed 's/^/| /' conftest.$ac_ext >&5
12882 rm -f conftest.err conftest.$ac_ext
12883 if test $fstype = no; then
12884 cat >conftest.$ac_ext <<_ACEOF
12887 cat confdefs.h >>conftest.$ac_ext
12888 cat >>conftest.$ac_ext <<_ACEOF
12889 /* end confdefs.h. */
12890 #include <sys/statfs.h>
12891 #include <sys/fstyp.h>
12893 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12894 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12896 grep -v '^ *+' conftest.er1 >conftest.err
12898 cat conftest.err >&5
12899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12900 (exit $ac_status); } >/dev/null; then
12901 if test -s conftest.err; then
12902 ac_cpp_err=$ac_c_preproc_warn_flag
12903 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12910 if test -z "$ac_cpp_err"; then
12911 cat >>confdefs.h <<\_ACEOF
12912 #define FSTYPE_USG_STATFS 1
12916 echo "$as_me: failed program was:" >&5
12917 sed 's/^/| /' conftest.$ac_ext >&5
12921 rm -f conftest.err conftest.$ac_ext
12923 if test $fstype = no; then
12924 cat >conftest.$ac_ext <<_ACEOF
12927 cat confdefs.h >>conftest.$ac_ext
12928 cat >>conftest.$ac_ext <<_ACEOF
12929 /* end confdefs.h. */
12930 #include <sys/statfs.h>
12931 #include <sys/vmount.h>
12933 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12936 grep -v '^ *+' conftest.er1 >conftest.err
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } >/dev/null; then
12941 if test -s conftest.err; then
12942 ac_cpp_err=$ac_c_preproc_warn_flag
12943 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12950 if test -z "$ac_cpp_err"; then
12951 cat >>confdefs.h <<\_ACEOF
12952 #define FSTYPE_AIX_STATFS 1
12956 echo "$as_me: failed program was:" >&5
12957 sed 's/^/| /' conftest.$ac_ext >&5
12961 rm -f conftest.err conftest.$ac_ext
12963 if test $fstype = no; then
12964 cat >conftest.$ac_ext <<_ACEOF
12967 cat confdefs.h >>conftest.$ac_ext
12968 cat >>conftest.$ac_ext <<_ACEOF
12969 /* end confdefs.h. */
12970 #include <mntent.h>
12972 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12973 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12975 grep -v '^ *+' conftest.er1 >conftest.err
12977 cat conftest.err >&5
12978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12979 (exit $ac_status); } >/dev/null; then
12980 if test -s conftest.err; then
12981 ac_cpp_err=$ac_c_preproc_warn_flag
12982 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12989 if test -z "$ac_cpp_err"; then
12990 cat >>confdefs.h <<\_ACEOF
12991 #define FSTYPE_MNTENT 1
12995 echo "$as_me: failed program was:" >&5
12996 sed 's/^/| /' conftest.$ac_ext >&5
13000 rm -f conftest.err conftest.$ac_ext
13002 if test $fstype = no; then
13003 cat >conftest.$ac_ext <<_ACEOF
13006 cat confdefs.h >>conftest.$ac_ext
13007 cat >>conftest.$ac_ext <<_ACEOF
13008 /* end confdefs.h. */
13009 #include <sys/mount.h>
13012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13013 $EGREP "f_type;" >/dev/null 2>&1; then
13014 cat >>confdefs.h <<\_ACEOF
13015 #define FSTYPE_STATFS 1
13022 if test $fstype = no; then
13023 cat >conftest.$ac_ext <<_ACEOF
13026 cat confdefs.h >>conftest.$ac_ext
13027 cat >>conftest.$ac_ext <<_ACEOF
13028 /* end confdefs.h. */
13029 #include <sys/mount.h>
13030 #include <sys/fs_types.h>
13032 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13033 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13035 grep -v '^ *+' conftest.er1 >conftest.err
13037 cat conftest.err >&5
13038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13039 (exit $ac_status); } >/dev/null; then
13040 if test -s conftest.err; then
13041 ac_cpp_err=$ac_c_preproc_warn_flag
13042 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13049 if test -z "$ac_cpp_err"; then
13050 cat >>confdefs.h <<\_ACEOF
13051 #define FSTYPE_GETMNT 1
13055 echo "$as_me: failed program was:" >&5
13056 sed 's/^/| /' conftest.$ac_ext >&5
13060 rm -f conftest.err conftest.$ac_ext
13062 echo "$as_me:$LINENO: result: $fstype" >&5
13063 echo "${ECHO_T}$fstype" >&6
13065 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13066 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13067 if test "${ac_cv_type_signal+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 cat >conftest.$ac_ext <<_ACEOF
13073 cat confdefs.h >>conftest.$ac_ext
13074 cat >>conftest.$ac_ext <<_ACEOF
13075 /* end confdefs.h. */
13076 #include <sys/types.h>
13077 #include <signal.h>
13082 extern "C" void (*signal (int, void (*)(int)))(int);
13084 void (*signal ()) ();
13095 rm -f conftest.$ac_objext
13096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13097 (eval $ac_compile) 2>conftest.er1
13099 grep -v '^ *+' conftest.er1 >conftest.err
13101 cat conftest.err >&5
13102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); } &&
13104 { ac_try='test -z "$ac_c_werror_flag"
13105 || test ! -s conftest.err'
13106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13107 (eval $ac_try) 2>&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; } &&
13111 { ac_try='test -s conftest.$ac_objext'
13112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13113 (eval $ac_try) 2>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); }; }; then
13117 ac_cv_type_signal=void
13119 echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.$ac_ext >&5
13122 ac_cv_type_signal=int
13124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13126 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13127 echo "${ECHO_T}$ac_cv_type_signal" >&6
13129 cat >>confdefs.h <<_ACEOF
13130 #define RETSIGTYPE $ac_cv_type_signal
13135 echo "$as_me:$LINENO: checking for type of signal functions" >&5
13136 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
13137 if test "${bash_cv_signal_vintage+set}" = set; then
13138 echo $ECHO_N "(cached) $ECHO_C" >&6
13141 cat >conftest.$ac_ext <<_ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13147 #include <signal.h>
13153 struct sigaction sa;
13154 sigemptyset(&ss); sigsuspend(&ss);
13155 sigaction(SIGINT, &sa, (struct sigaction *) 0);
13156 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
13162 rm -f conftest.$ac_objext conftest$ac_exeext
13163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13164 (eval $ac_link) 2>conftest.er1
13166 grep -v '^ *+' conftest.er1 >conftest.err
13168 cat conftest.err >&5
13169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } &&
13171 { ac_try='test -z "$ac_c_werror_flag"
13172 || test ! -s conftest.err'
13173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13174 (eval $ac_try) 2>&5
13176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13177 (exit $ac_status); }; } &&
13178 { ac_try='test -s conftest$ac_exeext'
13179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13180 (eval $ac_try) 2>&5
13182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13183 (exit $ac_status); }; }; then
13184 bash_cv_signal_vintage=posix
13186 echo "$as_me: failed program was:" >&5
13187 sed 's/^/| /' conftest.$ac_ext >&5
13190 cat >conftest.$ac_ext <<_ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h. */
13196 #include <signal.h>
13201 int mask = sigmask(SIGINT);
13202 sigsetmask(mask); sigblock(mask); sigpause(mask);
13208 rm -f conftest.$ac_objext conftest$ac_exeext
13209 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13210 (eval $ac_link) 2>conftest.er1
13212 grep -v '^ *+' conftest.er1 >conftest.err
13214 cat conftest.err >&5
13215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13216 (exit $ac_status); } &&
13217 { ac_try='test -z "$ac_c_werror_flag"
13218 || test ! -s conftest.err'
13219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13220 (eval $ac_try) 2>&5
13222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13223 (exit $ac_status); }; } &&
13224 { ac_try='test -s conftest$ac_exeext'
13225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13226 (eval $ac_try) 2>&5
13228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13229 (exit $ac_status); }; }; then
13230 bash_cv_signal_vintage=4.2bsd
13232 echo "$as_me: failed program was:" >&5
13233 sed 's/^/| /' conftest.$ac_ext >&5
13236 cat >conftest.$ac_ext <<_ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13243 #include <signal.h>
13244 RETSIGTYPE foo() { }
13249 int mask = sigmask(SIGINT);
13250 sigset(SIGINT, foo); sigrelse(SIGINT);
13251 sighold(SIGINT); sigpause(SIGINT);
13257 rm -f conftest.$ac_objext conftest$ac_exeext
13258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13259 (eval $ac_link) 2>conftest.er1
13261 grep -v '^ *+' conftest.er1 >conftest.err
13263 cat conftest.err >&5
13264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13265 (exit $ac_status); } &&
13266 { ac_try='test -z "$ac_c_werror_flag"
13267 || test ! -s conftest.err'
13268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13269 (eval $ac_try) 2>&5
13271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13272 (exit $ac_status); }; } &&
13273 { ac_try='test -s conftest$ac_exeext'
13274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13275 (eval $ac_try) 2>&5
13277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13278 (exit $ac_status); }; }; then
13279 bash_cv_signal_vintage=svr3
13281 echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13284 bash_cv_signal_vintage=v7
13287 rm -f conftest.err conftest.$ac_objext \
13288 conftest$ac_exeext conftest.$ac_ext
13291 rm -f conftest.err conftest.$ac_objext \
13292 conftest$ac_exeext conftest.$ac_ext
13295 rm -f conftest.err conftest.$ac_objext \
13296 conftest$ac_exeext conftest.$ac_ext
13300 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13301 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13302 if test "$bash_cv_signal_vintage" = posix; then
13303 cat >>confdefs.h <<\_ACEOF
13304 #define HAVE_POSIX_SIGNALS 1
13307 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13308 cat >>confdefs.h <<\_ACEOF
13309 #define HAVE_BSD_SIGNALS 1
13312 elif test "$bash_cv_signal_vintage" = svr3; then
13313 cat >>confdefs.h <<\_ACEOF
13314 #define HAVE_USG_SIGHOLD 1
13319 echo "$as_me:$LINENO: checking for mode_t" >&5
13320 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13321 if test "${ac_cv_type_mode_t+set}" = set; then
13322 echo $ECHO_N "(cached) $ECHO_C" >&6
13324 cat >conftest.$ac_ext <<_ACEOF
13327 cat confdefs.h >>conftest.$ac_ext
13328 cat >>conftest.$ac_ext <<_ACEOF
13329 /* end confdefs.h. */
13330 $ac_includes_default
13336 if (sizeof (mode_t))
13342 rm -f conftest.$ac_objext
13343 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13344 (eval $ac_compile) 2>conftest.er1
13346 grep -v '^ *+' conftest.er1 >conftest.err
13348 cat conftest.err >&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); } &&
13351 { ac_try='test -z "$ac_c_werror_flag"
13352 || test ! -s conftest.err'
13353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13354 (eval $ac_try) 2>&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); }; } &&
13358 { ac_try='test -s conftest.$ac_objext'
13359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13360 (eval $ac_try) 2>&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; }; then
13364 ac_cv_type_mode_t=yes
13366 echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13369 ac_cv_type_mode_t=no
13371 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13373 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13374 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13375 if test $ac_cv_type_mode_t = yes; then
13379 cat >>confdefs.h <<_ACEOF
13385 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13386 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13387 if test "${ac_cv_type_uid_t+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13390 cat >conftest.$ac_ext <<_ACEOF
13393 cat confdefs.h >>conftest.$ac_ext
13394 cat >>conftest.$ac_ext <<_ACEOF
13395 /* end confdefs.h. */
13396 #include <sys/types.h>
13399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13400 $EGREP "uid_t" >/dev/null 2>&1; then
13401 ac_cv_type_uid_t=yes
13403 ac_cv_type_uid_t=no
13408 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13409 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13410 if test $ac_cv_type_uid_t = no; then
13412 cat >>confdefs.h <<\_ACEOF
13417 cat >>confdefs.h <<\_ACEOF
13423 echo "$as_me:$LINENO: checking for size_t" >&5
13424 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13425 if test "${ac_cv_type_size_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 (size_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_size_t=yes
13470 echo "$as_me: failed program was:" >&5
13471 sed 's/^/| /' conftest.$ac_ext >&5
13473 ac_cv_type_size_t=no
13475 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13477 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13478 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13479 if test $ac_cv_type_size_t = yes; then
13483 cat >>confdefs.h <<_ACEOF
13484 #define size_t unsigned
13489 echo "$as_me:$LINENO: checking for pid_t" >&5
13490 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13491 if test "${ac_cv_type_pid_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 $ac_includes_default
13506 if (sizeof (pid_t))
13512 rm -f conftest.$ac_objext
13513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13514 (eval $ac_compile) 2>conftest.er1
13516 grep -v '^ *+' conftest.er1 >conftest.err
13518 cat conftest.err >&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } &&
13521 { ac_try='test -z "$ac_c_werror_flag"
13522 || test ! -s conftest.err'
13523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13524 (eval $ac_try) 2>&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; } &&
13528 { ac_try='test -s conftest.$ac_objext'
13529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530 (eval $ac_try) 2>&5
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; }; then
13534 ac_cv_type_pid_t=yes
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539 ac_cv_type_pid_t=no
13541 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13543 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13544 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13545 if test $ac_cv_type_pid_t = yes; then
13549 cat >>confdefs.h <<_ACEOF
13555 echo "$as_me:$LINENO: checking for off_t" >&5
13556 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13557 if test "${ac_cv_type_off_t+set}" = set; then
13558 echo $ECHO_N "(cached) $ECHO_C" >&6
13560 cat >conftest.$ac_ext <<_ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h. */
13566 $ac_includes_default
13572 if (sizeof (off_t))
13578 rm -f conftest.$ac_objext
13579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13580 (eval $ac_compile) 2>conftest.er1
13582 grep -v '^ *+' conftest.er1 >conftest.err
13584 cat conftest.err >&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } &&
13587 { ac_try='test -z "$ac_c_werror_flag"
13588 || test ! -s conftest.err'
13589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13590 (eval $ac_try) 2>&5
13592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13593 (exit $ac_status); }; } &&
13594 { ac_try='test -s conftest.$ac_objext'
13595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13596 (eval $ac_try) 2>&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; }; then
13600 ac_cv_type_off_t=yes
13602 echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13605 ac_cv_type_off_t=no
13607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13609 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13610 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13611 if test $ac_cv_type_off_t = yes; then
13615 cat >>confdefs.h <<_ACEOF
13621 echo "$as_me:$LINENO: checking for ino_t" >&5
13622 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13623 if test "${ac_cv_type_ino_t+set}" = set; then
13624 echo $ECHO_N "(cached) $ECHO_C" >&6
13626 cat >conftest.$ac_ext <<_ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13632 $ac_includes_default
13638 if (sizeof (ino_t))
13644 rm -f conftest.$ac_objext
13645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13646 (eval $ac_compile) 2>conftest.er1
13648 grep -v '^ *+' conftest.er1 >conftest.err
13650 cat conftest.err >&5
13651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); } &&
13653 { ac_try='test -z "$ac_c_werror_flag"
13654 || test ! -s conftest.err'
13655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13656 (eval $ac_try) 2>&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }; } &&
13660 { ac_try='test -s conftest.$ac_objext'
13661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13662 (eval $ac_try) 2>&5
13664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13665 (exit $ac_status); }; }; then
13666 ac_cv_type_ino_t=yes
13668 echo "$as_me: failed program was:" >&5
13669 sed 's/^/| /' conftest.$ac_ext >&5
13671 ac_cv_type_ino_t=no
13673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13675 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13676 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13677 if test $ac_cv_type_ino_t = yes; then
13681 cat >>confdefs.h <<_ACEOF
13682 #define ino_t unsigned long
13687 echo "$as_me:$LINENO: checking for dev_t" >&5
13688 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13689 if test "${ac_cv_type_dev_t+set}" = set; then
13690 echo $ECHO_N "(cached) $ECHO_C" >&6
13692 cat >conftest.$ac_ext <<_ACEOF
13695 cat confdefs.h >>conftest.$ac_ext
13696 cat >>conftest.$ac_ext <<_ACEOF
13697 /* end confdefs.h. */
13698 $ac_includes_default
13704 if (sizeof (dev_t))
13710 rm -f conftest.$ac_objext
13711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13712 (eval $ac_compile) 2>conftest.er1
13714 grep -v '^ *+' conftest.er1 >conftest.err
13716 cat conftest.err >&5
13717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13718 (exit $ac_status); } &&
13719 { ac_try='test -z "$ac_c_werror_flag"
13720 || test ! -s conftest.err'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; } &&
13726 { ac_try='test -s conftest.$ac_objext'
13727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13728 (eval $ac_try) 2>&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; }; then
13732 ac_cv_type_dev_t=yes
13734 echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.$ac_ext >&5
13737 ac_cv_type_dev_t=no
13739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13741 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13742 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13743 if test $ac_cv_type_dev_t = yes; then
13747 cat >>confdefs.h <<_ACEOF
13748 #define dev_t unsigned long
13753 echo "$as_me:$LINENO: checking for daddr_t" >&5
13754 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13755 if test "${ac_cv_type_daddr_t+set}" = set; then
13756 echo $ECHO_N "(cached) $ECHO_C" >&6
13758 cat >conftest.$ac_ext <<_ACEOF
13761 cat confdefs.h >>conftest.$ac_ext
13762 cat >>conftest.$ac_ext <<_ACEOF
13763 /* end confdefs.h. */
13764 $ac_includes_default
13770 if (sizeof (daddr_t))
13776 rm -f conftest.$ac_objext
13777 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13778 (eval $ac_compile) 2>conftest.er1
13780 grep -v '^ *+' conftest.er1 >conftest.err
13782 cat conftest.err >&5
13783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784 (exit $ac_status); } &&
13785 { ac_try='test -z "$ac_c_werror_flag"
13786 || test ! -s conftest.err'
13787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13788 (eval $ac_try) 2>&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; } &&
13792 { ac_try='test -s conftest.$ac_objext'
13793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13794 (eval $ac_try) 2>&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); }; }; then
13798 ac_cv_type_daddr_t=yes
13800 echo "$as_me: failed program was:" >&5
13801 sed 's/^/| /' conftest.$ac_ext >&5
13803 ac_cv_type_daddr_t=no
13805 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13807 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13808 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13809 if test $ac_cv_type_daddr_t = yes; then
13813 cat >>confdefs.h <<_ACEOF
13814 #define daddr_t long
13819 echo "$as_me:$LINENO: checking for major_t" >&5
13820 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13821 if test "${ac_cv_type_major_t+set}" = set; then
13822 echo $ECHO_N "(cached) $ECHO_C" >&6
13824 cat >conftest.$ac_ext <<_ACEOF
13827 cat confdefs.h >>conftest.$ac_ext
13828 cat >>conftest.$ac_ext <<_ACEOF
13829 /* end confdefs.h. */
13830 $ac_includes_default
13836 if (sizeof (major_t))
13842 rm -f conftest.$ac_objext
13843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13844 (eval $ac_compile) 2>conftest.er1
13846 grep -v '^ *+' conftest.er1 >conftest.err
13848 cat conftest.err >&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } &&
13851 { ac_try='test -z "$ac_c_werror_flag"
13852 || test ! -s conftest.err'
13853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13854 (eval $ac_try) 2>&5
13856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857 (exit $ac_status); }; } &&
13858 { ac_try='test -s conftest.$ac_objext'
13859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13860 (eval $ac_try) 2>&5
13862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13863 (exit $ac_status); }; }; then
13864 ac_cv_type_major_t=yes
13866 echo "$as_me: failed program was:" >&5
13867 sed 's/^/| /' conftest.$ac_ext >&5
13869 ac_cv_type_major_t=no
13871 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13873 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13874 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13875 if test $ac_cv_type_major_t = yes; then
13879 cat >>confdefs.h <<_ACEOF
13880 #define major_t int
13885 echo "$as_me:$LINENO: checking for minor_t" >&5
13886 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13887 if test "${ac_cv_type_minor_t+set}" = set; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13890 cat >conftest.$ac_ext <<_ACEOF
13893 cat confdefs.h >>conftest.$ac_ext
13894 cat >>conftest.$ac_ext <<_ACEOF
13895 /* end confdefs.h. */
13896 $ac_includes_default
13902 if (sizeof (minor_t))
13908 rm -f conftest.$ac_objext
13909 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13910 (eval $ac_compile) 2>conftest.er1
13912 grep -v '^ *+' conftest.er1 >conftest.err
13914 cat conftest.err >&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); } &&
13917 { ac_try='test -z "$ac_c_werror_flag"
13918 || test ! -s conftest.err'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; } &&
13924 { ac_try='test -s conftest.$ac_objext'
13925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926 (eval $ac_try) 2>&5
13928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929 (exit $ac_status); }; }; then
13930 ac_cv_type_minor_t=yes
13932 echo "$as_me: failed program was:" >&5
13933 sed 's/^/| /' conftest.$ac_ext >&5
13935 ac_cv_type_minor_t=no
13937 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13939 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
13940 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
13941 if test $ac_cv_type_minor_t = yes; then
13945 cat >>confdefs.h <<_ACEOF
13946 #define minor_t int
13951 echo "$as_me:$LINENO: checking for ssize_t" >&5
13952 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
13953 if test "${ac_cv_type_ssize_t+set}" = set; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 cat >conftest.$ac_ext <<_ACEOF
13959 cat confdefs.h >>conftest.$ac_ext
13960 cat >>conftest.$ac_ext <<_ACEOF
13961 /* end confdefs.h. */
13962 $ac_includes_default
13968 if (sizeof (ssize_t))
13974 rm -f conftest.$ac_objext
13975 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13976 (eval $ac_compile) 2>conftest.er1
13978 grep -v '^ *+' conftest.er1 >conftest.err
13980 cat conftest.err >&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); } &&
13983 { ac_try='test -z "$ac_c_werror_flag"
13984 || test ! -s conftest.err'
13985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13986 (eval $ac_try) 2>&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; } &&
13990 { ac_try='test -s conftest.$ac_objext'
13991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13992 (eval $ac_try) 2>&5
13994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13995 (exit $ac_status); }; }; then
13996 ac_cv_type_ssize_t=yes
13998 echo "$as_me: failed program was:" >&5
13999 sed 's/^/| /' conftest.$ac_ext >&5
14001 ac_cv_type_ssize_t=no
14003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14005 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14006 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14007 if test $ac_cv_type_ssize_t = yes; then
14011 cat >>confdefs.h <<_ACEOF
14012 #define ssize_t int
14017 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14018 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14019 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14020 echo $ECHO_N "(cached) $ECHO_C" >&6
14022 cat >conftest.$ac_ext <<_ACEOF
14025 cat confdefs.h >>conftest.$ac_ext
14026 cat >>conftest.$ac_ext <<_ACEOF
14027 /* end confdefs.h. */
14028 $ac_includes_default
14032 static struct stat ac_aggr;
14033 if (ac_aggr.st_blocks)
14039 rm -f conftest.$ac_objext
14040 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14041 (eval $ac_compile) 2>conftest.er1
14043 grep -v '^ *+' conftest.er1 >conftest.err
14045 cat conftest.err >&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } &&
14048 { ac_try='test -z "$ac_c_werror_flag"
14049 || test ! -s conftest.err'
14050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; } &&
14055 { ac_try='test -s conftest.$ac_objext'
14056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; }; then
14061 ac_cv_member_struct_stat_st_blocks=yes
14063 echo "$as_me: failed program was:" >&5
14064 sed 's/^/| /' conftest.$ac_ext >&5
14066 cat >conftest.$ac_ext <<_ACEOF
14069 cat confdefs.h >>conftest.$ac_ext
14070 cat >>conftest.$ac_ext <<_ACEOF
14071 /* end confdefs.h. */
14072 $ac_includes_default
14076 static struct stat ac_aggr;
14077 if (sizeof ac_aggr.st_blocks)
14083 rm -f conftest.$ac_objext
14084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14085 (eval $ac_compile) 2>conftest.er1
14087 grep -v '^ *+' conftest.er1 >conftest.err
14089 cat conftest.err >&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); } &&
14092 { ac_try='test -z "$ac_c_werror_flag"
14093 || test ! -s conftest.err'
14094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14095 (eval $ac_try) 2>&5
14097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); }; } &&
14099 { ac_try='test -s conftest.$ac_objext'
14100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14101 (eval $ac_try) 2>&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
14105 ac_cv_member_struct_stat_st_blocks=yes
14107 echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14110 ac_cv_member_struct_stat_st_blocks=no
14112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14116 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14117 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14118 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14120 cat >>confdefs.h <<_ACEOF
14121 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14125 cat >>confdefs.h <<\_ACEOF
14126 #define HAVE_ST_BLOCKS 1
14131 "fileblocks.$ac_objext" | \
14132 *" fileblocks.$ac_objext" | \
14133 "fileblocks.$ac_objext "* | \
14134 *" fileblocks.$ac_objext "* ) ;;
14135 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14142 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
14143 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
14144 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
14145 echo $ECHO_N "(cached) $ECHO_C" >&6
14147 cat >conftest.$ac_ext <<_ACEOF
14150 cat confdefs.h >>conftest.$ac_ext
14151 cat >>conftest.$ac_ext <<_ACEOF
14152 /* end confdefs.h. */
14153 $ac_includes_default
14157 static struct stat ac_aggr;
14158 if (ac_aggr.st_rdev)
14164 rm -f conftest.$ac_objext
14165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14166 (eval $ac_compile) 2>conftest.er1
14168 grep -v '^ *+' conftest.er1 >conftest.err
14170 cat conftest.err >&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); } &&
14173 { ac_try='test -z "$ac_c_werror_flag"
14174 || test ! -s conftest.err'
14175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14176 (eval $ac_try) 2>&5
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; } &&
14180 { ac_try='test -s conftest.$ac_objext'
14181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14182 (eval $ac_try) 2>&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); }; }; then
14186 ac_cv_member_struct_stat_st_rdev=yes
14188 echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14191 cat >conftest.$ac_ext <<_ACEOF
14194 cat confdefs.h >>conftest.$ac_ext
14195 cat >>conftest.$ac_ext <<_ACEOF
14196 /* end confdefs.h. */
14197 $ac_includes_default
14201 static struct stat ac_aggr;
14202 if (sizeof ac_aggr.st_rdev)
14208 rm -f conftest.$ac_objext
14209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14210 (eval $ac_compile) 2>conftest.er1
14212 grep -v '^ *+' conftest.er1 >conftest.err
14214 cat conftest.err >&5
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); } &&
14217 { ac_try='test -z "$ac_c_werror_flag"
14218 || test ! -s conftest.err'
14219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14220 (eval $ac_try) 2>&5
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; } &&
14224 { ac_try='test -s conftest.$ac_objext'
14225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14226 (eval $ac_try) 2>&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; }; then
14230 ac_cv_member_struct_stat_st_rdev=yes
14232 echo "$as_me: failed program was:" >&5
14233 sed 's/^/| /' conftest.$ac_ext >&5
14235 ac_cv_member_struct_stat_st_rdev=no
14237 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14241 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14242 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14243 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14245 cat >>confdefs.h <<_ACEOF
14246 #define HAVE_STRUCT_STAT_ST_RDEV 1
14250 cat >>confdefs.h <<\_ACEOF
14251 #define HAVE_ST_RDEV 1
14257 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14258 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14259 if test "${ac_cv_struct_tm+set}" = set; then
14260 echo $ECHO_N "(cached) $ECHO_C" >&6
14262 cat >conftest.$ac_ext <<_ACEOF
14265 cat confdefs.h >>conftest.$ac_ext
14266 cat >>conftest.$ac_ext <<_ACEOF
14267 /* end confdefs.h. */
14268 #include <sys/types.h>
14274 struct tm *tp; tp->tm_sec;
14279 rm -f conftest.$ac_objext
14280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14281 (eval $ac_compile) 2>conftest.er1
14283 grep -v '^ *+' conftest.er1 >conftest.err
14285 cat conftest.err >&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } &&
14288 { ac_try='test -z "$ac_c_werror_flag"
14289 || test ! -s conftest.err'
14290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14291 (eval $ac_try) 2>&5
14293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294 (exit $ac_status); }; } &&
14295 { ac_try='test -s conftest.$ac_objext'
14296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297 (eval $ac_try) 2>&5
14299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300 (exit $ac_status); }; }; then
14301 ac_cv_struct_tm=time.h
14303 echo "$as_me: failed program was:" >&5
14304 sed 's/^/| /' conftest.$ac_ext >&5
14306 ac_cv_struct_tm=sys/time.h
14308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14310 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14311 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14312 if test $ac_cv_struct_tm = sys/time.h; then
14314 cat >>confdefs.h <<\_ACEOF
14315 #define TM_IN_SYS_TIME 1
14320 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14321 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14322 if test "${ac_cv_c_const+set}" = set; then
14323 echo $ECHO_N "(cached) $ECHO_C" >&6
14325 cat >conftest.$ac_ext <<_ACEOF
14328 cat confdefs.h >>conftest.$ac_ext
14329 cat >>conftest.$ac_ext <<_ACEOF
14330 /* end confdefs.h. */
14335 /* FIXME: Include the comments suggested by Paul. */
14336 #ifndef __cplusplus
14337 /* Ultrix mips cc rejects this. */
14338 typedef int charset[2];
14340 /* SunOS 4.1.1 cc rejects this. */
14341 char const *const *ccp;
14343 /* NEC SVR4.0.2 mips cc rejects this. */
14344 struct point {int x, y;};
14345 static struct point const zero = {0,0};
14346 /* AIX XL C 1.02.0.0 rejects this.
14347 It does not let you subtract one const X* pointer from another in
14348 an arm of an if-expression whose if-part is not a constant
14350 const char *g = "string";
14351 ccp = &g + (g ? g-g : 0);
14352 /* HPUX 7.0 cc rejects these. */
14355 ccp = (char const *const *) p;
14356 { /* SCO 3.2v4 cc rejects this. */
14358 char const *s = 0 ? (char *) 0 : (char const *) 0;
14362 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14363 int x[] = {25, 17};
14364 const int *foo = &x[0];
14367 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14368 typedef const int *iptr;
14372 { /* AIX XL C 1.02.0.0 rejects this saying
14373 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14374 struct s { int j; const int *ap[3]; };
14375 struct s *b; b->j = 5;
14377 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14378 const int foo = 10;
14386 rm -f conftest.$ac_objext
14387 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14388 (eval $ac_compile) 2>conftest.er1
14390 grep -v '^ *+' conftest.er1 >conftest.err
14392 cat conftest.err >&5
14393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); } &&
14395 { ac_try='test -z "$ac_c_werror_flag"
14396 || test ! -s conftest.err'
14397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14398 (eval $ac_try) 2>&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); }; } &&
14402 { ac_try='test -s conftest.$ac_objext'
14403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14404 (eval $ac_try) 2>&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; }; then
14410 echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14415 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14417 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14418 echo "${ECHO_T}$ac_cv_c_const" >&6
14419 if test $ac_cv_c_const = no; then
14421 cat >>confdefs.h <<\_ACEOF
14429 echo "$as_me:$LINENO: checking for char" >&5
14430 echo $ECHO_N "checking for char... $ECHO_C" >&6
14431 if test "${ac_cv_type_char+set}" = set; then
14432 echo $ECHO_N "(cached) $ECHO_C" >&6
14434 cat >conftest.$ac_ext <<_ACEOF
14437 cat confdefs.h >>conftest.$ac_ext
14438 cat >>conftest.$ac_ext <<_ACEOF
14439 /* end confdefs.h. */
14440 $ac_includes_default
14452 rm -f conftest.$ac_objext
14453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14454 (eval $ac_compile) 2>conftest.er1
14456 grep -v '^ *+' conftest.er1 >conftest.err
14458 cat conftest.err >&5
14459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14460 (exit $ac_status); } &&
14461 { ac_try='test -z "$ac_c_werror_flag"
14462 || test ! -s conftest.err'
14463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14464 (eval $ac_try) 2>&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); }; } &&
14468 { ac_try='test -s conftest.$ac_objext'
14469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14470 (eval $ac_try) 2>&5
14472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14473 (exit $ac_status); }; }; then
14474 ac_cv_type_char=yes
14476 echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14481 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14483 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14484 echo "${ECHO_T}$ac_cv_type_char" >&6
14486 echo "$as_me:$LINENO: checking size of char" >&5
14487 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14488 if test "${ac_cv_sizeof_char+set}" = set; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14491 if test "$ac_cv_type_char" = yes; then
14492 # The cast to unsigned long works around a bug in the HP C Compiler
14493 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14494 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14495 # This bug is HP SR number 8606223364.
14496 if test "$cross_compiling" = yes; then
14497 # Depending upon the size, compute the lo and hi bounds.
14498 cat >conftest.$ac_ext <<_ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h. */
14504 $ac_includes_default
14508 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14515 rm -f conftest.$ac_objext
14516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14517 (eval $ac_compile) 2>conftest.er1
14519 grep -v '^ *+' conftest.er1 >conftest.err
14521 cat conftest.err >&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } &&
14524 { ac_try='test -z "$ac_c_werror_flag"
14525 || test ! -s conftest.err'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; } &&
14531 { ac_try='test -s conftest.$ac_objext'
14532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14533 (eval $ac_try) 2>&5
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14536 (exit $ac_status); }; }; then
14539 cat >conftest.$ac_ext <<_ACEOF
14542 cat confdefs.h >>conftest.$ac_ext
14543 cat >>conftest.$ac_ext <<_ACEOF
14544 /* end confdefs.h. */
14545 $ac_includes_default
14549 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
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_hi=$ac_mid; break
14580 echo "$as_me: failed program was:" >&5
14581 sed 's/^/| /' conftest.$ac_ext >&5
14583 ac_lo=`expr $ac_mid + 1`
14584 if test $ac_lo -le $ac_mid; then
14588 ac_mid=`expr 2 '*' $ac_mid + 1`
14590 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14593 echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14596 cat >conftest.$ac_ext <<_ACEOF
14599 cat confdefs.h >>conftest.$ac_ext
14600 cat >>conftest.$ac_ext <<_ACEOF
14601 /* end confdefs.h. */
14602 $ac_includes_default
14606 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14613 rm -f conftest.$ac_objext
14614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14615 (eval $ac_compile) 2>conftest.er1
14617 grep -v '^ *+' conftest.er1 >conftest.err
14619 cat conftest.err >&5
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); } &&
14622 { ac_try='test -z "$ac_c_werror_flag"
14623 || test ! -s conftest.err'
14624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14625 (eval $ac_try) 2>&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); }; } &&
14629 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14637 cat >conftest.$ac_ext <<_ACEOF
14640 cat confdefs.h >>conftest.$ac_ext
14641 cat >>conftest.$ac_ext <<_ACEOF
14642 /* end confdefs.h. */
14643 $ac_includes_default
14647 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14654 rm -f conftest.$ac_objext
14655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14656 (eval $ac_compile) 2>conftest.er1
14658 grep -v '^ *+' conftest.er1 >conftest.err
14660 cat conftest.err >&5
14661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); } &&
14663 { ac_try='test -z "$ac_c_werror_flag"
14664 || test ! -s conftest.err'
14665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14666 (eval $ac_try) 2>&5
14668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14669 (exit $ac_status); }; } &&
14670 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
14676 ac_lo=$ac_mid; break
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14681 ac_hi=`expr '(' $ac_mid ')' - 1`
14682 if test $ac_mid -le $ac_hi; then
14686 ac_mid=`expr 2 '*' $ac_mid`
14688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14691 echo "$as_me: failed program was:" >&5
14692 sed 's/^/| /' conftest.$ac_ext >&5
14696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14699 # Binary search between lo and hi bounds.
14700 while test "x$ac_lo" != "x$ac_hi"; do
14701 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14702 cat >conftest.$ac_ext <<_ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h. */
14708 $ac_includes_default
14712 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14719 rm -f conftest.$ac_objext
14720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14721 (eval $ac_compile) 2>conftest.er1
14723 grep -v '^ *+' conftest.er1 >conftest.err
14725 cat conftest.err >&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); } &&
14728 { ac_try='test -z "$ac_c_werror_flag"
14729 || test ! -s conftest.err'
14730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14731 (eval $ac_try) 2>&5
14733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14734 (exit $ac_status); }; } &&
14735 { ac_try='test -s conftest.$ac_objext'
14736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14737 (eval $ac_try) 2>&5
14739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14740 (exit $ac_status); }; }; then
14743 echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14746 ac_lo=`expr '(' $ac_mid ')' + 1`
14748 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14751 ?*) ac_cv_sizeof_char=$ac_lo;;
14752 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14753 See \`config.log' for more details." >&5
14754 echo "$as_me: error: cannot compute sizeof (char), 77
14755 See \`config.log' for more details." >&2;}
14756 { (exit 1); exit 1; }; } ;;
14759 if test "$cross_compiling" = yes; then
14760 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14761 See \`config.log' for more details." >&5
14762 echo "$as_me: error: cannot run test program while cross compiling
14763 See \`config.log' for more details." >&2;}
14764 { (exit 1); exit 1; }; }
14766 cat >conftest.$ac_ext <<_ACEOF
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h. */
14772 $ac_includes_default
14773 long longval () { return (long) (sizeof (char)); }
14774 unsigned long ulongval () { return (long) (sizeof (char)); }
14776 #include <stdlib.h>
14781 FILE *f = fopen ("conftest.val", "w");
14784 if (((long) (sizeof (char))) < 0)
14786 long i = longval ();
14787 if (i != ((long) (sizeof (char))))
14789 fprintf (f, "%ld\n", i);
14793 unsigned long i = ulongval ();
14794 if (i != ((long) (sizeof (char))))
14796 fprintf (f, "%lu\n", i);
14798 exit (ferror (f) || fclose (f) != 0);
14804 rm -f conftest$ac_exeext
14805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14806 (eval $ac_link) 2>&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14811 (eval $ac_try) 2>&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); }; }; then
14815 ac_cv_sizeof_char=`cat conftest.val`
14817 echo "$as_me: program exited with status $ac_status" >&5
14818 echo "$as_me: failed program was:" >&5
14819 sed 's/^/| /' conftest.$ac_ext >&5
14821 ( exit $ac_status )
14822 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14823 See \`config.log' for more details." >&5
14824 echo "$as_me: error: cannot compute sizeof (char), 77
14825 See \`config.log' for more details." >&2;}
14826 { (exit 1); exit 1; }; }
14828 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14833 ac_cv_sizeof_char=0
14836 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14837 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14838 cat >>confdefs.h <<_ACEOF
14839 #define SIZEOF_CHAR $ac_cv_sizeof_char
14843 echo "$as_me:$LINENO: checking for short int" >&5
14844 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14845 if test "${ac_cv_type_short_int+set}" = set; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14848 cat >conftest.$ac_ext <<_ACEOF
14851 cat confdefs.h >>conftest.$ac_ext
14852 cat >>conftest.$ac_ext <<_ACEOF
14853 /* end confdefs.h. */
14854 $ac_includes_default
14858 if ((short int *) 0)
14860 if (sizeof (short int))
14866 rm -f conftest.$ac_objext
14867 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14868 (eval $ac_compile) 2>conftest.er1
14870 grep -v '^ *+' conftest.er1 >conftest.err
14872 cat conftest.err >&5
14873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14874 (exit $ac_status); } &&
14875 { ac_try='test -z "$ac_c_werror_flag"
14876 || test ! -s conftest.err'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; } &&
14882 { ac_try='test -s conftest.$ac_objext'
14883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14884 (eval $ac_try) 2>&5
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; }; then
14888 ac_cv_type_short_int=yes
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14893 ac_cv_type_short_int=no
14895 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14897 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14898 echo "${ECHO_T}$ac_cv_type_short_int" >&6
14900 echo "$as_me:$LINENO: checking size of short int" >&5
14901 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
14902 if test "${ac_cv_sizeof_short_int+set}" = set; then
14903 echo $ECHO_N "(cached) $ECHO_C" >&6
14905 if test "$ac_cv_type_short_int" = yes; then
14906 # The cast to unsigned long works around a bug in the HP C Compiler
14907 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14908 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14909 # This bug is HP SR number 8606223364.
14910 if test "$cross_compiling" = yes; then
14911 # Depending upon the size, compute the lo and hi bounds.
14912 cat >conftest.$ac_ext <<_ACEOF
14915 cat confdefs.h >>conftest.$ac_ext
14916 cat >>conftest.$ac_ext <<_ACEOF
14917 /* end confdefs.h. */
14918 $ac_includes_default
14922 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
14929 rm -f conftest.$ac_objext
14930 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14931 (eval $ac_compile) 2>conftest.er1
14933 grep -v '^ *+' conftest.er1 >conftest.err
14935 cat conftest.err >&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); } &&
14938 { ac_try='test -z "$ac_c_werror_flag"
14939 || test ! -s conftest.err'
14940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14941 (eval $ac_try) 2>&5
14943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14944 (exit $ac_status); }; } &&
14945 { ac_try='test -s conftest.$ac_objext'
14946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947 (eval $ac_try) 2>&5
14949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; }; then
14953 cat >conftest.$ac_ext <<_ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h. */
14959 $ac_includes_default
14963 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
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_hi=$ac_mid; break
14994 echo "$as_me: failed program was:" >&5
14995 sed 's/^/| /' conftest.$ac_ext >&5
14997 ac_lo=`expr $ac_mid + 1`
14998 if test $ac_lo -le $ac_mid; then
15002 ac_mid=`expr 2 '*' $ac_mid + 1`
15004 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15007 echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15010 cat >conftest.$ac_ext <<_ACEOF
15013 cat confdefs.h >>conftest.$ac_ext
15014 cat >>conftest.$ac_ext <<_ACEOF
15015 /* end confdefs.h. */
15016 $ac_includes_default
15020 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
15027 rm -f conftest.$ac_objext
15028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15029 (eval $ac_compile) 2>conftest.er1
15031 grep -v '^ *+' conftest.er1 >conftest.err
15033 cat conftest.err >&5
15034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15035 (exit $ac_status); } &&
15036 { ac_try='test -z "$ac_c_werror_flag"
15037 || test ! -s conftest.err'
15038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15039 (eval $ac_try) 2>&5
15041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15042 (exit $ac_status); }; } &&
15043 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15051 cat >conftest.$ac_ext <<_ACEOF
15054 cat confdefs.h >>conftest.$ac_ext
15055 cat >>conftest.$ac_ext <<_ACEOF
15056 /* end confdefs.h. */
15057 $ac_includes_default
15061 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
15068 rm -f conftest.$ac_objext
15069 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15070 (eval $ac_compile) 2>conftest.er1
15072 grep -v '^ *+' conftest.er1 >conftest.err
15074 cat conftest.err >&5
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); } &&
15077 { ac_try='test -z "$ac_c_werror_flag"
15078 || test ! -s conftest.err'
15079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15080 (eval $ac_try) 2>&5
15082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15083 (exit $ac_status); }; } &&
15084 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15090 ac_lo=$ac_mid; break
15092 echo "$as_me: failed program was:" >&5
15093 sed 's/^/| /' conftest.$ac_ext >&5
15095 ac_hi=`expr '(' $ac_mid ')' - 1`
15096 if test $ac_mid -le $ac_hi; then
15100 ac_mid=`expr 2 '*' $ac_mid`
15102 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15105 echo "$as_me: failed program was:" >&5
15106 sed 's/^/| /' conftest.$ac_ext >&5
15110 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15113 # Binary search between lo and hi bounds.
15114 while test "x$ac_lo" != "x$ac_hi"; do
15115 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15116 cat >conftest.$ac_ext <<_ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h. */
15122 $ac_includes_default
15126 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15133 rm -f conftest.$ac_objext
15134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15135 (eval $ac_compile) 2>conftest.er1
15137 grep -v '^ *+' conftest.er1 >conftest.err
15139 cat conftest.err >&5
15140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15141 (exit $ac_status); } &&
15142 { ac_try='test -z "$ac_c_werror_flag"
15143 || test ! -s conftest.err'
15144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15145 (eval $ac_try) 2>&5
15147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); }; } &&
15149 { ac_try='test -s conftest.$ac_objext'
15150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15151 (eval $ac_try) 2>&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); }; }; then
15157 echo "$as_me: failed program was:" >&5
15158 sed 's/^/| /' conftest.$ac_ext >&5
15160 ac_lo=`expr '(' $ac_mid ')' + 1`
15162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15165 ?*) ac_cv_sizeof_short_int=$ac_lo;;
15166 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15167 See \`config.log' for more details." >&5
15168 echo "$as_me: error: cannot compute sizeof (short int), 77
15169 See \`config.log' for more details." >&2;}
15170 { (exit 1); exit 1; }; } ;;
15173 if test "$cross_compiling" = yes; then
15174 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15175 See \`config.log' for more details." >&5
15176 echo "$as_me: error: cannot run test program while cross compiling
15177 See \`config.log' for more details." >&2;}
15178 { (exit 1); exit 1; }; }
15180 cat >conftest.$ac_ext <<_ACEOF
15183 cat confdefs.h >>conftest.$ac_ext
15184 cat >>conftest.$ac_ext <<_ACEOF
15185 /* end confdefs.h. */
15186 $ac_includes_default
15187 long longval () { return (long) (sizeof (short int)); }
15188 unsigned long ulongval () { return (long) (sizeof (short int)); }
15190 #include <stdlib.h>
15195 FILE *f = fopen ("conftest.val", "w");
15198 if (((long) (sizeof (short int))) < 0)
15200 long i = longval ();
15201 if (i != ((long) (sizeof (short int))))
15203 fprintf (f, "%ld\n", i);
15207 unsigned long i = ulongval ();
15208 if (i != ((long) (sizeof (short int))))
15210 fprintf (f, "%lu\n", i);
15212 exit (ferror (f) || fclose (f) != 0);
15218 rm -f conftest$ac_exeext
15219 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15220 (eval $ac_link) 2>&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15225 (eval $ac_try) 2>&5
15227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); }; }; then
15229 ac_cv_sizeof_short_int=`cat conftest.val`
15231 echo "$as_me: program exited with status $ac_status" >&5
15232 echo "$as_me: failed program was:" >&5
15233 sed 's/^/| /' conftest.$ac_ext >&5
15235 ( exit $ac_status )
15236 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15237 See \`config.log' for more details." >&5
15238 echo "$as_me: error: cannot compute sizeof (short int), 77
15239 See \`config.log' for more details." >&2;}
15240 { (exit 1); exit 1; }; }
15242 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15247 ac_cv_sizeof_short_int=0
15250 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15251 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15252 cat >>confdefs.h <<_ACEOF
15253 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15257 echo "$as_me:$LINENO: checking for int" >&5
15258 echo $ECHO_N "checking for int... $ECHO_C" >&6
15259 if test "${ac_cv_type_int+set}" = set; then
15260 echo $ECHO_N "(cached) $ECHO_C" >&6
15262 cat >conftest.$ac_ext <<_ACEOF
15265 cat confdefs.h >>conftest.$ac_ext
15266 cat >>conftest.$ac_ext <<_ACEOF
15267 /* end confdefs.h. */
15268 $ac_includes_default
15280 rm -f conftest.$ac_objext
15281 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15282 (eval $ac_compile) 2>conftest.er1
15284 grep -v '^ *+' conftest.er1 >conftest.err
15286 cat conftest.err >&5
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); } &&
15289 { ac_try='test -z "$ac_c_werror_flag"
15290 || test ! -s conftest.err'
15291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15292 (eval $ac_try) 2>&5
15294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295 (exit $ac_status); }; } &&
15296 { ac_try='test -s conftest.$ac_objext'
15297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15298 (eval $ac_try) 2>&5
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; }; then
15304 echo "$as_me: failed program was:" >&5
15305 sed 's/^/| /' conftest.$ac_ext >&5
15309 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15311 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15312 echo "${ECHO_T}$ac_cv_type_int" >&6
15314 echo "$as_me:$LINENO: checking size of int" >&5
15315 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15316 if test "${ac_cv_sizeof_int+set}" = set; then
15317 echo $ECHO_N "(cached) $ECHO_C" >&6
15319 if test "$ac_cv_type_int" = yes; then
15320 # The cast to unsigned long works around a bug in the HP C Compiler
15321 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15322 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15323 # This bug is HP SR number 8606223364.
15324 if test "$cross_compiling" = yes; then
15325 # Depending upon the size, compute the lo and hi bounds.
15326 cat >conftest.$ac_ext <<_ACEOF
15329 cat confdefs.h >>conftest.$ac_ext
15330 cat >>conftest.$ac_ext <<_ACEOF
15331 /* end confdefs.h. */
15332 $ac_includes_default
15336 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15343 rm -f conftest.$ac_objext
15344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15345 (eval $ac_compile) 2>conftest.er1
15347 grep -v '^ *+' conftest.er1 >conftest.err
15349 cat conftest.err >&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); } &&
15352 { ac_try='test -z "$ac_c_werror_flag"
15353 || test ! -s conftest.err'
15354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15355 (eval $ac_try) 2>&5
15357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358 (exit $ac_status); }; } &&
15359 { ac_try='test -s conftest.$ac_objext'
15360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15361 (eval $ac_try) 2>&5
15363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15364 (exit $ac_status); }; }; then
15367 cat >conftest.$ac_ext <<_ACEOF
15370 cat confdefs.h >>conftest.$ac_ext
15371 cat >>conftest.$ac_ext <<_ACEOF
15372 /* end confdefs.h. */
15373 $ac_includes_default
15377 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
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
15406 ac_hi=$ac_mid; break
15408 echo "$as_me: failed program was:" >&5
15409 sed 's/^/| /' conftest.$ac_ext >&5
15411 ac_lo=`expr $ac_mid + 1`
15412 if test $ac_lo -le $ac_mid; then
15416 ac_mid=`expr 2 '*' $ac_mid + 1`
15418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15421 echo "$as_me: failed program was:" >&5
15422 sed 's/^/| /' conftest.$ac_ext >&5
15424 cat >conftest.$ac_ext <<_ACEOF
15427 cat confdefs.h >>conftest.$ac_ext
15428 cat >>conftest.$ac_ext <<_ACEOF
15429 /* end confdefs.h. */
15430 $ac_includes_default
15434 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15441 rm -f conftest.$ac_objext
15442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15443 (eval $ac_compile) 2>conftest.er1
15445 grep -v '^ *+' conftest.er1 >conftest.err
15447 cat conftest.err >&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } &&
15450 { ac_try='test -z "$ac_c_werror_flag"
15451 || test ! -s conftest.err'
15452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15453 (eval $ac_try) 2>&5
15455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15456 (exit $ac_status); }; } &&
15457 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15465 cat >conftest.$ac_ext <<_ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h. */
15471 $ac_includes_default
15475 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15482 rm -f conftest.$ac_objext
15483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15484 (eval $ac_compile) 2>conftest.er1
15486 grep -v '^ *+' conftest.er1 >conftest.err
15488 cat conftest.err >&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); } &&
15491 { ac_try='test -z "$ac_c_werror_flag"
15492 || test ! -s conftest.err'
15493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15494 (eval $ac_try) 2>&5
15496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15497 (exit $ac_status); }; } &&
15498 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15504 ac_lo=$ac_mid; break
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.$ac_ext >&5
15509 ac_hi=`expr '(' $ac_mid ')' - 1`
15510 if test $ac_mid -le $ac_hi; then
15514 ac_mid=`expr 2 '*' $ac_mid`
15516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15519 echo "$as_me: failed program was:" >&5
15520 sed 's/^/| /' conftest.$ac_ext >&5
15524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15527 # Binary search between lo and hi bounds.
15528 while test "x$ac_lo" != "x$ac_hi"; do
15529 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15530 cat >conftest.$ac_ext <<_ACEOF
15533 cat confdefs.h >>conftest.$ac_ext
15534 cat >>conftest.$ac_ext <<_ACEOF
15535 /* end confdefs.h. */
15536 $ac_includes_default
15540 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15547 rm -f conftest.$ac_objext
15548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15549 (eval $ac_compile) 2>conftest.er1
15551 grep -v '^ *+' conftest.er1 >conftest.err
15553 cat conftest.err >&5
15554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15555 (exit $ac_status); } &&
15556 { ac_try='test -z "$ac_c_werror_flag"
15557 || test ! -s conftest.err'
15558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15559 (eval $ac_try) 2>&5
15561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15562 (exit $ac_status); }; } &&
15563 { ac_try='test -s conftest.$ac_objext'
15564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15565 (eval $ac_try) 2>&5
15567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15568 (exit $ac_status); }; }; then
15571 echo "$as_me: failed program was:" >&5
15572 sed 's/^/| /' conftest.$ac_ext >&5
15574 ac_lo=`expr '(' $ac_mid ')' + 1`
15576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15579 ?*) ac_cv_sizeof_int=$ac_lo;;
15580 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15581 See \`config.log' for more details." >&5
15582 echo "$as_me: error: cannot compute sizeof (int), 77
15583 See \`config.log' for more details." >&2;}
15584 { (exit 1); exit 1; }; } ;;
15587 if test "$cross_compiling" = yes; then
15588 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15589 See \`config.log' for more details." >&5
15590 echo "$as_me: error: cannot run test program while cross compiling
15591 See \`config.log' for more details." >&2;}
15592 { (exit 1); exit 1; }; }
15594 cat >conftest.$ac_ext <<_ACEOF
15597 cat confdefs.h >>conftest.$ac_ext
15598 cat >>conftest.$ac_ext <<_ACEOF
15599 /* end confdefs.h. */
15600 $ac_includes_default
15601 long longval () { return (long) (sizeof (int)); }
15602 unsigned long ulongval () { return (long) (sizeof (int)); }
15604 #include <stdlib.h>
15609 FILE *f = fopen ("conftest.val", "w");
15612 if (((long) (sizeof (int))) < 0)
15614 long i = longval ();
15615 if (i != ((long) (sizeof (int))))
15617 fprintf (f, "%ld\n", i);
15621 unsigned long i = ulongval ();
15622 if (i != ((long) (sizeof (int))))
15624 fprintf (f, "%lu\n", i);
15626 exit (ferror (f) || fclose (f) != 0);
15632 rm -f conftest$ac_exeext
15633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15634 (eval $ac_link) 2>&5
15636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15637 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15639 (eval $ac_try) 2>&5
15641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15642 (exit $ac_status); }; }; then
15643 ac_cv_sizeof_int=`cat conftest.val`
15645 echo "$as_me: program exited with status $ac_status" >&5
15646 echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15649 ( exit $ac_status )
15650 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15651 See \`config.log' for more details." >&5
15652 echo "$as_me: error: cannot compute sizeof (int), 77
15653 See \`config.log' for more details." >&2;}
15654 { (exit 1); exit 1; }; }
15656 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15664 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15665 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15666 cat >>confdefs.h <<_ACEOF
15667 #define SIZEOF_INT $ac_cv_sizeof_int
15671 echo "$as_me:$LINENO: checking for long int" >&5
15672 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15673 if test "${ac_cv_type_long_int+set}" = set; then
15674 echo $ECHO_N "(cached) $ECHO_C" >&6
15676 cat >conftest.$ac_ext <<_ACEOF
15679 cat confdefs.h >>conftest.$ac_ext
15680 cat >>conftest.$ac_ext <<_ACEOF
15681 /* end confdefs.h. */
15682 $ac_includes_default
15686 if ((long int *) 0)
15688 if (sizeof (long int))
15694 rm -f conftest.$ac_objext
15695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15696 (eval $ac_compile) 2>conftest.er1
15698 grep -v '^ *+' conftest.er1 >conftest.err
15700 cat conftest.err >&5
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); } &&
15703 { ac_try='test -z "$ac_c_werror_flag"
15704 || test ! -s conftest.err'
15705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15706 (eval $ac_try) 2>&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); }; } &&
15710 { ac_try='test -s conftest.$ac_objext'
15711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15712 (eval $ac_try) 2>&5
15714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); }; }; then
15716 ac_cv_type_long_int=yes
15718 echo "$as_me: failed program was:" >&5
15719 sed 's/^/| /' conftest.$ac_ext >&5
15721 ac_cv_type_long_int=no
15723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15725 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15726 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15728 echo "$as_me:$LINENO: checking size of long int" >&5
15729 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15730 if test "${ac_cv_sizeof_long_int+set}" = set; then
15731 echo $ECHO_N "(cached) $ECHO_C" >&6
15733 if test "$ac_cv_type_long_int" = yes; then
15734 # The cast to unsigned long works around a bug in the HP C Compiler
15735 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15736 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15737 # This bug is HP SR number 8606223364.
15738 if test "$cross_compiling" = yes; then
15739 # Depending upon the size, compute the lo and hi bounds.
15740 cat >conftest.$ac_ext <<_ACEOF
15743 cat confdefs.h >>conftest.$ac_ext
15744 cat >>conftest.$ac_ext <<_ACEOF
15745 /* end confdefs.h. */
15746 $ac_includes_default
15750 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15757 rm -f conftest.$ac_objext
15758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15759 (eval $ac_compile) 2>conftest.er1
15761 grep -v '^ *+' conftest.er1 >conftest.err
15763 cat conftest.err >&5
15764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15765 (exit $ac_status); } &&
15766 { ac_try='test -z "$ac_c_werror_flag"
15767 || test ! -s conftest.err'
15768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15769 (eval $ac_try) 2>&5
15771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15772 (exit $ac_status); }; } &&
15773 { ac_try='test -s conftest.$ac_objext'
15774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15775 (eval $ac_try) 2>&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); }; }; then
15781 cat >conftest.$ac_ext <<_ACEOF
15784 cat confdefs.h >>conftest.$ac_ext
15785 cat >>conftest.$ac_ext <<_ACEOF
15786 /* end confdefs.h. */
15787 $ac_includes_default
15791 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
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_hi=$ac_mid; break
15822 echo "$as_me: failed program was:" >&5
15823 sed 's/^/| /' conftest.$ac_ext >&5
15825 ac_lo=`expr $ac_mid + 1`
15826 if test $ac_lo -le $ac_mid; then
15830 ac_mid=`expr 2 '*' $ac_mid + 1`
15832 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15835 echo "$as_me: failed program was:" >&5
15836 sed 's/^/| /' conftest.$ac_ext >&5
15838 cat >conftest.$ac_ext <<_ACEOF
15841 cat confdefs.h >>conftest.$ac_ext
15842 cat >>conftest.$ac_ext <<_ACEOF
15843 /* end confdefs.h. */
15844 $ac_includes_default
15848 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15855 rm -f conftest.$ac_objext
15856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15857 (eval $ac_compile) 2>conftest.er1
15859 grep -v '^ *+' conftest.er1 >conftest.err
15861 cat conftest.err >&5
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); } &&
15864 { ac_try='test -z "$ac_c_werror_flag"
15865 || test ! -s conftest.err'
15866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15867 (eval $ac_try) 2>&5
15869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870 (exit $ac_status); }; } &&
15871 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15879 cat >conftest.$ac_ext <<_ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h. */
15885 $ac_includes_default
15889 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15896 rm -f conftest.$ac_objext
15897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15898 (eval $ac_compile) 2>conftest.er1
15900 grep -v '^ *+' conftest.er1 >conftest.err
15902 cat conftest.err >&5
15903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15904 (exit $ac_status); } &&
15905 { ac_try='test -z "$ac_c_werror_flag"
15906 || test ! -s conftest.err'
15907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15908 (eval $ac_try) 2>&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); }; } &&
15912 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15918 ac_lo=$ac_mid; break
15920 echo "$as_me: failed program was:" >&5
15921 sed 's/^/| /' conftest.$ac_ext >&5
15923 ac_hi=`expr '(' $ac_mid ')' - 1`
15924 if test $ac_mid -le $ac_hi; then
15928 ac_mid=`expr 2 '*' $ac_mid`
15930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15933 echo "$as_me: failed program was:" >&5
15934 sed 's/^/| /' conftest.$ac_ext >&5
15938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15940 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15941 # Binary search between lo and hi bounds.
15942 while test "x$ac_lo" != "x$ac_hi"; do
15943 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15944 cat >conftest.$ac_ext <<_ACEOF
15947 cat confdefs.h >>conftest.$ac_ext
15948 cat >>conftest.$ac_ext <<_ACEOF
15949 /* end confdefs.h. */
15950 $ac_includes_default
15954 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15961 rm -f conftest.$ac_objext
15962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15963 (eval $ac_compile) 2>conftest.er1
15965 grep -v '^ *+' conftest.er1 >conftest.err
15967 cat conftest.err >&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); } &&
15970 { ac_try='test -z "$ac_c_werror_flag"
15971 || test ! -s conftest.err'
15972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15973 (eval $ac_try) 2>&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); }; } &&
15977 { ac_try='test -s conftest.$ac_objext'
15978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15979 (eval $ac_try) 2>&5
15981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15982 (exit $ac_status); }; }; then
15985 echo "$as_me: failed program was:" >&5
15986 sed 's/^/| /' conftest.$ac_ext >&5
15988 ac_lo=`expr '(' $ac_mid ')' + 1`
15990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15993 ?*) ac_cv_sizeof_long_int=$ac_lo;;
15994 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
15995 See \`config.log' for more details." >&5
15996 echo "$as_me: error: cannot compute sizeof (long int), 77
15997 See \`config.log' for more details." >&2;}
15998 { (exit 1); exit 1; }; } ;;
16001 if test "$cross_compiling" = yes; then
16002 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16003 See \`config.log' for more details." >&5
16004 echo "$as_me: error: cannot run test program while cross compiling
16005 See \`config.log' for more details." >&2;}
16006 { (exit 1); exit 1; }; }
16008 cat >conftest.$ac_ext <<_ACEOF
16011 cat confdefs.h >>conftest.$ac_ext
16012 cat >>conftest.$ac_ext <<_ACEOF
16013 /* end confdefs.h. */
16014 $ac_includes_default
16015 long longval () { return (long) (sizeof (long int)); }
16016 unsigned long ulongval () { return (long) (sizeof (long int)); }
16018 #include <stdlib.h>
16023 FILE *f = fopen ("conftest.val", "w");
16026 if (((long) (sizeof (long int))) < 0)
16028 long i = longval ();
16029 if (i != ((long) (sizeof (long int))))
16031 fprintf (f, "%ld\n", i);
16035 unsigned long i = ulongval ();
16036 if (i != ((long) (sizeof (long int))))
16038 fprintf (f, "%lu\n", i);
16040 exit (ferror (f) || fclose (f) != 0);
16046 rm -f conftest$ac_exeext
16047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16048 (eval $ac_link) 2>&5
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16053 (eval $ac_try) 2>&5
16055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16056 (exit $ac_status); }; }; then
16057 ac_cv_sizeof_long_int=`cat conftest.val`
16059 echo "$as_me: program exited with status $ac_status" >&5
16060 echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16063 ( exit $ac_status )
16064 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16065 See \`config.log' for more details." >&5
16066 echo "$as_me: error: cannot compute sizeof (long int), 77
16067 See \`config.log' for more details." >&2;}
16068 { (exit 1); exit 1; }; }
16070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16075 ac_cv_sizeof_long_int=0
16078 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
16079 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
16080 cat >>confdefs.h <<_ACEOF
16081 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16085 echo "$as_me:$LINENO: checking for long long int" >&5
16086 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16087 if test "${ac_cv_type_long_long_int+set}" = set; then
16088 echo $ECHO_N "(cached) $ECHO_C" >&6
16090 cat >conftest.$ac_ext <<_ACEOF
16093 cat confdefs.h >>conftest.$ac_ext
16094 cat >>conftest.$ac_ext <<_ACEOF
16095 /* end confdefs.h. */
16096 $ac_includes_default
16100 if ((long long int *) 0)
16102 if (sizeof (long long int))
16108 rm -f conftest.$ac_objext
16109 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16110 (eval $ac_compile) 2>conftest.er1
16112 grep -v '^ *+' conftest.er1 >conftest.err
16114 cat conftest.err >&5
16115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16116 (exit $ac_status); } &&
16117 { ac_try='test -z "$ac_c_werror_flag"
16118 || test ! -s conftest.err'
16119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16120 (eval $ac_try) 2>&5
16122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123 (exit $ac_status); }; } &&
16124 { ac_try='test -s conftest.$ac_objext'
16125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16126 (eval $ac_try) 2>&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); }; }; then
16130 ac_cv_type_long_long_int=yes
16132 echo "$as_me: failed program was:" >&5
16133 sed 's/^/| /' conftest.$ac_ext >&5
16135 ac_cv_type_long_long_int=no
16137 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16139 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16140 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16142 echo "$as_me:$LINENO: checking size of long long int" >&5
16143 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
16144 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
16145 echo $ECHO_N "(cached) $ECHO_C" >&6
16147 if test "$ac_cv_type_long_long_int" = yes; then
16148 # The cast to unsigned long works around a bug in the HP C Compiler
16149 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16150 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16151 # This bug is HP SR number 8606223364.
16152 if test "$cross_compiling" = yes; then
16153 # Depending upon the size, compute the lo and hi bounds.
16154 cat >conftest.$ac_ext <<_ACEOF
16157 cat confdefs.h >>conftest.$ac_ext
16158 cat >>conftest.$ac_ext <<_ACEOF
16159 /* end confdefs.h. */
16160 $ac_includes_default
16164 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
16171 rm -f conftest.$ac_objext
16172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16173 (eval $ac_compile) 2>conftest.er1
16175 grep -v '^ *+' conftest.er1 >conftest.err
16177 cat conftest.err >&5
16178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16179 (exit $ac_status); } &&
16180 { ac_try='test -z "$ac_c_werror_flag"
16181 || test ! -s conftest.err'
16182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16183 (eval $ac_try) 2>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }; } &&
16187 { ac_try='test -s conftest.$ac_objext'
16188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16189 (eval $ac_try) 2>&5
16191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192 (exit $ac_status); }; }; then
16195 cat >conftest.$ac_ext <<_ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h. */
16201 $ac_includes_default
16205 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
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_hi=$ac_mid; break
16236 echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16239 ac_lo=`expr $ac_mid + 1`
16240 if test $ac_lo -le $ac_mid; then
16244 ac_mid=`expr 2 '*' $ac_mid + 1`
16246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16249 echo "$as_me: failed program was:" >&5
16250 sed 's/^/| /' conftest.$ac_ext >&5
16252 cat >conftest.$ac_ext <<_ACEOF
16255 cat confdefs.h >>conftest.$ac_ext
16256 cat >>conftest.$ac_ext <<_ACEOF
16257 /* end confdefs.h. */
16258 $ac_includes_default
16262 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16269 rm -f conftest.$ac_objext
16270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16271 (eval $ac_compile) 2>conftest.er1
16273 grep -v '^ *+' conftest.er1 >conftest.err
16275 cat conftest.err >&5
16276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16277 (exit $ac_status); } &&
16278 { ac_try='test -z "$ac_c_werror_flag"
16279 || test ! -s conftest.err'
16280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16281 (eval $ac_try) 2>&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); }; } &&
16285 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16293 cat >conftest.$ac_ext <<_ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h. */
16299 $ac_includes_default
16303 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16310 rm -f conftest.$ac_objext
16311 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16312 (eval $ac_compile) 2>conftest.er1
16314 grep -v '^ *+' conftest.er1 >conftest.err
16316 cat conftest.err >&5
16317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16318 (exit $ac_status); } &&
16319 { ac_try='test -z "$ac_c_werror_flag"
16320 || test ! -s conftest.err'
16321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16322 (eval $ac_try) 2>&5
16324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); }; } &&
16326 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16332 ac_lo=$ac_mid; break
16334 echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16337 ac_hi=`expr '(' $ac_mid ')' - 1`
16338 if test $ac_mid -le $ac_hi; then
16342 ac_mid=`expr 2 '*' $ac_mid`
16344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16347 echo "$as_me: failed program was:" >&5
16348 sed 's/^/| /' conftest.$ac_ext >&5
16352 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16355 # Binary search between lo and hi bounds.
16356 while test "x$ac_lo" != "x$ac_hi"; do
16357 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16358 cat >conftest.$ac_ext <<_ACEOF
16361 cat confdefs.h >>conftest.$ac_ext
16362 cat >>conftest.$ac_ext <<_ACEOF
16363 /* end confdefs.h. */
16364 $ac_includes_default
16368 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16375 rm -f conftest.$ac_objext
16376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16377 (eval $ac_compile) 2>conftest.er1
16379 grep -v '^ *+' conftest.er1 >conftest.err
16381 cat conftest.err >&5
16382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16383 (exit $ac_status); } &&
16384 { ac_try='test -z "$ac_c_werror_flag"
16385 || test ! -s conftest.err'
16386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16387 (eval $ac_try) 2>&5
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; } &&
16391 { ac_try='test -s conftest.$ac_objext'
16392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16393 (eval $ac_try) 2>&5
16395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16396 (exit $ac_status); }; }; then
16399 echo "$as_me: failed program was:" >&5
16400 sed 's/^/| /' conftest.$ac_ext >&5
16402 ac_lo=`expr '(' $ac_mid ')' + 1`
16404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16407 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16408 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16409 See \`config.log' for more details." >&5
16410 echo "$as_me: error: cannot compute sizeof (long long int), 77
16411 See \`config.log' for more details." >&2;}
16412 { (exit 1); exit 1; }; } ;;
16415 if test "$cross_compiling" = yes; then
16416 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16417 See \`config.log' for more details." >&5
16418 echo "$as_me: error: cannot run test program while cross compiling
16419 See \`config.log' for more details." >&2;}
16420 { (exit 1); exit 1; }; }
16422 cat >conftest.$ac_ext <<_ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h. */
16428 $ac_includes_default
16429 long longval () { return (long) (sizeof (long long int)); }
16430 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16432 #include <stdlib.h>
16437 FILE *f = fopen ("conftest.val", "w");
16440 if (((long) (sizeof (long long int))) < 0)
16442 long i = longval ();
16443 if (i != ((long) (sizeof (long long int))))
16445 fprintf (f, "%ld\n", i);
16449 unsigned long i = ulongval ();
16450 if (i != ((long) (sizeof (long long int))))
16452 fprintf (f, "%lu\n", i);
16454 exit (ferror (f) || fclose (f) != 0);
16460 rm -f conftest$ac_exeext
16461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16462 (eval $ac_link) 2>&5
16464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16467 (eval $ac_try) 2>&5
16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470 (exit $ac_status); }; }; then
16471 ac_cv_sizeof_long_long_int=`cat conftest.val`
16473 echo "$as_me: program exited with status $ac_status" >&5
16474 echo "$as_me: failed program was:" >&5
16475 sed 's/^/| /' conftest.$ac_ext >&5
16477 ( exit $ac_status )
16478 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16479 See \`config.log' for more details." >&5
16480 echo "$as_me: error: cannot compute sizeof (long long int), 77
16481 See \`config.log' for more details." >&2;}
16482 { (exit 1); exit 1; }; }
16484 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16489 ac_cv_sizeof_long_long_int=0
16492 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16493 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16494 cat >>confdefs.h <<_ACEOF
16495 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16499 echo "$as_me:$LINENO: checking for int *" >&5
16500 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16501 if test "${ac_cv_type_int_p+set}" = set; then
16502 echo $ECHO_N "(cached) $ECHO_C" >&6
16504 cat >conftest.$ac_ext <<_ACEOF
16507 cat confdefs.h >>conftest.$ac_ext
16508 cat >>conftest.$ac_ext <<_ACEOF
16509 /* end confdefs.h. */
16510 $ac_includes_default
16516 if (sizeof (int *))
16522 rm -f conftest.$ac_objext
16523 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16524 (eval $ac_compile) 2>conftest.er1
16526 grep -v '^ *+' conftest.er1 >conftest.err
16528 cat conftest.err >&5
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); } &&
16531 { ac_try='test -z "$ac_c_werror_flag"
16532 || test ! -s conftest.err'
16533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16534 (eval $ac_try) 2>&5
16536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537 (exit $ac_status); }; } &&
16538 { ac_try='test -s conftest.$ac_objext'
16539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16540 (eval $ac_try) 2>&5
16542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543 (exit $ac_status); }; }; then
16544 ac_cv_type_int_p=yes
16546 echo "$as_me: failed program was:" >&5
16547 sed 's/^/| /' conftest.$ac_ext >&5
16549 ac_cv_type_int_p=no
16551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16553 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16554 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16556 echo "$as_me:$LINENO: checking size of int *" >&5
16557 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16558 if test "${ac_cv_sizeof_int_p+set}" = set; then
16559 echo $ECHO_N "(cached) $ECHO_C" >&6
16561 if test "$ac_cv_type_int_p" = yes; then
16562 # The cast to unsigned long works around a bug in the HP C Compiler
16563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16565 # This bug is HP SR number 8606223364.
16566 if test "$cross_compiling" = yes; then
16567 # Depending upon the size, compute the lo and hi bounds.
16568 cat >conftest.$ac_ext <<_ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h. */
16574 $ac_includes_default
16578 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16585 rm -f conftest.$ac_objext
16586 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16587 (eval $ac_compile) 2>conftest.er1
16589 grep -v '^ *+' conftest.er1 >conftest.err
16591 cat conftest.err >&5
16592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593 (exit $ac_status); } &&
16594 { ac_try='test -z "$ac_c_werror_flag"
16595 || test ! -s conftest.err'
16596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; } &&
16601 { ac_try='test -s conftest.$ac_objext'
16602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16603 (eval $ac_try) 2>&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; }; then
16609 cat >conftest.$ac_ext <<_ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h. */
16615 $ac_includes_default
16619 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
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_hi=$ac_mid; break
16650 echo "$as_me: failed program was:" >&5
16651 sed 's/^/| /' conftest.$ac_ext >&5
16653 ac_lo=`expr $ac_mid + 1`
16654 if test $ac_lo -le $ac_mid; then
16658 ac_mid=`expr 2 '*' $ac_mid + 1`
16660 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16663 echo "$as_me: failed program was:" >&5
16664 sed 's/^/| /' conftest.$ac_ext >&5
16666 cat >conftest.$ac_ext <<_ACEOF
16669 cat confdefs.h >>conftest.$ac_ext
16670 cat >>conftest.$ac_ext <<_ACEOF
16671 /* end confdefs.h. */
16672 $ac_includes_default
16676 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16683 rm -f conftest.$ac_objext
16684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16685 (eval $ac_compile) 2>conftest.er1
16687 grep -v '^ *+' conftest.er1 >conftest.err
16689 cat conftest.err >&5
16690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16691 (exit $ac_status); } &&
16692 { ac_try='test -z "$ac_c_werror_flag"
16693 || test ! -s conftest.err'
16694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16695 (eval $ac_try) 2>&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); }; } &&
16699 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16707 cat >conftest.$ac_ext <<_ACEOF
16710 cat confdefs.h >>conftest.$ac_ext
16711 cat >>conftest.$ac_ext <<_ACEOF
16712 /* end confdefs.h. */
16713 $ac_includes_default
16717 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16724 rm -f conftest.$ac_objext
16725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16726 (eval $ac_compile) 2>conftest.er1
16728 grep -v '^ *+' conftest.er1 >conftest.err
16730 cat conftest.err >&5
16731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } &&
16733 { ac_try='test -z "$ac_c_werror_flag"
16734 || test ! -s conftest.err'
16735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16736 (eval $ac_try) 2>&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; } &&
16740 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16746 ac_lo=$ac_mid; break
16748 echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16751 ac_hi=`expr '(' $ac_mid ')' - 1`
16752 if test $ac_mid -le $ac_hi; then
16756 ac_mid=`expr 2 '*' $ac_mid`
16758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16761 echo "$as_me: failed program was:" >&5
16762 sed 's/^/| /' conftest.$ac_ext >&5
16766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16769 # Binary search between lo and hi bounds.
16770 while test "x$ac_lo" != "x$ac_hi"; do
16771 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16772 cat >conftest.$ac_ext <<_ACEOF
16775 cat confdefs.h >>conftest.$ac_ext
16776 cat >>conftest.$ac_ext <<_ACEOF
16777 /* end confdefs.h. */
16778 $ac_includes_default
16782 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16789 rm -f conftest.$ac_objext
16790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16791 (eval $ac_compile) 2>conftest.er1
16793 grep -v '^ *+' conftest.er1 >conftest.err
16795 cat conftest.err >&5
16796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16797 (exit $ac_status); } &&
16798 { ac_try='test -z "$ac_c_werror_flag"
16799 || test ! -s conftest.err'
16800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16801 (eval $ac_try) 2>&5
16803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16804 (exit $ac_status); }; } &&
16805 { ac_try='test -s conftest.$ac_objext'
16806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16807 (eval $ac_try) 2>&5
16809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16810 (exit $ac_status); }; }; then
16813 echo "$as_me: failed program was:" >&5
16814 sed 's/^/| /' conftest.$ac_ext >&5
16816 ac_lo=`expr '(' $ac_mid ')' + 1`
16818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16821 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16822 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16823 See \`config.log' for more details." >&5
16824 echo "$as_me: error: cannot compute sizeof (int *), 77
16825 See \`config.log' for more details." >&2;}
16826 { (exit 1); exit 1; }; } ;;
16829 if test "$cross_compiling" = yes; then
16830 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16831 See \`config.log' for more details." >&5
16832 echo "$as_me: error: cannot run test program while cross compiling
16833 See \`config.log' for more details." >&2;}
16834 { (exit 1); exit 1; }; }
16836 cat >conftest.$ac_ext <<_ACEOF
16839 cat confdefs.h >>conftest.$ac_ext
16840 cat >>conftest.$ac_ext <<_ACEOF
16841 /* end confdefs.h. */
16842 $ac_includes_default
16843 long longval () { return (long) (sizeof (int *)); }
16844 unsigned long ulongval () { return (long) (sizeof (int *)); }
16846 #include <stdlib.h>
16851 FILE *f = fopen ("conftest.val", "w");
16854 if (((long) (sizeof (int *))) < 0)
16856 long i = longval ();
16857 if (i != ((long) (sizeof (int *))))
16859 fprintf (f, "%ld\n", i);
16863 unsigned long i = ulongval ();
16864 if (i != ((long) (sizeof (int *))))
16866 fprintf (f, "%lu\n", i);
16868 exit (ferror (f) || fclose (f) != 0);
16874 rm -f conftest$ac_exeext
16875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16876 (eval $ac_link) 2>&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16881 (eval $ac_try) 2>&5
16883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884 (exit $ac_status); }; }; then
16885 ac_cv_sizeof_int_p=`cat conftest.val`
16887 echo "$as_me: program exited with status $ac_status" >&5
16888 echo "$as_me: failed program was:" >&5
16889 sed 's/^/| /' conftest.$ac_ext >&5
16891 ( exit $ac_status )
16892 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16893 See \`config.log' for more details." >&5
16894 echo "$as_me: error: cannot compute sizeof (int *), 77
16895 See \`config.log' for more details." >&2;}
16896 { (exit 1); exit 1; }; }
16898 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16903 ac_cv_sizeof_int_p=0
16906 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
16907 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
16908 cat >>confdefs.h <<_ACEOF
16909 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
16914 # Check for sys/types.h types
16915 echo "$as_me:$LINENO: checking for u_int type" >&5
16916 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
16917 if test "${ac_cv_have_u_int+set}" = set; then
16918 echo $ECHO_N "(cached) $ECHO_C" >&6
16921 cat >conftest.$ac_ext <<_ACEOF
16924 cat confdefs.h >>conftest.$ac_ext
16925 cat >>conftest.$ac_ext <<_ACEOF
16926 /* end confdefs.h. */
16927 #include <sys/types.h>
16936 rm -f conftest.$ac_objext
16937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16938 (eval $ac_compile) 2>conftest.er1
16940 grep -v '^ *+' conftest.er1 >conftest.err
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } &&
16945 { ac_try='test -z "$ac_c_werror_flag"
16946 || test ! -s conftest.err'
16947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16948 (eval $ac_try) 2>&5
16950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951 (exit $ac_status); }; } &&
16952 { ac_try='test -s conftest.$ac_objext'
16953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16954 (eval $ac_try) 2>&5
16956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16957 (exit $ac_status); }; }; then
16958 ac_cv_have_u_int="yes"
16960 echo "$as_me: failed program was:" >&5
16961 sed 's/^/| /' conftest.$ac_ext >&5
16963 ac_cv_have_u_int="no"
16966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16969 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
16970 echo "${ECHO_T}$ac_cv_have_u_int" >&6
16971 if test "x$ac_cv_have_u_int" = "xyes" ; then
16972 cat >>confdefs.h <<\_ACEOF
16973 #define HAVE_U_INT 1
16979 echo "$as_me:$LINENO: checking for intmax_t type" >&5
16980 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
16981 if test "${ac_cv_have_intmax_t+set}" = set; then
16982 echo $ECHO_N "(cached) $ECHO_C" >&6
16985 cat >conftest.$ac_ext <<_ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h. */
16991 #include <sys/types.h>
17000 rm -f conftest.$ac_objext
17001 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17002 (eval $ac_compile) 2>conftest.er1
17004 grep -v '^ *+' conftest.er1 >conftest.err
17006 cat conftest.err >&5
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); } &&
17009 { ac_try='test -z "$ac_c_werror_flag"
17010 || test ! -s conftest.err'
17011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17012 (eval $ac_try) 2>&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }; } &&
17016 { ac_try='test -s conftest.$ac_objext'
17017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17018 (eval $ac_try) 2>&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); }; }; then
17022 ac_cv_have_intmax_t="yes"
17024 echo "$as_me: failed program was:" >&5
17025 sed 's/^/| /' conftest.$ac_ext >&5
17028 cat >conftest.$ac_ext <<_ACEOF
17031 cat confdefs.h >>conftest.$ac_ext
17032 cat >>conftest.$ac_ext <<_ACEOF
17033 /* end confdefs.h. */
17034 #include <stdint.h>
17043 rm -f conftest.$ac_objext
17044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17045 (eval $ac_compile) 2>conftest.er1
17047 grep -v '^ *+' conftest.er1 >conftest.err
17049 cat conftest.err >&5
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); } &&
17052 { ac_try='test -z "$ac_c_werror_flag"
17053 || test ! -s conftest.err'
17054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17055 (eval $ac_try) 2>&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); }; } &&
17059 { ac_try='test -s conftest.$ac_objext'
17060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17061 (eval $ac_try) 2>&5
17063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17064 (exit $ac_status); }; }; then
17065 ac_cv_have_intmax_t="yes"
17067 echo "$as_me: failed program was:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17070 ac_cv_have_intmax_t="no"
17073 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17077 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17081 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
17082 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
17083 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
17084 cat >>confdefs.h <<\_ACEOF
17085 #define HAVE_INTMAX_T 1
17092 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
17093 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
17094 if test "${ac_cv_have_u_intmax_t+set}" = set; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17098 cat >conftest.$ac_ext <<_ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h. */
17104 #include <sys/types.h>
17108 u_intmax_t a; a = 1;
17113 rm -f conftest.$ac_objext
17114 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17115 (eval $ac_compile) 2>conftest.er1
17117 grep -v '^ *+' conftest.er1 >conftest.err
17119 cat conftest.err >&5
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } &&
17122 { ac_try='test -z "$ac_c_werror_flag"
17123 || test ! -s conftest.err'
17124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17125 (eval $ac_try) 2>&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); }; } &&
17129 { ac_try='test -s conftest.$ac_objext'
17130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17131 (eval $ac_try) 2>&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); }; }; then
17135 ac_cv_have_u_intmax_t="yes"
17137 echo "$as_me: failed program was:" >&5
17138 sed 's/^/| /' conftest.$ac_ext >&5
17141 cat >conftest.$ac_ext <<_ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h. */
17147 #include <stdint.h>
17151 u_intmax_t a; a = 1;
17156 rm -f conftest.$ac_objext
17157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17158 (eval $ac_compile) 2>conftest.er1
17160 grep -v '^ *+' conftest.er1 >conftest.err
17162 cat conftest.err >&5
17163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17164 (exit $ac_status); } &&
17165 { ac_try='test -z "$ac_c_werror_flag"
17166 || test ! -s conftest.err'
17167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17168 (eval $ac_try) 2>&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); }; } &&
17172 { ac_try='test -s conftest.$ac_objext'
17173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17174 (eval $ac_try) 2>&5
17176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17177 (exit $ac_status); }; }; then
17178 ac_cv_have_u_intmax_t="yes"
17180 echo "$as_me: failed program was:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17183 ac_cv_have_u_intmax_t="no"
17186 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17190 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17193 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
17194 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
17195 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
17196 cat >>confdefs.h <<\_ACEOF
17197 #define HAVE_U_INTMAX_T 1
17204 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17205 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17206 if test "${ac_cv_have_intxx_t+set}" = set; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17210 cat >conftest.$ac_ext <<_ACEOF
17213 cat confdefs.h >>conftest.$ac_ext
17214 cat >>conftest.$ac_ext <<_ACEOF
17215 /* end confdefs.h. */
17216 #include <sys/types.h>
17220 int8_t a; int16_t b; int32_t c; a = b = c = 1;
17225 rm -f conftest.$ac_objext
17226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17227 (eval $ac_compile) 2>conftest.er1
17229 grep -v '^ *+' conftest.er1 >conftest.err
17231 cat conftest.err >&5
17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233 (exit $ac_status); } &&
17234 { ac_try='test -z "$ac_c_werror_flag"
17235 || test ! -s conftest.err'
17236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17237 (eval $ac_try) 2>&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); }; } &&
17241 { ac_try='test -s conftest.$ac_objext'
17242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17243 (eval $ac_try) 2>&5
17245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17246 (exit $ac_status); }; }; then
17247 ac_cv_have_intxx_t="yes"
17249 echo "$as_me: failed program was:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17252 ac_cv_have_intxx_t="no"
17255 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17258 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17259 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17260 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17261 cat >>confdefs.h <<\_ACEOF
17262 #define HAVE_INTXX_T 1
17268 echo "$as_me:$LINENO: checking for int64_t type" >&5
17269 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17270 if test "${ac_cv_have_int64_t+set}" = set; then
17271 echo $ECHO_N "(cached) $ECHO_C" >&6
17274 cat >conftest.$ac_ext <<_ACEOF
17277 cat confdefs.h >>conftest.$ac_ext
17278 cat >>conftest.$ac_ext <<_ACEOF
17279 /* end confdefs.h. */
17280 #include <sys/types.h>
17289 rm -f conftest.$ac_objext
17290 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17291 (eval $ac_compile) 2>conftest.er1
17293 grep -v '^ *+' conftest.er1 >conftest.err
17295 cat conftest.err >&5
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); } &&
17298 { ac_try='test -z "$ac_c_werror_flag"
17299 || test ! -s conftest.err'
17300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17301 (eval $ac_try) 2>&5
17303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17304 (exit $ac_status); }; } &&
17305 { ac_try='test -s conftest.$ac_objext'
17306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17307 (eval $ac_try) 2>&5
17309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310 (exit $ac_status); }; }; then
17311 ac_cv_have_int64_t="yes"
17313 echo "$as_me: failed program was:" >&5
17314 sed 's/^/| /' conftest.$ac_ext >&5
17316 ac_cv_have_int64_t="no"
17319 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17322 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17323 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17324 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17325 cat >>confdefs.h <<\_ACEOF
17326 #define HAVE_INT64_T 1
17332 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17333 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17334 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17335 echo $ECHO_N "(cached) $ECHO_C" >&6
17338 cat >conftest.$ac_ext <<_ACEOF
17341 cat confdefs.h >>conftest.$ac_ext
17342 cat >>conftest.$ac_ext <<_ACEOF
17343 /* end confdefs.h. */
17344 #include <sys/types.h>
17348 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17353 rm -f conftest.$ac_objext
17354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17355 (eval $ac_compile) 2>conftest.er1
17357 grep -v '^ *+' conftest.er1 >conftest.err
17359 cat conftest.err >&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); } &&
17362 { ac_try='test -z "$ac_c_werror_flag"
17363 || test ! -s conftest.err'
17364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365 (eval $ac_try) 2>&5
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); }; } &&
17369 { ac_try='test -s conftest.$ac_objext'
17370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17371 (eval $ac_try) 2>&5
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; }; then
17375 ac_cv_have_u_intxx_t="yes"
17377 echo "$as_me: failed program was:" >&5
17378 sed 's/^/| /' conftest.$ac_ext >&5
17380 ac_cv_have_u_intxx_t="no"
17383 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17386 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17387 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17388 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17389 cat >>confdefs.h <<\_ACEOF
17390 #define HAVE_U_INTXX_T 1
17396 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17397 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17398 if test "${ac_cv_have_u_int64_t+set}" = set; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17402 cat >conftest.$ac_ext <<_ACEOF
17405 cat confdefs.h >>conftest.$ac_ext
17406 cat >>conftest.$ac_ext <<_ACEOF
17407 /* end confdefs.h. */
17408 #include <sys/types.h>
17412 u_int64_t a; a = 1;
17417 rm -f conftest.$ac_objext
17418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17419 (eval $ac_compile) 2>conftest.er1
17421 grep -v '^ *+' conftest.er1 >conftest.err
17423 cat conftest.err >&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); } &&
17426 { ac_try='test -z "$ac_c_werror_flag"
17427 || test ! -s conftest.err'
17428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17429 (eval $ac_try) 2>&5
17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17432 (exit $ac_status); }; } &&
17433 { ac_try='test -s conftest.$ac_objext'
17434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17435 (eval $ac_try) 2>&5
17437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17438 (exit $ac_status); }; }; then
17439 ac_cv_have_u_int64_t="yes"
17441 echo "$as_me: failed program was:" >&5
17442 sed 's/^/| /' conftest.$ac_ext >&5
17444 ac_cv_have_u_int64_t="no"
17447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17450 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17451 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17452 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17453 cat >>confdefs.h <<\_ACEOF
17454 #define HAVE_U_INT64_T 1
17460 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17461 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17463 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17464 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17465 cat >conftest.$ac_ext <<_ACEOF
17468 cat confdefs.h >>conftest.$ac_ext
17469 cat >>conftest.$ac_ext <<_ACEOF
17470 /* end confdefs.h. */
17471 #include <sys/bitypes.h>
17475 int8_t a; int16_t b; int32_t c;
17476 u_int8_t e; u_int16_t f; u_int32_t g;
17477 a = b = c = e = f = g = 1;
17482 rm -f conftest.$ac_objext
17483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17484 (eval $ac_compile) 2>conftest.er1
17486 grep -v '^ *+' conftest.er1 >conftest.err
17488 cat conftest.err >&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } &&
17491 { ac_try='test -z "$ac_c_werror_flag"
17492 || test ! -s conftest.err'
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; } &&
17498 { ac_try='test -s conftest.$ac_objext'
17499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500 (eval $ac_try) 2>&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; }; then
17504 cat >>confdefs.h <<\_ACEOF
17505 #define HAVE_U_INTXX_T 1
17508 cat >>confdefs.h <<\_ACEOF
17509 #define HAVE_INTXX_T 1
17512 cat >>confdefs.h <<\_ACEOF
17513 #define HAVE_SYS_BITYPES_H 1
17516 echo "$as_me:$LINENO: result: yes" >&5
17517 echo "${ECHO_T}yes" >&6
17519 echo "$as_me: failed program was:" >&5
17520 sed 's/^/| /' conftest.$ac_ext >&5
17522 echo "$as_me:$LINENO: result: no" >&5
17523 echo "${ECHO_T}no" >&6
17526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17529 if test -z "$have_u_intxx_t" ; then
17530 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17531 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17532 if test "${ac_cv_have_uintxx_t+set}" = set; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17536 cat >conftest.$ac_ext <<_ACEOF
17539 cat confdefs.h >>conftest.$ac_ext
17540 cat >>conftest.$ac_ext <<_ACEOF
17541 /* end confdefs.h. */
17542 #include <sys/types.h>
17546 uint8_t a; uint16_t b;
17547 uint32_t c; a = b = c = 1;
17552 rm -f conftest.$ac_objext
17553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17554 (eval $ac_compile) 2>conftest.er1
17556 grep -v '^ *+' conftest.er1 >conftest.err
17558 cat conftest.err >&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); } &&
17561 { ac_try='test -z "$ac_c_werror_flag"
17562 || test ! -s conftest.err'
17563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564 (eval $ac_try) 2>&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; } &&
17568 { ac_try='test -s conftest.$ac_objext'
17569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17570 (eval $ac_try) 2>&5
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); }; }; then
17574 ac_cv_have_uintxx_t="yes"
17576 echo "$as_me: failed program was:" >&5
17577 sed 's/^/| /' conftest.$ac_ext >&5
17579 ac_cv_have_uintxx_t="no"
17582 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17585 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17586 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17587 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17588 cat >>confdefs.h <<\_ACEOF
17589 #define HAVE_UINTXX_T 1
17595 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17596 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17598 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17599 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17600 cat >conftest.$ac_ext <<_ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h. */
17606 #include <sys/bitypes.h>
17610 int64_t a; u_int64_t b;
17616 rm -f conftest.$ac_objext
17617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17618 (eval $ac_compile) 2>conftest.er1
17620 grep -v '^ *+' conftest.er1 >conftest.err
17622 cat conftest.err >&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); } &&
17625 { ac_try='test -z "$ac_c_werror_flag"
17626 || test ! -s conftest.err'
17627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17628 (eval $ac_try) 2>&5
17630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17631 (exit $ac_status); }; } &&
17632 { ac_try='test -s conftest.$ac_objext'
17633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17634 (eval $ac_try) 2>&5
17636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); }; }; then
17638 cat >>confdefs.h <<\_ACEOF
17639 #define HAVE_U_INT64_T 1
17642 cat >>confdefs.h <<\_ACEOF
17643 #define HAVE_INT64_T 1
17646 echo "$as_me:$LINENO: result: yes" >&5
17647 echo "${ECHO_T}yes" >&6
17649 echo "$as_me: failed program was:" >&5
17650 sed 's/^/| /' conftest.$ac_ext >&5
17652 echo "$as_me:$LINENO: result: no" >&5
17653 echo "${ECHO_T}no" >&6
17656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17659 if (test -z "$have_uintxx_t" && \
17660 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17662 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17663 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17664 cat >conftest.$ac_ext <<_ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17670 #include <sys/bitypes.h>
17674 uint8_t a; uint16_t b;
17675 uint32_t c; a = b = c = 1;
17680 rm -f conftest.$ac_objext
17681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17682 (eval $ac_compile) 2>conftest.er1
17684 grep -v '^ *+' conftest.er1 >conftest.err
17686 cat conftest.err >&5
17687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17688 (exit $ac_status); } &&
17689 { ac_try='test -z "$ac_c_werror_flag"
17690 || test ! -s conftest.err'
17691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17692 (eval $ac_try) 2>&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; } &&
17696 { ac_try='test -s conftest.$ac_objext'
17697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17698 (eval $ac_try) 2>&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); }; }; then
17702 cat >>confdefs.h <<\_ACEOF
17703 #define HAVE_UINTXX_T 1
17706 echo "$as_me:$LINENO: result: yes" >&5
17707 echo "${ECHO_T}yes" >&6
17709 echo "$as_me: failed program was:" >&5
17710 sed 's/^/| /' conftest.$ac_ext >&5
17712 echo "$as_me:$LINENO: result: no" >&5
17713 echo "${ECHO_T}no" >&6
17716 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17753 echo "$as_me:$LINENO: checking for $ac_func" >&5
17754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17755 if eval "test \"\${$as_ac_var+set}\" = set"; then
17756 echo $ECHO_N "(cached) $ECHO_C" >&6
17758 cat >conftest.$ac_ext <<_ACEOF
17761 cat confdefs.h >>conftest.$ac_ext
17762 cat >>conftest.$ac_ext <<_ACEOF
17763 /* end confdefs.h. */
17764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17766 #define $ac_func innocuous_$ac_func
17768 /* System header to define __stub macros and hopefully few prototypes,
17769 which can conflict with char $ac_func (); below.
17770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17771 <limits.h> exists even on freestanding compilers. */
17774 # include <limits.h>
17776 # include <assert.h>
17781 /* Override any gcc2 internal prototype to avoid an error. */
17786 /* We use char because int might match the return type of a gcc2
17787 builtin and then its argument prototype would still apply. */
17789 /* The GNU C library defines this for functions which it implements
17790 to always fail with ENOSYS. Some functions are actually named
17791 something starting with __ and the normal name is an alias. */
17792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17795 char (*f) () = $ac_func;
17804 return f != $ac_func;
17809 rm -f conftest.$ac_objext conftest$ac_exeext
17810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17811 (eval $ac_link) 2>conftest.er1
17813 grep -v '^ *+' conftest.er1 >conftest.err
17815 cat conftest.err >&5
17816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817 (exit $ac_status); } &&
17818 { ac_try='test -z "$ac_c_werror_flag"
17819 || test ! -s conftest.err'
17820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17821 (eval $ac_try) 2>&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; } &&
17825 { ac_try='test -s conftest$ac_exeext'
17826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17827 (eval $ac_try) 2>&5
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }; }; then
17831 eval "$as_ac_var=yes"
17833 echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17836 eval "$as_ac_var=no"
17838 rm -f conftest.err conftest.$ac_objext \
17839 conftest$ac_exeext conftest.$ac_ext
17841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17843 if test `eval echo '${'$as_ac_var'}'` = yes; then
17844 cat >>confdefs.h <<_ACEOF
17845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17849 echo 'configure: cannot find needed function.'; exit 1
17856 for ac_func in fchdir
17858 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17859 echo "$as_me:$LINENO: checking for $ac_func" >&5
17860 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17861 if eval "test \"\${$as_ac_var+set}\" = set"; then
17862 echo $ECHO_N "(cached) $ECHO_C" >&6
17864 cat >conftest.$ac_ext <<_ACEOF
17867 cat confdefs.h >>conftest.$ac_ext
17868 cat >>conftest.$ac_ext <<_ACEOF
17869 /* end confdefs.h. */
17870 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17872 #define $ac_func innocuous_$ac_func
17874 /* System header to define __stub macros and hopefully few prototypes,
17875 which can conflict with char $ac_func (); below.
17876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17877 <limits.h> exists even on freestanding compilers. */
17880 # include <limits.h>
17882 # include <assert.h>
17887 /* Override any gcc2 internal prototype to avoid an error. */
17892 /* We use char because int might match the return type of a gcc2
17893 builtin and then its argument prototype would still apply. */
17895 /* The GNU C library defines this for functions which it implements
17896 to always fail with ENOSYS. Some functions are actually named
17897 something starting with __ and the normal name is an alias. */
17898 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17901 char (*f) () = $ac_func;
17910 return f != $ac_func;
17915 rm -f conftest.$ac_objext conftest$ac_exeext
17916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17917 (eval $ac_link) 2>conftest.er1
17919 grep -v '^ *+' conftest.er1 >conftest.err
17921 cat conftest.err >&5
17922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17923 (exit $ac_status); } &&
17924 { ac_try='test -z "$ac_c_werror_flag"
17925 || test ! -s conftest.err'
17926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17927 (eval $ac_try) 2>&5
17929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17930 (exit $ac_status); }; } &&
17931 { ac_try='test -s conftest$ac_exeext'
17932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17933 (eval $ac_try) 2>&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); }; }; then
17937 eval "$as_ac_var=yes"
17939 echo "$as_me: failed program was:" >&5
17940 sed 's/^/| /' conftest.$ac_ext >&5
17942 eval "$as_ac_var=no"
17944 rm -f conftest.err conftest.$ac_objext \
17945 conftest$ac_exeext conftest.$ac_ext
17947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17948 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17949 if test `eval echo '${'$as_ac_var'}'` = yes; then
17950 cat >>confdefs.h <<_ACEOF
17951 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17953 cat >>confdefs.h <<\_ACEOF
17954 #define HAVE_FCHDIR 1
17961 for ac_func in strtoll
17963 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17964 echo "$as_me:$LINENO: checking for $ac_func" >&5
17965 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17966 if eval "test \"\${$as_ac_var+set}\" = set"; then
17967 echo $ECHO_N "(cached) $ECHO_C" >&6
17969 cat >conftest.$ac_ext <<_ACEOF
17972 cat confdefs.h >>conftest.$ac_ext
17973 cat >>conftest.$ac_ext <<_ACEOF
17974 /* end confdefs.h. */
17975 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17976 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17977 #define $ac_func innocuous_$ac_func
17979 /* System header to define __stub macros and hopefully few prototypes,
17980 which can conflict with char $ac_func (); below.
17981 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17982 <limits.h> exists even on freestanding compilers. */
17985 # include <limits.h>
17987 # include <assert.h>
17992 /* Override any gcc2 internal prototype to avoid an error. */
17997 /* We use char because int might match the return type of a gcc2
17998 builtin and then its argument prototype would still apply. */
18000 /* The GNU C library defines this for functions which it implements
18001 to always fail with ENOSYS. Some functions are actually named
18002 something starting with __ and the normal name is an alias. */
18003 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18006 char (*f) () = $ac_func;
18015 return f != $ac_func;
18020 rm -f conftest.$ac_objext conftest$ac_exeext
18021 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18022 (eval $ac_link) 2>conftest.er1
18024 grep -v '^ *+' conftest.er1 >conftest.err
18026 cat conftest.err >&5
18027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18028 (exit $ac_status); } &&
18029 { ac_try='test -z "$ac_c_werror_flag"
18030 || test ! -s conftest.err'
18031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18032 (eval $ac_try) 2>&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; } &&
18036 { ac_try='test -s conftest$ac_exeext'
18037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18038 (eval $ac_try) 2>&5
18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); }; }; then
18042 eval "$as_ac_var=yes"
18044 echo "$as_me: failed program was:" >&5
18045 sed 's/^/| /' conftest.$ac_ext >&5
18047 eval "$as_ac_var=no"
18049 rm -f conftest.err conftest.$ac_objext \
18050 conftest$ac_exeext conftest.$ac_ext
18052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18053 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18054 if test `eval echo '${'$as_ac_var'}'` = yes; then
18055 cat >>confdefs.h <<_ACEOF
18056 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18058 cat >>confdefs.h <<\_ACEOF
18059 #define HAVE_STRTOLL 1
18067 for ac_func in chflags
18069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18070 echo "$as_me:$LINENO: checking for $ac_func" >&5
18071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18072 if eval "test \"\${$as_ac_var+set}\" = set"; then
18073 echo $ECHO_N "(cached) $ECHO_C" >&6
18075 cat >conftest.$ac_ext <<_ACEOF
18078 cat confdefs.h >>conftest.$ac_ext
18079 cat >>conftest.$ac_ext <<_ACEOF
18080 /* end confdefs.h. */
18081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18083 #define $ac_func innocuous_$ac_func
18085 /* System header to define __stub macros and hopefully few prototypes,
18086 which can conflict with char $ac_func (); below.
18087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18088 <limits.h> exists even on freestanding compilers. */
18091 # include <limits.h>
18093 # include <assert.h>
18098 /* Override any gcc2 internal prototype to avoid an error. */
18103 /* We use char because int might match the return type of a gcc2
18104 builtin and then its argument prototype would still apply. */
18106 /* The GNU C library defines this for functions which it implements
18107 to always fail with ENOSYS. Some functions are actually named
18108 something starting with __ and the normal name is an alias. */
18109 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18112 char (*f) () = $ac_func;
18121 return f != $ac_func;
18126 rm -f conftest.$ac_objext conftest$ac_exeext
18127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18128 (eval $ac_link) 2>conftest.er1
18130 grep -v '^ *+' conftest.er1 >conftest.err
18132 cat conftest.err >&5
18133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18134 (exit $ac_status); } &&
18135 { ac_try='test -z "$ac_c_werror_flag"
18136 || test ! -s conftest.err'
18137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18138 (eval $ac_try) 2>&5
18140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18141 (exit $ac_status); }; } &&
18142 { ac_try='test -s conftest$ac_exeext'
18143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18144 (eval $ac_try) 2>&5
18146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18147 (exit $ac_status); }; }; then
18148 eval "$as_ac_var=yes"
18150 echo "$as_me: failed program was:" >&5
18151 sed 's/^/| /' conftest.$ac_ext >&5
18153 eval "$as_ac_var=no"
18155 rm -f conftest.err conftest.$ac_objext \
18156 conftest$ac_exeext conftest.$ac_ext
18158 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18159 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18160 if test `eval echo '${'$as_ac_var'}'` = yes; then
18161 cat >>confdefs.h <<_ACEOF
18162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18172 for ac_func in snprintf vsnprintf gethostid
18174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18175 echo "$as_me:$LINENO: checking for $ac_func" >&5
18176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18177 if eval "test \"\${$as_ac_var+set}\" = set"; then
18178 echo $ECHO_N "(cached) $ECHO_C" >&6
18180 cat >conftest.$ac_ext <<_ACEOF
18183 cat confdefs.h >>conftest.$ac_ext
18184 cat >>conftest.$ac_ext <<_ACEOF
18185 /* end confdefs.h. */
18186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18188 #define $ac_func innocuous_$ac_func
18190 /* System header to define __stub macros and hopefully few prototypes,
18191 which can conflict with char $ac_func (); below.
18192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18193 <limits.h> exists even on freestanding compilers. */
18196 # include <limits.h>
18198 # include <assert.h>
18203 /* Override any gcc2 internal prototype to avoid an error. */
18208 /* We use char because int might match the return type of a gcc2
18209 builtin and then its argument prototype would still apply. */
18211 /* The GNU C library defines this for functions which it implements
18212 to always fail with ENOSYS. Some functions are actually named
18213 something starting with __ and the normal name is an alias. */
18214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18217 char (*f) () = $ac_func;
18226 return f != $ac_func;
18231 rm -f conftest.$ac_objext conftest$ac_exeext
18232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18233 (eval $ac_link) 2>conftest.er1
18235 grep -v '^ *+' conftest.er1 >conftest.err
18237 cat conftest.err >&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); } &&
18240 { ac_try='test -z "$ac_c_werror_flag"
18241 || test ! -s conftest.err'
18242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243 (eval $ac_try) 2>&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; } &&
18247 { ac_try='test -s conftest$ac_exeext'
18248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18249 (eval $ac_try) 2>&5
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); }; }; then
18253 eval "$as_ac_var=yes"
18255 echo "$as_me: failed program was:" >&5
18256 sed 's/^/| /' conftest.$ac_ext >&5
18258 eval "$as_ac_var=no"
18260 rm -f conftest.err conftest.$ac_objext \
18261 conftest$ac_exeext conftest.$ac_ext
18263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18265 if test `eval echo '${'$as_ac_var'}'` = yes; then
18266 cat >>confdefs.h <<_ACEOF
18267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18278 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18281 echo "$as_me:$LINENO: checking for $ac_func" >&5
18282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18283 if eval "test \"\${$as_ac_var+set}\" = set"; then
18284 echo $ECHO_N "(cached) $ECHO_C" >&6
18286 cat >conftest.$ac_ext <<_ACEOF
18289 cat confdefs.h >>conftest.$ac_ext
18290 cat >>conftest.$ac_ext <<_ACEOF
18291 /* end confdefs.h. */
18292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18294 #define $ac_func innocuous_$ac_func
18296 /* System header to define __stub macros and hopefully few prototypes,
18297 which can conflict with char $ac_func (); below.
18298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18299 <limits.h> exists even on freestanding compilers. */
18302 # include <limits.h>
18304 # include <assert.h>
18309 /* Override any gcc2 internal prototype to avoid an error. */
18314 /* We use char because int might match the return type of a gcc2
18315 builtin and then its argument prototype would still apply. */
18317 /* The GNU C library defines this for functions which it implements
18318 to always fail with ENOSYS. Some functions are actually named
18319 something starting with __ and the normal name is an alias. */
18320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18323 char (*f) () = $ac_func;
18332 return f != $ac_func;
18337 rm -f conftest.$ac_objext conftest$ac_exeext
18338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18339 (eval $ac_link) 2>conftest.er1
18341 grep -v '^ *+' conftest.er1 >conftest.err
18343 cat conftest.err >&5
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); } &&
18346 { ac_try='test -z "$ac_c_werror_flag"
18347 || test ! -s conftest.err'
18348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18349 (eval $ac_try) 2>&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); }; } &&
18353 { ac_try='test -s conftest$ac_exeext'
18354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18355 (eval $ac_try) 2>&5
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; }; then
18359 eval "$as_ac_var=yes"
18361 echo "$as_me: failed program was:" >&5
18362 sed 's/^/| /' conftest.$ac_ext >&5
18364 eval "$as_ac_var=no"
18366 rm -f conftest.err conftest.$ac_objext \
18367 conftest$ac_exeext conftest.$ac_ext
18369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18370 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18371 if test `eval echo '${'$as_ac_var'}'` = yes; then
18372 cat >>confdefs.h <<_ACEOF
18373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18380 # If resolver functions are not in libc check for -lnsl or -lresolv.
18381 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18382 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18383 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18384 echo $ECHO_N "(cached) $ECHO_C" >&6
18386 cat >conftest.$ac_ext <<_ACEOF
18389 cat confdefs.h >>conftest.$ac_ext
18390 cat >>conftest.$ac_ext <<_ACEOF
18391 /* end confdefs.h. */
18392 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18394 #define gethostbyname_r innocuous_gethostbyname_r
18396 /* System header to define __stub macros and hopefully few prototypes,
18397 which can conflict with char gethostbyname_r (); below.
18398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18399 <limits.h> exists even on freestanding compilers. */
18402 # include <limits.h>
18404 # include <assert.h>
18407 #undef gethostbyname_r
18409 /* Override any gcc2 internal prototype to avoid an error. */
18414 /* We use char because int might match the return type of a gcc2
18415 builtin and then its argument prototype would still apply. */
18416 char gethostbyname_r ();
18417 /* The GNU C library defines this for functions which it implements
18418 to always fail with ENOSYS. Some functions are actually named
18419 something starting with __ and the normal name is an alias. */
18420 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18423 char (*f) () = gethostbyname_r;
18432 return f != gethostbyname_r;
18437 rm -f conftest.$ac_objext conftest$ac_exeext
18438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18439 (eval $ac_link) 2>conftest.er1
18441 grep -v '^ *+' conftest.er1 >conftest.err
18443 cat conftest.err >&5
18444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445 (exit $ac_status); } &&
18446 { ac_try='test -z "$ac_c_werror_flag"
18447 || test ! -s conftest.err'
18448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18449 (eval $ac_try) 2>&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); }; } &&
18453 { ac_try='test -s conftest$ac_exeext'
18454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18455 (eval $ac_try) 2>&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; }; then
18459 ac_cv_func_gethostbyname_r=yes
18461 echo "$as_me: failed program was:" >&5
18462 sed 's/^/| /' conftest.$ac_ext >&5
18464 ac_cv_func_gethostbyname_r=no
18466 rm -f conftest.err conftest.$ac_objext \
18467 conftest$ac_exeext conftest.$ac_ext
18469 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18470 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18471 if test $ac_cv_func_gethostbyname_r = yes; then
18472 echo "$as_me:$LINENO: result: using libc's resolver" >&5
18473 echo "${ECHO_T}using libc's resolver" >&6
18476 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18477 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18478 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18479 echo $ECHO_N "(cached) $ECHO_C" >&6
18481 ac_check_lib_save_LIBS=$LIBS
18483 cat >conftest.$ac_ext <<_ACEOF
18486 cat confdefs.h >>conftest.$ac_ext
18487 cat >>conftest.$ac_ext <<_ACEOF
18488 /* end confdefs.h. */
18490 /* Override any gcc2 internal prototype to avoid an error. */
18494 /* We use char because int might match the return type of a gcc2
18495 builtin and then its argument prototype would still apply. */
18496 char gethostbyname_r ();
18500 gethostbyname_r ();
18505 rm -f conftest.$ac_objext conftest$ac_exeext
18506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18507 (eval $ac_link) 2>conftest.er1
18509 grep -v '^ *+' conftest.er1 >conftest.err
18511 cat conftest.err >&5
18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); } &&
18514 { ac_try='test -z "$ac_c_werror_flag"
18515 || test ! -s conftest.err'
18516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18517 (eval $ac_try) 2>&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); }; } &&
18521 { ac_try='test -s conftest$ac_exeext'
18522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18523 (eval $ac_try) 2>&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; }; then
18527 ac_cv_lib_nsl_gethostbyname_r=yes
18529 echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18532 ac_cv_lib_nsl_gethostbyname_r=no
18534 rm -f conftest.err conftest.$ac_objext \
18535 conftest$ac_exeext conftest.$ac_ext
18536 LIBS=$ac_check_lib_save_LIBS
18538 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18539 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18540 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18541 cat >>confdefs.h <<_ACEOF
18542 #define HAVE_LIBNSL 1
18550 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18551 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18552 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18553 echo $ECHO_N "(cached) $ECHO_C" >&6
18555 ac_check_lib_save_LIBS=$LIBS
18556 LIBS="-lresolv $LIBS"
18557 cat >conftest.$ac_ext <<_ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h. */
18564 /* Override any gcc2 internal prototype to avoid an error. */
18568 /* We use char because int might match the return type of a gcc2
18569 builtin and then its argument prototype would still apply. */
18570 char gethostbyname_r ();
18574 gethostbyname_r ();
18579 rm -f conftest.$ac_objext conftest$ac_exeext
18580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18581 (eval $ac_link) 2>conftest.er1
18583 grep -v '^ *+' conftest.er1 >conftest.err
18585 cat conftest.err >&5
18586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18587 (exit $ac_status); } &&
18588 { ac_try='test -z "$ac_c_werror_flag"
18589 || test ! -s conftest.err'
18590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18591 (eval $ac_try) 2>&5
18593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18594 (exit $ac_status); }; } &&
18595 { ac_try='test -s conftest$ac_exeext'
18596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18597 (eval $ac_try) 2>&5
18599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); }; }; then
18601 ac_cv_lib_resolv_gethostbyname_r=yes
18603 echo "$as_me: failed program was:" >&5
18604 sed 's/^/| /' conftest.$ac_ext >&5
18606 ac_cv_lib_resolv_gethostbyname_r=no
18608 rm -f conftest.err conftest.$ac_objext \
18609 conftest$ac_exeext conftest.$ac_ext
18610 LIBS=$ac_check_lib_save_LIBS
18612 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18613 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18614 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18615 cat >>confdefs.h <<_ACEOF
18616 #define HAVE_LIBRESOLV 1
18619 LIBS="-lresolv $LIBS"
18629 for ac_func in inet_pton
18631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18632 echo "$as_me:$LINENO: checking for $ac_func" >&5
18633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18634 if eval "test \"\${$as_ac_var+set}\" = set"; then
18635 echo $ECHO_N "(cached) $ECHO_C" >&6
18637 cat >conftest.$ac_ext <<_ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h. */
18643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18645 #define $ac_func innocuous_$ac_func
18647 /* System header to define __stub macros and hopefully few prototypes,
18648 which can conflict with char $ac_func (); below.
18649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18650 <limits.h> exists even on freestanding compilers. */
18653 # include <limits.h>
18655 # include <assert.h>
18660 /* Override any gcc2 internal prototype to avoid an error. */
18665 /* We use char because int might match the return type of a gcc2
18666 builtin and then its argument prototype would still apply. */
18668 /* The GNU C library defines this for functions which it implements
18669 to always fail with ENOSYS. Some functions are actually named
18670 something starting with __ and the normal name is an alias. */
18671 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18674 char (*f) () = $ac_func;
18683 return f != $ac_func;
18688 rm -f conftest.$ac_objext conftest$ac_exeext
18689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18690 (eval $ac_link) 2>conftest.er1
18692 grep -v '^ *+' conftest.er1 >conftest.err
18694 cat conftest.err >&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); } &&
18697 { ac_try='test -z "$ac_c_werror_flag"
18698 || test ! -s conftest.err'
18699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18700 (eval $ac_try) 2>&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; } &&
18704 { ac_try='test -s conftest$ac_exeext'
18705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18706 (eval $ac_try) 2>&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; }; then
18710 eval "$as_ac_var=yes"
18712 echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18715 eval "$as_ac_var=no"
18717 rm -f conftest.err conftest.$ac_objext \
18718 conftest$ac_exeext conftest.$ac_ext
18720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18721 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18722 if test `eval echo '${'$as_ac_var'}'` = yes; then
18723 cat >>confdefs.h <<_ACEOF
18724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18726 cat >>confdefs.h <<\_ACEOF
18727 #define HAVE_INET_PTON 1
18734 for ac_func in inet_ntop
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_NTOP 1
18839 for ac_func in gethostbyname2
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_GETHOSTBYNAME2 1
18944 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
18945 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
18946 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
18947 echo $ECHO_N "(cached) $ECHO_C" >&6
18949 cat >conftest.$ac_ext <<_ACEOF
18952 cat confdefs.h >>conftest.$ac_ext
18953 cat >>conftest.$ac_ext <<_ACEOF
18954 /* end confdefs.h. */
18955 #include <sys/socket.h>
18959 struct sockaddr s; s.sa_len;
18964 rm -f conftest.$ac_objext
18965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18966 (eval $ac_compile) 2>conftest.er1
18968 grep -v '^ *+' conftest.er1 >conftest.err
18970 cat conftest.err >&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); } &&
18973 { ac_try='test -z "$ac_c_werror_flag"
18974 || test ! -s conftest.err'
18975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18976 (eval $ac_try) 2>&5
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; } &&
18980 { ac_try='test -s conftest.$ac_objext'
18981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18982 (eval $ac_try) 2>&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); }; }; then
18986 ac_cv_struct_sockaddr_sa_len=yes
18988 echo "$as_me: failed program was:" >&5
18989 sed 's/^/| /' conftest.$ac_ext >&5
18991 ac_cv_struct_sockaddr_sa_len=no
18993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18995 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
18996 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
18998 if test $ac_cv_struct_sockaddr_sa_len = yes; then
19000 cat >>confdefs.h <<\_ACEOF
19001 #define HAVE_SA_LEN 1
19007 echo "$as_me:$LINENO: checking for IPv6 support" >&5
19008 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
19009 if test "${ac_cv_ipv6_support+set}" = set; then
19010 echo $ECHO_N "(cached) $ECHO_C" >&6
19012 cat >conftest.$ac_ext <<_ACEOF
19015 cat confdefs.h >>conftest.$ac_ext
19016 cat >>conftest.$ac_ext <<_ACEOF
19017 /* end confdefs.h. */
19018 #include <sys/types.h>
19019 #include <sys/socket.h>
19020 #include <netinet/in.h>
19024 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
19030 rm -f conftest.$ac_objext conftest$ac_exeext
19031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19032 (eval $ac_link) 2>conftest.er1
19034 grep -v '^ *+' conftest.er1 >conftest.err
19036 cat conftest.err >&5
19037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038 (exit $ac_status); } &&
19039 { ac_try='test -z "$ac_c_werror_flag"
19040 || test ! -s conftest.err'
19041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19042 (eval $ac_try) 2>&5
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); }; } &&
19046 { ac_try='test -s conftest$ac_exeext'
19047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19048 (eval $ac_try) 2>&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; }; then
19052 ac_cv_ipv6_support=yes
19054 echo "$as_me: failed program was:" >&5
19055 sed 's/^/| /' conftest.$ac_ext >&5
19057 ac_cv_ipv6_support=no
19059 rm -f conftest.err conftest.$ac_objext \
19060 conftest$ac_exeext conftest.$ac_ext
19062 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
19063 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
19065 if test "$ac_cv_ipv6_support" = yes; then
19067 cat >>confdefs.h <<\_ACEOF
19068 #define HAVE_IPV6 1
19076 for ac_func in strftime
19078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19079 echo "$as_me:$LINENO: checking for $ac_func" >&5
19080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19081 if eval "test \"\${$as_ac_var+set}\" = set"; then
19082 echo $ECHO_N "(cached) $ECHO_C" >&6
19084 cat >conftest.$ac_ext <<_ACEOF
19087 cat confdefs.h >>conftest.$ac_ext
19088 cat >>conftest.$ac_ext <<_ACEOF
19089 /* end confdefs.h. */
19090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19092 #define $ac_func innocuous_$ac_func
19094 /* System header to define __stub macros and hopefully few prototypes,
19095 which can conflict with char $ac_func (); below.
19096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19097 <limits.h> exists even on freestanding compilers. */
19100 # include <limits.h>
19102 # include <assert.h>
19107 /* Override any gcc2 internal prototype to avoid an error. */
19112 /* We use char because int might match the return type of a gcc2
19113 builtin and then its argument prototype would still apply. */
19115 /* The GNU C library defines this for functions which it implements
19116 to always fail with ENOSYS. Some functions are actually named
19117 something starting with __ and the normal name is an alias. */
19118 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19121 char (*f) () = $ac_func;
19130 return f != $ac_func;
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 eval "$as_ac_var=yes"
19159 echo "$as_me: failed program was:" >&5
19160 sed 's/^/| /' conftest.$ac_ext >&5
19162 eval "$as_ac_var=no"
19164 rm -f conftest.err conftest.$ac_objext \
19165 conftest$ac_exeext conftest.$ac_ext
19167 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19168 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19169 if test `eval echo '${'$as_ac_var'}'` = yes; then
19170 cat >>confdefs.h <<_ACEOF
19171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19175 # strftime is in -lintl on SCO UNIX.
19176 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19177 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
19178 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19179 echo $ECHO_N "(cached) $ECHO_C" >&6
19181 ac_check_lib_save_LIBS=$LIBS
19182 LIBS="-lintl $LIBS"
19183 cat >conftest.$ac_ext <<_ACEOF
19186 cat confdefs.h >>conftest.$ac_ext
19187 cat >>conftest.$ac_ext <<_ACEOF
19188 /* end confdefs.h. */
19190 /* Override any gcc2 internal prototype to avoid an error. */
19194 /* We use char because int might match the return type of a gcc2
19195 builtin and then its argument prototype would still apply. */
19205 rm -f conftest.$ac_objext conftest$ac_exeext
19206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19207 (eval $ac_link) 2>conftest.er1
19209 grep -v '^ *+' conftest.er1 >conftest.err
19211 cat conftest.err >&5
19212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213 (exit $ac_status); } &&
19214 { ac_try='test -z "$ac_c_werror_flag"
19215 || test ! -s conftest.err'
19216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217 (eval $ac_try) 2>&5
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; } &&
19221 { ac_try='test -s conftest$ac_exeext'
19222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19223 (eval $ac_try) 2>&5
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; }; then
19227 ac_cv_lib_intl_strftime=yes
19229 echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19232 ac_cv_lib_intl_strftime=no
19234 rm -f conftest.err conftest.$ac_objext \
19235 conftest$ac_exeext conftest.$ac_ext
19236 LIBS=$ac_check_lib_save_LIBS
19238 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19239 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19240 if test $ac_cv_lib_intl_strftime = yes; then
19241 cat >>confdefs.h <<\_ACEOF
19242 #define HAVE_STRFTIME 1
19245 LIBS="-lintl $LIBS"
19252 for ac_func in vprintf
19254 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19255 echo "$as_me:$LINENO: checking for $ac_func" >&5
19256 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19257 if eval "test \"\${$as_ac_var+set}\" = set"; then
19258 echo $ECHO_N "(cached) $ECHO_C" >&6
19260 cat >conftest.$ac_ext <<_ACEOF
19263 cat confdefs.h >>conftest.$ac_ext
19264 cat >>conftest.$ac_ext <<_ACEOF
19265 /* end confdefs.h. */
19266 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19267 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19268 #define $ac_func innocuous_$ac_func
19270 /* System header to define __stub macros and hopefully few prototypes,
19271 which can conflict with char $ac_func (); below.
19272 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19273 <limits.h> exists even on freestanding compilers. */
19276 # include <limits.h>
19278 # include <assert.h>
19283 /* Override any gcc2 internal prototype to avoid an error. */
19288 /* We use char because int might match the return type of a gcc2
19289 builtin and then its argument prototype would still apply. */
19291 /* The GNU C library defines this for functions which it implements
19292 to always fail with ENOSYS. Some functions are actually named
19293 something starting with __ and the normal name is an alias. */
19294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19297 char (*f) () = $ac_func;
19306 return f != $ac_func;
19311 rm -f conftest.$ac_objext conftest$ac_exeext
19312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19313 (eval $ac_link) 2>conftest.er1
19315 grep -v '^ *+' conftest.er1 >conftest.err
19317 cat conftest.err >&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); } &&
19320 { ac_try='test -z "$ac_c_werror_flag"
19321 || test ! -s conftest.err'
19322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323 (eval $ac_try) 2>&5
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; } &&
19327 { ac_try='test -s conftest$ac_exeext'
19328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329 (eval $ac_try) 2>&5
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; }; then
19333 eval "$as_ac_var=yes"
19335 echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19338 eval "$as_ac_var=no"
19340 rm -f conftest.err conftest.$ac_objext \
19341 conftest$ac_exeext conftest.$ac_ext
19343 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19344 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19345 if test `eval echo '${'$as_ac_var'}'` = yes; then
19346 cat >>confdefs.h <<_ACEOF
19347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19350 echo "$as_me:$LINENO: checking for _doprnt" >&5
19351 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19352 if test "${ac_cv_func__doprnt+set}" = set; then
19353 echo $ECHO_N "(cached) $ECHO_C" >&6
19355 cat >conftest.$ac_ext <<_ACEOF
19358 cat confdefs.h >>conftest.$ac_ext
19359 cat >>conftest.$ac_ext <<_ACEOF
19360 /* end confdefs.h. */
19361 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19362 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19363 #define _doprnt innocuous__doprnt
19365 /* System header to define __stub macros and hopefully few prototypes,
19366 which can conflict with char _doprnt (); below.
19367 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19368 <limits.h> exists even on freestanding compilers. */
19371 # include <limits.h>
19373 # include <assert.h>
19378 /* Override any gcc2 internal prototype to avoid an error. */
19383 /* We use char because int might match the return type of a gcc2
19384 builtin and then its argument prototype would still apply. */
19386 /* The GNU C library defines this for functions which it implements
19387 to always fail with ENOSYS. Some functions are actually named
19388 something starting with __ and the normal name is an alias. */
19389 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19392 char (*f) () = _doprnt;
19401 return f != _doprnt;
19406 rm -f conftest.$ac_objext conftest$ac_exeext
19407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19408 (eval $ac_link) 2>conftest.er1
19410 grep -v '^ *+' conftest.er1 >conftest.err
19412 cat conftest.err >&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); } &&
19415 { ac_try='test -z "$ac_c_werror_flag"
19416 || test ! -s conftest.err'
19417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19418 (eval $ac_try) 2>&5
19420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19421 (exit $ac_status); }; } &&
19422 { ac_try='test -s conftest$ac_exeext'
19423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19424 (eval $ac_try) 2>&5
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; }; then
19428 ac_cv_func__doprnt=yes
19430 echo "$as_me: failed program was:" >&5
19431 sed 's/^/| /' conftest.$ac_ext >&5
19433 ac_cv_func__doprnt=no
19435 rm -f conftest.err conftest.$ac_objext \
19436 conftest$ac_exeext conftest.$ac_ext
19438 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19439 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19440 if test $ac_cv_func__doprnt = yes; then
19442 cat >>confdefs.h <<\_ACEOF
19443 #define HAVE_DOPRNT 1
19452 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19453 # for constant arguments. Useless!
19454 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19455 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19456 if test "${ac_cv_working_alloca_h+set}" = set; then
19457 echo $ECHO_N "(cached) $ECHO_C" >&6
19459 cat >conftest.$ac_ext <<_ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h. */
19465 #include <alloca.h>
19469 char *p = (char *) alloca (2 * sizeof (int));
19474 rm -f conftest.$ac_objext conftest$ac_exeext
19475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19476 (eval $ac_link) 2>conftest.er1
19478 grep -v '^ *+' conftest.er1 >conftest.err
19480 cat conftest.err >&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } &&
19483 { ac_try='test -z "$ac_c_werror_flag"
19484 || test ! -s conftest.err'
19485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19486 (eval $ac_try) 2>&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); }; } &&
19490 { ac_try='test -s conftest$ac_exeext'
19491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492 (eval $ac_try) 2>&5
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); }; }; then
19496 ac_cv_working_alloca_h=yes
19498 echo "$as_me: failed program was:" >&5
19499 sed 's/^/| /' conftest.$ac_ext >&5
19501 ac_cv_working_alloca_h=no
19503 rm -f conftest.err conftest.$ac_objext \
19504 conftest$ac_exeext conftest.$ac_ext
19506 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19507 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19508 if test $ac_cv_working_alloca_h = yes; then
19510 cat >>confdefs.h <<\_ACEOF
19511 #define HAVE_ALLOCA_H 1
19516 echo "$as_me:$LINENO: checking for alloca" >&5
19517 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19518 if test "${ac_cv_func_alloca_works+set}" = set; then
19519 echo $ECHO_N "(cached) $ECHO_C" >&6
19521 cat >conftest.$ac_ext <<_ACEOF
19524 cat confdefs.h >>conftest.$ac_ext
19525 cat >>conftest.$ac_ext <<_ACEOF
19526 /* end confdefs.h. */
19528 # define alloca __builtin_alloca
19531 # include <malloc.h>
19532 # define alloca _alloca
19535 # include <alloca.h>
19540 # ifndef alloca /* predefined by HP cc +Olibcalls */
19551 char *p = (char *) alloca (1);
19556 rm -f conftest.$ac_objext conftest$ac_exeext
19557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19558 (eval $ac_link) 2>conftest.er1
19560 grep -v '^ *+' conftest.er1 >conftest.err
19562 cat conftest.err >&5
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); } &&
19565 { ac_try='test -z "$ac_c_werror_flag"
19566 || test ! -s conftest.err'
19567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19568 (eval $ac_try) 2>&5
19570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19571 (exit $ac_status); }; } &&
19572 { ac_try='test -s conftest$ac_exeext'
19573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19574 (eval $ac_try) 2>&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); }; }; then
19578 ac_cv_func_alloca_works=yes
19580 echo "$as_me: failed program was:" >&5
19581 sed 's/^/| /' conftest.$ac_ext >&5
19583 ac_cv_func_alloca_works=no
19585 rm -f conftest.err conftest.$ac_objext \
19586 conftest$ac_exeext conftest.$ac_ext
19588 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19589 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19591 if test $ac_cv_func_alloca_works = yes; then
19593 cat >>confdefs.h <<\_ACEOF
19594 #define HAVE_ALLOCA 1
19598 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19599 # that cause trouble. Some versions do not even contain alloca or
19600 # contain a buggy version. If you still want to use their alloca,
19601 # use ar to extract alloca.o from them instead of compiling alloca.c.
19603 ALLOCA=alloca.$ac_objext
19605 cat >>confdefs.h <<\_ACEOF
19610 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19611 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19612 if test "${ac_cv_os_cray+set}" = set; then
19613 echo $ECHO_N "(cached) $ECHO_C" >&6
19615 cat >conftest.$ac_ext <<_ACEOF
19618 cat confdefs.h >>conftest.$ac_ext
19619 cat >>conftest.$ac_ext <<_ACEOF
19620 /* end confdefs.h. */
19621 #if defined(CRAY) && ! defined(CRAY2)
19628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19629 $EGREP "webecray" >/dev/null 2>&1; then
19637 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19638 echo "${ECHO_T}$ac_cv_os_cray" >&6
19639 if test $ac_cv_os_cray = yes; then
19640 for ac_func in _getb67 GETB67 getb67; do
19641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19642 echo "$as_me:$LINENO: checking for $ac_func" >&5
19643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19644 if eval "test \"\${$as_ac_var+set}\" = set"; then
19645 echo $ECHO_N "(cached) $ECHO_C" >&6
19647 cat >conftest.$ac_ext <<_ACEOF
19650 cat confdefs.h >>conftest.$ac_ext
19651 cat >>conftest.$ac_ext <<_ACEOF
19652 /* end confdefs.h. */
19653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19655 #define $ac_func innocuous_$ac_func
19657 /* System header to define __stub macros and hopefully few prototypes,
19658 which can conflict with char $ac_func (); below.
19659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19660 <limits.h> exists even on freestanding compilers. */
19663 # include <limits.h>
19665 # include <assert.h>
19670 /* Override any gcc2 internal prototype to avoid an error. */
19675 /* We use char because int might match the return type of a gcc2
19676 builtin and then its argument prototype would still apply. */
19678 /* The GNU C library defines this for functions which it implements
19679 to always fail with ENOSYS. Some functions are actually named
19680 something starting with __ and the normal name is an alias. */
19681 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19684 char (*f) () = $ac_func;
19693 return f != $ac_func;
19698 rm -f conftest.$ac_objext conftest$ac_exeext
19699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19700 (eval $ac_link) 2>conftest.er1
19702 grep -v '^ *+' conftest.er1 >conftest.err
19704 cat conftest.err >&5
19705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19706 (exit $ac_status); } &&
19707 { ac_try='test -z "$ac_c_werror_flag"
19708 || test ! -s conftest.err'
19709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19710 (eval $ac_try) 2>&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); }; } &&
19714 { ac_try='test -s conftest$ac_exeext'
19715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716 (eval $ac_try) 2>&5
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; }; then
19720 eval "$as_ac_var=yes"
19722 echo "$as_me: failed program was:" >&5
19723 sed 's/^/| /' conftest.$ac_ext >&5
19725 eval "$as_ac_var=no"
19727 rm -f conftest.err conftest.$ac_objext \
19728 conftest$ac_exeext conftest.$ac_ext
19730 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19731 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19732 if test `eval echo '${'$as_ac_var'}'` = yes; then
19734 cat >>confdefs.h <<_ACEOF
19735 #define CRAY_STACKSEG_END $ac_func
19744 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19745 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19746 if test "${ac_cv_c_stack_direction+set}" = set; then
19747 echo $ECHO_N "(cached) $ECHO_C" >&6
19749 if test "$cross_compiling" = yes; then
19750 ac_cv_c_stack_direction=0
19752 cat >conftest.$ac_ext <<_ACEOF
19755 cat confdefs.h >>conftest.$ac_ext
19756 cat >>conftest.$ac_ext <<_ACEOF
19757 /* end confdefs.h. */
19759 find_stack_direction ()
19761 static char *addr = 0;
19766 return find_stack_direction ();
19769 return (&dummy > addr) ? 1 : -1;
19775 exit (find_stack_direction () < 0);
19778 rm -f conftest$ac_exeext
19779 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19780 (eval $ac_link) 2>&5
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19785 (eval $ac_try) 2>&5
19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19788 (exit $ac_status); }; }; then
19789 ac_cv_c_stack_direction=1
19791 echo "$as_me: program exited with status $ac_status" >&5
19792 echo "$as_me: failed program was:" >&5
19793 sed 's/^/| /' conftest.$ac_ext >&5
19795 ( exit $ac_status )
19796 ac_cv_c_stack_direction=-1
19798 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19801 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19802 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19804 cat >>confdefs.h <<_ACEOF
19805 #define STACK_DIRECTION $ac_cv_c_stack_direction
19811 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19812 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19813 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19814 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19815 echo $ECHO_N "(cached) $ECHO_C" >&6
19817 ac_check_lib_save_LIBS=$LIBS
19819 cat >conftest.$ac_ext <<_ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h. */
19826 /* Override any gcc2 internal prototype to avoid an error. */
19830 /* We use char because int might match the return type of a gcc2
19831 builtin and then its argument prototype would still apply. */
19841 rm -f conftest.$ac_objext conftest$ac_exeext
19842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19843 (eval $ac_link) 2>conftest.er1
19845 grep -v '^ *+' conftest.er1 >conftest.err
19847 cat conftest.err >&5
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); } &&
19850 { ac_try='test -z "$ac_c_werror_flag"
19851 || test ! -s conftest.err'
19852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853 (eval $ac_try) 2>&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; } &&
19857 { ac_try='test -s conftest$ac_exeext'
19858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19859 (eval $ac_try) 2>&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); }; }; then
19863 ac_cv_lib_sun_getmntent=yes
19865 echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19868 ac_cv_lib_sun_getmntent=no
19870 rm -f conftest.err conftest.$ac_objext \
19871 conftest$ac_exeext conftest.$ac_ext
19872 LIBS=$ac_check_lib_save_LIBS
19874 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19875 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19876 if test $ac_cv_lib_sun_getmntent = yes; then
19879 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19880 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19881 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19882 echo $ECHO_N "(cached) $ECHO_C" >&6
19884 ac_check_lib_save_LIBS=$LIBS
19886 cat >conftest.$ac_ext <<_ACEOF
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h. */
19893 /* Override any gcc2 internal prototype to avoid an error. */
19897 /* We use char because int might match the return type of a gcc2
19898 builtin and then its argument prototype would still apply. */
19908 rm -f conftest.$ac_objext conftest$ac_exeext
19909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19910 (eval $ac_link) 2>conftest.er1
19912 grep -v '^ *+' conftest.er1 >conftest.err
19914 cat conftest.err >&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } &&
19917 { ac_try='test -z "$ac_c_werror_flag"
19918 || test ! -s conftest.err'
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; } &&
19924 { ac_try='test -s conftest$ac_exeext'
19925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926 (eval $ac_try) 2>&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; }; then
19930 ac_cv_lib_seq_getmntent=yes
19932 echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19935 ac_cv_lib_seq_getmntent=no
19937 rm -f conftest.err conftest.$ac_objext \
19938 conftest$ac_exeext conftest.$ac_ext
19939 LIBS=$ac_check_lib_save_LIBS
19941 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
19942 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
19943 if test $ac_cv_lib_seq_getmntent = yes; then
19946 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
19947 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
19948 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
19949 echo $ECHO_N "(cached) $ECHO_C" >&6
19951 ac_check_lib_save_LIBS=$LIBS
19953 cat >conftest.$ac_ext <<_ACEOF
19956 cat confdefs.h >>conftest.$ac_ext
19957 cat >>conftest.$ac_ext <<_ACEOF
19958 /* end confdefs.h. */
19960 /* Override any gcc2 internal prototype to avoid an error. */
19964 /* We use char because int might match the return type of a gcc2
19965 builtin and then its argument prototype would still apply. */
19975 rm -f conftest.$ac_objext conftest$ac_exeext
19976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19977 (eval $ac_link) 2>conftest.er1
19979 grep -v '^ *+' conftest.er1 >conftest.err
19981 cat conftest.err >&5
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); } &&
19984 { ac_try='test -z "$ac_c_werror_flag"
19985 || test ! -s conftest.err'
19986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987 (eval $ac_try) 2>&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; } &&
19991 { ac_try='test -s conftest$ac_exeext'
19992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19993 (eval $ac_try) 2>&5
19995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19996 (exit $ac_status); }; }; then
19997 ac_cv_lib_gen_getmntent=yes
19999 echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20002 ac_cv_lib_gen_getmntent=no
20004 rm -f conftest.err conftest.$ac_objext \
20005 conftest$ac_exeext conftest.$ac_ext
20006 LIBS=$ac_check_lib_save_LIBS
20008 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
20009 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
20010 if test $ac_cv_lib_gen_getmntent = yes; then
20019 for ac_func in getmntent
20021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20022 echo "$as_me:$LINENO: checking for $ac_func" >&5
20023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20024 if eval "test \"\${$as_ac_var+set}\" = set"; then
20025 echo $ECHO_N "(cached) $ECHO_C" >&6
20027 cat >conftest.$ac_ext <<_ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h. */
20033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20035 #define $ac_func innocuous_$ac_func
20037 /* System header to define __stub macros and hopefully few prototypes,
20038 which can conflict with char $ac_func (); below.
20039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20040 <limits.h> exists even on freestanding compilers. */
20043 # include <limits.h>
20045 # include <assert.h>
20050 /* Override any gcc2 internal prototype to avoid an error. */
20055 /* We use char because int might match the return type of a gcc2
20056 builtin and then its argument prototype would still apply. */
20058 /* The GNU C library defines this for functions which it implements
20059 to always fail with ENOSYS. Some functions are actually named
20060 something starting with __ and the normal name is an alias. */
20061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20064 char (*f) () = $ac_func;
20073 return f != $ac_func;
20078 rm -f conftest.$ac_objext conftest$ac_exeext
20079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20080 (eval $ac_link) 2>conftest.er1
20082 grep -v '^ *+' conftest.er1 >conftest.err
20084 cat conftest.err >&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); } &&
20087 { ac_try='test -z "$ac_c_werror_flag"
20088 || test ! -s conftest.err'
20089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090 (eval $ac_try) 2>&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; } &&
20094 { ac_try='test -s conftest$ac_exeext'
20095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20096 (eval $ac_try) 2>&5
20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20099 (exit $ac_status); }; }; then
20100 eval "$as_ac_var=yes"
20102 echo "$as_me: failed program was:" >&5
20103 sed 's/^/| /' conftest.$ac_ext >&5
20105 eval "$as_ac_var=no"
20107 rm -f conftest.err conftest.$ac_objext \
20108 conftest$ac_exeext conftest.$ac_ext
20110 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20111 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20112 if test `eval echo '${'$as_ac_var'}'` = yes; then
20113 cat >>confdefs.h <<_ACEOF
20114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20121 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
20122 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
20123 if test "${ac_cv_func_closedir_void+set}" = set; then
20124 echo $ECHO_N "(cached) $ECHO_C" >&6
20126 if test "$cross_compiling" = yes; then
20127 ac_cv_func_closedir_void=yes
20129 cat >conftest.$ac_ext <<_ACEOF
20132 cat confdefs.h >>conftest.$ac_ext
20133 cat >>conftest.$ac_ext <<_ACEOF
20134 /* end confdefs.h. */
20135 $ac_includes_default
20136 #include <$ac_header_dirent>
20137 #ifndef __cplusplus
20144 exit (closedir (opendir (".")) != 0);
20149 rm -f conftest$ac_exeext
20150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20151 (eval $ac_link) 2>&5
20153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20154 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156 (eval $ac_try) 2>&5
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); }; }; then
20160 ac_cv_func_closedir_void=no
20162 echo "$as_me: program exited with status $ac_status" >&5
20163 echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.$ac_ext >&5
20166 ( exit $ac_status )
20167 ac_cv_func_closedir_void=yes
20169 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20172 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20173 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20174 if test $ac_cv_func_closedir_void = yes; then
20176 cat >>confdefs.h <<\_ACEOF
20177 #define CLOSEDIR_VOID 1
20182 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20183 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20184 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20185 echo $ECHO_N "(cached) $ECHO_C" >&6
20187 if test "$cross_compiling" = yes; then
20188 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20189 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20190 { (exit 1); exit 1; }; }
20192 cat >conftest.$ac_ext <<_ACEOF
20195 cat confdefs.h >>conftest.$ac_ext
20196 cat >>conftest.$ac_ext <<_ACEOF
20197 /* end confdefs.h. */
20199 # include <unistd.h>
20205 /* If this system has a BSD-style setpgrp which takes arguments,
20206 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20207 exit successfully. */
20208 exit (setpgrp (1,1) == -1 ? 0 : 1);
20213 rm -f conftest$ac_exeext
20214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20215 (eval $ac_link) 2>&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20220 (eval $ac_try) 2>&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); }; }; then
20224 ac_cv_func_setpgrp_void=no
20226 echo "$as_me: program exited with status $ac_status" >&5
20227 echo "$as_me: failed program was:" >&5
20228 sed 's/^/| /' conftest.$ac_ext >&5
20230 ( exit $ac_status )
20231 ac_cv_func_setpgrp_void=yes
20233 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20236 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20237 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20238 if test $ac_cv_func_setpgrp_void = yes; then
20240 cat >>confdefs.h <<\_ACEOF
20241 #define SETPGRP_VOID 1
20245 # AC_FUNC_FNMATCH dnl use local version
20248 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20249 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20250 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20251 echo $ECHO_N "(cached) $ECHO_C" >&6
20253 ac_check_lib_save_LIBS=$LIBS
20254 LIBS="-lxpg4 $LIBS"
20255 cat >conftest.$ac_ext <<_ACEOF
20258 cat confdefs.h >>conftest.$ac_ext
20259 cat >>conftest.$ac_ext <<_ACEOF
20260 /* end confdefs.h. */
20262 /* Override any gcc2 internal prototype to avoid an error. */
20266 /* We use char because int might match the return type of a gcc2
20267 builtin and then its argument prototype would still apply. */
20277 rm -f conftest.$ac_objext conftest$ac_exeext
20278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20279 (eval $ac_link) 2>conftest.er1
20281 grep -v '^ *+' conftest.er1 >conftest.err
20283 cat conftest.err >&5
20284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20285 (exit $ac_status); } &&
20286 { ac_try='test -z "$ac_c_werror_flag"
20287 || test ! -s conftest.err'
20288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289 (eval $ac_try) 2>&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; } &&
20293 { ac_try='test -s conftest$ac_exeext'
20294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295 (eval $ac_try) 2>&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; }; then
20299 ac_cv_lib_xpg4_setlocale=yes
20301 echo "$as_me: failed program was:" >&5
20302 sed 's/^/| /' conftest.$ac_ext >&5
20304 ac_cv_lib_xpg4_setlocale=no
20306 rm -f conftest.err conftest.$ac_objext \
20307 conftest$ac_exeext conftest.$ac_ext
20308 LIBS=$ac_check_lib_save_LIBS
20310 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20311 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20312 if test $ac_cv_lib_xpg4_setlocale = yes; then
20313 LIBS="$LIBS -lxpg4"
20319 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20320 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20321 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20322 echo $ECHO_N "(cached) $ECHO_C" >&6
20324 ac_check_lib_save_LIBS=$LIBS
20326 cat >conftest.$ac_ext <<_ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h. */
20333 /* Override any gcc2 internal prototype to avoid an error. */
20337 /* We use char because int might match the return type of a gcc2
20338 builtin and then its argument prototype would still apply. */
20348 rm -f conftest.$ac_objext conftest$ac_exeext
20349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20350 (eval $ac_link) 2>conftest.er1
20352 grep -v '^ *+' conftest.er1 >conftest.err
20354 cat conftest.err >&5
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); } &&
20357 { ac_try='test -z "$ac_c_werror_flag"
20358 || test ! -s conftest.err'
20359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20360 (eval $ac_try) 2>&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); }; } &&
20364 { ac_try='test -s conftest$ac_exeext'
20365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20366 (eval $ac_try) 2>&5
20368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); }; }; then
20370 ac_cv_lib_sun_getpwnam=yes
20372 echo "$as_me: failed program was:" >&5
20373 sed 's/^/| /' conftest.$ac_ext >&5
20375 ac_cv_lib_sun_getpwnam=no
20377 rm -f conftest.err conftest.$ac_objext \
20378 conftest$ac_exeext conftest.$ac_ext
20379 LIBS=$ac_check_lib_save_LIBS
20381 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20382 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20383 if test $ac_cv_lib_sun_getpwnam = yes; then
20384 cat >>confdefs.h <<_ACEOF
20385 #define HAVE_LIBSUN 1
20394 for ac_header in zlib.h
20396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20398 echo "$as_me:$LINENO: checking for $ac_header" >&5
20399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
20403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20406 # Is the header compilable?
20407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20409 cat >conftest.$ac_ext <<_ACEOF
20412 cat confdefs.h >>conftest.$ac_ext
20413 cat >>conftest.$ac_ext <<_ACEOF
20414 /* end confdefs.h. */
20415 $ac_includes_default
20416 #include <$ac_header>
20418 rm -f conftest.$ac_objext
20419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20420 (eval $ac_compile) 2>conftest.er1
20422 grep -v '^ *+' conftest.er1 >conftest.err
20424 cat conftest.err >&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } &&
20427 { ac_try='test -z "$ac_c_werror_flag"
20428 || test ! -s conftest.err'
20429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430 (eval $ac_try) 2>&5
20432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433 (exit $ac_status); }; } &&
20434 { ac_try='test -s conftest.$ac_objext'
20435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20436 (eval $ac_try) 2>&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); }; }; then
20440 ac_header_compiler=yes
20442 echo "$as_me: failed program was:" >&5
20443 sed 's/^/| /' conftest.$ac_ext >&5
20445 ac_header_compiler=no
20447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20449 echo "${ECHO_T}$ac_header_compiler" >&6
20451 # Is the header present?
20452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20454 cat >conftest.$ac_ext <<_ACEOF
20457 cat confdefs.h >>conftest.$ac_ext
20458 cat >>conftest.$ac_ext <<_ACEOF
20459 /* end confdefs.h. */
20460 #include <$ac_header>
20462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20465 grep -v '^ *+' conftest.er1 >conftest.err
20467 cat conftest.err >&5
20468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20469 (exit $ac_status); } >/dev/null; then
20470 if test -s conftest.err; then
20471 ac_cpp_err=$ac_c_preproc_warn_flag
20472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20479 if test -z "$ac_cpp_err"; then
20480 ac_header_preproc=yes
20482 echo "$as_me: failed program was:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20485 ac_header_preproc=no
20487 rm -f conftest.err conftest.$ac_ext
20488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20489 echo "${ECHO_T}$ac_header_preproc" >&6
20491 # So? What about this header?
20492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20498 ac_header_preproc=yes
20501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20515 ## ------------------------------------------ ##
20516 ## Report this to the AC_PACKAGE_NAME lists. ##
20517 ## ------------------------------------------ ##
20520 sed "s/^/$as_me: WARNING: /" >&2
20523 echo "$as_me:$LINENO: checking for $ac_header" >&5
20524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20526 echo $ECHO_N "(cached) $ECHO_C" >&6
20528 eval "$as_ac_Header=\$ac_header_preproc"
20530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20535 cat >>confdefs.h <<_ACEOF
20536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20543 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20544 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20545 if test "${ac_cv_lib_z_deflate+set}" = set; then
20546 echo $ECHO_N "(cached) $ECHO_C" >&6
20548 ac_check_lib_save_LIBS=$LIBS
20550 cat >conftest.$ac_ext <<_ACEOF
20553 cat confdefs.h >>conftest.$ac_ext
20554 cat >>conftest.$ac_ext <<_ACEOF
20555 /* end confdefs.h. */
20557 /* Override any gcc2 internal prototype to avoid an error. */
20561 /* We use char because int might match the return type of a gcc2
20562 builtin and then its argument prototype would still apply. */
20572 rm -f conftest.$ac_objext conftest$ac_exeext
20573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20574 (eval $ac_link) 2>conftest.er1
20576 grep -v '^ *+' conftest.er1 >conftest.err
20578 cat conftest.err >&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } &&
20581 { ac_try='test -z "$ac_c_werror_flag"
20582 || test ! -s conftest.err'
20583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; } &&
20588 { ac_try='test -s conftest$ac_exeext'
20589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20590 (eval $ac_try) 2>&5
20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20593 (exit $ac_status); }; }; then
20594 ac_cv_lib_z_deflate=yes
20596 echo "$as_me: failed program was:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20599 ac_cv_lib_z_deflate=no
20601 rm -f conftest.err conftest.$ac_objext \
20602 conftest$ac_exeext conftest.$ac_ext
20603 LIBS=$ac_check_lib_save_LIBS
20605 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20606 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20607 if test $ac_cv_lib_z_deflate = yes; then
20612 if test x$FDLIBS = x-lz; then
20613 cat >>confdefs.h <<\_ACEOF
20614 #define HAVE_LIBZ 1
20620 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20621 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20622 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20623 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20624 echo $ECHO_N "(cached) $ECHO_C" >&6
20626 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20627 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20629 # Is the header compilable?
20630 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20631 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20632 cat >conftest.$ac_ext <<_ACEOF
20635 cat confdefs.h >>conftest.$ac_ext
20636 cat >>conftest.$ac_ext <<_ACEOF
20637 /* end confdefs.h. */
20638 $ac_includes_default
20639 #include <sys/acl.h>
20641 rm -f conftest.$ac_objext
20642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20643 (eval $ac_compile) 2>conftest.er1
20645 grep -v '^ *+' conftest.er1 >conftest.err
20647 cat conftest.err >&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); } &&
20650 { ac_try='test -z "$ac_c_werror_flag"
20651 || test ! -s conftest.err'
20652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20653 (eval $ac_try) 2>&5
20655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20656 (exit $ac_status); }; } &&
20657 { ac_try='test -s conftest.$ac_objext'
20658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20659 (eval $ac_try) 2>&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); }; }; then
20663 ac_header_compiler=yes
20665 echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.$ac_ext >&5
20668 ac_header_compiler=no
20670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20672 echo "${ECHO_T}$ac_header_compiler" >&6
20674 # Is the header present?
20675 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20676 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20677 cat >conftest.$ac_ext <<_ACEOF
20680 cat confdefs.h >>conftest.$ac_ext
20681 cat >>conftest.$ac_ext <<_ACEOF
20682 /* end confdefs.h. */
20683 #include <sys/acl.h>
20685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20688 grep -v '^ *+' conftest.er1 >conftest.err
20690 cat conftest.err >&5
20691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20692 (exit $ac_status); } >/dev/null; then
20693 if test -s conftest.err; then
20694 ac_cpp_err=$ac_c_preproc_warn_flag
20695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20702 if test -z "$ac_cpp_err"; then
20703 ac_header_preproc=yes
20705 echo "$as_me: failed program was:" >&5
20706 sed 's/^/| /' conftest.$ac_ext >&5
20708 ac_header_preproc=no
20710 rm -f conftest.err conftest.$ac_ext
20711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20712 echo "${ECHO_T}$ac_header_preproc" >&6
20714 # So? What about this header?
20715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20717 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20718 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20719 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20720 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20721 ac_header_preproc=yes
20724 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20725 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20726 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
20727 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
20728 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20729 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20730 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
20731 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20732 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20733 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20734 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20735 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20738 ## ------------------------------------------ ##
20739 ## Report this to the AC_PACKAGE_NAME lists. ##
20740 ## ------------------------------------------ ##
20743 sed "s/^/$as_me: WARNING: /" >&2
20746 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20747 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20748 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20749 echo $ECHO_N "(cached) $ECHO_C" >&6
20751 ac_cv_header_sys_acl_h=$ac_header_preproc
20753 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20754 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20759 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20760 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20761 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20762 echo $ECHO_N "(cached) $ECHO_C" >&6
20764 ac_check_lib_save_LIBS=$LIBS
20766 cat >conftest.$ac_ext <<_ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h. */
20773 /* Override any gcc2 internal prototype to avoid an error. */
20777 /* We use char because int might match the return type of a gcc2
20778 builtin and then its argument prototype would still apply. */
20779 char acl_get_file ();
20788 rm -f conftest.$ac_objext conftest$ac_exeext
20789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20790 (eval $ac_link) 2>conftest.er1
20792 grep -v '^ *+' conftest.er1 >conftest.err
20794 cat conftest.err >&5
20795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); } &&
20797 { ac_try='test -z "$ac_c_werror_flag"
20798 || test ! -s conftest.err'
20799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800 (eval $ac_try) 2>&5
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; } &&
20804 { ac_try='test -s conftest$ac_exeext'
20805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806 (eval $ac_try) 2>&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; }; then
20810 ac_cv_lib_acl_acl_get_file=yes
20812 echo "$as_me: failed program was:" >&5
20813 sed 's/^/| /' conftest.$ac_ext >&5
20815 ac_cv_lib_acl_acl_get_file=no
20817 rm -f conftest.err conftest.$ac_objext \
20818 conftest$ac_exeext conftest.$ac_ext
20819 LIBS=$ac_check_lib_save_LIBS
20821 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
20822 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
20823 if test $ac_cv_lib_acl_acl_get_file = yes; then
20824 FDLIBS="-lacl $FDLIBS"
20828 if test $ac_cv_lib_acl_acl_get_file = yes; then
20829 cat >>confdefs.h <<\_ACEOF
20837 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20838 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20839 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20840 echo $ECHO_N "(cached) $ECHO_C" >&6
20842 ac_check_lib_save_LIBS=$LIBS
20843 LIBS="-lpthread $LIBS"
20844 cat >conftest.$ac_ext <<_ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20851 /* Override any gcc2 internal prototype to avoid an error. */
20855 /* We use char because int might match the return type of a gcc2
20856 builtin and then its argument prototype would still apply. */
20857 char pthread_create ();
20866 rm -f conftest.$ac_objext conftest$ac_exeext
20867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20868 (eval $ac_link) 2>conftest.er1
20870 grep -v '^ *+' conftest.er1 >conftest.err
20872 cat conftest.err >&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } &&
20875 { ac_try='test -z "$ac_c_werror_flag"
20876 || test ! -s conftest.err'
20877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20878 (eval $ac_try) 2>&5
20880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); }; } &&
20882 { ac_try='test -s conftest$ac_exeext'
20883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20884 (eval $ac_try) 2>&5
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); }; }; then
20888 ac_cv_lib_pthread_pthread_create=yes
20890 echo "$as_me: failed program was:" >&5
20891 sed 's/^/| /' conftest.$ac_ext >&5
20893 ac_cv_lib_pthread_pthread_create=no
20895 rm -f conftest.err conftest.$ac_objext \
20896 conftest$ac_exeext conftest.$ac_ext
20897 LIBS=$ac_check_lib_save_LIBS
20899 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20900 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20901 if test $ac_cv_lib_pthread_pthread_create = yes; then
20902 PTHREAD_LIB="-lpthread"
20904 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
20905 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
20906 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
20907 echo $ECHO_N "(cached) $ECHO_C" >&6
20909 ac_check_lib_save_LIBS=$LIBS
20910 LIBS="-lpthreads $LIBS"
20911 cat >conftest.$ac_ext <<_ACEOF
20914 cat confdefs.h >>conftest.$ac_ext
20915 cat >>conftest.$ac_ext <<_ACEOF
20916 /* end confdefs.h. */
20918 /* Override any gcc2 internal prototype to avoid an error. */
20922 /* We use char because int might match the return type of a gcc2
20923 builtin and then its argument prototype would still apply. */
20924 char pthread_create ();
20933 rm -f conftest.$ac_objext conftest$ac_exeext
20934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20935 (eval $ac_link) 2>conftest.er1
20937 grep -v '^ *+' conftest.er1 >conftest.err
20939 cat conftest.err >&5
20940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); } &&
20942 { ac_try='test -z "$ac_c_werror_flag"
20943 || test ! -s conftest.err'
20944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945 (eval $ac_try) 2>&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); }; } &&
20949 { ac_try='test -s conftest$ac_exeext'
20950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20951 (eval $ac_try) 2>&5
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); }; }; then
20955 ac_cv_lib_pthreads_pthread_create=yes
20957 echo "$as_me: failed program was:" >&5
20958 sed 's/^/| /' conftest.$ac_ext >&5
20960 ac_cv_lib_pthreads_pthread_create=no
20962 rm -f conftest.err conftest.$ac_objext \
20963 conftest$ac_exeext conftest.$ac_ext
20964 LIBS=$ac_check_lib_save_LIBS
20966 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
20967 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
20968 if test $ac_cv_lib_pthreads_pthread_create = yes; then
20969 PTHREAD_LIB="-lpthreads"
20971 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20972 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20973 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20974 echo $ECHO_N "(cached) $ECHO_C" >&6
20976 ac_check_lib_save_LIBS=$LIBS
20978 cat >conftest.$ac_ext <<_ACEOF
20981 cat confdefs.h >>conftest.$ac_ext
20982 cat >>conftest.$ac_ext <<_ACEOF
20983 /* end confdefs.h. */
20985 /* Override any gcc2 internal prototype to avoid an error. */
20989 /* We use char because int might match the return type of a gcc2
20990 builtin and then its argument prototype would still apply. */
20991 char pthread_create ();
21000 rm -f conftest.$ac_objext conftest$ac_exeext
21001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21002 (eval $ac_link) 2>conftest.er1
21004 grep -v '^ *+' conftest.er1 >conftest.err
21006 cat conftest.err >&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } &&
21009 { ac_try='test -z "$ac_c_werror_flag"
21010 || test ! -s conftest.err'
21011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21012 (eval $ac_try) 2>&5
21014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015 (exit $ac_status); }; } &&
21016 { ac_try='test -s conftest$ac_exeext'
21017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21018 (eval $ac_try) 2>&5
21020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21021 (exit $ac_status); }; }; then
21022 ac_cv_lib_c_r_pthread_create=yes
21024 echo "$as_me: failed program was:" >&5
21025 sed 's/^/| /' conftest.$ac_ext >&5
21027 ac_cv_lib_c_r_pthread_create=no
21029 rm -f conftest.err conftest.$ac_objext \
21030 conftest$ac_exeext conftest.$ac_ext
21031 LIBS=$ac_check_lib_save_LIBS
21033 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21034 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
21035 if test $ac_cv_lib_c_r_pthread_create = yes; then
21036 PTHREAD_LIB="-lc_r"
21038 echo "$as_me:$LINENO: checking for pthread_create" >&5
21039 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
21040 if test "${ac_cv_func_pthread_create+set}" = set; then
21041 echo $ECHO_N "(cached) $ECHO_C" >&6
21043 cat >conftest.$ac_ext <<_ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h. */
21049 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
21050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21051 #define pthread_create innocuous_pthread_create
21053 /* System header to define __stub macros and hopefully few prototypes,
21054 which can conflict with char pthread_create (); below.
21055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21056 <limits.h> exists even on freestanding compilers. */
21059 # include <limits.h>
21061 # include <assert.h>
21064 #undef pthread_create
21066 /* Override any gcc2 internal prototype to avoid an error. */
21071 /* We use char because int might match the return type of a gcc2
21072 builtin and then its argument prototype would still apply. */
21073 char pthread_create ();
21074 /* The GNU C library defines this for functions which it implements
21075 to always fail with ENOSYS. Some functions are actually named
21076 something starting with __ and the normal name is an alias. */
21077 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
21080 char (*f) () = pthread_create;
21089 return f != pthread_create;
21094 rm -f conftest.$ac_objext conftest$ac_exeext
21095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21096 (eval $ac_link) 2>conftest.er1
21098 grep -v '^ *+' conftest.er1 >conftest.err
21100 cat conftest.err >&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); } &&
21103 { ac_try='test -z "$ac_c_werror_flag"
21104 || test ! -s conftest.err'
21105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21106 (eval $ac_try) 2>&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); }; } &&
21110 { ac_try='test -s conftest$ac_exeext'
21111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21112 (eval $ac_try) 2>&5
21114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21115 (exit $ac_status); }; }; then
21116 ac_cv_func_pthread_create=yes
21118 echo "$as_me: failed program was:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21121 ac_cv_func_pthread_create=no
21123 rm -f conftest.err conftest.$ac_objext \
21124 conftest$ac_exeext conftest.$ac_ext
21126 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
21127 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
21140 cat >>confdefs.h <<\_ACEOF
21146 CFLAGS=${CFLAGS--O}
21147 LDFLAGS=${LDFLAGS--O}
21148 DB_LIBS="${SQL_LFLAGS}"
21150 CPPFLAGS="$CPPFLAGS"
21175 # Finally we set appropriate distribution specific
21176 # variables and defaults
21178 # PFILES are platform specific files
21179 PFILES="platforms/Makefile"
21183 hostname=`uname -n | cut -d '.' -f 1`
21184 case "$DISTNAME" in
21187 PSCMD="ps -e -o pid,comm"
21188 PFILES="${PFILES} \
21189 platforms/aix/Makefile"
21190 TAPEDRIVE="/dev/rmt0.1"
21194 PTHREAD_LIB="-lpthread -lexc"
21195 if test "${CC}" = "gcc" ; then
21202 TAPEDRIVE="/dev/nrmt0"
21205 DISTVER=`uname -a |awk '{print $3}'`
21206 TAPEDRIVE="/dev/nrmt0"
21207 PTHREAD_LIB="-pthread"
21208 CFLAGS="${CFLAGS} -pthread"
21209 PSCMD="ps -x -o pid,command"
21212 PFILES="${PFILES} \
21213 platforms/bsdi/Makefile \
21214 platforms/bsdi/bacula-fd \
21215 platforms/bsdi/bacula-sd \
21216 platforms/bsdi/bacula-dir"
21217 largefile_support="yes"
21220 DISTVER=`uname -a |awk '{print $3}'`
21221 TAPEDRIVE="/dev/nrst0"
21223 WCFLAGS="-mwindows"
21224 WLDFLAGS="-mwindows"
21228 TAPEDRIVE="/dev/nst0"
21229 PSCMD="ps -e -o pid,command"
21231 PFILES="${PFILES} \
21232 platforms/darwin/Makefile"
21235 DISTVER=`cat /etc/debian_version`
21236 TAPEDRIVE="/dev/nrst0"
21237 PSCMD="ps -e -o pid,command"
21240 DISTVER=`uname -a |awk '{print $3}'`
21241 VER=`echo $DISTVER | cut -c 1`
21242 if test x$VER = x4 ; then
21243 PTHREAD_LIB="-pthread"
21244 CFLAGS="${CFLAGS} -pthread"
21248 TAPEDRIVE="/dev/nrsa0"
21249 PSCMD="ps -x -o pid,command"
21250 PFILES="${PFILES} \
21251 platforms/freebsd/Makefile \
21252 platforms/freebsd/bacula-fd \
21253 platforms/freebsd/bacula-sd \
21254 platforms/freebsd/bacula-dir"
21255 largefile_support="yes"
21258 PSCMD="UNIX95=1 ps -e -o pid,comm"
21259 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21261 TAPEDRIVE="/dev/rmt/0hnb"
21262 PTHREAD_LIB="-lpthread"
21263 cat >>confdefs.h <<\_ACEOF
21264 #define _INCLUDE_LONGLONG 1
21270 TAPEDRIVE="/dev/rmt/0cbn"
21271 PSCMD="ps -e -o pid,comm"
21272 PFILES="${PFILES} \
21273 platforms/irix/Makefile \
21274 platforms/irix/bacula-fd \
21275 platforms/irix/bacula-sd \
21276 platforms/irix/bacula-dir"
21279 DISTVER=`uname -a |awk '{print $3}'`
21282 TAPEDRIVE="/dev/nrst0"
21283 PSCMD="ps -a -o pid,command"
21284 PTHREAD_LIB="-pthread"
21285 CFLAGS="${CFLAGS} -pthread"
21288 DISTVER=`uname -a |awk '{print $3}'`
21291 TAPEDRIVE="/dev/nrst0"
21292 PSCMD="ps -ax -o pid,command"
21293 PTHREAD_LIB="-pthread"
21294 CFLAGS="${CFLAGS} -pthread"
21295 PFILES="${PFILES} \
21296 platforms/openbsd/Makefile \
21297 platforms/openbsd/bacula-fd \
21298 platforms/openbsd/bacula-sd \
21299 platforms/openbsd/bacula-dir"
21302 if test -f /etc/whitebox-release ; then
21303 f=/etc/whitebox-release
21305 f=/etc/redhat-release
21307 if test `cat $f | grep release |\
21308 cut -f 3 -d ' '`x = "Enterprise"x ; then
21309 DISTVER="Enterprise "`cat $f | grep release |\
21312 DISTVER=`cat /etc/redhat-release | grep release |\
21315 TAPEDRIVE="/dev/nst0"
21316 PSCMD="ps -e -o pid,command"
21317 PFILES="${PFILES} \
21318 platforms/redhat/Makefile \
21319 platforms/redhat/bacula-fd \
21320 platforms/redhat/bacula-sd \
21321 platforms/redhat/bacula-dir \
21322 platforms/redhat/bacula.spec \
21324 hostname=`hostname -s`
21327 DISTVER=`cat /etc/mandrake-release | grep release |\
21329 TAPEDRIVE="/dev/nst0"
21330 PSCMD="ps -e -o pid,command"
21331 PFILES="${PFILES} \
21332 platforms/mandrake/Makefile \
21333 platforms/mandrake/bacula-fd \
21334 platforms/mandrake/bacula-sd \
21335 platforms/mandrake/bacula-dir \
21336 platforms/mandrake/bacula.spec \
21340 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21341 TAPEDRIVE="/dev/nst0"
21342 PSCMD="ps -e -o pid,command"
21343 PFILES="${PFILES} \
21344 platforms/gentoo/Makefile \
21345 platforms/gentoo/bacula-init \
21346 platforms/gentoo/bacula-fd \
21347 platforms/gentoo/bacula-sd \
21348 platforms/gentoo/bacula-dir"
21351 DISTVER=`cat /etc/slackware-version`
21352 TAPEDRIVE="/dev/nst0"
21353 PSCMD="ps -e -o pid,command"
21354 PFILES="${PFILES} \
21355 platforms/slackware/Makefile \
21356 platforms/slackware/rc.bacula-fd \
21357 platforms/slackware/rc.bacula-sd \
21358 platforms/slackware/rc.bacula-dir\
21359 platforms/slackware/functions.bacula"
21363 TAPEDRIVE="/dev/rmt/0cbn"
21364 PSCMD="ps -e -o pid,comm"
21365 PFILES="${PFILES} \
21366 platforms/solaris/Makefile \
21367 platforms/solaris/bacula-fd \
21368 platforms/solaris/bacula-sd \
21369 platforms/solaris/bacula-dir"
21370 if test x$DISTVER = x5.6 ; then
21371 cat >>confdefs.h <<\_ACEOF
21372 #define HAVE_OLD_SOCKOPT 1
21376 LIBS="$LIBS -lresolv"
21379 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21381 TAPEDRIVE="/dev/nst0"
21382 PSCMD="ps -e -o pid,command"
21383 PFILES="${PFILES} \
21384 platforms/suse/Makefile \
21385 platforms/suse/bacula-fd \
21386 platforms/suse/bacula-sd \
21387 platforms/suse/bacula-dir \
21388 platforms/suse/bacula \
21389 platforms/suse/bacula.spec"
21394 TAPEDRIVE="/dev/nst0"
21395 PSCMD="ps -e -o pid,command"
21396 PFILES="${PFILES} \
21397 platforms/suse/Makefile \
21398 platforms/suse/bacula-fd \
21399 platforms/suse/bacula-sd \
21400 platforms/suse/bacula-dir"
21404 TAPEDRIVE="/dev/nst0"
21407 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21413 LIBS="$PTHREAD_LIB $LIBS"
21415 cat >>confdefs.h <<_ACEOF
21419 cat >>confdefs.h <<_ACEOF
21430 MCOMMON=./autoconf/Make.common
21433 if test "x${subsysdir}" = "x${sbindir}" ; then
21436 echo "You have set both --sbindir and --with-subsys-dir"
21437 echo " equal to: ${subsysdir} "
21438 echo "This is not permitted. Please reconfigure."
21440 echo "Aborting configuration ..."
21446 ac_config_files="$ac_config_files autoconf/Make.common Makefile rescue/Makefile rescue/linux/Makefile rescue/linux/floppy/Makefile rescue/linux/cdrom/Makefile rescue/linux/cdrom/bacula/Makefile rescue/freebsd/Makefile rescue/solaris/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/dvd-writepart scripts/dvd-freespace scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf doc/Makefile src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome-console/Makefile src/gnome-console/gnome-console.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/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 src/bimagemgr/Makefile src/bimagemgr/bacula-bimagemgr.spec $PFILES"
21447 ac_config_commands="$ac_config_commands default"
21448 cat >confcache <<\_ACEOF
21449 # This file is a shell script that caches the results of configure
21450 # tests run on this system so they can be shared between configure
21451 # scripts and configure runs, see configure's option --config-cache.
21452 # It is not useful on other systems. If it contains results you don't
21453 # want to keep, you may remove or edit it.
21455 # config.status only pays attention to the cache file if you give it
21456 # the --recheck option to rerun configure.
21458 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21459 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21460 # following values.
21464 # The following way of writing the cache mishandles newlines in values,
21465 # but we know of no workaround that is simple, portable, and efficient.
21466 # So, don't put newlines in cache variables' values.
21467 # Ultrix sh set writes to stderr and can't be redirected directly,
21468 # and sets the high bit in the cache file unless we assign to the vars.
21471 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21473 # `set' does not quote correctly, so add quotes (double-quote
21474 # substitution turns \\\\ into \\, and sed turns \\ into \).
21477 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21480 # `set' quotes correctly as required by POSIX, so do not add quotes.
21482 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21489 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21491 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21493 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21494 if test -w $cache_file; then
21495 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21496 cat confcache >$cache_file
21498 echo "not updating unwritable cache $cache_file"
21503 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21504 # Let make expand exec_prefix.
21505 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21507 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21508 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21509 # trailing colons and then remove the whole line if VPATH becomes empty
21510 # (actually we leave an empty line to preserve line numbers).
21511 if test "x$srcdir" = x.; then
21512 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21513 s/:*\$(srcdir):*/:/;
21514 s/:*\${srcdir}:*/:/;
21516 s/^\([^=]*=[ ]*\):*/\1/;
21522 DEFS=-DHAVE_CONFIG_H
21526 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21527 # 1. Remove the extension, and $U if already installed.
21528 ac_i=`echo "$ac_i" |
21529 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21531 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21532 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21534 LIBOBJS=$ac_libobjs
21536 LTLIBOBJS=$ac_ltlibobjs
21540 : ${CONFIG_STATUS=./config.status}
21541 ac_clean_files_save=$ac_clean_files
21542 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21543 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21544 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21545 cat >$CONFIG_STATUS <<_ACEOF
21547 # Generated by $as_me.
21548 # Run this file to recreate the current configuration.
21549 # Compiler output produced by configure, useful for debugging
21550 # configure, is in config.log if it exists.
21553 ac_cs_recheck=false
21555 SHELL=\${CONFIG_SHELL-$SHELL}
21558 cat >>$CONFIG_STATUS <<\_ACEOF
21559 ## --------------------- ##
21560 ## M4sh Initialization. ##
21561 ## --------------------- ##
21563 # Be Bourne compatible
21564 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21567 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21568 # is contrary to our usage. Disable this feature.
21569 alias -g '${1+"$@"}'='"$@"'
21570 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21573 DUALCASE=1; export DUALCASE # for MKS sh
21575 # Support unset when possible.
21576 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21583 # Work around bugs in pre-3.0 UWIN ksh.
21584 $as_unset ENV MAIL MAILPATH
21591 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21592 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21593 LC_TELEPHONE LC_TIME
21595 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21596 eval $as_var=C; export $as_var
21602 # Required to use basename.
21603 if expr a : '\(a\)' >/dev/null 2>&1; then
21609 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21610 as_basename=basename
21616 # Name of the executable.
21617 as_me=`$as_basename "$0" ||
21618 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21619 X"$0" : 'X\(//\)$' \| \
21620 X"$0" : 'X\(/\)$' \| \
21621 . : '\(.\)' 2>/dev/null ||
21623 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21624 /^X\/\(\/\/\)$/{ s//\1/; q; }
21625 /^X\/\(\/\).*/{ s//\1/; q; }
21629 # PATH needs CR, and LINENO needs CR and PATH.
21630 # Avoid depending upon Character Ranges.
21631 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21632 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21633 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21634 as_cr_digits='0123456789'
21635 as_cr_alnum=$as_cr_Letters$as_cr_digits
21637 # The user is always right.
21638 if test "${PATH_SEPARATOR+set}" != set; then
21639 echo "#! /bin/sh" >conf$$.sh
21640 echo "exit 0" >>conf$$.sh
21642 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21651 as_lineno_1=$LINENO
21652 as_lineno_2=$LINENO
21653 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21654 test "x$as_lineno_1" != "x$as_lineno_2" &&
21655 test "x$as_lineno_3" = "x$as_lineno_2" || {
21656 # Find who we are. Look in the path if we contain no path at all
21659 *[\\/]* ) as_myself=$0 ;;
21660 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21661 for as_dir in $PATH
21664 test -z "$as_dir" && as_dir=.
21665 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21670 # We did not find ourselves, most probably we were run as `sh COMMAND'
21671 # in which case we are not to be found in the path.
21672 if test "x$as_myself" = x; then
21675 if test ! -f "$as_myself"; then
21676 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21677 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21678 { (exit 1); exit 1; }; }
21680 case $CONFIG_SHELL in
21682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21683 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21686 test -z "$as_dir" && as_dir=.
21687 for as_base in sh bash ksh sh5; do
21690 if ("$as_dir/$as_base" -c '
21691 as_lineno_1=$LINENO
21692 as_lineno_2=$LINENO
21693 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21694 test "x$as_lineno_1" != "x$as_lineno_2" &&
21695 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21696 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21697 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21698 CONFIG_SHELL=$as_dir/$as_base
21699 export CONFIG_SHELL
21700 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21708 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21709 # uniformly replaced by the line number. The first 'sed' inserts a
21710 # line-number line before each line; the second 'sed' does the real
21711 # work. The second script uses 'N' to pair each line-number line
21712 # with the numbered line, and appends trailing '-' during
21713 # substitution so that $LINENO is not a special case at line end.
21714 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21715 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21716 sed '=' <$as_myself |
21721 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21724 s,^['$as_cr_digits']*\n,,
21725 ' >$as_me.lineno &&
21726 chmod +x $as_me.lineno ||
21727 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21728 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21729 { (exit 1); exit 1; }; }
21731 # Don't try to exec as it changes $[0], causing all sort of problems
21732 # (the dirname of $[0] is not the place where we might find the
21733 # original and so on. Autoconf is especially sensible to this).
21735 # Exit status is that of the last command.
21740 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21741 *c*,-n*) ECHO_N= ECHO_C='
21743 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21744 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21747 if expr a : '\(a\)' >/dev/null 2>&1; then
21753 rm -f conf$$ conf$$.exe conf$$.file
21755 if ln -s conf$$.file conf$$ 2>/dev/null; then
21756 # We could just check for DJGPP; but this test a) works b) is more generic
21757 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21758 if test -f conf$$.exe; then
21759 # Don't use ln at all; we don't have any links
21764 elif ln conf$$.file conf$$ 2>/dev/null; then
21769 rm -f conf$$ conf$$.exe conf$$.file
21771 if mkdir -p . 2>/dev/null; then
21774 test -d ./-p && rmdir ./-p
21778 as_executable_p="test -f"
21780 # Sed expression to map a string onto a valid CPP name.
21781 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21783 # Sed expression to map a string onto a valid variable name.
21784 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21788 # We need space, tab and new line, in precisely that order.
21798 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21799 # report actual input values of CONFIG_FILES etc. instead of their
21800 # values after options handling. Logging --version etc. is OK.
21804 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21805 ## Running $as_me. ##
21810 This file was extended by $as_me, which was
21811 generated by GNU Autoconf 2.59. Invocation command line was
21813 CONFIG_FILES = $CONFIG_FILES
21814 CONFIG_HEADERS = $CONFIG_HEADERS
21815 CONFIG_LINKS = $CONFIG_LINKS
21816 CONFIG_COMMANDS = $CONFIG_COMMANDS
21820 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
21824 # Files that config.status was made for.
21825 if test -n "$ac_config_files"; then
21826 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
21829 if test -n "$ac_config_headers"; then
21830 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
21833 if test -n "$ac_config_links"; then
21834 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
21837 if test -n "$ac_config_commands"; then
21838 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
21841 cat >>$CONFIG_STATUS <<\_ACEOF
21844 \`$as_me' instantiates files from templates according to the
21845 current configuration.
21847 Usage: $0 [OPTIONS] [FILE]...
21849 -h, --help print this help, then exit
21850 -V, --version print version number, then exit
21851 -q, --quiet do not print progress messages
21852 -d, --debug don't remove temporary files
21853 --recheck update $as_me by reconfiguring in the same conditions
21854 --file=FILE[:TEMPLATE]
21855 instantiate the configuration file FILE
21856 --header=FILE[:TEMPLATE]
21857 instantiate the configuration header FILE
21859 Configuration files:
21862 Configuration headers:
21865 Configuration commands:
21868 Report bugs to <bug-autoconf@gnu.org>."
21871 cat >>$CONFIG_STATUS <<_ACEOF
21874 configured by $0, generated by GNU Autoconf 2.59,
21875 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21877 Copyright (C) 2003 Free Software Foundation, Inc.
21878 This config.status script is free software; the Free Software Foundation
21879 gives unlimited permission to copy, distribute and modify it."
21884 cat >>$CONFIG_STATUS <<\_ACEOF
21885 # If no file are specified by the user, then we need to provide default
21886 # value. By we need to know if files were specified by the user.
21892 ac_option=`expr "x$1" : 'x\([^=]*\)='`
21893 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21901 *) # This is not an option, so the user has probably given explicit
21904 ac_need_defaults=false;;
21908 # Handling of the options.
21910 cat >>$CONFIG_STATUS <<\_ACEOF
21911 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21913 --version | --vers* | -V )
21914 echo "$ac_cs_version"; exit 0 ;;
21916 # Conflict between --help and --header
21917 { { echo "$as_me:$LINENO: error: ambiguous option: $1
21918 Try \`$0 --help' for more information." >&5
21919 echo "$as_me: error: ambiguous option: $1
21920 Try \`$0 --help' for more information." >&2;}
21921 { (exit 1); exit 1; }; };;
21922 --help | --hel | -h )
21923 echo "$ac_cs_usage"; exit 0 ;;
21924 --debug | --d* | -d )
21926 --file | --fil | --fi | --f )
21928 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21929 ac_need_defaults=false;;
21930 --header | --heade | --head | --hea )
21932 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21933 ac_need_defaults=false;;
21934 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21935 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21938 # This is an error.
21939 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21940 Try \`$0 --help' for more information." >&5
21941 echo "$as_me: error: unrecognized option: $1
21942 Try \`$0 --help' for more information." >&2;}
21943 { (exit 1); exit 1; }; } ;;
21945 *) ac_config_targets="$ac_config_targets $1" ;;
21951 ac_configure_extra_args=
21953 if $ac_cs_silent; then
21955 ac_configure_extra_args="$ac_configure_extra_args --silent"
21959 cat >>$CONFIG_STATUS <<_ACEOF
21960 if \$ac_cs_recheck; then
21961 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21962 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21971 cat >>$CONFIG_STATUS <<\_ACEOF
21972 for ac_config_target in $ac_config_targets
21974 case "$ac_config_target" in
21975 # Handling of arguments.
21976 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
21977 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21978 "rescue/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/Makefile" ;;
21979 "rescue/linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/Makefile" ;;
21980 "rescue/linux/floppy/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/floppy/Makefile" ;;
21981 "rescue/linux/cdrom/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/Makefile" ;;
21982 "rescue/linux/cdrom/bacula/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/linux/cdrom/bacula/Makefile" ;;
21983 "rescue/freebsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/freebsd/Makefile" ;;
21984 "rescue/solaris/Makefile" ) CONFIG_FILES="$CONFIG_FILES rescue/solaris/Makefile" ;;
21985 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
21986 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
21987 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
21988 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
21989 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
21990 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
21991 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
21992 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
21993 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
21994 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
21995 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
21996 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
21997 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
21998 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
21999 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
22000 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
22001 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
22002 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
22003 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
22004 "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
22005 "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
22006 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
22007 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
22008 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
22009 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22010 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22011 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
22012 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
22013 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
22014 "src/gnome-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/Makefile" ;;
22015 "src/gnome-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome-console/gnome-console.conf" ;;
22016 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
22017 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
22018 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
22019 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
22020 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
22021 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
22022 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
22023 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
22024 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
22025 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
22026 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
22027 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
22028 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
22029 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
22030 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
22031 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
22032 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
22033 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
22034 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
22035 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
22036 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
22037 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
22038 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
22039 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
22040 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
22041 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
22042 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
22043 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
22044 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
22045 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
22046 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
22047 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
22048 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
22049 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
22050 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
22051 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
22052 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
22053 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
22054 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
22055 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
22056 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
22057 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
22058 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
22059 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
22060 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
22061 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
22062 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
22063 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
22064 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
22065 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
22066 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
22067 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
22068 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
22069 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
22070 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
22071 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
22072 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
22073 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
22074 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
22075 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
22076 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
22077 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
22078 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
22079 "src/bimagemgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/Makefile" ;;
22080 "src/bimagemgr/bacula-bimagemgr.spec" ) CONFIG_FILES="$CONFIG_FILES src/bimagemgr/bacula-bimagemgr.spec" ;;
22081 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
22082 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22083 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
22084 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22085 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22086 { (exit 1); exit 1; }; };;
22090 # If the user did not use the arguments to specify the items to instantiate,
22091 # then the envvar interface is used. Set only those that are not.
22092 # We use the long form for the default assignment because of an extremely
22093 # bizarre bug on SunOS 4.1.3.
22094 if $ac_need_defaults; then
22095 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22096 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22097 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22100 # Have a temporary directory for convenience. Make it in the build tree
22101 # simply because there is no reason to put it here, and in addition,
22102 # creating and moving files from /tmp can sometimes cause problems.
22103 # Create a temporary directory, and hook for its removal unless debugging.
22106 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22107 trap '{ (exit 1); exit 1; }' 1 2 13 15
22110 # Create a (secure) tmp directory for tmp files.
22113 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22114 test -n "$tmp" && test -d "$tmp"
22117 tmp=./confstat$$-$RANDOM
22118 (umask 077 && mkdir $tmp)
22121 echo "$me: cannot create a temporary directory in ." >&2
22122 { (exit 1); exit 1; }
22127 cat >>$CONFIG_STATUS <<_ACEOF
22130 # CONFIG_FILES section.
22133 # No need to generate the scripts if there are no CONFIG_FILES.
22134 # This happens for instance when ./config.status config.h
22135 if test -n "\$CONFIG_FILES"; then
22136 # Protect against being on the right side of a sed subst in config.status.
22137 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22138 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22139 s,@SHELL@,$SHELL,;t t
22140 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22141 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22142 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22143 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22144 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22145 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22146 s,@exec_prefix@,$exec_prefix,;t t
22147 s,@prefix@,$prefix,;t t
22148 s,@program_transform_name@,$program_transform_name,;t t
22149 s,@bindir@,$bindir,;t t
22150 s,@sbindir@,$sbindir,;t t
22151 s,@libexecdir@,$libexecdir,;t t
22152 s,@datadir@,$datadir,;t t
22153 s,@sysconfdir@,$sysconfdir,;t t
22154 s,@sharedstatedir@,$sharedstatedir,;t t
22155 s,@localstatedir@,$localstatedir,;t t
22156 s,@libdir@,$libdir,;t t
22157 s,@includedir@,$includedir,;t t
22158 s,@oldincludedir@,$oldincludedir,;t t
22159 s,@infodir@,$infodir,;t t
22160 s,@mandir@,$mandir,;t t
22161 s,@build_alias@,$build_alias,;t t
22162 s,@host_alias@,$host_alias,;t t
22163 s,@target_alias@,$target_alias,;t t
22164 s,@DEFS@,$DEFS,;t t
22165 s,@ECHO_C@,$ECHO_C,;t t
22166 s,@ECHO_N@,$ECHO_N,;t t
22167 s,@ECHO_T@,$ECHO_T,;t t
22168 s,@LIBS@,$LIBS,;t t
22169 s,@BUILD_DIR@,$BUILD_DIR,;t t
22170 s,@TRUEPRG@,$TRUEPRG,;t t
22171 s,@FALSEPRG@,$FALSEPRG,;t t
22172 s,@VERSION@,$VERSION,;t t
22173 s,@DATE@,$DATE,;t t
22174 s,@LSMDATE@,$LSMDATE,;t t
22176 s,@CFLAGS@,$CFLAGS,;t t
22177 s,@LDFLAGS@,$LDFLAGS,;t t
22178 s,@CPPFLAGS@,$CPPFLAGS,;t t
22179 s,@ac_ct_CC@,$ac_ct_CC,;t t
22180 s,@EXEEXT@,$EXEEXT,;t t
22181 s,@OBJEXT@,$OBJEXT,;t t
22183 s,@CXXFLAGS@,$CXXFLAGS,;t t
22184 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22186 s,@EGREP@,$EGREP,;t t
22187 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22188 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22189 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22190 s,@RANLIB@,$RANLIB,;t t
22191 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22196 s,@ECHO@,$ECHO,;t t
22200 s,@OPENSSL@,$OPENSSL,;t t
22202 s,@MKISOFS@,$MKISOFS,;t t
22203 s,@PYTHON@,$PYTHON,;t t
22204 s,@GROWISOFS@,$GROWISOFS,;t t
22205 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
22206 s,@PKGCONFIG@,$PKGCONFIG,;t t
22207 s,@WXCONFIG@,$WXCONFIG,;t t
22208 s,@CDRECORD@,$CDRECORD,;t t
22209 s,@PIDOF@,$PIDOF,;t t
22211 s,@ARFLAGS@,$ARFLAGS,;t t
22212 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
22213 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
22214 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
22215 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22216 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
22217 s,@build@,$build,;t t
22218 s,@build_cpu@,$build_cpu,;t t
22219 s,@build_vendor@,$build_vendor,;t t
22220 s,@build_os@,$build_os,;t t
22221 s,@host@,$host,;t t
22222 s,@host_cpu@,$host_cpu,;t t
22223 s,@host_vendor@,$host_vendor,;t t
22224 s,@host_os@,$host_os,;t t
22225 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22226 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22227 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22228 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22229 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22230 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22231 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22232 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22233 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22234 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22235 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22236 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22237 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22238 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22239 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22240 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22241 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22242 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22243 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22244 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22245 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22246 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22247 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22248 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22249 s,@INSIDE_GNOME_COMMON_TRUE@,$INSIDE_GNOME_COMMON_TRUE,;t t
22250 s,@INSIDE_GNOME_COMMON_FALSE@,$INSIDE_GNOME_COMMON_FALSE,;t t
22251 s,@MSGFMT@,$MSGFMT,;t t
22252 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22253 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22254 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22255 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22256 s,@GNOMEGNORBA_LIBS@,$GNOMEGNORBA_LIBS,;t t
22257 s,@GTKXMHTML_LIBS@,$GTKXMHTML_LIBS,;t t
22258 s,@ZVT_LIBS@,$ZVT_LIBS,;t t
22259 s,@GNOME_CONFIG@,$GNOME_CONFIG,;t t
22260 s,@ORBIT_CONFIG@,$ORBIT_CONFIG,;t t
22261 s,@ORBIT_IDL@,$ORBIT_IDL,;t t
22262 s,@HAVE_ORBIT_TRUE@,$HAVE_ORBIT_TRUE,;t t
22263 s,@HAVE_ORBIT_FALSE@,$HAVE_ORBIT_FALSE,;t t
22264 s,@ORBIT_CFLAGS@,$ORBIT_CFLAGS,;t t
22265 s,@ORBIT_LIBS@,$ORBIT_LIBS,;t t
22266 s,@HAVE_GNORBA_TRUE@,$HAVE_GNORBA_TRUE,;t t
22267 s,@HAVE_GNORBA_FALSE@,$HAVE_GNORBA_FALSE,;t t
22268 s,@GNORBA_CFLAGS@,$GNORBA_CFLAGS,;t t
22269 s,@GNORBA_LIBS@,$GNORBA_LIBS,;t t
22270 s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
22271 s,@GNOME_DOCKLETS_LIBS@,$GNOME_DOCKLETS_LIBS,;t t
22272 s,@GNOME_CAPPLET_LIBS@,$GNOME_CAPPLET_LIBS,;t t
22273 s,@GNOME_DIR@,$GNOME_DIR,;t t
22274 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22275 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22276 s,@WX_DIR@,$WX_DIR,;t t
22277 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22278 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22279 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22280 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22281 s,@STATIC_FD@,$STATIC_FD,;t t
22282 s,@STATIC_SD@,$STATIC_SD,;t t
22283 s,@STATIC_DIR@,$STATIC_DIR,;t t
22284 s,@STATIC_CONS@,$STATIC_CONS,;t t
22285 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22286 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22287 s,@ALL_DIRS@,$ALL_DIRS,;t t
22288 s,@CONS_INC@,$CONS_INC,;t t
22289 s,@CONS_OBJ@,$CONS_OBJ,;t t
22290 s,@CONS_SRC@,$CONS_SRC,;t t
22291 s,@CONS_LIBS@,$CONS_LIBS,;t t
22292 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22293 s,@READLINE_SRC@,$READLINE_SRC,;t t
22294 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22295 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22296 s,@CDSTL@,$CDSTL,;t t
22297 s,@working_dir@,$working_dir,;t t
22298 s,@scriptdir@,$scriptdir,;t t
22299 s,@dump_email@,$dump_email,;t t
22300 s,@job_email@,$job_email,;t t
22301 s,@smtp_host@,$smtp_host,;t t
22302 s,@piddir@,$piddir,;t t
22303 s,@subsysdir@,$subsysdir,;t t
22304 s,@baseport@,$baseport,;t t
22305 s,@dir_port@,$dir_port,;t t
22306 s,@fd_port@,$fd_port,;t t
22307 s,@sd_port@,$sd_port,;t t
22308 s,@dir_password@,$dir_password,;t t
22309 s,@fd_password@,$fd_password,;t t
22310 s,@sd_password@,$sd_password,;t t
22311 s,@mon_dir_password@,$mon_dir_password,;t t
22312 s,@mon_fd_password@,$mon_fd_password,;t t
22313 s,@mon_sd_password@,$mon_sd_password,;t t
22314 s,@bimagemgr_cgidir@,$bimagemgr_cgidir,;t t
22315 s,@bimagemgr_docdir@,$bimagemgr_docdir,;t t
22316 s,@bimagemgr_binowner@,$bimagemgr_binowner,;t t
22317 s,@bimagemgr_bingroup@,$bimagemgr_bingroup,;t t
22318 s,@bimagemgr_dataowner@,$bimagemgr_dataowner,;t t
22319 s,@bimagemgr_datagroup@,$bimagemgr_datagroup,;t t
22320 s,@dir_user@,$dir_user,;t t
22321 s,@dir_group@,$dir_group,;t t
22322 s,@sd_user@,$sd_user,;t t
22323 s,@sd_group@,$sd_group,;t t
22324 s,@fd_user@,$fd_user,;t t
22325 s,@fd_group@,$fd_group,;t t
22326 s,@SBINPERM@,$SBINPERM,;t t
22327 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22328 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22329 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22330 s,@cats@,$cats,;t t
22331 s,@DB_NAME@,$DB_NAME,;t t
22332 s,@GETCONF@,$GETCONF,;t t
22333 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22334 s,@X_CFLAGS@,$X_CFLAGS,;t t
22335 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22336 s,@X_LIBS@,$X_LIBS,;t t
22337 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22338 s,@LIBOBJS@,$LIBOBJS,;t t
22339 s,@ALLOCA@,$ALLOCA,;t t
22340 s,@FDLIBS@,$FDLIBS,;t t
22341 s,@DEBUG@,$DEBUG,;t t
22342 s,@DINCLUDE@,$DINCLUDE,;t t
22343 s,@DLIB@,$DLIB,;t t
22344 s,@DB_LIBS@,$DB_LIBS,;t t
22345 s,@WCFLAGS@,$WCFLAGS,;t t
22346 s,@WLDFLAGS@,$WLDFLAGS,;t t
22347 s,@OBJLIST@,$OBJLIST,;t t
22348 s,@hostname@,$hostname,;t t
22349 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22350 s,@PSCMD@,$PSCMD,;t t
22351 s,@WIN32@,$WIN32,;t t
22352 s,@MACOSX@,$MACOSX,;t t
22353 s,@DISTNAME@,$DISTNAME,;t t
22354 s,@DISTVER@,$DISTVER,;t t
22355 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22356 /@MCOMMON@/r $MCOMMON
22362 cat >>$CONFIG_STATUS <<\_ACEOF
22363 # Split the substitutions into bite-sized pieces for seds with
22364 # small command number limits, like on Digital OSF/1 and HP-UX.
22365 ac_max_sed_lines=48
22366 ac_sed_frag=1 # Number of current file.
22367 ac_beg=1 # First line for current file.
22368 ac_end=$ac_max_sed_lines # Line after last line for current file.
22371 while $ac_more_lines; do
22372 if test $ac_beg -gt 1; then
22373 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22375 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22377 if test ! -s $tmp/subs.frag; then
22378 ac_more_lines=false
22380 # The purpose of the label and of the branching condition is to
22381 # speed up the sed processing (if there are no `@' at all, there
22382 # is no need to browse any of the substitutions).
22383 # These are the two extra sed commands mentioned above.
22385 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22386 if test -z "$ac_sed_cmds"; then
22387 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22389 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22391 ac_sed_frag=`expr $ac_sed_frag + 1`
22393 ac_end=`expr $ac_end + $ac_max_sed_lines`
22396 if test -z "$ac_sed_cmds"; then
22399 fi # test -n "$CONFIG_FILES"
22402 cat >>$CONFIG_STATUS <<\_ACEOF
22403 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22404 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22406 - | *:- | *:-:* ) # input from stdin
22408 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22409 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22410 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22411 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22412 * ) ac_file_in=$ac_file.in ;;
22415 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22416 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22417 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22418 X"$ac_file" : 'X\(//\)[^/]' \| \
22419 X"$ac_file" : 'X\(//\)$' \| \
22420 X"$ac_file" : 'X\(/\)' \| \
22421 . : '\(.\)' 2>/dev/null ||
22423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22424 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22425 /^X\(\/\/\)$/{ s//\1/; q; }
22426 /^X\(\/\).*/{ s//\1/; q; }
22428 { if $as_mkdir_p; then
22433 while test ! -d "$as_dir"; do
22434 as_dirs="$as_dir $as_dirs"
22435 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22436 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22437 X"$as_dir" : 'X\(//\)[^/]' \| \
22438 X"$as_dir" : 'X\(//\)$' \| \
22439 X"$as_dir" : 'X\(/\)' \| \
22440 . : '\(.\)' 2>/dev/null ||
22442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22443 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22444 /^X\(\/\/\)$/{ s//\1/; q; }
22445 /^X\(\/\).*/{ s//\1/; q; }
22448 test ! -n "$as_dirs" || mkdir $as_dirs
22449 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22450 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22451 { (exit 1); exit 1; }; }; }
22455 if test "$ac_dir" != .; then
22456 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22457 # A "../" for each directory in $ac_dir_suffix.
22458 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22460 ac_dir_suffix= ac_top_builddir=
22464 .) # No --srcdir option. We are building in place.
22466 if test -z "$ac_top_builddir"; then
22469 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22471 [\\/]* | ?:[\\/]* ) # Absolute path.
22472 ac_srcdir=$srcdir$ac_dir_suffix;
22473 ac_top_srcdir=$srcdir ;;
22474 *) # Relative path.
22475 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22476 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22479 # Do not use `cd foo && pwd` to compute absolute paths, because
22480 # the directories may not exist.
22482 .) ac_abs_builddir="$ac_dir";;
22485 .) ac_abs_builddir=`pwd`;;
22486 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22487 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22490 case $ac_abs_builddir in
22491 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22493 case ${ac_top_builddir}. in
22494 .) ac_abs_top_builddir=$ac_abs_builddir;;
22495 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22496 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22499 case $ac_abs_builddir in
22500 .) ac_abs_srcdir=$ac_srcdir;;
22503 .) ac_abs_srcdir=$ac_abs_builddir;;
22504 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22505 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22508 case $ac_abs_builddir in
22509 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22511 case $ac_top_srcdir in
22512 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22513 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22514 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22520 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22521 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22524 if test x"$ac_file" != x-; then
22525 { echo "$as_me:$LINENO: creating $ac_file" >&5
22526 echo "$as_me: creating $ac_file" >&6;}
22529 # Let's still pretend it is `configure' which instantiates (i.e., don't
22530 # use $as_me), people would be surprised to read:
22531 # /* config.h. Generated by config.status. */
22532 if test x"$ac_file" = x-; then
22535 configure_input="$ac_file. "
22537 configure_input=$configure_input"Generated from `echo $ac_file_in |
22538 sed 's,.*/,,'` by configure."
22540 # First look for the input files in the build tree, otherwise in the
22542 ac_file_inputs=`IFS=:
22543 for f in $ac_file_in; do
22545 -) echo $tmp/stdin ;;
22547 # Absolute (can't be DOS-style, as IFS=:)
22548 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22549 echo "$as_me: error: cannot find input file: $f" >&2;}
22550 { (exit 1); exit 1; }; }
22553 if test -f "$f"; then
22556 elif test -f "$srcdir/$f"; then
22561 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22562 echo "$as_me: error: cannot find input file: $f" >&2;}
22563 { (exit 1); exit 1; }; }
22566 done` || { (exit 1); exit 1; }
22568 cat >>$CONFIG_STATUS <<_ACEOF
22572 cat >>$CONFIG_STATUS <<\_ACEOF
22574 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22575 s,@configure_input@,$configure_input,;t t
22576 s,@srcdir@,$ac_srcdir,;t t
22577 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22578 s,@top_srcdir@,$ac_top_srcdir,;t t
22579 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22580 s,@builddir@,$ac_builddir,;t t
22581 s,@abs_builddir@,$ac_abs_builddir,;t t
22582 s,@top_builddir@,$ac_top_builddir,;t t
22583 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22584 s,@INSTALL@,$ac_INSTALL,;t t
22585 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22587 if test x"$ac_file" != x-; then
22588 mv $tmp/out $ac_file
22596 cat >>$CONFIG_STATUS <<\_ACEOF
22599 # CONFIG_HEADER section.
22602 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22603 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22605 # ac_d sets the value in "#define NAME VALUE" lines.
22606 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22607 ac_dB='[ ].*$,\1#\2'
22610 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22611 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22612 ac_uB='$,\1#\2define\3'
22616 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22617 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22619 - | *:- | *:-:* ) # input from stdin
22621 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22622 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22623 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22624 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22625 * ) ac_file_in=$ac_file.in ;;
22628 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22629 echo "$as_me: creating $ac_file" >&6;}
22631 # First look for the input files in the build tree, otherwise in the
22633 ac_file_inputs=`IFS=:
22634 for f in $ac_file_in; do
22636 -) echo $tmp/stdin ;;
22638 # Absolute (can't be DOS-style, as IFS=:)
22639 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22640 echo "$as_me: error: cannot find input file: $f" >&2;}
22641 { (exit 1); exit 1; }; }
22642 # Do quote $f, to prevent DOS paths from being IFS'd.
22645 if test -f "$f"; then
22648 elif test -f "$srcdir/$f"; then
22653 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22654 echo "$as_me: error: cannot find input file: $f" >&2;}
22655 { (exit 1); exit 1; }; }
22658 done` || { (exit 1); exit 1; }
22659 # Remove the trailing spaces.
22660 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22664 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22665 # `conftest.undefs', that substitutes the proper values into
22666 # config.h.in to produce config.h. The first handles `#define'
22667 # templates, and the second `#undef' templates.
22668 # And first: Protect against being on the right side of a sed subst in
22669 # config.status. Protect against being in an unquoted here document
22670 # in config.status.
22671 rm -f conftest.defines conftest.undefs
22672 # Using a here document instead of a string reduces the quoting nightmare.
22673 # Putting comments in sed scripts is not portable.
22675 # `end' is used to avoid that the second main sed command (meant for
22676 # 0-ary CPP macros) applies to n-ary macro definitions.
22677 # See the Autoconf documentation for `clear'.
22678 cat >confdef2sed.sed <<\_ACEOF
22683 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22685 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22688 # If some macros were called several times there might be several times
22689 # the same #defines, which is useless. Nevertheless, we may not want to
22690 # sort them, since we want the *last* AC-DEFINE to be honored.
22691 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22692 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22693 rm -f confdef2sed.sed
22695 # This sed command replaces #undef with comments. This is necessary, for
22696 # example, in the case of _POSIX_SOURCE, which is predefined and required
22697 # on some systems where configure will not decide to define it.
22698 cat >>conftest.undefs <<\_ACEOF
22699 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22702 # Break up conftest.defines because some shells have a limit on the size
22703 # of here documents, and old seds have small limits too (100 cmds).
22704 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22705 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22706 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22707 echo ' :' >>$CONFIG_STATUS
22708 rm -f conftest.tail
22709 while grep . conftest.defines >/dev/null
22711 # Write a limited-size here document to $tmp/defines.sed.
22712 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22713 # Speed up: don't consider the non `#define' lines.
22714 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22715 # Work around the forget-to-reset-the-flag bug.
22716 echo 't clr' >>$CONFIG_STATUS
22717 echo ': clr' >>$CONFIG_STATUS
22718 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22720 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22722 mv $tmp/out $tmp/in
22724 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22725 rm -f conftest.defines
22726 mv conftest.tail conftest.defines
22728 rm -f conftest.defines
22729 echo ' fi # grep' >>$CONFIG_STATUS
22730 echo >>$CONFIG_STATUS
22732 # Break up conftest.undefs because some shells have a limit on the size
22733 # of here documents, and old seds have small limits too (100 cmds).
22734 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22735 rm -f conftest.tail
22736 while grep . conftest.undefs >/dev/null
22738 # Write a limited-size here document to $tmp/undefs.sed.
22739 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22740 # Speed up: don't consider the non `#undef'
22741 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22742 # Work around the forget-to-reset-the-flag bug.
22743 echo 't clr' >>$CONFIG_STATUS
22744 echo ': clr' >>$CONFIG_STATUS
22745 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22747 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22749 mv $tmp/out $tmp/in
22751 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22752 rm -f conftest.undefs
22753 mv conftest.tail conftest.undefs
22755 rm -f conftest.undefs
22757 cat >>$CONFIG_STATUS <<\_ACEOF
22758 # Let's still pretend it is `configure' which instantiates (i.e., don't
22759 # use $as_me), people would be surprised to read:
22760 # /* config.h. Generated by config.status. */
22761 if test x"$ac_file" = x-; then
22762 echo "/* Generated by configure. */" >$tmp/config.h
22764 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22766 cat $tmp/in >>$tmp/config.h
22768 if test x"$ac_file" != x-; then
22769 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22770 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22771 echo "$as_me: $ac_file is unchanged" >&6;}
22773 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22774 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22775 X"$ac_file" : 'X\(//\)[^/]' \| \
22776 X"$ac_file" : 'X\(//\)$' \| \
22777 X"$ac_file" : 'X\(/\)' \| \
22778 . : '\(.\)' 2>/dev/null ||
22780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22781 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22782 /^X\(\/\/\)$/{ s//\1/; q; }
22783 /^X\(\/\).*/{ s//\1/; q; }
22785 { if $as_mkdir_p; then
22790 while test ! -d "$as_dir"; do
22791 as_dirs="$as_dir $as_dirs"
22792 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22793 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22794 X"$as_dir" : 'X\(//\)[^/]' \| \
22795 X"$as_dir" : 'X\(//\)$' \| \
22796 X"$as_dir" : 'X\(/\)' \| \
22797 . : '\(.\)' 2>/dev/null ||
22799 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22800 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22801 /^X\(\/\/\)$/{ s//\1/; q; }
22802 /^X\(\/\).*/{ s//\1/; q; }
22805 test ! -n "$as_dirs" || mkdir $as_dirs
22806 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22807 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22808 { (exit 1); exit 1; }; }; }
22811 mv $tmp/config.h $ac_file
22815 rm -f $tmp/config.h
22819 cat >>$CONFIG_STATUS <<\_ACEOF
22822 # CONFIG_COMMANDS section.
22824 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22825 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22826 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22827 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22828 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22829 X"$ac_dest" : 'X\(//\)[^/]' \| \
22830 X"$ac_dest" : 'X\(//\)$' \| \
22831 X"$ac_dest" : 'X\(/\)' \| \
22832 . : '\(.\)' 2>/dev/null ||
22834 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22835 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22836 /^X\(\/\/\)$/{ s//\1/; q; }
22837 /^X\(\/\).*/{ s//\1/; q; }
22839 { if $as_mkdir_p; then
22844 while test ! -d "$as_dir"; do
22845 as_dirs="$as_dir $as_dirs"
22846 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22847 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22848 X"$as_dir" : 'X\(//\)[^/]' \| \
22849 X"$as_dir" : 'X\(//\)$' \| \
22850 X"$as_dir" : '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; }
22859 test ! -n "$as_dirs" || mkdir $as_dirs
22860 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22861 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22862 { (exit 1); exit 1; }; }; }
22866 if test "$ac_dir" != .; then
22867 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22868 # A "../" for each directory in $ac_dir_suffix.
22869 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22871 ac_dir_suffix= ac_top_builddir=
22875 .) # No --srcdir option. We are building in place.
22877 if test -z "$ac_top_builddir"; then
22880 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22882 [\\/]* | ?:[\\/]* ) # Absolute path.
22883 ac_srcdir=$srcdir$ac_dir_suffix;
22884 ac_top_srcdir=$srcdir ;;
22885 *) # Relative path.
22886 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22887 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22890 # Do not use `cd foo && pwd` to compute absolute paths, because
22891 # the directories may not exist.
22893 .) ac_abs_builddir="$ac_dir";;
22896 .) ac_abs_builddir=`pwd`;;
22897 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22898 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22901 case $ac_abs_builddir in
22902 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22904 case ${ac_top_builddir}. in
22905 .) ac_abs_top_builddir=$ac_abs_builddir;;
22906 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22907 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22910 case $ac_abs_builddir in
22911 .) ac_abs_srcdir=$ac_srcdir;;
22914 .) ac_abs_srcdir=$ac_abs_builddir;;
22915 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22916 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22919 case $ac_abs_builddir in
22920 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22922 case $ac_top_srcdir in
22923 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22924 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22925 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22930 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
22931 echo "$as_me: executing $ac_dest commands" >&6;}
22933 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
22939 cat >>$CONFIG_STATUS <<\_ACEOF
22941 { (exit 0); exit 0; }
22943 chmod +x $CONFIG_STATUS
22944 ac_clean_files=$ac_clean_files_save
22947 # configure is writing to config.log, and then calls config.status.
22948 # config.status does its own redirection, appending to config.log.
22949 # Unfortunately, on DOS this fails, as config.log is still kept open
22950 # by configure, so config.status won't be able to write to it; its
22951 # output is simply discarded. So we exec the FD to /dev/null,
22952 # effectively closing config.log, so it can be properly (re)opened and
22953 # appended to by config.status. When coming back to configure, we
22954 # need to make the FD available again.
22955 if test "$no_create" != yes; then
22957 ac_config_status_args=
22958 test "$silent" = yes &&
22959 ac_config_status_args="$ac_config_status_args --quiet"
22961 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22963 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22964 # would make configure fail if this is the last instruction.
22965 $ac_cs_success || { (exit 1); exit 1; }
22970 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
22971 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
22976 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
22977 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
22979 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
22980 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
22982 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
22983 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
22985 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
22986 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
22988 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
22989 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
22991 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
22992 chmod 755 $c/sqlite
22995 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
22996 largefile_support="yes"
23000 # A whole lot of hand springs to get the compiler version.
23001 # This is because gcc changed the output in version 3.0
23003 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23004 if test "x${CCVERSION}" = "x" ; then
23005 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23007 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23008 if test x"${CXXVERSION}" = x ; then
23009 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23012 if test "x${subsysdir}" = "x${sbindir}" ; then
23015 echo "You have set --sbindir and --with-subsys-dir"
23016 echo " both equal to: ${subsysdir} "
23017 echo " This is not permitted. Please reconfigure."
23019 echo "Aborting configuration ..."
23025 if test "x${db_name}" = "xInternal" ; then
23028 echo "You have not specified either --enable-client-only or one of the"
23029 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
23030 echo " This is not permitted. Please reconfigure."
23032 echo "Aborting the configuration ..."
23039 Configuration on `date`:
23041 Host: $host -- ${DISTNAME} ${DISTVER}
23042 Bacula version: ${VERSION} (${DATE})
23043 Source code location: ${srcdir}
23044 Install binaries: ${sbindir}
23045 Install config files: ${sysconfdir}
23046 Scripts directory: ${scriptdir}
23047 Working directory: ${working_dir}
23048 PID directory: ${piddir}
23049 Subsys directory: ${subsysdir}
23050 C Compiler: ${CC} ${CCVERSION}
23051 C++ Compiler: ${CXX} ${CXXVERSION}
23052 Compiler flags: ${WCFLAGS} ${CFLAGS}
23053 Linker flags: ${WLDFLAGS} ${LDFLAGS}
23055 Statically Linked Tools: ${support_static_tools}
23056 Statically Linked FD: ${support_static_fd}
23057 Statically Linked SD: ${support_static_sd}
23058 Statically Linked DIR: ${support_static_dir}
23059 Statically Linked CONS: ${support_static_cons}
23060 Database type: ${db_name}
23061 Database lib: ${DB_LIBS}
23063 Job Output Email: ${job_email}
23064 Traceback Email: ${dump_email}
23065 SMTP Host Address: ${smtp_host}
23067 Director Port: ${dir_port}
23068 File daemon Port: ${fd_port}
23069 Storage daemon Port: ${sd_port}
23071 Director User: ${dir_user}
23072 Director Group: ${dir_group}
23073 Storage Daemon User: ${sd_user}
23074 Storage DaemonGroup: ${sd_group}
23075 File Daemon User: ${fd_user}
23076 File Daemon Group: ${fd_group}
23078 SQL binaries Directory ${SQL_BINDIR}
23080 Large file support: $largefile_support
23081 Bacula conio support: ${got_conio} ${CONS_LIBS}
23082 readline support: ${got_readline} ${PRTREADLINE_SRC}
23083 TCP Wrappers support: ${TCPW_MSG}
23084 ZLIB support: ${have_zlib}
23085 enable-smartalloc: ${support_smartalloc}
23086 enable-gnome: ${support_gnome} ${gnome_version}
23087 enable-wx-console: ${support_wx_console}
23088 enable-tray-monitor: ${support_tray_monitor}
23089 client-only: ${build_client_only}
23090 ACL support: ${have_acl}
23091 Python support: ${support_python} ${PYTHON_LIBS}
23098 # cweb support: ${got_cweb} ${CWEB_SRC}
23099 # gmp support: ${got_gmp} ${GMP_SRC}