2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
138 if ("$as_dir/$as_base" -c '
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 s,^['$as_cr_digits']*\n,,
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
182 # Exit status is that of the last command.
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 if expr a : '\(a\)' >/dev/null 2>&1; then
200 rm -f conf$$ conf$$.exe conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
211 elif ln conf$$.file conf$$ 2>/dev/null; then
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
221 test -d ./-p && rmdir ./-p
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # We need space, tab and new line, in precisely that order.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete. It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
267 # Identity of this package.
274 ac_unique_file="src/version.h"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
279 # include <sys/types.h>
282 # include <sys/stat.h>
293 # if !STDC_HEADERS && HAVE_MEMORY_H
299 # include <strings.h>
302 # include <inttypes.h>
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS BUILD_DIR TRUEPRG FALSEPRG VERSION DATE LSMDATE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA RANLIB ac_ct_RANLIB MV RM CP SED ECHO CMP TBL AR OPENSSL MTX DF MKISOFS PYTHON GROWISOFS DVDRWMEDIAINFO PKGCONFIG WXCONFIG WXFLAGS CDRECORD PIDOF AWK ARFLAGS MAKE_SHELL LOCAL_LIBS LOCAL_CFLAGS LOCAL_LDFLAGS LOCAL_DEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os HAVE_SUN_OS_TRUE HAVE_SUN_OS_FALSE HAVE_OSF1_OS_TRUE HAVE_OSF1_OS_FALSE HAVE_AIX_OS_TRUE HAVE_AIX_OS_FALSE HAVE_HPUX_OS_TRUE HAVE_HPUX_OS_FALSE HAVE_LINUX_OS_TRUE HAVE_LINUX_OS_FALSE HAVE_FREEBSD_OS_TRUE HAVE_FREEBSD_OS_FALSE HAVE_NETBSD_OS_TRUE HAVE_NETBSD_OS_FALSE HAVE_OPENBSD_OS_TRUE HAVE_OPENBSD_OS_FALSE HAVE_BSDI_OS_TRUE HAVE_BSDI_OS_FALSE HAVE_SGI_OS_TRUE HAVE_SGI_OS_FALSE HAVE_IRIX_OS_TRUE HAVE_IRIX_OS_FALSE HAVE_DARWIN_OS_TRUE HAVE_DARWIN_OS_FALSE MSGFMT GNOME_INCLUDEDIR GNOMEUI_LIBS GNOME_LIBDIR GNOME_LIBS GNOME_DIR WXCONS_CPPFLAGS WXCONS_LDFLAGS WX_DIR TRAY_MONITOR_CPPFLAGS TRAY_MONITOR_LDFLAGS TRAY_MONITOR_DIR TTOOL_LDFLAGS STATIC_FD STATIC_SD STATIC_DIR STATIC_CONS STATIC_GNOME_CONS STATIC_WX_CONS ALL_DIRS CONS_INC CONS_OBJ CONS_SRC CONS_LIBS CONS_LDFLAGS READLINE_SRC PYTHON_LIBS PYTHON_INCDIR OPENSSL_LIBS OPENSSL_INC working_dir scriptdir dump_email job_email smtp_host piddir subsysdir baseport dir_port fd_port sd_port dir_password fd_password sd_password mon_dir_password mon_fd_password mon_sd_password dir_user dir_group sd_user sd_group fd_user fd_group SBINPERM SQL_LFLAGS SQL_INCLUDE SQL_BINDIR cats DB_NAME GETCONF ac_ct_GETCONF X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS LIBOBJS ALLOCA FDLIBS DEBUG DINCLUDE DLIB DB_LIBS WCFLAGS WLDFLAGS OBJLIST hostname TAPEDRIVE PSCMD WIN32 MACOSX DISTNAME DISTVER LTLIBOBJS'
313 ac_subst_files='MCOMMON'
315 # Initialize some variables set by options.
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
327 program_transform_name=s,x,x,
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
430 -help | --help | --hel | --he | -h)
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
481 # Obsolete; use --without-fp.
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
560 -site=* | --site=* | --sit=*)
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 -version | --version | --versio | --versi | --vers | -V)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
609 # Obsolete; use --with-x.
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
722 if test ! -r $srcdir/$ac_unique_file; then
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CXX_set=${CXX+set}
770 ac_env_CXX_value=$CXX
771 ac_cv_env_CXX_set=${CXX+set}
772 ac_cv_env_CXX_value=$CXX
773 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774 ac_env_CXXFLAGS_value=$CXXFLAGS
775 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777 ac_env_CPP_set=${CPP+set}
778 ac_env_CPP_value=$CPP
779 ac_cv_env_CPP_set=${CPP+set}
780 ac_cv_env_CPP_value=$CPP
781 ac_env_WXCONFIG_set=${WXCONFIG+set}
782 ac_env_WXCONFIG_value=$WXCONFIG
783 ac_cv_env_WXCONFIG_set=${WXCONFIG+set}
784 ac_cv_env_WXCONFIG_value=$WXCONFIG
785 ac_env_WXFLAGS_set=${WXFLAGS+set}
786 ac_env_WXFLAGS_value=$WXFLAGS
787 ac_cv_env_WXFLAGS_set=${WXFLAGS+set}
788 ac_cv_env_WXFLAGS_value=$WXFLAGS
791 # Report the --help message.
793 if test "$ac_init_help" = "long"; then
794 # Omit some internal or obsolete options to make the list less imposing.
795 # This message is too long to be a string in the A/UX 3.1 sh.
797 \`configure' configures this package to adapt to many kinds of systems.
799 Usage: $0 [OPTION]... [VAR=VALUE]...
801 To assign environment variables (e.g., CC, CFLAGS...), specify them as
802 VAR=VALUE. See below for descriptions of some of the useful variables.
804 Defaults for the options are specified in brackets.
807 -h, --help display this help and exit
808 --help=short display options specific to this package
809 --help=recursive display the short help of all the included packages
810 -V, --version display version information and exit
811 -q, --quiet, --silent do not print \`checking...' messages
812 --cache-file=FILE cache test results in FILE [disabled]
813 -C, --config-cache alias for \`--cache-file=config.cache'
814 -n, --no-create do not create output files
815 --srcdir=DIR find the sources in DIR [configure dir or \`..']
820 Installation directories:
821 --prefix=PREFIX install architecture-independent files in PREFIX
823 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
826 By default, \`make install' will install all the files in
827 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
828 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
829 for instance \`--prefix=\$HOME'.
831 For better control, use the options below.
833 Fine tuning of the installation directories:
834 --bindir=DIR user executables [EPREFIX/bin]
835 --sbindir=DIR system admin executables [EPREFIX/sbin]
836 --libexecdir=DIR program executables [EPREFIX/libexec]
837 --datadir=DIR read-only architecture-independent data [PREFIX/share]
838 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
839 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
840 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
841 --libdir=DIR object code libraries [EPREFIX/lib]
842 --includedir=DIR C header files [PREFIX/include]
843 --oldincludedir=DIR C header files for non-gcc [/usr/include]
844 --infodir=DIR info documentation [PREFIX/info]
845 --mandir=DIR man documentation [PREFIX/man]
851 --x-includes=DIR X include files are in DIR
852 --x-libraries=DIR X library files are in DIR
855 --build=BUILD configure for building on BUILD [guessed]
856 --host=HOST cross-compile to build programs to run on HOST [BUILD]
860 if test -n "$ac_init_help"; then
865 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
866 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
867 --enable-gnome enable build of gnome-console GUI disabled
868 --enable-wx-console enable build of wxWidgets console disabled
869 --enable-tray-monitor enable build of Gnome tray monitor (compatible with KDE) disabled
870 --enable-smartalloc enable smartalloc debugging support disabled
871 --enable-static-tools enable static tape tools disabled
872 --enable-static-fd enable static File daemon disabled
873 --enable-static-sd enable static Storage daemon disabled
874 --enable-static-dir enable static Director disabled
875 --enable-static-cons enable static Console disabled
876 --enable-client-only build client (File daemon) only disabled
877 --disable-conio disable conio support enabled
879 --disable-readline disable readline support disable
881 --disable-largefile omit support for large files
884 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
885 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
886 --with-readline=DIR specify readline library directory
888 --with-python=DIR Include Python support. DIR is the Python base
889 install directory, default is to search through
890 a number of common places for the Python files.
891 --with-tcp-wrappers=DIR enable tcpwrappers support
893 Include OpenSSL support. DIR is the OpenSSL base
894 --with-working-dir=PATH specify path of Bacula working directory
895 --with-scriptdir=PATH specify path of Bacula scripts directory
896 --with-dump-email=EMAIL dump email address
897 --with-job-email=EMAIL job output email address
898 --with-smtp-host=HOST SMTP mail host address
899 --with-pid-dir=PATH specify location of Bacula pid files
900 --with-subsys-dir=PATH specify location of Bacula subsys file
901 --with-baseport=PORT specify base port address for daemons
902 --with-dir-password=PASSWORD specify Director's password
903 --with-fd-password=PASSWORD specify Client's password
904 --with-sd-password=PASSWORD specify Storage daemon's password
905 --with-mon-dir-password=PASSWORD specify Director's password used by the monitor
906 --with-mon-fd-password=PASSWORD specify Client's password used by the monitor
907 --with-mon-sd-password=PASSWORD specify Storage daemon's password used by the monitor
908 --with-dir-user=USER specify user for Director daemon
909 --with-dir-group=GROUP specify group for Director daemon
910 --with-sd-user=USER specify user for Storage daemon
911 --with-sd-group=GROUP specify group for Storage daemon
912 --with-fd-user=USER specify user for File daemon
913 --with-fd-group=GROUP specify group for File daemon
914 --with-sbin-perm=MODE specify permissions for sbin binaries (0754)
915 --with-postgresql=DIR Include PostgreSQL support. DIR is the PostgreSQL
916 base install directory, defaults to /usr/local/pgsql
918 --with-mysql=DIR Include MySQL support. DIR is the MySQL base
919 install directory, default is to search through
920 a number of common places for the MySQL files.
922 --with-embedded-mysql=DIR Include MySQL support. DIR is the MySQL base
923 install directory, default is to search through
924 a number of common places for the MySQL files.
926 --with-sqlite3=DIR Include SQLite3 support. DIR is the SQLite3 base
927 install directory, default is to search through
928 a number of common places for the SQLite3 files.
930 --with-sqlite=DIR Include SQLite support. DIR is the SQLite base
931 install directory, default is to search through
932 a number of common places for the SQLite files.
933 --with-x use the X Window System
935 Some influential environment variables:
936 CC C compiler command
937 CFLAGS C compiler flags
938 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
939 nonstandard directory <lib dir>
940 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
941 headers in a nonstandard directory <include dir>
942 CXX C++ compiler command
943 CXXFLAGS C++ compiler flags
945 WXCONFIG wx-config command. On some systems, you must set it to
946 wx-config-2.6 to use wxWidgets 2.6.
947 WXFLAGS Parameters to pass to wx-config (e.g. --unicode=no).
949 Use these variables to override the choices made by `configure' or to help
950 it to find libraries and programs with nonstandard names/locations.
955 if test "$ac_init_help" = "recursive"; then
956 # If there are subdirs, report their specific --help.
958 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
959 test -d $ac_dir || continue
962 if test "$ac_dir" != .; then
963 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
964 # A "../" for each directory in $ac_dir_suffix.
965 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
967 ac_dir_suffix= ac_top_builddir=
971 .) # No --srcdir option. We are building in place.
973 if test -z "$ac_top_builddir"; then
976 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
978 [\\/]* | ?:[\\/]* ) # Absolute path.
979 ac_srcdir=$srcdir$ac_dir_suffix;
980 ac_top_srcdir=$srcdir ;;
982 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
983 ac_top_srcdir=$ac_top_builddir$srcdir ;;
986 # Do not use `cd foo && pwd` to compute absolute paths, because
987 # the directories may not exist.
989 .) ac_abs_builddir="$ac_dir";;
992 .) ac_abs_builddir=`pwd`;;
993 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
994 *) ac_abs_builddir=`pwd`/"$ac_dir";;
997 case $ac_abs_builddir in
998 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1000 case ${ac_top_builddir}. in
1001 .) ac_abs_top_builddir=$ac_abs_builddir;;
1002 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1003 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1006 case $ac_abs_builddir in
1007 .) ac_abs_srcdir=$ac_srcdir;;
1010 .) ac_abs_srcdir=$ac_abs_builddir;;
1011 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1012 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1015 case $ac_abs_builddir in
1016 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1018 case $ac_top_srcdir in
1019 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1020 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1021 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1026 # Check for guested configure; otherwise get Cygnus style configure.
1027 if test -f $ac_srcdir/configure.gnu; then
1029 $SHELL $ac_srcdir/configure.gnu --help=recursive
1030 elif test -f $ac_srcdir/configure; then
1032 $SHELL $ac_srcdir/configure --help=recursive
1033 elif test -f $ac_srcdir/configure.ac ||
1034 test -f $ac_srcdir/configure.in; then
1036 $ac_configure --help
1038 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1044 test -n "$ac_init_help" && exit 0
1045 if $ac_init_version; then
1048 Copyright (C) 2003 Free Software Foundation, Inc.
1049 This configure script is free software; the Free Software Foundation
1050 gives unlimited permission to copy, distribute and modify it.
1056 This file contains any messages produced by compilers while
1057 running configure, to aid debugging if configure makes a mistake.
1059 It was created by $as_me, which was
1060 generated by GNU Autoconf 2.59. Invocation command line was
1071 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1072 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1073 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1074 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1075 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1077 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1078 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1080 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1081 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1082 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1083 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1084 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1085 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1086 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1094 test -z "$as_dir" && as_dir=.
1095 echo "PATH: $as_dir"
1110 # Keep a trace of the command line.
1111 # Strip out --no-create and --no-recursion so they do not pile up.
1112 # Strip out --silent because we don't want to record it for future runs.
1113 # Also quote any args containing shell meta-characters.
1114 # Make two passes to allow for proper duplicate-argument suppression.
1119 ac_must_keep_next=false
1125 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1127 | -silent | --silent | --silen | --sile | --sil)
1129 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1130 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1133 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1135 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1136 if test $ac_must_keep_next = true; then
1137 ac_must_keep_next=false # Got value, back to normal.
1140 *=* | --config-cache | -C | -disable-* | --disable-* \
1141 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1142 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1143 | -with-* | --with-* | -without-* | --without-* | --x)
1144 case "$ac_configure_args0 " in
1145 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1148 -* ) ac_must_keep_next=true ;;
1151 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1152 # Get rid of the leading space.
1158 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1159 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1161 # When interrupted or exit'd, cleanup temporary files, and complete
1162 # config.log. We remove comments because anyway the quotes in there
1163 # would cause problems or look ugly.
1164 # WARNING: Be sure not to use single quotes in there, as some shells,
1165 # such as our DU 5.0 friend, will then `close' the trap.
1166 trap 'exit_status=$?
1167 # Save into config.log some information that might help in debugging.
1172 ## ---------------- ##
1173 ## Cache variables. ##
1174 ## ---------------- ##
1177 # The following way of writing the cache mishandles newlines in values,
1180 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1183 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1188 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1195 ## ----------------- ##
1196 ## Output variables. ##
1197 ## ----------------- ##
1200 for ac_var in $ac_subst_vars
1202 eval ac_val=$`echo $ac_var`
1203 echo "$ac_var='"'"'$ac_val'"'"'"
1207 if test -n "$ac_subst_files"; then
1214 for ac_var in $ac_subst_files
1216 eval ac_val=$`echo $ac_var`
1217 echo "$ac_var='"'"'$ac_val'"'"'"
1222 if test -s confdefs.h; then
1229 sed "/^$/d" confdefs.h | sort
1232 test "$ac_signal" != 0 &&
1233 echo "$as_me: caught signal $ac_signal"
1234 echo "$as_me: exit $exit_status"
1236 rm -f core *.core &&
1237 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1240 for ac_signal in 1 2 13 15; do
1241 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1245 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1246 rm -rf conftest* confdefs.h
1247 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1250 # Predefined preprocessor variables.
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_NAME "$PACKAGE_NAME"
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1262 cat >>confdefs.h <<_ACEOF
1263 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1267 cat >>confdefs.h <<_ACEOF
1268 #define PACKAGE_STRING "$PACKAGE_STRING"
1272 cat >>confdefs.h <<_ACEOF
1273 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1277 # Let the site file select an alternate cache file if it wants to.
1278 # Prefer explicitly selected file to automatically selected ones.
1279 if test -z "$CONFIG_SITE"; then
1280 if test "x$prefix" != xNONE; then
1281 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1283 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1286 for ac_site_file in $CONFIG_SITE; do
1287 if test -r "$ac_site_file"; then
1288 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1289 echo "$as_me: loading site script $ac_site_file" >&6;}
1290 sed 's/^/| /' "$ac_site_file" >&5
1295 if test -r "$cache_file"; then
1296 # Some versions of bash will fail to source /dev/null (special
1297 # files actually), so we avoid doing that.
1298 if test -f "$cache_file"; then
1299 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1300 echo "$as_me: loading cache $cache_file" >&6;}
1302 [\\/]* | ?:[\\/]* ) . $cache_file;;
1303 *) . ./$cache_file;;
1307 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1308 echo "$as_me: creating cache $cache_file" >&6;}
1312 # Check that the precious variables saved in the cache have kept the same
1314 ac_cache_corrupted=false
1315 for ac_var in `(set) 2>&1 |
1316 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1317 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1318 eval ac_new_set=\$ac_env_${ac_var}_set
1319 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1320 eval ac_new_val="\$ac_env_${ac_var}_value"
1321 case $ac_old_set,$ac_new_set in
1323 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1324 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1325 ac_cache_corrupted=: ;;
1327 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1328 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1329 ac_cache_corrupted=: ;;
1332 if test "x$ac_old_val" != "x$ac_new_val"; then
1333 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1334 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1335 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1336 echo "$as_me: former value: $ac_old_val" >&2;}
1337 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1338 echo "$as_me: current value: $ac_new_val" >&2;}
1339 ac_cache_corrupted=:
1342 # Pass precious variables to config.status.
1343 if test "$ac_new_set" = set; then
1345 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1346 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1347 *) ac_arg=$ac_var=$ac_new_val ;;
1349 case " $ac_configure_args " in
1350 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1351 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1355 if $ac_cache_corrupted; then
1356 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1357 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1358 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1359 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1360 { (exit 1); exit 1; }; }
1364 ac_cpp='$CPP $CPPFLAGS'
1365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1393 for ac_dir in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf; do
1394 if test -f $ac_dir/install-sh; then
1396 ac_install_sh="$ac_aux_dir/install-sh -c"
1398 elif test -f $ac_dir/install.sh; then
1400 ac_install_sh="$ac_aux_dir/install.sh -c"
1402 elif test -f $ac_dir/shtool; then
1404 ac_install_sh="$ac_aux_dir/shtool install -c"
1408 if test -z "$ac_aux_dir"; then
1409 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&5
1410 echo "$as_me: error: cannot find install-sh or install.sh in ${BUILD_DIR}/autoconf $srcdir/${BUILD_DIR}/autoconf" >&2;}
1411 { (exit 1); exit 1; }; }
1413 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1414 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1415 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1417 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
1425 # Extract the first word of "$ac_prog", so it can be a program name with args.
1426 set dummy $ac_prog; ac_word=$2
1427 echo "$as_me:$LINENO: checking for $ac_word" >&5
1428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1429 if test "${ac_cv_path_TRUEPRG+set}" = set; then
1430 echo $ECHO_N "(cached) $ECHO_C" >&6
1434 ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
1437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1441 test -z "$as_dir" && as_dir=.
1442 for ac_exec_ext in '' $ac_executable_extensions; do
1443 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1444 ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
1445 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1454 TRUEPRG=$ac_cv_path_TRUEPRG
1456 if test -n "$TRUEPRG"; then
1457 echo "$as_me:$LINENO: result: $TRUEPRG" >&5
1458 echo "${ECHO_T}$TRUEPRG" >&6
1460 echo "$as_me:$LINENO: result: no" >&5
1461 echo "${ECHO_T}no" >&6
1464 test -n "$TRUEPRG" && break
1466 test -n "$TRUEPRG" || TRUEPRG=":"
1468 for ac_prog in false
1470 # Extract the first word of "$ac_prog", so it can be a program name with args.
1471 set dummy $ac_prog; ac_word=$2
1472 echo "$as_me:$LINENO: checking for $ac_word" >&5
1473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1474 if test "${ac_cv_path_FALSEPRG+set}" = set; then
1475 echo $ECHO_N "(cached) $ECHO_C" >&6
1479 ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 test -z "$as_dir" && as_dir=.
1487 for ac_exec_ext in '' $ac_executable_extensions; do
1488 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489 ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
1490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1499 FALSEPRG=$ac_cv_path_FALSEPRG
1501 if test -n "$FALSEPRG"; then
1502 echo "$as_me:$LINENO: result: $FALSEPRG" >&5
1503 echo "${ECHO_T}$FALSEPRG" >&6
1505 echo "$as_me:$LINENO: result: no" >&5
1506 echo "${ECHO_T}no" >&6
1509 test -n "$FALSEPRG" && break
1511 test -n "$FALSEPRG" || FALSEPRG=":"
1516 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1517 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1518 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1519 echo "configuring for bacula $VERSION ($DATE)"
1524 ac_cpp='$CPP $CPPFLAGS'
1525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1528 if test -n "$ac_tool_prefix"; then
1529 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1530 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1531 echo "$as_me:$LINENO: checking for $ac_word" >&5
1532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533 if test "${ac_cv_prog_CC+set}" = set; then
1534 echo $ECHO_N "(cached) $ECHO_C" >&6
1536 if test -n "$CC"; then
1537 ac_cv_prog_CC="$CC" # Let the user override the test.
1539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1543 test -z "$as_dir" && as_dir=.
1544 for ac_exec_ext in '' $ac_executable_extensions; do
1545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1556 if test -n "$CC"; then
1557 echo "$as_me:$LINENO: result: $CC" >&5
1558 echo "${ECHO_T}$CC" >&6
1560 echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1565 if test -z "$ac_cv_prog_CC"; then
1567 # Extract the first word of "gcc", so it can be a program name with args.
1568 set dummy gcc; ac_word=$2
1569 echo "$as_me:$LINENO: checking for $ac_word" >&5
1570 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
1574 if test -n "$ac_ct_CC"; then
1575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581 test -z "$as_dir" && as_dir=.
1582 for ac_exec_ext in '' $ac_executable_extensions; do
1583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584 ac_cv_prog_ac_ct_CC="gcc"
1585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1593 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1594 if test -n "$ac_ct_CC"; then
1595 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1596 echo "${ECHO_T}$ac_ct_CC" >&6
1598 echo "$as_me:$LINENO: result: no" >&5
1599 echo "${ECHO_T}no" >&6
1607 if test -z "$CC"; then
1608 if test -n "$ac_tool_prefix"; then
1609 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1610 set dummy ${ac_tool_prefix}cc; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_CC+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 if test -n "$CC"; then
1617 ac_cv_prog_CC="$CC" # Let the user override the test.
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623 test -z "$as_dir" && as_dir=.
1624 for ac_exec_ext in '' $ac_executable_extensions; do
1625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626 ac_cv_prog_CC="${ac_tool_prefix}cc"
1627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636 if test -n "$CC"; then
1637 echo "$as_me:$LINENO: result: $CC" >&5
1638 echo "${ECHO_T}$CC" >&6
1640 echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1645 if test -z "$ac_cv_prog_CC"; then
1647 # Extract the first word of "cc", so it can be a program name with args.
1648 set dummy cc; ac_word=$2
1649 echo "$as_me:$LINENO: checking for $ac_word" >&5
1650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1654 if test -n "$ac_ct_CC"; then
1655 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1661 test -z "$as_dir" && as_dir=.
1662 for ac_exec_ext in '' $ac_executable_extensions; do
1663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1664 ac_cv_prog_ac_ct_CC="cc"
1665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1673 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674 if test -n "$ac_ct_CC"; then
1675 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1676 echo "${ECHO_T}$ac_ct_CC" >&6
1678 echo "$as_me:$LINENO: result: no" >&5
1679 echo "${ECHO_T}no" >&6
1688 if test -z "$CC"; then
1689 # Extract the first word of "cc", so it can be a program name with args.
1690 set dummy cc; ac_word=$2
1691 echo "$as_me:$LINENO: checking for $ac_word" >&5
1692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693 if test "${ac_cv_prog_CC+set}" = set; then
1694 echo $ECHO_N "(cached) $ECHO_C" >&6
1696 if test -n "$CC"; then
1697 ac_cv_prog_CC="$CC" # Let the user override the test.
1700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1704 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1708 ac_prog_rejected=yes
1712 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1718 if test $ac_prog_rejected = yes; then
1719 # We found a bogon in the path, so make sure we never use it.
1720 set dummy $ac_cv_prog_CC
1722 if test $# != 0; then
1723 # We chose a different compiler from the bogus one.
1724 # However, it has the same basename, so the bogon will be chosen
1725 # first if we set CC to just the basename; use the full file name.
1727 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1733 if test -n "$CC"; then
1734 echo "$as_me:$LINENO: result: $CC" >&5
1735 echo "${ECHO_T}$CC" >&6
1737 echo "$as_me:$LINENO: result: no" >&5
1738 echo "${ECHO_T}no" >&6
1742 if test -z "$CC"; then
1743 if test -n "$ac_tool_prefix"; then
1746 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1747 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1748 echo "$as_me:$LINENO: checking for $ac_word" >&5
1749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750 if test "${ac_cv_prog_CC+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1753 if test -n "$CC"; then
1754 ac_cv_prog_CC="$CC" # Let the user override the test.
1756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1773 if test -n "$CC"; then
1774 echo "$as_me:$LINENO: result: $CC" >&5
1775 echo "${ECHO_T}$CC" >&6
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1781 test -n "$CC" && break
1784 if test -z "$CC"; then
1788 # Extract the first word of "$ac_prog", so it can be a program name with args.
1789 set dummy $ac_prog; ac_word=$2
1790 echo "$as_me:$LINENO: checking for $ac_word" >&5
1791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1792 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1793 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 if test -n "$ac_ct_CC"; then
1796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1802 test -z "$as_dir" && as_dir=.
1803 for ac_exec_ext in '' $ac_executable_extensions; do
1804 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1805 ac_cv_prog_ac_ct_CC="$ac_prog"
1806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1815 if test -n "$ac_ct_CC"; then
1816 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1817 echo "${ECHO_T}$ac_ct_CC" >&6
1819 echo "$as_me:$LINENO: result: no" >&5
1820 echo "${ECHO_T}no" >&6
1823 test -n "$ac_ct_CC" && break
1832 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1833 See \`config.log' for more details." >&5
1834 echo "$as_me: error: no acceptable C compiler found in \$PATH
1835 See \`config.log' for more details." >&2;}
1836 { (exit 1); exit 1; }; }
1838 # Provide some information about the compiler.
1839 echo "$as_me:$LINENO:" \
1840 "checking for C compiler version" >&5
1841 ac_compiler=`set X $ac_compile; echo $2`
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1843 (eval $ac_compiler --version </dev/null >&5) 2>&5
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1848 (eval $ac_compiler -v </dev/null >&5) 2>&5
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }
1852 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1853 (eval $ac_compiler -V </dev/null >&5) 2>&5
1855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1856 (exit $ac_status); }
1858 cat >conftest.$ac_ext <<_ACEOF
1861 cat confdefs.h >>conftest.$ac_ext
1862 cat >>conftest.$ac_ext <<_ACEOF
1863 /* end confdefs.h. */
1873 ac_clean_files_save=$ac_clean_files
1874 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1875 # Try to create an executable without -o first, disregard a.out.
1876 # It will help us diagnose broken compilers, and finding out an intuition
1878 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1879 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1880 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1881 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1882 (eval $ac_link_default) 2>&5
1884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885 (exit $ac_status); }; then
1886 # Find the output, starting from the most likely. This scheme is
1887 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1890 # Be careful to initialize this variable, since it used to be cached.
1891 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1893 # b.out is created by i960 compilers.
1894 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1896 test -f "$ac_file" || continue
1898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1901 # This is the source file.
1904 # We found the default executable, but exeext='' is most
1908 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1909 # FIXME: I believe we export ac_cv_exeext for Libtool,
1910 # but it would be cool to find out if it's true. Does anybody
1911 # maintain Libtool? --akim.
1919 echo "$as_me: failed program was:" >&5
1920 sed 's/^/| /' conftest.$ac_ext >&5
1922 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&5
1924 echo "$as_me: error: C compiler cannot create executables
1925 See \`config.log' for more details." >&2;}
1926 { (exit 77); exit 77; }; }
1929 ac_exeext=$ac_cv_exeext
1930 echo "$as_me:$LINENO: result: $ac_file" >&5
1931 echo "${ECHO_T}$ac_file" >&6
1933 # Check the compiler produces executables we can run. If not, either
1934 # the compiler is broken, or we cross compile.
1935 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1936 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1937 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1938 # If not cross compiling, check that we can run a simple program.
1939 if test "$cross_compiling" != yes; then
1940 if { ac_try='./$ac_file'
1941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; }; then
1948 if test "$cross_compiling" = maybe; then
1951 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1952 If you meant to cross compile, use \`--host'.
1953 See \`config.log' for more details." >&5
1954 echo "$as_me: error: cannot run C compiled programs.
1955 If you meant to cross compile, use \`--host'.
1956 See \`config.log' for more details." >&2;}
1957 { (exit 1); exit 1; }; }
1961 echo "$as_me:$LINENO: result: yes" >&5
1962 echo "${ECHO_T}yes" >&6
1964 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1965 ac_clean_files=$ac_clean_files_save
1966 # Check the compiler produces executables we can run. If not, either
1967 # the compiler is broken, or we cross compile.
1968 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1969 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1970 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1971 echo "${ECHO_T}$cross_compiling" >&6
1973 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1974 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1976 (eval $ac_link) 2>&5
1978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1979 (exit $ac_status); }; then
1980 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1981 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1982 # work properly (i.e., refer to `conftest.exe'), while it won't with
1984 for ac_file in conftest.exe conftest conftest.*; do
1985 test -f "$ac_file" || continue
1987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1988 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1995 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&5
1997 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1998 See \`config.log' for more details." >&2;}
1999 { (exit 1); exit 1; }; }
2002 rm -f conftest$ac_cv_exeext
2003 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2004 echo "${ECHO_T}$ac_cv_exeext" >&6
2006 rm -f conftest.$ac_ext
2007 EXEEXT=$ac_cv_exeext
2009 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2010 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2011 if test "${ac_cv_objext+set}" = set; then
2012 echo $ECHO_N "(cached) $ECHO_C" >&6
2014 cat >conftest.$ac_ext <<_ACEOF
2017 cat confdefs.h >>conftest.$ac_ext
2018 cat >>conftest.$ac_ext <<_ACEOF
2019 /* end confdefs.h. */
2029 rm -f conftest.o conftest.obj
2030 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2031 (eval $ac_compile) 2>&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); }; then
2035 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2038 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2043 echo "$as_me: failed program was:" >&5
2044 sed 's/^/| /' conftest.$ac_ext >&5
2046 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2047 See \`config.log' for more details." >&5
2048 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2049 See \`config.log' for more details." >&2;}
2050 { (exit 1); exit 1; }; }
2053 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2055 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2056 echo "${ECHO_T}$ac_cv_objext" >&6
2057 OBJEXT=$ac_cv_objext
2059 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2060 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2061 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2062 echo $ECHO_N "(cached) $ECHO_C" >&6
2064 cat >conftest.$ac_ext <<_ACEOF
2067 cat confdefs.h >>conftest.$ac_ext
2068 cat >>conftest.$ac_ext <<_ACEOF
2069 /* end confdefs.h. */
2082 rm -f conftest.$ac_objext
2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2084 (eval $ac_compile) 2>conftest.er1
2086 grep -v '^ *+' conftest.er1 >conftest.err
2088 cat conftest.err >&5
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); } &&
2091 { ac_try='test -z "$ac_c_werror_flag"
2092 || test ! -s conftest.err'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; } &&
2098 { ac_try='test -s conftest.$ac_objext'
2099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }; }; then
2106 echo "$as_me: failed program was:" >&5
2107 sed 's/^/| /' conftest.$ac_ext >&5
2111 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2112 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2115 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2116 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2117 GCC=`test $ac_compiler_gnu = yes && echo yes`
2118 ac_test_CFLAGS=${CFLAGS+set}
2119 ac_save_CFLAGS=$CFLAGS
2121 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2122 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2123 if test "${ac_cv_prog_cc_g+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 cat >conftest.$ac_ext <<_ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h. */
2141 rm -f conftest.$ac_objext
2142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2143 (eval $ac_compile) 2>conftest.er1
2145 grep -v '^ *+' conftest.er1 >conftest.err
2147 cat conftest.err >&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); } &&
2150 { ac_try='test -z "$ac_c_werror_flag"
2151 || test ! -s conftest.err'
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; } &&
2157 { ac_try='test -s conftest.$ac_objext'
2158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; }; then
2165 echo "$as_me: failed program was:" >&5
2166 sed 's/^/| /' conftest.$ac_ext >&5
2170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2172 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2173 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2174 if test "$ac_test_CFLAGS" = set; then
2175 CFLAGS=$ac_save_CFLAGS
2176 elif test $ac_cv_prog_cc_g = yes; then
2177 if test "$GCC" = yes; then
2183 if test "$GCC" = yes; then
2189 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2190 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2191 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2192 echo $ECHO_N "(cached) $ECHO_C" >&6
2194 ac_cv_prog_cc_stdc=no
2196 cat >conftest.$ac_ext <<_ACEOF
2199 cat confdefs.h >>conftest.$ac_ext
2200 cat >>conftest.$ac_ext <<_ACEOF
2201 /* end confdefs.h. */
2204 #include <sys/types.h>
2205 #include <sys/stat.h>
2206 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2207 struct buf { int x; };
2208 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2209 static char *e (p, i)
2215 static char *f (char * (*g) (char **, int), char **p, ...)
2220 s = g (p, va_arg (v,int));
2225 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2226 function prototypes and stuff, but not '\xHH' hex character constants.
2227 These don't provoke an error unfortunately, instead are silently treated
2228 as 'x'. The following induces an error, until -std1 is added to get
2229 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2230 array size at least. It's necessary to write '\x00'==0 to get something
2231 that's true only with -std1. */
2232 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2234 int test (int i, double x);
2235 struct s1 {int (*f) (int a);};
2236 struct s2 {int (*f) (double a);};
2237 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2243 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2248 # Don't try gcc -ansi; that turns off useful extensions and
2249 # breaks some systems' header files.
2250 # AIX -qlanglvl=ansi
2251 # Ultrix and OSF/1 -std1
2252 # HP-UX 10.20 and later -Ae
2253 # HP-UX older versions -Aa -D_HPUX_SOURCE
2254 # SVR4 -Xc -D__EXTENSIONS__
2255 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2257 CC="$ac_save_CC $ac_arg"
2258 rm -f conftest.$ac_objext
2259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260 (eval $ac_compile) 2>conftest.er1
2262 grep -v '^ *+' conftest.er1 >conftest.err
2264 cat conftest.err >&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); } &&
2267 { ac_try='test -z "$ac_c_werror_flag"
2268 || test ! -s conftest.err'
2269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; } &&
2274 { ac_try='test -s conftest.$ac_objext'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; }; then
2280 ac_cv_prog_cc_stdc=$ac_arg
2283 echo "$as_me: failed program was:" >&5
2284 sed 's/^/| /' conftest.$ac_ext >&5
2287 rm -f conftest.err conftest.$ac_objext
2289 rm -f conftest.$ac_ext conftest.$ac_objext
2294 case "x$ac_cv_prog_cc_stdc" in
2296 echo "$as_me:$LINENO: result: none needed" >&5
2297 echo "${ECHO_T}none needed" >&6 ;;
2299 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2300 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2301 CC="$CC $ac_cv_prog_cc_stdc" ;;
2304 # Some people use a C++ compiler to compile C. Since we use `exit',
2305 # in C++ we need to declare it. In case someone uses the same compiler
2306 # for both compiling C and C++ we need to have the C++ compiler decide
2307 # the declaration of exit, since it's the most demanding environment.
2308 cat >conftest.$ac_ext <<_ACEOF
2313 rm -f conftest.$ac_objext
2314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2315 (eval $ac_compile) 2>conftest.er1
2317 grep -v '^ *+' conftest.er1 >conftest.err
2319 cat conftest.err >&5
2320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2321 (exit $ac_status); } &&
2322 { ac_try='test -z "$ac_c_werror_flag"
2323 || test ! -s conftest.err'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; } &&
2329 { ac_try='test -s conftest.$ac_objext'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; }; then
2335 for ac_declaration in \
2337 'extern "C" void std::exit (int) throw (); using std::exit;' \
2338 'extern "C" void std::exit (int); using std::exit;' \
2339 'extern "C" void exit (int) throw ();' \
2340 'extern "C" void exit (int);' \
2343 cat >conftest.$ac_ext <<_ACEOF
2346 cat confdefs.h >>conftest.$ac_ext
2347 cat >>conftest.$ac_ext <<_ACEOF
2348 /* end confdefs.h. */
2359 rm -f conftest.$ac_objext
2360 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2361 (eval $ac_compile) 2>conftest.er1
2363 grep -v '^ *+' conftest.er1 >conftest.err
2365 cat conftest.err >&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); } &&
2368 { ac_try='test -z "$ac_c_werror_flag"
2369 || test ! -s conftest.err'
2370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374 (exit $ac_status); }; } &&
2375 { ac_try='test -s conftest.$ac_objext'
2376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }; }; then
2383 echo "$as_me: failed program was:" >&5
2384 sed 's/^/| /' conftest.$ac_ext >&5
2388 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2389 cat >conftest.$ac_ext <<_ACEOF
2392 cat confdefs.h >>conftest.$ac_ext
2393 cat >>conftest.$ac_ext <<_ACEOF
2394 /* end confdefs.h. */
2404 rm -f conftest.$ac_objext
2405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2406 (eval $ac_compile) 2>conftest.er1
2408 grep -v '^ *+' conftest.er1 >conftest.err
2410 cat conftest.err >&5
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); } &&
2413 { ac_try='test -z "$ac_c_werror_flag"
2414 || test ! -s conftest.err'
2415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419 (exit $ac_status); }; } &&
2420 { ac_try='test -s conftest.$ac_objext'
2421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }; }; then
2428 echo "$as_me: failed program was:" >&5
2429 sed 's/^/| /' conftest.$ac_ext >&5
2432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2435 if test -n "$ac_declaration"; then
2436 echo '#ifdef __cplusplus' >>confdefs.h
2437 echo $ac_declaration >>confdefs.h
2438 echo '#endif' >>confdefs.h
2442 echo "$as_me: failed program was:" >&5
2443 sed 's/^/| /' conftest.$ac_ext >&5
2446 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2448 ac_cpp='$CPP $CPPFLAGS'
2449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2454 ac_cpp='$CXXCPP $CPPFLAGS'
2455 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2456 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2457 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2458 if test -n "$ac_tool_prefix"; then
2459 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2461 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2462 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2463 echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2465 if test "${ac_cv_prog_CXX+set}" = set; then
2466 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 if test -n "$CXX"; then
2469 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2478 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2488 if test -n "$CXX"; then
2489 echo "$as_me:$LINENO: result: $CXX" >&5
2490 echo "${ECHO_T}$CXX" >&6
2492 echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6
2496 test -n "$CXX" && break
2499 if test -z "$CXX"; then
2501 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2503 # Extract the first word of "$ac_prog", so it can be a program name with args.
2504 set dummy $ac_prog; ac_word=$2
2505 echo "$as_me:$LINENO: checking for $ac_word" >&5
2506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2507 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2508 echo $ECHO_N "(cached) $ECHO_C" >&6
2510 if test -n "$ac_ct_CXX"; then
2511 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517 test -z "$as_dir" && as_dir=.
2518 for ac_exec_ext in '' $ac_executable_extensions; do
2519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2520 ac_cv_prog_ac_ct_CXX="$ac_prog"
2521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2530 if test -n "$ac_ct_CXX"; then
2531 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2532 echo "${ECHO_T}$ac_ct_CXX" >&6
2534 echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6
2538 test -n "$ac_ct_CXX" && break
2540 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2546 # Provide some information about the compiler.
2547 echo "$as_me:$LINENO:" \
2548 "checking for C++ compiler version" >&5
2549 ac_compiler=`set X $ac_compile; echo $2`
2550 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2551 (eval $ac_compiler --version </dev/null >&5) 2>&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }
2555 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2556 (eval $ac_compiler -v </dev/null >&5) 2>&5
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }
2560 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2561 (eval $ac_compiler -V </dev/null >&5) 2>&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }
2566 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2567 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2568 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 cat >conftest.$ac_ext <<_ACEOF
2574 cat confdefs.h >>conftest.$ac_ext
2575 cat >>conftest.$ac_ext <<_ACEOF
2576 /* end confdefs.h. */
2589 rm -f conftest.$ac_objext
2590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2591 (eval $ac_compile) 2>conftest.er1
2593 grep -v '^ *+' conftest.er1 >conftest.err
2595 cat conftest.err >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } &&
2598 { ac_try='test -z "$ac_cxx_werror_flag"
2599 || test ! -s conftest.err'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; } &&
2605 { ac_try='test -s conftest.$ac_objext'
2606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2610 (exit $ac_status); }; }; then
2613 echo "$as_me: failed program was:" >&5
2614 sed 's/^/| /' conftest.$ac_ext >&5
2618 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2619 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2622 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2623 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2624 GXX=`test $ac_compiler_gnu = yes && echo yes`
2625 ac_test_CXXFLAGS=${CXXFLAGS+set}
2626 ac_save_CXXFLAGS=$CXXFLAGS
2628 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2629 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2630 if test "${ac_cv_prog_cxx_g+set}" = set; then
2631 echo $ECHO_N "(cached) $ECHO_C" >&6
2633 cat >conftest.$ac_ext <<_ACEOF
2636 cat confdefs.h >>conftest.$ac_ext
2637 cat >>conftest.$ac_ext <<_ACEOF
2638 /* end confdefs.h. */
2648 rm -f conftest.$ac_objext
2649 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2650 (eval $ac_compile) 2>conftest.er1
2652 grep -v '^ *+' conftest.er1 >conftest.err
2654 cat conftest.err >&5
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656 (exit $ac_status); } &&
2657 { ac_try='test -z "$ac_cxx_werror_flag"
2658 || test ! -s conftest.err'
2659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663 (exit $ac_status); }; } &&
2664 { ac_try='test -s conftest.$ac_objext'
2665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); }; }; then
2670 ac_cv_prog_cxx_g=yes
2672 echo "$as_me: failed program was:" >&5
2673 sed 's/^/| /' conftest.$ac_ext >&5
2677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2679 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2680 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2681 if test "$ac_test_CXXFLAGS" = set; then
2682 CXXFLAGS=$ac_save_CXXFLAGS
2683 elif test $ac_cv_prog_cxx_g = yes; then
2684 if test "$GXX" = yes; then
2690 if test "$GXX" = yes; then
2696 for ac_declaration in \
2698 'extern "C" void std::exit (int) throw (); using std::exit;' \
2699 'extern "C" void std::exit (int); using std::exit;' \
2700 'extern "C" void exit (int) throw ();' \
2701 'extern "C" void exit (int);' \
2704 cat >conftest.$ac_ext <<_ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h. */
2720 rm -f conftest.$ac_objext
2721 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2722 (eval $ac_compile) 2>conftest.er1
2724 grep -v '^ *+' conftest.er1 >conftest.err
2726 cat conftest.err >&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); } &&
2729 { ac_try='test -z "$ac_cxx_werror_flag"
2730 || test ! -s conftest.err'
2731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }; } &&
2736 { ac_try='test -s conftest.$ac_objext'
2737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; }; then
2744 echo "$as_me: failed program was:" >&5
2745 sed 's/^/| /' conftest.$ac_ext >&5
2749 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2750 cat >conftest.$ac_ext <<_ACEOF
2753 cat confdefs.h >>conftest.$ac_ext
2754 cat >>conftest.$ac_ext <<_ACEOF
2755 /* end confdefs.h. */
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>conftest.er1
2769 grep -v '^ *+' conftest.er1 >conftest.err
2771 cat conftest.err >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 { ac_try='test -z "$ac_cxx_werror_flag"
2775 || test ! -s conftest.err'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; } &&
2781 { ac_try='test -s conftest.$ac_objext'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2789 echo "$as_me: failed program was:" >&5
2790 sed 's/^/| /' conftest.$ac_ext >&5
2793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2796 if test -n "$ac_declaration"; then
2797 echo '#ifdef __cplusplus' >>confdefs.h
2798 echo $ac_declaration >>confdefs.h
2799 echo '#endif' >>confdefs.h
2803 ac_cpp='$CPP $CPPFLAGS'
2804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808 if test "x$CC" != xcc; then
2809 echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
2810 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6
2812 echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
2813 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6
2815 set dummy $CC; ac_cc=`echo $2 |
2816 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
2817 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\" = set"; then
2818 echo $ECHO_N "(cached) $ECHO_C" >&6
2820 cat >conftest.$ac_ext <<_ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2835 # Make sure it works both with $CC and with simple cc.
2836 # We do the test twice because some compilers refuse to overwrite an
2837 # existing .o file with -o, though they will create one.
2838 ac_try='$CC -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2839 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); } &&
2844 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); };
2850 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
2851 if test "x$CC" != xcc; then
2852 # Test first that cc exists at all.
2853 if { ac_try='cc -c conftest.$ac_ext >&5'
2854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); }; }; then
2859 ac_try='cc -c conftest.$ac_ext -o conftest.$ac_objext >&5'
2860 if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } &&
2865 test -f conftest.$ac_objext && { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); };
2874 # cc exists but doesn't like -o.
2875 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2880 eval ac_cv_prog_cc_${ac_cc}_c_o=no
2885 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
2886 echo "$as_me:$LINENO: result: yes" >&5
2887 echo "${ECHO_T}yes" >&6
2889 echo "$as_me:$LINENO: result: no" >&5
2890 echo "${ECHO_T}no" >&6
2892 cat >>confdefs.h <<\_ACEOF
2893 #define NO_MINUS_C_MINUS_O 1
2899 ac_cpp='$CPP $CPPFLAGS'
2900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2903 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2904 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2905 # On Suns, sometimes $CPP names a directory.
2906 if test -n "$CPP" && test -d "$CPP"; then
2909 if test -z "$CPP"; then
2910 if test "${ac_cv_prog_CPP+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2913 # Double quotes because CPP needs to be expanded
2914 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2917 for ac_c_preproc_warn_flag in '' yes
2919 # Use a header file that comes with gcc, so configuring glibc
2920 # with a fresh cross-compiler works.
2921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2922 # <limits.h> exists even on freestanding compilers.
2923 # On the NeXT, cc -E runs the code through the compiler's parser,
2924 # not just through cpp. "Syntax error" is here to catch this case.
2925 cat >conftest.$ac_ext <<_ACEOF
2928 cat confdefs.h >>conftest.$ac_ext
2929 cat >>conftest.$ac_ext <<_ACEOF
2930 /* end confdefs.h. */
2932 # include <limits.h>
2934 # include <assert.h>
2938 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2939 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2941 grep -v '^ *+' conftest.er1 >conftest.err
2943 cat conftest.err >&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); } >/dev/null; then
2946 if test -s conftest.err; then
2947 ac_cpp_err=$ac_c_preproc_warn_flag
2948 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2955 if test -z "$ac_cpp_err"; then
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 # Broken: fails on valid input.
2964 rm -f conftest.err conftest.$ac_ext
2966 # OK, works on sane cases. Now check whether non-existent headers
2967 # can be detected and how.
2968 cat >conftest.$ac_ext <<_ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h. */
2974 #include <ac_nonexistent.h>
2976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2979 grep -v '^ *+' conftest.er1 >conftest.err
2981 cat conftest.err >&5
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); } >/dev/null; then
2984 if test -s conftest.err; then
2985 ac_cpp_err=$ac_c_preproc_warn_flag
2986 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2993 if test -z "$ac_cpp_err"; then
2994 # Broken: success on invalid input.
2997 echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
3000 # Passes both tests.
3004 rm -f conftest.err conftest.$ac_ext
3007 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3008 rm -f conftest.err conftest.$ac_ext
3009 if $ac_preproc_ok; then
3021 echo "$as_me:$LINENO: result: $CPP" >&5
3022 echo "${ECHO_T}$CPP" >&6
3024 for ac_c_preproc_warn_flag in '' yes
3026 # Use a header file that comes with gcc, so configuring glibc
3027 # with a fresh cross-compiler works.
3028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3029 # <limits.h> exists even on freestanding compilers.
3030 # On the NeXT, cc -E runs the code through the compiler's parser,
3031 # not just through cpp. "Syntax error" is here to catch this case.
3032 cat >conftest.$ac_ext <<_ACEOF
3035 cat confdefs.h >>conftest.$ac_ext
3036 cat >>conftest.$ac_ext <<_ACEOF
3037 /* end confdefs.h. */
3039 # include <limits.h>
3041 # include <assert.h>
3045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3046 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3048 grep -v '^ *+' conftest.er1 >conftest.err
3050 cat conftest.err >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); } >/dev/null; then
3053 if test -s conftest.err; then
3054 ac_cpp_err=$ac_c_preproc_warn_flag
3055 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3062 if test -z "$ac_cpp_err"; then
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3068 # Broken: fails on valid input.
3071 rm -f conftest.err conftest.$ac_ext
3073 # OK, works on sane cases. Now check whether non-existent headers
3074 # can be detected and how.
3075 cat >conftest.$ac_ext <<_ACEOF
3078 cat confdefs.h >>conftest.$ac_ext
3079 cat >>conftest.$ac_ext <<_ACEOF
3080 /* end confdefs.h. */
3081 #include <ac_nonexistent.h>
3083 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3084 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3086 grep -v '^ *+' conftest.er1 >conftest.err
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } >/dev/null; then
3091 if test -s conftest.err; then
3092 ac_cpp_err=$ac_c_preproc_warn_flag
3093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3100 if test -z "$ac_cpp_err"; then
3101 # Broken: success on invalid input.
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3107 # Passes both tests.
3111 rm -f conftest.err conftest.$ac_ext
3114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3115 rm -f conftest.err conftest.$ac_ext
3116 if $ac_preproc_ok; then
3119 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3120 See \`config.log' for more details." >&5
3121 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3122 See \`config.log' for more details." >&2;}
3123 { (exit 1); exit 1; }; }
3127 ac_cpp='$CPP $CPPFLAGS'
3128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133 echo "$as_me:$LINENO: checking for egrep" >&5
3134 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3135 if test "${ac_cv_prog_egrep+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
3138 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3139 then ac_cv_prog_egrep='grep -E'
3140 else ac_cv_prog_egrep='egrep'
3143 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3144 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3145 EGREP=$ac_cv_prog_egrep
3148 if test $ac_cv_c_compiler_gnu = yes; then
3149 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3150 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3151 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3152 echo $ECHO_N "(cached) $ECHO_C" >&6
3154 ac_pattern="Autoconf.*'x'"
3155 cat >conftest.$ac_ext <<_ACEOF
3158 cat confdefs.h >>conftest.$ac_ext
3159 cat >>conftest.$ac_ext <<_ACEOF
3160 /* end confdefs.h. */
3164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3165 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3166 ac_cv_prog_gcc_traditional=yes
3168 ac_cv_prog_gcc_traditional=no
3173 if test $ac_cv_prog_gcc_traditional = no; then
3174 cat >conftest.$ac_ext <<_ACEOF
3177 cat confdefs.h >>conftest.$ac_ext
3178 cat >>conftest.$ac_ext <<_ACEOF
3179 /* end confdefs.h. */
3183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3184 $EGREP "$ac_pattern" >/dev/null 2>&1; then
3185 ac_cv_prog_gcc_traditional=yes
3191 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3192 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3193 if test $ac_cv_prog_gcc_traditional = yes; then
3194 CC="$CC -traditional"
3198 if test "x$CC" = xgcc; then
3199 cat >>confdefs.h <<\_ACEOF
3204 # Extract the first word of "$CXX", so it can be a program name with args.
3205 set dummy $CXX; ac_word=$2
3206 echo "$as_me:$LINENO: checking for $ac_word" >&5
3207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3208 if test "${ac_cv_path_CXX+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 test -z "$as_dir" && as_dir=.
3221 for ac_exec_ext in '' $ac_executable_extensions; do
3222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3223 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
3224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3230 test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
3236 if test -n "$CXX"; then
3237 echo "$as_me:$LINENO: result: $CXX" >&5
3238 echo "${ECHO_T}$CXX" >&6
3240 echo "$as_me:$LINENO: result: no" >&5
3241 echo "${ECHO_T}no" >&6
3244 if test ! -e $CXX; then
3245 { { echo "$as_me:$LINENO: error: Unable to find C++ compiler" >&5
3246 echo "$as_me: error: Unable to find C++ compiler" >&2;}
3247 { (exit 1); exit 1; }; }
3250 # Find a good install program. We prefer a C program (faster),
3251 # so one script is as good as another. But avoid the broken or
3252 # incompatible versions:
3253 # SysV /etc/install, /usr/sbin/install
3254 # SunOS /usr/etc/install
3255 # IRIX /sbin/install
3257 # AmigaOS /C/install, which installs bootblocks on floppy discs
3258 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3259 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3260 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3261 # OS/2's system install, which has a completely different semantic
3262 # ./install, which can be erroneously created by make from ./install.sh.
3263 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3264 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3265 if test -z "$INSTALL"; then
3266 if test "${ac_cv_path_install+set}" = set; then
3267 echo $ECHO_N "(cached) $ECHO_C" >&6
3269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 test -z "$as_dir" && as_dir=.
3274 # Account for people who put trailing slashes in PATH elements.
3276 ./ | .// | /cC/* | \
3277 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3278 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3281 # OSF1 and SCO ODT 3.0 have their own names for install.
3282 # Don't use installbsd from OSF since it installs stuff as root
3284 for ac_prog in ginstall scoinst install; do
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3287 if test $ac_prog = install &&
3288 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3289 # AIX install. It has an incompatible calling convention.
3291 elif test $ac_prog = install &&
3292 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3293 # program-specific install script used by HP pwplus--don't use.
3296 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3308 if test "${ac_cv_path_install+set}" = set; then
3309 INSTALL=$ac_cv_path_install
3311 # As a last resort, use the slow shell script. We don't cache a
3312 # path for INSTALL within a source directory, because that will
3313 # break other packages using the cache if that directory is
3314 # removed, or if the path is relative.
3315 INSTALL=$ac_install_sh
3318 echo "$as_me:$LINENO: result: $INSTALL" >&5
3319 echo "${ECHO_T}$INSTALL" >&6
3321 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3322 # It thinks the first close brace ends the variable substitution.
3323 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3325 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3327 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3329 if test -n "$ac_tool_prefix"; then
3330 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3331 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3332 echo "$as_me:$LINENO: checking for $ac_word" >&5
3333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3334 if test "${ac_cv_prog_RANLIB+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 if test -n "$RANLIB"; then
3338 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 test -z "$as_dir" && as_dir=.
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 RANLIB=$ac_cv_prog_RANLIB
3357 if test -n "$RANLIB"; then
3358 echo "$as_me:$LINENO: result: $RANLIB" >&5
3359 echo "${ECHO_T}$RANLIB" >&6
3361 echo "$as_me:$LINENO: result: no" >&5
3362 echo "${ECHO_T}no" >&6
3366 if test -z "$ac_cv_prog_RANLIB"; then
3367 ac_ct_RANLIB=$RANLIB
3368 # Extract the first word of "ranlib", so it can be a program name with args.
3369 set dummy ranlib; ac_word=$2
3370 echo "$as_me:$LINENO: checking for $ac_word" >&5
3371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3372 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3375 if test -n "$ac_ct_RANLIB"; then
3376 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385 ac_cv_prog_ac_ct_RANLIB="ranlib"
3386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3395 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3396 if test -n "$ac_ct_RANLIB"; then
3397 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3398 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3400 echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6
3404 RANLIB=$ac_ct_RANLIB
3406 RANLIB="$ac_cv_prog_RANLIB"
3409 # Extract the first word of "mv", so it can be a program name with args.
3410 set dummy mv; ac_word=$2
3411 echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_path_MV+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
3441 if test -n "$MV"; then
3442 echo "$as_me:$LINENO: result: $MV" >&5
3443 echo "${ECHO_T}$MV" >&6
3445 echo "$as_me:$LINENO: result: no" >&5
3446 echo "${ECHO_T}no" >&6
3449 # Extract the first word of "rm", so it can be a program name with args.
3450 set dummy rm; ac_word=$2
3451 echo "$as_me:$LINENO: checking for $ac_word" >&5
3452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3453 if test "${ac_cv_path_RM+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3458 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3468 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
3481 if test -n "$RM"; then
3482 echo "$as_me:$LINENO: result: $RM" >&5
3483 echo "${ECHO_T}$RM" >&6
3485 echo "$as_me:$LINENO: result: no" >&5
3486 echo "${ECHO_T}no" >&6
3489 # Extract the first word of "cp", so it can be a program name with args.
3490 set dummy cp; ac_word=$2
3491 echo "$as_me:$LINENO: checking for $ac_word" >&5
3492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3493 if test "${ac_cv_path_CP+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3498 ac_cv_path_CP="$CP" # Let the user override the test with a path.
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505 test -z "$as_dir" && as_dir=.
3506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3508 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
3521 if test -n "$CP"; then
3522 echo "$as_me:$LINENO: result: $CP" >&5
3523 echo "${ECHO_T}$CP" >&6
3525 echo "$as_me:$LINENO: result: no" >&5
3526 echo "${ECHO_T}no" >&6
3529 # Extract the first word of "sed", so it can be a program name with args.
3530 set dummy sed; ac_word=$2
3531 echo "$as_me:$LINENO: checking for $ac_word" >&5
3532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3533 if test "${ac_cv_path_SED+set}" = set; then
3534 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3548 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
3561 if test -n "$SED"; then
3562 echo "$as_me:$LINENO: result: $SED" >&5
3563 echo "${ECHO_T}$SED" >&6
3565 echo "$as_me:$LINENO: result: no" >&5
3566 echo "${ECHO_T}no" >&6
3569 # Extract the first word of "echo", so it can be a program name with args.
3570 set dummy echo; ac_word=$2
3571 echo "$as_me:$LINENO: checking for $ac_word" >&5
3572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3573 if test "${ac_cv_path_ECHO+set}" = set; then
3574 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 test -z "$as_dir" && as_dir=.
3586 for ac_exec_ext in '' $ac_executable_extensions; do
3587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3588 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
3599 ECHO=$ac_cv_path_ECHO
3601 if test -n "$ECHO"; then
3602 echo "$as_me:$LINENO: result: $ECHO" >&5
3603 echo "${ECHO_T}$ECHO" >&6
3605 echo "$as_me:$LINENO: result: no" >&5
3606 echo "${ECHO_T}no" >&6
3609 # Extract the first word of "cmp", so it can be a program name with args.
3610 set dummy cmp; ac_word=$2
3611 echo "$as_me:$LINENO: checking for $ac_word" >&5
3612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3613 if test "${ac_cv_path_CMP+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
3621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 test -z "$as_dir" && as_dir=.
3626 for ac_exec_ext in '' $ac_executable_extensions; do
3627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
3629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
3641 if test -n "$CMP"; then
3642 echo "$as_me:$LINENO: result: $CMP" >&5
3643 echo "${ECHO_T}$CMP" >&6
3645 echo "$as_me:$LINENO: result: no" >&5
3646 echo "${ECHO_T}no" >&6
3649 # Extract the first word of "tbl", so it can be a program name with args.
3650 set dummy tbl; ac_word=$2
3651 echo "$as_me:$LINENO: checking for $ac_word" >&5
3652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3653 if test "${ac_cv_path_TBL+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3668 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
3669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3675 test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
3681 if test -n "$TBL"; then
3682 echo "$as_me:$LINENO: result: $TBL" >&5
3683 echo "${ECHO_T}$TBL" >&6
3685 echo "$as_me:$LINENO: result: no" >&5
3686 echo "${ECHO_T}no" >&6
3689 # Extract the first word of "ar", so it can be a program name with args.
3690 set dummy ar; ac_word=$2
3691 echo "$as_me:$LINENO: checking for $ac_word" >&5
3692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3693 if test "${ac_cv_path_AR+set}" = set; then
3694 echo $ECHO_N "(cached) $ECHO_C" >&6
3698 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3708 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
3721 if test -n "$AR"; then
3722 echo "$as_me:$LINENO: result: $AR" >&5
3723 echo "${ECHO_T}$AR" >&6
3725 echo "$as_me:$LINENO: result: no" >&5
3726 echo "${ECHO_T}no" >&6
3729 # Extract the first word of "openssl", so it can be a program name with args.
3730 set dummy openssl; ac_word=$2
3731 echo "$as_me:$LINENO: checking for $ac_word" >&5
3732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3733 if test "${ac_cv_path_OPENSSL+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 test -z "$as_dir" && as_dir=.
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3748 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
3749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3755 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
3759 OPENSSL=$ac_cv_path_OPENSSL
3761 if test -n "$OPENSSL"; then
3762 echo "$as_me:$LINENO: result: $OPENSSL" >&5
3763 echo "${ECHO_T}$OPENSSL" >&6
3765 echo "$as_me:$LINENO: result: no" >&5
3766 echo "${ECHO_T}no" >&6
3769 # Extract the first word of "mtx", so it can be a program name with args.
3770 set dummy mtx; ac_word=$2
3771 echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_path_MTX+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788 ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
3789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
3801 if test -n "$MTX"; then
3802 echo "$as_me:$LINENO: result: $MTX" >&5
3803 echo "${ECHO_T}$MTX" >&6
3805 echo "$as_me:$LINENO: result: no" >&5
3806 echo "${ECHO_T}no" >&6
3809 # Extract the first word of "df", so it can be a program name with args.
3810 set dummy df; ac_word=$2
3811 echo "$as_me:$LINENO: checking for $ac_word" >&5
3812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3813 if test "${ac_cv_path_DF+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3818 ac_cv_path_DF="$DF" # Let the user override the test with a path.
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
3829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3835 test -z "$ac_cv_path_DF" && ac_cv_path_DF="df"
3841 if test -n "$DF"; then
3842 echo "$as_me:$LINENO: result: $DF" >&5
3843 echo "${ECHO_T}$DF" >&6
3845 echo "$as_me:$LINENO: result: no" >&5
3846 echo "${ECHO_T}no" >&6
3849 # Extract the first word of "mkisofs", so it can be a program name with args.
3850 set dummy mkisofs; ac_word=$2
3851 echo "$as_me:$LINENO: checking for $ac_word" >&5
3852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3853 if test "${ac_cv_path_MKISOFS+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
3867 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3868 ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
3869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3875 test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
3879 MKISOFS=$ac_cv_path_MKISOFS
3881 if test -n "$MKISOFS"; then
3882 echo "$as_me:$LINENO: result: $MKISOFS" >&5
3883 echo "${ECHO_T}$MKISOFS" >&6
3885 echo "$as_me:$LINENO: result: no" >&5
3886 echo "${ECHO_T}no" >&6
3889 # Extract the first word of "python", so it can be a program name with args.
3890 set dummy python; ac_word=$2
3891 echo "$as_me:$LINENO: checking for $ac_word" >&5
3892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3893 if test "${ac_cv_path_PYTHON+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3898 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3908 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
3909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
3919 PYTHON=$ac_cv_path_PYTHON
3921 if test -n "$PYTHON"; then
3922 echo "$as_me:$LINENO: result: $PYTHON" >&5
3923 echo "${ECHO_T}$PYTHON" >&6
3925 echo "$as_me:$LINENO: result: no" >&5
3926 echo "${ECHO_T}no" >&6
3929 # Extract the first word of "growisofs", so it can be a program name with args.
3930 set dummy growisofs; ac_word=$2
3931 echo "$as_me:$LINENO: checking for $ac_word" >&5
3932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3933 if test "${ac_cv_path_GROWISOFS+set}" = set; then
3934 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3948 ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
3949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
3959 GROWISOFS=$ac_cv_path_GROWISOFS
3961 if test -n "$GROWISOFS"; then
3962 echo "$as_me:$LINENO: result: $GROWISOFS" >&5
3963 echo "${ECHO_T}$GROWISOFS" >&6
3965 echo "$as_me:$LINENO: result: no" >&5
3966 echo "${ECHO_T}no" >&6
3969 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
3970 set dummy dvd+rw-mediainfo; ac_word=$2
3971 echo "$as_me:$LINENO: checking for $ac_word" >&5
3972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3973 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 case $DVDRWMEDIAINFO in
3978 ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
3981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3985 test -z "$as_dir" && as_dir=.
3986 for ac_exec_ext in '' $ac_executable_extensions; do
3987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3988 ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
3989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
3999 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
4001 if test -n "$DVDRWMEDIAINFO"; then
4002 echo "$as_me:$LINENO: result: $DVDRWMEDIAINFO" >&5
4003 echo "${ECHO_T}$DVDRWMEDIAINFO" >&6
4005 echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6
4009 # Extract the first word of "pkg-config", so it can be a program name with args.
4010 set dummy pkg-config; ac_word=$2
4011 echo "$as_me:$LINENO: checking for $ac_word" >&5
4012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4013 if test "${ac_cv_path_PKGCONFIG+set}" = set; then
4014 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 test -z "$as_dir" && as_dir=.
4026 for ac_exec_ext in '' $ac_executable_extensions; do
4027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4028 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
4039 PKGCONFIG=$ac_cv_path_PKGCONFIG
4041 if test -n "$PKGCONFIG"; then
4042 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5
4043 echo "${ECHO_T}$PKGCONFIG" >&6
4045 echo "$as_me:$LINENO: result: no" >&5
4046 echo "${ECHO_T}no" >&6
4050 if test "x$WXCONFIG" = x; then
4053 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
4054 set dummy ${WXCONFIG}; ac_word=$2
4055 echo "$as_me:$LINENO: checking for $ac_word" >&5
4056 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4057 if test "${ac_cv_path_WXCONFIG+set}" = set; then
4058 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 test -z "$as_dir" && as_dir=.
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4072 ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
4073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4079 test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
4083 WXCONFIG=$ac_cv_path_WXCONFIG
4085 if test -n "$WXCONFIG"; then
4086 echo "$as_me:$LINENO: result: $WXCONFIG" >&5
4087 echo "${ECHO_T}$WXCONFIG" >&6
4089 echo "$as_me:$LINENO: result: no" >&5
4090 echo "${ECHO_T}no" >&6
4094 # Extract the first word of "cdrecord", so it can be a program name with args.
4095 set dummy cdrecord; ac_word=$2
4096 echo "$as_me:$LINENO: checking for $ac_word" >&5
4097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4098 if test "${ac_cv_path_CDRECORD+set}" = set; then
4099 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 test -z "$as_dir" && as_dir=.
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4113 ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
4114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4120 test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
4124 CDRECORD=$ac_cv_path_CDRECORD
4126 if test -n "$CDRECORD"; then
4127 echo "$as_me:$LINENO: result: $CDRECORD" >&5
4128 echo "${ECHO_T}$CDRECORD" >&6
4130 echo "$as_me:$LINENO: result: no" >&5
4131 echo "${ECHO_T}no" >&6
4134 # Extract the first word of "pidof", so it can be a program name with args.
4135 set dummy pidof; ac_word=$2
4136 echo "$as_me:$LINENO: checking for $ac_word" >&5
4137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4138 if test "${ac_cv_path_PIDOF+set}" = set; then
4139 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
4154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4160 test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
4164 PIDOF=$ac_cv_path_PIDOF
4166 if test -n "$PIDOF"; then
4167 echo "$as_me:$LINENO: result: $PIDOF" >&5
4168 echo "${ECHO_T}$PIDOF" >&6
4170 echo "$as_me:$LINENO: result: no" >&5
4171 echo "${ECHO_T}no" >&6
4174 for ac_prog in gawk mawk nawk awk
4176 # Extract the first word of "$ac_prog", so it can be a program name with args.
4177 set dummy $ac_prog; ac_word=$2
4178 echo "$as_me:$LINENO: checking for $ac_word" >&5
4179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4180 if test "${ac_cv_prog_AWK+set}" = set; then
4181 echo $ECHO_N "(cached) $ECHO_C" >&6
4183 if test -n "$AWK"; then
4184 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 test -z "$as_dir" && as_dir=.
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193 ac_cv_prog_AWK="$ac_prog"
4194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 if test -n "$AWK"; then
4204 echo "$as_me:$LINENO: result: $AWK" >&5
4205 echo "${ECHO_T}$AWK" >&6
4207 echo "$as_me:$LINENO: result: no" >&5
4208 echo "${ECHO_T}no" >&6
4211 test -n "$AWK" && break
4214 # Some AWK programs fail, so test it and warn the user
4215 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
4216 { if ((prog == $2) || (("(" prog ")") == $2) ||
4217 (("" prog "") == $2) ||
4218 ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
4220 { { echo "$as_me:$LINENO: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4221 The regex engine of $AWK is too broken to be used you
4222 might want to install GNU AWK.
4223 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&5
4224 echo "$as_me: error: !!!!!!!!! WARNING !!!!!!!!!!!!!!
4225 The regex engine of $AWK is too broken to be used you
4226 might want to install GNU AWK.
4227 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >&2;}
4228 { (exit 1); exit 1; }; }
4231 # Extract the first word of "$THE_AWK", so it can be a program name with args.
4232 set dummy $THE_AWK; ac_word=$2
4233 echo "$as_me:$LINENO: checking for $ac_word" >&5
4234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4235 if test "${ac_cv_path_AWK+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4250 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
4263 if test -n "$AWK"; then
4264 echo "$as_me:$LINENO: result: $AWK" >&5
4265 echo "${ECHO_T}$AWK" >&6
4267 echo "$as_me:$LINENO: result: no" >&5
4268 echo "${ECHO_T}no" >&6
4272 test -n "$ARFLAG" || ARFLAGS="cr"
4283 # Make sure we can run config.sub.
4284 $ac_config_sub sun4 >/dev/null 2>&1 ||
4285 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
4286 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
4287 { (exit 1); exit 1; }; }
4289 echo "$as_me:$LINENO: checking build system type" >&5
4290 echo $ECHO_N "checking build system type... $ECHO_C" >&6
4291 if test "${ac_cv_build+set}" = set; then
4292 echo $ECHO_N "(cached) $ECHO_C" >&6
4294 ac_cv_build_alias=$build_alias
4295 test -z "$ac_cv_build_alias" &&
4296 ac_cv_build_alias=`$ac_config_guess`
4297 test -z "$ac_cv_build_alias" &&
4298 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4299 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4300 { (exit 1); exit 1; }; }
4301 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
4302 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
4303 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
4304 { (exit 1); exit 1; }; }
4307 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4308 echo "${ECHO_T}$ac_cv_build" >&6
4310 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4311 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4312 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4316 echo "$as_me:$LINENO: checking host system type" >&5
4317 echo $ECHO_N "checking host system type... $ECHO_C" >&6
4318 if test "${ac_cv_host+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 ac_cv_host_alias=$host_alias
4322 test -z "$ac_cv_host_alias" &&
4323 ac_cv_host_alias=$ac_cv_build_alias
4324 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4325 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4326 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4327 { (exit 1); exit 1; }; }
4330 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4331 echo "${ECHO_T}$ac_cv_host" >&6
4333 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4334 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4335 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4339 *cygwin* ) CYGWIN=yes;;
4343 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4349 HAVE_SUN_OS_FALSE='#'
4351 HAVE_SUN_OS_TRUE='#'
4354 cat >>confdefs.h <<\_ACEOF
4355 #define HAVE_SUN_OS 1
4363 HAVE_SUN_OS_FALSE='#'
4365 HAVE_SUN_OS_TRUE='#'
4370 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4376 HAVE_OSF1_OS_FALSE='#'
4378 HAVE_OSF1_OS_TRUE='#'
4381 cat >>confdefs.h <<\_ACEOF
4382 #define HAVE_OSF1_OS 1
4390 HAVE_OSF1_OS_FALSE='#'
4392 HAVE_OSF1_OS_TRUE='#'
4397 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4403 HAVE_AIX_OS_FALSE='#'
4405 HAVE_AIX_OS_TRUE='#'
4408 cat >>confdefs.h <<\_ACEOF
4409 #define HAVE_AIX_OS 1
4417 HAVE_AIX_OS_FALSE='#'
4419 HAVE_AIX_OS_TRUE='#'
4424 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4430 HAVE_HPUX_OS_FALSE='#'
4432 HAVE_HPUX_OS_TRUE='#'
4435 cat >>confdefs.h <<\_ACEOF
4436 #define HAVE_HPUX_OS 1
4444 HAVE_HPUX_OS_FALSE='#'
4446 HAVE_HPUX_OS_TRUE='#'
4451 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
4457 HAVE_LINUX_OS_FALSE='#'
4459 HAVE_LINUX_OS_TRUE='#'
4460 HAVE_LINUX_OS_FALSE=
4462 cat >>confdefs.h <<\_ACEOF
4463 #define HAVE_LINUX_OS 1
4471 HAVE_LINUX_OS_FALSE='#'
4473 HAVE_LINUX_OS_TRUE='#'
4474 HAVE_LINUX_OS_FALSE=
4478 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4483 HAVE_FREEBSD_OS_TRUE=
4484 HAVE_FREEBSD_OS_FALSE='#'
4486 HAVE_FREEBSD_OS_TRUE='#'
4487 HAVE_FREEBSD_OS_FALSE=
4489 cat >>confdefs.h <<\_ACEOF
4490 #define HAVE_FREEBSD_OS 1
4497 HAVE_FREEBSD_OS_TRUE=
4498 HAVE_FREEBSD_OS_FALSE='#'
4500 HAVE_FREEBSD_OS_TRUE='#'
4501 HAVE_FREEBSD_OS_FALSE=
4505 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4510 HAVE_NETBSD_OS_TRUE=
4511 HAVE_NETBSD_OS_FALSE='#'
4513 HAVE_NETBSD_OS_TRUE='#'
4514 HAVE_NETBSD_OS_FALSE=
4516 cat >>confdefs.h <<\_ACEOF
4517 #define HAVE_NETBSD_OS 1
4524 HAVE_NETBSD_OS_TRUE=
4525 HAVE_NETBSD_OS_FALSE='#'
4527 HAVE_NETBSD_OS_TRUE='#'
4528 HAVE_NETBSD_OS_FALSE=
4532 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4537 HAVE_OPENBSD_OS_TRUE=
4538 HAVE_OPENBSD_OS_FALSE='#'
4540 HAVE_OPENBSD_OS_TRUE='#'
4541 HAVE_OPENBSD_OS_FALSE=
4543 cat >>confdefs.h <<\_ACEOF
4544 #define HAVE_OPENBSD_OS 1
4551 HAVE_OPENBSD_OS_TRUE=
4552 HAVE_OPENBSD_OS_FALSE='#'
4554 HAVE_OPENBSD_OS_TRUE='#'
4555 HAVE_OPENBSD_OS_FALSE=
4559 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4565 HAVE_BSDI_OS_FALSE='#'
4567 HAVE_BSDI_OS_TRUE='#'
4570 cat >>confdefs.h <<\_ACEOF
4571 #define HAVE_BSDI_OS 1
4579 HAVE_BSDI_OS_FALSE='#'
4581 HAVE_BSDI_OS_TRUE='#'
4586 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
4592 HAVE_SGI_OS_FALSE='#'
4594 HAVE_SGI_OS_TRUE='#'
4597 cat >>confdefs.h <<\_ACEOF
4598 #define HAVE_SGI_OS 1
4606 HAVE_SGI_OS_FALSE='#'
4608 HAVE_SGI_OS_TRUE='#'
4613 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4619 HAVE_IRIX_OS_FALSE='#'
4621 HAVE_IRIX_OS_TRUE='#'
4624 cat >>confdefs.h <<\_ACEOF
4625 #define HAVE_IRIX_OS 1
4633 HAVE_IRIX_OS_FALSE='#'
4635 HAVE_IRIX_OS_TRUE='#'
4640 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4645 HAVE_DARWIN_OS_TRUE=
4646 HAVE_DARWIN_OS_FALSE='#'
4648 HAVE_DARWIN_OS_TRUE='#'
4649 HAVE_DARWIN_OS_FALSE=
4651 cat >>confdefs.h <<\_ACEOF
4652 #define HAVE_DARWIN_OS 1
4659 HAVE_DARWIN_OS_TRUE=
4660 HAVE_DARWIN_OS_FALSE='#'
4662 HAVE_DARWIN_OS_TRUE='#'
4663 HAVE_DARWIN_OS_FALSE=
4668 # -----------------------------------------------------------
4669 # ----------------------------------------------------------
4670 echo "$as_me:$LINENO: checking for Operating System Distribution" >&5
4671 echo $ECHO_N "checking for Operating System Distribution... $ECHO_C" >&6
4672 if test "x$DISTNAME" != "x"
4674 echo "distname set to $DISTNAME"
4675 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
4678 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
4681 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
4684 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
4687 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
4690 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
4693 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
4696 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
4699 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
4702 elif test -f /etc/SuSE-release
4705 elif test -d /etc/SuSEconfig
4708 elif test -f /etc/mandrake-release
4711 elif test -f /etc/whitebox-release
4714 elif test -f /etc/redhat-release
4717 elif test -f /etc/gentoo-release
4720 elif test -f /etc/debian_version
4723 elif test -f /etc/slackware-version
4726 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
4729 elif test -f /etc/engarde-version
4732 elif test "$CYGWIN" = yes
4735 cat >>confdefs.h <<\_ACEOF
4736 #define HAVE_CYGWIN 1
4742 echo "$as_me:$LINENO: result: done" >&5
4743 echo "${ECHO_T}done" >&6
4746 # AM_GNU_GETTEXT([external])
4747 if test x${datadir} = xNONE ; then
4750 localedir=${datadir}/locale
4751 cat >>confdefs.h <<_ACEOF
4752 #define LOCALEDIR "$localdir"
4755 # LOCAL_DEFS="$LOCAL_DEFS -DLOCALEDIR=\"\\\"${localedir}\\\"\""
4757 # ------------------------------------------------------------------
4758 # If the user has not set --prefix, we set our default to nothing.
4759 # In this case, if the user has not set --sysconfdir, we set it
4760 # to the package default of /etc/bacula. If either --prefix or
4761 # --sysconfdir is set, we leave sysconfdir alone except to eval it.
4762 # ------------------------------------------------------------------
4763 if test x${prefix} = xNONE ; then
4764 if test `eval echo ${sysconfdir}` = NONE/etc ; then
4765 sysconfdir=/etc/bacula
4769 sysconfdir=`eval echo ${sysconfdir}`
4771 # -------------------------------------------------------------------------
4772 # If the user has not set --exec-prefix, we default to ${prefix}
4773 # -------------------------------------------------------------------------
4774 if test x${exec_prefix} = xNONE ; then
4775 exec_prefix=${prefix}
4778 # ------------------------------------------------------------------
4779 # If the user has not set --sbindir, we set our default as /sbin
4780 # ------------------------------------------------------------------
4781 if test x$sbindir = x'${exec_prefix}/sbin' ; then
4782 sbindir=${exec_prefix}/sbin
4784 sbindir=`eval echo ${sbindir}`
4786 # -------------------------------------------------------------------------
4787 # If the user has not set --mandir, we default to /usr/share/man
4788 # -------------------------------------------------------------------------
4789 if test x$mandir = x'${prefix}/man' ; then
4790 mandir=/usr/share/man
4794 # ------------------------------------------------------------------
4795 # All list of languages for which a translation exist. Each
4796 # language is separated by a space.
4797 # ------------------------------------------------------------------
4800 for ac_prog in msgfmt
4802 # Extract the first word of "$ac_prog", so it can be a program name with args.
4803 set dummy $ac_prog; ac_word=$2
4804 echo "$as_me:$LINENO: checking for $ac_word" >&5
4805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4806 if test "${ac_cv_path_MSGFMT+set}" = set; then
4807 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4821 ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
4822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4831 MSGFMT=$ac_cv_path_MSGFMT
4833 if test -n "$MSGFMT"; then
4834 echo "$as_me:$LINENO: result: $MSGFMT" >&5
4835 echo "${ECHO_T}$MSGFMT" >&6
4837 echo "$as_me:$LINENO: result: no" >&5
4838 echo "${ECHO_T}no" >&6
4841 test -n "$MSGFMT" && break
4843 test -n "$MSGFMT" || MSGFMT="no"
4845 if test "$MSGFMT" = "no"
4847 echo 'msgfmt program not found, disabling NLS !'
4849 USE_INCLUDED_LIBINTL=no
4858 support_postgresql=no
4859 support_smartalloc=yes
4860 support_readline=yes
4863 support_wx_console=no
4867 support_static_tools=no
4868 support_static_fd=no
4869 support_static_sd=no
4870 support_static_dir=no
4871 support_static_cons=no
4873 build_client_only=no
4879 # -------------------------------------------
4880 # gnome (default off)
4881 # -------------------------------------------
4882 # Check whether --enable-gnome or --disable-gnome was given.
4883 if test "${enable_gnome+set}" = set; then
4884 enableval="$enable_gnome"
4885 if test x$enableval = xyes; then
4891 if test x$support_gnome = xyes; then
4892 abc=`$PKGCONFIG --exists libgnomeui-2.0`
4894 if test $pkg = 0; then
4895 GNOME_INCLUDEDIR=`$PKGCONFIG --cflags-only-I libgnomeui-2.0`
4896 GNOMEUI_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4897 GNOME_LIBDIR=`$PKGCONFIG --libs libgnomeui-2.0`
4898 GNOME_LIBS=`$PKGCONFIG --libs-only-l libgnomeui-2.0`
4903 GNOME_DIR=src/gnome2-console
4904 gnome_version="Version 2.x"
4906 { { echo "$as_me:$LINENO: error: Unable to find Gnome 2 installation" >&5
4907 echo "$as_me: error: Unable to find Gnome 2 installation" >&2;}
4908 { (exit 1); exit 1; }; }
4914 # -------------------------------------------
4915 # wx-console (default off)
4916 # -------------------------------------------
4917 # Check whether --enable-wx-console or --disable-wx-console was given.
4918 if test "${enable_wx_console+set}" = set; then
4919 enableval="$enable_wx_console"
4920 if test x$enableval = xyes; then
4921 support_wx_console=yes
4926 if test x$support_wx_console = xyes; then
4927 abc=`$WXCONFIG $WXFLAGS --cppflags`
4929 if test $pkg = 0; then
4930 wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
4931 WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
4932 WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
4936 WX_DIR=src/wx-console
4939 echo "wx-config program not found. wx-console disabled."
4941 support_wx_console=no
4947 # -------------------------------------------
4948 # tray-monitor (default off)
4949 # -------------------------------------------
4950 # Check whether --enable-tray-monitor or --disable-tray-monitor was given.
4951 if test "${enable_tray_monitor+set}" = set; then
4952 enableval="$enable_tray_monitor"
4953 if test x$enableval = xyes; then
4954 support_tray_monitor=yes
4959 if test x$support_tray_monitor = xyes; then
4960 abc=`$PKGCONFIG --exists gtk+-2.0`
4962 if test $pkg = 0; then
4963 TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
4964 TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
4967 TRAY_MONITOR_DIR=src/tray-monitor
4968 abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
4970 if test $pkg = 0; then
4971 cat >>confdefs.h <<\_ACEOF
4972 #define HAVE_GTK_2_4 1
4980 # -------------------------------------------
4981 # smartalloc (default off)
4982 # -------------------------------------------
4983 # Check whether --enable-smartalloc or --disable-smartalloc was given.
4984 if test "${enable_smartalloc+set}" = set; then
4985 enableval="$enable_smartalloc"
4986 if test x$enableval = xno; then
4987 support_smartalloc=no
4991 if test x$support_smartalloc = xyes; then
4992 cat >>confdefs.h <<\_ACEOF
4993 #define SMARTALLOC 1
4998 # -------------------------------------------
4999 # static-tools (default off)
5000 # -------------------------------------------
5001 # Check whether --enable-static-tools or --disable-static-tools was given.
5002 if test "${enable_static_tools+set}" = set; then
5003 enableval="$enable_static_tools"
5004 if test x$enableval = xyes; then
5005 support_static_tools=yes
5010 if test x$support_static_tools = xyes; then
5011 TTOOL_LDFLAGS="-static"
5015 # -------------------------------------------
5016 # static-fd (default off)
5017 # -------------------------------------------
5018 # Check whether --enable-static-fd or --disable-static-fd was given.
5019 if test "${enable_static_fd+set}" = set; then
5020 enableval="$enable_static_fd"
5021 if test x$enableval = xyes; then
5022 support_static_fd=yes
5027 if test x$support_static_fd = xyes; then
5028 STATIC_FD="static-bacula-fd"
5032 # -------------------------------------------
5033 # static-sd (default off)
5034 # -------------------------------------------
5035 # Check whether --enable-static-sd or --disable-static-sd was given.
5036 if test "${enable_static_sd+set}" = set; then
5037 enableval="$enable_static_sd"
5038 if test x$enableval = xyes; then
5039 support_static_sd=yes
5044 if test x$support_static_sd = xyes; then
5045 STATIC_SD="static-bacula-sd"
5049 # -------------------------------------------
5050 # static-dir (default off)
5051 # -------------------------------------------
5052 # Check whether --enable-static-dir or --disable-static-dir was given.
5053 if test "${enable_static_dir+set}" = set; then
5054 enableval="$enable_static_dir"
5055 if test x$enableval = xyes; then
5056 support_static_dir=yes
5061 if test x$support_static_dir = xyes; then
5062 STATIC_DIR="static-bacula-dir"
5066 # -------------------------------------------
5067 # static-cons (default off)
5068 # -------------------------------------------
5069 # Check whether --enable-static-cons or --disable-static-cons was given.
5070 if test "${enable_static_cons+set}" = set; then
5071 enableval="$enable_static_cons"
5072 if test x$enableval = xyes; then
5073 support_static_cons=yes
5080 if test x$support_static_cons = xyes; then
5081 STATIC_CONS="static-bconsole"
5082 STATIC_GNOME_CONS="static-gnome-console"
5083 STATIC_WX_CONS="static-wx-console"
5089 # -------------------------------------------
5090 # client_only (default off)
5091 # -------------------------------------------
5092 # Check whether --enable-client-only or --disable-client-only was given.
5093 if test "${enable_client_only+set}" = set; then
5094 enableval="$enable_client_only"
5095 if test x$enableval = xyes; then
5096 build_client_only=yes
5101 if test x$build_client_only = xno; then
5108 # ---------------------------------------------------
5109 # Check for conio (Bacula readline substitute)(
5110 # ---------------------------------------------------
5111 # this allows you to turn it completely off
5112 # Check whether --enable-conio or --disable-conio was given.
5113 if test "${enable_conio+set}" = set; then
5114 enableval="$enable_conio"
5115 if test x$enableval = xno; then
5121 if test x$support_conio = xyes; then
5122 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5123 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5124 if test "${ac_cv_header_stdc+set}" = set; then
5125 echo $ECHO_N "(cached) $ECHO_C" >&6
5127 cat >conftest.$ac_ext <<_ACEOF
5130 cat confdefs.h >>conftest.$ac_ext
5131 cat >>conftest.$ac_ext <<_ACEOF
5132 /* end confdefs.h. */
5146 rm -f conftest.$ac_objext
5147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5148 (eval $ac_compile) 2>conftest.er1
5150 grep -v '^ *+' conftest.er1 >conftest.err
5152 cat conftest.err >&5
5153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154 (exit $ac_status); } &&
5155 { ac_try='test -z "$ac_c_werror_flag"
5156 || test ! -s conftest.err'
5157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }; } &&
5162 { ac_try='test -s conftest.$ac_objext'
5163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); }; }; then
5168 ac_cv_header_stdc=yes
5170 echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5173 ac_cv_header_stdc=no
5175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5177 if test $ac_cv_header_stdc = yes; then
5178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5179 cat >conftest.$ac_ext <<_ACEOF
5182 cat confdefs.h >>conftest.$ac_ext
5183 cat >>conftest.$ac_ext <<_ACEOF
5184 /* end confdefs.h. */
5188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5189 $EGREP "memchr" >/dev/null 2>&1; then
5192 ac_cv_header_stdc=no
5198 if test $ac_cv_header_stdc = yes; then
5199 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5200 cat >conftest.$ac_ext <<_ACEOF
5203 cat confdefs.h >>conftest.$ac_ext
5204 cat >>conftest.$ac_ext <<_ACEOF
5205 /* end confdefs.h. */
5209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5210 $EGREP "free" >/dev/null 2>&1; then
5213 ac_cv_header_stdc=no
5219 if test $ac_cv_header_stdc = yes; then
5220 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5221 if test "$cross_compiling" = yes; then
5224 cat >conftest.$ac_ext <<_ACEOF
5227 cat confdefs.h >>conftest.$ac_ext
5228 cat >>conftest.$ac_ext <<_ACEOF
5229 /* end confdefs.h. */
5231 #if ((' ' & 0x0FF) == 0x020)
5232 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5233 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5235 # define ISLOWER(c) \
5236 (('a' <= (c) && (c) <= 'i') \
5237 || ('j' <= (c) && (c) <= 'r') \
5238 || ('s' <= (c) && (c) <= 'z'))
5239 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5242 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5247 for (i = 0; i < 256; i++)
5248 if (XOR (islower (i), ISLOWER (i))
5249 || toupper (i) != TOUPPER (i))
5254 rm -f conftest$ac_exeext
5255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5256 (eval $ac_link) 2>&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); }; }; then
5267 echo "$as_me: program exited with status $ac_status" >&5
5268 echo "$as_me: failed program was:" >&5
5269 sed 's/^/| /' conftest.$ac_ext >&5
5272 ac_cv_header_stdc=no
5274 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5278 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5279 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5280 if test $ac_cv_header_stdc = yes; then
5282 cat >>confdefs.h <<\_ACEOF
5283 #define STDC_HEADERS 1
5288 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5298 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5299 inttypes.h stdint.h unistd.h
5301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5302 echo "$as_me:$LINENO: checking for $ac_header" >&5
5303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5307 cat >conftest.$ac_ext <<_ACEOF
5310 cat confdefs.h >>conftest.$ac_ext
5311 cat >>conftest.$ac_ext <<_ACEOF
5312 /* end confdefs.h. */
5313 $ac_includes_default
5315 #include <$ac_header>
5317 rm -f conftest.$ac_objext
5318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319 (eval $ac_compile) 2>conftest.er1
5321 grep -v '^ *+' conftest.er1 >conftest.err
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } &&
5326 { ac_try='test -z "$ac_c_werror_flag"
5327 || test ! -s conftest.err'
5328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5332 (exit $ac_status); }; } &&
5333 { ac_try='test -s conftest.$ac_objext'
5334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; }; then
5339 eval "$as_ac_Header=yes"
5341 echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.$ac_ext >&5
5344 eval "$as_ac_Header=no"
5346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5348 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5349 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5351 cat >>confdefs.h <<_ACEOF
5352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5360 if test "${ac_cv_header_termcap_h+set}" = set; then
5361 echo "$as_me:$LINENO: checking for termcap.h" >&5
5362 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5363 if test "${ac_cv_header_termcap_h+set}" = set; then
5364 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5367 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5369 # Is the header compilable?
5370 echo "$as_me:$LINENO: checking termcap.h usability" >&5
5371 echo $ECHO_N "checking termcap.h usability... $ECHO_C" >&6
5372 cat >conftest.$ac_ext <<_ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h. */
5378 $ac_includes_default
5379 #include <termcap.h>
5381 rm -f conftest.$ac_objext
5382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5383 (eval $ac_compile) 2>conftest.er1
5385 grep -v '^ *+' conftest.er1 >conftest.err
5387 cat conftest.err >&5
5388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5389 (exit $ac_status); } &&
5390 { ac_try='test -z "$ac_c_werror_flag"
5391 || test ! -s conftest.err'
5392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5396 (exit $ac_status); }; } &&
5397 { ac_try='test -s conftest.$ac_objext'
5398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }; }; then
5403 ac_header_compiler=yes
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5408 ac_header_compiler=no
5410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5411 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5412 echo "${ECHO_T}$ac_header_compiler" >&6
5414 # Is the header present?
5415 echo "$as_me:$LINENO: checking termcap.h presence" >&5
5416 echo $ECHO_N "checking termcap.h presence... $ECHO_C" >&6
5417 cat >conftest.$ac_ext <<_ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5423 #include <termcap.h>
5425 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5426 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5428 grep -v '^ *+' conftest.er1 >conftest.err
5430 cat conftest.err >&5
5431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5432 (exit $ac_status); } >/dev/null; then
5433 if test -s conftest.err; then
5434 ac_cpp_err=$ac_c_preproc_warn_flag
5435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5442 if test -z "$ac_cpp_err"; then
5443 ac_header_preproc=yes
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5448 ac_header_preproc=no
5450 rm -f conftest.err conftest.$ac_ext
5451 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5452 echo "${ECHO_T}$ac_header_preproc" >&6
5454 # So? What about this header?
5455 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5457 { echo "$as_me:$LINENO: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
5458 echo "$as_me: WARNING: termcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5459 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the compiler's result" >&5
5460 echo "$as_me: WARNING: termcap.h: proceeding with the compiler's result" >&2;}
5461 ac_header_preproc=yes
5464 { echo "$as_me:$LINENO: WARNING: termcap.h: present but cannot be compiled" >&5
5465 echo "$as_me: WARNING: termcap.h: present but cannot be compiled" >&2;}
5466 { echo "$as_me:$LINENO: WARNING: termcap.h: check for missing prerequisite headers?" >&5
5467 echo "$as_me: WARNING: termcap.h: check for missing prerequisite headers?" >&2;}
5468 { echo "$as_me:$LINENO: WARNING: termcap.h: see the Autoconf documentation" >&5
5469 echo "$as_me: WARNING: termcap.h: see the Autoconf documentation" >&2;}
5470 { echo "$as_me:$LINENO: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&5
5471 echo "$as_me: WARNING: termcap.h: section \"Present But Cannot Be Compiled\"" >&2;}
5472 { echo "$as_me:$LINENO: WARNING: termcap.h: proceeding with the preprocessor's result" >&5
5473 echo "$as_me: WARNING: termcap.h: proceeding with the preprocessor's result" >&2;}
5474 { echo "$as_me:$LINENO: WARNING: termcap.h: in the future, the compiler will take precedence" >&5
5475 echo "$as_me: WARNING: termcap.h: in the future, the compiler will take precedence" >&2;}
5478 ## ------------------------------------------ ##
5479 ## Report this to the AC_PACKAGE_NAME lists. ##
5480 ## ------------------------------------------ ##
5483 sed "s/^/$as_me: WARNING: /" >&2
5486 echo "$as_me:$LINENO: checking for termcap.h" >&5
5487 echo $ECHO_N "checking for termcap.h... $ECHO_C" >&6
5488 if test "${ac_cv_header_termcap_h+set}" = set; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 ac_cv_header_termcap_h=$ac_header_preproc
5493 echo "$as_me:$LINENO: result: $ac_cv_header_termcap_h" >&5
5494 echo "${ECHO_T}$ac_cv_header_termcap_h" >&6
5497 if test $ac_cv_header_termcap_h = yes; then
5498 echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
5499 echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6
5500 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 ac_check_lib_save_LIBS=$LIBS
5504 LIBS="-ltermcap $LIBS"
5505 cat >conftest.$ac_ext <<_ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h. */
5512 /* Override any gcc2 internal prototype to avoid an error. */
5516 /* We use char because int might match the return type of a gcc2
5517 builtin and then its argument prototype would still apply. */
5527 rm -f conftest.$ac_objext conftest$ac_exeext
5528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5529 (eval $ac_link) 2>conftest.er1
5531 grep -v '^ *+' conftest.er1 >conftest.err
5533 cat conftest.err >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } &&
5536 { ac_try='test -z "$ac_c_werror_flag"
5537 || test ! -s conftest.err'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; } &&
5543 { ac_try='test -s conftest$ac_exeext'
5544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; }; then
5549 ac_cv_lib_termcap_tgetent=yes
5551 echo "$as_me: failed program was:" >&5
5552 sed 's/^/| /' conftest.$ac_ext >&5
5554 ac_cv_lib_termcap_tgetent=no
5556 rm -f conftest.err conftest.$ac_objext \
5557 conftest$ac_exeext conftest.$ac_ext
5558 LIBS=$ac_check_lib_save_LIBS
5560 echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
5561 echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6
5562 if test $ac_cv_lib_termcap_tgetent = yes; then
5563 CONS_LIBS="-ltermcap"
5569 cat >>confdefs.h <<\_ACEOF
5570 #define HAVE_CONIO 1
5575 echo "$as_me:$LINENO: checking for tgetent in -lncurses" >&5
5576 echo $ECHO_N "checking for tgetent in -lncurses... $ECHO_C" >&6
5577 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5580 ac_check_lib_save_LIBS=$LIBS
5581 LIBS="-lncurses $LIBS"
5582 cat >conftest.$ac_ext <<_ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5589 /* Override any gcc2 internal prototype to avoid an error. */
5593 /* We use char because int might match the return type of a gcc2
5594 builtin and then its argument prototype would still apply. */
5604 rm -f conftest.$ac_objext conftest$ac_exeext
5605 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5606 (eval $ac_link) 2>conftest.er1
5608 grep -v '^ *+' conftest.er1 >conftest.err
5610 cat conftest.err >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } &&
5613 { ac_try='test -z "$ac_c_werror_flag"
5614 || test ! -s conftest.err'
5615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); }; } &&
5620 { ac_try='test -s conftest$ac_exeext'
5621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); }; }; then
5626 ac_cv_lib_ncurses_tgetent=yes
5628 echo "$as_me: failed program was:" >&5
5629 sed 's/^/| /' conftest.$ac_ext >&5
5631 ac_cv_lib_ncurses_tgetent=no
5633 rm -f conftest.err conftest.$ac_objext \
5634 conftest$ac_exeext conftest.$ac_ext
5635 LIBS=$ac_check_lib_save_LIBS
5637 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tgetent" >&5
5638 echo "${ECHO_T}$ac_cv_lib_ncurses_tgetent" >&6
5639 if test $ac_cv_lib_ncurses_tgetent = yes; then
5640 CONS_LIBS="-lncurses"
5646 cat >>confdefs.h <<\_ACEOF
5647 #define HAVE_CONIO 1
5660 for ac_header in curses.h
5662 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5664 echo "$as_me:$LINENO: checking for $ac_header" >&5
5665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5666 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5669 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5670 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5672 # Is the header compilable?
5673 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5674 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5675 cat >conftest.$ac_ext <<_ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5681 $ac_includes_default
5682 #include <$ac_header>
5684 rm -f conftest.$ac_objext
5685 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5686 (eval $ac_compile) 2>conftest.er1
5688 grep -v '^ *+' conftest.er1 >conftest.err
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } &&
5693 { ac_try='test -z "$ac_c_werror_flag"
5694 || test ! -s conftest.err'
5695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }; } &&
5700 { ac_try='test -s conftest.$ac_objext'
5701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; }; then
5706 ac_header_compiler=yes
5708 echo "$as_me: failed program was:" >&5
5709 sed 's/^/| /' conftest.$ac_ext >&5
5711 ac_header_compiler=no
5713 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5714 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5715 echo "${ECHO_T}$ac_header_compiler" >&6
5717 # Is the header present?
5718 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5720 cat >conftest.$ac_ext <<_ACEOF
5723 cat confdefs.h >>conftest.$ac_ext
5724 cat >>conftest.$ac_ext <<_ACEOF
5725 /* end confdefs.h. */
5726 #include <$ac_header>
5728 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5729 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5731 grep -v '^ *+' conftest.er1 >conftest.err
5733 cat conftest.err >&5
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); } >/dev/null; then
5736 if test -s conftest.err; then
5737 ac_cpp_err=$ac_c_preproc_warn_flag
5738 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5745 if test -z "$ac_cpp_err"; then
5746 ac_header_preproc=yes
5748 echo "$as_me: failed program was:" >&5
5749 sed 's/^/| /' conftest.$ac_ext >&5
5751 ac_header_preproc=no
5753 rm -f conftest.err conftest.$ac_ext
5754 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5755 echo "${ECHO_T}$ac_header_preproc" >&6
5757 # So? What about this header?
5758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5764 ac_header_preproc=yes
5767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5774 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5781 ## ------------------------------------------ ##
5782 ## Report this to the AC_PACKAGE_NAME lists. ##
5783 ## ------------------------------------------ ##
5786 sed "s/^/$as_me: WARNING: /" >&2
5789 echo "$as_me:$LINENO: checking for $ac_header" >&5
5790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5791 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5792 echo $ECHO_N "(cached) $ECHO_C" >&6
5794 eval "$as_ac_Header=\$ac_header_preproc"
5796 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5797 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5801 cat >>confdefs.h <<_ACEOF
5802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5809 echo "$as_me:$LINENO: checking for term.h" >&5
5810 echo $ECHO_N "checking for term.h... $ECHO_C" >&6
5811 if test "${ac_cv_header_term_h+set}" = set; then
5812 echo $ECHO_N "(cached) $ECHO_C" >&6
5814 cat >conftest.$ac_ext <<_ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5827 rm -f conftest.$ac_objext
5828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5829 (eval $ac_compile) 2>conftest.er1
5831 grep -v '^ *+' conftest.er1 >conftest.err
5833 cat conftest.err >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } &&
5836 { ac_try='test -z "$ac_c_werror_flag"
5837 || test ! -s conftest.err'
5838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; } &&
5843 { ac_try='test -s conftest.$ac_objext'
5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5848 (exit $ac_status); }; }; then
5849 ac_cv_header_term_h=yes
5851 echo "$as_me: failed program was:" >&5
5852 sed 's/^/| /' conftest.$ac_ext >&5
5854 ac_cv_header_term_h=no
5856 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5858 echo "$as_me:$LINENO: result: $ac_cv_header_term_h" >&5
5859 echo "${ECHO_T}$ac_cv_header_term_h" >&6
5860 if test $ac_cv_header_term_h = yes; then
5861 echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
5862 echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6
5863 if test "${ac_cv_lib_curses_tgetent+set}" = set; then
5864 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 ac_check_lib_save_LIBS=$LIBS
5867 LIBS="-lcurses $LIBS"
5868 cat >conftest.$ac_ext <<_ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h. */
5875 /* Override any gcc2 internal prototype to avoid an error. */
5879 /* We use char because int might match the return type of a gcc2
5880 builtin and then its argument prototype would still apply. */
5890 rm -f conftest.$ac_objext conftest$ac_exeext
5891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5892 (eval $ac_link) 2>conftest.er1
5894 grep -v '^ *+' conftest.er1 >conftest.err
5896 cat conftest.err >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); } &&
5899 { ac_try='test -z "$ac_c_werror_flag"
5900 || test ! -s conftest.err'
5901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; } &&
5906 { ac_try='test -s conftest$ac_exeext'
5907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); }; }; then
5912 ac_cv_lib_curses_tgetent=yes
5914 echo "$as_me: failed program was:" >&5
5915 sed 's/^/| /' conftest.$ac_ext >&5
5917 ac_cv_lib_curses_tgetent=no
5919 rm -f conftest.err conftest.$ac_objext \
5920 conftest$ac_exeext conftest.$ac_ext
5921 LIBS=$ac_check_lib_save_LIBS
5923 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
5924 echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6
5925 if test $ac_cv_lib_curses_tgetent = yes; then
5926 CONS_LIBS="-lcurses"
5932 cat >>confdefs.h <<\_ACEOF
5933 #define HAVE_CONIO 1
5941 echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
5952 # ---------------------------------------------------
5953 # Check for readline support/directory (default off)
5954 # ---------------------------------------------------
5955 # this allows you to turn it completely off
5956 # Check whether --enable-readline or --disable-readline was given.
5957 if test "${enable_readline+set}" = set; then
5958 enableval="$enable_readline"
5959 if test x$enableval = xno; then
5966 if test x$support_readline = xyes; then
5968 # Check whether --with-readline or --without-readline was given.
5969 if test "${with_readline+set}" = set; then
5970 withval="$with_readline"
5972 case "$with_readline" in
5975 if test -f ${with_readline}/readline.h; then
5976 CONS_INC="-I${with_readline}"
5977 CONS_LDFLAGS="-L$with_readline"
5978 elif test -f ${with_readline}/include/readline/readline.h; then
5979 CONS_INC="-I${with_readline}/include/readline"
5980 CONS_LDFLAGS="-L${with_readline}/lib"
5981 with_readline="${with_readline}/include/readline"
5983 with_readline="/usr/include/readline"
5985 as_ac_Header=`echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
5986 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5987 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
5988 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
5989 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5993 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5995 # Is the header compilable?
5996 echo "$as_me:$LINENO: checking ${with_readline}/readline.h usability" >&5
5997 echo $ECHO_N "checking ${with_readline}/readline.h usability... $ECHO_C" >&6
5998 cat >conftest.$ac_ext <<_ACEOF
6001 cat confdefs.h >>conftest.$ac_ext
6002 cat >>conftest.$ac_ext <<_ACEOF
6003 /* end confdefs.h. */
6004 $ac_includes_default
6005 #include <${with_readline}/readline.h>
6007 rm -f conftest.$ac_objext
6008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6009 (eval $ac_compile) 2>conftest.er1
6011 grep -v '^ *+' conftest.er1 >conftest.err
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); } &&
6016 { ac_try='test -z "$ac_c_werror_flag"
6017 || test ! -s conftest.err'
6018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); }; } &&
6023 { ac_try='test -s conftest.$ac_objext'
6024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); }; }; then
6029 ac_header_compiler=yes
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 ac_header_compiler=no
6036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6037 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6038 echo "${ECHO_T}$ac_header_compiler" >&6
6040 # Is the header present?
6041 echo "$as_me:$LINENO: checking ${with_readline}/readline.h presence" >&5
6042 echo $ECHO_N "checking ${with_readline}/readline.h presence... $ECHO_C" >&6
6043 cat >conftest.$ac_ext <<_ACEOF
6046 cat confdefs.h >>conftest.$ac_ext
6047 cat >>conftest.$ac_ext <<_ACEOF
6048 /* end confdefs.h. */
6049 #include <${with_readline}/readline.h>
6051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6054 grep -v '^ *+' conftest.er1 >conftest.err
6056 cat conftest.err >&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } >/dev/null; then
6059 if test -s conftest.err; then
6060 ac_cpp_err=$ac_c_preproc_warn_flag
6061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6068 if test -z "$ac_cpp_err"; then
6069 ac_header_preproc=yes
6071 echo "$as_me: failed program was:" >&5
6072 sed 's/^/| /' conftest.$ac_ext >&5
6074 ac_header_preproc=no
6076 rm -f conftest.err conftest.$ac_ext
6077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6078 echo "${ECHO_T}$ac_header_preproc" >&6
6080 # So? What about this header?
6081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6083 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6084 echo "$as_me: WARNING: ${with_readline}/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6085 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&5
6086 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the compiler's result" >&2;}
6087 ac_header_preproc=yes
6090 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&5
6091 echo "$as_me: WARNING: ${with_readline}/readline.h: present but cannot be compiled" >&2;}
6092 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&5
6093 echo "$as_me: WARNING: ${with_readline}/readline.h: check for missing prerequisite headers?" >&2;}
6094 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&5
6095 echo "$as_me: WARNING: ${with_readline}/readline.h: see the Autoconf documentation" >&2;}
6096 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6097 echo "$as_me: WARNING: ${with_readline}/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6098 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&5
6099 echo "$as_me: WARNING: ${with_readline}/readline.h: proceeding with the preprocessor's result" >&2;}
6100 { echo "$as_me:$LINENO: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&5
6101 echo "$as_me: WARNING: ${with_readline}/readline.h: in the future, the compiler will take precedence" >&2;}
6104 ## ------------------------------------------ ##
6105 ## Report this to the AC_PACKAGE_NAME lists. ##
6106 ## ------------------------------------------ ##
6109 sed "s/^/$as_me: WARNING: /" >&2
6112 echo "$as_me:$LINENO: checking for ${with_readline}/readline.h" >&5
6113 echo $ECHO_N "checking for ${with_readline}/readline.h... $ECHO_C" >&6
6114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 eval "$as_ac_Header=\$ac_header_preproc"
6119 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6120 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6123 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6124 cat >>confdefs.h <<\_ACEOF
6125 #define HAVE_READLINE 1
6128 CONS_LIBS="-lreadline -lhistory -ltermcap"
6133 echo "readline.h not found. readline turned off ..."
6145 # check for standard readline library
6146 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6147 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6148 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6149 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6153 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6155 # Is the header compilable?
6156 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h usability" >&5
6157 echo $ECHO_N "checking /usr/include/readline/readline.h usability... $ECHO_C" >&6
6158 cat >conftest.$ac_ext <<_ACEOF
6161 cat confdefs.h >>conftest.$ac_ext
6162 cat >>conftest.$ac_ext <<_ACEOF
6163 /* end confdefs.h. */
6164 $ac_includes_default
6165 #include </usr/include/readline/readline.h>
6167 rm -f conftest.$ac_objext
6168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6169 (eval $ac_compile) 2>conftest.er1
6171 grep -v '^ *+' conftest.er1 >conftest.err
6173 cat conftest.err >&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } &&
6176 { ac_try='test -z "$ac_c_werror_flag"
6177 || test ! -s conftest.err'
6178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; } &&
6183 { ac_try='test -s conftest.$ac_objext'
6184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); }; }; then
6189 ac_header_compiler=yes
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6194 ac_header_compiler=no
6196 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6197 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6198 echo "${ECHO_T}$ac_header_compiler" >&6
6200 # Is the header present?
6201 echo "$as_me:$LINENO: checking /usr/include/readline/readline.h presence" >&5
6202 echo $ECHO_N "checking /usr/include/readline/readline.h presence... $ECHO_C" >&6
6203 cat >conftest.$ac_ext <<_ACEOF
6206 cat confdefs.h >>conftest.$ac_ext
6207 cat >>conftest.$ac_ext <<_ACEOF
6208 /* end confdefs.h. */
6209 #include </usr/include/readline/readline.h>
6211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6214 grep -v '^ *+' conftest.er1 >conftest.err
6216 cat conftest.err >&5
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); } >/dev/null; then
6219 if test -s conftest.err; then
6220 ac_cpp_err=$ac_c_preproc_warn_flag
6221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6228 if test -z "$ac_cpp_err"; then
6229 ac_header_preproc=yes
6231 echo "$as_me: failed program was:" >&5
6232 sed 's/^/| /' conftest.$ac_ext >&5
6234 ac_header_preproc=no
6236 rm -f conftest.err conftest.$ac_ext
6237 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6238 echo "${ECHO_T}$ac_header_preproc" >&6
6240 # So? What about this header?
6241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6243 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6244 echo "$as_me: WARNING: /usr/include/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6245 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&5
6246 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the compiler's result" >&2;}
6247 ac_header_preproc=yes
6250 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&5
6251 echo "$as_me: WARNING: /usr/include/readline/readline.h: present but cannot be compiled" >&2;}
6252 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&5
6253 echo "$as_me: WARNING: /usr/include/readline/readline.h: check for missing prerequisite headers?" >&2;}
6254 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&5
6255 echo "$as_me: WARNING: /usr/include/readline/readline.h: see the Autoconf documentation" >&2;}
6256 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6257 echo "$as_me: WARNING: /usr/include/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6258 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&5
6259 echo "$as_me: WARNING: /usr/include/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6260 { echo "$as_me:$LINENO: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&5
6261 echo "$as_me: WARNING: /usr/include/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6264 ## ------------------------------------------ ##
6265 ## Report this to the AC_PACKAGE_NAME lists. ##
6266 ## ------------------------------------------ ##
6269 sed "s/^/$as_me: WARNING: /" >&2
6272 echo "$as_me:$LINENO: checking for /usr/include/readline/readline.h" >&5
6273 echo $ECHO_N "checking for /usr/include/readline/readline.h... $ECHO_C" >&6
6274 if test "${ac_cv_header__usr_include_readline_readline_h+set}" = set; then
6275 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 ac_cv_header__usr_include_readline_readline_h=$ac_header_preproc
6279 echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_readline_readline_h" >&5
6280 echo "${ECHO_T}$ac_cv_header__usr_include_readline_readline_h" >&6
6283 if test $ac_cv_header__usr_include_readline_readline_h = yes; then
6284 cat >>confdefs.h <<\_ACEOF
6285 #define HAVE_READLINE 1
6289 CONS_INC="-I/usr/include/readline"
6290 CONS_LIBS="-lreadline -ltermcap"
6294 # Did not find standard library, so try Bacula's default
6295 as_ac_Header=`echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
6296 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6297 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6298 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6303 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6305 # Is the header compilable?
6306 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h usability" >&5
6307 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h usability... $ECHO_C" >&6
6308 cat >conftest.$ac_ext <<_ACEOF
6311 cat confdefs.h >>conftest.$ac_ext
6312 cat >>conftest.$ac_ext <<_ACEOF
6313 /* end confdefs.h. */
6314 $ac_includes_default
6315 #include <${TOP_DIR}/depkgs/readline/readline.h>
6317 rm -f conftest.$ac_objext
6318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6319 (eval $ac_compile) 2>conftest.er1
6321 grep -v '^ *+' conftest.er1 >conftest.err
6323 cat conftest.err >&5
6324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6325 (exit $ac_status); } &&
6326 { ac_try='test -z "$ac_c_werror_flag"
6327 || test ! -s conftest.err'
6328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332 (exit $ac_status); }; } &&
6333 { ac_try='test -s conftest.$ac_objext'
6334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); }; }; then
6339 ac_header_compiler=yes
6341 echo "$as_me: failed program was:" >&5
6342 sed 's/^/| /' conftest.$ac_ext >&5
6344 ac_header_compiler=no
6346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6347 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6348 echo "${ECHO_T}$ac_header_compiler" >&6
6350 # Is the header present?
6351 echo "$as_me:$LINENO: checking ${TOP_DIR}/depkgs/readline/readline.h presence" >&5
6352 echo $ECHO_N "checking ${TOP_DIR}/depkgs/readline/readline.h presence... $ECHO_C" >&6
6353 cat >conftest.$ac_ext <<_ACEOF
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h. */
6359 #include <${TOP_DIR}/depkgs/readline/readline.h>
6361 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6364 grep -v '^ *+' conftest.er1 >conftest.err
6366 cat conftest.err >&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); } >/dev/null; then
6369 if test -s conftest.err; then
6370 ac_cpp_err=$ac_c_preproc_warn_flag
6371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6378 if test -z "$ac_cpp_err"; then
6379 ac_header_preproc=yes
6381 echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6384 ac_header_preproc=no
6386 rm -f conftest.err conftest.$ac_ext
6387 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6388 echo "${ECHO_T}$ac_header_preproc" >&6
6390 # So? What about this header?
6391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6393 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
6394 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6395 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&5
6396 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the compiler's result" >&2;}
6397 ac_header_preproc=yes
6400 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&5
6401 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: present but cannot be compiled" >&2;}
6402 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&5
6403 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: check for missing prerequisite headers?" >&2;}
6404 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&5
6405 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: see the Autoconf documentation" >&2;}
6406 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
6407 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
6408 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&5
6409 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: proceeding with the preprocessor's result" >&2;}
6410 { echo "$as_me:$LINENO: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&5
6411 echo "$as_me: WARNING: ${TOP_DIR}/depkgs/readline/readline.h: in the future, the compiler will take precedence" >&2;}
6414 ## ------------------------------------------ ##
6415 ## Report this to the AC_PACKAGE_NAME lists. ##
6416 ## ------------------------------------------ ##
6419 sed "s/^/$as_me: WARNING: /" >&2
6422 echo "$as_me:$LINENO: checking for ${TOP_DIR}/depkgs/readline/readline.h" >&5
6423 echo $ECHO_N "checking for ${TOP_DIR}/depkgs/readline/readline.h... $ECHO_C" >&6
6424 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 eval "$as_ac_Header=\$ac_header_preproc"
6429 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6430 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6434 cat >>confdefs.h <<\_ACEOF
6435 #define HAVE_READLINE 1
6439 CONS_INC="-I${TOP_DIR}/depkgs/readline"
6440 CONS_LIBS="-lreadline -lhistory -ltermcap"
6441 CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
6442 PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
6446 echo "readline.h not found. readline turned off ..."
6472 # Minimal stuff for readline Makefile configuration
6475 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6476 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
6477 if test "${ac_cv_header_stat_broken+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 cat >conftest.$ac_ext <<_ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h. */
6486 #include <sys/types.h>
6487 #include <sys/stat.h>
6489 #if defined(S_ISBLK) && defined(S_IFDIR)
6490 # if S_ISBLK (S_IFDIR)
6495 #if defined(S_ISBLK) && defined(S_IFCHR)
6496 # if S_ISBLK (S_IFCHR)
6501 #if defined(S_ISLNK) && defined(S_IFREG)
6502 # if S_ISLNK (S_IFREG)
6507 #if defined(S_ISSOCK) && defined(S_IFREG)
6508 # if S_ISSOCK (S_IFREG)
6514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6515 $EGREP "You lose" >/dev/null 2>&1; then
6516 ac_cv_header_stat_broken=yes
6518 ac_cv_header_stat_broken=no
6523 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6524 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
6525 if test $ac_cv_header_stat_broken = yes; then
6527 cat >>confdefs.h <<\_ACEOF
6528 #define STAT_MACROS_BROKEN 1
6539 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6540 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6541 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6542 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6543 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6544 echo $ECHO_N "(cached) $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 #include <sys/types.h>
6564 rm -f conftest.$ac_objext
6565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6566 (eval $ac_compile) 2>conftest.er1
6568 grep -v '^ *+' conftest.er1 >conftest.err
6570 cat conftest.err >&5
6571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6572 (exit $ac_status); } &&
6573 { ac_try='test -z "$ac_c_werror_flag"
6574 || test ! -s conftest.err'
6575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6579 (exit $ac_status); }; } &&
6580 { ac_try='test -s conftest.$ac_objext'
6581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; }; then
6586 eval "$as_ac_Header=yes"
6588 echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6591 eval "$as_ac_Header=no"
6593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6596 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6598 cat >>confdefs.h <<_ACEOF
6599 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6602 ac_header_dirent=$ac_hdr; break
6606 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6607 if test $ac_header_dirent = dirent.h; then
6608 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6609 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6610 if test "${ac_cv_search_opendir+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 ac_func_search_save_LIBS=$LIBS
6614 ac_cv_search_opendir=no
6615 cat >conftest.$ac_ext <<_ACEOF
6618 cat confdefs.h >>conftest.$ac_ext
6619 cat >>conftest.$ac_ext <<_ACEOF
6620 /* end confdefs.h. */
6622 /* Override any gcc2 internal prototype to avoid an error. */
6626 /* We use char because int might match the return type of a gcc2
6627 builtin and then its argument prototype would still apply. */
6637 rm -f conftest.$ac_objext conftest$ac_exeext
6638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6639 (eval $ac_link) 2>conftest.er1
6641 grep -v '^ *+' conftest.er1 >conftest.err
6643 cat conftest.err >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } &&
6646 { ac_try='test -z "$ac_c_werror_flag"
6647 || test ! -s conftest.err'
6648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); }; } &&
6653 { ac_try='test -s conftest$ac_exeext'
6654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); }; }; then
6659 ac_cv_search_opendir="none required"
6661 echo "$as_me: failed program was:" >&5
6662 sed 's/^/| /' conftest.$ac_ext >&5
6665 rm -f conftest.err conftest.$ac_objext \
6666 conftest$ac_exeext conftest.$ac_ext
6667 if test "$ac_cv_search_opendir" = no; then
6668 for ac_lib in dir; do
6669 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6670 cat >conftest.$ac_ext <<_ACEOF
6673 cat confdefs.h >>conftest.$ac_ext
6674 cat >>conftest.$ac_ext <<_ACEOF
6675 /* end confdefs.h. */
6677 /* Override any gcc2 internal prototype to avoid an error. */
6681 /* We use char because int might match the return type of a gcc2
6682 builtin and then its argument prototype would still apply. */
6692 rm -f conftest.$ac_objext conftest$ac_exeext
6693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6694 (eval $ac_link) 2>conftest.er1
6696 grep -v '^ *+' conftest.er1 >conftest.err
6698 cat conftest.err >&5
6699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6700 (exit $ac_status); } &&
6701 { ac_try='test -z "$ac_c_werror_flag"
6702 || test ! -s conftest.err'
6703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); }; } &&
6708 { ac_try='test -s conftest$ac_exeext'
6709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6713 (exit $ac_status); }; }; then
6714 ac_cv_search_opendir="-l$ac_lib"
6717 echo "$as_me: failed program was:" >&5
6718 sed 's/^/| /' conftest.$ac_ext >&5
6721 rm -f conftest.err conftest.$ac_objext \
6722 conftest$ac_exeext conftest.$ac_ext
6725 LIBS=$ac_func_search_save_LIBS
6727 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6728 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6729 if test "$ac_cv_search_opendir" != no; then
6730 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6735 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6736 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6737 if test "${ac_cv_search_opendir+set}" = set; then
6738 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 ac_func_search_save_LIBS=$LIBS
6741 ac_cv_search_opendir=no
6742 cat >conftest.$ac_ext <<_ACEOF
6745 cat confdefs.h >>conftest.$ac_ext
6746 cat >>conftest.$ac_ext <<_ACEOF
6747 /* end confdefs.h. */
6749 /* Override any gcc2 internal prototype to avoid an error. */
6753 /* We use char because int might match the return type of a gcc2
6754 builtin and then its argument prototype would still apply. */
6764 rm -f conftest.$ac_objext conftest$ac_exeext
6765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6766 (eval $ac_link) 2>conftest.er1
6768 grep -v '^ *+' conftest.er1 >conftest.err
6770 cat conftest.err >&5
6771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6772 (exit $ac_status); } &&
6773 { ac_try='test -z "$ac_c_werror_flag"
6774 || test ! -s conftest.err'
6775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); }; } &&
6780 { ac_try='test -s conftest$ac_exeext'
6781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); }; }; then
6786 ac_cv_search_opendir="none required"
6788 echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.$ac_ext >&5
6792 rm -f conftest.err conftest.$ac_objext \
6793 conftest$ac_exeext conftest.$ac_ext
6794 if test "$ac_cv_search_opendir" = no; then
6796 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6797 cat >conftest.$ac_ext <<_ACEOF
6800 cat confdefs.h >>conftest.$ac_ext
6801 cat >>conftest.$ac_ext <<_ACEOF
6802 /* end confdefs.h. */
6804 /* Override any gcc2 internal prototype to avoid an error. */
6808 /* We use char because int might match the return type of a gcc2
6809 builtin and then its argument prototype would still apply. */
6819 rm -f conftest.$ac_objext conftest$ac_exeext
6820 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6821 (eval $ac_link) 2>conftest.er1
6823 grep -v '^ *+' conftest.er1 >conftest.err
6825 cat conftest.err >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } &&
6828 { ac_try='test -z "$ac_c_werror_flag"
6829 || test ! -s conftest.err'
6830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); }; } &&
6835 { ac_try='test -s conftest$ac_exeext'
6836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); }; }; then
6841 ac_cv_search_opendir="-l$ac_lib"
6844 echo "$as_me: failed program was:" >&5
6845 sed 's/^/| /' conftest.$ac_ext >&5
6848 rm -f conftest.err conftest.$ac_objext \
6849 conftest$ac_exeext conftest.$ac_ext
6852 LIBS=$ac_func_search_save_LIBS
6854 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6855 echo "${ECHO_T}$ac_cv_search_opendir" >&6
6856 if test "$ac_cv_search_opendir" != no; then
6857 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6871 for ac_func in strcasecmp select setenv putenv tcgetattr setlocale lstat lchown
6873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6874 echo "$as_me:$LINENO: checking for $ac_func" >&5
6875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6876 if eval "test \"\${$as_ac_var+set}\" = set"; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 cat >conftest.$ac_ext <<_ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6887 #define $ac_func innocuous_$ac_func
6889 /* System header to define __stub macros and hopefully few prototypes,
6890 which can conflict with char $ac_func (); below.
6891 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6892 <limits.h> exists even on freestanding compilers. */
6895 # include <limits.h>
6897 # include <assert.h>
6902 /* Override any gcc2 internal prototype to avoid an error. */
6907 /* We use char because int might match the return type of a gcc2
6908 builtin and then its argument prototype would still apply. */
6910 /* The GNU C library defines this for functions which it implements
6911 to always fail with ENOSYS. Some functions are actually named
6912 something starting with __ and the normal name is an alias. */
6913 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6916 char (*f) () = $ac_func;
6925 return f != $ac_func;
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 eval "$as_ac_var=yes"
6954 echo "$as_me: failed program was:" >&5
6955 sed 's/^/| /' conftest.$ac_ext >&5
6957 eval "$as_ac_var=no"
6959 rm -f conftest.err conftest.$ac_objext \
6960 conftest$ac_exeext conftest.$ac_ext
6962 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6963 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6964 if test `eval echo '${'$as_ac_var'}'` = yes; then
6965 cat >>confdefs.h <<_ACEOF
6966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6974 for ac_func in nanosleep nl_langinfo
6976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6977 echo "$as_me:$LINENO: checking for $ac_func" >&5
6978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6979 if eval "test \"\${$as_ac_var+set}\" = set"; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 cat >conftest.$ac_ext <<_ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6990 #define $ac_func innocuous_$ac_func
6992 /* System header to define __stub macros and hopefully few prototypes,
6993 which can conflict with char $ac_func (); below.
6994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6995 <limits.h> exists even on freestanding compilers. */
6998 # include <limits.h>
7000 # include <assert.h>
7005 /* Override any gcc2 internal prototype to avoid an error. */
7010 /* We use char because int might match the return type of a gcc2
7011 builtin and then its argument prototype would still apply. */
7013 /* The GNU C library defines this for functions which it implements
7014 to always fail with ENOSYS. Some functions are actually named
7015 something starting with __ and the normal name is an alias. */
7016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7019 char (*f) () = $ac_func;
7028 return f != $ac_func;
7033 rm -f conftest.$ac_objext conftest$ac_exeext
7034 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7035 (eval $ac_link) 2>conftest.er1
7037 grep -v '^ *+' conftest.er1 >conftest.err
7039 cat conftest.err >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } &&
7042 { ac_try='test -z "$ac_c_werror_flag"
7043 || test ! -s conftest.err'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; } &&
7049 { ac_try='test -s conftest$ac_exeext'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; }; then
7055 eval "$as_ac_var=yes"
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7060 eval "$as_ac_var=no"
7062 rm -f conftest.err conftest.$ac_objext \
7063 conftest$ac_exeext conftest.$ac_ext
7065 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7066 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7067 if test `eval echo '${'$as_ac_var'}'` = yes; then
7068 cat >>confdefs.h <<_ACEOF
7069 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7076 for ac_header in varargs.h
7078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7079 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7080 echo "$as_me:$LINENO: checking for $ac_header" >&5
7081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7082 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7085 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7086 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7088 # Is the header compilable?
7089 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7090 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7091 cat >conftest.$ac_ext <<_ACEOF
7094 cat confdefs.h >>conftest.$ac_ext
7095 cat >>conftest.$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7097 $ac_includes_default
7098 #include <$ac_header>
7100 rm -f conftest.$ac_objext
7101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7102 (eval $ac_compile) 2>conftest.er1
7104 grep -v '^ *+' conftest.er1 >conftest.err
7106 cat conftest.err >&5
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); } &&
7109 { ac_try='test -z "$ac_c_werror_flag"
7110 || test ! -s conftest.err'
7111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115 (exit $ac_status); }; } &&
7116 { ac_try='test -s conftest.$ac_objext'
7117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); }; }; then
7122 ac_header_compiler=yes
7124 echo "$as_me: failed program was:" >&5
7125 sed 's/^/| /' conftest.$ac_ext >&5
7127 ac_header_compiler=no
7129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7131 echo "${ECHO_T}$ac_header_compiler" >&6
7133 # Is the header present?
7134 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7136 cat >conftest.$ac_ext <<_ACEOF
7139 cat confdefs.h >>conftest.$ac_ext
7140 cat >>conftest.$ac_ext <<_ACEOF
7141 /* end confdefs.h. */
7142 #include <$ac_header>
7144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7147 grep -v '^ *+' conftest.er1 >conftest.err
7149 cat conftest.err >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } >/dev/null; then
7152 if test -s conftest.err; then
7153 ac_cpp_err=$ac_c_preproc_warn_flag
7154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7161 if test -z "$ac_cpp_err"; then
7162 ac_header_preproc=yes
7164 echo "$as_me: failed program was:" >&5
7165 sed 's/^/| /' conftest.$ac_ext >&5
7167 ac_header_preproc=no
7169 rm -f conftest.err conftest.$ac_ext
7170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7171 echo "${ECHO_T}$ac_header_preproc" >&6
7173 # So? What about this header?
7174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7176 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7177 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7178 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7180 ac_header_preproc=yes
7183 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7184 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7185 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7186 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7187 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7188 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7189 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7190 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7191 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7193 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7194 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7197 ## ------------------------------------------ ##
7198 ## Report this to the AC_PACKAGE_NAME lists. ##
7199 ## ------------------------------------------ ##
7202 sed "s/^/$as_me: WARNING: /" >&2
7205 echo "$as_me:$LINENO: checking for $ac_header" >&5
7206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7207 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 eval "$as_ac_Header=\$ac_header_preproc"
7212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7217 cat >>confdefs.h <<_ACEOF
7218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7226 # End of readline/conio stuff
7227 # -----------------------------------------------------------------------
7229 # -----------------------------------------------------------------------
7230 # Check for Python support
7232 echo "$as_me:$LINENO: checking for Python support" >&5
7233 echo $ECHO_N "checking for Python support... $ECHO_C" >&6
7235 # Check whether --with-python or --without-python was given.
7236 if test "${with_python+set}" = set; then
7237 withval="$with_python"
7241 if test "$withval" != "no"; then
7242 if test "$withval" = "yes"; then
7243 for python_root in /usr /usr/local; do
7244 if test -f $python_root/include/python2.2/Python.h; then
7245 PYTHON_INCDIR=-I$python_root/include/python2.2
7246 PYTHON_LIBS="-L$python_root/lib/python2.2/config -lpython2.2"
7248 elif test -f $python_root/include/python2.3/Python.h; then
7249 PYTHON_INCDIR=-I$python_root/include/python2.3
7250 PYTHON_LIBS="-L$python_root/lib/python2.3/config -lpython2.3"
7252 elif test -f $python_root/include/python2.4/Python.h; then
7253 PYTHON_INCDIR=-I$python_root/include/python2.4
7254 PYTHON_LIBS="-L$python_root/lib/python2.4/config -lpython2.4"
7258 if test x$PYTHON_INCDIR = x; then
7259 if test -f $prefix/include/Python.h; then
7260 PYTHON_INCDIR=-I$prefix/include
7261 PYTHON_LIBS="-L$prefix/lib/config -lpython"
7263 echo "$as_me:$LINENO: result: no" >&5
7264 echo "${ECHO_T}no" >&6
7265 { { echo "$as_me:$LINENO: error: Unable to find Python.h in standard locations" >&5
7266 echo "$as_me: error: Unable to find Python.h in standard locations" >&2;}
7267 { (exit 1); exit 1; }; }
7271 if test -f $withval/Python.h; then
7272 PYTHON_INCDIR=-I$withval
7273 PYTHON_LIBS="-L$withval/config -lpython"
7274 elif test -f $withval/include/Python.h; then
7275 PYTHON_INCDIR=-I$withval/include
7276 PYTHON_LIBS="-L$withval/lib/config -lpython"
7277 elif test -f $withval/include/python/Python.h; then
7278 PYTHON_INCDIR=-I$withval/include/python
7279 PYTHON_LIBS="-L$withval/lib/python/config -lpython"
7281 echo "$as_me:$LINENO: result: no" >&5
7282 echo "${ECHO_T}no" >&6
7283 { { echo "$as_me:$LINENO: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&5
7284 echo "$as_me: error: Invalid Python directory $withval - unable to find Python.h under $withval" >&2;}
7285 { (exit 1); exit 1; }; }
7288 cat >>confdefs.h <<\_ACEOF
7289 #define HAVE_PYTHON 1
7292 echo "$as_me:$LINENO: result: yes" >&5
7293 echo "${ECHO_T}yes" >&6
7295 { echo "$as_me:$LINENO: checking for more Python libs" >&5
7296 echo "$as_me: checking for more Python libs" >&6;}
7297 saved_LIBS="$LIBS"; LIBS=
7298 echo "$as_me:$LINENO: checking for library containing shm_open" >&5
7299 echo $ECHO_N "checking for library containing shm_open... $ECHO_C" >&6
7300 if test "${ac_cv_search_shm_open+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 ac_func_search_save_LIBS=$LIBS
7304 ac_cv_search_shm_open=no
7305 cat >conftest.$ac_ext <<_ACEOF
7308 cat confdefs.h >>conftest.$ac_ext
7309 cat >>conftest.$ac_ext <<_ACEOF
7310 /* end confdefs.h. */
7312 /* Override any gcc2 internal prototype to avoid an error. */
7316 /* We use char because int might match the return type of a gcc2
7317 builtin and then its argument prototype would still apply. */
7327 rm -f conftest.$ac_objext conftest$ac_exeext
7328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7329 (eval $ac_link) 2>conftest.er1
7331 grep -v '^ *+' conftest.er1 >conftest.err
7333 cat conftest.err >&5
7334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7335 (exit $ac_status); } &&
7336 { ac_try='test -z "$ac_c_werror_flag"
7337 || test ! -s conftest.err'
7338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }; } &&
7343 { ac_try='test -s conftest$ac_exeext'
7344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); }; }; then
7349 ac_cv_search_shm_open="none required"
7351 echo "$as_me: failed program was:" >&5
7352 sed 's/^/| /' conftest.$ac_ext >&5
7355 rm -f conftest.err conftest.$ac_objext \
7356 conftest$ac_exeext conftest.$ac_ext
7357 if test "$ac_cv_search_shm_open" = no; then
7358 for ac_lib in rt; do
7359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7360 cat >conftest.$ac_ext <<_ACEOF
7363 cat confdefs.h >>conftest.$ac_ext
7364 cat >>conftest.$ac_ext <<_ACEOF
7365 /* end confdefs.h. */
7367 /* Override any gcc2 internal prototype to avoid an error. */
7371 /* We use char because int might match the return type of a gcc2
7372 builtin and then its argument prototype would still apply. */
7382 rm -f conftest.$ac_objext conftest$ac_exeext
7383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7384 (eval $ac_link) 2>conftest.er1
7386 grep -v '^ *+' conftest.er1 >conftest.err
7388 cat conftest.err >&5
7389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7390 (exit $ac_status); } &&
7391 { ac_try='test -z "$ac_c_werror_flag"
7392 || test ! -s conftest.err'
7393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7397 (exit $ac_status); }; } &&
7398 { ac_try='test -s conftest$ac_exeext'
7399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); }; }; then
7404 ac_cv_search_shm_open="-l$ac_lib"
7407 echo "$as_me: failed program was:" >&5
7408 sed 's/^/| /' conftest.$ac_ext >&5
7411 rm -f conftest.err conftest.$ac_objext \
7412 conftest$ac_exeext conftest.$ac_ext
7415 LIBS=$ac_func_search_save_LIBS
7417 echo "$as_me:$LINENO: result: $ac_cv_search_shm_open" >&5
7418 echo "${ECHO_T}$ac_cv_search_shm_open" >&6
7419 if test "$ac_cv_search_shm_open" != no; then
7420 test "$ac_cv_search_shm_open" = "none required" || LIBS="$ac_cv_search_shm_open $LIBS"
7425 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
7426 echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
7427 if test "${ac_cv_lib_util_openpty+set}" = set; then
7428 echo $ECHO_N "(cached) $ECHO_C" >&6
7430 ac_check_lib_save_LIBS=$LIBS
7432 cat >conftest.$ac_ext <<_ACEOF
7435 cat confdefs.h >>conftest.$ac_ext
7436 cat >>conftest.$ac_ext <<_ACEOF
7437 /* end confdefs.h. */
7439 /* Override any gcc2 internal prototype to avoid an error. */
7443 /* We use char because int might match the return type of a gcc2
7444 builtin and then its argument prototype would still apply. */
7454 rm -f conftest.$ac_objext conftest$ac_exeext
7455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7456 (eval $ac_link) 2>conftest.er1
7458 grep -v '^ *+' conftest.er1 >conftest.err
7460 cat conftest.err >&5
7461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7462 (exit $ac_status); } &&
7463 { ac_try='test -z "$ac_c_werror_flag"
7464 || test ! -s conftest.err'
7465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7469 (exit $ac_status); }; } &&
7470 { ac_try='test -s conftest$ac_exeext'
7471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); }; }; then
7476 ac_cv_lib_util_openpty=yes
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7481 ac_cv_lib_util_openpty=no
7483 rm -f conftest.err conftest.$ac_objext \
7484 conftest$ac_exeext conftest.$ac_ext
7485 LIBS=$ac_check_lib_save_LIBS
7487 echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
7488 echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6
7489 if test $ac_cv_lib_util_openpty = yes; then
7490 cat >>confdefs.h <<_ACEOF
7491 #define HAVE_LIBUTIL 1
7498 PYTHON_LIBS="$PYTHON_LIBS $LIBS"
7501 echo "$as_me:$LINENO: result: no" >&5
7502 echo "${ECHO_T}no" >&6
7507 echo "$as_me:$LINENO: result: no" >&5
7508 echo "${ECHO_T}no" >&6
7516 # Find where sockets are (especially for Solaris)
7517 # Do this before the TCP Wrappers test since tcp wrappers
7518 # uses the socket library and some linkers are stupid.
7520 echo "$as_me:$LINENO: checking for socket" >&5
7521 echo $ECHO_N "checking for socket... $ECHO_C" >&6
7522 if test "${ac_cv_func_socket+set}" = set; then
7523 echo $ECHO_N "(cached) $ECHO_C" >&6
7525 cat >conftest.$ac_ext <<_ACEOF
7528 cat confdefs.h >>conftest.$ac_ext
7529 cat >>conftest.$ac_ext <<_ACEOF
7530 /* end confdefs.h. */
7531 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
7532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7533 #define socket innocuous_socket
7535 /* System header to define __stub macros and hopefully few prototypes,
7536 which can conflict with char socket (); below.
7537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7538 <limits.h> exists even on freestanding compilers. */
7541 # include <limits.h>
7543 # include <assert.h>
7548 /* Override any gcc2 internal prototype to avoid an error. */
7553 /* We use char because int might match the return type of a gcc2
7554 builtin and then its argument prototype would still apply. */
7556 /* The GNU C library defines this for functions which it implements
7557 to always fail with ENOSYS. Some functions are actually named
7558 something starting with __ and the normal name is an alias. */
7559 #if defined (__stub_socket) || defined (__stub___socket)
7562 char (*f) () = socket;
7576 rm -f conftest.$ac_objext conftest$ac_exeext
7577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7578 (eval $ac_link) 2>conftest.er1
7580 grep -v '^ *+' conftest.er1 >conftest.err
7582 cat conftest.err >&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } &&
7585 { ac_try='test -z "$ac_c_werror_flag"
7586 || test ! -s conftest.err'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; } &&
7592 { ac_try='test -s conftest$ac_exeext'
7593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7597 (exit $ac_status); }; }; then
7598 ac_cv_func_socket=yes
7600 echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.$ac_ext >&5
7603 ac_cv_func_socket=no
7605 rm -f conftest.err conftest.$ac_objext \
7606 conftest$ac_exeext conftest.$ac_ext
7608 echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
7609 echo "${ECHO_T}$ac_cv_func_socket" >&6
7610 if test $ac_cv_func_socket = yes; then
7611 echo "$as_me:$LINENO: result: using libc's socket" >&5
7612 echo "${ECHO_T}using libc's socket" >&6
7615 echo "$as_me:$LINENO: checking for socket in -lxnet" >&5
7616 echo $ECHO_N "checking for socket in -lxnet... $ECHO_C" >&6
7617 if test "${ac_cv_lib_xnet_socket+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7620 ac_check_lib_save_LIBS=$LIBS
7622 cat >conftest.$ac_ext <<_ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h. */
7629 /* Override any gcc2 internal prototype to avoid an error. */
7633 /* We use char because int might match the return type of a gcc2
7634 builtin and then its argument prototype would still apply. */
7644 rm -f conftest.$ac_objext conftest$ac_exeext
7645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7646 (eval $ac_link) 2>conftest.er1
7648 grep -v '^ *+' conftest.er1 >conftest.err
7650 cat conftest.err >&5
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); } &&
7653 { ac_try='test -z "$ac_c_werror_flag"
7654 || test ! -s conftest.err'
7655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); }; } &&
7660 { ac_try='test -s conftest$ac_exeext'
7661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); }; }; then
7666 ac_cv_lib_xnet_socket=yes
7668 echo "$as_me: failed program was:" >&5
7669 sed 's/^/| /' conftest.$ac_ext >&5
7671 ac_cv_lib_xnet_socket=no
7673 rm -f conftest.err conftest.$ac_objext \
7674 conftest$ac_exeext conftest.$ac_ext
7675 LIBS=$ac_check_lib_save_LIBS
7677 echo "$as_me:$LINENO: result: $ac_cv_lib_xnet_socket" >&5
7678 echo "${ECHO_T}$ac_cv_lib_xnet_socket" >&6
7679 if test $ac_cv_lib_xnet_socket = yes; then
7680 cat >>confdefs.h <<_ACEOF
7681 #define HAVE_LIBXNET 1
7689 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
7690 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
7691 if test "${ac_cv_lib_socket_socket+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7694 ac_check_lib_save_LIBS=$LIBS
7695 LIBS="-lsocket $LIBS"
7696 cat >conftest.$ac_ext <<_ACEOF
7699 cat confdefs.h >>conftest.$ac_ext
7700 cat >>conftest.$ac_ext <<_ACEOF
7701 /* end confdefs.h. */
7703 /* Override any gcc2 internal prototype to avoid an error. */
7707 /* We use char because int might match the return type of a gcc2
7708 builtin and then its argument prototype would still apply. */
7718 rm -f conftest.$ac_objext conftest$ac_exeext
7719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7720 (eval $ac_link) 2>conftest.er1
7722 grep -v '^ *+' conftest.er1 >conftest.err
7724 cat conftest.err >&5
7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7726 (exit $ac_status); } &&
7727 { ac_try='test -z "$ac_c_werror_flag"
7728 || test ! -s conftest.err'
7729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7733 (exit $ac_status); }; } &&
7734 { ac_try='test -s conftest$ac_exeext'
7735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); }; }; then
7740 ac_cv_lib_socket_socket=yes
7742 echo "$as_me: failed program was:" >&5
7743 sed 's/^/| /' conftest.$ac_ext >&5
7745 ac_cv_lib_socket_socket=no
7747 rm -f conftest.err conftest.$ac_objext \
7748 conftest$ac_exeext conftest.$ac_ext
7749 LIBS=$ac_check_lib_save_LIBS
7751 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
7752 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
7753 if test $ac_cv_lib_socket_socket = yes; then
7754 cat >>confdefs.h <<_ACEOF
7755 #define HAVE_LIBSOCKET 1
7758 LIBS="-lsocket $LIBS"
7763 echo "$as_me:$LINENO: checking for socket in -linet" >&5
7764 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6
7765 if test "${ac_cv_lib_inet_socket+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 ac_check_lib_save_LIBS=$LIBS
7770 cat >conftest.$ac_ext <<_ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7777 /* Override any gcc2 internal prototype to avoid an error. */
7781 /* We use char because int might match the return type of a gcc2
7782 builtin and then its argument prototype would still apply. */
7792 rm -f conftest.$ac_objext conftest$ac_exeext
7793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7794 (eval $ac_link) 2>conftest.er1
7796 grep -v '^ *+' conftest.er1 >conftest.err
7798 cat conftest.err >&5
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); } &&
7801 { ac_try='test -z "$ac_c_werror_flag"
7802 || test ! -s conftest.err'
7803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); }; } &&
7808 { ac_try='test -s conftest$ac_exeext'
7809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); }; }; then
7814 ac_cv_lib_inet_socket=yes
7816 echo "$as_me: failed program was:" >&5
7817 sed 's/^/| /' conftest.$ac_ext >&5
7819 ac_cv_lib_inet_socket=no
7821 rm -f conftest.err conftest.$ac_objext \
7822 conftest$ac_exeext conftest.$ac_ext
7823 LIBS=$ac_check_lib_save_LIBS
7825 echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
7826 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6
7827 if test $ac_cv_lib_inet_socket = yes; then
7828 cat >>confdefs.h <<_ACEOF
7829 #define HAVE_LIBINET 1
7840 # -----------------------------------------------------------
7841 # Check whether user wants TCP wrappers support (default off)
7842 # -----------------------------------------------------------
7845 # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given.
7846 if test "${with_tcp_wrappers+set}" = set; then
7847 withval="$with_tcp_wrappers"
7849 if test "x$withval" != "xno" ; then
7851 LIBS="$saved_LIBS -lwrap"
7852 echo "$as_me:$LINENO: checking for libwrap" >&5
7853 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6
7854 cat >conftest.$ac_ext <<_ACEOF
7857 cat confdefs.h >>conftest.$ac_ext
7858 cat >>conftest.$ac_ext <<_ACEOF
7859 /* end confdefs.h. */
7861 int deny_severity = 0;
7862 int allow_severity = 0;
7863 struct request_info *req;
7872 rm -f conftest.$ac_objext conftest$ac_exeext
7873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7874 (eval $ac_link) 2>conftest.er1
7876 grep -v '^ *+' conftest.er1 >conftest.err
7878 cat conftest.err >&5
7879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7880 (exit $ac_status); } &&
7881 { ac_try='test -z "$ac_c_werror_flag"
7882 || test ! -s conftest.err'
7883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); }; } &&
7888 { ac_try='test -s conftest$ac_exeext'
7889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }; }; then
7895 echo "$as_me:$LINENO: result: yes" >&5
7896 echo "${ECHO_T}yes" >&6
7897 cat >>confdefs.h <<\_ACEOF
7898 #define HAVE_LIBWRAP 1
7904 echo "$as_me: failed program was:" >&5
7905 sed 's/^/| /' conftest.$ac_ext >&5
7908 LIBS="$saved_LIBS -lwrap -lnsl"
7909 cat >conftest.$ac_ext <<_ACEOF
7912 cat confdefs.h >>conftest.$ac_ext
7913 cat >>conftest.$ac_ext <<_ACEOF
7914 /* end confdefs.h. */
7916 int deny_severity = 0;
7917 int allow_severity = 0;
7918 struct request_info *req;
7927 rm -f conftest.$ac_objext conftest$ac_exeext
7928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7929 (eval $ac_link) 2>conftest.er1
7931 grep -v '^ *+' conftest.er1 >conftest.err
7933 cat conftest.err >&5
7934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7935 (exit $ac_status); } &&
7936 { ac_try='test -z "$ac_c_werror_flag"
7937 || test ! -s conftest.err'
7938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; } &&
7943 { ac_try='test -s conftest$ac_exeext'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
7950 echo "$as_me:$LINENO: result: yes" >&5
7951 echo "${ECHO_T}yes" >&6
7952 cat >>confdefs.h <<\_ACEOF
7953 #define HAVE_LIBWRAP 1
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7962 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5
7963 echo "$as_me: error: *** libwrap missing" >&2;}
7964 { (exit 1); exit 1; }; }
7967 rm -f conftest.err conftest.$ac_objext \
7968 conftest$ac_exeext conftest.$ac_ext
7971 rm -f conftest.err conftest.$ac_objext \
7972 conftest$ac_exeext conftest.$ac_ext
7978 # -----------------------------------------------------------
7979 # Check whether OpenSSL is available
7980 # -----------------------------------------------------------
7981 echo "$as_me:$LINENO: checking for OpenSSL" >&5
7982 echo $ECHO_N "checking for OpenSSL... $ECHO_C" >&6
7984 # Check whether --with-openssl or --without-openssl was given.
7985 if test "${with_openssl+set}" = set; then
7986 withval="$with_openssl"
7987 with_openssl_directory=${withval}
7990 if test "x$with_openssl_directory" != "x"; then
7991 OPENSSL_LIBS="-lssl -lcrypto"
7994 if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
7995 OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
7996 OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
8000 saved_CFLAGS="$CFLAGS"
8001 LIBS="$saved_LIBS $OPENSSL_LIBS"
8002 CFLAGS="$saved_CFLAGS $OPENSSL_INC"
8004 cat >conftest.$ac_ext <<_ACEOF
8007 cat confdefs.h >>conftest.$ac_ext
8008 cat >>conftest.$ac_ext <<_ACEOF
8009 /* end confdefs.h. */
8010 #include <openssl/ssl.h>
8014 CRYPTO_set_id_callback(NULL);
8019 rm -f conftest.$ac_objext conftest$ac_exeext
8020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8021 (eval $ac_link) 2>conftest.er1
8023 grep -v '^ *+' conftest.er1 >conftest.err
8025 cat conftest.err >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } &&
8028 { ac_try='test -z "$ac_c_werror_flag"
8029 || test ! -s conftest.err'
8030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8034 (exit $ac_status); }; } &&
8035 { ac_try='test -s conftest$ac_exeext'
8036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); }; }; then
8043 echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8049 rm -f conftest.err conftest.$ac_objext \
8050 conftest$ac_exeext conftest.$ac_ext
8053 CFLAGS="$saved_CFLAGS"
8055 if test "$support_tls" = "yes"; then
8057 cat >>confdefs.h <<\_ACEOF
8058 #define HAVE_OPENSSL 1
8062 cat >>confdefs.h <<\_ACEOF
8073 echo "$as_me:$LINENO: result: $support_tls" >&5
8074 echo "${ECHO_T}$support_tls" >&6
8079 # -----------------------------------------------------------
8080 # Python and OpenSSL are using dlopen
8081 # -----------------------------------------------------------
8083 if test "$support_python" = "yes" -o "$support_tls" = "yes"; then
8084 echo "$as_me:$LINENO: checking for library containing dlopen" >&5
8085 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
8086 if test "${ac_cv_search_dlopen+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 ac_func_search_save_LIBS=$LIBS
8090 ac_cv_search_dlopen=no
8091 cat >conftest.$ac_ext <<_ACEOF
8094 cat confdefs.h >>conftest.$ac_ext
8095 cat >>conftest.$ac_ext <<_ACEOF
8096 /* end confdefs.h. */
8098 /* Override any gcc2 internal prototype to avoid an error. */
8102 /* We use char because int might match the return type of a gcc2
8103 builtin and then its argument prototype would still apply. */
8113 rm -f conftest.$ac_objext conftest$ac_exeext
8114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8115 (eval $ac_link) 2>conftest.er1
8117 grep -v '^ *+' conftest.er1 >conftest.err
8119 cat conftest.err >&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } &&
8122 { ac_try='test -z "$ac_c_werror_flag"
8123 || test ! -s conftest.err'
8124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; } &&
8129 { ac_try='test -s conftest$ac_exeext'
8130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); }; }; then
8135 ac_cv_search_dlopen="none required"
8137 echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8141 rm -f conftest.err conftest.$ac_objext \
8142 conftest$ac_exeext conftest.$ac_ext
8143 if test "$ac_cv_search_dlopen" = no; then
8144 for ac_lib in dl; do
8145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8146 cat >conftest.$ac_ext <<_ACEOF
8149 cat confdefs.h >>conftest.$ac_ext
8150 cat >>conftest.$ac_ext <<_ACEOF
8151 /* end confdefs.h. */
8153 /* Override any gcc2 internal prototype to avoid an error. */
8157 /* We use char because int might match the return type of a gcc2
8158 builtin and then its argument prototype would still apply. */
8168 rm -f conftest.$ac_objext conftest$ac_exeext
8169 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8170 (eval $ac_link) 2>conftest.er1
8172 grep -v '^ *+' conftest.er1 >conftest.err
8174 cat conftest.err >&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } &&
8177 { ac_try='test -z "$ac_c_werror_flag"
8178 || test ! -s conftest.err'
8179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; } &&
8184 { ac_try='test -s conftest$ac_exeext'
8185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 ac_cv_search_dlopen="-l$ac_lib"
8193 echo "$as_me: failed program was:" >&5
8194 sed 's/^/| /' conftest.$ac_ext >&5
8197 rm -f conftest.err conftest.$ac_objext \
8198 conftest$ac_exeext conftest.$ac_ext
8201 LIBS=$ac_func_search_save_LIBS
8203 echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
8204 echo "${ECHO_T}$ac_cv_search_dlopen" >&6
8205 if test "$ac_cv_search_dlopen" != no; then
8206 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
8212 # ------------------------------------------
8213 # Where to place working dir
8214 # ------------------------------------------
8215 working_dir=`eval echo ${prefix}/var/bacula/working`
8217 # Check whether --with-working-dir or --without-working-dir was given.
8218 if test "${with_working_dir+set}" = set; then
8219 withval="$with_working_dir"
8221 if test "x$withval" != "xno" ; then
8222 working_dir=$withval
8231 # ------------------------------------------
8232 # Where to place scriptdir (script files)
8233 # ------------------------------------------
8234 scriptdir=`eval echo ${sysconfdir}`
8236 # Check whether --with-scriptdir or --without-scriptdir was given.
8237 if test "${with_scriptdir+set}" = set; then
8238 withval="$with_scriptdir"
8240 if test "x$withval" != "xno" ; then
8250 # ------------------------------------------
8251 # Where to send dump email
8252 # ------------------------------------------
8253 dump_email=root@localhost
8255 # Check whether --with-dump-email or --without-dump-email was given.
8256 if test "${with_dump_email+set}" = set; then
8257 withval="$with_dump_email"
8259 if test "x$withval" != "xno" ; then
8268 # ------------------------------------------
8269 # Where to send job email
8270 # ------------------------------------------
8271 job_email=root@localhost
8273 # Check whether --with-job-email or --without-job-email was given.
8274 if test "${with_job_email+set}" = set; then
8275 withval="$with_job_email"
8277 if test "x$withval" != "xno" ; then
8286 # ------------------------------------------
8287 # Where to find smtp host
8288 # ------------------------------------------
8291 # Check whether --with-smtp_host or --without-smtp_host was given.
8292 if test "${with_smtp_host+set}" = set; then
8293 withval="$with_smtp_host"
8295 if test "x$withval" != "xno" ; then
8305 # ------------------------------------
8306 # Where to place pid files
8307 # ------------------------------------
8310 # Check whether --with-pid-dir or --without-pid-dir was given.
8311 if test "${with_pid_dir+set}" = set; then
8312 withval="$with_pid_dir"
8314 if test "x$withval" != "xno" ; then
8321 cat >>confdefs.h <<_ACEOF
8322 #define _PATH_BACULA_PIDDIR "$piddir"
8328 # ------------------------------------
8329 # Where to place subsys "lock file"
8330 # ------------------------------------
8331 subsysdir=/var/run/subsys
8333 # Check whether --with-subsys-dir or --without-subsys-dir was given.
8334 if test "${with_subsys_dir+set}" = set; then
8335 withval="$with_subsys_dir"
8337 if test "x$withval" != "xno" ; then
8348 # ------------------------------------
8349 # Where to start assigning ports
8350 # ------------------------------------
8353 # Check whether --with-baseport or --without-baseport was given.
8354 if test "${with_baseport+set}" = set; then
8355 withval="$with_baseport"
8357 if test "x$withval" != "xno" ; then
8365 dir_port=`expr $baseport`
8366 fd_port=`expr $baseport + 1`
8367 sd_port=`expr $fd_port + 1`
8374 # ------------------------------------------
8375 # Generate passwords
8376 # ------------------------------------------
8379 # Check whether --with-dir-password or --without-dir-password was given.
8380 if test "${with_dir_password+set}" = set; then
8381 withval="$with_dir_password"
8383 if test "x$withval" != "xno" ; then
8384 dir_password=$withval
8390 if test "x$dir_password" = "x" ; then
8391 if test "x$OPENSSL" = "xnone" ; then
8392 key=`autoconf/randpass 33`
8394 key=`openssl rand -base64 33`
8401 # Check whether --with-fd-password or --without-fd-password was given.
8402 if test "${with_fd_password+set}" = set; then
8403 withval="$with_fd_password"
8405 if test "x$withval" != "xno" ; then
8406 fd_password=$withval
8412 if test "x$fd_password" = "x" ; then
8413 if test "x$OPENSSL" = "xnone" ; then
8414 key=`autoconf/randpass 37`
8416 key=`openssl rand -base64 33`
8423 # Check whether --with-sd-password or --without-sd-password was given.
8424 if test "${with_sd_password+set}" = set; then
8425 withval="$with_sd_password"
8427 if test "x$withval" != "xno" ; then
8428 sd_password=$withval
8434 if test "x$sd_password" = "x" ; then
8435 if test "x$OPENSSL" = "xnone" ; then
8436 key=`autoconf/randpass 41`
8438 key=`openssl rand -base64 33`
8445 # Check whether --with-mon-dir-password or --without-mon-dir-password was given.
8446 if test "${with_mon_dir_password+set}" = set; then
8447 withval="$with_mon_dir_password"
8449 if test "x$withval" != "xno" ; then
8450 mon_dir_password=$withval
8456 if test "x$mon_dir_password" = "x" ; then
8457 if test "x$OPENSSL" = "xnone" ; then
8458 key=`autoconf/randpass 33`
8460 key=`openssl rand -base64 33`
8462 mon_dir_password=$key
8467 # Check whether --with-mon-fd-password or --without-mon-fd-password was given.
8468 if test "${with_mon_fd_password+set}" = set; then
8469 withval="$with_mon_fd_password"
8471 if test "x$withval" != "xno" ; then
8472 mon_fd_password=$withval
8478 if test "x$mon_fd_password" = "x" ; then
8479 if test "x$OPENSSL" = "xnone" ; then
8480 key=`autoconf/randpass 37`
8482 key=`openssl rand -base64 33`
8484 mon_fd_password=$key
8489 # Check whether --with-mon-sd-password or --without-mon-sd-password was given.
8490 if test "${with_mon_sd_password+set}" = set; then
8491 withval="$with_mon_sd_password"
8493 if test "x$withval" != "xno" ; then
8494 mon_sd_password=$withval
8500 if test "x$mon_sd_password" = "x" ; then
8501 if test "x$OPENSSL" = "xnone" ; then
8502 key=`autoconf/randpass 41`
8504 key=`openssl rand -base64 33`
8506 mon_sd_password=$key
8518 # Handle users and groups for each daemon
8522 # Check whether --with-dir_user or --without-dir_user was given.
8523 if test "${with_dir_user+set}" = set; then
8524 withval="$with_dir_user"
8526 if test "x$withval" != "x" ; then
8535 # Check whether --with-dir_group or --without-dir_group was given.
8536 if test "${with_dir_group+set}" = set; then
8537 withval="$with_dir_group"
8539 if test "x$withval" != "x" ; then
8548 # Check whether --with-sd_user or --without-sd_user was given.
8549 if test "${with_sd_user+set}" = set; then
8550 withval="$with_sd_user"
8552 if test "x$withval" != "x" ; then
8561 # Check whether --with-sd_group or --without-sd_group was given.
8562 if test "${with_sd_group+set}" = set; then
8563 withval="$with_sd_group"
8565 if test "x$withval" != "x" ; then
8574 # Check whether --with-fd_user or --without-fd_user was given.
8575 if test "${with_fd_user+set}" = set; then
8576 withval="$with_fd_user"
8578 if test "x$withval" != "x" ; then
8587 # Check whether --with-fd_group or --without-fd_group was given.
8588 if test "${with_fd_group+set}" = set; then
8589 withval="$with_fd_group"
8591 if test "x$withval" != "x" ; then
8609 # allow setting default executable permissions
8613 # Check whether --with-sbin-perm or --without-sbin-perm was given.
8614 if test "${with_sbin_perm+set}" = set; then
8615 withval="$with_sbin_perm"
8617 if test "x$withval" != "x" ; then
8626 # ------------------------------------------------
8627 # Bacula check for various SQL database engines
8628 # ------------------------------------------------
8631 echo "$as_me:$LINENO: checking for PostgreSQL support" >&5
8632 echo $ECHO_N "checking for PostgreSQL support... $ECHO_C" >&6
8634 # Check whether --with-postgresql or --without-postgresql was given.
8635 if test "${with_postgresql+set}" = set; then
8636 withval="$with_postgresql"
8638 if test "$withval" != "no"; then
8639 if test "$db_found" = "yes"; then
8640 echo "$as_me:$LINENO: result: error" >&5
8641 echo "${ECHO_T}error" >&6
8642 { { echo "$as_me:$LINENO: error: \"You can configure for only one database.\"" >&5
8643 echo "$as_me: error: \"You can configure for only one database.\"" >&2;}
8644 { (exit 1); exit 1; }; };
8646 if test "$withval" = "yes"; then
8647 if test -f /usr/local/include/libpq-fe.h; then
8648 POSTGRESQL_INCDIR=/usr/local/include
8649 POSTGRESQL_LIBDIR=/usr/local/lib
8650 POSTGRESQL_BINDIR=/usr/local/bin
8651 elif test -f /usr/include/libpq-fe.h; then
8652 POSTGRESQL_INCDIR=/usr/include
8653 POSTGRESQL_LIBDIR=/usr/lib
8654 POSTGRESQL_BINDIR=/usr/bin
8655 elif test -f /usr/include/pgsql/libpq-fe.h; then
8656 POSTGRESQL_INCDIR=/usr/include/pgsql
8657 POSTGRESQL_LIBDIR=/usr/lib/pgsql
8658 POSTGRESQL_BINDIR=/usr/bin
8659 elif test -f /usr/include/postgresql/libpq-fe.h; then
8660 POSTGRESQL_INCDIR=/usr/include/postgresql
8661 POSTGRESQL_LIBDIR=/usr/lib/postgresql
8662 POSTGRESQL_BINDIR=/usr/bin
8664 echo "$as_me:$LINENO: result: no" >&5
8665 echo "${ECHO_T}no" >&6
8666 { { echo "$as_me:$LINENO: error: Unable to find libpq-fe.h in standard locations" >&5
8667 echo "$as_me: error: Unable to find libpq-fe.h in standard locations" >&2;}
8668 { (exit 1); exit 1; }; }
8670 elif test -f $withval/include/libpq-fe.h; then
8671 POSTGRESQL_INCDIR=$withval/include
8672 POSTGRESQL_LIBDIR=$withval/lib
8673 POSTGRESQL_BINDIR=$withval/bin
8674 elif test -f $withval/include/postgresql/libpq-fe.h; then
8675 POSTGRESQL_INCDIR=$withval/include/postgresql
8676 POSTGRESQL_LIBDIR=$withval/lib
8677 POSTGRESQL_BINDIR=$withval/bin
8679 echo "$as_me:$LINENO: result: no" >&5
8680 echo "${ECHO_T}no" >&6
8681 { { echo "$as_me:$LINENO: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&5
8682 echo "$as_me: error: Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" >&2;}
8683 { (exit 1); exit 1; }; }
8685 POSTGRESQL_LFLAGS="-L$POSTGRESQL_LIBDIR -lpq"
8686 echo "$as_me:$LINENO: checking for crypt" >&5
8687 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
8688 if test "${ac_cv_func_crypt+set}" = set; then
8689 echo $ECHO_N "(cached) $ECHO_C" >&6
8691 cat >conftest.$ac_ext <<_ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h. */
8697 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
8698 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8699 #define crypt innocuous_crypt
8701 /* System header to define __stub macros and hopefully few prototypes,
8702 which can conflict with char crypt (); below.
8703 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8704 <limits.h> exists even on freestanding compilers. */
8707 # include <limits.h>
8709 # include <assert.h>
8714 /* Override any gcc2 internal prototype to avoid an error. */
8719 /* We use char because int might match the return type of a gcc2
8720 builtin and then its argument prototype would still apply. */
8722 /* The GNU C library defines this for functions which it implements
8723 to always fail with ENOSYS. Some functions are actually named
8724 something starting with __ and the normal name is an alias. */
8725 #if defined (__stub_crypt) || defined (__stub___crypt)
8728 char (*f) () = crypt;
8742 rm -f conftest.$ac_objext conftest$ac_exeext
8743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8744 (eval $ac_link) 2>conftest.er1
8746 grep -v '^ *+' conftest.er1 >conftest.err
8748 cat conftest.err >&5
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); } &&
8751 { ac_try='test -z "$ac_c_werror_flag"
8752 || test ! -s conftest.err'
8753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8757 (exit $ac_status); }; } &&
8758 { ac_try='test -s conftest$ac_exeext'
8759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8763 (exit $ac_status); }; }; then
8764 ac_cv_func_crypt=yes
8766 echo "$as_me: failed program was:" >&5
8767 sed 's/^/| /' conftest.$ac_ext >&5
8771 rm -f conftest.err conftest.$ac_objext \
8772 conftest$ac_exeext conftest.$ac_ext
8774 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
8775 echo "${ECHO_T}$ac_cv_func_crypt" >&6
8776 if test $ac_cv_func_crypt = yes; then
8779 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8780 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8781 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8782 echo $ECHO_N "(cached) $ECHO_C" >&6
8784 ac_check_lib_save_LIBS=$LIBS
8785 LIBS="-lcrypt $LIBS"
8786 cat >conftest.$ac_ext <<_ACEOF
8789 cat confdefs.h >>conftest.$ac_ext
8790 cat >>conftest.$ac_ext <<_ACEOF
8791 /* end confdefs.h. */
8793 /* Override any gcc2 internal prototype to avoid an error. */
8797 /* We use char because int might match the return type of a gcc2
8798 builtin and then its argument prototype would still apply. */
8808 rm -f conftest.$ac_objext conftest$ac_exeext
8809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8810 (eval $ac_link) 2>conftest.er1
8812 grep -v '^ *+' conftest.er1 >conftest.err
8814 cat conftest.err >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 (exit $ac_status); } &&
8817 { ac_try='test -z "$ac_c_werror_flag"
8818 || test ! -s conftest.err'
8819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); }; } &&
8824 { ac_try='test -s conftest$ac_exeext'
8825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); }; }; then
8830 ac_cv_lib_crypt_crypt=yes
8832 echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8835 ac_cv_lib_crypt_crypt=no
8837 rm -f conftest.err conftest.$ac_objext \
8838 conftest$ac_exeext conftest.$ac_ext
8839 LIBS=$ac_check_lib_save_LIBS
8841 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8842 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8843 if test $ac_cv_lib_crypt_crypt = yes; then
8844 POSTGRESQL_LFLAGS="-lcrypt $POSTGRESQL_LFLAGS"
8849 SQL_INCLUDE=-I$POSTGRESQL_INCDIR
8850 SQL_LFLAGS=$POSTGRESQL_LFLAGS
8851 SQL_BINDIR=$POSTGRESQL_BINDIR
8852 cat >>confdefs.h <<\_ACEOF
8853 #define HAVE_POSTGRESQL 1
8856 echo "$as_me:$LINENO: result: yes" >&5
8857 echo "${ECHO_T}yes" >&6
8859 support_postgresql=yes
8863 echo "$as_me:$LINENO: result: no" >&5
8864 echo "${ECHO_T}no" >&6
8869 echo "$as_me:$LINENO: result: no" >&5
8870 echo "${ECHO_T}no" >&6
8881 echo "$as_me:$LINENO: checking for MySQL support" >&5
8882 echo $ECHO_N "checking for MySQL support... $ECHO_C" >&6
8884 # Check whether --with-mysql or --without-mysql was given.
8885 if test "${with_mysql+set}" = set; then
8886 withval="$with_mysql"
8888 if test "$withval" != "no"; then
8889 if test "$withval" = "yes"; then
8890 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8891 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8892 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8893 MYSQL_BINDIR=/usr/local/mysql/bin
8894 elif test -f /usr/include/mysql/mysql.h; then
8895 MYSQL_INCDIR=/usr/include/mysql
8896 MYSQL_LIBDIR=/usr/lib/mysql
8897 MYSQL_BINDIR=/usr/bin
8898 elif test -f /usr/include/mysql.h; then
8899 MYSQL_INCDIR=/usr/include
8900 MYSQL_LIBDIR=/usr/lib
8901 MYSQL_BINDIR=/usr/bin
8902 elif test -f /usr/local/include/mysql/mysql.h; then
8903 MYSQL_INCDIR=/usr/local/include/mysql
8904 MYSQL_LIBDIR=/usr/local/lib/mysql
8905 MYSQL_BINDIR=/usr/local/bin
8906 elif test -f /usr/local/include/mysql.h; then
8907 MYSQL_INCDIR=/usr/local/include
8908 MYSQL_LIBDIR=/usr/local/lib
8909 MYSQL_BINDIR=/usr/local/bin
8911 echo "$as_me:$LINENO: result: no" >&5
8912 echo "${ECHO_T}no" >&6
8913 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8914 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8915 { (exit 1); exit 1; }; }
8918 if test -f $withval/include/mysql/mysql.h; then
8919 MYSQL_INCDIR=$withval/include/mysql
8920 MYSQL_LIBDIR=$withval/lib/mysql
8921 MYSQL_BINDIR=$withval/bin
8922 elif test -f $withval/include/mysql.h; then
8923 MYSQL_INCDIR=$withval/include
8924 MYSQL_LIBDIR=$withval/lib
8925 MYSQL_BINDIR=$withval/bin
8927 echo "$as_me:$LINENO: result: no" >&5
8928 echo "${ECHO_T}no" >&6
8929 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
8930 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
8931 { (exit 1); exit 1; }; }
8934 SQL_INCLUDE=-I$MYSQL_INCDIR
8935 if test -f $MYSQL_LIBDIR/libmysqlclient_r.a; then
8936 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
8937 cat >>confdefs.h <<\_ACEOF
8938 #define HAVE_THREAD_SAFE_MYSQL 1
8942 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqlclient -lz"
8944 SQL_BINDIR=$MYSQL_BINDIR
8946 cat >>confdefs.h <<\_ACEOF
8947 #define HAVE_MYSQL 1
8950 echo "$as_me:$LINENO: result: yes" >&5
8951 echo "${ECHO_T}yes" >&6
8958 echo "$as_me:$LINENO: result: no" >&5
8959 echo "${ECHO_T}no" >&6
8966 # Check whether --with-embedded-mysql or --without-embedded-mysql was given.
8967 if test "${with_embedded_mysql+set}" = set; then
8968 withval="$with_embedded_mysql"
8970 if test "$withval" != "no"; then
8971 if test "$withval" = "yes"; then
8972 if test -f /usr/local/mysql/include/mysql/mysql.h; then
8973 MYSQL_INCDIR=/usr/local/mysql/include/mysql
8974 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
8975 MYSQL_BINDIR=/usr/local/mysql/bin
8976 elif test -f /usr/include/mysql/mysql.h; then
8977 MYSQL_INCDIR=/usr/include/mysql
8978 MYSQL_LIBDIR=/usr/lib/mysql
8979 MYSQL_BINDIR=/usr/bin
8980 elif test -f /usr/include/mysql.h; then
8981 MYSQL_INCDIR=/usr/include
8982 MYSQL_LIBDIR=/usr/lib
8983 MYSQL_BINDIR=/usr/bin
8984 elif test -f /usr/local/include/mysql/mysql.h; then
8985 MYSQL_INCDIR=/usr/local/include/mysql
8986 MYSQL_LIBDIR=/usr/local/lib/mysql
8987 MYSQL_BINDIR=/usr/local/bin
8988 elif test -f /usr/local/include/mysql.h; then
8989 MYSQL_INCDIR=/usr/local/include
8990 MYSQL_LIBDIR=/usr/local/lib
8991 MYSQL_BINDIR=/usr/local/bin
8993 echo "$as_me:$LINENO: result: no" >&5
8994 echo "${ECHO_T}no" >&6
8995 { { echo "$as_me:$LINENO: error: Unable to find mysql.h in standard locations" >&5
8996 echo "$as_me: error: Unable to find mysql.h in standard locations" >&2;}
8997 { (exit 1); exit 1; }; }
9000 if test -f $withval/include/mysql/mysql.h; then
9001 MYSQL_INCDIR=$withval/include/mysql
9002 MYSQL_LIBDIR=$withval/lib/mysql
9003 MYSQL_BINDIR=$withval/bin
9004 elif test -f $withval/include/mysql.h; then
9005 MYSQL_INCDIR=$withval/include
9006 MYSQL_LIBDIR=$withval/lib
9007 MYSQL_BINDIR=$withval/bin
9009 echo "$as_me:$LINENO: result: no" >&5
9010 echo "${ECHO_T}no" >&6
9011 { { echo "$as_me:$LINENO: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&5
9012 echo "$as_me: error: Invalid MySQL directory $withval - unable to find mysql.h under $withval" >&2;}
9013 { (exit 1); exit 1; }; }
9016 SQL_INCLUDE=-I$MYSQL_INCDIR
9017 SQL_LFLAGS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
9018 SQL_BINDIR=$MYSQL_BINDIR
9020 cat >>confdefs.h <<\_ACEOF
9021 #define HAVE_MYSQL 1
9024 cat >>confdefs.h <<\_ACEOF
9025 #define HAVE_EMBEDDED_MYSQL 1
9028 echo "$as_me:$LINENO: result: yes" >&5
9029 echo "${ECHO_T}yes" >&6
9036 echo "$as_me:$LINENO: result: no" >&5
9037 echo "${ECHO_T}no" >&6
9052 echo "$as_me:$LINENO: checking for SQLite3 support" >&5
9053 echo $ECHO_N "checking for SQLite3 support... $ECHO_C" >&6
9055 # Check whether --with-sqlite3 or --without-sqlite3 was given.
9056 if test "${with_sqlite3+set}" = set; then
9057 withval="$with_sqlite3"
9059 if test "$withval" != "no"; then
9060 if test "$withval" = "yes"; then
9061 if test -f /usr/local/include/sqlite3.h; then
9062 SQLITE_INCDIR=/usr/local/include
9063 SQLITE_LIBDIR=/usr/local/lib
9064 SQLITE_BINDIR=/usr/local/bin
9065 elif test -f /usr/include/sqlite3.h; then
9066 SQLITE_INCDIR=/usr/include
9067 SQLITE_LIBDIR=/usr/lib
9068 SQLITE_BINDIR=/usr/bin
9069 elif test -f $prefix/include/sqlite3.h; then
9070 SQLITE_INCDIR=$prefix/include
9071 SQLITE_LIBDIR=$prefix/lib
9072 SQLITE_BINDIR=$prefix/bin
9074 echo "$as_me:$LINENO: result: no" >&5
9075 echo "${ECHO_T}no" >&6
9076 { { echo "$as_me:$LINENO: error: Unable to find sqlite3.h in standard locations" >&5
9077 echo "$as_me: error: Unable to find sqlite3.h in standard locations" >&2;}
9078 { (exit 1); exit 1; }; }
9081 if test -f $withval/sqlite3.h; then
9082 SQLITE_INCDIR=$withval
9083 SQLITE_LIBDIR=$withval
9084 SQLITE_BINDIR=$withval
9085 elif test -f $withval/include/sqlite3.h; then
9086 SQLITE_INCDIR=$withval/include
9087 SQLITE_LIBDIR=$withval/lib
9088 SQLITE_BINDIR=$withval/bin
9090 echo "$as_me:$LINENO: result: no" >&5
9091 echo "${ECHO_T}no" >&6
9092 { { echo "$as_me:$LINENO: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&5
9093 echo "$as_me: error: Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" >&2;}
9094 { (exit 1); exit 1; }; }
9097 SQL_INCLUDE=-I$SQLITE_INCDIR
9098 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite3"
9099 SQL_BINDIR=$SQLITE_BINDIR
9101 cat >>confdefs.h <<\_ACEOF
9102 #define HAVE_SQLITE3 1
9105 echo "$as_me:$LINENO: result: yes" >&5
9106 echo "${ECHO_T}yes" >&6
9113 echo "$as_me:$LINENO: result: no" >&5
9114 echo "${ECHO_T}no" >&6
9119 echo "$as_me:$LINENO: result: no" >&5
9120 echo "${ECHO_T}no" >&6
9131 echo "$as_me:$LINENO: checking for SQLite support" >&5
9132 echo $ECHO_N "checking for SQLite support... $ECHO_C" >&6
9134 # Check whether --with-sqlite or --without-sqlite was given.
9135 if test "${with_sqlite+set}" = set; then
9136 withval="$with_sqlite"
9138 if test "$withval" != "no"; then
9139 if test "$withval" = "yes"; then
9140 if test -f /usr/local/include/sqlite.h; then
9141 SQLITE_INCDIR=/usr/local/include
9142 SQLITE_LIBDIR=/usr/local/lib
9143 SQLITE_BINDIR=/usr/local/bin
9144 elif test -f /usr/include/sqlite.h; then
9145 SQLITE_INCDIR=/usr/include
9146 SQLITE_LIBDIR=/usr/lib
9147 SQLITE_BINDIR=/usr/bin
9148 elif test -f $prefix/include/sqlite.h; then
9149 SQLITE_INCDIR=$prefix/include
9150 SQLITE_LIBDIR=$prefix/lib
9151 SQLITE_BINDIR=$prefix/bin
9153 echo "$as_me:$LINENO: result: no" >&5
9154 echo "${ECHO_T}no" >&6
9155 { { echo "$as_me:$LINENO: error: Unable to find sqlite.h in standard locations" >&5
9156 echo "$as_me: error: Unable to find sqlite.h in standard locations" >&2;}
9157 { (exit 1); exit 1; }; }
9160 if test -f $withval/sqlite.h; then
9161 SQLITE_INCDIR=$withval
9162 SQLITE_LIBDIR=$withval
9163 SQLITE_BINDIR=$withval
9164 elif test -f $withval/include/sqlite.h; then
9165 SQLITE_INCDIR=$withval/include
9166 SQLITE_LIBDIR=$withval/lib
9167 SQLITE_BINDIR=$withval/bin
9169 echo "$as_me:$LINENO: result: no" >&5
9170 echo "${ECHO_T}no" >&6
9171 { { echo "$as_me:$LINENO: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&5
9172 echo "$as_me: error: Invalid SQLite directory $withval - unable to find sqlite.h under $withval" >&2;}
9173 { (exit 1); exit 1; }; }
9176 SQL_INCLUDE=-I$SQLITE_INCDIR
9177 SQL_LFLAGS="-L$SQLITE_LIBDIR -lsqlite"
9178 SQL_BINDIR=$SQLITE_BINDIR
9180 cat >>confdefs.h <<\_ACEOF
9181 #define HAVE_SQLITE 1
9184 echo "$as_me:$LINENO: result: yes" >&5
9185 echo "${ECHO_T}yes" >&6
9192 echo "$as_me:$LINENO: result: no" >&5
9193 echo "${ECHO_T}no" >&6
9198 echo "$as_me:$LINENO: result: no" >&5
9199 echo "${ECHO_T}no" >&6
9211 cat >>confdefs.h <<\_ACEOF
9212 #define PROTOTYPES 1
9216 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
9217 if test -z "$CCOPTS"; then
9218 CCOPTS='-g -O2 -Wall'
9226 largefile_support="no"
9228 # Check whether --enable-largefile or --disable-largefile was given.
9229 if test "${enable_largefile+set}" = set; then
9230 enableval="$enable_largefile"
9233 if test "$enable_largefile" != no; then
9234 if test -n "$ac_tool_prefix"; then
9235 # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
9236 set dummy ${ac_tool_prefix}getconf; ac_word=$2
9237 echo "$as_me:$LINENO: checking for $ac_word" >&5
9238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9239 if test "${ac_cv_prog_GETCONF+set}" = set; then
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
9242 if test -n "$GETCONF"; then
9243 ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
9245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9249 test -z "$as_dir" && as_dir=.
9250 for ac_exec_ext in '' $ac_executable_extensions; do
9251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9252 ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
9253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9261 GETCONF=$ac_cv_prog_GETCONF
9262 if test -n "$GETCONF"; then
9263 echo "$as_me:$LINENO: result: $GETCONF" >&5
9264 echo "${ECHO_T}$GETCONF" >&6
9266 echo "$as_me:$LINENO: result: no" >&5
9267 echo "${ECHO_T}no" >&6
9271 if test -z "$ac_cv_prog_GETCONF"; then
9272 ac_ct_GETCONF=$GETCONF
9273 # Extract the first word of "getconf", so it can be a program name with args.
9274 set dummy getconf; ac_word=$2
9275 echo "$as_me:$LINENO: checking for $ac_word" >&5
9276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9277 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then
9278 echo $ECHO_N "(cached) $ECHO_C" >&6
9280 if test -n "$ac_ct_GETCONF"; then
9281 ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
9283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9287 test -z "$as_dir" && as_dir=.
9288 for ac_exec_ext in '' $ac_executable_extensions; do
9289 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9290 ac_cv_prog_ac_ct_GETCONF="getconf"
9291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9299 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
9300 if test -n "$ac_ct_GETCONF"; then
9301 echo "$as_me:$LINENO: result: $ac_ct_GETCONF" >&5
9302 echo "${ECHO_T}$ac_ct_GETCONF" >&6
9304 echo "$as_me:$LINENO: result: no" >&5
9305 echo "${ECHO_T}no" >&6
9308 GETCONF=$ac_ct_GETCONF
9310 GETCONF="$ac_cv_prog_GETCONF"
9313 echo "$as_me:$LINENO: checking for CFLAGS value to request large file support" >&5
9314 echo $ECHO_N "checking for CFLAGS value to request large file support... $ECHO_C" >&6
9315 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9318 ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
9319 ac_cv_sys_largefile_CFLAGS=no
9321 # IRIX 6.2 and later require cc -n32.
9322 irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
9323 if test "$GCC" != yes; then
9324 ac_cv_sys_largefile_CFLAGS=-n32
9327 CC="$CC $ac_cv_sys_largefile_CFLAGS"
9328 cat >conftest.$ac_ext <<_ACEOF
9331 cat confdefs.h >>conftest.$ac_ext
9332 cat >>conftest.$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9343 rm -f conftest.$ac_objext conftest$ac_exeext
9344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9345 (eval $ac_link) 2>conftest.er1
9347 grep -v '^ *+' conftest.er1 >conftest.err
9349 cat conftest.err >&5
9350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351 (exit $ac_status); } &&
9352 { ac_try='test -z "$ac_c_werror_flag"
9353 || test ! -s conftest.err'
9354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); }; } &&
9359 { ac_try='test -s conftest$ac_exeext'
9360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); }; }; then
9367 echo "$as_me: failed program was:" >&5
9368 sed 's/^/| /' conftest.$ac_ext >&5
9370 ac_cv_sys_largefile_CFLAGS=no
9372 rm -f conftest.err conftest.$ac_objext \
9373 conftest$ac_exeext conftest.$ac_ext
9378 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CFLAGS" >&5
9379 echo "${ECHO_T}$ac_cv_sys_largefile_CFLAGS" >&6
9380 echo "$as_me:$LINENO: checking for LDFLAGS value to request large file support" >&5
9381 echo $ECHO_N "checking for LDFLAGS value to request large file support... $ECHO_C" >&6
9382 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then
9383 echo $ECHO_N "(cached) $ECHO_C" >&6
9385 ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
9386 ac_cv_sys_largefile_LDFLAGS=no
9390 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LDFLAGS" >&5
9391 echo "${ECHO_T}$ac_cv_sys_largefile_LDFLAGS" >&6
9392 echo "$as_me:$LINENO: checking for LIBS value to request large file support" >&5
9393 echo $ECHO_N "checking for LIBS value to request large file support... $ECHO_C" >&6
9394 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then
9395 echo $ECHO_N "(cached) $ECHO_C" >&6
9397 ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
9398 ac_cv_sys_largefile_LIBS=no
9402 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_LIBS" >&5
9403 echo "${ECHO_T}$ac_cv_sys_largefile_LIBS" >&6
9405 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9408 -D_FILE_OFFSET_BITS=*) ;;
9409 -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
9410 -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
9416 '') CPPFLAGS="$ac_flag" ;;
9417 *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
9425 '') CFLAGS="$ac_flag" ;;
9426 *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
9431 case "$ac_cv_sys_largefile_LDFLAGS" in
9435 '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
9436 *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
9439 case "$ac_cv_sys_largefile_LIBS" in
9443 '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
9444 *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
9447 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS" >&5
9448 echo $ECHO_N "checking for _FILE_OFFSET_BITS... $ECHO_C" >&6
9449 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9450 echo $ECHO_N "(cached) $ECHO_C" >&6
9452 ac_cv_sys_file_offset_bits=no
9453 ac_cv_sys_file_offset_bits=64
9454 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9456 -D_FILE_OFFSET_BITS)
9457 ac_cv_sys_file_offset_bits=1 ;;
9458 -D_FILE_OFFSET_BITS=*)
9459 ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9464 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9465 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9466 if test "$ac_cv_sys_file_offset_bits" != no; then
9468 cat >>confdefs.h <<_ACEOF
9469 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9473 echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE" >&5
9474 echo $ECHO_N "checking for _LARGEFILE_SOURCE... $ECHO_C" >&6
9475 if test "${ac_cv_sys_largefile_source+set}" = set; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9478 ac_cv_sys_largefile_source=no
9479 ac_cv_sys_largefile_source=1
9480 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9482 -D_LARGEFILE_SOURCE)
9483 ac_cv_sys_largefile_source=1 ;;
9484 -D_LARGEFILE_SOURCE=*)
9485 ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9490 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9491 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
9492 if test "$ac_cv_sys_largefile_source" != no; then
9494 cat >>confdefs.h <<_ACEOF
9495 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9499 echo "$as_me:$LINENO: checking for _LARGE_FILES" >&5
9500 echo $ECHO_N "checking for _LARGE_FILES... $ECHO_C" >&6
9501 if test "${ac_cv_sys_large_files+set}" = set; then
9502 echo $ECHO_N "(cached) $ECHO_C" >&6
9504 ac_cv_sys_large_files=no
9505 ac_cv_sys_large_files=1
9506 for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
9509 ac_cv_sys_large_files=1 ;;
9511 ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
9516 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9517 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9518 if test "$ac_cv_sys_large_files" != no; then
9520 cat >>confdefs.h <<_ACEOF
9521 #define _LARGE_FILES $ac_cv_sys_large_files
9529 echo "$as_me:$LINENO: checking for X" >&5
9530 echo $ECHO_N "checking for X... $ECHO_C" >&6
9533 # Check whether --with-x or --without-x was given.
9534 if test "${with_x+set}" = set; then
9538 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9539 if test "x$with_x" = xno; then
9540 # The user explicitly disabled X.
9543 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9544 # Both variables are already set.
9547 if test "${ac_cv_have_x+set}" = set; then
9548 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 # One or both of the vars are not set, and there is no cached value.
9551 ac_x_includes=no ac_x_libraries=no
9553 if mkdir conftest.dir; then
9555 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9556 cat >Imakefile <<'_ACEOF'
9558 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9560 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9561 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9562 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9563 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9564 for ac_extension in a so sl; do
9565 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9566 test -f $ac_im_libdir/libX11.$ac_extension; then
9567 ac_im_usrlibdir=$ac_im_libdir; break
9570 # Screen out bogus values from the imake configuration. They are
9571 # bogus both because they are the default anyway, and because
9572 # using them would break gcc on systems where it needs fixed includes.
9573 case $ac_im_incroot in
9575 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9577 case $ac_im_usrlibdir in
9579 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9586 # Standard set of common directories for X headers.
9587 # Check X11 before X11Rn because it is often a symlink to the current release.
9599 /usr/local/X11/include
9600 /usr/local/X11R6/include
9601 /usr/local/X11R5/include
9602 /usr/local/X11R4/include
9604 /usr/local/include/X11
9605 /usr/local/include/X11R6
9606 /usr/local/include/X11R5
9607 /usr/local/include/X11R4
9611 /usr/XFree86/include/X11
9615 /usr/unsupported/include
9617 /usr/local/x11r5/include
9618 /usr/lpp/Xamples/include
9620 /usr/openwin/include
9621 /usr/openwin/share/include'
9623 if test "$ac_x_includes" = no; then
9624 # Guess where to find include files, by looking for Intrinsic.h.
9625 # First, try using that file with no special directory specified.
9626 cat >conftest.$ac_ext <<_ACEOF
9629 cat confdefs.h >>conftest.$ac_ext
9630 cat >>conftest.$ac_ext <<_ACEOF
9631 /* end confdefs.h. */
9632 #include <X11/Intrinsic.h>
9634 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9635 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9637 grep -v '^ *+' conftest.er1 >conftest.err
9639 cat conftest.err >&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } >/dev/null; then
9642 if test -s conftest.err; then
9643 ac_cpp_err=$ac_c_preproc_warn_flag
9644 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9651 if test -z "$ac_cpp_err"; then
9652 # We can compile using X headers with no special include directory.
9655 echo "$as_me: failed program was:" >&5
9656 sed 's/^/| /' conftest.$ac_ext >&5
9658 for ac_dir in $ac_x_header_dirs; do
9659 if test -r "$ac_dir/X11/Intrinsic.h"; then
9660 ac_x_includes=$ac_dir
9665 rm -f conftest.err conftest.$ac_ext
9666 fi # $ac_x_includes = no
9668 if test "$ac_x_libraries" = no; then
9669 # Check for the libraries.
9670 # See if we find them without any special options.
9671 # Don't add to $LIBS permanently.
9674 cat >conftest.$ac_ext <<_ACEOF
9677 cat confdefs.h >>conftest.$ac_ext
9678 cat >>conftest.$ac_ext <<_ACEOF
9679 /* end confdefs.h. */
9680 #include <X11/Intrinsic.h>
9689 rm -f conftest.$ac_objext conftest$ac_exeext
9690 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9691 (eval $ac_link) 2>conftest.er1
9693 grep -v '^ *+' conftest.er1 >conftest.err
9695 cat conftest.err >&5
9696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9697 (exit $ac_status); } &&
9698 { ac_try='test -z "$ac_c_werror_flag"
9699 || test ! -s conftest.err'
9700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); }; } &&
9705 { ac_try='test -s conftest$ac_exeext'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; }; then
9712 # We can link X programs with no special library path.
9715 echo "$as_me: failed program was:" >&5
9716 sed 's/^/| /' conftest.$ac_ext >&5
9719 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9721 # Don't even attempt the hair of trying to link an X program!
9722 for ac_extension in a so sl; do
9723 if test -r $ac_dir/libXt.$ac_extension; then
9724 ac_x_libraries=$ac_dir
9730 rm -f conftest.err conftest.$ac_objext \
9731 conftest$ac_exeext conftest.$ac_ext
9732 fi # $ac_x_libraries = no
9734 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9735 # Didn't find X anywhere. Cache the known absence of X.
9736 ac_cv_have_x="have_x=no"
9738 # Record where we found X for the cache.
9739 ac_cv_have_x="have_x=yes \
9740 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9745 eval "$ac_cv_have_x"
9748 if test "$have_x" != yes; then
9749 echo "$as_me:$LINENO: result: $have_x" >&5
9750 echo "${ECHO_T}$have_x" >&6
9753 # If each of the values was on the command line, it overrides each guess.
9754 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9755 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9756 # Update the cache value to reflect the command line values.
9757 ac_cv_have_x="have_x=yes \
9758 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9759 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9760 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9763 if test "$no_x" = yes; then
9764 # Not all programs may use this symbol, but it does not hurt to define it.
9766 cat >>confdefs.h <<\_ACEOF
9767 #define X_DISPLAY_MISSING 1
9770 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9772 if test -n "$x_includes"; then
9773 X_CFLAGS="$X_CFLAGS -I$x_includes"
9776 # It would also be nice to do this for all -L options, not just this one.
9777 if test -n "$x_libraries"; then
9778 X_LIBS="$X_LIBS -L$x_libraries"
9779 # For Solaris; some versions of Sun CC require a space after -R and
9780 # others require no space. Words are not sufficient . . . .
9781 case `(uname -sr) 2>/dev/null` in
9783 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9784 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9785 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9786 cat >conftest.$ac_ext <<_ACEOF
9789 cat confdefs.h >>conftest.$ac_ext
9790 cat >>conftest.$ac_ext <<_ACEOF
9791 /* end confdefs.h. */
9801 rm -f conftest.$ac_objext conftest$ac_exeext
9802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9803 (eval $ac_link) 2>conftest.er1
9805 grep -v '^ *+' conftest.er1 >conftest.err
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } &&
9810 { ac_try='test -z "$ac_c_werror_flag"
9811 || test ! -s conftest.err'
9812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; } &&
9817 { ac_try='test -s conftest$ac_exeext'
9818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); }; }; then
9825 echo "$as_me: failed program was:" >&5
9826 sed 's/^/| /' conftest.$ac_ext >&5
9830 rm -f conftest.err conftest.$ac_objext \
9831 conftest$ac_exeext conftest.$ac_ext
9832 if test $ac_R_nospace = yes; then
9833 echo "$as_me:$LINENO: result: no" >&5
9834 echo "${ECHO_T}no" >&6
9835 X_LIBS="$X_LIBS -R$x_libraries"
9837 LIBS="$ac_xsave_LIBS -R $x_libraries"
9838 cat >conftest.$ac_ext <<_ACEOF
9841 cat confdefs.h >>conftest.$ac_ext
9842 cat >>conftest.$ac_ext <<_ACEOF
9843 /* end confdefs.h. */
9853 rm -f conftest.$ac_objext conftest$ac_exeext
9854 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9855 (eval $ac_link) 2>conftest.er1
9857 grep -v '^ *+' conftest.er1 >conftest.err
9859 cat conftest.err >&5
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); } &&
9862 { ac_try='test -z "$ac_c_werror_flag"
9863 || test ! -s conftest.err'
9864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9868 (exit $ac_status); }; } &&
9869 { ac_try='test -s conftest$ac_exeext'
9870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); }; }; then
9877 echo "$as_me: failed program was:" >&5
9878 sed 's/^/| /' conftest.$ac_ext >&5
9882 rm -f conftest.err conftest.$ac_objext \
9883 conftest$ac_exeext conftest.$ac_ext
9884 if test $ac_R_space = yes; then
9885 echo "$as_me:$LINENO: result: yes" >&5
9886 echo "${ECHO_T}yes" >&6
9887 X_LIBS="$X_LIBS -R $x_libraries"
9889 echo "$as_me:$LINENO: result: neither works" >&5
9890 echo "${ECHO_T}neither works" >&6
9897 # Check for system-dependent libraries X programs must link with.
9898 # Do this before checking for the system-independent R6 libraries
9899 # (-lICE), since we may need -lsocket or whatever for X linking.
9901 if test "$ISC" = yes; then
9902 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9904 # Martyn Johnson says this is needed for Ultrix, if the X
9905 # libraries were built with DECnet support. And Karl Berry says
9906 # the Alpha needs dnet_stub (dnet does not exist).
9907 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9908 cat >conftest.$ac_ext <<_ACEOF
9911 cat confdefs.h >>conftest.$ac_ext
9912 cat >>conftest.$ac_ext <<_ACEOF
9913 /* end confdefs.h. */
9915 /* Override any gcc2 internal prototype to avoid an error. */
9919 /* We use char because int might match the return type of a gcc2
9920 builtin and then its argument prototype would still apply. */
9921 char XOpenDisplay ();
9930 rm -f conftest.$ac_objext conftest$ac_exeext
9931 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9932 (eval $ac_link) 2>conftest.er1
9934 grep -v '^ *+' conftest.er1 >conftest.err
9936 cat conftest.err >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } &&
9939 { ac_try='test -z "$ac_c_werror_flag"
9940 || test ! -s conftest.err'
9941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); }; } &&
9946 { ac_try='test -s conftest$ac_exeext'
9947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9951 (exit $ac_status); }; }; then
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.$ac_ext >&5
9957 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9958 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9959 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9960 echo $ECHO_N "(cached) $ECHO_C" >&6
9962 ac_check_lib_save_LIBS=$LIBS
9964 cat >conftest.$ac_ext <<_ACEOF
9967 cat confdefs.h >>conftest.$ac_ext
9968 cat >>conftest.$ac_ext <<_ACEOF
9969 /* end confdefs.h. */
9971 /* Override any gcc2 internal prototype to avoid an error. */
9975 /* We use char because int might match the return type of a gcc2
9976 builtin and then its argument prototype would still apply. */
9986 rm -f conftest.$ac_objext conftest$ac_exeext
9987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9988 (eval $ac_link) 2>conftest.er1
9990 grep -v '^ *+' conftest.er1 >conftest.err
9992 cat conftest.err >&5
9993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9994 (exit $ac_status); } &&
9995 { ac_try='test -z "$ac_c_werror_flag"
9996 || test ! -s conftest.err'
9997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10001 (exit $ac_status); }; } &&
10002 { ac_try='test -s conftest$ac_exeext'
10003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10004 (eval $ac_try) 2>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
10008 ac_cv_lib_dnet_dnet_ntoa=yes
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10013 ac_cv_lib_dnet_dnet_ntoa=no
10015 rm -f conftest.err conftest.$ac_objext \
10016 conftest$ac_exeext conftest.$ac_ext
10017 LIBS=$ac_check_lib_save_LIBS
10019 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10020 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
10021 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10022 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10025 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10026 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
10027 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
10028 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10031 ac_check_lib_save_LIBS=$LIBS
10032 LIBS="-ldnet_stub $LIBS"
10033 cat >conftest.$ac_ext <<_ACEOF
10036 cat confdefs.h >>conftest.$ac_ext
10037 cat >>conftest.$ac_ext <<_ACEOF
10038 /* end confdefs.h. */
10040 /* Override any gcc2 internal prototype to avoid an error. */
10044 /* We use char because int might match the return type of a gcc2
10045 builtin and then its argument prototype would still apply. */
10055 rm -f conftest.$ac_objext conftest$ac_exeext
10056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10057 (eval $ac_link) 2>conftest.er1
10059 grep -v '^ *+' conftest.er1 >conftest.err
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } &&
10064 { ac_try='test -z "$ac_c_werror_flag"
10065 || test ! -s conftest.err'
10066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10067 (eval $ac_try) 2>&5
10069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10070 (exit $ac_status); }; } &&
10071 { ac_try='test -s conftest$ac_exeext'
10072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073 (eval $ac_try) 2>&5
10075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076 (exit $ac_status); }; }; then
10077 ac_cv_lib_dnet_stub_dnet_ntoa=yes
10079 echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10082 ac_cv_lib_dnet_stub_dnet_ntoa=no
10084 rm -f conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
10086 LIBS=$ac_check_lib_save_LIBS
10088 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
10089 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
10090 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
10091 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10096 rm -f conftest.err conftest.$ac_objext \
10097 conftest$ac_exeext conftest.$ac_ext
10098 LIBS="$ac_xsave_LIBS"
10100 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10101 # to get the SysV transport functions.
10102 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
10104 # The nsl library prevents programs from opening the X display
10105 # on Irix 5.2, according to T.E. Dickey.
10106 # The functions gethostbyname, getservbyname, and inet_addr are
10107 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
10108 echo "$as_me:$LINENO: checking for gethostbyname" >&5
10109 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
10110 if test "${ac_cv_func_gethostbyname+set}" = set; then
10111 echo $ECHO_N "(cached) $ECHO_C" >&6
10113 cat >conftest.$ac_ext <<_ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h. */
10119 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
10120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10121 #define gethostbyname innocuous_gethostbyname
10123 /* System header to define __stub macros and hopefully few prototypes,
10124 which can conflict with char gethostbyname (); below.
10125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10126 <limits.h> exists even on freestanding compilers. */
10129 # include <limits.h>
10131 # include <assert.h>
10134 #undef gethostbyname
10136 /* Override any gcc2 internal prototype to avoid an error. */
10141 /* We use char because int might match the return type of a gcc2
10142 builtin and then its argument prototype would still apply. */
10143 char gethostbyname ();
10144 /* The GNU C library defines this for functions which it implements
10145 to always fail with ENOSYS. Some functions are actually named
10146 something starting with __ and the normal name is an alias. */
10147 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10150 char (*f) () = gethostbyname;
10159 return f != gethostbyname;
10164 rm -f conftest.$ac_objext conftest$ac_exeext
10165 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10166 (eval $ac_link) 2>conftest.er1
10168 grep -v '^ *+' conftest.er1 >conftest.err
10170 cat conftest.err >&5
10171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172 (exit $ac_status); } &&
10173 { ac_try='test -z "$ac_c_werror_flag"
10174 || test ! -s conftest.err'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; } &&
10180 { ac_try='test -s conftest$ac_exeext'
10181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10182 (eval $ac_try) 2>&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); }; }; then
10186 ac_cv_func_gethostbyname=yes
10188 echo "$as_me: failed program was:" >&5
10189 sed 's/^/| /' conftest.$ac_ext >&5
10191 ac_cv_func_gethostbyname=no
10193 rm -f conftest.err conftest.$ac_objext \
10194 conftest$ac_exeext conftest.$ac_ext
10196 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
10197 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
10199 if test $ac_cv_func_gethostbyname = no; then
10200 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
10201 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
10202 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 ac_check_lib_save_LIBS=$LIBS
10207 cat >conftest.$ac_ext <<_ACEOF
10210 cat confdefs.h >>conftest.$ac_ext
10211 cat >>conftest.$ac_ext <<_ACEOF
10212 /* end confdefs.h. */
10214 /* Override any gcc2 internal prototype to avoid an error. */
10218 /* We use char because int might match the return type of a gcc2
10219 builtin and then its argument prototype would still apply. */
10220 char gethostbyname ();
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231 (eval $ac_link) 2>conftest.er1
10233 grep -v '^ *+' conftest.er1 >conftest.err
10235 cat conftest.err >&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } &&
10238 { ac_try='test -z "$ac_c_werror_flag"
10239 || test ! -s conftest.err'
10240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10241 (eval $ac_try) 2>&5
10243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10244 (exit $ac_status); }; } &&
10245 { ac_try='test -s conftest$ac_exeext'
10246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10247 (eval $ac_try) 2>&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10251 ac_cv_lib_nsl_gethostbyname=yes
10253 echo "$as_me: failed program was:" >&5
10254 sed 's/^/| /' conftest.$ac_ext >&5
10256 ac_cv_lib_nsl_gethostbyname=no
10258 rm -f conftest.err conftest.$ac_objext \
10259 conftest$ac_exeext conftest.$ac_ext
10260 LIBS=$ac_check_lib_save_LIBS
10262 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10263 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
10264 if test $ac_cv_lib_nsl_gethostbyname = yes; then
10265 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10268 if test $ac_cv_lib_nsl_gethostbyname = no; then
10269 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10270 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
10271 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10274 ac_check_lib_save_LIBS=$LIBS
10276 cat >conftest.$ac_ext <<_ACEOF
10279 cat confdefs.h >>conftest.$ac_ext
10280 cat >>conftest.$ac_ext <<_ACEOF
10281 /* end confdefs.h. */
10283 /* Override any gcc2 internal prototype to avoid an error. */
10287 /* We use char because int might match the return type of a gcc2
10288 builtin and then its argument prototype would still apply. */
10289 char gethostbyname ();
10298 rm -f conftest.$ac_objext conftest$ac_exeext
10299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10300 (eval $ac_link) 2>conftest.er1
10302 grep -v '^ *+' conftest.er1 >conftest.err
10304 cat conftest.err >&5
10305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } &&
10307 { ac_try='test -z "$ac_c_werror_flag"
10308 || test ! -s conftest.err'
10309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10310 (eval $ac_try) 2>&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 (exit $ac_status); }; } &&
10314 { ac_try='test -s conftest$ac_exeext'
10315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316 (eval $ac_try) 2>&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; }; then
10320 ac_cv_lib_bsd_gethostbyname=yes
10322 echo "$as_me: failed program was:" >&5
10323 sed 's/^/| /' conftest.$ac_ext >&5
10325 ac_cv_lib_bsd_gethostbyname=no
10327 rm -f conftest.err conftest.$ac_objext \
10328 conftest$ac_exeext conftest.$ac_ext
10329 LIBS=$ac_check_lib_save_LIBS
10331 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10332 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
10333 if test $ac_cv_lib_bsd_gethostbyname = yes; then
10334 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10340 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10341 # socket/setsockopt and other routines are undefined under SCO ODT
10342 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10343 # on later versions), says Simon Leinen: it contains gethostby*
10344 # variants that don't use the name server (or something). -lsocket
10345 # must be given before -lnsl if both are needed. We assume that
10346 # if connect needs -lnsl, so does gethostbyname.
10347 echo "$as_me:$LINENO: checking for connect" >&5
10348 echo $ECHO_N "checking for connect... $ECHO_C" >&6
10349 if test "${ac_cv_func_connect+set}" = set; then
10350 echo $ECHO_N "(cached) $ECHO_C" >&6
10352 cat >conftest.$ac_ext <<_ACEOF
10355 cat confdefs.h >>conftest.$ac_ext
10356 cat >>conftest.$ac_ext <<_ACEOF
10357 /* end confdefs.h. */
10358 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
10359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10360 #define connect innocuous_connect
10362 /* System header to define __stub macros and hopefully few prototypes,
10363 which can conflict with char connect (); below.
10364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10365 <limits.h> exists even on freestanding compilers. */
10368 # include <limits.h>
10370 # include <assert.h>
10375 /* Override any gcc2 internal prototype to avoid an error. */
10380 /* We use char because int might match the return type of a gcc2
10381 builtin and then its argument prototype would still apply. */
10383 /* The GNU C library defines this for functions which it implements
10384 to always fail with ENOSYS. Some functions are actually named
10385 something starting with __ and the normal name is an alias. */
10386 #if defined (__stub_connect) || defined (__stub___connect)
10389 char (*f) () = connect;
10398 return f != connect;
10403 rm -f conftest.$ac_objext conftest$ac_exeext
10404 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10405 (eval $ac_link) 2>conftest.er1
10407 grep -v '^ *+' conftest.er1 >conftest.err
10409 cat conftest.err >&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } &&
10412 { ac_try='test -z "$ac_c_werror_flag"
10413 || test ! -s conftest.err'
10414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10415 (eval $ac_try) 2>&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; } &&
10419 { ac_try='test -s conftest$ac_exeext'
10420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10421 (eval $ac_try) 2>&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); }; }; then
10425 ac_cv_func_connect=yes
10427 echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10430 ac_cv_func_connect=no
10432 rm -f conftest.err conftest.$ac_objext \
10433 conftest$ac_exeext conftest.$ac_ext
10435 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10436 echo "${ECHO_T}$ac_cv_func_connect" >&6
10438 if test $ac_cv_func_connect = no; then
10439 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10440 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
10441 if test "${ac_cv_lib_socket_connect+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10444 ac_check_lib_save_LIBS=$LIBS
10445 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10446 cat >conftest.$ac_ext <<_ACEOF
10449 cat confdefs.h >>conftest.$ac_ext
10450 cat >>conftest.$ac_ext <<_ACEOF
10451 /* end confdefs.h. */
10453 /* Override any gcc2 internal prototype to avoid an error. */
10457 /* We use char because int might match the return type of a gcc2
10458 builtin and then its argument prototype would still apply. */
10468 rm -f conftest.$ac_objext conftest$ac_exeext
10469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10470 (eval $ac_link) 2>conftest.er1
10472 grep -v '^ *+' conftest.er1 >conftest.err
10474 cat conftest.err >&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } &&
10477 { ac_try='test -z "$ac_c_werror_flag"
10478 || test ! -s conftest.err'
10479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10480 (eval $ac_try) 2>&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); }; } &&
10484 { ac_try='test -s conftest$ac_exeext'
10485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10486 (eval $ac_try) 2>&5
10488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10489 (exit $ac_status); }; }; then
10490 ac_cv_lib_socket_connect=yes
10492 echo "$as_me: failed program was:" >&5
10493 sed 's/^/| /' conftest.$ac_ext >&5
10495 ac_cv_lib_socket_connect=no
10497 rm -f conftest.err conftest.$ac_objext \
10498 conftest$ac_exeext conftest.$ac_ext
10499 LIBS=$ac_check_lib_save_LIBS
10501 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10502 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
10503 if test $ac_cv_lib_socket_connect = yes; then
10504 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10509 # Guillermo Gomez says -lposix is necessary on A/UX.
10510 echo "$as_me:$LINENO: checking for remove" >&5
10511 echo $ECHO_N "checking for remove... $ECHO_C" >&6
10512 if test "${ac_cv_func_remove+set}" = set; then
10513 echo $ECHO_N "(cached) $ECHO_C" >&6
10515 cat >conftest.$ac_ext <<_ACEOF
10518 cat confdefs.h >>conftest.$ac_ext
10519 cat >>conftest.$ac_ext <<_ACEOF
10520 /* end confdefs.h. */
10521 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
10522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10523 #define remove innocuous_remove
10525 /* System header to define __stub macros and hopefully few prototypes,
10526 which can conflict with char remove (); below.
10527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10528 <limits.h> exists even on freestanding compilers. */
10531 # include <limits.h>
10533 # include <assert.h>
10538 /* Override any gcc2 internal prototype to avoid an error. */
10543 /* We use char because int might match the return type of a gcc2
10544 builtin and then its argument prototype would still apply. */
10546 /* The GNU C library defines this for functions which it implements
10547 to always fail with ENOSYS. Some functions are actually named
10548 something starting with __ and the normal name is an alias. */
10549 #if defined (__stub_remove) || defined (__stub___remove)
10552 char (*f) () = remove;
10561 return f != remove;
10566 rm -f conftest.$ac_objext conftest$ac_exeext
10567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10568 (eval $ac_link) 2>conftest.er1
10570 grep -v '^ *+' conftest.er1 >conftest.err
10572 cat conftest.err >&5
10573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10574 (exit $ac_status); } &&
10575 { ac_try='test -z "$ac_c_werror_flag"
10576 || test ! -s conftest.err'
10577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10578 (eval $ac_try) 2>&5
10580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10581 (exit $ac_status); }; } &&
10582 { ac_try='test -s conftest$ac_exeext'
10583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10584 (eval $ac_try) 2>&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10588 ac_cv_func_remove=yes
10590 echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10593 ac_cv_func_remove=no
10595 rm -f conftest.err conftest.$ac_objext \
10596 conftest$ac_exeext conftest.$ac_ext
10598 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10599 echo "${ECHO_T}$ac_cv_func_remove" >&6
10601 if test $ac_cv_func_remove = no; then
10602 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10603 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
10604 if test "${ac_cv_lib_posix_remove+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10607 ac_check_lib_save_LIBS=$LIBS
10608 LIBS="-lposix $LIBS"
10609 cat >conftest.$ac_ext <<_ACEOF
10612 cat confdefs.h >>conftest.$ac_ext
10613 cat >>conftest.$ac_ext <<_ACEOF
10614 /* end confdefs.h. */
10616 /* Override any gcc2 internal prototype to avoid an error. */
10620 /* We use char because int might match the return type of a gcc2
10621 builtin and then its argument prototype would still apply. */
10631 rm -f conftest.$ac_objext conftest$ac_exeext
10632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10633 (eval $ac_link) 2>conftest.er1
10635 grep -v '^ *+' conftest.er1 >conftest.err
10637 cat conftest.err >&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } &&
10640 { ac_try='test -z "$ac_c_werror_flag"
10641 || test ! -s conftest.err'
10642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10643 (eval $ac_try) 2>&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; } &&
10647 { ac_try='test -s conftest$ac_exeext'
10648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10649 (eval $ac_try) 2>&5
10651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10652 (exit $ac_status); }; }; then
10653 ac_cv_lib_posix_remove=yes
10655 echo "$as_me: failed program was:" >&5
10656 sed 's/^/| /' conftest.$ac_ext >&5
10658 ac_cv_lib_posix_remove=no
10660 rm -f conftest.err conftest.$ac_objext \
10661 conftest$ac_exeext conftest.$ac_ext
10662 LIBS=$ac_check_lib_save_LIBS
10664 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10665 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
10666 if test $ac_cv_lib_posix_remove = yes; then
10667 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10672 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10673 echo "$as_me:$LINENO: checking for shmat" >&5
10674 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
10675 if test "${ac_cv_func_shmat+set}" = set; then
10676 echo $ECHO_N "(cached) $ECHO_C" >&6
10678 cat >conftest.$ac_ext <<_ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10684 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10686 #define shmat innocuous_shmat
10688 /* System header to define __stub macros and hopefully few prototypes,
10689 which can conflict with char shmat (); below.
10690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10691 <limits.h> exists even on freestanding compilers. */
10694 # include <limits.h>
10696 # include <assert.h>
10701 /* Override any gcc2 internal prototype to avoid an error. */
10706 /* We use char because int might match the return type of a gcc2
10707 builtin and then its argument prototype would still apply. */
10709 /* The GNU C library defines this for functions which it implements
10710 to always fail with ENOSYS. Some functions are actually named
10711 something starting with __ and the normal name is an alias. */
10712 #if defined (__stub_shmat) || defined (__stub___shmat)
10715 char (*f) () = shmat;
10729 rm -f conftest.$ac_objext conftest$ac_exeext
10730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10731 (eval $ac_link) 2>conftest.er1
10733 grep -v '^ *+' conftest.er1 >conftest.err
10735 cat conftest.err >&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); } &&
10738 { ac_try='test -z "$ac_c_werror_flag"
10739 || test ! -s conftest.err'
10740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10741 (eval $ac_try) 2>&5
10743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10744 (exit $ac_status); }; } &&
10745 { ac_try='test -s conftest$ac_exeext'
10746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10747 (eval $ac_try) 2>&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); }; }; then
10751 ac_cv_func_shmat=yes
10753 echo "$as_me: failed program was:" >&5
10754 sed 's/^/| /' conftest.$ac_ext >&5
10756 ac_cv_func_shmat=no
10758 rm -f conftest.err conftest.$ac_objext \
10759 conftest$ac_exeext conftest.$ac_ext
10761 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10762 echo "${ECHO_T}$ac_cv_func_shmat" >&6
10764 if test $ac_cv_func_shmat = no; then
10765 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10766 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10767 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 ac_check_lib_save_LIBS=$LIBS
10772 cat >conftest.$ac_ext <<_ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h. */
10779 /* Override any gcc2 internal prototype to avoid an error. */
10783 /* We use char because int might match the return type of a gcc2
10784 builtin and then its argument prototype would still apply. */
10794 rm -f conftest.$ac_objext conftest$ac_exeext
10795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10796 (eval $ac_link) 2>conftest.er1
10798 grep -v '^ *+' conftest.er1 >conftest.err
10800 cat conftest.err >&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 (exit $ac_status); } &&
10803 { ac_try='test -z "$ac_c_werror_flag"
10804 || test ! -s conftest.err'
10805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10806 (eval $ac_try) 2>&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); }; } &&
10810 { ac_try='test -s conftest$ac_exeext'
10811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10812 (eval $ac_try) 2>&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; }; then
10816 ac_cv_lib_ipc_shmat=yes
10818 echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10821 ac_cv_lib_ipc_shmat=no
10823 rm -f conftest.err conftest.$ac_objext \
10824 conftest$ac_exeext conftest.$ac_ext
10825 LIBS=$ac_check_lib_save_LIBS
10827 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10828 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10829 if test $ac_cv_lib_ipc_shmat = yes; then
10830 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10836 # Check for libraries that X11R6 Xt/Xaw programs need.
10837 ac_save_LDFLAGS=$LDFLAGS
10838 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10839 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10840 # check for ICE first), but we must link in the order -lSM -lICE or
10841 # we get undefined symbols. So assume we have SM if we have ICE.
10842 # These have to be linked with before -lX11, unlike the other
10843 # libraries we check for below, so use a different variable.
10844 # John Interrante, Karl Berry
10845 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10846 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10847 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10850 ac_check_lib_save_LIBS=$LIBS
10851 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10852 cat >conftest.$ac_ext <<_ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10859 /* Override any gcc2 internal prototype to avoid an error. */
10863 /* We use char because int might match the return type of a gcc2
10864 builtin and then its argument prototype would still apply. */
10865 char IceConnectionNumber ();
10869 IceConnectionNumber ();
10874 rm -f conftest.$ac_objext conftest$ac_exeext
10875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10876 (eval $ac_link) 2>conftest.er1
10878 grep -v '^ *+' conftest.er1 >conftest.err
10880 cat conftest.err >&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); } &&
10883 { ac_try='test -z "$ac_c_werror_flag"
10884 || test ! -s conftest.err'
10885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10886 (eval $ac_try) 2>&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; } &&
10890 { ac_try='test -s conftest$ac_exeext'
10891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10892 (eval $ac_try) 2>&5
10894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10895 (exit $ac_status); }; }; then
10896 ac_cv_lib_ICE_IceConnectionNumber=yes
10898 echo "$as_me: failed program was:" >&5
10899 sed 's/^/| /' conftest.$ac_ext >&5
10901 ac_cv_lib_ICE_IceConnectionNumber=no
10903 rm -f conftest.err conftest.$ac_objext \
10904 conftest$ac_exeext conftest.$ac_ext
10905 LIBS=$ac_check_lib_save_LIBS
10907 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10908 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10909 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10910 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10913 LDFLAGS=$ac_save_LDFLAGS
10975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10976 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10977 echo "$as_me:$LINENO: checking for $ac_header" >&5
10978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10979 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10980 echo $ECHO_N "(cached) $ECHO_C" >&6
10982 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10983 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10985 # Is the header compilable?
10986 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10988 cat >conftest.$ac_ext <<_ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h. */
10994 $ac_includes_default
10995 #include <$ac_header>
10997 rm -f conftest.$ac_objext
10998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10999 (eval $ac_compile) 2>conftest.er1
11001 grep -v '^ *+' conftest.er1 >conftest.err
11003 cat conftest.err >&5
11004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11005 (exit $ac_status); } &&
11006 { ac_try='test -z "$ac_c_werror_flag"
11007 || test ! -s conftest.err'
11008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11009 (eval $ac_try) 2>&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }; } &&
11013 { ac_try='test -s conftest.$ac_objext'
11014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11015 (eval $ac_try) 2>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); }; }; then
11019 ac_header_compiler=yes
11021 echo "$as_me: failed program was:" >&5
11022 sed 's/^/| /' conftest.$ac_ext >&5
11024 ac_header_compiler=no
11026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11027 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11028 echo "${ECHO_T}$ac_header_compiler" >&6
11030 # Is the header present?
11031 echo "$as_me:$LINENO: checking $ac_header presence" >&5
11032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11033 cat >conftest.$ac_ext <<_ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11039 #include <$ac_header>
11041 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11044 grep -v '^ *+' conftest.er1 >conftest.err
11046 cat conftest.err >&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); } >/dev/null; then
11049 if test -s conftest.err; then
11050 ac_cpp_err=$ac_c_preproc_warn_flag
11051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11058 if test -z "$ac_cpp_err"; then
11059 ac_header_preproc=yes
11061 echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11064 ac_header_preproc=no
11066 rm -f conftest.err conftest.$ac_ext
11067 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11068 echo "${ECHO_T}$ac_header_preproc" >&6
11070 # So? What about this header?
11071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11073 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11074 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11075 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11077 ac_header_preproc=yes
11080 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11081 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11082 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11083 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11084 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11085 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11086 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11087 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11088 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11090 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11091 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11094 ## ------------------------------------------ ##
11095 ## Report this to the AC_PACKAGE_NAME lists. ##
11096 ## ------------------------------------------ ##
11099 sed "s/^/$as_me: WARNING: /" >&2
11102 echo "$as_me:$LINENO: checking for $ac_header" >&5
11103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11104 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11105 echo $ECHO_N "(cached) $ECHO_C" >&6
11107 eval "$as_ac_Header=\$ac_header_preproc"
11109 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11110 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11114 cat >>confdefs.h <<_ACEOF
11115 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11122 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
11123 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
11124 if test "${ac_cv_header_stdc+set}" = set; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11127 cat >conftest.$ac_ext <<_ACEOF
11130 cat confdefs.h >>conftest.$ac_ext
11131 cat >>conftest.$ac_ext <<_ACEOF
11132 /* end confdefs.h. */
11133 #include <stdlib.h>
11134 #include <stdarg.h>
11135 #include <string.h>
11146 rm -f conftest.$ac_objext
11147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11148 (eval $ac_compile) 2>conftest.er1
11150 grep -v '^ *+' conftest.er1 >conftest.err
11152 cat conftest.err >&5
11153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11154 (exit $ac_status); } &&
11155 { ac_try='test -z "$ac_c_werror_flag"
11156 || test ! -s conftest.err'
11157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11158 (eval $ac_try) 2>&5
11160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11161 (exit $ac_status); }; } &&
11162 { ac_try='test -s conftest.$ac_objext'
11163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11164 (eval $ac_try) 2>&5
11166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11167 (exit $ac_status); }; }; then
11168 ac_cv_header_stdc=yes
11170 echo "$as_me: failed program was:" >&5
11171 sed 's/^/| /' conftest.$ac_ext >&5
11173 ac_cv_header_stdc=no
11175 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11177 if test $ac_cv_header_stdc = yes; then
11178 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11179 cat >conftest.$ac_ext <<_ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h. */
11185 #include <string.h>
11188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11189 $EGREP "memchr" >/dev/null 2>&1; then
11192 ac_cv_header_stdc=no
11198 if test $ac_cv_header_stdc = yes; then
11199 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11200 cat >conftest.$ac_ext <<_ACEOF
11203 cat confdefs.h >>conftest.$ac_ext
11204 cat >>conftest.$ac_ext <<_ACEOF
11205 /* end confdefs.h. */
11206 #include <stdlib.h>
11209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11210 $EGREP "free" >/dev/null 2>&1; then
11213 ac_cv_header_stdc=no
11219 if test $ac_cv_header_stdc = yes; then
11220 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11221 if test "$cross_compiling" = yes; then
11224 cat >conftest.$ac_ext <<_ACEOF
11227 cat confdefs.h >>conftest.$ac_ext
11228 cat >>conftest.$ac_ext <<_ACEOF
11229 /* end confdefs.h. */
11231 #if ((' ' & 0x0FF) == 0x020)
11232 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11233 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11235 # define ISLOWER(c) \
11236 (('a' <= (c) && (c) <= 'i') \
11237 || ('j' <= (c) && (c) <= 'r') \
11238 || ('s' <= (c) && (c) <= 'z'))
11239 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11242 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11247 for (i = 0; i < 256; i++)
11248 if (XOR (islower (i), ISLOWER (i))
11249 || toupper (i) != TOUPPER (i))
11254 rm -f conftest$ac_exeext
11255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11256 (eval $ac_link) 2>&5
11258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11259 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11261 (eval $ac_try) 2>&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); }; }; then
11267 echo "$as_me: program exited with status $ac_status" >&5
11268 echo "$as_me: failed program was:" >&5
11269 sed 's/^/| /' conftest.$ac_ext >&5
11271 ( exit $ac_status )
11272 ac_cv_header_stdc=no
11274 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11278 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
11279 echo "${ECHO_T}$ac_cv_header_stdc" >&6
11280 if test $ac_cv_header_stdc = yes; then
11282 cat >>confdefs.h <<\_ACEOF
11283 #define STDC_HEADERS 1
11288 echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
11289 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6
11290 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11293 cat >conftest.$ac_ext <<_ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11299 #include <sys/types.h>
11303 return makedev(0, 0);
11308 rm -f conftest.$ac_objext conftest$ac_exeext
11309 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11310 (eval $ac_link) 2>conftest.er1
11312 grep -v '^ *+' conftest.er1 >conftest.err
11314 cat conftest.err >&5
11315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11316 (exit $ac_status); } &&
11317 { ac_try='test -z "$ac_c_werror_flag"
11318 || test ! -s conftest.err'
11319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11320 (eval $ac_try) 2>&5
11322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11323 (exit $ac_status); }; } &&
11324 { ac_try='test -s conftest$ac_exeext'
11325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11326 (eval $ac_try) 2>&5
11328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329 (exit $ac_status); }; }; then
11330 ac_cv_header_sys_types_h_makedev=yes
11332 echo "$as_me: failed program was:" >&5
11333 sed 's/^/| /' conftest.$ac_ext >&5
11335 ac_cv_header_sys_types_h_makedev=no
11337 rm -f conftest.err conftest.$ac_objext \
11338 conftest$ac_exeext conftest.$ac_ext
11341 echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
11342 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6
11344 if test $ac_cv_header_sys_types_h_makedev = no; then
11345 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11346 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11347 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11348 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11349 echo $ECHO_N "(cached) $ECHO_C" >&6
11351 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11352 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11354 # Is the header compilable?
11355 echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
11356 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6
11357 cat >conftest.$ac_ext <<_ACEOF
11360 cat confdefs.h >>conftest.$ac_ext
11361 cat >>conftest.$ac_ext <<_ACEOF
11362 /* end confdefs.h. */
11363 $ac_includes_default
11364 #include <sys/mkdev.h>
11366 rm -f conftest.$ac_objext
11367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11368 (eval $ac_compile) 2>conftest.er1
11370 grep -v '^ *+' conftest.er1 >conftest.err
11372 cat conftest.err >&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); } &&
11375 { ac_try='test -z "$ac_c_werror_flag"
11376 || test ! -s conftest.err'
11377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11378 (eval $ac_try) 2>&5
11380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); }; } &&
11382 { ac_try='test -s conftest.$ac_objext'
11383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11384 (eval $ac_try) 2>&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); }; }; then
11388 ac_header_compiler=yes
11390 echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11393 ac_header_compiler=no
11395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11396 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11397 echo "${ECHO_T}$ac_header_compiler" >&6
11399 # Is the header present?
11400 echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
11401 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6
11402 cat >conftest.$ac_ext <<_ACEOF
11405 cat confdefs.h >>conftest.$ac_ext
11406 cat >>conftest.$ac_ext <<_ACEOF
11407 /* end confdefs.h. */
11408 #include <sys/mkdev.h>
11410 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11413 grep -v '^ *+' conftest.er1 >conftest.err
11415 cat conftest.err >&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } >/dev/null; then
11418 if test -s conftest.err; then
11419 ac_cpp_err=$ac_c_preproc_warn_flag
11420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11427 if test -z "$ac_cpp_err"; then
11428 ac_header_preproc=yes
11430 echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11433 ac_header_preproc=no
11435 rm -f conftest.err conftest.$ac_ext
11436 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11437 echo "${ECHO_T}$ac_header_preproc" >&6
11439 # So? What about this header?
11440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11442 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
11443 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11444 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
11445 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
11446 ac_header_preproc=yes
11449 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
11450 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
11451 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
11452 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
11453 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
11454 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
11455 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
11456 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
11457 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
11458 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
11459 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
11460 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
11463 ## ------------------------------------------ ##
11464 ## Report this to the AC_PACKAGE_NAME lists. ##
11465 ## ------------------------------------------ ##
11468 sed "s/^/$as_me: WARNING: /" >&2
11471 echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
11472 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6
11473 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
11474 echo $ECHO_N "(cached) $ECHO_C" >&6
11476 ac_cv_header_sys_mkdev_h=$ac_header_preproc
11478 echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
11479 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6
11482 if test $ac_cv_header_sys_mkdev_h = yes; then
11484 cat >>confdefs.h <<\_ACEOF
11485 #define MAJOR_IN_MKDEV 1
11492 if test $ac_cv_header_sys_mkdev_h = no; then
11493 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11494 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11495 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11496 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
11499 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11500 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11502 # Is the header compilable?
11503 echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
11504 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6
11505 cat >conftest.$ac_ext <<_ACEOF
11508 cat confdefs.h >>conftest.$ac_ext
11509 cat >>conftest.$ac_ext <<_ACEOF
11510 /* end confdefs.h. */
11511 $ac_includes_default
11512 #include <sys/sysmacros.h>
11514 rm -f conftest.$ac_objext
11515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11516 (eval $ac_compile) 2>conftest.er1
11518 grep -v '^ *+' conftest.er1 >conftest.err
11520 cat conftest.err >&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } &&
11523 { ac_try='test -z "$ac_c_werror_flag"
11524 || test ! -s conftest.err'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; } &&
11530 { ac_try='test -s conftest.$ac_objext'
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; }; then
11536 ac_header_compiler=yes
11538 echo "$as_me: failed program was:" >&5
11539 sed 's/^/| /' conftest.$ac_ext >&5
11541 ac_header_compiler=no
11543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11545 echo "${ECHO_T}$ac_header_compiler" >&6
11547 # Is the header present?
11548 echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
11549 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6
11550 cat >conftest.$ac_ext <<_ACEOF
11553 cat confdefs.h >>conftest.$ac_ext
11554 cat >>conftest.$ac_ext <<_ACEOF
11555 /* end confdefs.h. */
11556 #include <sys/sysmacros.h>
11558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11561 grep -v '^ *+' conftest.er1 >conftest.err
11563 cat conftest.err >&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } >/dev/null; then
11566 if test -s conftest.err; then
11567 ac_cpp_err=$ac_c_preproc_warn_flag
11568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11575 if test -z "$ac_cpp_err"; then
11576 ac_header_preproc=yes
11578 echo "$as_me: failed program was:" >&5
11579 sed 's/^/| /' conftest.$ac_ext >&5
11581 ac_header_preproc=no
11583 rm -f conftest.err conftest.$ac_ext
11584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11585 echo "${ECHO_T}$ac_header_preproc" >&6
11587 # So? What about this header?
11588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11590 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
11591 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
11593 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
11594 ac_header_preproc=yes
11597 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
11598 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
11600 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
11601 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
11602 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
11603 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
11604 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
11605 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
11606 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
11607 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
11608 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
11611 ## ------------------------------------------ ##
11612 ## Report this to the AC_PACKAGE_NAME lists. ##
11613 ## ------------------------------------------ ##
11616 sed "s/^/$as_me: WARNING: /" >&2
11619 echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
11620 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6
11621 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
11626 echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
11627 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6
11630 if test $ac_cv_header_sys_sysmacros_h = yes; then
11632 cat >>confdefs.h <<\_ACEOF
11633 #define MAJOR_IN_SYSMACROS 1
11647 ac_header_dirent=no
11648 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
11649 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11650 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
11651 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
11652 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11655 cat >conftest.$ac_ext <<_ACEOF
11658 cat confdefs.h >>conftest.$ac_ext
11659 cat >>conftest.$ac_ext <<_ACEOF
11660 /* end confdefs.h. */
11661 #include <sys/types.h>
11673 rm -f conftest.$ac_objext
11674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11675 (eval $ac_compile) 2>conftest.er1
11677 grep -v '^ *+' conftest.er1 >conftest.err
11679 cat conftest.err >&5
11680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11681 (exit $ac_status); } &&
11682 { ac_try='test -z "$ac_c_werror_flag"
11683 || test ! -s conftest.err'
11684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685 (eval $ac_try) 2>&5
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); }; } &&
11689 { ac_try='test -s conftest.$ac_objext'
11690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11691 (eval $ac_try) 2>&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); }; }; then
11695 eval "$as_ac_Header=yes"
11697 echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11700 eval "$as_ac_Header=no"
11702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11704 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11705 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11707 cat >>confdefs.h <<_ACEOF
11708 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11711 ac_header_dirent=$ac_hdr; break
11715 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11716 if test $ac_header_dirent = dirent.h; then
11717 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11718 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11719 if test "${ac_cv_search_opendir+set}" = set; then
11720 echo $ECHO_N "(cached) $ECHO_C" >&6
11722 ac_func_search_save_LIBS=$LIBS
11723 ac_cv_search_opendir=no
11724 cat >conftest.$ac_ext <<_ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11731 /* Override any gcc2 internal prototype to avoid an error. */
11735 /* We use char because int might match the return type of a gcc2
11736 builtin and then its argument prototype would still apply. */
11746 rm -f conftest.$ac_objext conftest$ac_exeext
11747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11748 (eval $ac_link) 2>conftest.er1
11750 grep -v '^ *+' conftest.er1 >conftest.err
11752 cat conftest.err >&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11754 (exit $ac_status); } &&
11755 { ac_try='test -z "$ac_c_werror_flag"
11756 || test ! -s conftest.err'
11757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11758 (eval $ac_try) 2>&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); }; } &&
11762 { ac_try='test -s conftest$ac_exeext'
11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; }; then
11768 ac_cv_search_opendir="none required"
11770 echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11774 rm -f conftest.err conftest.$ac_objext \
11775 conftest$ac_exeext conftest.$ac_ext
11776 if test "$ac_cv_search_opendir" = no; then
11777 for ac_lib in dir; do
11778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11779 cat >conftest.$ac_ext <<_ACEOF
11782 cat confdefs.h >>conftest.$ac_ext
11783 cat >>conftest.$ac_ext <<_ACEOF
11784 /* end confdefs.h. */
11786 /* Override any gcc2 internal prototype to avoid an error. */
11790 /* We use char because int might match the return type of a gcc2
11791 builtin and then its argument prototype would still apply. */
11801 rm -f conftest.$ac_objext conftest$ac_exeext
11802 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11803 (eval $ac_link) 2>conftest.er1
11805 grep -v '^ *+' conftest.er1 >conftest.err
11807 cat conftest.err >&5
11808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11809 (exit $ac_status); } &&
11810 { ac_try='test -z "$ac_c_werror_flag"
11811 || test ! -s conftest.err'
11812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11813 (eval $ac_try) 2>&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; } &&
11817 { ac_try='test -s conftest$ac_exeext'
11818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11819 (eval $ac_try) 2>&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); }; }; then
11823 ac_cv_search_opendir="-l$ac_lib"
11826 echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.$ac_ext >&5
11830 rm -f conftest.err conftest.$ac_objext \
11831 conftest$ac_exeext conftest.$ac_ext
11834 LIBS=$ac_func_search_save_LIBS
11836 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11837 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11838 if test "$ac_cv_search_opendir" != no; then
11839 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11844 echo "$as_me:$LINENO: checking for library containing opendir" >&5
11845 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
11846 if test "${ac_cv_search_opendir+set}" = set; then
11847 echo $ECHO_N "(cached) $ECHO_C" >&6
11849 ac_func_search_save_LIBS=$LIBS
11850 ac_cv_search_opendir=no
11851 cat >conftest.$ac_ext <<_ACEOF
11854 cat confdefs.h >>conftest.$ac_ext
11855 cat >>conftest.$ac_ext <<_ACEOF
11856 /* end confdefs.h. */
11858 /* Override any gcc2 internal prototype to avoid an error. */
11862 /* We use char because int might match the return type of a gcc2
11863 builtin and then its argument prototype would still apply. */
11873 rm -f conftest.$ac_objext conftest$ac_exeext
11874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11875 (eval $ac_link) 2>conftest.er1
11877 grep -v '^ *+' conftest.er1 >conftest.err
11879 cat conftest.err >&5
11880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11881 (exit $ac_status); } &&
11882 { ac_try='test -z "$ac_c_werror_flag"
11883 || test ! -s conftest.err'
11884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11885 (eval $ac_try) 2>&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); }; } &&
11889 { ac_try='test -s conftest$ac_exeext'
11890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11891 (eval $ac_try) 2>&5
11893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11894 (exit $ac_status); }; }; then
11895 ac_cv_search_opendir="none required"
11897 echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11901 rm -f conftest.err conftest.$ac_objext \
11902 conftest$ac_exeext conftest.$ac_ext
11903 if test "$ac_cv_search_opendir" = no; then
11904 for ac_lib in x; do
11905 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11906 cat >conftest.$ac_ext <<_ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h. */
11913 /* Override any gcc2 internal prototype to avoid an error. */
11917 /* We use char because int might match the return type of a gcc2
11918 builtin and then its argument prototype would still apply. */
11928 rm -f conftest.$ac_objext conftest$ac_exeext
11929 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11930 (eval $ac_link) 2>conftest.er1
11932 grep -v '^ *+' conftest.er1 >conftest.err
11934 cat conftest.err >&5
11935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } &&
11937 { ac_try='test -z "$ac_c_werror_flag"
11938 || test ! -s conftest.err'
11939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11940 (eval $ac_try) 2>&5
11942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11943 (exit $ac_status); }; } &&
11944 { ac_try='test -s conftest$ac_exeext'
11945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11946 (eval $ac_try) 2>&5
11948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11949 (exit $ac_status); }; }; then
11950 ac_cv_search_opendir="-l$ac_lib"
11953 echo "$as_me: failed program was:" >&5
11954 sed 's/^/| /' conftest.$ac_ext >&5
11957 rm -f conftest.err conftest.$ac_objext \
11958 conftest$ac_exeext conftest.$ac_ext
11961 LIBS=$ac_func_search_save_LIBS
11963 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
11964 echo "${ECHO_T}$ac_cv_search_opendir" >&6
11965 if test "$ac_cv_search_opendir" != no; then
11966 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
11972 echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
11973 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
11974 if test "${ac_cv_header_stat_broken+set}" = set; then
11975 echo $ECHO_N "(cached) $ECHO_C" >&6
11977 cat >conftest.$ac_ext <<_ACEOF
11980 cat confdefs.h >>conftest.$ac_ext
11981 cat >>conftest.$ac_ext <<_ACEOF
11982 /* end confdefs.h. */
11983 #include <sys/types.h>
11984 #include <sys/stat.h>
11986 #if defined(S_ISBLK) && defined(S_IFDIR)
11987 # if S_ISBLK (S_IFDIR)
11992 #if defined(S_ISBLK) && defined(S_IFCHR)
11993 # if S_ISBLK (S_IFCHR)
11998 #if defined(S_ISLNK) && defined(S_IFREG)
11999 # if S_ISLNK (S_IFREG)
12004 #if defined(S_ISSOCK) && defined(S_IFREG)
12005 # if S_ISSOCK (S_IFREG)
12011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12012 $EGREP "You lose" >/dev/null 2>&1; then
12013 ac_cv_header_stat_broken=yes
12015 ac_cv_header_stat_broken=no
12020 echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
12021 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
12022 if test $ac_cv_header_stat_broken = yes; then
12024 cat >>confdefs.h <<\_ACEOF
12025 #define STAT_MACROS_BROKEN 1
12030 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
12031 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
12032 if test "${ac_cv_header_sys_wait_h+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 cat >conftest.$ac_ext <<_ACEOF
12038 cat confdefs.h >>conftest.$ac_ext
12039 cat >>conftest.$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12041 #include <sys/types.h>
12042 #include <sys/wait.h>
12043 #ifndef WEXITSTATUS
12044 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
12047 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
12055 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
12060 rm -f conftest.$ac_objext
12061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12062 (eval $ac_compile) 2>conftest.er1
12064 grep -v '^ *+' conftest.er1 >conftest.err
12066 cat conftest.err >&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); } &&
12069 { ac_try='test -z "$ac_c_werror_flag"
12070 || test ! -s conftest.err'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; } &&
12076 { ac_try='test -s conftest.$ac_objext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 ac_cv_header_sys_wait_h=yes
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12087 ac_cv_header_sys_wait_h=no
12089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12091 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
12092 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
12093 if test $ac_cv_header_sys_wait_h = yes; then
12095 cat >>confdefs.h <<\_ACEOF
12096 #define HAVE_SYS_WAIT_H 1
12101 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
12102 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
12103 if test "${ac_cv_header_time+set}" = set; then
12104 echo $ECHO_N "(cached) $ECHO_C" >&6
12106 cat >conftest.$ac_ext <<_ACEOF
12109 cat confdefs.h >>conftest.$ac_ext
12110 cat >>conftest.$ac_ext <<_ACEOF
12111 /* end confdefs.h. */
12112 #include <sys/types.h>
12113 #include <sys/time.h>
12119 if ((struct tm *) 0)
12125 rm -f conftest.$ac_objext
12126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12127 (eval $ac_compile) 2>conftest.er1
12129 grep -v '^ *+' conftest.er1 >conftest.err
12131 cat conftest.err >&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } &&
12134 { ac_try='test -z "$ac_c_werror_flag"
12135 || test ! -s conftest.err'
12136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137 (eval $ac_try) 2>&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); }; } &&
12141 { ac_try='test -s conftest.$ac_objext'
12142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143 (eval $ac_try) 2>&5
12145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146 (exit $ac_status); }; }; then
12147 ac_cv_header_time=yes
12149 echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12152 ac_cv_header_time=no
12154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12156 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
12157 echo "${ECHO_T}$ac_cv_header_time" >&6
12158 if test $ac_cv_header_time = yes; then
12160 cat >>confdefs.h <<\_ACEOF
12161 #define TIME_WITH_SYS_TIME 1
12167 echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
12168 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6
12169 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12172 cat >conftest.$ac_ext <<_ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 $ac_includes_default
12182 static struct stat ac_aggr;
12183 if (ac_aggr.st_blksize)
12189 rm -f conftest.$ac_objext
12190 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12191 (eval $ac_compile) 2>conftest.er1
12193 grep -v '^ *+' conftest.er1 >conftest.err
12195 cat conftest.err >&5
12196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12197 (exit $ac_status); } &&
12198 { ac_try='test -z "$ac_c_werror_flag"
12199 || test ! -s conftest.err'
12200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12201 (eval $ac_try) 2>&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); }; } &&
12205 { ac_try='test -s conftest.$ac_objext'
12206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12207 (eval $ac_try) 2>&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); }; }; then
12211 ac_cv_member_struct_stat_st_blksize=yes
12213 echo "$as_me: failed program was:" >&5
12214 sed 's/^/| /' conftest.$ac_ext >&5
12216 cat >conftest.$ac_ext <<_ACEOF
12219 cat confdefs.h >>conftest.$ac_ext
12220 cat >>conftest.$ac_ext <<_ACEOF
12221 /* end confdefs.h. */
12222 $ac_includes_default
12226 static struct stat ac_aggr;
12227 if (sizeof ac_aggr.st_blksize)
12233 rm -f conftest.$ac_objext
12234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12235 (eval $ac_compile) 2>conftest.er1
12237 grep -v '^ *+' conftest.er1 >conftest.err
12239 cat conftest.err >&5
12240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12241 (exit $ac_status); } &&
12242 { ac_try='test -z "$ac_c_werror_flag"
12243 || test ! -s conftest.err'
12244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12245 (eval $ac_try) 2>&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; } &&
12249 { ac_try='test -s conftest.$ac_objext'
12250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12251 (eval $ac_try) 2>&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); }; }; then
12255 ac_cv_member_struct_stat_st_blksize=yes
12257 echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.$ac_ext >&5
12260 ac_cv_member_struct_stat_st_blksize=no
12262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12264 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12266 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
12267 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6
12268 if test $ac_cv_member_struct_stat_st_blksize = yes; then
12270 cat >>confdefs.h <<_ACEOF
12271 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
12275 cat >>confdefs.h <<\_ACEOF
12276 #define HAVE_ST_BLKSIZE 1
12282 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
12283 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
12284 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
12285 echo $ECHO_N "(cached) $ECHO_C" >&6
12287 cat >conftest.$ac_ext <<_ACEOF
12290 cat confdefs.h >>conftest.$ac_ext
12291 cat >>conftest.$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12293 $ac_includes_default
12297 static struct stat ac_aggr;
12298 if (ac_aggr.st_blocks)
12304 rm -f conftest.$ac_objext
12305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12306 (eval $ac_compile) 2>conftest.er1
12308 grep -v '^ *+' conftest.er1 >conftest.err
12310 cat conftest.err >&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); } &&
12313 { ac_try='test -z "$ac_c_werror_flag"
12314 || test ! -s conftest.err'
12315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12316 (eval $ac_try) 2>&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); }; } &&
12320 { ac_try='test -s conftest.$ac_objext'
12321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12322 (eval $ac_try) 2>&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); }; }; then
12326 ac_cv_member_struct_stat_st_blocks=yes
12328 echo "$as_me: failed program was:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12331 cat >conftest.$ac_ext <<_ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12337 $ac_includes_default
12341 static struct stat ac_aggr;
12342 if (sizeof ac_aggr.st_blocks)
12348 rm -f conftest.$ac_objext
12349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12350 (eval $ac_compile) 2>conftest.er1
12352 grep -v '^ *+' conftest.er1 >conftest.err
12354 cat conftest.err >&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } &&
12357 { ac_try='test -z "$ac_c_werror_flag"
12358 || test ! -s conftest.err'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; } &&
12364 { ac_try='test -s conftest.$ac_objext'
12365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12366 (eval $ac_try) 2>&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); }; }; then
12370 ac_cv_member_struct_stat_st_blocks=yes
12372 echo "$as_me: failed program was:" >&5
12373 sed 's/^/| /' conftest.$ac_ext >&5
12375 ac_cv_member_struct_stat_st_blocks=no
12377 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12381 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
12382 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
12383 if test $ac_cv_member_struct_stat_st_blocks = yes; then
12385 cat >>confdefs.h <<_ACEOF
12386 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
12390 cat >>confdefs.h <<\_ACEOF
12391 #define HAVE_ST_BLOCKS 1
12396 "fileblocks.$ac_objext" | \
12397 *" fileblocks.$ac_objext" | \
12398 "fileblocks.$ac_objext "* | \
12399 *" fileblocks.$ac_objext "* ) ;;
12400 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
12406 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
12407 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
12408 if test "${ac_cv_struct_tm+set}" = set; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 cat >conftest.$ac_ext <<_ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 #include <sys/types.h>
12423 struct tm *tp; tp->tm_sec;
12428 rm -f conftest.$ac_objext
12429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12430 (eval $ac_compile) 2>conftest.er1
12432 grep -v '^ *+' conftest.er1 >conftest.err
12434 cat conftest.err >&5
12435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436 (exit $ac_status); } &&
12437 { ac_try='test -z "$ac_c_werror_flag"
12438 || test ! -s conftest.err'
12439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12440 (eval $ac_try) 2>&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); }; } &&
12444 { ac_try='test -s conftest.$ac_objext'
12445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12446 (eval $ac_try) 2>&5
12448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12449 (exit $ac_status); }; }; then
12450 ac_cv_struct_tm=time.h
12452 echo "$as_me: failed program was:" >&5
12453 sed 's/^/| /' conftest.$ac_ext >&5
12455 ac_cv_struct_tm=sys/time.h
12457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12459 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
12460 echo "${ECHO_T}$ac_cv_struct_tm" >&6
12461 if test $ac_cv_struct_tm = sys/time.h; then
12463 cat >>confdefs.h <<\_ACEOF
12464 #define TM_IN_SYS_TIME 1
12469 echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
12470 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
12471 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
12472 echo $ECHO_N "(cached) $ECHO_C" >&6
12474 cat >conftest.$ac_ext <<_ACEOF
12477 cat confdefs.h >>conftest.$ac_ext
12478 cat >>conftest.$ac_ext <<_ACEOF
12479 /* end confdefs.h. */
12480 #include <sys/types.h>
12481 #include <$ac_cv_struct_tm>
12487 static struct tm ac_aggr;
12488 if (ac_aggr.tm_zone)
12494 rm -f conftest.$ac_objext
12495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12496 (eval $ac_compile) 2>conftest.er1
12498 grep -v '^ *+' conftest.er1 >conftest.err
12500 cat conftest.err >&5
12501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12502 (exit $ac_status); } &&
12503 { ac_try='test -z "$ac_c_werror_flag"
12504 || test ! -s conftest.err'
12505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12506 (eval $ac_try) 2>&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); }; } &&
12510 { ac_try='test -s conftest.$ac_objext'
12511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12512 (eval $ac_try) 2>&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); }; }; then
12516 ac_cv_member_struct_tm_tm_zone=yes
12518 echo "$as_me: failed program was:" >&5
12519 sed 's/^/| /' conftest.$ac_ext >&5
12521 cat >conftest.$ac_ext <<_ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12527 #include <sys/types.h>
12528 #include <$ac_cv_struct_tm>
12534 static struct tm ac_aggr;
12535 if (sizeof ac_aggr.tm_zone)
12541 rm -f conftest.$ac_objext
12542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12543 (eval $ac_compile) 2>conftest.er1
12545 grep -v '^ *+' conftest.er1 >conftest.err
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } &&
12550 { ac_try='test -z "$ac_c_werror_flag"
12551 || test ! -s conftest.err'
12552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12553 (eval $ac_try) 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; } &&
12557 { ac_try='test -s conftest.$ac_objext'
12558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12559 (eval $ac_try) 2>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); }; }; then
12563 ac_cv_member_struct_tm_tm_zone=yes
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.$ac_ext >&5
12568 ac_cv_member_struct_tm_tm_zone=no
12570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12572 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12574 echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
12575 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
12576 if test $ac_cv_member_struct_tm_tm_zone = yes; then
12578 cat >>confdefs.h <<_ACEOF
12579 #define HAVE_STRUCT_TM_TM_ZONE 1
12585 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
12587 cat >>confdefs.h <<\_ACEOF
12588 #define HAVE_TM_ZONE 1
12592 echo "$as_me:$LINENO: checking for tzname" >&5
12593 echo $ECHO_N "checking for tzname... $ECHO_C" >&6
12594 if test "${ac_cv_var_tzname+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 cat >conftest.$ac_ext <<_ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12604 #ifndef tzname /* For SGI. */
12605 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
12616 rm -f conftest.$ac_objext conftest$ac_exeext
12617 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12618 (eval $ac_link) 2>conftest.er1
12620 grep -v '^ *+' conftest.er1 >conftest.err
12622 cat conftest.err >&5
12623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624 (exit $ac_status); } &&
12625 { ac_try='test -z "$ac_c_werror_flag"
12626 || test ! -s conftest.err'
12627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12628 (eval $ac_try) 2>&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; } &&
12632 { ac_try='test -s conftest$ac_exeext'
12633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12634 (eval $ac_try) 2>&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); }; }; then
12638 ac_cv_var_tzname=yes
12640 echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12643 ac_cv_var_tzname=no
12645 rm -f conftest.err conftest.$ac_objext \
12646 conftest$ac_exeext conftest.$ac_ext
12648 echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
12649 echo "${ECHO_T}$ac_cv_var_tzname" >&6
12650 if test $ac_cv_var_tzname = yes; then
12652 cat >>confdefs.h <<\_ACEOF
12653 #define HAVE_TZNAME 1
12660 echo "$as_me:$LINENO: checking for utime.h" >&5
12661 echo $ECHO_N "checking for utime.h... $ECHO_C" >&6
12662 if test "${ba_cv_header_utime_h+set}" = set; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12665 cat >conftest.$ac_ext <<_ACEOF
12668 cat confdefs.h >>conftest.$ac_ext
12669 cat >>conftest.$ac_ext <<_ACEOF
12670 /* end confdefs.h. */
12672 #include <sys/types.h>
12682 rm -f conftest.$ac_objext
12683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12684 (eval $ac_compile) 2>conftest.er1
12686 grep -v '^ *+' conftest.er1 >conftest.err
12688 cat conftest.err >&5
12689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690 (exit $ac_status); } &&
12691 { ac_try='test -z "$ac_c_werror_flag"
12692 || test ! -s conftest.err'
12693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12694 (eval $ac_try) 2>&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; } &&
12698 { ac_try='test -s conftest.$ac_objext'
12699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12700 (eval $ac_try) 2>&5
12702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12703 (exit $ac_status); }; }; then
12704 ba_cv_header_utime_h=yes
12706 echo "$as_me: failed program was:" >&5
12707 sed 's/^/| /' conftest.$ac_ext >&5
12709 ba_cv_header_utime_h=no
12711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12713 echo "$as_me:$LINENO: result: $ba_cv_header_utime_h" >&5
12714 echo "${ECHO_T}$ba_cv_header_utime_h" >&6
12715 test $ba_cv_header_utime_h = yes && cat >>confdefs.h <<\_ACEOF
12716 #define HAVE_UTIME_H 1
12720 echo "$as_me:$LINENO: checking for socklen_t" >&5
12721 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
12722 if test "${ba_cv_header_socklen_t+set}" = set; then
12723 echo $ECHO_N "(cached) $ECHO_C" >&6
12725 cat >conftest.$ac_ext <<_ACEOF
12728 cat confdefs.h >>conftest.$ac_ext
12729 cat >>conftest.$ac_ext <<_ACEOF
12730 /* end confdefs.h. */
12732 #include <sys/types.h>
12733 #include <sys/socket.h>
12742 rm -f conftest.$ac_objext
12743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12744 (eval $ac_compile) 2>conftest.er1
12746 grep -v '^ *+' conftest.er1 >conftest.err
12748 cat conftest.err >&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); } &&
12751 { ac_try='test -z "$ac_c_werror_flag"
12752 || test ! -s conftest.err'
12753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12754 (eval $ac_try) 2>&5
12756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12757 (exit $ac_status); }; } &&
12758 { ac_try='test -s conftest.$ac_objext'
12759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760 (eval $ac_try) 2>&5
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; }; then
12764 ba_cv_header_socklen_t=yes
12766 echo "$as_me: failed program was:" >&5
12767 sed 's/^/| /' conftest.$ac_ext >&5
12769 ba_cv_header_socklen_t=no
12771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12773 echo "$as_me:$LINENO: result: $ba_cv_header_socklen_t" >&5
12774 echo "${ECHO_T}$ba_cv_header_socklen_t" >&6
12775 test $ba_cv_header_socklen_t = yes && cat >>confdefs.h <<\_ACEOF
12776 #define HAVE_SOCKLEN_T 1
12780 echo "$as_me:$LINENO: checking for bigendian" >&5
12781 echo $ECHO_N "checking for bigendian... $ECHO_C" >&6
12782 if test "${ba_cv_bigendian+set}" = set; then
12783 echo $ECHO_N "(cached) $ECHO_C" >&6
12785 if test "$cross_compiling" = yes; then
12788 cat >conftest.$ac_ext <<_ACEOF
12791 cat confdefs.h >>conftest.$ac_ext
12792 cat >>conftest.$ac_ext <<_ACEOF
12793 /* end confdefs.h. */
12794 main(){long a=1L; char *p=(char *)&a; exit(*p);}
12796 rm -f conftest$ac_exeext
12797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12798 (eval $ac_link) 2>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12803 (eval $ac_try) 2>&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); }; }; then
12807 ba_cv_bigendian=yes
12809 echo "$as_me: program exited with status $ac_status" >&5
12810 echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.$ac_ext >&5
12813 ( exit $ac_status )
12816 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12819 echo "$as_me:$LINENO: result: $ba_cv_bigendian" >&5
12820 echo "${ECHO_T}$ba_cv_bigendian" >&6
12821 test $ba_cv_bigendian = yes && cat >>confdefs.h <<\_ACEOF
12822 #define HAVE_BIGENDIAN 1
12827 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12828 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
12829 if test "${ac_cv_c_const+set}" = set; then
12830 echo $ECHO_N "(cached) $ECHO_C" >&6
12832 cat >conftest.$ac_ext <<_ACEOF
12835 cat confdefs.h >>conftest.$ac_ext
12836 cat >>conftest.$ac_ext <<_ACEOF
12837 /* end confdefs.h. */
12842 /* FIXME: Include the comments suggested by Paul. */
12843 #ifndef __cplusplus
12844 /* Ultrix mips cc rejects this. */
12845 typedef int charset[2];
12847 /* SunOS 4.1.1 cc rejects this. */
12848 char const *const *ccp;
12850 /* NEC SVR4.0.2 mips cc rejects this. */
12851 struct point {int x, y;};
12852 static struct point const zero = {0,0};
12853 /* AIX XL C 1.02.0.0 rejects this.
12854 It does not let you subtract one const X* pointer from another in
12855 an arm of an if-expression whose if-part is not a constant
12857 const char *g = "string";
12858 ccp = &g + (g ? g-g : 0);
12859 /* HPUX 7.0 cc rejects these. */
12862 ccp = (char const *const *) p;
12863 { /* SCO 3.2v4 cc rejects this. */
12865 char const *s = 0 ? (char *) 0 : (char const *) 0;
12869 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12870 int x[] = {25, 17};
12871 const int *foo = &x[0];
12874 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12875 typedef const int *iptr;
12879 { /* AIX XL C 1.02.0.0 rejects this saying
12880 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12881 struct s { int j; const int *ap[3]; };
12882 struct s *b; b->j = 5;
12884 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12885 const int foo = 10;
12893 rm -f conftest.$ac_objext
12894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12895 (eval $ac_compile) 2>conftest.er1
12897 grep -v '^ *+' conftest.er1 >conftest.err
12899 cat conftest.err >&5
12900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12901 (exit $ac_status); } &&
12902 { ac_try='test -z "$ac_c_werror_flag"
12903 || test ! -s conftest.err'
12904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; } &&
12909 { ac_try='test -s conftest.$ac_objext'
12910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12911 (eval $ac_try) 2>&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; }; then
12917 echo "$as_me: failed program was:" >&5
12918 sed 's/^/| /' conftest.$ac_ext >&5
12922 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12924 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12925 echo "${ECHO_T}$ac_cv_c_const" >&6
12926 if test $ac_cv_c_const = no; then
12928 cat >>confdefs.h <<\_ACEOF
12936 echo "$as_me:$LINENO: checking how to get filesystem type" >&5
12937 echo $ECHO_N "checking how to get filesystem type... $ECHO_C" >&6
12939 # The order of these tests is important.
12940 cat >conftest.$ac_ext <<_ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h. */
12946 #include <sys/statvfs.h>
12947 #include <sys/fstyp.h>
12949 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12950 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12952 grep -v '^ *+' conftest.er1 >conftest.err
12954 cat conftest.err >&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } >/dev/null; then
12957 if test -s conftest.err; then
12958 ac_cpp_err=$ac_c_preproc_warn_flag
12959 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12966 if test -z "$ac_cpp_err"; then
12967 cat >>confdefs.h <<\_ACEOF
12968 #define FSTYPE_STATVFS 1
12972 echo "$as_me: failed program was:" >&5
12973 sed 's/^/| /' conftest.$ac_ext >&5
12977 rm -f conftest.err conftest.$ac_ext
12978 if test $fstype = no; then
12979 cat >conftest.$ac_ext <<_ACEOF
12982 cat confdefs.h >>conftest.$ac_ext
12983 cat >>conftest.$ac_ext <<_ACEOF
12984 /* end confdefs.h. */
12985 #include <sys/statfs.h>
12986 #include <sys/fstyp.h>
12988 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12989 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12991 grep -v '^ *+' conftest.er1 >conftest.err
12993 cat conftest.err >&5
12994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12995 (exit $ac_status); } >/dev/null; then
12996 if test -s conftest.err; then
12997 ac_cpp_err=$ac_c_preproc_warn_flag
12998 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13005 if test -z "$ac_cpp_err"; then
13006 cat >>confdefs.h <<\_ACEOF
13007 #define FSTYPE_USG_STATFS 1
13011 echo "$as_me: failed program was:" >&5
13012 sed 's/^/| /' conftest.$ac_ext >&5
13016 rm -f conftest.err conftest.$ac_ext
13018 if test $fstype = no; then
13019 cat >conftest.$ac_ext <<_ACEOF
13022 cat confdefs.h >>conftest.$ac_ext
13023 cat >>conftest.$ac_ext <<_ACEOF
13024 /* end confdefs.h. */
13025 #include <sys/statfs.h>
13026 #include <sys/vmount.h>
13028 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13031 grep -v '^ *+' conftest.er1 >conftest.err
13033 cat conftest.err >&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); } >/dev/null; then
13036 if test -s conftest.err; then
13037 ac_cpp_err=$ac_c_preproc_warn_flag
13038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13045 if test -z "$ac_cpp_err"; then
13046 cat >>confdefs.h <<\_ACEOF
13047 #define FSTYPE_AIX_STATFS 1
13051 echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13056 rm -f conftest.err conftest.$ac_ext
13058 if test $fstype = no; then
13059 cat >conftest.$ac_ext <<_ACEOF
13062 cat confdefs.h >>conftest.$ac_ext
13063 cat >>conftest.$ac_ext <<_ACEOF
13064 /* end confdefs.h. */
13065 #include <mntent.h>
13067 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13070 grep -v '^ *+' conftest.er1 >conftest.err
13072 cat conftest.err >&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); } >/dev/null; then
13075 if test -s conftest.err; then
13076 ac_cpp_err=$ac_c_preproc_warn_flag
13077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13084 if test -z "$ac_cpp_err"; then
13085 cat >>confdefs.h <<\_ACEOF
13086 #define FSTYPE_MNTENT 1
13090 echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.$ac_ext >&5
13095 rm -f conftest.err conftest.$ac_ext
13097 if test $fstype = no; then
13098 cat >conftest.$ac_ext <<_ACEOF
13101 cat confdefs.h >>conftest.$ac_ext
13102 cat >>conftest.$ac_ext <<_ACEOF
13103 /* end confdefs.h. */
13104 #include <sys/mount.h>
13107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13108 $EGREP "f_type;" >/dev/null 2>&1; then
13109 cat >>confdefs.h <<\_ACEOF
13110 #define FSTYPE_STATFS 1
13117 if test $fstype = no; then
13118 cat >conftest.$ac_ext <<_ACEOF
13121 cat confdefs.h >>conftest.$ac_ext
13122 cat >>conftest.$ac_ext <<_ACEOF
13123 /* end confdefs.h. */
13124 #include <sys/mount.h>
13125 #include <sys/fs_types.h>
13127 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13128 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13130 grep -v '^ *+' conftest.er1 >conftest.err
13132 cat conftest.err >&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); } >/dev/null; then
13135 if test -s conftest.err; then
13136 ac_cpp_err=$ac_c_preproc_warn_flag
13137 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13144 if test -z "$ac_cpp_err"; then
13145 cat >>confdefs.h <<\_ACEOF
13146 #define FSTYPE_GETMNT 1
13150 echo "$as_me: failed program was:" >&5
13151 sed 's/^/| /' conftest.$ac_ext >&5
13155 rm -f conftest.err conftest.$ac_ext
13157 echo "$as_me:$LINENO: result: $fstype" >&5
13158 echo "${ECHO_T}$fstype" >&6
13160 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
13161 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
13162 if test "${ac_cv_type_signal+set}" = set; then
13163 echo $ECHO_N "(cached) $ECHO_C" >&6
13165 cat >conftest.$ac_ext <<_ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h. */
13171 #include <sys/types.h>
13172 #include <signal.h>
13177 extern "C" void (*signal (int, void (*)(int)))(int);
13179 void (*signal ()) ();
13190 rm -f conftest.$ac_objext
13191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13192 (eval $ac_compile) 2>conftest.er1
13194 grep -v '^ *+' conftest.er1 >conftest.err
13196 cat conftest.err >&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); } &&
13199 { ac_try='test -z "$ac_c_werror_flag"
13200 || test ! -s conftest.err'
13201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13202 (eval $ac_try) 2>&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; } &&
13206 { ac_try='test -s conftest.$ac_objext'
13207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13208 (eval $ac_try) 2>&5
13210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13211 (exit $ac_status); }; }; then
13212 ac_cv_type_signal=void
13214 echo "$as_me: failed program was:" >&5
13215 sed 's/^/| /' conftest.$ac_ext >&5
13217 ac_cv_type_signal=int
13219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13221 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
13222 echo "${ECHO_T}$ac_cv_type_signal" >&6
13224 cat >>confdefs.h <<_ACEOF
13225 #define RETSIGTYPE $ac_cv_type_signal
13230 echo "$as_me:$LINENO: checking for type of signal functions" >&5
13231 echo $ECHO_N "checking for type of signal functions... $ECHO_C" >&6
13232 if test "${bash_cv_signal_vintage+set}" = set; then
13233 echo $ECHO_N "(cached) $ECHO_C" >&6
13236 cat >conftest.$ac_ext <<_ACEOF
13239 cat confdefs.h >>conftest.$ac_ext
13240 cat >>conftest.$ac_ext <<_ACEOF
13241 /* end confdefs.h. */
13242 #include <signal.h>
13248 struct sigaction sa;
13249 sigemptyset(&ss); sigsuspend(&ss);
13250 sigaction(SIGINT, &sa, (struct sigaction *) 0);
13251 sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
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=posix
13281 echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13285 cat >conftest.$ac_ext <<_ACEOF
13288 cat confdefs.h >>conftest.$ac_ext
13289 cat >>conftest.$ac_ext <<_ACEOF
13290 /* end confdefs.h. */
13291 #include <signal.h>
13296 int mask = sigmask(SIGINT);
13297 sigsetmask(mask); sigblock(mask); sigpause(mask);
13303 rm -f conftest.$ac_objext conftest$ac_exeext
13304 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13305 (eval $ac_link) 2>conftest.er1
13307 grep -v '^ *+' conftest.er1 >conftest.err
13309 cat conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } &&
13312 { ac_try='test -z "$ac_c_werror_flag"
13313 || test ! -s conftest.err'
13314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13315 (eval $ac_try) 2>&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; } &&
13319 { ac_try='test -s conftest$ac_exeext'
13320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13321 (eval $ac_try) 2>&5
13323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13324 (exit $ac_status); }; }; then
13325 bash_cv_signal_vintage=4.2bsd
13327 echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.$ac_ext >&5
13331 cat >conftest.$ac_ext <<_ACEOF
13334 cat confdefs.h >>conftest.$ac_ext
13335 cat >>conftest.$ac_ext <<_ACEOF
13336 /* end confdefs.h. */
13338 #include <signal.h>
13339 RETSIGTYPE foo() { }
13344 int mask = sigmask(SIGINT);
13345 sigset(SIGINT, foo); sigrelse(SIGINT);
13346 sighold(SIGINT); sigpause(SIGINT);
13352 rm -f conftest.$ac_objext conftest$ac_exeext
13353 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13354 (eval $ac_link) 2>conftest.er1
13356 grep -v '^ *+' conftest.er1 >conftest.err
13358 cat conftest.err >&5
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); } &&
13361 { ac_try='test -z "$ac_c_werror_flag"
13362 || test ! -s conftest.err'
13363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13364 (eval $ac_try) 2>&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; } &&
13368 { ac_try='test -s conftest$ac_exeext'
13369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13370 (eval $ac_try) 2>&5
13372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13373 (exit $ac_status); }; }; then
13374 bash_cv_signal_vintage=svr3
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13379 bash_cv_signal_vintage=v7
13382 rm -f conftest.err conftest.$ac_objext \
13383 conftest$ac_exeext conftest.$ac_ext
13386 rm -f conftest.err conftest.$ac_objext \
13387 conftest$ac_exeext conftest.$ac_ext
13390 rm -f conftest.err conftest.$ac_objext \
13391 conftest$ac_exeext conftest.$ac_ext
13395 echo "$as_me:$LINENO: result: $bash_cv_signal_vintage" >&5
13396 echo "${ECHO_T}$bash_cv_signal_vintage" >&6
13397 if test "$bash_cv_signal_vintage" = posix; then
13398 cat >>confdefs.h <<\_ACEOF
13399 #define HAVE_POSIX_SIGNALS 1
13402 elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
13403 cat >>confdefs.h <<\_ACEOF
13404 #define HAVE_BSD_SIGNALS 1
13407 elif test "$bash_cv_signal_vintage" = svr3; then
13408 cat >>confdefs.h <<\_ACEOF
13409 #define HAVE_USG_SIGHOLD 1
13414 echo "$as_me:$LINENO: checking for mode_t" >&5
13415 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
13416 if test "${ac_cv_type_mode_t+set}" = set; then
13417 echo $ECHO_N "(cached) $ECHO_C" >&6
13419 cat >conftest.$ac_ext <<_ACEOF
13422 cat confdefs.h >>conftest.$ac_ext
13423 cat >>conftest.$ac_ext <<_ACEOF
13424 /* end confdefs.h. */
13425 $ac_includes_default
13431 if (sizeof (mode_t))
13437 rm -f conftest.$ac_objext
13438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13439 (eval $ac_compile) 2>conftest.er1
13441 grep -v '^ *+' conftest.er1 >conftest.err
13443 cat conftest.err >&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 (exit $ac_status); } &&
13446 { ac_try='test -z "$ac_c_werror_flag"
13447 || test ! -s conftest.err'
13448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13449 (eval $ac_try) 2>&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); }; } &&
13453 { ac_try='test -s conftest.$ac_objext'
13454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13455 (eval $ac_try) 2>&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); }; }; then
13459 ac_cv_type_mode_t=yes
13461 echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13464 ac_cv_type_mode_t=no
13466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13468 echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13469 echo "${ECHO_T}$ac_cv_type_mode_t" >&6
13470 if test $ac_cv_type_mode_t = yes; then
13474 cat >>confdefs.h <<_ACEOF
13480 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13481 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
13482 if test "${ac_cv_type_uid_t+set}" = set; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13485 cat >conftest.$ac_ext <<_ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13491 #include <sys/types.h>
13494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13495 $EGREP "uid_t" >/dev/null 2>&1; then
13496 ac_cv_type_uid_t=yes
13498 ac_cv_type_uid_t=no
13503 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13504 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
13505 if test $ac_cv_type_uid_t = no; then
13507 cat >>confdefs.h <<\_ACEOF
13512 cat >>confdefs.h <<\_ACEOF
13518 echo "$as_me:$LINENO: checking for size_t" >&5
13519 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
13520 if test "${ac_cv_type_size_t+set}" = set; then
13521 echo $ECHO_N "(cached) $ECHO_C" >&6
13523 cat >conftest.$ac_ext <<_ACEOF
13526 cat confdefs.h >>conftest.$ac_ext
13527 cat >>conftest.$ac_ext <<_ACEOF
13528 /* end confdefs.h. */
13529 $ac_includes_default
13535 if (sizeof (size_t))
13541 rm -f conftest.$ac_objext
13542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13543 (eval $ac_compile) 2>conftest.er1
13545 grep -v '^ *+' conftest.er1 >conftest.err
13547 cat conftest.err >&5
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); } &&
13550 { ac_try='test -z "$ac_c_werror_flag"
13551 || test ! -s conftest.err'
13552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13553 (eval $ac_try) 2>&5
13555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13556 (exit $ac_status); }; } &&
13557 { ac_try='test -s conftest.$ac_objext'
13558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13559 (eval $ac_try) 2>&5
13561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562 (exit $ac_status); }; }; then
13563 ac_cv_type_size_t=yes
13565 echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13568 ac_cv_type_size_t=no
13570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13572 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
13573 echo "${ECHO_T}$ac_cv_type_size_t" >&6
13574 if test $ac_cv_type_size_t = yes; then
13578 cat >>confdefs.h <<_ACEOF
13579 #define size_t unsigned
13584 echo "$as_me:$LINENO: checking for pid_t" >&5
13585 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
13586 if test "${ac_cv_type_pid_t+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 cat >conftest.$ac_ext <<_ACEOF
13592 cat confdefs.h >>conftest.$ac_ext
13593 cat >>conftest.$ac_ext <<_ACEOF
13594 /* end confdefs.h. */
13595 $ac_includes_default
13601 if (sizeof (pid_t))
13607 rm -f conftest.$ac_objext
13608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13609 (eval $ac_compile) 2>conftest.er1
13611 grep -v '^ *+' conftest.er1 >conftest.err
13613 cat conftest.err >&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); } &&
13616 { ac_try='test -z "$ac_c_werror_flag"
13617 || test ! -s conftest.err'
13618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13619 (eval $ac_try) 2>&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); }; } &&
13623 { ac_try='test -s conftest.$ac_objext'
13624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13625 (eval $ac_try) 2>&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); }; }; then
13629 ac_cv_type_pid_t=yes
13631 echo "$as_me: failed program was:" >&5
13632 sed 's/^/| /' conftest.$ac_ext >&5
13634 ac_cv_type_pid_t=no
13636 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13638 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
13639 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
13640 if test $ac_cv_type_pid_t = yes; then
13644 cat >>confdefs.h <<_ACEOF
13650 echo "$as_me:$LINENO: checking for off_t" >&5
13651 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
13652 if test "${ac_cv_type_off_t+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13655 cat >conftest.$ac_ext <<_ACEOF
13658 cat confdefs.h >>conftest.$ac_ext
13659 cat >>conftest.$ac_ext <<_ACEOF
13660 /* end confdefs.h. */
13661 $ac_includes_default
13667 if (sizeof (off_t))
13673 rm -f conftest.$ac_objext
13674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13675 (eval $ac_compile) 2>conftest.er1
13677 grep -v '^ *+' conftest.er1 >conftest.err
13679 cat conftest.err >&5
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); } &&
13682 { ac_try='test -z "$ac_c_werror_flag"
13683 || test ! -s conftest.err'
13684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13685 (eval $ac_try) 2>&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); }; } &&
13689 { ac_try='test -s conftest.$ac_objext'
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; }; then
13695 ac_cv_type_off_t=yes
13697 echo "$as_me: failed program was:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13700 ac_cv_type_off_t=no
13702 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13704 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
13705 echo "${ECHO_T}$ac_cv_type_off_t" >&6
13706 if test $ac_cv_type_off_t = yes; then
13710 cat >>confdefs.h <<_ACEOF
13716 echo "$as_me:$LINENO: checking for ino_t" >&5
13717 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6
13718 if test "${ac_cv_type_ino_t+set}" = set; then
13719 echo $ECHO_N "(cached) $ECHO_C" >&6
13721 cat >conftest.$ac_ext <<_ACEOF
13724 cat confdefs.h >>conftest.$ac_ext
13725 cat >>conftest.$ac_ext <<_ACEOF
13726 /* end confdefs.h. */
13727 $ac_includes_default
13733 if (sizeof (ino_t))
13739 rm -f conftest.$ac_objext
13740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13741 (eval $ac_compile) 2>conftest.er1
13743 grep -v '^ *+' conftest.er1 >conftest.err
13745 cat conftest.err >&5
13746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747 (exit $ac_status); } &&
13748 { ac_try='test -z "$ac_c_werror_flag"
13749 || test ! -s conftest.err'
13750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13751 (eval $ac_try) 2>&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); }; } &&
13755 { ac_try='test -s conftest.$ac_objext'
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; }; then
13761 ac_cv_type_ino_t=yes
13763 echo "$as_me: failed program was:" >&5
13764 sed 's/^/| /' conftest.$ac_ext >&5
13766 ac_cv_type_ino_t=no
13768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13770 echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
13771 echo "${ECHO_T}$ac_cv_type_ino_t" >&6
13772 if test $ac_cv_type_ino_t = yes; then
13776 cat >>confdefs.h <<_ACEOF
13777 #define ino_t unsigned long
13782 echo "$as_me:$LINENO: checking for dev_t" >&5
13783 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6
13784 if test "${ac_cv_type_dev_t+set}" = set; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13787 cat >conftest.$ac_ext <<_ACEOF
13790 cat confdefs.h >>conftest.$ac_ext
13791 cat >>conftest.$ac_ext <<_ACEOF
13792 /* end confdefs.h. */
13793 $ac_includes_default
13799 if (sizeof (dev_t))
13805 rm -f conftest.$ac_objext
13806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13807 (eval $ac_compile) 2>conftest.er1
13809 grep -v '^ *+' conftest.er1 >conftest.err
13811 cat conftest.err >&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } &&
13814 { ac_try='test -z "$ac_c_werror_flag"
13815 || test ! -s conftest.err'
13816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13817 (eval $ac_try) 2>&5
13819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); }; } &&
13821 { ac_try='test -s conftest.$ac_objext'
13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13823 (eval $ac_try) 2>&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); }; }; then
13827 ac_cv_type_dev_t=yes
13829 echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13832 ac_cv_type_dev_t=no
13834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13836 echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
13837 echo "${ECHO_T}$ac_cv_type_dev_t" >&6
13838 if test $ac_cv_type_dev_t = yes; then
13842 cat >>confdefs.h <<_ACEOF
13843 #define dev_t unsigned long
13848 echo "$as_me:$LINENO: checking for daddr_t" >&5
13849 echo $ECHO_N "checking for daddr_t... $ECHO_C" >&6
13850 if test "${ac_cv_type_daddr_t+set}" = set; then
13851 echo $ECHO_N "(cached) $ECHO_C" >&6
13853 cat >conftest.$ac_ext <<_ACEOF
13856 cat confdefs.h >>conftest.$ac_ext
13857 cat >>conftest.$ac_ext <<_ACEOF
13858 /* end confdefs.h. */
13859 $ac_includes_default
13865 if (sizeof (daddr_t))
13871 rm -f conftest.$ac_objext
13872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13873 (eval $ac_compile) 2>conftest.er1
13875 grep -v '^ *+' conftest.er1 >conftest.err
13877 cat conftest.err >&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); } &&
13880 { ac_try='test -z "$ac_c_werror_flag"
13881 || test ! -s conftest.err'
13882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13883 (eval $ac_try) 2>&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); }; } &&
13887 { ac_try='test -s conftest.$ac_objext'
13888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13889 (eval $ac_try) 2>&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); }; }; then
13893 ac_cv_type_daddr_t=yes
13895 echo "$as_me: failed program was:" >&5
13896 sed 's/^/| /' conftest.$ac_ext >&5
13898 ac_cv_type_daddr_t=no
13900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13902 echo "$as_me:$LINENO: result: $ac_cv_type_daddr_t" >&5
13903 echo "${ECHO_T}$ac_cv_type_daddr_t" >&6
13904 if test $ac_cv_type_daddr_t = yes; then
13908 cat >>confdefs.h <<_ACEOF
13909 #define daddr_t long
13914 echo "$as_me:$LINENO: checking for major_t" >&5
13915 echo $ECHO_N "checking for major_t... $ECHO_C" >&6
13916 if test "${ac_cv_type_major_t+set}" = set; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13919 cat >conftest.$ac_ext <<_ACEOF
13922 cat confdefs.h >>conftest.$ac_ext
13923 cat >>conftest.$ac_ext <<_ACEOF
13924 /* end confdefs.h. */
13925 $ac_includes_default
13931 if (sizeof (major_t))
13937 rm -f conftest.$ac_objext
13938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13939 (eval $ac_compile) 2>conftest.er1
13941 grep -v '^ *+' conftest.er1 >conftest.err
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } &&
13946 { ac_try='test -z "$ac_c_werror_flag"
13947 || test ! -s conftest.err'
13948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13949 (eval $ac_try) 2>&5
13951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13952 (exit $ac_status); }; } &&
13953 { ac_try='test -s conftest.$ac_objext'
13954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13955 (eval $ac_try) 2>&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); }; }; then
13959 ac_cv_type_major_t=yes
13961 echo "$as_me: failed program was:" >&5
13962 sed 's/^/| /' conftest.$ac_ext >&5
13964 ac_cv_type_major_t=no
13966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13968 echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
13969 echo "${ECHO_T}$ac_cv_type_major_t" >&6
13970 if test $ac_cv_type_major_t = yes; then
13974 cat >>confdefs.h <<_ACEOF
13975 #define major_t int
13980 echo "$as_me:$LINENO: checking for minor_t" >&5
13981 echo $ECHO_N "checking for minor_t... $ECHO_C" >&6
13982 if test "${ac_cv_type_minor_t+set}" = set; then
13983 echo $ECHO_N "(cached) $ECHO_C" >&6
13985 cat >conftest.$ac_ext <<_ACEOF
13988 cat confdefs.h >>conftest.$ac_ext
13989 cat >>conftest.$ac_ext <<_ACEOF
13990 /* end confdefs.h. */
13991 $ac_includes_default
13997 if (sizeof (minor_t))
14003 rm -f conftest.$ac_objext
14004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14005 (eval $ac_compile) 2>conftest.er1
14007 grep -v '^ *+' conftest.er1 >conftest.err
14009 cat conftest.err >&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } &&
14012 { ac_try='test -z "$ac_c_werror_flag"
14013 || test ! -s conftest.err'
14014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14015 (eval $ac_try) 2>&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); }; } &&
14019 { ac_try='test -s conftest.$ac_objext'
14020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14021 (eval $ac_try) 2>&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
14025 ac_cv_type_minor_t=yes
14027 echo "$as_me: failed program was:" >&5
14028 sed 's/^/| /' conftest.$ac_ext >&5
14030 ac_cv_type_minor_t=no
14032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14034 echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
14035 echo "${ECHO_T}$ac_cv_type_minor_t" >&6
14036 if test $ac_cv_type_minor_t = yes; then
14040 cat >>confdefs.h <<_ACEOF
14041 #define minor_t int
14046 echo "$as_me:$LINENO: checking for ssize_t" >&5
14047 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14048 if test "${ac_cv_type_ssize_t+set}" = set; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14051 cat >conftest.$ac_ext <<_ACEOF
14054 cat confdefs.h >>conftest.$ac_ext
14055 cat >>conftest.$ac_ext <<_ACEOF
14056 /* end confdefs.h. */
14057 $ac_includes_default
14063 if (sizeof (ssize_t))
14069 rm -f conftest.$ac_objext
14070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14071 (eval $ac_compile) 2>conftest.er1
14073 grep -v '^ *+' conftest.er1 >conftest.err
14075 cat conftest.err >&5
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); } &&
14078 { ac_try='test -z "$ac_c_werror_flag"
14079 || test ! -s conftest.err'
14080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14081 (eval $ac_try) 2>&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); }; } &&
14085 { ac_try='test -s conftest.$ac_objext'
14086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14087 (eval $ac_try) 2>&5
14089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14090 (exit $ac_status); }; }; then
14091 ac_cv_type_ssize_t=yes
14093 echo "$as_me: failed program was:" >&5
14094 sed 's/^/| /' conftest.$ac_ext >&5
14096 ac_cv_type_ssize_t=no
14098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14100 echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14101 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14102 if test $ac_cv_type_ssize_t = yes; then
14106 cat >>confdefs.h <<_ACEOF
14107 #define ssize_t int
14112 echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
14113 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
14114 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
14115 echo $ECHO_N "(cached) $ECHO_C" >&6
14117 cat >conftest.$ac_ext <<_ACEOF
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h. */
14123 $ac_includes_default
14127 static struct stat ac_aggr;
14128 if (ac_aggr.st_blocks)
14134 rm -f conftest.$ac_objext
14135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14136 (eval $ac_compile) 2>conftest.er1
14138 grep -v '^ *+' conftest.er1 >conftest.err
14140 cat conftest.err >&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); } &&
14143 { ac_try='test -z "$ac_c_werror_flag"
14144 || test ! -s conftest.err'
14145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14146 (eval $ac_try) 2>&5
14148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14149 (exit $ac_status); }; } &&
14150 { ac_try='test -s conftest.$ac_objext'
14151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14152 (eval $ac_try) 2>&5
14154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14155 (exit $ac_status); }; }; then
14156 ac_cv_member_struct_stat_st_blocks=yes
14158 echo "$as_me: failed program was:" >&5
14159 sed 's/^/| /' conftest.$ac_ext >&5
14161 cat >conftest.$ac_ext <<_ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h. */
14167 $ac_includes_default
14171 static struct stat ac_aggr;
14172 if (sizeof ac_aggr.st_blocks)
14178 rm -f conftest.$ac_objext
14179 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14180 (eval $ac_compile) 2>conftest.er1
14182 grep -v '^ *+' conftest.er1 >conftest.err
14184 cat conftest.err >&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } &&
14187 { ac_try='test -z "$ac_c_werror_flag"
14188 || test ! -s conftest.err'
14189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14190 (eval $ac_try) 2>&5
14192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14193 (exit $ac_status); }; } &&
14194 { ac_try='test -s conftest.$ac_objext'
14195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14196 (eval $ac_try) 2>&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); }; }; then
14200 ac_cv_member_struct_stat_st_blocks=yes
14202 echo "$as_me: failed program was:" >&5
14203 sed 's/^/| /' conftest.$ac_ext >&5
14205 ac_cv_member_struct_stat_st_blocks=no
14207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14209 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14211 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
14212 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
14213 if test $ac_cv_member_struct_stat_st_blocks = yes; then
14215 cat >>confdefs.h <<_ACEOF
14216 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
14220 cat >>confdefs.h <<\_ACEOF
14221 #define HAVE_ST_BLOCKS 1
14226 "fileblocks.$ac_objext" | \
14227 *" fileblocks.$ac_objext" | \
14228 "fileblocks.$ac_objext "* | \
14229 *" fileblocks.$ac_objext "* ) ;;
14230 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;;
14237 echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
14238 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6
14239 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
14240 echo $ECHO_N "(cached) $ECHO_C" >&6
14242 cat >conftest.$ac_ext <<_ACEOF
14245 cat confdefs.h >>conftest.$ac_ext
14246 cat >>conftest.$ac_ext <<_ACEOF
14247 /* end confdefs.h. */
14248 $ac_includes_default
14252 static struct stat ac_aggr;
14253 if (ac_aggr.st_rdev)
14259 rm -f conftest.$ac_objext
14260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14261 (eval $ac_compile) 2>conftest.er1
14263 grep -v '^ *+' conftest.er1 >conftest.err
14265 cat conftest.err >&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); } &&
14268 { ac_try='test -z "$ac_c_werror_flag"
14269 || test ! -s conftest.err'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; } &&
14275 { ac_try='test -s conftest.$ac_objext'
14276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14277 (eval $ac_try) 2>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }; then
14281 ac_cv_member_struct_stat_st_rdev=yes
14283 echo "$as_me: failed program was:" >&5
14284 sed 's/^/| /' conftest.$ac_ext >&5
14286 cat >conftest.$ac_ext <<_ACEOF
14289 cat confdefs.h >>conftest.$ac_ext
14290 cat >>conftest.$ac_ext <<_ACEOF
14291 /* end confdefs.h. */
14292 $ac_includes_default
14296 static struct stat ac_aggr;
14297 if (sizeof ac_aggr.st_rdev)
14303 rm -f conftest.$ac_objext
14304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14305 (eval $ac_compile) 2>conftest.er1
14307 grep -v '^ *+' conftest.er1 >conftest.err
14309 cat conftest.err >&5
14310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14311 (exit $ac_status); } &&
14312 { ac_try='test -z "$ac_c_werror_flag"
14313 || test ! -s conftest.err'
14314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14315 (eval $ac_try) 2>&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); }; } &&
14319 { ac_try='test -s conftest.$ac_objext'
14320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14321 (eval $ac_try) 2>&5
14323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14324 (exit $ac_status); }; }; then
14325 ac_cv_member_struct_stat_st_rdev=yes
14327 echo "$as_me: failed program was:" >&5
14328 sed 's/^/| /' conftest.$ac_ext >&5
14330 ac_cv_member_struct_stat_st_rdev=no
14332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14336 echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
14337 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6
14338 if test $ac_cv_member_struct_stat_st_rdev = yes; then
14340 cat >>confdefs.h <<_ACEOF
14341 #define HAVE_STRUCT_STAT_ST_RDEV 1
14345 cat >>confdefs.h <<\_ACEOF
14346 #define HAVE_ST_RDEV 1
14352 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14353 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
14354 if test "${ac_cv_struct_tm+set}" = set; then
14355 echo $ECHO_N "(cached) $ECHO_C" >&6
14357 cat >conftest.$ac_ext <<_ACEOF
14360 cat confdefs.h >>conftest.$ac_ext
14361 cat >>conftest.$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14363 #include <sys/types.h>
14369 struct tm *tp; tp->tm_sec;
14374 rm -f conftest.$ac_objext
14375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14376 (eval $ac_compile) 2>conftest.er1
14378 grep -v '^ *+' conftest.er1 >conftest.err
14380 cat conftest.err >&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } &&
14383 { ac_try='test -z "$ac_c_werror_flag"
14384 || test ! -s conftest.err'
14385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14386 (eval $ac_try) 2>&5
14388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14389 (exit $ac_status); }; } &&
14390 { ac_try='test -s conftest.$ac_objext'
14391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14392 (eval $ac_try) 2>&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); }; }; then
14396 ac_cv_struct_tm=time.h
14398 echo "$as_me: failed program was:" >&5
14399 sed 's/^/| /' conftest.$ac_ext >&5
14401 ac_cv_struct_tm=sys/time.h
14403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14405 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14406 echo "${ECHO_T}$ac_cv_struct_tm" >&6
14407 if test $ac_cv_struct_tm = sys/time.h; then
14409 cat >>confdefs.h <<\_ACEOF
14410 #define TM_IN_SYS_TIME 1
14415 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
14416 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14417 if test "${ac_cv_c_const+set}" = set; then
14418 echo $ECHO_N "(cached) $ECHO_C" >&6
14420 cat >conftest.$ac_ext <<_ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h. */
14430 /* FIXME: Include the comments suggested by Paul. */
14431 #ifndef __cplusplus
14432 /* Ultrix mips cc rejects this. */
14433 typedef int charset[2];
14435 /* SunOS 4.1.1 cc rejects this. */
14436 char const *const *ccp;
14438 /* NEC SVR4.0.2 mips cc rejects this. */
14439 struct point {int x, y;};
14440 static struct point const zero = {0,0};
14441 /* AIX XL C 1.02.0.0 rejects this.
14442 It does not let you subtract one const X* pointer from another in
14443 an arm of an if-expression whose if-part is not a constant
14445 const char *g = "string";
14446 ccp = &g + (g ? g-g : 0);
14447 /* HPUX 7.0 cc rejects these. */
14450 ccp = (char const *const *) p;
14451 { /* SCO 3.2v4 cc rejects this. */
14453 char const *s = 0 ? (char *) 0 : (char const *) 0;
14457 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14458 int x[] = {25, 17};
14459 const int *foo = &x[0];
14462 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14463 typedef const int *iptr;
14467 { /* AIX XL C 1.02.0.0 rejects this saying
14468 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14469 struct s { int j; const int *ap[3]; };
14470 struct s *b; b->j = 5;
14472 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14473 const int foo = 10;
14481 rm -f conftest.$ac_objext
14482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14483 (eval $ac_compile) 2>conftest.er1
14485 grep -v '^ *+' conftest.er1 >conftest.err
14487 cat conftest.err >&5
14488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14489 (exit $ac_status); } &&
14490 { ac_try='test -z "$ac_c_werror_flag"
14491 || test ! -s conftest.err'
14492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14493 (eval $ac_try) 2>&5
14495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496 (exit $ac_status); }; } &&
14497 { ac_try='test -s conftest.$ac_objext'
14498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499 (eval $ac_try) 2>&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; }; then
14505 echo "$as_me: failed program was:" >&5
14506 sed 's/^/| /' conftest.$ac_ext >&5
14510 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14512 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
14513 echo "${ECHO_T}$ac_cv_c_const" >&6
14514 if test $ac_cv_c_const = no; then
14516 cat >>confdefs.h <<\_ACEOF
14524 echo "$as_me:$LINENO: checking for char" >&5
14525 echo $ECHO_N "checking for char... $ECHO_C" >&6
14526 if test "${ac_cv_type_char+set}" = set; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14529 cat >conftest.$ac_ext <<_ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h. */
14535 $ac_includes_default
14547 rm -f conftest.$ac_objext
14548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14549 (eval $ac_compile) 2>conftest.er1
14551 grep -v '^ *+' conftest.er1 >conftest.err
14553 cat conftest.err >&5
14554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555 (exit $ac_status); } &&
14556 { ac_try='test -z "$ac_c_werror_flag"
14557 || test ! -s conftest.err'
14558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14559 (eval $ac_try) 2>&5
14561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14562 (exit $ac_status); }; } &&
14563 { ac_try='test -s conftest.$ac_objext'
14564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14565 (eval $ac_try) 2>&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); }; }; then
14569 ac_cv_type_char=yes
14571 echo "$as_me: failed program was:" >&5
14572 sed 's/^/| /' conftest.$ac_ext >&5
14576 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14578 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
14579 echo "${ECHO_T}$ac_cv_type_char" >&6
14581 echo "$as_me:$LINENO: checking size of char" >&5
14582 echo $ECHO_N "checking size of char... $ECHO_C" >&6
14583 if test "${ac_cv_sizeof_char+set}" = set; then
14584 echo $ECHO_N "(cached) $ECHO_C" >&6
14586 if test "$ac_cv_type_char" = yes; then
14587 # The cast to unsigned long works around a bug in the HP C Compiler
14588 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14589 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14590 # This bug is HP SR number 8606223364.
14591 if test "$cross_compiling" = yes; then
14592 # Depending upon the size, compute the lo and hi bounds.
14593 cat >conftest.$ac_ext <<_ACEOF
14596 cat confdefs.h >>conftest.$ac_ext
14597 cat >>conftest.$ac_ext <<_ACEOF
14598 /* end confdefs.h. */
14599 $ac_includes_default
14603 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
14610 rm -f conftest.$ac_objext
14611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14612 (eval $ac_compile) 2>conftest.er1
14614 grep -v '^ *+' conftest.er1 >conftest.err
14616 cat conftest.err >&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); } &&
14619 { ac_try='test -z "$ac_c_werror_flag"
14620 || test ! -s conftest.err'
14621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14622 (eval $ac_try) 2>&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); }; } &&
14626 { ac_try='test -s conftest.$ac_objext'
14627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14628 (eval $ac_try) 2>&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; }; then
14634 cat >conftest.$ac_ext <<_ACEOF
14637 cat confdefs.h >>conftest.$ac_ext
14638 cat >>conftest.$ac_ext <<_ACEOF
14639 /* end confdefs.h. */
14640 $ac_includes_default
14644 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14651 rm -f conftest.$ac_objext
14652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14653 (eval $ac_compile) 2>conftest.er1
14655 grep -v '^ *+' conftest.er1 >conftest.err
14657 cat conftest.err >&5
14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14659 (exit $ac_status); } &&
14660 { ac_try='test -z "$ac_c_werror_flag"
14661 || test ! -s conftest.err'
14662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14663 (eval $ac_try) 2>&5
14665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14666 (exit $ac_status); }; } &&
14667 { ac_try='test -s conftest.$ac_objext'
14668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14669 (eval $ac_try) 2>&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); }; }; then
14673 ac_hi=$ac_mid; break
14675 echo "$as_me: failed program was:" >&5
14676 sed 's/^/| /' conftest.$ac_ext >&5
14678 ac_lo=`expr $ac_mid + 1`
14679 if test $ac_lo -le $ac_mid; then
14683 ac_mid=`expr 2 '*' $ac_mid + 1`
14685 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14688 echo "$as_me: failed program was:" >&5
14689 sed 's/^/| /' conftest.$ac_ext >&5
14691 cat >conftest.$ac_ext <<_ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14697 $ac_includes_default
14701 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
14708 rm -f conftest.$ac_objext
14709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14710 (eval $ac_compile) 2>conftest.er1
14712 grep -v '^ *+' conftest.er1 >conftest.err
14714 cat conftest.err >&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); } &&
14717 { ac_try='test -z "$ac_c_werror_flag"
14718 || test ! -s conftest.err'
14719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14720 (eval $ac_try) 2>&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); }; } &&
14724 { ac_try='test -s conftest.$ac_objext'
14725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14726 (eval $ac_try) 2>&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); }; }; then
14732 cat >conftest.$ac_ext <<_ACEOF
14735 cat confdefs.h >>conftest.$ac_ext
14736 cat >>conftest.$ac_ext <<_ACEOF
14737 /* end confdefs.h. */
14738 $ac_includes_default
14742 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
14749 rm -f conftest.$ac_objext
14750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14751 (eval $ac_compile) 2>conftest.er1
14753 grep -v '^ *+' conftest.er1 >conftest.err
14755 cat conftest.err >&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); } &&
14758 { ac_try='test -z "$ac_c_werror_flag"
14759 || test ! -s conftest.err'
14760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14761 (eval $ac_try) 2>&5
14763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14764 (exit $ac_status); }; } &&
14765 { ac_try='test -s conftest.$ac_objext'
14766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14767 (eval $ac_try) 2>&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); }; }; then
14771 ac_lo=$ac_mid; break
14773 echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14776 ac_hi=`expr '(' $ac_mid ')' - 1`
14777 if test $ac_mid -le $ac_hi; then
14781 ac_mid=`expr 2 '*' $ac_mid`
14783 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14786 echo "$as_me: failed program was:" >&5
14787 sed 's/^/| /' conftest.$ac_ext >&5
14791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14794 # Binary search between lo and hi bounds.
14795 while test "x$ac_lo" != "x$ac_hi"; do
14796 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14797 cat >conftest.$ac_ext <<_ACEOF
14800 cat confdefs.h >>conftest.$ac_ext
14801 cat >>conftest.$ac_ext <<_ACEOF
14802 /* end confdefs.h. */
14803 $ac_includes_default
14807 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
14814 rm -f conftest.$ac_objext
14815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14816 (eval $ac_compile) 2>conftest.er1
14818 grep -v '^ *+' conftest.er1 >conftest.err
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } &&
14823 { ac_try='test -z "$ac_c_werror_flag"
14824 || test ! -s conftest.err'
14825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14826 (eval $ac_try) 2>&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); }; } &&
14830 { ac_try='test -s conftest.$ac_objext'
14831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14832 (eval $ac_try) 2>&5
14834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14835 (exit $ac_status); }; }; then
14838 echo "$as_me: failed program was:" >&5
14839 sed 's/^/| /' conftest.$ac_ext >&5
14841 ac_lo=`expr '(' $ac_mid ')' + 1`
14843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14846 ?*) ac_cv_sizeof_char=$ac_lo;;
14847 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14848 See \`config.log' for more details." >&5
14849 echo "$as_me: error: cannot compute sizeof (char), 77
14850 See \`config.log' for more details." >&2;}
14851 { (exit 1); exit 1; }; } ;;
14854 if test "$cross_compiling" = yes; then
14855 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14856 See \`config.log' for more details." >&5
14857 echo "$as_me: error: cannot run test program while cross compiling
14858 See \`config.log' for more details." >&2;}
14859 { (exit 1); exit 1; }; }
14861 cat >conftest.$ac_ext <<_ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h. */
14867 $ac_includes_default
14868 long longval () { return (long) (sizeof (char)); }
14869 unsigned long ulongval () { return (long) (sizeof (char)); }
14871 #include <stdlib.h>
14876 FILE *f = fopen ("conftest.val", "w");
14879 if (((long) (sizeof (char))) < 0)
14881 long i = longval ();
14882 if (i != ((long) (sizeof (char))))
14884 fprintf (f, "%ld\n", i);
14888 unsigned long i = ulongval ();
14889 if (i != ((long) (sizeof (char))))
14891 fprintf (f, "%lu\n", i);
14893 exit (ferror (f) || fclose (f) != 0);
14899 rm -f conftest$ac_exeext
14900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14901 (eval $ac_link) 2>&5
14903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14906 (eval $ac_try) 2>&5
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); }; }; then
14910 ac_cv_sizeof_char=`cat conftest.val`
14912 echo "$as_me: program exited with status $ac_status" >&5
14913 echo "$as_me: failed program was:" >&5
14914 sed 's/^/| /' conftest.$ac_ext >&5
14916 ( exit $ac_status )
14917 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77
14918 See \`config.log' for more details." >&5
14919 echo "$as_me: error: cannot compute sizeof (char), 77
14920 See \`config.log' for more details." >&2;}
14921 { (exit 1); exit 1; }; }
14923 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14928 ac_cv_sizeof_char=0
14931 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
14932 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
14933 cat >>confdefs.h <<_ACEOF
14934 #define SIZEOF_CHAR $ac_cv_sizeof_char
14938 echo "$as_me:$LINENO: checking for short int" >&5
14939 echo $ECHO_N "checking for short int... $ECHO_C" >&6
14940 if test "${ac_cv_type_short_int+set}" = set; then
14941 echo $ECHO_N "(cached) $ECHO_C" >&6
14943 cat >conftest.$ac_ext <<_ACEOF
14946 cat confdefs.h >>conftest.$ac_ext
14947 cat >>conftest.$ac_ext <<_ACEOF
14948 /* end confdefs.h. */
14949 $ac_includes_default
14953 if ((short int *) 0)
14955 if (sizeof (short int))
14961 rm -f conftest.$ac_objext
14962 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14963 (eval $ac_compile) 2>conftest.er1
14965 grep -v '^ *+' conftest.er1 >conftest.err
14967 cat conftest.err >&5
14968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14969 (exit $ac_status); } &&
14970 { ac_try='test -z "$ac_c_werror_flag"
14971 || test ! -s conftest.err'
14972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14973 (eval $ac_try) 2>&5
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); }; } &&
14977 { ac_try='test -s conftest.$ac_objext'
14978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14979 (eval $ac_try) 2>&5
14981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14982 (exit $ac_status); }; }; then
14983 ac_cv_type_short_int=yes
14985 echo "$as_me: failed program was:" >&5
14986 sed 's/^/| /' conftest.$ac_ext >&5
14988 ac_cv_type_short_int=no
14990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14992 echo "$as_me:$LINENO: result: $ac_cv_type_short_int" >&5
14993 echo "${ECHO_T}$ac_cv_type_short_int" >&6
14995 echo "$as_me:$LINENO: checking size of short int" >&5
14996 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
14997 if test "${ac_cv_sizeof_short_int+set}" = set; then
14998 echo $ECHO_N "(cached) $ECHO_C" >&6
15000 if test "$ac_cv_type_short_int" = yes; then
15001 # The cast to unsigned long works around a bug in the HP C Compiler
15002 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15003 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15004 # This bug is HP SR number 8606223364.
15005 if test "$cross_compiling" = yes; then
15006 # Depending upon the size, compute the lo and hi bounds.
15007 cat >conftest.$ac_ext <<_ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h. */
15013 $ac_includes_default
15017 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= 0)];
15024 rm -f conftest.$ac_objext
15025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15026 (eval $ac_compile) 2>conftest.er1
15028 grep -v '^ *+' conftest.er1 >conftest.err
15030 cat conftest.err >&5
15031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15032 (exit $ac_status); } &&
15033 { ac_try='test -z "$ac_c_werror_flag"
15034 || test ! -s conftest.err'
15035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15036 (eval $ac_try) 2>&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); }; } &&
15040 { ac_try='test -s conftest.$ac_objext'
15041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15042 (eval $ac_try) 2>&5
15044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15045 (exit $ac_status); }; }; then
15048 cat >conftest.$ac_ext <<_ACEOF
15051 cat confdefs.h >>conftest.$ac_ext
15052 cat >>conftest.$ac_ext <<_ACEOF
15053 /* end confdefs.h. */
15054 $ac_includes_default
15058 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15065 rm -f conftest.$ac_objext
15066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15067 (eval $ac_compile) 2>conftest.er1
15069 grep -v '^ *+' conftest.er1 >conftest.err
15071 cat conftest.err >&5
15072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15073 (exit $ac_status); } &&
15074 { ac_try='test -z "$ac_c_werror_flag"
15075 || test ! -s conftest.err'
15076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077 (eval $ac_try) 2>&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; } &&
15081 { ac_try='test -s conftest.$ac_objext'
15082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15083 (eval $ac_try) 2>&5
15085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15086 (exit $ac_status); }; }; then
15087 ac_hi=$ac_mid; break
15089 echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.$ac_ext >&5
15092 ac_lo=`expr $ac_mid + 1`
15093 if test $ac_lo -le $ac_mid; then
15097 ac_mid=`expr 2 '*' $ac_mid + 1`
15099 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15102 echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15105 cat >conftest.$ac_ext <<_ACEOF
15108 cat confdefs.h >>conftest.$ac_ext
15109 cat >>conftest.$ac_ext <<_ACEOF
15110 /* end confdefs.h. */
15111 $ac_includes_default
15115 static int test_array [1 - 2 * !(((long) (sizeof (short int))) < 0)];
15122 rm -f conftest.$ac_objext
15123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15124 (eval $ac_compile) 2>conftest.er1
15126 grep -v '^ *+' conftest.er1 >conftest.err
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } &&
15131 { ac_try='test -z "$ac_c_werror_flag"
15132 || test ! -s conftest.err'
15133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15134 (eval $ac_try) 2>&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); }; } &&
15138 { ac_try='test -s conftest.$ac_objext'
15139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15140 (eval $ac_try) 2>&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); }; }; then
15146 cat >conftest.$ac_ext <<_ACEOF
15149 cat confdefs.h >>conftest.$ac_ext
15150 cat >>conftest.$ac_ext <<_ACEOF
15151 /* end confdefs.h. */
15152 $ac_includes_default
15156 static int test_array [1 - 2 * !(((long) (sizeof (short int))) >= $ac_mid)];
15163 rm -f conftest.$ac_objext
15164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15165 (eval $ac_compile) 2>conftest.er1
15167 grep -v '^ *+' conftest.er1 >conftest.err
15169 cat conftest.err >&5
15170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15171 (exit $ac_status); } &&
15172 { ac_try='test -z "$ac_c_werror_flag"
15173 || test ! -s conftest.err'
15174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15175 (eval $ac_try) 2>&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); }; } &&
15179 { ac_try='test -s conftest.$ac_objext'
15180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15181 (eval $ac_try) 2>&5
15183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15184 (exit $ac_status); }; }; then
15185 ac_lo=$ac_mid; break
15187 echo "$as_me: failed program was:" >&5
15188 sed 's/^/| /' conftest.$ac_ext >&5
15190 ac_hi=`expr '(' $ac_mid ')' - 1`
15191 if test $ac_mid -le $ac_hi; then
15195 ac_mid=`expr 2 '*' $ac_mid`
15197 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15200 echo "$as_me: failed program was:" >&5
15201 sed 's/^/| /' conftest.$ac_ext >&5
15205 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15207 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15208 # Binary search between lo and hi bounds.
15209 while test "x$ac_lo" != "x$ac_hi"; do
15210 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15211 cat >conftest.$ac_ext <<_ACEOF
15214 cat confdefs.h >>conftest.$ac_ext
15215 cat >>conftest.$ac_ext <<_ACEOF
15216 /* end confdefs.h. */
15217 $ac_includes_default
15221 static int test_array [1 - 2 * !(((long) (sizeof (short int))) <= $ac_mid)];
15228 rm -f conftest.$ac_objext
15229 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15230 (eval $ac_compile) 2>conftest.er1
15232 grep -v '^ *+' conftest.er1 >conftest.err
15234 cat conftest.err >&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); } &&
15237 { ac_try='test -z "$ac_c_werror_flag"
15238 || test ! -s conftest.err'
15239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; } &&
15244 { ac_try='test -s conftest.$ac_objext'
15245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; }; then
15252 echo "$as_me: failed program was:" >&5
15253 sed 's/^/| /' conftest.$ac_ext >&5
15255 ac_lo=`expr '(' $ac_mid ')' + 1`
15257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15260 ?*) ac_cv_sizeof_short_int=$ac_lo;;
15261 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15262 See \`config.log' for more details." >&5
15263 echo "$as_me: error: cannot compute sizeof (short int), 77
15264 See \`config.log' for more details." >&2;}
15265 { (exit 1); exit 1; }; } ;;
15268 if test "$cross_compiling" = yes; then
15269 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15270 See \`config.log' for more details." >&5
15271 echo "$as_me: error: cannot run test program while cross compiling
15272 See \`config.log' for more details." >&2;}
15273 { (exit 1); exit 1; }; }
15275 cat >conftest.$ac_ext <<_ACEOF
15278 cat confdefs.h >>conftest.$ac_ext
15279 cat >>conftest.$ac_ext <<_ACEOF
15280 /* end confdefs.h. */
15281 $ac_includes_default
15282 long longval () { return (long) (sizeof (short int)); }
15283 unsigned long ulongval () { return (long) (sizeof (short int)); }
15285 #include <stdlib.h>
15290 FILE *f = fopen ("conftest.val", "w");
15293 if (((long) (sizeof (short int))) < 0)
15295 long i = longval ();
15296 if (i != ((long) (sizeof (short int))))
15298 fprintf (f, "%ld\n", i);
15302 unsigned long i = ulongval ();
15303 if (i != ((long) (sizeof (short int))))
15305 fprintf (f, "%lu\n", i);
15307 exit (ferror (f) || fclose (f) != 0);
15313 rm -f conftest$ac_exeext
15314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15315 (eval $ac_link) 2>&5
15317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; }; then
15324 ac_cv_sizeof_short_int=`cat conftest.val`
15326 echo "$as_me: program exited with status $ac_status" >&5
15327 echo "$as_me: failed program was:" >&5
15328 sed 's/^/| /' conftest.$ac_ext >&5
15330 ( exit $ac_status )
15331 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short int), 77
15332 See \`config.log' for more details." >&5
15333 echo "$as_me: error: cannot compute sizeof (short int), 77
15334 See \`config.log' for more details." >&2;}
15335 { (exit 1); exit 1; }; }
15337 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15342 ac_cv_sizeof_short_int=0
15345 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short_int" >&5
15346 echo "${ECHO_T}$ac_cv_sizeof_short_int" >&6
15347 cat >>confdefs.h <<_ACEOF
15348 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
15352 echo "$as_me:$LINENO: checking for int" >&5
15353 echo $ECHO_N "checking for int... $ECHO_C" >&6
15354 if test "${ac_cv_type_int+set}" = set; then
15355 echo $ECHO_N "(cached) $ECHO_C" >&6
15357 cat >conftest.$ac_ext <<_ACEOF
15360 cat confdefs.h >>conftest.$ac_ext
15361 cat >>conftest.$ac_ext <<_ACEOF
15362 /* end confdefs.h. */
15363 $ac_includes_default
15375 rm -f conftest.$ac_objext
15376 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15377 (eval $ac_compile) 2>conftest.er1
15379 grep -v '^ *+' conftest.er1 >conftest.err
15381 cat conftest.err >&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } &&
15384 { ac_try='test -z "$ac_c_werror_flag"
15385 || test ! -s conftest.err'
15386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15387 (eval $ac_try) 2>&5
15389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15390 (exit $ac_status); }; } &&
15391 { ac_try='test -s conftest.$ac_objext'
15392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15393 (eval $ac_try) 2>&5
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; }; then
15399 echo "$as_me: failed program was:" >&5
15400 sed 's/^/| /' conftest.$ac_ext >&5
15404 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15406 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
15407 echo "${ECHO_T}$ac_cv_type_int" >&6
15409 echo "$as_me:$LINENO: checking size of int" >&5
15410 echo $ECHO_N "checking size of int... $ECHO_C" >&6
15411 if test "${ac_cv_sizeof_int+set}" = set; then
15412 echo $ECHO_N "(cached) $ECHO_C" >&6
15414 if test "$ac_cv_type_int" = yes; then
15415 # The cast to unsigned long works around a bug in the HP C Compiler
15416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15418 # This bug is HP SR number 8606223364.
15419 if test "$cross_compiling" = yes; then
15420 # Depending upon the size, compute the lo and hi bounds.
15421 cat >conftest.$ac_ext <<_ACEOF
15424 cat confdefs.h >>conftest.$ac_ext
15425 cat >>conftest.$ac_ext <<_ACEOF
15426 /* end confdefs.h. */
15427 $ac_includes_default
15431 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
15438 rm -f conftest.$ac_objext
15439 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15440 (eval $ac_compile) 2>conftest.er1
15442 grep -v '^ *+' conftest.er1 >conftest.err
15444 cat conftest.err >&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); } &&
15447 { ac_try='test -z "$ac_c_werror_flag"
15448 || test ! -s conftest.err'
15449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15450 (eval $ac_try) 2>&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); }; } &&
15454 { ac_try='test -s conftest.$ac_objext'
15455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15456 (eval $ac_try) 2>&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); }; }; then
15462 cat >conftest.$ac_ext <<_ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h. */
15468 $ac_includes_default
15472 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15479 rm -f conftest.$ac_objext
15480 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15481 (eval $ac_compile) 2>conftest.er1
15483 grep -v '^ *+' conftest.er1 >conftest.err
15485 cat conftest.err >&5
15486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15487 (exit $ac_status); } &&
15488 { ac_try='test -z "$ac_c_werror_flag"
15489 || test ! -s conftest.err'
15490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15491 (eval $ac_try) 2>&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; } &&
15495 { ac_try='test -s conftest.$ac_objext'
15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15497 (eval $ac_try) 2>&5
15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15500 (exit $ac_status); }; }; then
15501 ac_hi=$ac_mid; break
15503 echo "$as_me: failed program was:" >&5
15504 sed 's/^/| /' conftest.$ac_ext >&5
15506 ac_lo=`expr $ac_mid + 1`
15507 if test $ac_lo -le $ac_mid; then
15511 ac_mid=`expr 2 '*' $ac_mid + 1`
15513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15516 echo "$as_me: failed program was:" >&5
15517 sed 's/^/| /' conftest.$ac_ext >&5
15519 cat >conftest.$ac_ext <<_ACEOF
15522 cat confdefs.h >>conftest.$ac_ext
15523 cat >>conftest.$ac_ext <<_ACEOF
15524 /* end confdefs.h. */
15525 $ac_includes_default
15529 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
15536 rm -f conftest.$ac_objext
15537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15538 (eval $ac_compile) 2>conftest.er1
15540 grep -v '^ *+' conftest.er1 >conftest.err
15542 cat conftest.err >&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } &&
15545 { ac_try='test -z "$ac_c_werror_flag"
15546 || test ! -s conftest.err'
15547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15548 (eval $ac_try) 2>&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); }; } &&
15552 { ac_try='test -s conftest.$ac_objext'
15553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15554 (eval $ac_try) 2>&5
15556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15557 (exit $ac_status); }; }; then
15560 cat >conftest.$ac_ext <<_ACEOF
15563 cat confdefs.h >>conftest.$ac_ext
15564 cat >>conftest.$ac_ext <<_ACEOF
15565 /* end confdefs.h. */
15566 $ac_includes_default
15570 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
15577 rm -f conftest.$ac_objext
15578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15579 (eval $ac_compile) 2>conftest.er1
15581 grep -v '^ *+' conftest.er1 >conftest.err
15583 cat conftest.err >&5
15584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15585 (exit $ac_status); } &&
15586 { ac_try='test -z "$ac_c_werror_flag"
15587 || test ! -s conftest.err'
15588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15589 (eval $ac_try) 2>&5
15591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); }; } &&
15593 { ac_try='test -s conftest.$ac_objext'
15594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15595 (eval $ac_try) 2>&5
15597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15598 (exit $ac_status); }; }; then
15599 ac_lo=$ac_mid; break
15601 echo "$as_me: failed program was:" >&5
15602 sed 's/^/| /' conftest.$ac_ext >&5
15604 ac_hi=`expr '(' $ac_mid ')' - 1`
15605 if test $ac_mid -le $ac_hi; then
15609 ac_mid=`expr 2 '*' $ac_mid`
15611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15614 echo "$as_me: failed program was:" >&5
15615 sed 's/^/| /' conftest.$ac_ext >&5
15619 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15622 # Binary search between lo and hi bounds.
15623 while test "x$ac_lo" != "x$ac_hi"; do
15624 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15625 cat >conftest.$ac_ext <<_ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15631 $ac_includes_default
15635 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
15642 rm -f conftest.$ac_objext
15643 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15644 (eval $ac_compile) 2>conftest.er1
15646 grep -v '^ *+' conftest.er1 >conftest.err
15648 cat conftest.err >&5
15649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15650 (exit $ac_status); } &&
15651 { ac_try='test -z "$ac_c_werror_flag"
15652 || test ! -s conftest.err'
15653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15654 (eval $ac_try) 2>&5
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; } &&
15658 { ac_try='test -s conftest.$ac_objext'
15659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15660 (eval $ac_try) 2>&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; }; then
15666 echo "$as_me: failed program was:" >&5
15667 sed 's/^/| /' conftest.$ac_ext >&5
15669 ac_lo=`expr '(' $ac_mid ')' + 1`
15671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15674 ?*) ac_cv_sizeof_int=$ac_lo;;
15675 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15676 See \`config.log' for more details." >&5
15677 echo "$as_me: error: cannot compute sizeof (int), 77
15678 See \`config.log' for more details." >&2;}
15679 { (exit 1); exit 1; }; } ;;
15682 if test "$cross_compiling" = yes; then
15683 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15684 See \`config.log' for more details." >&5
15685 echo "$as_me: error: cannot run test program while cross compiling
15686 See \`config.log' for more details." >&2;}
15687 { (exit 1); exit 1; }; }
15689 cat >conftest.$ac_ext <<_ACEOF
15692 cat confdefs.h >>conftest.$ac_ext
15693 cat >>conftest.$ac_ext <<_ACEOF
15694 /* end confdefs.h. */
15695 $ac_includes_default
15696 long longval () { return (long) (sizeof (int)); }
15697 unsigned long ulongval () { return (long) (sizeof (int)); }
15699 #include <stdlib.h>
15704 FILE *f = fopen ("conftest.val", "w");
15707 if (((long) (sizeof (int))) < 0)
15709 long i = longval ();
15710 if (i != ((long) (sizeof (int))))
15712 fprintf (f, "%ld\n", i);
15716 unsigned long i = ulongval ();
15717 if (i != ((long) (sizeof (int))))
15719 fprintf (f, "%lu\n", i);
15721 exit (ferror (f) || fclose (f) != 0);
15727 rm -f conftest$ac_exeext
15728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15729 (eval $ac_link) 2>&5
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15734 (eval $ac_try) 2>&5
15736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15737 (exit $ac_status); }; }; then
15738 ac_cv_sizeof_int=`cat conftest.val`
15740 echo "$as_me: program exited with status $ac_status" >&5
15741 echo "$as_me: failed program was:" >&5
15742 sed 's/^/| /' conftest.$ac_ext >&5
15744 ( exit $ac_status )
15745 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
15746 See \`config.log' for more details." >&5
15747 echo "$as_me: error: cannot compute sizeof (int), 77
15748 See \`config.log' for more details." >&2;}
15749 { (exit 1); exit 1; }; }
15751 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15759 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15760 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
15761 cat >>confdefs.h <<_ACEOF
15762 #define SIZEOF_INT $ac_cv_sizeof_int
15766 echo "$as_me:$LINENO: checking for long int" >&5
15767 echo $ECHO_N "checking for long int... $ECHO_C" >&6
15768 if test "${ac_cv_type_long_int+set}" = set; then
15769 echo $ECHO_N "(cached) $ECHO_C" >&6
15771 cat >conftest.$ac_ext <<_ACEOF
15774 cat confdefs.h >>conftest.$ac_ext
15775 cat >>conftest.$ac_ext <<_ACEOF
15776 /* end confdefs.h. */
15777 $ac_includes_default
15781 if ((long int *) 0)
15783 if (sizeof (long int))
15789 rm -f conftest.$ac_objext
15790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15791 (eval $ac_compile) 2>conftest.er1
15793 grep -v '^ *+' conftest.er1 >conftest.err
15795 cat conftest.err >&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); } &&
15798 { ac_try='test -z "$ac_c_werror_flag"
15799 || test ! -s conftest.err'
15800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15801 (eval $ac_try) 2>&5
15803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15804 (exit $ac_status); }; } &&
15805 { ac_try='test -s conftest.$ac_objext'
15806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15807 (eval $ac_try) 2>&5
15809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15810 (exit $ac_status); }; }; then
15811 ac_cv_type_long_int=yes
15813 echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15816 ac_cv_type_long_int=no
15818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15820 echo "$as_me:$LINENO: result: $ac_cv_type_long_int" >&5
15821 echo "${ECHO_T}$ac_cv_type_long_int" >&6
15823 echo "$as_me:$LINENO: checking size of long int" >&5
15824 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
15825 if test "${ac_cv_sizeof_long_int+set}" = set; then
15826 echo $ECHO_N "(cached) $ECHO_C" >&6
15828 if test "$ac_cv_type_long_int" = yes; then
15829 # The cast to unsigned long works around a bug in the HP C Compiler
15830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15832 # This bug is HP SR number 8606223364.
15833 if test "$cross_compiling" = yes; then
15834 # Depending upon the size, compute the lo and hi bounds.
15835 cat >conftest.$ac_ext <<_ACEOF
15838 cat confdefs.h >>conftest.$ac_ext
15839 cat >>conftest.$ac_ext <<_ACEOF
15840 /* end confdefs.h. */
15841 $ac_includes_default
15845 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= 0)];
15852 rm -f conftest.$ac_objext
15853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15854 (eval $ac_compile) 2>conftest.er1
15856 grep -v '^ *+' conftest.er1 >conftest.err
15858 cat conftest.err >&5
15859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860 (exit $ac_status); } &&
15861 { ac_try='test -z "$ac_c_werror_flag"
15862 || test ! -s conftest.err'
15863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864 (eval $ac_try) 2>&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; } &&
15868 { ac_try='test -s conftest.$ac_objext'
15869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15870 (eval $ac_try) 2>&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); }; }; then
15876 cat >conftest.$ac_ext <<_ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */
15882 $ac_includes_default
15886 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
15893 rm -f conftest.$ac_objext
15894 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15895 (eval $ac_compile) 2>conftest.er1
15897 grep -v '^ *+' conftest.er1 >conftest.err
15899 cat conftest.err >&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); } &&
15902 { ac_try='test -z "$ac_c_werror_flag"
15903 || test ! -s conftest.err'
15904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15905 (eval $ac_try) 2>&5
15907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15908 (exit $ac_status); }; } &&
15909 { ac_try='test -s conftest.$ac_objext'
15910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15911 (eval $ac_try) 2>&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); }; }; then
15915 ac_hi=$ac_mid; break
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15920 ac_lo=`expr $ac_mid + 1`
15921 if test $ac_lo -le $ac_mid; then
15925 ac_mid=`expr 2 '*' $ac_mid + 1`
15927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15930 echo "$as_me: failed program was:" >&5
15931 sed 's/^/| /' conftest.$ac_ext >&5
15933 cat >conftest.$ac_ext <<_ACEOF
15936 cat confdefs.h >>conftest.$ac_ext
15937 cat >>conftest.$ac_ext <<_ACEOF
15938 /* end confdefs.h. */
15939 $ac_includes_default
15943 static int test_array [1 - 2 * !(((long) (sizeof (long int))) < 0)];
15950 rm -f conftest.$ac_objext
15951 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15952 (eval $ac_compile) 2>conftest.er1
15954 grep -v '^ *+' conftest.er1 >conftest.err
15956 cat conftest.err >&5
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); } &&
15959 { ac_try='test -z "$ac_c_werror_flag"
15960 || test ! -s conftest.err'
15961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15962 (eval $ac_try) 2>&5
15964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15965 (exit $ac_status); }; } &&
15966 { ac_try='test -s conftest.$ac_objext'
15967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15968 (eval $ac_try) 2>&5
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; }; then
15974 cat >conftest.$ac_ext <<_ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h. */
15980 $ac_includes_default
15984 static int test_array [1 - 2 * !(((long) (sizeof (long int))) >= $ac_mid)];
15991 rm -f conftest.$ac_objext
15992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15993 (eval $ac_compile) 2>conftest.er1
15995 grep -v '^ *+' conftest.er1 >conftest.err
15997 cat conftest.err >&5
15998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15999 (exit $ac_status); } &&
16000 { ac_try='test -z "$ac_c_werror_flag"
16001 || test ! -s conftest.err'
16002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16003 (eval $ac_try) 2>&5
16005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16006 (exit $ac_status); }; } &&
16007 { ac_try='test -s conftest.$ac_objext'
16008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16009 (eval $ac_try) 2>&5
16011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16012 (exit $ac_status); }; }; then
16013 ac_lo=$ac_mid; break
16015 echo "$as_me: failed program was:" >&5
16016 sed 's/^/| /' conftest.$ac_ext >&5
16018 ac_hi=`expr '(' $ac_mid ')' - 1`
16019 if test $ac_mid -le $ac_hi; then
16023 ac_mid=`expr 2 '*' $ac_mid`
16025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16028 echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.$ac_ext >&5
16033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16035 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16036 # Binary search between lo and hi bounds.
16037 while test "x$ac_lo" != "x$ac_hi"; do
16038 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16039 cat >conftest.$ac_ext <<_ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h. */
16045 $ac_includes_default
16049 static int test_array [1 - 2 * !(((long) (sizeof (long int))) <= $ac_mid)];
16056 rm -f conftest.$ac_objext
16057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16058 (eval $ac_compile) 2>conftest.er1
16060 grep -v '^ *+' conftest.er1 >conftest.err
16062 cat conftest.err >&5
16063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16064 (exit $ac_status); } &&
16065 { ac_try='test -z "$ac_c_werror_flag"
16066 || test ! -s conftest.err'
16067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16068 (eval $ac_try) 2>&5
16070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16071 (exit $ac_status); }; } &&
16072 { ac_try='test -s conftest.$ac_objext'
16073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16074 (eval $ac_try) 2>&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); }; }; then
16080 echo "$as_me: failed program was:" >&5
16081 sed 's/^/| /' conftest.$ac_ext >&5
16083 ac_lo=`expr '(' $ac_mid ')' + 1`
16085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16088 ?*) ac_cv_sizeof_long_int=$ac_lo;;
16089 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16090 See \`config.log' for more details." >&5
16091 echo "$as_me: error: cannot compute sizeof (long int), 77
16092 See \`config.log' for more details." >&2;}
16093 { (exit 1); exit 1; }; } ;;
16096 if test "$cross_compiling" = yes; then
16097 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16098 See \`config.log' for more details." >&5
16099 echo "$as_me: error: cannot run test program while cross compiling
16100 See \`config.log' for more details." >&2;}
16101 { (exit 1); exit 1; }; }
16103 cat >conftest.$ac_ext <<_ACEOF
16106 cat confdefs.h >>conftest.$ac_ext
16107 cat >>conftest.$ac_ext <<_ACEOF
16108 /* end confdefs.h. */
16109 $ac_includes_default
16110 long longval () { return (long) (sizeof (long int)); }
16111 unsigned long ulongval () { return (long) (sizeof (long int)); }
16113 #include <stdlib.h>
16118 FILE *f = fopen ("conftest.val", "w");
16121 if (((long) (sizeof (long int))) < 0)
16123 long i = longval ();
16124 if (i != ((long) (sizeof (long int))))
16126 fprintf (f, "%ld\n", i);
16130 unsigned long i = ulongval ();
16131 if (i != ((long) (sizeof (long int))))
16133 fprintf (f, "%lu\n", i);
16135 exit (ferror (f) || fclose (f) != 0);
16141 rm -f conftest$ac_exeext
16142 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16143 (eval $ac_link) 2>&5
16145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; }; then
16152 ac_cv_sizeof_long_int=`cat conftest.val`
16154 echo "$as_me: program exited with status $ac_status" >&5
16155 echo "$as_me: failed program was:" >&5
16156 sed 's/^/| /' conftest.$ac_ext >&5
16158 ( exit $ac_status )
16159 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long int), 77
16160 See \`config.log' for more details." >&5
16161 echo "$as_me: error: cannot compute sizeof (long int), 77
16162 See \`config.log' for more details." >&2;}
16163 { (exit 1); exit 1; }; }
16165 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16170 ac_cv_sizeof_long_int=0
16173 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_int" >&5
16174 echo "${ECHO_T}$ac_cv_sizeof_long_int" >&6
16175 cat >>confdefs.h <<_ACEOF
16176 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
16180 echo "$as_me:$LINENO: checking for long long int" >&5
16181 echo $ECHO_N "checking for long long int... $ECHO_C" >&6
16182 if test "${ac_cv_type_long_long_int+set}" = set; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16185 cat >conftest.$ac_ext <<_ACEOF
16188 cat confdefs.h >>conftest.$ac_ext
16189 cat >>conftest.$ac_ext <<_ACEOF
16190 /* end confdefs.h. */
16191 $ac_includes_default
16195 if ((long long int *) 0)
16197 if (sizeof (long long int))
16203 rm -f conftest.$ac_objext
16204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16205 (eval $ac_compile) 2>conftest.er1
16207 grep -v '^ *+' conftest.er1 >conftest.err
16209 cat conftest.err >&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); } &&
16212 { ac_try='test -z "$ac_c_werror_flag"
16213 || test ! -s conftest.err'
16214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16215 (eval $ac_try) 2>&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; } &&
16219 { ac_try='test -s conftest.$ac_objext'
16220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16221 (eval $ac_try) 2>&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); }; }; then
16225 ac_cv_type_long_long_int=yes
16227 echo "$as_me: failed program was:" >&5
16228 sed 's/^/| /' conftest.$ac_ext >&5
16230 ac_cv_type_long_long_int=no
16232 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16234 echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16235 echo "${ECHO_T}$ac_cv_type_long_long_int" >&6
16237 echo "$as_me:$LINENO: checking size of long long int" >&5
16238 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
16239 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
16240 echo $ECHO_N "(cached) $ECHO_C" >&6
16242 if test "$ac_cv_type_long_long_int" = yes; then
16243 # The cast to unsigned long works around a bug in the HP C Compiler
16244 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16245 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16246 # This bug is HP SR number 8606223364.
16247 if test "$cross_compiling" = yes; then
16248 # Depending upon the size, compute the lo and hi bounds.
16249 cat >conftest.$ac_ext <<_ACEOF
16252 cat confdefs.h >>conftest.$ac_ext
16253 cat >>conftest.$ac_ext <<_ACEOF
16254 /* end confdefs.h. */
16255 $ac_includes_default
16259 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= 0)];
16266 rm -f conftest.$ac_objext
16267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16268 (eval $ac_compile) 2>conftest.er1
16270 grep -v '^ *+' conftest.er1 >conftest.err
16272 cat conftest.err >&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } &&
16275 { ac_try='test -z "$ac_c_werror_flag"
16276 || test ! -s conftest.err'
16277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16278 (eval $ac_try) 2>&5
16280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16281 (exit $ac_status); }; } &&
16282 { ac_try='test -s conftest.$ac_objext'
16283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284 (eval $ac_try) 2>&5
16286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287 (exit $ac_status); }; }; then
16290 cat >conftest.$ac_ext <<_ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h. */
16296 $ac_includes_default
16300 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16307 rm -f conftest.$ac_objext
16308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16309 (eval $ac_compile) 2>conftest.er1
16311 grep -v '^ *+' conftest.er1 >conftest.err
16313 cat conftest.err >&5
16314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315 (exit $ac_status); } &&
16316 { ac_try='test -z "$ac_c_werror_flag"
16317 || test ! -s conftest.err'
16318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16319 (eval $ac_try) 2>&5
16321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16322 (exit $ac_status); }; } &&
16323 { ac_try='test -s conftest.$ac_objext'
16324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16325 (eval $ac_try) 2>&5
16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328 (exit $ac_status); }; }; then
16329 ac_hi=$ac_mid; break
16331 echo "$as_me: failed program was:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16334 ac_lo=`expr $ac_mid + 1`
16335 if test $ac_lo -le $ac_mid; then
16339 ac_mid=`expr 2 '*' $ac_mid + 1`
16341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16344 echo "$as_me: failed program was:" >&5
16345 sed 's/^/| /' conftest.$ac_ext >&5
16347 cat >conftest.$ac_ext <<_ACEOF
16350 cat confdefs.h >>conftest.$ac_ext
16351 cat >>conftest.$ac_ext <<_ACEOF
16352 /* end confdefs.h. */
16353 $ac_includes_default
16357 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) < 0)];
16364 rm -f conftest.$ac_objext
16365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16366 (eval $ac_compile) 2>conftest.er1
16368 grep -v '^ *+' conftest.er1 >conftest.err
16370 cat conftest.err >&5
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); } &&
16373 { ac_try='test -z "$ac_c_werror_flag"
16374 || test ! -s conftest.err'
16375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16376 (eval $ac_try) 2>&5
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; } &&
16380 { ac_try='test -s conftest.$ac_objext'
16381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16382 (eval $ac_try) 2>&5
16384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16385 (exit $ac_status); }; }; then
16388 cat >conftest.$ac_ext <<_ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h. */
16394 $ac_includes_default
16398 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) >= $ac_mid)];
16405 rm -f conftest.$ac_objext
16406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16407 (eval $ac_compile) 2>conftest.er1
16409 grep -v '^ *+' conftest.er1 >conftest.err
16411 cat conftest.err >&5
16412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16413 (exit $ac_status); } &&
16414 { ac_try='test -z "$ac_c_werror_flag"
16415 || test ! -s conftest.err'
16416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417 (eval $ac_try) 2>&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); }; } &&
16421 { ac_try='test -s conftest.$ac_objext'
16422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16423 (eval $ac_try) 2>&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; }; then
16427 ac_lo=$ac_mid; break
16429 echo "$as_me: failed program was:" >&5
16430 sed 's/^/| /' conftest.$ac_ext >&5
16432 ac_hi=`expr '(' $ac_mid ')' - 1`
16433 if test $ac_mid -le $ac_hi; then
16437 ac_mid=`expr 2 '*' $ac_mid`
16439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16442 echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.$ac_ext >&5
16447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16450 # Binary search between lo and hi bounds.
16451 while test "x$ac_lo" != "x$ac_hi"; do
16452 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16453 cat >conftest.$ac_ext <<_ACEOF
16456 cat confdefs.h >>conftest.$ac_ext
16457 cat >>conftest.$ac_ext <<_ACEOF
16458 /* end confdefs.h. */
16459 $ac_includes_default
16463 static int test_array [1 - 2 * !(((long) (sizeof (long long int))) <= $ac_mid)];
16470 rm -f conftest.$ac_objext
16471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16472 (eval $ac_compile) 2>conftest.er1
16474 grep -v '^ *+' conftest.er1 >conftest.err
16476 cat conftest.err >&5
16477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16478 (exit $ac_status); } &&
16479 { ac_try='test -z "$ac_c_werror_flag"
16480 || test ! -s conftest.err'
16481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16482 (eval $ac_try) 2>&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; } &&
16486 { ac_try='test -s conftest.$ac_objext'
16487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16488 (eval $ac_try) 2>&5
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); }; }; then
16494 echo "$as_me: failed program was:" >&5
16495 sed 's/^/| /' conftest.$ac_ext >&5
16497 ac_lo=`expr '(' $ac_mid ')' + 1`
16499 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16502 ?*) ac_cv_sizeof_long_long_int=$ac_lo;;
16503 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16504 See \`config.log' for more details." >&5
16505 echo "$as_me: error: cannot compute sizeof (long long int), 77
16506 See \`config.log' for more details." >&2;}
16507 { (exit 1); exit 1; }; } ;;
16510 if test "$cross_compiling" = yes; then
16511 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16512 See \`config.log' for more details." >&5
16513 echo "$as_me: error: cannot run test program while cross compiling
16514 See \`config.log' for more details." >&2;}
16515 { (exit 1); exit 1; }; }
16517 cat >conftest.$ac_ext <<_ACEOF
16520 cat confdefs.h >>conftest.$ac_ext
16521 cat >>conftest.$ac_ext <<_ACEOF
16522 /* end confdefs.h. */
16523 $ac_includes_default
16524 long longval () { return (long) (sizeof (long long int)); }
16525 unsigned long ulongval () { return (long) (sizeof (long long int)); }
16527 #include <stdlib.h>
16532 FILE *f = fopen ("conftest.val", "w");
16535 if (((long) (sizeof (long long int))) < 0)
16537 long i = longval ();
16538 if (i != ((long) (sizeof (long long int))))
16540 fprintf (f, "%ld\n", i);
16544 unsigned long i = ulongval ();
16545 if (i != ((long) (sizeof (long long int))))
16547 fprintf (f, "%lu\n", i);
16549 exit (ferror (f) || fclose (f) != 0);
16555 rm -f conftest$ac_exeext
16556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16557 (eval $ac_link) 2>&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16562 (eval $ac_try) 2>&5
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566 ac_cv_sizeof_long_long_int=`cat conftest.val`
16568 echo "$as_me: program exited with status $ac_status" >&5
16569 echo "$as_me: failed program was:" >&5
16570 sed 's/^/| /' conftest.$ac_ext >&5
16572 ( exit $ac_status )
16573 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long int), 77
16574 See \`config.log' for more details." >&5
16575 echo "$as_me: error: cannot compute sizeof (long long int), 77
16576 See \`config.log' for more details." >&2;}
16577 { (exit 1); exit 1; }; }
16579 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16584 ac_cv_sizeof_long_long_int=0
16587 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long_int" >&5
16588 echo "${ECHO_T}$ac_cv_sizeof_long_long_int" >&6
16589 cat >>confdefs.h <<_ACEOF
16590 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
16594 echo "$as_me:$LINENO: checking for int *" >&5
16595 echo $ECHO_N "checking for int *... $ECHO_C" >&6
16596 if test "${ac_cv_type_int_p+set}" = set; then
16597 echo $ECHO_N "(cached) $ECHO_C" >&6
16599 cat >conftest.$ac_ext <<_ACEOF
16602 cat confdefs.h >>conftest.$ac_ext
16603 cat >>conftest.$ac_ext <<_ACEOF
16604 /* end confdefs.h. */
16605 $ac_includes_default
16611 if (sizeof (int *))
16617 rm -f conftest.$ac_objext
16618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16619 (eval $ac_compile) 2>conftest.er1
16621 grep -v '^ *+' conftest.er1 >conftest.err
16623 cat conftest.err >&5
16624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16625 (exit $ac_status); } &&
16626 { ac_try='test -z "$ac_c_werror_flag"
16627 || test ! -s conftest.err'
16628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16629 (eval $ac_try) 2>&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); }; } &&
16633 { ac_try='test -s conftest.$ac_objext'
16634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16635 (eval $ac_try) 2>&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; }; then
16639 ac_cv_type_int_p=yes
16641 echo "$as_me: failed program was:" >&5
16642 sed 's/^/| /' conftest.$ac_ext >&5
16644 ac_cv_type_int_p=no
16646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16648 echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
16649 echo "${ECHO_T}$ac_cv_type_int_p" >&6
16651 echo "$as_me:$LINENO: checking size of int *" >&5
16652 echo $ECHO_N "checking size of int *... $ECHO_C" >&6
16653 if test "${ac_cv_sizeof_int_p+set}" = set; then
16654 echo $ECHO_N "(cached) $ECHO_C" >&6
16656 if test "$ac_cv_type_int_p" = yes; then
16657 # The cast to unsigned long works around a bug in the HP C Compiler
16658 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16659 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16660 # This bug is HP SR number 8606223364.
16661 if test "$cross_compiling" = yes; then
16662 # Depending upon the size, compute the lo and hi bounds.
16663 cat >conftest.$ac_ext <<_ACEOF
16666 cat confdefs.h >>conftest.$ac_ext
16667 cat >>conftest.$ac_ext <<_ACEOF
16668 /* end confdefs.h. */
16669 $ac_includes_default
16673 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
16680 rm -f conftest.$ac_objext
16681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16682 (eval $ac_compile) 2>conftest.er1
16684 grep -v '^ *+' conftest.er1 >conftest.err
16686 cat conftest.err >&5
16687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16688 (exit $ac_status); } &&
16689 { ac_try='test -z "$ac_c_werror_flag"
16690 || test ! -s conftest.err'
16691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16692 (eval $ac_try) 2>&5
16694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16695 (exit $ac_status); }; } &&
16696 { ac_try='test -s conftest.$ac_objext'
16697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16698 (eval $ac_try) 2>&5
16700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16701 (exit $ac_status); }; }; then
16704 cat >conftest.$ac_ext <<_ACEOF
16707 cat confdefs.h >>conftest.$ac_ext
16708 cat >>conftest.$ac_ext <<_ACEOF
16709 /* end confdefs.h. */
16710 $ac_includes_default
16714 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16721 rm -f conftest.$ac_objext
16722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16723 (eval $ac_compile) 2>conftest.er1
16725 grep -v '^ *+' conftest.er1 >conftest.err
16727 cat conftest.err >&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } &&
16730 { ac_try='test -z "$ac_c_werror_flag"
16731 || test ! -s conftest.err'
16732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16733 (eval $ac_try) 2>&5
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); }; } &&
16737 { ac_try='test -s conftest.$ac_objext'
16738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739 (eval $ac_try) 2>&5
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; }; then
16743 ac_hi=$ac_mid; break
16745 echo "$as_me: failed program was:" >&5
16746 sed 's/^/| /' conftest.$ac_ext >&5
16748 ac_lo=`expr $ac_mid + 1`
16749 if test $ac_lo -le $ac_mid; then
16753 ac_mid=`expr 2 '*' $ac_mid + 1`
16755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16758 echo "$as_me: failed program was:" >&5
16759 sed 's/^/| /' conftest.$ac_ext >&5
16761 cat >conftest.$ac_ext <<_ACEOF
16764 cat confdefs.h >>conftest.$ac_ext
16765 cat >>conftest.$ac_ext <<_ACEOF
16766 /* end confdefs.h. */
16767 $ac_includes_default
16771 static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
16778 rm -f conftest.$ac_objext
16779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16780 (eval $ac_compile) 2>conftest.er1
16782 grep -v '^ *+' conftest.er1 >conftest.err
16784 cat conftest.err >&5
16785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16786 (exit $ac_status); } &&
16787 { ac_try='test -z "$ac_c_werror_flag"
16788 || test ! -s conftest.err'
16789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16790 (eval $ac_try) 2>&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); }; } &&
16794 { ac_try='test -s conftest.$ac_objext'
16795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16796 (eval $ac_try) 2>&5
16798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16799 (exit $ac_status); }; }; then
16802 cat >conftest.$ac_ext <<_ACEOF
16805 cat confdefs.h >>conftest.$ac_ext
16806 cat >>conftest.$ac_ext <<_ACEOF
16807 /* end confdefs.h. */
16808 $ac_includes_default
16812 static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
16819 rm -f conftest.$ac_objext
16820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16821 (eval $ac_compile) 2>conftest.er1
16823 grep -v '^ *+' conftest.er1 >conftest.err
16825 cat conftest.err >&5
16826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16827 (exit $ac_status); } &&
16828 { ac_try='test -z "$ac_c_werror_flag"
16829 || test ! -s conftest.err'
16830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16831 (eval $ac_try) 2>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; } &&
16835 { ac_try='test -s conftest.$ac_objext'
16836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16837 (eval $ac_try) 2>&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; }; then
16841 ac_lo=$ac_mid; break
16843 echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16846 ac_hi=`expr '(' $ac_mid ')' - 1`
16847 if test $ac_mid -le $ac_hi; then
16851 ac_mid=`expr 2 '*' $ac_mid`
16853 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16856 echo "$as_me: failed program was:" >&5
16857 sed 's/^/| /' conftest.$ac_ext >&5
16861 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16863 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16864 # Binary search between lo and hi bounds.
16865 while test "x$ac_lo" != "x$ac_hi"; do
16866 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
16867 cat >conftest.$ac_ext <<_ACEOF
16870 cat confdefs.h >>conftest.$ac_ext
16871 cat >>conftest.$ac_ext <<_ACEOF
16872 /* end confdefs.h. */
16873 $ac_includes_default
16877 static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
16884 rm -f conftest.$ac_objext
16885 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16886 (eval $ac_compile) 2>conftest.er1
16888 grep -v '^ *+' conftest.er1 >conftest.err
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -z "$ac_c_werror_flag"
16894 || test ! -s conftest.err'
16895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896 (eval $ac_try) 2>&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; } &&
16900 { ac_try='test -s conftest.$ac_objext'
16901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16902 (eval $ac_try) 2>&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); }; }; then
16908 echo "$as_me: failed program was:" >&5
16909 sed 's/^/| /' conftest.$ac_ext >&5
16911 ac_lo=`expr '(' $ac_mid ')' + 1`
16913 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16916 ?*) ac_cv_sizeof_int_p=$ac_lo;;
16917 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16918 See \`config.log' for more details." >&5
16919 echo "$as_me: error: cannot compute sizeof (int *), 77
16920 See \`config.log' for more details." >&2;}
16921 { (exit 1); exit 1; }; } ;;
16924 if test "$cross_compiling" = yes; then
16925 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
16926 See \`config.log' for more details." >&5
16927 echo "$as_me: error: cannot run test program while cross compiling
16928 See \`config.log' for more details." >&2;}
16929 { (exit 1); exit 1; }; }
16931 cat >conftest.$ac_ext <<_ACEOF
16934 cat confdefs.h >>conftest.$ac_ext
16935 cat >>conftest.$ac_ext <<_ACEOF
16936 /* end confdefs.h. */
16937 $ac_includes_default
16938 long longval () { return (long) (sizeof (int *)); }
16939 unsigned long ulongval () { return (long) (sizeof (int *)); }
16941 #include <stdlib.h>
16946 FILE *f = fopen ("conftest.val", "w");
16949 if (((long) (sizeof (int *))) < 0)
16951 long i = longval ();
16952 if (i != ((long) (sizeof (int *))))
16954 fprintf (f, "%ld\n", i);
16958 unsigned long i = ulongval ();
16959 if (i != ((long) (sizeof (int *))))
16961 fprintf (f, "%lu\n", i);
16963 exit (ferror (f) || fclose (f) != 0);
16969 rm -f conftest$ac_exeext
16970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16971 (eval $ac_link) 2>&5
16973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16976 (eval $ac_try) 2>&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); }; }; then
16980 ac_cv_sizeof_int_p=`cat conftest.val`
16982 echo "$as_me: program exited with status $ac_status" >&5
16983 echo "$as_me: failed program was:" >&5
16984 sed 's/^/| /' conftest.$ac_ext >&5
16986 ( exit $ac_status )
16987 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
16988 See \`config.log' for more details." >&5
16989 echo "$as_me: error: cannot compute sizeof (int *), 77
16990 See \`config.log' for more details." >&2;}
16991 { (exit 1); exit 1; }; }
16993 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16998 ac_cv_sizeof_int_p=0
17001 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
17002 echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
17003 cat >>confdefs.h <<_ACEOF
17004 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
17009 # Check for sys/types.h types
17010 echo "$as_me:$LINENO: checking for u_int type" >&5
17011 echo $ECHO_N "checking for u_int type... $ECHO_C" >&6
17012 if test "${ac_cv_have_u_int+set}" = set; then
17013 echo $ECHO_N "(cached) $ECHO_C" >&6
17016 cat >conftest.$ac_ext <<_ACEOF
17019 cat confdefs.h >>conftest.$ac_ext
17020 cat >>conftest.$ac_ext <<_ACEOF
17021 /* end confdefs.h. */
17022 #include <sys/types.h>
17031 rm -f conftest.$ac_objext
17032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17033 (eval $ac_compile) 2>conftest.er1
17035 grep -v '^ *+' conftest.er1 >conftest.err
17037 cat conftest.err >&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } &&
17040 { ac_try='test -z "$ac_c_werror_flag"
17041 || test ! -s conftest.err'
17042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17043 (eval $ac_try) 2>&5
17045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046 (exit $ac_status); }; } &&
17047 { ac_try='test -s conftest.$ac_objext'
17048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17049 (eval $ac_try) 2>&5
17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052 (exit $ac_status); }; }; then
17053 ac_cv_have_u_int="yes"
17055 echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17058 ac_cv_have_u_int="no"
17061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17064 echo "$as_me:$LINENO: result: $ac_cv_have_u_int" >&5
17065 echo "${ECHO_T}$ac_cv_have_u_int" >&6
17066 if test "x$ac_cv_have_u_int" = "xyes" ; then
17067 cat >>confdefs.h <<\_ACEOF
17068 #define HAVE_U_INT 1
17074 echo "$as_me:$LINENO: checking for intmax_t type" >&5
17075 echo $ECHO_N "checking for intmax_t type... $ECHO_C" >&6
17076 if test "${ac_cv_have_intmax_t+set}" = set; then
17077 echo $ECHO_N "(cached) $ECHO_C" >&6
17080 cat >conftest.$ac_ext <<_ACEOF
17083 cat confdefs.h >>conftest.$ac_ext
17084 cat >>conftest.$ac_ext <<_ACEOF
17085 /* end confdefs.h. */
17086 #include <sys/types.h>
17095 rm -f conftest.$ac_objext
17096 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17097 (eval $ac_compile) 2>conftest.er1
17099 grep -v '^ *+' conftest.er1 >conftest.err
17101 cat conftest.err >&5
17102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17103 (exit $ac_status); } &&
17104 { ac_try='test -z "$ac_c_werror_flag"
17105 || test ! -s conftest.err'
17106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17107 (eval $ac_try) 2>&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); }; } &&
17111 { ac_try='test -s conftest.$ac_objext'
17112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17113 (eval $ac_try) 2>&5
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); }; }; then
17117 ac_cv_have_intmax_t="yes"
17119 echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17123 cat >conftest.$ac_ext <<_ACEOF
17126 cat confdefs.h >>conftest.$ac_ext
17127 cat >>conftest.$ac_ext <<_ACEOF
17128 /* end confdefs.h. */
17129 #include <stdint.h>
17138 rm -f conftest.$ac_objext
17139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17140 (eval $ac_compile) 2>conftest.er1
17142 grep -v '^ *+' conftest.er1 >conftest.err
17144 cat conftest.err >&5
17145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17146 (exit $ac_status); } &&
17147 { ac_try='test -z "$ac_c_werror_flag"
17148 || test ! -s conftest.err'
17149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17150 (eval $ac_try) 2>&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; } &&
17154 { ac_try='test -s conftest.$ac_objext'
17155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17156 (eval $ac_try) 2>&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); }; }; then
17160 ac_cv_have_intmax_t="yes"
17162 echo "$as_me: failed program was:" >&5
17163 sed 's/^/| /' conftest.$ac_ext >&5
17165 ac_cv_have_intmax_t="no"
17168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17176 echo "$as_me:$LINENO: result: $ac_cv_have_intmax_t" >&5
17177 echo "${ECHO_T}$ac_cv_have_intmax_t" >&6
17178 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
17179 cat >>confdefs.h <<\_ACEOF
17180 #define HAVE_INTMAX_T 1
17187 echo "$as_me:$LINENO: checking for u_intmax_t type" >&5
17188 echo $ECHO_N "checking for u_intmax_t type... $ECHO_C" >&6
17189 if test "${ac_cv_have_u_intmax_t+set}" = set; then
17190 echo $ECHO_N "(cached) $ECHO_C" >&6
17193 cat >conftest.$ac_ext <<_ACEOF
17196 cat confdefs.h >>conftest.$ac_ext
17197 cat >>conftest.$ac_ext <<_ACEOF
17198 /* end confdefs.h. */
17199 #include <sys/types.h>
17203 u_intmax_t a; a = 1;
17208 rm -f conftest.$ac_objext
17209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17210 (eval $ac_compile) 2>conftest.er1
17212 grep -v '^ *+' conftest.er1 >conftest.err
17214 cat conftest.err >&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); } &&
17217 { ac_try='test -z "$ac_c_werror_flag"
17218 || test ! -s conftest.err'
17219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17220 (eval $ac_try) 2>&5
17222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); }; } &&
17224 { ac_try='test -s conftest.$ac_objext'
17225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17226 (eval $ac_try) 2>&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); }; }; then
17230 ac_cv_have_u_intmax_t="yes"
17232 echo "$as_me: failed program was:" >&5
17233 sed 's/^/| /' conftest.$ac_ext >&5
17236 cat >conftest.$ac_ext <<_ACEOF
17239 cat confdefs.h >>conftest.$ac_ext
17240 cat >>conftest.$ac_ext <<_ACEOF
17241 /* end confdefs.h. */
17242 #include <stdint.h>
17246 u_intmax_t a; a = 1;
17251 rm -f conftest.$ac_objext
17252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17253 (eval $ac_compile) 2>conftest.er1
17255 grep -v '^ *+' conftest.er1 >conftest.err
17257 cat conftest.err >&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); } &&
17260 { ac_try='test -z "$ac_c_werror_flag"
17261 || test ! -s conftest.err'
17262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263 (eval $ac_try) 2>&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; } &&
17267 { ac_try='test -s conftest.$ac_objext'
17268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17269 (eval $ac_try) 2>&5
17271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17272 (exit $ac_status); }; }; then
17273 ac_cv_have_u_intmax_t="yes"
17275 echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17278 ac_cv_have_u_intmax_t="no"
17281 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17288 echo "$as_me:$LINENO: result: $ac_cv_have_u_intmax_t" >&5
17289 echo "${ECHO_T}$ac_cv_have_u_intmax_t" >&6
17290 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
17291 cat >>confdefs.h <<\_ACEOF
17292 #define HAVE_U_INTMAX_T 1
17299 echo "$as_me:$LINENO: checking for intXX_t types" >&5
17300 echo $ECHO_N "checking for intXX_t types... $ECHO_C" >&6
17301 if test "${ac_cv_have_intxx_t+set}" = set; then
17302 echo $ECHO_N "(cached) $ECHO_C" >&6
17305 cat >conftest.$ac_ext <<_ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h. */
17311 #include <sys/types.h>
17315 int8_t a; int16_t b; int32_t c; a = b = c = 1;
17320 rm -f conftest.$ac_objext
17321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17322 (eval $ac_compile) 2>conftest.er1
17324 grep -v '^ *+' conftest.er1 >conftest.err
17326 cat conftest.err >&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); } &&
17329 { ac_try='test -z "$ac_c_werror_flag"
17330 || test ! -s conftest.err'
17331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332 (eval $ac_try) 2>&5
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; } &&
17336 { ac_try='test -s conftest.$ac_objext'
17337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17338 (eval $ac_try) 2>&5
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); }; }; then
17342 ac_cv_have_intxx_t="yes"
17344 echo "$as_me: failed program was:" >&5
17345 sed 's/^/| /' conftest.$ac_ext >&5
17347 ac_cv_have_intxx_t="no"
17350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17353 echo "$as_me:$LINENO: result: $ac_cv_have_intxx_t" >&5
17354 echo "${ECHO_T}$ac_cv_have_intxx_t" >&6
17355 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
17356 cat >>confdefs.h <<\_ACEOF
17357 #define HAVE_INTXX_T 1
17363 echo "$as_me:$LINENO: checking for int64_t type" >&5
17364 echo $ECHO_N "checking for int64_t type... $ECHO_C" >&6
17365 if test "${ac_cv_have_int64_t+set}" = set; then
17366 echo $ECHO_N "(cached) $ECHO_C" >&6
17369 cat >conftest.$ac_ext <<_ACEOF
17372 cat confdefs.h >>conftest.$ac_ext
17373 cat >>conftest.$ac_ext <<_ACEOF
17374 /* end confdefs.h. */
17375 #include <sys/types.h>
17384 rm -f conftest.$ac_objext
17385 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17386 (eval $ac_compile) 2>conftest.er1
17388 grep -v '^ *+' conftest.er1 >conftest.err
17390 cat conftest.err >&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); } &&
17393 { ac_try='test -z "$ac_c_werror_flag"
17394 || test ! -s conftest.err'
17395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17396 (eval $ac_try) 2>&5
17398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); }; } &&
17400 { ac_try='test -s conftest.$ac_objext'
17401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17402 (eval $ac_try) 2>&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; }; then
17406 ac_cv_have_int64_t="yes"
17408 echo "$as_me: failed program was:" >&5
17409 sed 's/^/| /' conftest.$ac_ext >&5
17411 ac_cv_have_int64_t="no"
17414 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17417 echo "$as_me:$LINENO: result: $ac_cv_have_int64_t" >&5
17418 echo "${ECHO_T}$ac_cv_have_int64_t" >&6
17419 if test "x$ac_cv_have_int64_t" = "xyes" ; then
17420 cat >>confdefs.h <<\_ACEOF
17421 #define HAVE_INT64_T 1
17427 echo "$as_me:$LINENO: checking for u_intXX_t types" >&5
17428 echo $ECHO_N "checking for u_intXX_t types... $ECHO_C" >&6
17429 if test "${ac_cv_have_u_intxx_t+set}" = set; then
17430 echo $ECHO_N "(cached) $ECHO_C" >&6
17433 cat >conftest.$ac_ext <<_ACEOF
17436 cat confdefs.h >>conftest.$ac_ext
17437 cat >>conftest.$ac_ext <<_ACEOF
17438 /* end confdefs.h. */
17439 #include <sys/types.h>
17443 u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
17448 rm -f conftest.$ac_objext
17449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17450 (eval $ac_compile) 2>conftest.er1
17452 grep -v '^ *+' conftest.er1 >conftest.err
17454 cat conftest.err >&5
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); } &&
17457 { ac_try='test -z "$ac_c_werror_flag"
17458 || test ! -s conftest.err'
17459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17460 (eval $ac_try) 2>&5
17462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17463 (exit $ac_status); }; } &&
17464 { ac_try='test -s conftest.$ac_objext'
17465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17466 (eval $ac_try) 2>&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; }; then
17470 ac_cv_have_u_intxx_t="yes"
17472 echo "$as_me: failed program was:" >&5
17473 sed 's/^/| /' conftest.$ac_ext >&5
17475 ac_cv_have_u_intxx_t="no"
17478 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17481 echo "$as_me:$LINENO: result: $ac_cv_have_u_intxx_t" >&5
17482 echo "${ECHO_T}$ac_cv_have_u_intxx_t" >&6
17483 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
17484 cat >>confdefs.h <<\_ACEOF
17485 #define HAVE_U_INTXX_T 1
17491 echo "$as_me:$LINENO: checking for u_int64_t types" >&5
17492 echo $ECHO_N "checking for u_int64_t types... $ECHO_C" >&6
17493 if test "${ac_cv_have_u_int64_t+set}" = set; then
17494 echo $ECHO_N "(cached) $ECHO_C" >&6
17497 cat >conftest.$ac_ext <<_ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h. */
17503 #include <sys/types.h>
17507 u_int64_t a; a = 1;
17512 rm -f conftest.$ac_objext
17513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17514 (eval $ac_compile) 2>conftest.er1
17516 grep -v '^ *+' conftest.er1 >conftest.err
17518 cat conftest.err >&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); } &&
17521 { ac_try='test -z "$ac_c_werror_flag"
17522 || test ! -s conftest.err'
17523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17524 (eval $ac_try) 2>&5
17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); }; } &&
17528 { ac_try='test -s conftest.$ac_objext'
17529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17530 (eval $ac_try) 2>&5
17532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17533 (exit $ac_status); }; }; then
17534 ac_cv_have_u_int64_t="yes"
17536 echo "$as_me: failed program was:" >&5
17537 sed 's/^/| /' conftest.$ac_ext >&5
17539 ac_cv_have_u_int64_t="no"
17542 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17545 echo "$as_me:$LINENO: result: $ac_cv_have_u_int64_t" >&5
17546 echo "${ECHO_T}$ac_cv_have_u_int64_t" >&6
17547 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
17548 cat >>confdefs.h <<\_ACEOF
17549 #define HAVE_U_INT64_T 1
17555 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
17556 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17558 echo "$as_me:$LINENO: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
17559 echo $ECHO_N "checking for intXX_t and u_intXX_t types in sys/bitypes.h... $ECHO_C" >&6
17560 cat >conftest.$ac_ext <<_ACEOF
17563 cat confdefs.h >>conftest.$ac_ext
17564 cat >>conftest.$ac_ext <<_ACEOF
17565 /* end confdefs.h. */
17566 #include <sys/bitypes.h>
17570 int8_t a; int16_t b; int32_t c;
17571 u_int8_t e; u_int16_t f; u_int32_t g;
17572 a = b = c = e = f = g = 1;
17577 rm -f conftest.$ac_objext
17578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17579 (eval $ac_compile) 2>conftest.er1
17581 grep -v '^ *+' conftest.er1 >conftest.err
17583 cat conftest.err >&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } &&
17586 { ac_try='test -z "$ac_c_werror_flag"
17587 || test ! -s conftest.err'
17588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17589 (eval $ac_try) 2>&5
17591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17592 (exit $ac_status); }; } &&
17593 { ac_try='test -s conftest.$ac_objext'
17594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17595 (eval $ac_try) 2>&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; }; then
17599 cat >>confdefs.h <<\_ACEOF
17600 #define HAVE_U_INTXX_T 1
17603 cat >>confdefs.h <<\_ACEOF
17604 #define HAVE_INTXX_T 1
17607 cat >>confdefs.h <<\_ACEOF
17608 #define HAVE_SYS_BITYPES_H 1
17611 echo "$as_me:$LINENO: result: yes" >&5
17612 echo "${ECHO_T}yes" >&6
17614 echo "$as_me: failed program was:" >&5
17615 sed 's/^/| /' conftest.$ac_ext >&5
17617 echo "$as_me:$LINENO: result: no" >&5
17618 echo "${ECHO_T}no" >&6
17621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17624 if test -z "$have_u_intxx_t" ; then
17625 echo "$as_me:$LINENO: checking for uintXX_t types" >&5
17626 echo $ECHO_N "checking for uintXX_t types... $ECHO_C" >&6
17627 if test "${ac_cv_have_uintxx_t+set}" = set; then
17628 echo $ECHO_N "(cached) $ECHO_C" >&6
17631 cat >conftest.$ac_ext <<_ACEOF
17634 cat confdefs.h >>conftest.$ac_ext
17635 cat >>conftest.$ac_ext <<_ACEOF
17636 /* end confdefs.h. */
17637 #include <sys/types.h>
17641 uint8_t a; uint16_t b;
17642 uint32_t c; a = b = c = 1;
17647 rm -f conftest.$ac_objext
17648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17649 (eval $ac_compile) 2>conftest.er1
17651 grep -v '^ *+' conftest.er1 >conftest.err
17653 cat conftest.err >&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } &&
17656 { ac_try='test -z "$ac_c_werror_flag"
17657 || test ! -s conftest.err'
17658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17659 (eval $ac_try) 2>&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; } &&
17663 { ac_try='test -s conftest.$ac_objext'
17664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17665 (eval $ac_try) 2>&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); }; }; then
17669 ac_cv_have_uintxx_t="yes"
17671 echo "$as_me: failed program was:" >&5
17672 sed 's/^/| /' conftest.$ac_ext >&5
17674 ac_cv_have_uintxx_t="no"
17677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17680 echo "$as_me:$LINENO: result: $ac_cv_have_uintxx_t" >&5
17681 echo "${ECHO_T}$ac_cv_have_uintxx_t" >&6
17682 if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
17683 cat >>confdefs.h <<\_ACEOF
17684 #define HAVE_UINTXX_T 1
17690 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
17691 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17693 echo "$as_me:$LINENO: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
17694 echo $ECHO_N "checking for int64_t and u_int64_t types in sys/bitypes.h... $ECHO_C" >&6
17695 cat >conftest.$ac_ext <<_ACEOF
17698 cat confdefs.h >>conftest.$ac_ext
17699 cat >>conftest.$ac_ext <<_ACEOF
17700 /* end confdefs.h. */
17701 #include <sys/bitypes.h>
17705 int64_t a; u_int64_t b;
17711 rm -f conftest.$ac_objext
17712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17713 (eval $ac_compile) 2>conftest.er1
17715 grep -v '^ *+' conftest.er1 >conftest.err
17717 cat conftest.err >&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); } &&
17720 { ac_try='test -z "$ac_c_werror_flag"
17721 || test ! -s conftest.err'
17722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723 (eval $ac_try) 2>&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); }; } &&
17727 { ac_try='test -s conftest.$ac_objext'
17728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; }; then
17733 cat >>confdefs.h <<\_ACEOF
17734 #define HAVE_U_INT64_T 1
17737 cat >>confdefs.h <<\_ACEOF
17738 #define HAVE_INT64_T 1
17741 echo "$as_me:$LINENO: result: yes" >&5
17742 echo "${ECHO_T}yes" >&6
17744 echo "$as_me: failed program was:" >&5
17745 sed 's/^/| /' conftest.$ac_ext >&5
17747 echo "$as_me:$LINENO: result: no" >&5
17748 echo "${ECHO_T}no" >&6
17751 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17754 if (test -z "$have_uintxx_t" && \
17755 test "x$ac_cv_header_sys_bitypes_h" = "xyes")
17757 echo "$as_me:$LINENO: checking for uintXX_t types in sys/bitypes.h" >&5
17758 echo $ECHO_N "checking for uintXX_t types in sys/bitypes.h... $ECHO_C" >&6
17759 cat >conftest.$ac_ext <<_ACEOF
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h. */
17765 #include <sys/bitypes.h>
17769 uint8_t a; uint16_t b;
17770 uint32_t c; a = b = c = 1;
17775 rm -f conftest.$ac_objext
17776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17777 (eval $ac_compile) 2>conftest.er1
17779 grep -v '^ *+' conftest.er1 >conftest.err
17781 cat conftest.err >&5
17782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17783 (exit $ac_status); } &&
17784 { ac_try='test -z "$ac_c_werror_flag"
17785 || test ! -s conftest.err'
17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); }; } &&
17791 { ac_try='test -s conftest.$ac_objext'
17792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17793 (eval $ac_try) 2>&5
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); }; }; then
17797 cat >>confdefs.h <<\_ACEOF
17798 #define HAVE_UINTXX_T 1
17801 echo "$as_me:$LINENO: result: yes" >&5
17802 echo "${ECHO_T}yes" >&6
17804 echo "$as_me: failed program was:" >&5
17805 sed 's/^/| /' conftest.$ac_ext >&5
17807 echo "$as_me:$LINENO: result: no" >&5
17808 echo "${ECHO_T}no" >&6
17811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17848 echo "$as_me:$LINENO: checking for $ac_func" >&5
17849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17850 if eval "test \"\${$as_ac_var+set}\" = set"; then
17851 echo $ECHO_N "(cached) $ECHO_C" >&6
17853 cat >conftest.$ac_ext <<_ACEOF
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h. */
17859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17861 #define $ac_func innocuous_$ac_func
17863 /* System header to define __stub macros and hopefully few prototypes,
17864 which can conflict with char $ac_func (); below.
17865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17866 <limits.h> exists even on freestanding compilers. */
17869 # include <limits.h>
17871 # include <assert.h>
17876 /* Override any gcc2 internal prototype to avoid an error. */
17881 /* We use char because int might match the return type of a gcc2
17882 builtin and then its argument prototype would still apply. */
17884 /* The GNU C library defines this for functions which it implements
17885 to always fail with ENOSYS. Some functions are actually named
17886 something starting with __ and the normal name is an alias. */
17887 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17890 char (*f) () = $ac_func;
17899 return f != $ac_func;
17904 rm -f conftest.$ac_objext conftest$ac_exeext
17905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17906 (eval $ac_link) 2>conftest.er1
17908 grep -v '^ *+' conftest.er1 >conftest.err
17910 cat conftest.err >&5
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); } &&
17913 { ac_try='test -z "$ac_c_werror_flag"
17914 || test ! -s conftest.err'
17915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17916 (eval $ac_try) 2>&5
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; } &&
17920 { ac_try='test -s conftest$ac_exeext'
17921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17922 (eval $ac_try) 2>&5
17924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }; }; then
17926 eval "$as_ac_var=yes"
17928 echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17931 eval "$as_ac_var=no"
17933 rm -f conftest.err conftest.$ac_objext \
17934 conftest$ac_exeext conftest.$ac_ext
17936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
17937 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
17938 if test `eval echo '${'$as_ac_var'}'` = yes; then
17939 cat >>confdefs.h <<_ACEOF
17940 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17944 echo 'configure: cannot find needed function.'; exit 1
17951 for ac_func in fchdir
17953 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17954 echo "$as_me:$LINENO: checking for $ac_func" >&5
17955 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
17956 if eval "test \"\${$as_ac_var+set}\" = set"; then
17957 echo $ECHO_N "(cached) $ECHO_C" >&6
17959 cat >conftest.$ac_ext <<_ACEOF
17962 cat confdefs.h >>conftest.$ac_ext
17963 cat >>conftest.$ac_ext <<_ACEOF
17964 /* end confdefs.h. */
17965 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17966 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17967 #define $ac_func innocuous_$ac_func
17969 /* System header to define __stub macros and hopefully few prototypes,
17970 which can conflict with char $ac_func (); below.
17971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17972 <limits.h> exists even on freestanding compilers. */
17975 # include <limits.h>
17977 # include <assert.h>
17982 /* Override any gcc2 internal prototype to avoid an error. */
17987 /* We use char because int might match the return type of a gcc2
17988 builtin and then its argument prototype would still apply. */
17990 /* The GNU C library defines this for functions which it implements
17991 to always fail with ENOSYS. Some functions are actually named
17992 something starting with __ and the normal name is an alias. */
17993 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17996 char (*f) () = $ac_func;
18005 return f != $ac_func;
18010 rm -f conftest.$ac_objext conftest$ac_exeext
18011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18012 (eval $ac_link) 2>conftest.er1
18014 grep -v '^ *+' conftest.er1 >conftest.err
18016 cat conftest.err >&5
18017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018 (exit $ac_status); } &&
18019 { ac_try='test -z "$ac_c_werror_flag"
18020 || test ! -s conftest.err'
18021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022 (eval $ac_try) 2>&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); }; } &&
18026 { ac_try='test -s conftest$ac_exeext'
18027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18028 (eval $ac_try) 2>&5
18030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031 (exit $ac_status); }; }; then
18032 eval "$as_ac_var=yes"
18034 echo "$as_me: failed program was:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18037 eval "$as_ac_var=no"
18039 rm -f conftest.err conftest.$ac_objext \
18040 conftest$ac_exeext conftest.$ac_ext
18042 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18043 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18044 if test `eval echo '${'$as_ac_var'}'` = yes; then
18045 cat >>confdefs.h <<_ACEOF
18046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18048 cat >>confdefs.h <<\_ACEOF
18049 #define HAVE_FCHDIR 1
18056 for ac_func in strtoll
18058 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18059 echo "$as_me:$LINENO: checking for $ac_func" >&5
18060 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18061 if eval "test \"\${$as_ac_var+set}\" = set"; then
18062 echo $ECHO_N "(cached) $ECHO_C" >&6
18064 cat >conftest.$ac_ext <<_ACEOF
18067 cat confdefs.h >>conftest.$ac_ext
18068 cat >>conftest.$ac_ext <<_ACEOF
18069 /* end confdefs.h. */
18070 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18072 #define $ac_func innocuous_$ac_func
18074 /* System header to define __stub macros and hopefully few prototypes,
18075 which can conflict with char $ac_func (); below.
18076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18077 <limits.h> exists even on freestanding compilers. */
18080 # include <limits.h>
18082 # include <assert.h>
18087 /* Override any gcc2 internal prototype to avoid an error. */
18092 /* We use char because int might match the return type of a gcc2
18093 builtin and then its argument prototype would still apply. */
18095 /* The GNU C library defines this for functions which it implements
18096 to always fail with ENOSYS. Some functions are actually named
18097 something starting with __ and the normal name is an alias. */
18098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18101 char (*f) () = $ac_func;
18110 return f != $ac_func;
18115 rm -f conftest.$ac_objext conftest$ac_exeext
18116 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18117 (eval $ac_link) 2>conftest.er1
18119 grep -v '^ *+' conftest.er1 >conftest.err
18121 cat conftest.err >&5
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); } &&
18124 { ac_try='test -z "$ac_c_werror_flag"
18125 || test ! -s conftest.err'
18126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18127 (eval $ac_try) 2>&5
18129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18130 (exit $ac_status); }; } &&
18131 { ac_try='test -s conftest$ac_exeext'
18132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18133 (eval $ac_try) 2>&5
18135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18136 (exit $ac_status); }; }; then
18137 eval "$as_ac_var=yes"
18139 echo "$as_me: failed program was:" >&5
18140 sed 's/^/| /' conftest.$ac_ext >&5
18142 eval "$as_ac_var=no"
18144 rm -f conftest.err conftest.$ac_objext \
18145 conftest$ac_exeext conftest.$ac_ext
18147 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18148 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18149 if test `eval echo '${'$as_ac_var'}'` = yes; then
18150 cat >>confdefs.h <<_ACEOF
18151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18153 cat >>confdefs.h <<\_ACEOF
18154 #define HAVE_STRTOLL 1
18162 for ac_func in chflags
18164 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18165 echo "$as_me:$LINENO: checking for $ac_func" >&5
18166 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18167 if eval "test \"\${$as_ac_var+set}\" = set"; then
18168 echo $ECHO_N "(cached) $ECHO_C" >&6
18170 cat >conftest.$ac_ext <<_ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h. */
18176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18178 #define $ac_func innocuous_$ac_func
18180 /* System header to define __stub macros and hopefully few prototypes,
18181 which can conflict with char $ac_func (); below.
18182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18183 <limits.h> exists even on freestanding compilers. */
18186 # include <limits.h>
18188 # include <assert.h>
18193 /* Override any gcc2 internal prototype to avoid an error. */
18198 /* We use char because int might match the return type of a gcc2
18199 builtin and then its argument prototype would still apply. */
18201 /* The GNU C library defines this for functions which it implements
18202 to always fail with ENOSYS. Some functions are actually named
18203 something starting with __ and the normal name is an alias. */
18204 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18207 char (*f) () = $ac_func;
18216 return f != $ac_func;
18221 rm -f conftest.$ac_objext conftest$ac_exeext
18222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18223 (eval $ac_link) 2>conftest.er1
18225 grep -v '^ *+' conftest.er1 >conftest.err
18227 cat conftest.err >&5
18228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); } &&
18230 { ac_try='test -z "$ac_c_werror_flag"
18231 || test ! -s conftest.err'
18232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18233 (eval $ac_try) 2>&5
18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18236 (exit $ac_status); }; } &&
18237 { ac_try='test -s conftest$ac_exeext'
18238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18239 (eval $ac_try) 2>&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; }; then
18243 eval "$as_ac_var=yes"
18245 echo "$as_me: failed program was:" >&5
18246 sed 's/^/| /' conftest.$ac_ext >&5
18248 eval "$as_ac_var=no"
18250 rm -f conftest.err conftest.$ac_objext \
18251 conftest$ac_exeext conftest.$ac_ext
18253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18254 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18255 if test `eval echo '${'$as_ac_var'}'` = yes; then
18256 cat >>confdefs.h <<_ACEOF
18257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18268 for ac_func in snprintf vsnprintf gethostid fseeko
18270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18271 echo "$as_me:$LINENO: checking for $ac_func" >&5
18272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18273 if eval "test \"\${$as_ac_var+set}\" = set"; then
18274 echo $ECHO_N "(cached) $ECHO_C" >&6
18276 cat >conftest.$ac_ext <<_ACEOF
18279 cat confdefs.h >>conftest.$ac_ext
18280 cat >>conftest.$ac_ext <<_ACEOF
18281 /* end confdefs.h. */
18282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18284 #define $ac_func innocuous_$ac_func
18286 /* System header to define __stub macros and hopefully few prototypes,
18287 which can conflict with char $ac_func (); below.
18288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18289 <limits.h> exists even on freestanding compilers. */
18292 # include <limits.h>
18294 # include <assert.h>
18299 /* Override any gcc2 internal prototype to avoid an error. */
18304 /* We use char because int might match the return type of a gcc2
18305 builtin and then its argument prototype would still apply. */
18307 /* The GNU C library defines this for functions which it implements
18308 to always fail with ENOSYS. Some functions are actually named
18309 something starting with __ and the normal name is an alias. */
18310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18313 char (*f) () = $ac_func;
18322 return f != $ac_func;
18327 rm -f conftest.$ac_objext conftest$ac_exeext
18328 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18329 (eval $ac_link) 2>conftest.er1
18331 grep -v '^ *+' conftest.er1 >conftest.err
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } &&
18336 { ac_try='test -z "$ac_c_werror_flag"
18337 || test ! -s conftest.err'
18338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18339 (eval $ac_try) 2>&5
18341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342 (exit $ac_status); }; } &&
18343 { ac_try='test -s conftest$ac_exeext'
18344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18345 (eval $ac_try) 2>&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); }; }; then
18349 eval "$as_ac_var=yes"
18351 echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18354 eval "$as_ac_var=no"
18356 rm -f conftest.err conftest.$ac_objext \
18357 conftest$ac_exeext conftest.$ac_ext
18359 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18360 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18361 if test `eval echo '${'$as_ac_var'}'` = yes; then
18362 cat >>confdefs.h <<_ACEOF
18363 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18374 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
18376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18377 echo "$as_me:$LINENO: checking for $ac_func" >&5
18378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18379 if eval "test \"\${$as_ac_var+set}\" = set"; then
18380 echo $ECHO_N "(cached) $ECHO_C" >&6
18382 cat >conftest.$ac_ext <<_ACEOF
18385 cat confdefs.h >>conftest.$ac_ext
18386 cat >>conftest.$ac_ext <<_ACEOF
18387 /* end confdefs.h. */
18388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18390 #define $ac_func innocuous_$ac_func
18392 /* System header to define __stub macros and hopefully few prototypes,
18393 which can conflict with char $ac_func (); below.
18394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18395 <limits.h> exists even on freestanding compilers. */
18398 # include <limits.h>
18400 # include <assert.h>
18405 /* Override any gcc2 internal prototype to avoid an error. */
18410 /* We use char because int might match the return type of a gcc2
18411 builtin and then its argument prototype would still apply. */
18413 /* The GNU C library defines this for functions which it implements
18414 to always fail with ENOSYS. Some functions are actually named
18415 something starting with __ and the normal name is an alias. */
18416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18419 char (*f) () = $ac_func;
18428 return f != $ac_func;
18433 rm -f conftest.$ac_objext conftest$ac_exeext
18434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18435 (eval $ac_link) 2>conftest.er1
18437 grep -v '^ *+' conftest.er1 >conftest.err
18439 cat conftest.err >&5
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); } &&
18442 { ac_try='test -z "$ac_c_werror_flag"
18443 || test ! -s conftest.err'
18444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18445 (eval $ac_try) 2>&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); }; } &&
18449 { ac_try='test -s conftest$ac_exeext'
18450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18451 (eval $ac_try) 2>&5
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); }; }; then
18455 eval "$as_ac_var=yes"
18457 echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.$ac_ext >&5
18460 eval "$as_ac_var=no"
18462 rm -f conftest.err conftest.$ac_objext \
18463 conftest$ac_exeext conftest.$ac_ext
18465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18467 if test `eval echo '${'$as_ac_var'}'` = yes; then
18468 cat >>confdefs.h <<_ACEOF
18469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18476 # If resolver functions are not in libc check for -lnsl or -lresolv.
18477 echo "$as_me:$LINENO: checking for gethostbyname_r" >&5
18478 echo $ECHO_N "checking for gethostbyname_r... $ECHO_C" >&6
18479 if test "${ac_cv_func_gethostbyname_r+set}" = set; then
18480 echo $ECHO_N "(cached) $ECHO_C" >&6
18482 cat >conftest.$ac_ext <<_ACEOF
18485 cat confdefs.h >>conftest.$ac_ext
18486 cat >>conftest.$ac_ext <<_ACEOF
18487 /* end confdefs.h. */
18488 /* Define gethostbyname_r to an innocuous variant, in case <limits.h> declares gethostbyname_r.
18489 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18490 #define gethostbyname_r innocuous_gethostbyname_r
18492 /* System header to define __stub macros and hopefully few prototypes,
18493 which can conflict with char gethostbyname_r (); below.
18494 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18495 <limits.h> exists even on freestanding compilers. */
18498 # include <limits.h>
18500 # include <assert.h>
18503 #undef gethostbyname_r
18505 /* Override any gcc2 internal prototype to avoid an error. */
18510 /* We use char because int might match the return type of a gcc2
18511 builtin and then its argument prototype would still apply. */
18512 char gethostbyname_r ();
18513 /* The GNU C library defines this for functions which it implements
18514 to always fail with ENOSYS. Some functions are actually named
18515 something starting with __ and the normal name is an alias. */
18516 #if defined (__stub_gethostbyname_r) || defined (__stub___gethostbyname_r)
18519 char (*f) () = gethostbyname_r;
18528 return f != gethostbyname_r;
18533 rm -f conftest.$ac_objext conftest$ac_exeext
18534 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18535 (eval $ac_link) 2>conftest.er1
18537 grep -v '^ *+' conftest.er1 >conftest.err
18539 cat conftest.err >&5
18540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18541 (exit $ac_status); } &&
18542 { ac_try='test -z "$ac_c_werror_flag"
18543 || test ! -s conftest.err'
18544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18545 (eval $ac_try) 2>&5
18547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18548 (exit $ac_status); }; } &&
18549 { ac_try='test -s conftest$ac_exeext'
18550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18551 (eval $ac_try) 2>&5
18553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18554 (exit $ac_status); }; }; then
18555 ac_cv_func_gethostbyname_r=yes
18557 echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.$ac_ext >&5
18560 ac_cv_func_gethostbyname_r=no
18562 rm -f conftest.err conftest.$ac_objext \
18563 conftest$ac_exeext conftest.$ac_ext
18565 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname_r" >&5
18566 echo "${ECHO_T}$ac_cv_func_gethostbyname_r" >&6
18567 if test $ac_cv_func_gethostbyname_r = yes; then
18568 echo "$as_me:$LINENO: result: using libc's resolver" >&5
18569 echo "${ECHO_T}using libc's resolver" >&6
18572 echo "$as_me:$LINENO: checking for gethostbyname_r in -lnsl" >&5
18573 echo $ECHO_N "checking for gethostbyname_r in -lnsl... $ECHO_C" >&6
18574 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then
18575 echo $ECHO_N "(cached) $ECHO_C" >&6
18577 ac_check_lib_save_LIBS=$LIBS
18579 cat >conftest.$ac_ext <<_ACEOF
18582 cat confdefs.h >>conftest.$ac_ext
18583 cat >>conftest.$ac_ext <<_ACEOF
18584 /* end confdefs.h. */
18586 /* Override any gcc2 internal prototype to avoid an error. */
18590 /* We use char because int might match the return type of a gcc2
18591 builtin and then its argument prototype would still apply. */
18592 char gethostbyname_r ();
18596 gethostbyname_r ();
18601 rm -f conftest.$ac_objext conftest$ac_exeext
18602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18603 (eval $ac_link) 2>conftest.er1
18605 grep -v '^ *+' conftest.er1 >conftest.err
18607 cat conftest.err >&5
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } &&
18610 { ac_try='test -z "$ac_c_werror_flag"
18611 || test ! -s conftest.err'
18612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18613 (eval $ac_try) 2>&5
18615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18616 (exit $ac_status); }; } &&
18617 { ac_try='test -s conftest$ac_exeext'
18618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18619 (eval $ac_try) 2>&5
18621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622 (exit $ac_status); }; }; then
18623 ac_cv_lib_nsl_gethostbyname_r=yes
18625 echo "$as_me: failed program was:" >&5
18626 sed 's/^/| /' conftest.$ac_ext >&5
18628 ac_cv_lib_nsl_gethostbyname_r=no
18630 rm -f conftest.err conftest.$ac_objext \
18631 conftest$ac_exeext conftest.$ac_ext
18632 LIBS=$ac_check_lib_save_LIBS
18634 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
18635 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname_r" >&6
18636 if test $ac_cv_lib_nsl_gethostbyname_r = yes; then
18637 cat >>confdefs.h <<_ACEOF
18638 #define HAVE_LIBNSL 1
18646 echo "$as_me:$LINENO: checking for gethostbyname_r in -lresolv" >&5
18647 echo $ECHO_N "checking for gethostbyname_r in -lresolv... $ECHO_C" >&6
18648 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then
18649 echo $ECHO_N "(cached) $ECHO_C" >&6
18651 ac_check_lib_save_LIBS=$LIBS
18652 LIBS="-lresolv $LIBS"
18653 cat >conftest.$ac_ext <<_ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h. */
18660 /* Override any gcc2 internal prototype to avoid an error. */
18664 /* We use char because int might match the return type of a gcc2
18665 builtin and then its argument prototype would still apply. */
18666 char gethostbyname_r ();
18670 gethostbyname_r ();
18675 rm -f conftest.$ac_objext conftest$ac_exeext
18676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18677 (eval $ac_link) 2>conftest.er1
18679 grep -v '^ *+' conftest.er1 >conftest.err
18681 cat conftest.err >&5
18682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683 (exit $ac_status); } &&
18684 { ac_try='test -z "$ac_c_werror_flag"
18685 || test ! -s conftest.err'
18686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687 (eval $ac_try) 2>&5
18689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690 (exit $ac_status); }; } &&
18691 { ac_try='test -s conftest$ac_exeext'
18692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693 (eval $ac_try) 2>&5
18695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696 (exit $ac_status); }; }; then
18697 ac_cv_lib_resolv_gethostbyname_r=yes
18699 echo "$as_me: failed program was:" >&5
18700 sed 's/^/| /' conftest.$ac_ext >&5
18702 ac_cv_lib_resolv_gethostbyname_r=no
18704 rm -f conftest.err conftest.$ac_objext \
18705 conftest$ac_exeext conftest.$ac_ext
18706 LIBS=$ac_check_lib_save_LIBS
18708 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
18709 echo "${ECHO_T}$ac_cv_lib_resolv_gethostbyname_r" >&6
18710 if test $ac_cv_lib_resolv_gethostbyname_r = yes; then
18711 cat >>confdefs.h <<_ACEOF
18712 #define HAVE_LIBRESOLV 1
18715 LIBS="-lresolv $LIBS"
18725 for ac_func in inet_pton
18727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18728 echo "$as_me:$LINENO: checking for $ac_func" >&5
18729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18730 if eval "test \"\${$as_ac_var+set}\" = set"; then
18731 echo $ECHO_N "(cached) $ECHO_C" >&6
18733 cat >conftest.$ac_ext <<_ACEOF
18736 cat confdefs.h >>conftest.$ac_ext
18737 cat >>conftest.$ac_ext <<_ACEOF
18738 /* end confdefs.h. */
18739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18741 #define $ac_func innocuous_$ac_func
18743 /* System header to define __stub macros and hopefully few prototypes,
18744 which can conflict with char $ac_func (); below.
18745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18746 <limits.h> exists even on freestanding compilers. */
18749 # include <limits.h>
18751 # include <assert.h>
18756 /* Override any gcc2 internal prototype to avoid an error. */
18761 /* We use char because int might match the return type of a gcc2
18762 builtin and then its argument prototype would still apply. */
18764 /* The GNU C library defines this for functions which it implements
18765 to always fail with ENOSYS. Some functions are actually named
18766 something starting with __ and the normal name is an alias. */
18767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18770 char (*f) () = $ac_func;
18779 return f != $ac_func;
18784 rm -f conftest.$ac_objext conftest$ac_exeext
18785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18786 (eval $ac_link) 2>conftest.er1
18788 grep -v '^ *+' conftest.er1 >conftest.err
18790 cat conftest.err >&5
18791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18792 (exit $ac_status); } &&
18793 { ac_try='test -z "$ac_c_werror_flag"
18794 || test ! -s conftest.err'
18795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18796 (eval $ac_try) 2>&5
18798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); }; } &&
18800 { ac_try='test -s conftest$ac_exeext'
18801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18802 (eval $ac_try) 2>&5
18804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18805 (exit $ac_status); }; }; then
18806 eval "$as_ac_var=yes"
18808 echo "$as_me: failed program was:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18811 eval "$as_ac_var=no"
18813 rm -f conftest.err conftest.$ac_objext \
18814 conftest$ac_exeext conftest.$ac_ext
18816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18817 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18818 if test `eval echo '${'$as_ac_var'}'` = yes; then
18819 cat >>confdefs.h <<_ACEOF
18820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18822 cat >>confdefs.h <<\_ACEOF
18823 #define HAVE_INET_PTON 1
18830 for ac_func in inet_ntop
18832 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18833 echo "$as_me:$LINENO: checking for $ac_func" >&5
18834 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18835 if eval "test \"\${$as_ac_var+set}\" = set"; then
18836 echo $ECHO_N "(cached) $ECHO_C" >&6
18838 cat >conftest.$ac_ext <<_ACEOF
18841 cat confdefs.h >>conftest.$ac_ext
18842 cat >>conftest.$ac_ext <<_ACEOF
18843 /* end confdefs.h. */
18844 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18846 #define $ac_func innocuous_$ac_func
18848 /* System header to define __stub macros and hopefully few prototypes,
18849 which can conflict with char $ac_func (); below.
18850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18851 <limits.h> exists even on freestanding compilers. */
18854 # include <limits.h>
18856 # include <assert.h>
18861 /* Override any gcc2 internal prototype to avoid an error. */
18866 /* We use char because int might match the return type of a gcc2
18867 builtin and then its argument prototype would still apply. */
18869 /* The GNU C library defines this for functions which it implements
18870 to always fail with ENOSYS. Some functions are actually named
18871 something starting with __ and the normal name is an alias. */
18872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18875 char (*f) () = $ac_func;
18884 return f != $ac_func;
18889 rm -f conftest.$ac_objext conftest$ac_exeext
18890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18891 (eval $ac_link) 2>conftest.er1
18893 grep -v '^ *+' conftest.er1 >conftest.err
18895 cat conftest.err >&5
18896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897 (exit $ac_status); } &&
18898 { ac_try='test -z "$ac_c_werror_flag"
18899 || test ! -s conftest.err'
18900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18901 (eval $ac_try) 2>&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); }; } &&
18905 { ac_try='test -s conftest$ac_exeext'
18906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18907 (eval $ac_try) 2>&5
18909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); }; }; then
18911 eval "$as_ac_var=yes"
18913 echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18916 eval "$as_ac_var=no"
18918 rm -f conftest.err conftest.$ac_objext \
18919 conftest$ac_exeext conftest.$ac_ext
18921 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
18922 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
18923 if test `eval echo '${'$as_ac_var'}'` = yes; then
18924 cat >>confdefs.h <<_ACEOF
18925 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18927 cat >>confdefs.h <<\_ACEOF
18928 #define HAVE_INET_NTOP 1
18935 for ac_func in gethostbyname2
18937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18938 echo "$as_me:$LINENO: checking for $ac_func" >&5
18939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
18940 if eval "test \"\${$as_ac_var+set}\" = set"; then
18941 echo $ECHO_N "(cached) $ECHO_C" >&6
18943 cat >conftest.$ac_ext <<_ACEOF
18946 cat confdefs.h >>conftest.$ac_ext
18947 cat >>conftest.$ac_ext <<_ACEOF
18948 /* end confdefs.h. */
18949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18951 #define $ac_func innocuous_$ac_func
18953 /* System header to define __stub macros and hopefully few prototypes,
18954 which can conflict with char $ac_func (); below.
18955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18956 <limits.h> exists even on freestanding compilers. */
18959 # include <limits.h>
18961 # include <assert.h>
18966 /* Override any gcc2 internal prototype to avoid an error. */
18971 /* We use char because int might match the return type of a gcc2
18972 builtin and then its argument prototype would still apply. */
18974 /* The GNU C library defines this for functions which it implements
18975 to always fail with ENOSYS. Some functions are actually named
18976 something starting with __ and the normal name is an alias. */
18977 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18980 char (*f) () = $ac_func;
18989 return f != $ac_func;
18994 rm -f conftest.$ac_objext conftest$ac_exeext
18995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18996 (eval $ac_link) 2>conftest.er1
18998 grep -v '^ *+' conftest.er1 >conftest.err
19000 cat conftest.err >&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } &&
19003 { ac_try='test -z "$ac_c_werror_flag"
19004 || test ! -s conftest.err'
19005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19006 (eval $ac_try) 2>&5
19008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19009 (exit $ac_status); }; } &&
19010 { ac_try='test -s conftest$ac_exeext'
19011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19012 (eval $ac_try) 2>&5
19014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19015 (exit $ac_status); }; }; then
19016 eval "$as_ac_var=yes"
19018 echo "$as_me: failed program was:" >&5
19019 sed 's/^/| /' conftest.$ac_ext >&5
19021 eval "$as_ac_var=no"
19023 rm -f conftest.err conftest.$ac_objext \
19024 conftest$ac_exeext conftest.$ac_ext
19026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19027 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19028 if test `eval echo '${'$as_ac_var'}'` = yes; then
19029 cat >>confdefs.h <<_ACEOF
19030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19032 cat >>confdefs.h <<\_ACEOF
19033 #define HAVE_GETHOSTBYNAME2 1
19040 echo "$as_me:$LINENO: checking for struct sockaddr has a sa_len field" >&5
19041 echo $ECHO_N "checking for struct sockaddr has a sa_len field... $ECHO_C" >&6
19042 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then
19043 echo $ECHO_N "(cached) $ECHO_C" >&6
19045 cat >conftest.$ac_ext <<_ACEOF
19048 cat confdefs.h >>conftest.$ac_ext
19049 cat >>conftest.$ac_ext <<_ACEOF
19050 /* end confdefs.h. */
19051 #include <sys/socket.h>
19055 struct sockaddr s; s.sa_len;
19060 rm -f conftest.$ac_objext
19061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19062 (eval $ac_compile) 2>conftest.er1
19064 grep -v '^ *+' conftest.er1 >conftest.err
19066 cat conftest.err >&5
19067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } &&
19069 { ac_try='test -z "$ac_c_werror_flag"
19070 || test ! -s conftest.err'
19071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19072 (eval $ac_try) 2>&5
19074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19075 (exit $ac_status); }; } &&
19076 { ac_try='test -s conftest.$ac_objext'
19077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19078 (eval $ac_try) 2>&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); }; }; then
19082 ac_cv_struct_sockaddr_sa_len=yes
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19087 ac_cv_struct_sockaddr_sa_len=no
19089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19091 echo "$as_me:$LINENO: result: $ac_cv_struct_sockaddr_sa_len" >&5
19092 echo "${ECHO_T}$ac_cv_struct_sockaddr_sa_len" >&6
19094 if test $ac_cv_struct_sockaddr_sa_len = yes; then
19096 cat >>confdefs.h <<\_ACEOF
19097 #define HAVE_SA_LEN 1
19103 echo "$as_me:$LINENO: checking for IPv6 support" >&5
19104 echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
19105 if test "${ac_cv_ipv6_support+set}" = set; then
19106 echo $ECHO_N "(cached) $ECHO_C" >&6
19108 cat >conftest.$ac_ext <<_ACEOF
19111 cat confdefs.h >>conftest.$ac_ext
19112 cat >>conftest.$ac_ext <<_ACEOF
19113 /* end confdefs.h. */
19114 #include <sys/types.h>
19115 #include <sys/socket.h>
19116 #include <netinet/in.h>
19120 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] =
19126 rm -f conftest.$ac_objext conftest$ac_exeext
19127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19128 (eval $ac_link) 2>conftest.er1
19130 grep -v '^ *+' conftest.er1 >conftest.err
19132 cat conftest.err >&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } &&
19135 { ac_try='test -z "$ac_c_werror_flag"
19136 || test ! -s conftest.err'
19137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19138 (eval $ac_try) 2>&5
19140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19141 (exit $ac_status); }; } &&
19142 { ac_try='test -s conftest$ac_exeext'
19143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19144 (eval $ac_try) 2>&5
19146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19147 (exit $ac_status); }; }; then
19148 ac_cv_ipv6_support=yes
19150 echo "$as_me: failed program was:" >&5
19151 sed 's/^/| /' conftest.$ac_ext >&5
19153 ac_cv_ipv6_support=no
19155 rm -f conftest.err conftest.$ac_objext \
19156 conftest$ac_exeext conftest.$ac_ext
19158 echo "$as_me:$LINENO: result: $ac_cv_ipv6_support" >&5
19159 echo "${ECHO_T}$ac_cv_ipv6_support" >&6
19161 if test "$ac_cv_ipv6_support" = yes; then
19163 cat >>confdefs.h <<\_ACEOF
19164 #define HAVE_IPV6 1
19172 for ac_func in strftime
19174 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19175 echo "$as_me:$LINENO: checking for $ac_func" >&5
19176 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19177 if eval "test \"\${$as_ac_var+set}\" = set"; then
19178 echo $ECHO_N "(cached) $ECHO_C" >&6
19180 cat >conftest.$ac_ext <<_ACEOF
19183 cat confdefs.h >>conftest.$ac_ext
19184 cat >>conftest.$ac_ext <<_ACEOF
19185 /* end confdefs.h. */
19186 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19188 #define $ac_func innocuous_$ac_func
19190 /* System header to define __stub macros and hopefully few prototypes,
19191 which can conflict with char $ac_func (); below.
19192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19193 <limits.h> exists even on freestanding compilers. */
19196 # include <limits.h>
19198 # include <assert.h>
19203 /* Override any gcc2 internal prototype to avoid an error. */
19208 /* We use char because int might match the return type of a gcc2
19209 builtin and then its argument prototype would still apply. */
19211 /* The GNU C library defines this for functions which it implements
19212 to always fail with ENOSYS. Some functions are actually named
19213 something starting with __ and the normal name is an alias. */
19214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19217 char (*f) () = $ac_func;
19226 return f != $ac_func;
19231 rm -f conftest.$ac_objext conftest$ac_exeext
19232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19233 (eval $ac_link) 2>conftest.er1
19235 grep -v '^ *+' conftest.er1 >conftest.err
19237 cat conftest.err >&5
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); } &&
19240 { ac_try='test -z "$ac_c_werror_flag"
19241 || test ! -s conftest.err'
19242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19243 (eval $ac_try) 2>&5
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); }; } &&
19247 { ac_try='test -s conftest$ac_exeext'
19248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19249 (eval $ac_try) 2>&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; }; then
19253 eval "$as_ac_var=yes"
19255 echo "$as_me: failed program was:" >&5
19256 sed 's/^/| /' conftest.$ac_ext >&5
19258 eval "$as_ac_var=no"
19260 rm -f conftest.err conftest.$ac_objext \
19261 conftest$ac_exeext conftest.$ac_ext
19263 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19264 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19265 if test `eval echo '${'$as_ac_var'}'` = yes; then
19266 cat >>confdefs.h <<_ACEOF
19267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19271 # strftime is in -lintl on SCO UNIX.
19272 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19273 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
19274 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19275 echo $ECHO_N "(cached) $ECHO_C" >&6
19277 ac_check_lib_save_LIBS=$LIBS
19278 LIBS="-lintl $LIBS"
19279 cat >conftest.$ac_ext <<_ACEOF
19282 cat confdefs.h >>conftest.$ac_ext
19283 cat >>conftest.$ac_ext <<_ACEOF
19284 /* end confdefs.h. */
19286 /* Override any gcc2 internal prototype to avoid an error. */
19290 /* We use char because int might match the return type of a gcc2
19291 builtin and then its argument prototype would still apply. */
19301 rm -f conftest.$ac_objext conftest$ac_exeext
19302 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19303 (eval $ac_link) 2>conftest.er1
19305 grep -v '^ *+' conftest.er1 >conftest.err
19307 cat conftest.err >&5
19308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19309 (exit $ac_status); } &&
19310 { ac_try='test -z "$ac_c_werror_flag"
19311 || test ! -s conftest.err'
19312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19313 (eval $ac_try) 2>&5
19315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19316 (exit $ac_status); }; } &&
19317 { ac_try='test -s conftest$ac_exeext'
19318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19319 (eval $ac_try) 2>&5
19321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19322 (exit $ac_status); }; }; then
19323 ac_cv_lib_intl_strftime=yes
19325 echo "$as_me: failed program was:" >&5
19326 sed 's/^/| /' conftest.$ac_ext >&5
19328 ac_cv_lib_intl_strftime=no
19330 rm -f conftest.err conftest.$ac_objext \
19331 conftest$ac_exeext conftest.$ac_ext
19332 LIBS=$ac_check_lib_save_LIBS
19334 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19335 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
19336 if test $ac_cv_lib_intl_strftime = yes; then
19337 cat >>confdefs.h <<\_ACEOF
19338 #define HAVE_STRFTIME 1
19341 LIBS="-lintl $LIBS"
19348 for ac_func in vprintf
19350 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19351 echo "$as_me:$LINENO: checking for $ac_func" >&5
19352 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19353 if eval "test \"\${$as_ac_var+set}\" = set"; then
19354 echo $ECHO_N "(cached) $ECHO_C" >&6
19356 cat >conftest.$ac_ext <<_ACEOF
19359 cat confdefs.h >>conftest.$ac_ext
19360 cat >>conftest.$ac_ext <<_ACEOF
19361 /* end confdefs.h. */
19362 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19364 #define $ac_func innocuous_$ac_func
19366 /* System header to define __stub macros and hopefully few prototypes,
19367 which can conflict with char $ac_func (); below.
19368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19369 <limits.h> exists even on freestanding compilers. */
19372 # include <limits.h>
19374 # include <assert.h>
19379 /* Override any gcc2 internal prototype to avoid an error. */
19384 /* We use char because int might match the return type of a gcc2
19385 builtin and then its argument prototype would still apply. */
19387 /* The GNU C library defines this for functions which it implements
19388 to always fail with ENOSYS. Some functions are actually named
19389 something starting with __ and the normal name is an alias. */
19390 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19393 char (*f) () = $ac_func;
19402 return f != $ac_func;
19407 rm -f conftest.$ac_objext conftest$ac_exeext
19408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19409 (eval $ac_link) 2>conftest.er1
19411 grep -v '^ *+' conftest.er1 >conftest.err
19413 cat conftest.err >&5
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); } &&
19416 { ac_try='test -z "$ac_c_werror_flag"
19417 || test ! -s conftest.err'
19418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19419 (eval $ac_try) 2>&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); }; } &&
19423 { ac_try='test -s conftest$ac_exeext'
19424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19425 (eval $ac_try) 2>&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); }; }; then
19429 eval "$as_ac_var=yes"
19431 echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19434 eval "$as_ac_var=no"
19436 rm -f conftest.err conftest.$ac_objext \
19437 conftest$ac_exeext conftest.$ac_ext
19439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19440 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19441 if test `eval echo '${'$as_ac_var'}'` = yes; then
19442 cat >>confdefs.h <<_ACEOF
19443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19446 echo "$as_me:$LINENO: checking for _doprnt" >&5
19447 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
19448 if test "${ac_cv_func__doprnt+set}" = set; then
19449 echo $ECHO_N "(cached) $ECHO_C" >&6
19451 cat >conftest.$ac_ext <<_ACEOF
19454 cat confdefs.h >>conftest.$ac_ext
19455 cat >>conftest.$ac_ext <<_ACEOF
19456 /* end confdefs.h. */
19457 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
19458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19459 #define _doprnt innocuous__doprnt
19461 /* System header to define __stub macros and hopefully few prototypes,
19462 which can conflict with char _doprnt (); below.
19463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19464 <limits.h> exists even on freestanding compilers. */
19467 # include <limits.h>
19469 # include <assert.h>
19474 /* Override any gcc2 internal prototype to avoid an error. */
19479 /* We use char because int might match the return type of a gcc2
19480 builtin and then its argument prototype would still apply. */
19482 /* The GNU C library defines this for functions which it implements
19483 to always fail with ENOSYS. Some functions are actually named
19484 something starting with __ and the normal name is an alias. */
19485 #if defined (__stub__doprnt) || defined (__stub____doprnt)
19488 char (*f) () = _doprnt;
19497 return f != _doprnt;
19502 rm -f conftest.$ac_objext conftest$ac_exeext
19503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19504 (eval $ac_link) 2>conftest.er1
19506 grep -v '^ *+' conftest.er1 >conftest.err
19508 cat conftest.err >&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } &&
19511 { ac_try='test -z "$ac_c_werror_flag"
19512 || test ! -s conftest.err'
19513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19514 (eval $ac_try) 2>&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; } &&
19518 { ac_try='test -s conftest$ac_exeext'
19519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19520 (eval $ac_try) 2>&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19524 ac_cv_func__doprnt=yes
19526 echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19529 ac_cv_func__doprnt=no
19531 rm -f conftest.err conftest.$ac_objext \
19532 conftest$ac_exeext conftest.$ac_ext
19534 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
19535 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
19536 if test $ac_cv_func__doprnt = yes; then
19538 cat >>confdefs.h <<\_ACEOF
19539 #define HAVE_DOPRNT 1
19548 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19549 # for constant arguments. Useless!
19550 echo "$as_me:$LINENO: checking for working alloca.h" >&5
19551 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
19552 if test "${ac_cv_working_alloca_h+set}" = set; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19555 cat >conftest.$ac_ext <<_ACEOF
19558 cat confdefs.h >>conftest.$ac_ext
19559 cat >>conftest.$ac_ext <<_ACEOF
19560 /* end confdefs.h. */
19561 #include <alloca.h>
19565 char *p = (char *) alloca (2 * sizeof (int));
19570 rm -f conftest.$ac_objext conftest$ac_exeext
19571 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19572 (eval $ac_link) 2>conftest.er1
19574 grep -v '^ *+' conftest.er1 >conftest.err
19576 cat conftest.err >&5
19577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19578 (exit $ac_status); } &&
19579 { ac_try='test -z "$ac_c_werror_flag"
19580 || test ! -s conftest.err'
19581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582 (eval $ac_try) 2>&5
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); }; } &&
19586 { ac_try='test -s conftest$ac_exeext'
19587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588 (eval $ac_try) 2>&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; }; then
19592 ac_cv_working_alloca_h=yes
19594 echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19597 ac_cv_working_alloca_h=no
19599 rm -f conftest.err conftest.$ac_objext \
19600 conftest$ac_exeext conftest.$ac_ext
19602 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19603 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
19604 if test $ac_cv_working_alloca_h = yes; then
19606 cat >>confdefs.h <<\_ACEOF
19607 #define HAVE_ALLOCA_H 1
19612 echo "$as_me:$LINENO: checking for alloca" >&5
19613 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
19614 if test "${ac_cv_func_alloca_works+set}" = set; then
19615 echo $ECHO_N "(cached) $ECHO_C" >&6
19617 cat >conftest.$ac_ext <<_ACEOF
19620 cat confdefs.h >>conftest.$ac_ext
19621 cat >>conftest.$ac_ext <<_ACEOF
19622 /* end confdefs.h. */
19624 # define alloca __builtin_alloca
19627 # include <malloc.h>
19628 # define alloca _alloca
19631 # include <alloca.h>
19636 # ifndef alloca /* predefined by HP cc +Olibcalls */
19647 char *p = (char *) alloca (1);
19652 rm -f conftest.$ac_objext conftest$ac_exeext
19653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19654 (eval $ac_link) 2>conftest.er1
19656 grep -v '^ *+' conftest.er1 >conftest.err
19658 cat conftest.err >&5
19659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); } &&
19661 { ac_try='test -z "$ac_c_werror_flag"
19662 || test ! -s conftest.err'
19663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19664 (eval $ac_try) 2>&5
19666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); }; } &&
19668 { ac_try='test -s conftest$ac_exeext'
19669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19670 (eval $ac_try) 2>&5
19672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673 (exit $ac_status); }; }; then
19674 ac_cv_func_alloca_works=yes
19676 echo "$as_me: failed program was:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19679 ac_cv_func_alloca_works=no
19681 rm -f conftest.err conftest.$ac_objext \
19682 conftest$ac_exeext conftest.$ac_ext
19684 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19685 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
19687 if test $ac_cv_func_alloca_works = yes; then
19689 cat >>confdefs.h <<\_ACEOF
19690 #define HAVE_ALLOCA 1
19694 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19695 # that cause trouble. Some versions do not even contain alloca or
19696 # contain a buggy version. If you still want to use their alloca,
19697 # use ar to extract alloca.o from them instead of compiling alloca.c.
19699 ALLOCA=alloca.$ac_objext
19701 cat >>confdefs.h <<\_ACEOF
19706 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19707 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
19708 if test "${ac_cv_os_cray+set}" = set; then
19709 echo $ECHO_N "(cached) $ECHO_C" >&6
19711 cat >conftest.$ac_ext <<_ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h. */
19717 #if defined(CRAY) && ! defined(CRAY2)
19724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19725 $EGREP "webecray" >/dev/null 2>&1; then
19733 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19734 echo "${ECHO_T}$ac_cv_os_cray" >&6
19735 if test $ac_cv_os_cray = yes; then
19736 for ac_func in _getb67 GETB67 getb67; do
19737 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19738 echo "$as_me:$LINENO: checking for $ac_func" >&5
19739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19740 if eval "test \"\${$as_ac_var+set}\" = set"; then
19741 echo $ECHO_N "(cached) $ECHO_C" >&6
19743 cat >conftest.$ac_ext <<_ACEOF
19746 cat confdefs.h >>conftest.$ac_ext
19747 cat >>conftest.$ac_ext <<_ACEOF
19748 /* end confdefs.h. */
19749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19751 #define $ac_func innocuous_$ac_func
19753 /* System header to define __stub macros and hopefully few prototypes,
19754 which can conflict with char $ac_func (); below.
19755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19756 <limits.h> exists even on freestanding compilers. */
19759 # include <limits.h>
19761 # include <assert.h>
19766 /* Override any gcc2 internal prototype to avoid an error. */
19771 /* We use char because int might match the return type of a gcc2
19772 builtin and then its argument prototype would still apply. */
19774 /* The GNU C library defines this for functions which it implements
19775 to always fail with ENOSYS. Some functions are actually named
19776 something starting with __ and the normal name is an alias. */
19777 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19780 char (*f) () = $ac_func;
19789 return f != $ac_func;
19794 rm -f conftest.$ac_objext conftest$ac_exeext
19795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19796 (eval $ac_link) 2>conftest.er1
19798 grep -v '^ *+' conftest.er1 >conftest.err
19800 cat conftest.err >&5
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); } &&
19803 { ac_try='test -z "$ac_c_werror_flag"
19804 || test ! -s conftest.err'
19805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19806 (eval $ac_try) 2>&5
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); }; } &&
19810 { ac_try='test -s conftest$ac_exeext'
19811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19812 (eval $ac_try) 2>&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; }; then
19816 eval "$as_ac_var=yes"
19818 echo "$as_me: failed program was:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19821 eval "$as_ac_var=no"
19823 rm -f conftest.err conftest.$ac_objext \
19824 conftest$ac_exeext conftest.$ac_ext
19826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19827 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19828 if test `eval echo '${'$as_ac_var'}'` = yes; then
19830 cat >>confdefs.h <<_ACEOF
19831 #define CRAY_STACKSEG_END $ac_func
19840 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19841 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
19842 if test "${ac_cv_c_stack_direction+set}" = set; then
19843 echo $ECHO_N "(cached) $ECHO_C" >&6
19845 if test "$cross_compiling" = yes; then
19846 ac_cv_c_stack_direction=0
19848 cat >conftest.$ac_ext <<_ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19855 find_stack_direction ()
19857 static char *addr = 0;
19862 return find_stack_direction ();
19865 return (&dummy > addr) ? 1 : -1;
19871 exit (find_stack_direction () < 0);
19874 rm -f conftest$ac_exeext
19875 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19876 (eval $ac_link) 2>&5
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19881 (eval $ac_try) 2>&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); }; }; then
19885 ac_cv_c_stack_direction=1
19887 echo "$as_me: program exited with status $ac_status" >&5
19888 echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.$ac_ext >&5
19891 ( exit $ac_status )
19892 ac_cv_c_stack_direction=-1
19894 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19897 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19898 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
19900 cat >>confdefs.h <<_ACEOF
19901 #define STACK_DIRECTION $ac_cv_c_stack_direction
19907 # getmntent is in -lsun on Irix 4, -lseq on Dynix/PTX, -lgen on Unixware.
19908 echo "$as_me:$LINENO: checking for getmntent in -lsun" >&5
19909 echo $ECHO_N "checking for getmntent in -lsun... $ECHO_C" >&6
19910 if test "${ac_cv_lib_sun_getmntent+set}" = set; then
19911 echo $ECHO_N "(cached) $ECHO_C" >&6
19913 ac_check_lib_save_LIBS=$LIBS
19915 cat >conftest.$ac_ext <<_ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h. */
19922 /* Override any gcc2 internal prototype to avoid an error. */
19926 /* We use char because int might match the return type of a gcc2
19927 builtin and then its argument prototype would still apply. */
19937 rm -f conftest.$ac_objext conftest$ac_exeext
19938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19939 (eval $ac_link) 2>conftest.er1
19941 grep -v '^ *+' conftest.er1 >conftest.err
19943 cat conftest.err >&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } &&
19946 { ac_try='test -z "$ac_c_werror_flag"
19947 || test ! -s conftest.err'
19948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19949 (eval $ac_try) 2>&5
19951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19952 (exit $ac_status); }; } &&
19953 { ac_try='test -s conftest$ac_exeext'
19954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19955 (eval $ac_try) 2>&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); }; }; then
19959 ac_cv_lib_sun_getmntent=yes
19961 echo "$as_me: failed program was:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19964 ac_cv_lib_sun_getmntent=no
19966 rm -f conftest.err conftest.$ac_objext \
19967 conftest$ac_exeext conftest.$ac_ext
19968 LIBS=$ac_check_lib_save_LIBS
19970 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getmntent" >&5
19971 echo "${ECHO_T}$ac_cv_lib_sun_getmntent" >&6
19972 if test $ac_cv_lib_sun_getmntent = yes; then
19975 echo "$as_me:$LINENO: checking for getmntent in -lseq" >&5
19976 echo $ECHO_N "checking for getmntent in -lseq... $ECHO_C" >&6
19977 if test "${ac_cv_lib_seq_getmntent+set}" = set; then
19978 echo $ECHO_N "(cached) $ECHO_C" >&6
19980 ac_check_lib_save_LIBS=$LIBS
19982 cat >conftest.$ac_ext <<_ACEOF
19985 cat confdefs.h >>conftest.$ac_ext
19986 cat >>conftest.$ac_ext <<_ACEOF
19987 /* end confdefs.h. */
19989 /* Override any gcc2 internal prototype to avoid an error. */
19993 /* We use char because int might match the return type of a gcc2
19994 builtin and then its argument prototype would still apply. */
20004 rm -f conftest.$ac_objext conftest$ac_exeext
20005 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20006 (eval $ac_link) 2>conftest.er1
20008 grep -v '^ *+' conftest.er1 >conftest.err
20010 cat conftest.err >&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } &&
20013 { ac_try='test -z "$ac_c_werror_flag"
20014 || test ! -s conftest.err'
20015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; } &&
20020 { ac_try='test -s conftest$ac_exeext'
20021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20022 (eval $ac_try) 2>&5
20024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); }; }; then
20026 ac_cv_lib_seq_getmntent=yes
20028 echo "$as_me: failed program was:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20031 ac_cv_lib_seq_getmntent=no
20033 rm -f conftest.err conftest.$ac_objext \
20034 conftest$ac_exeext conftest.$ac_ext
20035 LIBS=$ac_check_lib_save_LIBS
20037 echo "$as_me:$LINENO: result: $ac_cv_lib_seq_getmntent" >&5
20038 echo "${ECHO_T}$ac_cv_lib_seq_getmntent" >&6
20039 if test $ac_cv_lib_seq_getmntent = yes; then
20042 echo "$as_me:$LINENO: checking for getmntent in -lgen" >&5
20043 echo $ECHO_N "checking for getmntent in -lgen... $ECHO_C" >&6
20044 if test "${ac_cv_lib_gen_getmntent+set}" = set; then
20045 echo $ECHO_N "(cached) $ECHO_C" >&6
20047 ac_check_lib_save_LIBS=$LIBS
20049 cat >conftest.$ac_ext <<_ACEOF
20052 cat confdefs.h >>conftest.$ac_ext
20053 cat >>conftest.$ac_ext <<_ACEOF
20054 /* end confdefs.h. */
20056 /* Override any gcc2 internal prototype to avoid an error. */
20060 /* We use char because int might match the return type of a gcc2
20061 builtin and then its argument prototype would still apply. */
20071 rm -f conftest.$ac_objext conftest$ac_exeext
20072 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20073 (eval $ac_link) 2>conftest.er1
20075 grep -v '^ *+' conftest.er1 >conftest.err
20077 cat conftest.err >&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); } &&
20080 { ac_try='test -z "$ac_c_werror_flag"
20081 || test ! -s conftest.err'
20082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20083 (eval $ac_try) 2>&5
20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); }; } &&
20087 { ac_try='test -s conftest$ac_exeext'
20088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20089 (eval $ac_try) 2>&5
20091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); }; }; then
20093 ac_cv_lib_gen_getmntent=yes
20095 echo "$as_me: failed program was:" >&5
20096 sed 's/^/| /' conftest.$ac_ext >&5
20098 ac_cv_lib_gen_getmntent=no
20100 rm -f conftest.err conftest.$ac_objext \
20101 conftest$ac_exeext conftest.$ac_ext
20102 LIBS=$ac_check_lib_save_LIBS
20104 echo "$as_me:$LINENO: result: $ac_cv_lib_gen_getmntent" >&5
20105 echo "${ECHO_T}$ac_cv_lib_gen_getmntent" >&6
20106 if test $ac_cv_lib_gen_getmntent = yes; then
20115 for ac_func in getmntent
20117 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20118 echo "$as_me:$LINENO: checking for $ac_func" >&5
20119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20120 if eval "test \"\${$as_ac_var+set}\" = set"; then
20121 echo $ECHO_N "(cached) $ECHO_C" >&6
20123 cat >conftest.$ac_ext <<_ACEOF
20126 cat confdefs.h >>conftest.$ac_ext
20127 cat >>conftest.$ac_ext <<_ACEOF
20128 /* end confdefs.h. */
20129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20131 #define $ac_func innocuous_$ac_func
20133 /* System header to define __stub macros and hopefully few prototypes,
20134 which can conflict with char $ac_func (); below.
20135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20136 <limits.h> exists even on freestanding compilers. */
20139 # include <limits.h>
20141 # include <assert.h>
20146 /* Override any gcc2 internal prototype to avoid an error. */
20151 /* We use char because int might match the return type of a gcc2
20152 builtin and then its argument prototype would still apply. */
20154 /* The GNU C library defines this for functions which it implements
20155 to always fail with ENOSYS. Some functions are actually named
20156 something starting with __ and the normal name is an alias. */
20157 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20160 char (*f) () = $ac_func;
20169 return f != $ac_func;
20174 rm -f conftest.$ac_objext conftest$ac_exeext
20175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20176 (eval $ac_link) 2>conftest.er1
20178 grep -v '^ *+' conftest.er1 >conftest.err
20180 cat conftest.err >&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); } &&
20183 { ac_try='test -z "$ac_c_werror_flag"
20184 || test ! -s conftest.err'
20185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20186 (eval $ac_try) 2>&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); }; } &&
20190 { ac_try='test -s conftest$ac_exeext'
20191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20192 (eval $ac_try) 2>&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; }; then
20196 eval "$as_ac_var=yes"
20198 echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20201 eval "$as_ac_var=no"
20203 rm -f conftest.err conftest.$ac_objext \
20204 conftest$ac_exeext conftest.$ac_ext
20206 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20207 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20208 if test `eval echo '${'$as_ac_var'}'` = yes; then
20209 cat >>confdefs.h <<_ACEOF
20210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20217 echo "$as_me:$LINENO: checking whether closedir returns void" >&5
20218 echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6
20219 if test "${ac_cv_func_closedir_void+set}" = set; then
20220 echo $ECHO_N "(cached) $ECHO_C" >&6
20222 if test "$cross_compiling" = yes; then
20223 ac_cv_func_closedir_void=yes
20225 cat >conftest.$ac_ext <<_ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h. */
20231 $ac_includes_default
20232 #include <$ac_header_dirent>
20233 #ifndef __cplusplus
20240 exit (closedir (opendir (".")) != 0);
20245 rm -f conftest$ac_exeext
20246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20247 (eval $ac_link) 2>&5
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20252 (eval $ac_try) 2>&5
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); }; }; then
20256 ac_cv_func_closedir_void=no
20258 echo "$as_me: program exited with status $ac_status" >&5
20259 echo "$as_me: failed program was:" >&5
20260 sed 's/^/| /' conftest.$ac_ext >&5
20262 ( exit $ac_status )
20263 ac_cv_func_closedir_void=yes
20265 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20268 echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
20269 echo "${ECHO_T}$ac_cv_func_closedir_void" >&6
20270 if test $ac_cv_func_closedir_void = yes; then
20272 cat >>confdefs.h <<\_ACEOF
20273 #define CLOSEDIR_VOID 1
20278 echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
20279 echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6
20280 if test "${ac_cv_func_setpgrp_void+set}" = set; then
20281 echo $ECHO_N "(cached) $ECHO_C" >&6
20283 if test "$cross_compiling" = yes; then
20284 { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
20285 echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
20286 { (exit 1); exit 1; }; }
20288 cat >conftest.$ac_ext <<_ACEOF
20291 cat confdefs.h >>conftest.$ac_ext
20292 cat >>conftest.$ac_ext <<_ACEOF
20293 /* end confdefs.h. */
20295 # include <unistd.h>
20301 /* If this system has a BSD-style setpgrp which takes arguments,
20302 setpgrp(1, 1) will fail with ESRCH and return -1, in that case
20303 exit successfully. */
20304 exit (setpgrp (1,1) == -1 ? 0 : 1);
20309 rm -f conftest$ac_exeext
20310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20311 (eval $ac_link) 2>&5
20313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20314 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20316 (eval $ac_try) 2>&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; }; then
20320 ac_cv_func_setpgrp_void=no
20322 echo "$as_me: program exited with status $ac_status" >&5
20323 echo "$as_me: failed program was:" >&5
20324 sed 's/^/| /' conftest.$ac_ext >&5
20326 ( exit $ac_status )
20327 ac_cv_func_setpgrp_void=yes
20329 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20332 echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
20333 echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6
20334 if test $ac_cv_func_setpgrp_void = yes; then
20336 cat >>confdefs.h <<\_ACEOF
20337 #define SETPGRP_VOID 1
20341 # AC_FUNC_FNMATCH dnl use local version
20344 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
20345 echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
20346 if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
20347 echo $ECHO_N "(cached) $ECHO_C" >&6
20349 ac_check_lib_save_LIBS=$LIBS
20350 LIBS="-lxpg4 $LIBS"
20351 cat >conftest.$ac_ext <<_ACEOF
20354 cat confdefs.h >>conftest.$ac_ext
20355 cat >>conftest.$ac_ext <<_ACEOF
20356 /* end confdefs.h. */
20358 /* Override any gcc2 internal prototype to avoid an error. */
20362 /* We use char because int might match the return type of a gcc2
20363 builtin and then its argument prototype would still apply. */
20373 rm -f conftest.$ac_objext conftest$ac_exeext
20374 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20375 (eval $ac_link) 2>conftest.er1
20377 grep -v '^ *+' conftest.er1 >conftest.err
20379 cat conftest.err >&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } &&
20382 { ac_try='test -z "$ac_c_werror_flag"
20383 || test ! -s conftest.err'
20384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385 (eval $ac_try) 2>&5
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }; } &&
20389 { ac_try='test -s conftest$ac_exeext'
20390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20391 (eval $ac_try) 2>&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; }; then
20395 ac_cv_lib_xpg4_setlocale=yes
20397 echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.$ac_ext >&5
20400 ac_cv_lib_xpg4_setlocale=no
20402 rm -f conftest.err conftest.$ac_objext \
20403 conftest$ac_exeext conftest.$ac_ext
20404 LIBS=$ac_check_lib_save_LIBS
20406 echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
20407 echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
20408 if test $ac_cv_lib_xpg4_setlocale = yes; then
20409 LIBS="$LIBS -lxpg4"
20415 echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
20416 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6
20417 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
20418 echo $ECHO_N "(cached) $ECHO_C" >&6
20420 ac_check_lib_save_LIBS=$LIBS
20422 cat >conftest.$ac_ext <<_ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h. */
20429 /* Override any gcc2 internal prototype to avoid an error. */
20433 /* We use char because int might match the return type of a gcc2
20434 builtin and then its argument prototype would still apply. */
20444 rm -f conftest.$ac_objext conftest$ac_exeext
20445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20446 (eval $ac_link) 2>conftest.er1
20448 grep -v '^ *+' conftest.er1 >conftest.err
20450 cat conftest.err >&5
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); } &&
20453 { ac_try='test -z "$ac_c_werror_flag"
20454 || test ! -s conftest.err'
20455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20456 (eval $ac_try) 2>&5
20458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20459 (exit $ac_status); }; } &&
20460 { ac_try='test -s conftest$ac_exeext'
20461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20462 (eval $ac_try) 2>&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); }; }; then
20466 ac_cv_lib_sun_getpwnam=yes
20468 echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20471 ac_cv_lib_sun_getpwnam=no
20473 rm -f conftest.err conftest.$ac_objext \
20474 conftest$ac_exeext conftest.$ac_ext
20475 LIBS=$ac_check_lib_save_LIBS
20477 echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
20478 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6
20479 if test $ac_cv_lib_sun_getpwnam = yes; then
20480 cat >>confdefs.h <<_ACEOF
20481 #define HAVE_LIBSUN 1
20490 for ac_header in zlib.h
20492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20494 echo "$as_me:$LINENO: checking for $ac_header" >&5
20495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20497 echo $ECHO_N "(cached) $ECHO_C" >&6
20499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20502 # Is the header compilable?
20503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20505 cat >conftest.$ac_ext <<_ACEOF
20508 cat confdefs.h >>conftest.$ac_ext
20509 cat >>conftest.$ac_ext <<_ACEOF
20510 /* end confdefs.h. */
20511 $ac_includes_default
20512 #include <$ac_header>
20514 rm -f conftest.$ac_objext
20515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20516 (eval $ac_compile) 2>conftest.er1
20518 grep -v '^ *+' conftest.er1 >conftest.err
20520 cat conftest.err >&5
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); } &&
20523 { ac_try='test -z "$ac_c_werror_flag"
20524 || test ! -s conftest.err'
20525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20526 (eval $ac_try) 2>&5
20528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); }; } &&
20530 { ac_try='test -s conftest.$ac_objext'
20531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20532 (eval $ac_try) 2>&5
20534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20535 (exit $ac_status); }; }; then
20536 ac_header_compiler=yes
20538 echo "$as_me: failed program was:" >&5
20539 sed 's/^/| /' conftest.$ac_ext >&5
20541 ac_header_compiler=no
20543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20545 echo "${ECHO_T}$ac_header_compiler" >&6
20547 # Is the header present?
20548 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20550 cat >conftest.$ac_ext <<_ACEOF
20553 cat confdefs.h >>conftest.$ac_ext
20554 cat >>conftest.$ac_ext <<_ACEOF
20555 /* end confdefs.h. */
20556 #include <$ac_header>
20558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20561 grep -v '^ *+' conftest.er1 >conftest.err
20563 cat conftest.err >&5
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); } >/dev/null; then
20566 if test -s conftest.err; then
20567 ac_cpp_err=$ac_c_preproc_warn_flag
20568 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20575 if test -z "$ac_cpp_err"; then
20576 ac_header_preproc=yes
20578 echo "$as_me: failed program was:" >&5
20579 sed 's/^/| /' conftest.$ac_ext >&5
20581 ac_header_preproc=no
20583 rm -f conftest.err conftest.$ac_ext
20584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20585 echo "${ECHO_T}$ac_header_preproc" >&6
20587 # So? What about this header?
20588 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20590 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20594 ac_header_preproc=yes
20597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20600 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20601 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20603 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20604 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20607 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20611 ## ------------------------------------------ ##
20612 ## Report this to the AC_PACKAGE_NAME lists. ##
20613 ## ------------------------------------------ ##
20616 sed "s/^/$as_me: WARNING: /" >&2
20619 echo "$as_me:$LINENO: checking for $ac_header" >&5
20620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20622 echo $ECHO_N "(cached) $ECHO_C" >&6
20624 eval "$as_ac_Header=\$ac_header_preproc"
20626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20631 cat >>confdefs.h <<_ACEOF
20632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20639 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
20640 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
20641 if test "${ac_cv_lib_z_deflate+set}" = set; then
20642 echo $ECHO_N "(cached) $ECHO_C" >&6
20644 ac_check_lib_save_LIBS=$LIBS
20646 cat >conftest.$ac_ext <<_ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20653 /* Override any gcc2 internal prototype to avoid an error. */
20657 /* We use char because int might match the return type of a gcc2
20658 builtin and then its argument prototype would still apply. */
20668 rm -f conftest.$ac_objext conftest$ac_exeext
20669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20670 (eval $ac_link) 2>conftest.er1
20672 grep -v '^ *+' conftest.er1 >conftest.err
20674 cat conftest.err >&5
20675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20676 (exit $ac_status); } &&
20677 { ac_try='test -z "$ac_c_werror_flag"
20678 || test ! -s conftest.err'
20679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20680 (eval $ac_try) 2>&5
20682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20683 (exit $ac_status); }; } &&
20684 { ac_try='test -s conftest$ac_exeext'
20685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20686 (eval $ac_try) 2>&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); }; }; then
20690 ac_cv_lib_z_deflate=yes
20692 echo "$as_me: failed program was:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20695 ac_cv_lib_z_deflate=no
20697 rm -f conftest.err conftest.$ac_objext \
20698 conftest$ac_exeext conftest.$ac_ext
20699 LIBS=$ac_check_lib_save_LIBS
20701 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
20702 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
20703 if test $ac_cv_lib_z_deflate = yes; then
20708 if test x$FDLIBS = x-lz; then
20709 cat >>confdefs.h <<\_ACEOF
20710 #define HAVE_LIBZ 1
20717 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20718 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20719 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20720 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20721 echo $ECHO_N "(cached) $ECHO_C" >&6
20723 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20724 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20726 # Is the header compilable?
20727 echo "$as_me:$LINENO: checking sys/acl.h usability" >&5
20728 echo $ECHO_N "checking sys/acl.h usability... $ECHO_C" >&6
20729 cat >conftest.$ac_ext <<_ACEOF
20732 cat confdefs.h >>conftest.$ac_ext
20733 cat >>conftest.$ac_ext <<_ACEOF
20734 /* end confdefs.h. */
20735 $ac_includes_default
20736 #include <sys/acl.h>
20738 rm -f conftest.$ac_objext
20739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20740 (eval $ac_compile) 2>conftest.er1
20742 grep -v '^ *+' conftest.er1 >conftest.err
20744 cat conftest.err >&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); } &&
20747 { ac_try='test -z "$ac_c_werror_flag"
20748 || test ! -s conftest.err'
20749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20750 (eval $ac_try) 2>&5
20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20753 (exit $ac_status); }; } &&
20754 { ac_try='test -s conftest.$ac_objext'
20755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20756 (eval $ac_try) 2>&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); }; }; then
20760 ac_header_compiler=yes
20762 echo "$as_me: failed program was:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20765 ac_header_compiler=no
20767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20768 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20769 echo "${ECHO_T}$ac_header_compiler" >&6
20771 # Is the header present?
20772 echo "$as_me:$LINENO: checking sys/acl.h presence" >&5
20773 echo $ECHO_N "checking sys/acl.h presence... $ECHO_C" >&6
20774 cat >conftest.$ac_ext <<_ACEOF
20777 cat confdefs.h >>conftest.$ac_ext
20778 cat >>conftest.$ac_ext <<_ACEOF
20779 /* end confdefs.h. */
20780 #include <sys/acl.h>
20782 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20785 grep -v '^ *+' conftest.er1 >conftest.err
20787 cat conftest.err >&5
20788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789 (exit $ac_status); } >/dev/null; then
20790 if test -s conftest.err; then
20791 ac_cpp_err=$ac_c_preproc_warn_flag
20792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20799 if test -z "$ac_cpp_err"; then
20800 ac_header_preproc=yes
20802 echo "$as_me: failed program was:" >&5
20803 sed 's/^/| /' conftest.$ac_ext >&5
20805 ac_header_preproc=no
20807 rm -f conftest.err conftest.$ac_ext
20808 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20809 echo "${ECHO_T}$ac_header_preproc" >&6
20811 # So? What about this header?
20812 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20814 { echo "$as_me:$LINENO: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&5
20815 echo "$as_me: WARNING: sys/acl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20816 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the compiler's result" >&5
20817 echo "$as_me: WARNING: sys/acl.h: proceeding with the compiler's result" >&2;}
20818 ac_header_preproc=yes
20821 { echo "$as_me:$LINENO: WARNING: sys/acl.h: present but cannot be compiled" >&5
20822 echo "$as_me: WARNING: sys/acl.h: present but cannot be compiled" >&2;}
20823 { echo "$as_me:$LINENO: WARNING: sys/acl.h: check for missing prerequisite headers?" >&5
20824 echo "$as_me: WARNING: sys/acl.h: check for missing prerequisite headers?" >&2;}
20825 { echo "$as_me:$LINENO: WARNING: sys/acl.h: see the Autoconf documentation" >&5
20826 echo "$as_me: WARNING: sys/acl.h: see the Autoconf documentation" >&2;}
20827 { echo "$as_me:$LINENO: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&5
20828 echo "$as_me: WARNING: sys/acl.h: section \"Present But Cannot Be Compiled\"" >&2;}
20829 { echo "$as_me:$LINENO: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&5
20830 echo "$as_me: WARNING: sys/acl.h: proceeding with the preprocessor's result" >&2;}
20831 { echo "$as_me:$LINENO: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&5
20832 echo "$as_me: WARNING: sys/acl.h: in the future, the compiler will take precedence" >&2;}
20835 ## ------------------------------------------ ##
20836 ## Report this to the AC_PACKAGE_NAME lists. ##
20837 ## ------------------------------------------ ##
20840 sed "s/^/$as_me: WARNING: /" >&2
20843 echo "$as_me:$LINENO: checking for sys/acl.h" >&5
20844 echo $ECHO_N "checking for sys/acl.h... $ECHO_C" >&6
20845 if test "${ac_cv_header_sys_acl_h+set}" = set; then
20846 echo $ECHO_N "(cached) $ECHO_C" >&6
20848 ac_cv_header_sys_acl_h=$ac_header_preproc
20850 echo "$as_me:$LINENO: result: $ac_cv_header_sys_acl_h" >&5
20851 echo "${ECHO_T}$ac_cv_header_sys_acl_h" >&6
20856 echo "$as_me:$LINENO: checking for acl_get_file" >&5
20857 echo $ECHO_N "checking for acl_get_file... $ECHO_C" >&6
20858 if test "${ac_cv_func_acl_get_file+set}" = set; then
20859 echo $ECHO_N "(cached) $ECHO_C" >&6
20861 cat >conftest.$ac_ext <<_ACEOF
20864 cat confdefs.h >>conftest.$ac_ext
20865 cat >>conftest.$ac_ext <<_ACEOF
20866 /* end confdefs.h. */
20867 /* Define acl_get_file to an innocuous variant, in case <limits.h> declares acl_get_file.
20868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20869 #define acl_get_file innocuous_acl_get_file
20871 /* System header to define __stub macros and hopefully few prototypes,
20872 which can conflict with char acl_get_file (); below.
20873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20874 <limits.h> exists even on freestanding compilers. */
20877 # include <limits.h>
20879 # include <assert.h>
20882 #undef acl_get_file
20884 /* Override any gcc2 internal prototype to avoid an error. */
20889 /* We use char because int might match the return type of a gcc2
20890 builtin and then its argument prototype would still apply. */
20891 char acl_get_file ();
20892 /* The GNU C library defines this for functions which it implements
20893 to always fail with ENOSYS. Some functions are actually named
20894 something starting with __ and the normal name is an alias. */
20895 #if defined (__stub_acl_get_file) || defined (__stub___acl_get_file)
20898 char (*f) () = acl_get_file;
20907 return f != acl_get_file;
20912 rm -f conftest.$ac_objext conftest$ac_exeext
20913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20914 (eval $ac_link) 2>conftest.er1
20916 grep -v '^ *+' conftest.er1 >conftest.err
20918 cat conftest.err >&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); } &&
20921 { ac_try='test -z "$ac_c_werror_flag"
20922 || test ! -s conftest.err'
20923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924 (eval $ac_try) 2>&5
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; } &&
20928 { ac_try='test -s conftest$ac_exeext'
20929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930 (eval $ac_try) 2>&5
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); }; }; then
20934 ac_cv_func_acl_get_file=yes
20936 echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.$ac_ext >&5
20939 ac_cv_func_acl_get_file=no
20941 rm -f conftest.err conftest.$ac_objext \
20942 conftest$ac_exeext conftest.$ac_ext
20944 echo "$as_me:$LINENO: result: $ac_cv_func_acl_get_file" >&5
20945 echo "${ECHO_T}$ac_cv_func_acl_get_file" >&6
20946 if test $ac_cv_func_acl_get_file = yes; then
20949 echo "$as_me:$LINENO: checking for acl_get_file in -lacl" >&5
20950 echo $ECHO_N "checking for acl_get_file in -lacl... $ECHO_C" >&6
20951 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then
20952 echo $ECHO_N "(cached) $ECHO_C" >&6
20954 ac_check_lib_save_LIBS=$LIBS
20956 cat >conftest.$ac_ext <<_ACEOF
20959 cat confdefs.h >>conftest.$ac_ext
20960 cat >>conftest.$ac_ext <<_ACEOF
20961 /* end confdefs.h. */
20963 /* Override any gcc2 internal prototype to avoid an error. */
20967 /* We use char because int might match the return type of a gcc2
20968 builtin and then its argument prototype would still apply. */
20969 char acl_get_file ();
20978 rm -f conftest.$ac_objext conftest$ac_exeext
20979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20980 (eval $ac_link) 2>conftest.er1
20982 grep -v '^ *+' conftest.er1 >conftest.err
20984 cat conftest.err >&5
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } &&
20987 { ac_try='test -z "$ac_c_werror_flag"
20988 || test ! -s conftest.err'
20989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990 (eval $ac_try) 2>&5
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; } &&
20994 { ac_try='test -s conftest$ac_exeext'
20995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996 (eval $ac_try) 2>&5
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); }; }; then
21000 ac_cv_lib_acl_acl_get_file=yes
21002 echo "$as_me: failed program was:" >&5
21003 sed 's/^/| /' conftest.$ac_ext >&5
21005 ac_cv_lib_acl_acl_get_file=no
21007 rm -f conftest.err conftest.$ac_objext \
21008 conftest$ac_exeext conftest.$ac_ext
21009 LIBS=$ac_check_lib_save_LIBS
21011 echo "$as_me:$LINENO: result: $ac_cv_lib_acl_acl_get_file" >&5
21012 echo "${ECHO_T}$ac_cv_lib_acl_acl_get_file" >&6
21013 if test $ac_cv_lib_acl_acl_get_file = yes; then
21014 have_acl=yes; FDLIBS="-lacl $FDLIBS"
21020 if test $have_acl = yes; then
21021 cat >>confdefs.h <<\_ACEOF
21028 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
21029 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
21030 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
21031 echo $ECHO_N "(cached) $ECHO_C" >&6
21033 ac_check_lib_save_LIBS=$LIBS
21034 LIBS="-lpthread $LIBS"
21035 cat >conftest.$ac_ext <<_ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21042 /* Override any gcc2 internal prototype to avoid an error. */
21046 /* We use char because int might match the return type of a gcc2
21047 builtin and then its argument prototype would still apply. */
21048 char pthread_create ();
21057 rm -f conftest.$ac_objext conftest$ac_exeext
21058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21059 (eval $ac_link) 2>conftest.er1
21061 grep -v '^ *+' conftest.er1 >conftest.err
21063 cat conftest.err >&5
21064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21065 (exit $ac_status); } &&
21066 { ac_try='test -z "$ac_c_werror_flag"
21067 || test ! -s conftest.err'
21068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21069 (eval $ac_try) 2>&5
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); }; } &&
21073 { ac_try='test -s conftest$ac_exeext'
21074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21075 (eval $ac_try) 2>&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); }; }; then
21079 ac_cv_lib_pthread_pthread_create=yes
21081 echo "$as_me: failed program was:" >&5
21082 sed 's/^/| /' conftest.$ac_ext >&5
21084 ac_cv_lib_pthread_pthread_create=no
21086 rm -f conftest.err conftest.$ac_objext \
21087 conftest$ac_exeext conftest.$ac_ext
21088 LIBS=$ac_check_lib_save_LIBS
21090 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
21091 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
21092 if test $ac_cv_lib_pthread_pthread_create = yes; then
21093 PTHREAD_LIB="-lpthread"
21095 echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
21096 echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
21097 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
21098 echo $ECHO_N "(cached) $ECHO_C" >&6
21100 ac_check_lib_save_LIBS=$LIBS
21101 LIBS="-lpthreads $LIBS"
21102 cat >conftest.$ac_ext <<_ACEOF
21105 cat confdefs.h >>conftest.$ac_ext
21106 cat >>conftest.$ac_ext <<_ACEOF
21107 /* end confdefs.h. */
21109 /* Override any gcc2 internal prototype to avoid an error. */
21113 /* We use char because int might match the return type of a gcc2
21114 builtin and then its argument prototype would still apply. */
21115 char pthread_create ();
21124 rm -f conftest.$ac_objext conftest$ac_exeext
21125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21126 (eval $ac_link) 2>conftest.er1
21128 grep -v '^ *+' conftest.er1 >conftest.err
21130 cat conftest.err >&5
21131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21132 (exit $ac_status); } &&
21133 { ac_try='test -z "$ac_c_werror_flag"
21134 || test ! -s conftest.err'
21135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21136 (eval $ac_try) 2>&5
21138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21139 (exit $ac_status); }; } &&
21140 { ac_try='test -s conftest$ac_exeext'
21141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21142 (eval $ac_try) 2>&5
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); }; }; then
21146 ac_cv_lib_pthreads_pthread_create=yes
21148 echo "$as_me: failed program was:" >&5
21149 sed 's/^/| /' conftest.$ac_ext >&5
21151 ac_cv_lib_pthreads_pthread_create=no
21153 rm -f conftest.err conftest.$ac_objext \
21154 conftest$ac_exeext conftest.$ac_ext
21155 LIBS=$ac_check_lib_save_LIBS
21157 echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
21158 echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
21159 if test $ac_cv_lib_pthreads_pthread_create = yes; then
21160 PTHREAD_LIB="-lpthreads"
21162 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
21163 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
21164 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
21165 echo $ECHO_N "(cached) $ECHO_C" >&6
21167 ac_check_lib_save_LIBS=$LIBS
21169 cat >conftest.$ac_ext <<_ACEOF
21172 cat confdefs.h >>conftest.$ac_ext
21173 cat >>conftest.$ac_ext <<_ACEOF
21174 /* end confdefs.h. */
21176 /* Override any gcc2 internal prototype to avoid an error. */
21180 /* We use char because int might match the return type of a gcc2
21181 builtin and then its argument prototype would still apply. */
21182 char pthread_create ();
21191 rm -f conftest.$ac_objext conftest$ac_exeext
21192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21193 (eval $ac_link) 2>conftest.er1
21195 grep -v '^ *+' conftest.er1 >conftest.err
21197 cat conftest.err >&5
21198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21199 (exit $ac_status); } &&
21200 { ac_try='test -z "$ac_c_werror_flag"
21201 || test ! -s conftest.err'
21202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203 (eval $ac_try) 2>&5
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); }; } &&
21207 { ac_try='test -s conftest$ac_exeext'
21208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21209 (eval $ac_try) 2>&5
21211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21212 (exit $ac_status); }; }; then
21213 ac_cv_lib_c_r_pthread_create=yes
21215 echo "$as_me: failed program was:" >&5
21216 sed 's/^/| /' conftest.$ac_ext >&5
21218 ac_cv_lib_c_r_pthread_create=no
21220 rm -f conftest.err conftest.$ac_objext \
21221 conftest$ac_exeext conftest.$ac_ext
21222 LIBS=$ac_check_lib_save_LIBS
21224 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
21225 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
21226 if test $ac_cv_lib_c_r_pthread_create = yes; then
21227 PTHREAD_LIB="-lc_r"
21229 echo "$as_me:$LINENO: checking for pthread_create" >&5
21230 echo $ECHO_N "checking for pthread_create... $ECHO_C" >&6
21231 if test "${ac_cv_func_pthread_create+set}" = set; then
21232 echo $ECHO_N "(cached) $ECHO_C" >&6
21234 cat >conftest.$ac_ext <<_ACEOF
21237 cat confdefs.h >>conftest.$ac_ext
21238 cat >>conftest.$ac_ext <<_ACEOF
21239 /* end confdefs.h. */
21240 /* Define pthread_create to an innocuous variant, in case <limits.h> declares pthread_create.
21241 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21242 #define pthread_create innocuous_pthread_create
21244 /* System header to define __stub macros and hopefully few prototypes,
21245 which can conflict with char pthread_create (); below.
21246 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21247 <limits.h> exists even on freestanding compilers. */
21250 # include <limits.h>
21252 # include <assert.h>
21255 #undef pthread_create
21257 /* Override any gcc2 internal prototype to avoid an error. */
21262 /* We use char because int might match the return type of a gcc2
21263 builtin and then its argument prototype would still apply. */
21264 char pthread_create ();
21265 /* The GNU C library defines this for functions which it implements
21266 to always fail with ENOSYS. Some functions are actually named
21267 something starting with __ and the normal name is an alias. */
21268 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
21271 char (*f) () = pthread_create;
21280 return f != pthread_create;
21285 rm -f conftest.$ac_objext conftest$ac_exeext
21286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21287 (eval $ac_link) 2>conftest.er1
21289 grep -v '^ *+' conftest.er1 >conftest.err
21291 cat conftest.err >&5
21292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); } &&
21294 { ac_try='test -z "$ac_c_werror_flag"
21295 || test ! -s conftest.err'
21296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297 (eval $ac_try) 2>&5
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); }; } &&
21301 { ac_try='test -s conftest$ac_exeext'
21302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21303 (eval $ac_try) 2>&5
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); }; }; then
21307 ac_cv_func_pthread_create=yes
21309 echo "$as_me: failed program was:" >&5
21310 sed 's/^/| /' conftest.$ac_ext >&5
21312 ac_cv_func_pthread_create=no
21314 rm -f conftest.err conftest.$ac_objext \
21315 conftest$ac_exeext conftest.$ac_ext
21317 echo "$as_me:$LINENO: result: $ac_cv_func_pthread_create" >&5
21318 echo "${ECHO_T}$ac_cv_func_pthread_create" >&6
21331 cat >>confdefs.h <<\_ACEOF
21337 CFLAGS=${CFLAGS--O}
21338 LDFLAGS=${LDFLAGS--O}
21339 DB_LIBS="${SQL_LFLAGS}"
21341 CPPFLAGS="$CPPFLAGS"
21367 # Finally we set appropriate distribution specific
21368 # variables and defaults
21370 # PFILES are platform specific files
21371 PFILES="platforms/Makefile"
21375 hostname=`uname -n | cut -d '.' -f 1`
21376 case "$DISTNAME" in
21379 PSCMD="ps -e -o pid,comm"
21380 PFILES="${PFILES} \
21381 platforms/aix/Makefile"
21382 TAPEDRIVE="/dev/rmt0.1"
21386 PTHREAD_LIB="-lpthread -lexc"
21387 if test "${CC}" = "gcc" ; then
21394 TAPEDRIVE="/dev/nrmt0"
21397 DISTVER=`uname -a |awk '{print $3}'`
21398 TAPEDRIVE="/dev/nrmt0"
21399 PTHREAD_LIB="-pthread"
21400 CFLAGS="${CFLAGS} -pthread"
21401 PSCMD="ps -ax -o pid,command"
21404 PFILES="${PFILES} \
21405 platforms/bsdi/Makefile \
21406 platforms/bsdi/bacula-fd \
21407 platforms/bsdi/bacula-sd \
21408 platforms/bsdi/bacula-dir"
21409 largefile_support="yes"
21412 DISTVER=`uname -a |awk '{print $3}'`
21413 TAPEDRIVE="/dev/nrst0"
21415 WCFLAGS="-mwindows"
21416 WLDFLAGS="-mwindows"
21420 TAPEDRIVE="/dev/nst0"
21421 PSCMD="ps -e -o pid,command"
21423 PFILES="${PFILES} \
21424 platforms/darwin/Makefile"
21427 DISTVER=`cat /etc/debian_version`
21428 TAPEDRIVE="/dev/nrst0"
21429 PSCMD="ps -e -o pid,command"
21432 DISTVER=`uname -a |awk '{print $3}'`
21433 VER=`echo $DISTVER | cut -c 1`
21434 if test x$VER = x4 ; then
21435 PTHREAD_LIB="-pthread"
21436 CFLAGS="${CFLAGS} -pthread"
21440 TAPEDRIVE="/dev/nrsa0"
21441 PSCMD="ps -ax -o pid,command"
21442 PFILES="${PFILES} \
21443 platforms/freebsd/Makefile \
21444 platforms/freebsd/bacula-fd \
21445 platforms/freebsd/bacula-sd \
21446 platforms/freebsd/bacula-dir"
21447 largefile_support="yes"
21450 PSCMD="UNIX95=1 ps -e -o pid,comm"
21451 CFLAGS="$(CFLAGS) -D_XOPEN_SOURCE_EXTENDED=1"
21453 TAPEDRIVE="/dev/rmt/0hnb"
21454 PTHREAD_LIB="-lpthread"
21455 cat >>confdefs.h <<\_ACEOF
21456 #define _INCLUDE_LONGLONG 1
21462 TAPEDRIVE="/dev/rmt/0cbn"
21463 PSCMD="ps -e -o pid,comm"
21464 PFILES="${PFILES} \
21465 platforms/irix/Makefile \
21466 platforms/irix/bacula-fd \
21467 platforms/irix/bacula-sd \
21468 platforms/irix/bacula-dir"
21471 DISTVER=`uname -a |awk '{print $3}'`
21474 TAPEDRIVE="/dev/nrst0"
21475 PSCMD="ps -ax -o pid,command"
21476 PTHREAD_LIB="-pthread"
21477 CFLAGS="${CFLAGS} -pthread"
21480 DISTVER=`uname -a |awk '{print $3}'`
21483 TAPEDRIVE="/dev/nrst0"
21484 PSCMD="ps -ax -o pid,command"
21485 PTHREAD_LIB="-pthread"
21486 CFLAGS="${CFLAGS} -pthread"
21487 PFILES="${PFILES} \
21488 platforms/openbsd/Makefile \
21489 platforms/openbsd/bacula-fd \
21490 platforms/openbsd/bacula-sd \
21491 platforms/openbsd/bacula-dir"
21494 if test -f /etc/whitebox-release ; then
21495 f=/etc/whitebox-release
21497 f=/etc/redhat-release
21499 if test `cat $f | grep release |\
21500 cut -f 3 -d ' '`x = "Enterprise"x ; then
21501 DISTVER="Enterprise "`cat $f | grep release |\
21504 DISTVER=`cat /etc/redhat-release | grep release |\
21507 TAPEDRIVE="/dev/nst0"
21508 PSCMD="ps -e -o pid,command"
21509 PFILES="${PFILES} \
21510 platforms/redhat/Makefile \
21511 platforms/redhat/bacula-fd \
21512 platforms/redhat/bacula-sd \
21513 platforms/redhat/bacula-dir \
21514 platforms/redhat/bacula.spec \
21516 hostname=`hostname -s`
21519 DISTVER=`cat /etc/mandrake-release | grep release |\
21521 TAPEDRIVE="/dev/nst0"
21522 PSCMD="ps -e -o pid,command"
21523 PFILES="${PFILES} \
21524 platforms/mandrake/Makefile \
21525 platforms/mandrake/bacula-fd \
21526 platforms/mandrake/bacula-sd \
21527 platforms/mandrake/bacula-dir \
21528 platforms/mandrake/bacula.spec \
21532 DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
21533 TAPEDRIVE="/dev/nst0"
21534 PSCMD="ps -e -o pid,command"
21535 PFILES="${PFILES} \
21536 platforms/gentoo/Makefile \
21537 platforms/gentoo/bacula-init \
21538 platforms/gentoo/bacula-fd \
21539 platforms/gentoo/bacula-sd \
21540 platforms/gentoo/bacula-dir"
21543 DISTVER=`cat /etc/slackware-version`
21544 TAPEDRIVE="/dev/nst0"
21545 PSCMD="ps -e -o pid,command"
21546 PFILES="${PFILES} \
21547 platforms/slackware/Makefile \
21548 platforms/slackware/rc.bacula-fd \
21549 platforms/slackware/rc.bacula-sd \
21550 platforms/slackware/rc.bacula-dir\
21551 platforms/slackware/functions.bacula"
21555 TAPEDRIVE="/dev/rmt/0cbn"
21556 PSCMD="ps -e -o pid,comm"
21557 PFILES="${PFILES} \
21558 platforms/solaris/Makefile \
21559 platforms/solaris/bacula-fd \
21560 platforms/solaris/bacula-sd \
21561 platforms/solaris/bacula-dir"
21562 if test x$DISTVER = x5.6 ; then
21563 cat >>confdefs.h <<\_ACEOF
21564 #define HAVE_OLD_SOCKOPT 1
21568 LIBS="$LIBS -lresolv"
21571 DISTVER=`cat /etc/SuSE-release |grep VERSION|\
21573 TAPEDRIVE="/dev/nst0"
21574 PSCMD="ps -e -o pid,command"
21575 PFILES="${PFILES} \
21576 platforms/suse/Makefile \
21577 platforms/suse/bacula-fd \
21578 platforms/suse/bacula-sd \
21579 platforms/suse/bacula-dir \
21580 platforms/suse/bacula \
21581 platforms/suse/bacula.spec"
21586 TAPEDRIVE="/dev/nst0"
21587 PSCMD="ps -e -o pid,command"
21588 PFILES="${PFILES} \
21589 platforms/suse/Makefile \
21590 platforms/suse/bacula-fd \
21591 platforms/suse/bacula-sd \
21592 platforms/suse/bacula-dir"
21596 TAPEDRIVE="/dev/nst0"
21599 echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
21605 LIBS="$PTHREAD_LIB $LIBS"
21607 cat >>confdefs.h <<_ACEOF
21611 cat >>confdefs.h <<_ACEOF
21622 MCOMMON=./autoconf/Make.common
21625 if test "x${subsysdir}" = "x${sbindir}" ; then
21628 echo "You have set both --sbindir and --with-subsys-dir"
21629 echo " equal to: ${subsysdir} "
21630 echo "This is not permitted. Please reconfigure."
21632 echo "Aborting configuration ..."
21638 ac_config_files="$ac_config_files autoconf/Make.common Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/gnome-console.console_apps scripts/mtx-changer scripts/dvd-writepart scripts/dvd-freespace scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/gnome2-console/Makefile src/gnome2-console/gnome-console.conf src/wx-console/Makefile src/wx-console/wx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/filed/win32/Makefile src/cats/Makefile src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite_database src/cats/update_sqlite_tables src/cats/make_sqlite_tables src/cats/grant_sqlite_privileges src/cats/drop_sqlite_tables src/cats/drop_sqlite_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bdb_database src/cats/update_bdb_tables src/cats/make_bdb_tables src/cats/grant_bdb_privileges src/cats/drop_bdb_tables src/cats/drop_bdb_database src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/findlib/Makefile src/tools/Makefile src/win32/winbacula.nsi src/win32/baculafd/bacula-fd.conf src/win32/Makefile src/win32/console/bconsole.conf src/win32/wx-console/wx-console.conf src/win32/pebuilder/Makefile po/Makefile.in $PFILES"
21639 ac_config_commands="$ac_config_commands default"
21640 cat >confcache <<\_ACEOF
21641 # This file is a shell script that caches the results of configure
21642 # tests run on this system so they can be shared between configure
21643 # scripts and configure runs, see configure's option --config-cache.
21644 # It is not useful on other systems. If it contains results you don't
21645 # want to keep, you may remove or edit it.
21647 # config.status only pays attention to the cache file if you give it
21648 # the --recheck option to rerun configure.
21650 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21651 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21652 # following values.
21656 # The following way of writing the cache mishandles newlines in values,
21657 # but we know of no workaround that is simple, portable, and efficient.
21658 # So, don't put newlines in cache variables' values.
21659 # Ultrix sh set writes to stderr and can't be redirected directly,
21660 # and sets the high bit in the cache file unless we assign to the vars.
21663 case `(ac_space=' '; set | grep ac_space) 2>&1` in
21665 # `set' does not quote correctly, so add quotes (double-quote
21666 # substitution turns \\\\ into \\, and sed turns \\ into \).
21669 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21672 # `set' quotes correctly as required by POSIX, so do not add quotes.
21674 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
21681 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21683 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21685 if diff $cache_file confcache >/dev/null 2>&1; then :; else
21686 if test -w $cache_file; then
21687 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
21688 cat confcache >$cache_file
21690 echo "not updating unwritable cache $cache_file"
21695 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21696 # Let make expand exec_prefix.
21697 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21699 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21700 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21701 # trailing colons and then remove the whole line if VPATH becomes empty
21702 # (actually we leave an empty line to preserve line numbers).
21703 if test "x$srcdir" = x.; then
21704 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21705 s/:*\$(srcdir):*/:/;
21706 s/:*\${srcdir}:*/:/;
21708 s/^\([^=]*=[ ]*\):*/\1/;
21714 DEFS=-DHAVE_CONFIG_H
21718 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21719 # 1. Remove the extension, and $U if already installed.
21720 ac_i=`echo "$ac_i" |
21721 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
21723 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
21724 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
21726 LIBOBJS=$ac_libobjs
21728 LTLIBOBJS=$ac_ltlibobjs
21732 : ${CONFIG_STATUS=./config.status}
21733 ac_clean_files_save=$ac_clean_files
21734 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21735 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21736 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21737 cat >$CONFIG_STATUS <<_ACEOF
21739 # Generated by $as_me.
21740 # Run this file to recreate the current configuration.
21741 # Compiler output produced by configure, useful for debugging
21742 # configure, is in config.log if it exists.
21745 ac_cs_recheck=false
21747 SHELL=\${CONFIG_SHELL-$SHELL}
21750 cat >>$CONFIG_STATUS <<\_ACEOF
21751 ## --------------------- ##
21752 ## M4sh Initialization. ##
21753 ## --------------------- ##
21755 # Be Bourne compatible
21756 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21759 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21760 # is contrary to our usage. Disable this feature.
21761 alias -g '${1+"$@"}'='"$@"'
21762 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21765 DUALCASE=1; export DUALCASE # for MKS sh
21767 # Support unset when possible.
21768 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21775 # Work around bugs in pre-3.0 UWIN ksh.
21776 $as_unset ENV MAIL MAILPATH
21783 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21784 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21785 LC_TELEPHONE LC_TIME
21787 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21788 eval $as_var=C; export $as_var
21794 # Required to use basename.
21795 if expr a : '\(a\)' >/dev/null 2>&1; then
21801 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21802 as_basename=basename
21808 # Name of the executable.
21809 as_me=`$as_basename "$0" ||
21810 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21811 X"$0" : 'X\(//\)$' \| \
21812 X"$0" : 'X\(/\)$' \| \
21813 . : '\(.\)' 2>/dev/null ||
21815 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21816 /^X\/\(\/\/\)$/{ s//\1/; q; }
21817 /^X\/\(\/\).*/{ s//\1/; q; }
21821 # PATH needs CR, and LINENO needs CR and PATH.
21822 # Avoid depending upon Character Ranges.
21823 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21824 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21825 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21826 as_cr_digits='0123456789'
21827 as_cr_alnum=$as_cr_Letters$as_cr_digits
21829 # The user is always right.
21830 if test "${PATH_SEPARATOR+set}" != set; then
21831 echo "#! /bin/sh" >conf$$.sh
21832 echo "exit 0" >>conf$$.sh
21834 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21843 as_lineno_1=$LINENO
21844 as_lineno_2=$LINENO
21845 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21846 test "x$as_lineno_1" != "x$as_lineno_2" &&
21847 test "x$as_lineno_3" = "x$as_lineno_2" || {
21848 # Find who we are. Look in the path if we contain no path at all
21851 *[\\/]* ) as_myself=$0 ;;
21852 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21853 for as_dir in $PATH
21856 test -z "$as_dir" && as_dir=.
21857 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21862 # We did not find ourselves, most probably we were run as `sh COMMAND'
21863 # in which case we are not to be found in the path.
21864 if test "x$as_myself" = x; then
21867 if test ! -f "$as_myself"; then
21868 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
21869 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
21870 { (exit 1); exit 1; }; }
21872 case $CONFIG_SHELL in
21874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21875 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21878 test -z "$as_dir" && as_dir=.
21879 for as_base in sh bash ksh sh5; do
21882 if ("$as_dir/$as_base" -c '
21883 as_lineno_1=$LINENO
21884 as_lineno_2=$LINENO
21885 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21886 test "x$as_lineno_1" != "x$as_lineno_2" &&
21887 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21888 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21889 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21890 CONFIG_SHELL=$as_dir/$as_base
21891 export CONFIG_SHELL
21892 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21900 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21901 # uniformly replaced by the line number. The first 'sed' inserts a
21902 # line-number line before each line; the second 'sed' does the real
21903 # work. The second script uses 'N' to pair each line-number line
21904 # with the numbered line, and appends trailing '-' during
21905 # substitution so that $LINENO is not a special case at line end.
21906 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21907 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21908 sed '=' <$as_myself |
21913 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21916 s,^['$as_cr_digits']*\n,,
21917 ' >$as_me.lineno &&
21918 chmod +x $as_me.lineno ||
21919 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
21920 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
21921 { (exit 1); exit 1; }; }
21923 # Don't try to exec as it changes $[0], causing all sort of problems
21924 # (the dirname of $[0] is not the place where we might find the
21925 # original and so on. Autoconf is especially sensible to this).
21927 # Exit status is that of the last command.
21932 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21933 *c*,-n*) ECHO_N= ECHO_C='
21935 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21936 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21939 if expr a : '\(a\)' >/dev/null 2>&1; then
21945 rm -f conf$$ conf$$.exe conf$$.file
21947 if ln -s conf$$.file conf$$ 2>/dev/null; then
21948 # We could just check for DJGPP; but this test a) works b) is more generic
21949 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21950 if test -f conf$$.exe; then
21951 # Don't use ln at all; we don't have any links
21956 elif ln conf$$.file conf$$ 2>/dev/null; then
21961 rm -f conf$$ conf$$.exe conf$$.file
21963 if mkdir -p . 2>/dev/null; then
21966 test -d ./-p && rmdir ./-p
21970 as_executable_p="test -f"
21972 # Sed expression to map a string onto a valid CPP name.
21973 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21975 # Sed expression to map a string onto a valid variable name.
21976 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21980 # We need space, tab and new line, in precisely that order.
21990 # Open the log real soon, to keep \$[0] and so on meaningful, and to
21991 # report actual input values of CONFIG_FILES etc. instead of their
21992 # values after options handling. Logging --version etc. is OK.
21996 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21997 ## Running $as_me. ##
22002 This file was extended by $as_me, which was
22003 generated by GNU Autoconf 2.59. Invocation command line was
22005 CONFIG_FILES = $CONFIG_FILES
22006 CONFIG_HEADERS = $CONFIG_HEADERS
22007 CONFIG_LINKS = $CONFIG_LINKS
22008 CONFIG_COMMANDS = $CONFIG_COMMANDS
22012 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22016 # Files that config.status was made for.
22017 if test -n "$ac_config_files"; then
22018 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22021 if test -n "$ac_config_headers"; then
22022 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22025 if test -n "$ac_config_links"; then
22026 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22029 if test -n "$ac_config_commands"; then
22030 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22033 cat >>$CONFIG_STATUS <<\_ACEOF
22036 \`$as_me' instantiates files from templates according to the
22037 current configuration.
22039 Usage: $0 [OPTIONS] [FILE]...
22041 -h, --help print this help, then exit
22042 -V, --version print version number, then exit
22043 -q, --quiet do not print progress messages
22044 -d, --debug don't remove temporary files
22045 --recheck update $as_me by reconfiguring in the same conditions
22046 --file=FILE[:TEMPLATE]
22047 instantiate the configuration file FILE
22048 --header=FILE[:TEMPLATE]
22049 instantiate the configuration header FILE
22051 Configuration files:
22054 Configuration headers:
22057 Configuration commands:
22060 Report bugs to <bug-autoconf@gnu.org>."
22063 cat >>$CONFIG_STATUS <<_ACEOF
22066 configured by $0, generated by GNU Autoconf 2.59,
22067 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22069 Copyright (C) 2003 Free Software Foundation, Inc.
22070 This config.status script is free software; the Free Software Foundation
22071 gives unlimited permission to copy, distribute and modify it."
22076 cat >>$CONFIG_STATUS <<\_ACEOF
22077 # If no file are specified by the user, then we need to provide default
22078 # value. By we need to know if files were specified by the user.
22084 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22085 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22093 *) # This is not an option, so the user has probably given explicit
22096 ac_need_defaults=false;;
22100 # Handling of the options.
22102 cat >>$CONFIG_STATUS <<\_ACEOF
22103 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22105 --version | --vers* | -V )
22106 echo "$ac_cs_version"; exit 0 ;;
22108 # Conflict between --help and --header
22109 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22110 Try \`$0 --help' for more information." >&5
22111 echo "$as_me: error: ambiguous option: $1
22112 Try \`$0 --help' for more information." >&2;}
22113 { (exit 1); exit 1; }; };;
22114 --help | --hel | -h )
22115 echo "$ac_cs_usage"; exit 0 ;;
22116 --debug | --d* | -d )
22118 --file | --fil | --fi | --f )
22120 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22121 ac_need_defaults=false;;
22122 --header | --heade | --head | --hea )
22124 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22125 ac_need_defaults=false;;
22126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22127 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22130 # This is an error.
22131 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22132 Try \`$0 --help' for more information." >&5
22133 echo "$as_me: error: unrecognized option: $1
22134 Try \`$0 --help' for more information." >&2;}
22135 { (exit 1); exit 1; }; } ;;
22137 *) ac_config_targets="$ac_config_targets $1" ;;
22143 ac_configure_extra_args=
22145 if $ac_cs_silent; then
22147 ac_configure_extra_args="$ac_configure_extra_args --silent"
22151 cat >>$CONFIG_STATUS <<_ACEOF
22152 if \$ac_cs_recheck; then
22153 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22154 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22163 cat >>$CONFIG_STATUS <<\_ACEOF
22164 for ac_config_target in $ac_config_targets
22166 case "$ac_config_target" in
22167 # Handling of arguments.
22168 "autoconf/Make.common" ) CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
22169 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22170 "scripts/startmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
22171 "scripts/stopmysql" ) CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
22172 "scripts/btraceback" ) CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
22173 "scripts/startit" ) CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
22174 "scripts/stopit" ) CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
22175 "scripts/bconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
22176 "scripts/gconsole" ) CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
22177 "scripts/bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
22178 "scripts/devel_bacula" ) CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
22179 "scripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
22180 "scripts/logrotate" ) CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
22181 "scripts/bacula.desktop.gnome1" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
22182 "scripts/bacula.desktop.gnome2" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
22183 "scripts/bacula.desktop.gnome1.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
22184 "scripts/bacula.desktop.gnome2.consolehelper" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
22185 "scripts/bacula.desktop.gnome1.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
22186 "scripts/bacula.desktop.gnome2.xsu" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
22187 "scripts/gnome-console.console_apps" ) CONFIG_FILES="$CONFIG_FILES scripts/gnome-console.console_apps" ;;
22188 "scripts/mtx-changer" ) CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
22189 "scripts/dvd-writepart" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-writepart" ;;
22190 "scripts/dvd-freespace" ) CONFIG_FILES="$CONFIG_FILES scripts/dvd-freespace" ;;
22191 "scripts/bacula-tray-monitor.desktop" ) CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
22192 "scripts/logwatch/Makefile" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
22193 "scripts/logwatch/logfile.bacula.conf" ) CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
22194 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22195 "src/host.h" ) CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
22196 "src/console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
22197 "src/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
22198 "src/gnome2-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/Makefile" ;;
22199 "src/gnome2-console/gnome-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/gnome2-console/gnome-console.conf" ;;
22200 "src/wx-console/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
22201 "src/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/wx-console/wx-console.conf" ;;
22202 "src/tray-monitor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
22203 "src/tray-monitor/tray-monitor.conf" ) CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
22204 "src/dird/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
22205 "src/dird/bacula-dir.conf" ) CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
22206 "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
22207 "src/stored/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
22208 "src/stored/bacula-sd.conf" ) CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
22209 "src/filed/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
22210 "src/filed/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
22211 "src/filed/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/filed/win32/Makefile" ;;
22212 "src/cats/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
22213 "src/cats/make_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
22214 "src/cats/delete_catalog_backup" ) CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
22215 "src/cats/create_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
22216 "src/cats/update_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
22217 "src/cats/make_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
22218 "src/cats/grant_postgresql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
22219 "src/cats/drop_postgresql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
22220 "src/cats/drop_postgresql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
22221 "src/cats/create_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
22222 "src/cats/update_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
22223 "src/cats/make_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
22224 "src/cats/grant_mysql_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
22225 "src/cats/drop_mysql_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
22226 "src/cats/drop_mysql_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
22227 "src/cats/create_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite_database" ;;
22228 "src/cats/update_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite_tables" ;;
22229 "src/cats/make_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite_tables" ;;
22230 "src/cats/grant_sqlite_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite_privileges" ;;
22231 "src/cats/drop_sqlite_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_tables" ;;
22232 "src/cats/drop_sqlite_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite_database" ;;
22233 "src/cats/create_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
22234 "src/cats/update_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
22235 "src/cats/make_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
22236 "src/cats/grant_sqlite3_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
22237 "src/cats/drop_sqlite3_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
22238 "src/cats/drop_sqlite3_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
22239 "src/cats/sqlite" ) CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
22240 "src/cats/mysql" ) CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
22241 "src/cats/create_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bdb_database" ;;
22242 "src/cats/update_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bdb_tables" ;;
22243 "src/cats/make_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bdb_tables" ;;
22244 "src/cats/grant_bdb_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bdb_privileges" ;;
22245 "src/cats/drop_bdb_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_tables" ;;
22246 "src/cats/drop_bdb_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bdb_database" ;;
22247 "src/cats/create_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
22248 "src/cats/update_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
22249 "src/cats/grant_bacula_privileges" ) CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
22250 "src/cats/make_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
22251 "src/cats/drop_bacula_tables" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
22252 "src/cats/drop_bacula_database" ) CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
22253 "src/findlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
22254 "src/tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
22255 "src/win32/winbacula.nsi" ) CONFIG_FILES="$CONFIG_FILES src/win32/winbacula.nsi" ;;
22256 "src/win32/baculafd/bacula-fd.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/baculafd/bacula-fd.conf" ;;
22257 "src/win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/Makefile" ;;
22258 "src/win32/console/bconsole.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/console/bconsole.conf" ;;
22259 "src/win32/wx-console/wx-console.conf" ) CONFIG_FILES="$CONFIG_FILES src/win32/wx-console/wx-console.conf" ;;
22260 "src/win32/pebuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/win32/pebuilder/Makefile" ;;
22261 "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
22262 "$PFILES" ) CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
22263 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
22264 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
22265 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22266 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22267 { (exit 1); exit 1; }; };;
22271 # If the user did not use the arguments to specify the items to instantiate,
22272 # then the envvar interface is used. Set only those that are not.
22273 # We use the long form for the default assignment because of an extremely
22274 # bizarre bug on SunOS 4.1.3.
22275 if $ac_need_defaults; then
22276 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22277 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22278 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22281 # Have a temporary directory for convenience. Make it in the build tree
22282 # simply because there is no reason to put it here, and in addition,
22283 # creating and moving files from /tmp can sometimes cause problems.
22284 # Create a temporary directory, and hook for its removal unless debugging.
22287 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22288 trap '{ (exit 1); exit 1; }' 1 2 13 15
22291 # Create a (secure) tmp directory for tmp files.
22294 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22295 test -n "$tmp" && test -d "$tmp"
22298 tmp=./confstat$$-$RANDOM
22299 (umask 077 && mkdir $tmp)
22302 echo "$me: cannot create a temporary directory in ." >&2
22303 { (exit 1); exit 1; }
22308 cat >>$CONFIG_STATUS <<_ACEOF
22311 # CONFIG_FILES section.
22314 # No need to generate the scripts if there are no CONFIG_FILES.
22315 # This happens for instance when ./config.status config.h
22316 if test -n "\$CONFIG_FILES"; then
22317 # Protect against being on the right side of a sed subst in config.status.
22318 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22319 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22320 s,@SHELL@,$SHELL,;t t
22321 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22322 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22323 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22324 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22325 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22326 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22327 s,@exec_prefix@,$exec_prefix,;t t
22328 s,@prefix@,$prefix,;t t
22329 s,@program_transform_name@,$program_transform_name,;t t
22330 s,@bindir@,$bindir,;t t
22331 s,@sbindir@,$sbindir,;t t
22332 s,@libexecdir@,$libexecdir,;t t
22333 s,@datadir@,$datadir,;t t
22334 s,@sysconfdir@,$sysconfdir,;t t
22335 s,@sharedstatedir@,$sharedstatedir,;t t
22336 s,@localstatedir@,$localstatedir,;t t
22337 s,@libdir@,$libdir,;t t
22338 s,@includedir@,$includedir,;t t
22339 s,@oldincludedir@,$oldincludedir,;t t
22340 s,@infodir@,$infodir,;t t
22341 s,@mandir@,$mandir,;t t
22342 s,@build_alias@,$build_alias,;t t
22343 s,@host_alias@,$host_alias,;t t
22344 s,@target_alias@,$target_alias,;t t
22345 s,@DEFS@,$DEFS,;t t
22346 s,@ECHO_C@,$ECHO_C,;t t
22347 s,@ECHO_N@,$ECHO_N,;t t
22348 s,@ECHO_T@,$ECHO_T,;t t
22349 s,@LIBS@,$LIBS,;t t
22350 s,@BUILD_DIR@,$BUILD_DIR,;t t
22351 s,@TRUEPRG@,$TRUEPRG,;t t
22352 s,@FALSEPRG@,$FALSEPRG,;t t
22353 s,@VERSION@,$VERSION,;t t
22354 s,@DATE@,$DATE,;t t
22355 s,@LSMDATE@,$LSMDATE,;t t
22357 s,@CFLAGS@,$CFLAGS,;t t
22358 s,@LDFLAGS@,$LDFLAGS,;t t
22359 s,@CPPFLAGS@,$CPPFLAGS,;t t
22360 s,@ac_ct_CC@,$ac_ct_CC,;t t
22361 s,@EXEEXT@,$EXEEXT,;t t
22362 s,@OBJEXT@,$OBJEXT,;t t
22364 s,@CXXFLAGS@,$CXXFLAGS,;t t
22365 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22367 s,@EGREP@,$EGREP,;t t
22368 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22369 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22370 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22371 s,@RANLIB@,$RANLIB,;t t
22372 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22377 s,@ECHO@,$ECHO,;t t
22381 s,@OPENSSL@,$OPENSSL,;t t
22384 s,@MKISOFS@,$MKISOFS,;t t
22385 s,@PYTHON@,$PYTHON,;t t
22386 s,@GROWISOFS@,$GROWISOFS,;t t
22387 s,@DVDRWMEDIAINFO@,$DVDRWMEDIAINFO,;t t
22388 s,@PKGCONFIG@,$PKGCONFIG,;t t
22389 s,@WXCONFIG@,$WXCONFIG,;t t
22390 s,@WXFLAGS@,$WXFLAGS,;t t
22391 s,@CDRECORD@,$CDRECORD,;t t
22392 s,@PIDOF@,$PIDOF,;t t
22394 s,@ARFLAGS@,$ARFLAGS,;t t
22395 s,@MAKE_SHELL@,$MAKE_SHELL,;t t
22396 s,@LOCAL_LIBS@,$LOCAL_LIBS,;t t
22397 s,@LOCAL_CFLAGS@,$LOCAL_CFLAGS,;t t
22398 s,@LOCAL_LDFLAGS@,$LOCAL_LDFLAGS,;t t
22399 s,@LOCAL_DEFS@,$LOCAL_DEFS,;t t
22400 s,@build@,$build,;t t
22401 s,@build_cpu@,$build_cpu,;t t
22402 s,@build_vendor@,$build_vendor,;t t
22403 s,@build_os@,$build_os,;t t
22404 s,@host@,$host,;t t
22405 s,@host_cpu@,$host_cpu,;t t
22406 s,@host_vendor@,$host_vendor,;t t
22407 s,@host_os@,$host_os,;t t
22408 s,@HAVE_SUN_OS_TRUE@,$HAVE_SUN_OS_TRUE,;t t
22409 s,@HAVE_SUN_OS_FALSE@,$HAVE_SUN_OS_FALSE,;t t
22410 s,@HAVE_OSF1_OS_TRUE@,$HAVE_OSF1_OS_TRUE,;t t
22411 s,@HAVE_OSF1_OS_FALSE@,$HAVE_OSF1_OS_FALSE,;t t
22412 s,@HAVE_AIX_OS_TRUE@,$HAVE_AIX_OS_TRUE,;t t
22413 s,@HAVE_AIX_OS_FALSE@,$HAVE_AIX_OS_FALSE,;t t
22414 s,@HAVE_HPUX_OS_TRUE@,$HAVE_HPUX_OS_TRUE,;t t
22415 s,@HAVE_HPUX_OS_FALSE@,$HAVE_HPUX_OS_FALSE,;t t
22416 s,@HAVE_LINUX_OS_TRUE@,$HAVE_LINUX_OS_TRUE,;t t
22417 s,@HAVE_LINUX_OS_FALSE@,$HAVE_LINUX_OS_FALSE,;t t
22418 s,@HAVE_FREEBSD_OS_TRUE@,$HAVE_FREEBSD_OS_TRUE,;t t
22419 s,@HAVE_FREEBSD_OS_FALSE@,$HAVE_FREEBSD_OS_FALSE,;t t
22420 s,@HAVE_NETBSD_OS_TRUE@,$HAVE_NETBSD_OS_TRUE,;t t
22421 s,@HAVE_NETBSD_OS_FALSE@,$HAVE_NETBSD_OS_FALSE,;t t
22422 s,@HAVE_OPENBSD_OS_TRUE@,$HAVE_OPENBSD_OS_TRUE,;t t
22423 s,@HAVE_OPENBSD_OS_FALSE@,$HAVE_OPENBSD_OS_FALSE,;t t
22424 s,@HAVE_BSDI_OS_TRUE@,$HAVE_BSDI_OS_TRUE,;t t
22425 s,@HAVE_BSDI_OS_FALSE@,$HAVE_BSDI_OS_FALSE,;t t
22426 s,@HAVE_SGI_OS_TRUE@,$HAVE_SGI_OS_TRUE,;t t
22427 s,@HAVE_SGI_OS_FALSE@,$HAVE_SGI_OS_FALSE,;t t
22428 s,@HAVE_IRIX_OS_TRUE@,$HAVE_IRIX_OS_TRUE,;t t
22429 s,@HAVE_IRIX_OS_FALSE@,$HAVE_IRIX_OS_FALSE,;t t
22430 s,@HAVE_DARWIN_OS_TRUE@,$HAVE_DARWIN_OS_TRUE,;t t
22431 s,@HAVE_DARWIN_OS_FALSE@,$HAVE_DARWIN_OS_FALSE,;t t
22432 s,@MSGFMT@,$MSGFMT,;t t
22433 s,@GNOME_INCLUDEDIR@,$GNOME_INCLUDEDIR,;t t
22434 s,@GNOMEUI_LIBS@,$GNOMEUI_LIBS,;t t
22435 s,@GNOME_LIBDIR@,$GNOME_LIBDIR,;t t
22436 s,@GNOME_LIBS@,$GNOME_LIBS,;t t
22437 s,@GNOME_DIR@,$GNOME_DIR,;t t
22438 s,@WXCONS_CPPFLAGS@,$WXCONS_CPPFLAGS,;t t
22439 s,@WXCONS_LDFLAGS@,$WXCONS_LDFLAGS,;t t
22440 s,@WX_DIR@,$WX_DIR,;t t
22441 s,@TRAY_MONITOR_CPPFLAGS@,$TRAY_MONITOR_CPPFLAGS,;t t
22442 s,@TRAY_MONITOR_LDFLAGS@,$TRAY_MONITOR_LDFLAGS,;t t
22443 s,@TRAY_MONITOR_DIR@,$TRAY_MONITOR_DIR,;t t
22444 s,@TTOOL_LDFLAGS@,$TTOOL_LDFLAGS,;t t
22445 s,@STATIC_FD@,$STATIC_FD,;t t
22446 s,@STATIC_SD@,$STATIC_SD,;t t
22447 s,@STATIC_DIR@,$STATIC_DIR,;t t
22448 s,@STATIC_CONS@,$STATIC_CONS,;t t
22449 s,@STATIC_GNOME_CONS@,$STATIC_GNOME_CONS,;t t
22450 s,@STATIC_WX_CONS@,$STATIC_WX_CONS,;t t
22451 s,@ALL_DIRS@,$ALL_DIRS,;t t
22452 s,@CONS_INC@,$CONS_INC,;t t
22453 s,@CONS_OBJ@,$CONS_OBJ,;t t
22454 s,@CONS_SRC@,$CONS_SRC,;t t
22455 s,@CONS_LIBS@,$CONS_LIBS,;t t
22456 s,@CONS_LDFLAGS@,$CONS_LDFLAGS,;t t
22457 s,@READLINE_SRC@,$READLINE_SRC,;t t
22458 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
22459 s,@PYTHON_INCDIR@,$PYTHON_INCDIR,;t t
22460 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
22461 s,@OPENSSL_INC@,$OPENSSL_INC,;t t
22462 s,@working_dir@,$working_dir,;t t
22463 s,@scriptdir@,$scriptdir,;t t
22464 s,@dump_email@,$dump_email,;t t
22465 s,@job_email@,$job_email,;t t
22466 s,@smtp_host@,$smtp_host,;t t
22467 s,@piddir@,$piddir,;t t
22468 s,@subsysdir@,$subsysdir,;t t
22469 s,@baseport@,$baseport,;t t
22470 s,@dir_port@,$dir_port,;t t
22471 s,@fd_port@,$fd_port,;t t
22472 s,@sd_port@,$sd_port,;t t
22473 s,@dir_password@,$dir_password,;t t
22474 s,@fd_password@,$fd_password,;t t
22475 s,@sd_password@,$sd_password,;t t
22476 s,@mon_dir_password@,$mon_dir_password,;t t
22477 s,@mon_fd_password@,$mon_fd_password,;t t
22478 s,@mon_sd_password@,$mon_sd_password,;t t
22479 s,@dir_user@,$dir_user,;t t
22480 s,@dir_group@,$dir_group,;t t
22481 s,@sd_user@,$sd_user,;t t
22482 s,@sd_group@,$sd_group,;t t
22483 s,@fd_user@,$fd_user,;t t
22484 s,@fd_group@,$fd_group,;t t
22485 s,@SBINPERM@,$SBINPERM,;t t
22486 s,@SQL_LFLAGS@,$SQL_LFLAGS,;t t
22487 s,@SQL_INCLUDE@,$SQL_INCLUDE,;t t
22488 s,@SQL_BINDIR@,$SQL_BINDIR,;t t
22489 s,@cats@,$cats,;t t
22490 s,@DB_NAME@,$DB_NAME,;t t
22491 s,@GETCONF@,$GETCONF,;t t
22492 s,@ac_ct_GETCONF@,$ac_ct_GETCONF,;t t
22493 s,@X_CFLAGS@,$X_CFLAGS,;t t
22494 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
22495 s,@X_LIBS@,$X_LIBS,;t t
22496 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
22497 s,@LIBOBJS@,$LIBOBJS,;t t
22498 s,@ALLOCA@,$ALLOCA,;t t
22499 s,@FDLIBS@,$FDLIBS,;t t
22500 s,@DEBUG@,$DEBUG,;t t
22501 s,@DINCLUDE@,$DINCLUDE,;t t
22502 s,@DLIB@,$DLIB,;t t
22503 s,@DB_LIBS@,$DB_LIBS,;t t
22504 s,@WCFLAGS@,$WCFLAGS,;t t
22505 s,@WLDFLAGS@,$WLDFLAGS,;t t
22506 s,@OBJLIST@,$OBJLIST,;t t
22507 s,@hostname@,$hostname,;t t
22508 s,@TAPEDRIVE@,$TAPEDRIVE,;t t
22509 s,@PSCMD@,$PSCMD,;t t
22510 s,@WIN32@,$WIN32,;t t
22511 s,@MACOSX@,$MACOSX,;t t
22512 s,@DISTNAME@,$DISTNAME,;t t
22513 s,@DISTVER@,$DISTVER,;t t
22514 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22515 /@MCOMMON@/r $MCOMMON
22521 cat >>$CONFIG_STATUS <<\_ACEOF
22522 # Split the substitutions into bite-sized pieces for seds with
22523 # small command number limits, like on Digital OSF/1 and HP-UX.
22524 ac_max_sed_lines=48
22525 ac_sed_frag=1 # Number of current file.
22526 ac_beg=1 # First line for current file.
22527 ac_end=$ac_max_sed_lines # Line after last line for current file.
22530 while $ac_more_lines; do
22531 if test $ac_beg -gt 1; then
22532 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22534 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22536 if test ! -s $tmp/subs.frag; then
22537 ac_more_lines=false
22539 # The purpose of the label and of the branching condition is to
22540 # speed up the sed processing (if there are no `@' at all, there
22541 # is no need to browse any of the substitutions).
22542 # These are the two extra sed commands mentioned above.
22544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22545 if test -z "$ac_sed_cmds"; then
22546 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22548 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22550 ac_sed_frag=`expr $ac_sed_frag + 1`
22552 ac_end=`expr $ac_end + $ac_max_sed_lines`
22555 if test -z "$ac_sed_cmds"; then
22558 fi # test -n "$CONFIG_FILES"
22561 cat >>$CONFIG_STATUS <<\_ACEOF
22562 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22563 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22565 - | *:- | *:-:* ) # input from stdin
22567 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22568 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22569 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22570 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22571 * ) ac_file_in=$ac_file.in ;;
22574 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22575 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22576 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22577 X"$ac_file" : 'X\(//\)[^/]' \| \
22578 X"$ac_file" : 'X\(//\)$' \| \
22579 X"$ac_file" : 'X\(/\)' \| \
22580 . : '\(.\)' 2>/dev/null ||
22582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22583 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22584 /^X\(\/\/\)$/{ s//\1/; q; }
22585 /^X\(\/\).*/{ s//\1/; q; }
22587 { if $as_mkdir_p; then
22592 while test ! -d "$as_dir"; do
22593 as_dirs="$as_dir $as_dirs"
22594 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22595 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22596 X"$as_dir" : 'X\(//\)[^/]' \| \
22597 X"$as_dir" : 'X\(//\)$' \| \
22598 X"$as_dir" : 'X\(/\)' \| \
22599 . : '\(.\)' 2>/dev/null ||
22601 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22602 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22603 /^X\(\/\/\)$/{ s//\1/; q; }
22604 /^X\(\/\).*/{ s//\1/; q; }
22607 test ! -n "$as_dirs" || mkdir $as_dirs
22608 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22609 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22610 { (exit 1); exit 1; }; }; }
22614 if test "$ac_dir" != .; then
22615 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22616 # A "../" for each directory in $ac_dir_suffix.
22617 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22619 ac_dir_suffix= ac_top_builddir=
22623 .) # No --srcdir option. We are building in place.
22625 if test -z "$ac_top_builddir"; then
22628 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22630 [\\/]* | ?:[\\/]* ) # Absolute path.
22631 ac_srcdir=$srcdir$ac_dir_suffix;
22632 ac_top_srcdir=$srcdir ;;
22633 *) # Relative path.
22634 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22635 ac_top_srcdir=$ac_top_builddir$srcdir ;;
22638 # Do not use `cd foo && pwd` to compute absolute paths, because
22639 # the directories may not exist.
22641 .) ac_abs_builddir="$ac_dir";;
22644 .) ac_abs_builddir=`pwd`;;
22645 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22646 *) ac_abs_builddir=`pwd`/"$ac_dir";;
22649 case $ac_abs_builddir in
22650 .) ac_abs_top_builddir=${ac_top_builddir}.;;
22652 case ${ac_top_builddir}. in
22653 .) ac_abs_top_builddir=$ac_abs_builddir;;
22654 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22655 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22658 case $ac_abs_builddir in
22659 .) ac_abs_srcdir=$ac_srcdir;;
22662 .) ac_abs_srcdir=$ac_abs_builddir;;
22663 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22664 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22667 case $ac_abs_builddir in
22668 .) ac_abs_top_srcdir=$ac_top_srcdir;;
22670 case $ac_top_srcdir in
22671 .) ac_abs_top_srcdir=$ac_abs_builddir;;
22672 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22673 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
22679 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22680 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22683 if test x"$ac_file" != x-; then
22684 { echo "$as_me:$LINENO: creating $ac_file" >&5
22685 echo "$as_me: creating $ac_file" >&6;}
22688 # Let's still pretend it is `configure' which instantiates (i.e., don't
22689 # use $as_me), people would be surprised to read:
22690 # /* config.h. Generated by config.status. */
22691 if test x"$ac_file" = x-; then
22694 configure_input="$ac_file. "
22696 configure_input=$configure_input"Generated from `echo $ac_file_in |
22697 sed 's,.*/,,'` by configure."
22699 # First look for the input files in the build tree, otherwise in the
22701 ac_file_inputs=`IFS=:
22702 for f in $ac_file_in; do
22704 -) echo $tmp/stdin ;;
22706 # Absolute (can't be DOS-style, as IFS=:)
22707 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22708 echo "$as_me: error: cannot find input file: $f" >&2;}
22709 { (exit 1); exit 1; }; }
22712 if test -f "$f"; then
22715 elif test -f "$srcdir/$f"; then
22720 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22721 echo "$as_me: error: cannot find input file: $f" >&2;}
22722 { (exit 1); exit 1; }; }
22725 done` || { (exit 1); exit 1; }
22727 cat >>$CONFIG_STATUS <<_ACEOF
22731 cat >>$CONFIG_STATUS <<\_ACEOF
22733 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22734 s,@configure_input@,$configure_input,;t t
22735 s,@srcdir@,$ac_srcdir,;t t
22736 s,@abs_srcdir@,$ac_abs_srcdir,;t t
22737 s,@top_srcdir@,$ac_top_srcdir,;t t
22738 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22739 s,@builddir@,$ac_builddir,;t t
22740 s,@abs_builddir@,$ac_abs_builddir,;t t
22741 s,@top_builddir@,$ac_top_builddir,;t t
22742 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22743 s,@INSTALL@,$ac_INSTALL,;t t
22744 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22746 if test x"$ac_file" != x-; then
22747 mv $tmp/out $ac_file
22755 cat >>$CONFIG_STATUS <<\_ACEOF
22758 # CONFIG_HEADER section.
22761 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22762 # NAME is the cpp macro being defined and VALUE is the value it is being given.
22764 # ac_d sets the value in "#define NAME VALUE" lines.
22765 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22766 ac_dB='[ ].*$,\1#\2'
22769 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22770 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22771 ac_uB='$,\1#\2define\3'
22775 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22776 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22778 - | *:- | *:-:* ) # input from stdin
22780 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22781 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22782 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22783 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22784 * ) ac_file_in=$ac_file.in ;;
22787 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22788 echo "$as_me: creating $ac_file" >&6;}
22790 # First look for the input files in the build tree, otherwise in the
22792 ac_file_inputs=`IFS=:
22793 for f in $ac_file_in; do
22795 -) echo $tmp/stdin ;;
22797 # Absolute (can't be DOS-style, as IFS=:)
22798 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22799 echo "$as_me: error: cannot find input file: $f" >&2;}
22800 { (exit 1); exit 1; }; }
22801 # Do quote $f, to prevent DOS paths from being IFS'd.
22804 if test -f "$f"; then
22807 elif test -f "$srcdir/$f"; then
22812 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22813 echo "$as_me: error: cannot find input file: $f" >&2;}
22814 { (exit 1); exit 1; }; }
22817 done` || { (exit 1); exit 1; }
22818 # Remove the trailing spaces.
22819 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22823 # Transform confdefs.h into two sed scripts, `conftest.defines' and
22824 # `conftest.undefs', that substitutes the proper values into
22825 # config.h.in to produce config.h. The first handles `#define'
22826 # templates, and the second `#undef' templates.
22827 # And first: Protect against being on the right side of a sed subst in
22828 # config.status. Protect against being in an unquoted here document
22829 # in config.status.
22830 rm -f conftest.defines conftest.undefs
22831 # Using a here document instead of a string reduces the quoting nightmare.
22832 # Putting comments in sed scripts is not portable.
22834 # `end' is used to avoid that the second main sed command (meant for
22835 # 0-ary CPP macros) applies to n-ary macro definitions.
22836 # See the Autoconf documentation for `clear'.
22837 cat >confdef2sed.sed <<\_ACEOF
22842 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22844 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22847 # If some macros were called several times there might be several times
22848 # the same #defines, which is useless. Nevertheless, we may not want to
22849 # sort them, since we want the *last* AC-DEFINE to be honored.
22850 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22851 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22852 rm -f confdef2sed.sed
22854 # This sed command replaces #undef with comments. This is necessary, for
22855 # example, in the case of _POSIX_SOURCE, which is predefined and required
22856 # on some systems where configure will not decide to define it.
22857 cat >>conftest.undefs <<\_ACEOF
22858 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
22861 # Break up conftest.defines because some shells have a limit on the size
22862 # of here documents, and old seds have small limits too (100 cmds).
22863 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22864 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22865 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22866 echo ' :' >>$CONFIG_STATUS
22867 rm -f conftest.tail
22868 while grep . conftest.defines >/dev/null
22870 # Write a limited-size here document to $tmp/defines.sed.
22871 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22872 # Speed up: don't consider the non `#define' lines.
22873 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22874 # Work around the forget-to-reset-the-flag bug.
22875 echo 't clr' >>$CONFIG_STATUS
22876 echo ': clr' >>$CONFIG_STATUS
22877 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
22879 sed -f $tmp/defines.sed $tmp/in >$tmp/out
22881 mv $tmp/out $tmp/in
22883 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
22884 rm -f conftest.defines
22885 mv conftest.tail conftest.defines
22887 rm -f conftest.defines
22888 echo ' fi # grep' >>$CONFIG_STATUS
22889 echo >>$CONFIG_STATUS
22891 # Break up conftest.undefs because some shells have a limit on the size
22892 # of here documents, and old seds have small limits too (100 cmds).
22893 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22894 rm -f conftest.tail
22895 while grep . conftest.undefs >/dev/null
22897 # Write a limited-size here document to $tmp/undefs.sed.
22898 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22899 # Speed up: don't consider the non `#undef'
22900 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22901 # Work around the forget-to-reset-the-flag bug.
22902 echo 't clr' >>$CONFIG_STATUS
22903 echo ': clr' >>$CONFIG_STATUS
22904 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22906 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22908 mv $tmp/out $tmp/in
22910 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22911 rm -f conftest.undefs
22912 mv conftest.tail conftest.undefs
22914 rm -f conftest.undefs
22916 cat >>$CONFIG_STATUS <<\_ACEOF
22917 # Let's still pretend it is `configure' which instantiates (i.e., don't
22918 # use $as_me), people would be surprised to read:
22919 # /* config.h. Generated by config.status. */
22920 if test x"$ac_file" = x-; then
22921 echo "/* Generated by configure. */" >$tmp/config.h
22923 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22925 cat $tmp/in >>$tmp/config.h
22927 if test x"$ac_file" != x-; then
22928 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
22929 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22930 echo "$as_me: $ac_file is unchanged" >&6;}
22932 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22933 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22934 X"$ac_file" : 'X\(//\)[^/]' \| \
22935 X"$ac_file" : 'X\(//\)$' \| \
22936 X"$ac_file" : 'X\(/\)' \| \
22937 . : '\(.\)' 2>/dev/null ||
22939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22940 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22941 /^X\(\/\/\)$/{ s//\1/; q; }
22942 /^X\(\/\).*/{ s//\1/; q; }
22944 { if $as_mkdir_p; then
22949 while test ! -d "$as_dir"; do
22950 as_dirs="$as_dir $as_dirs"
22951 as_dir=`(dirname "$as_dir") 2>/dev/null ||
22952 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22953 X"$as_dir" : 'X\(//\)[^/]' \| \
22954 X"$as_dir" : 'X\(//\)$' \| \
22955 X"$as_dir" : 'X\(/\)' \| \
22956 . : '\(.\)' 2>/dev/null ||
22958 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22959 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22960 /^X\(\/\/\)$/{ s//\1/; q; }
22961 /^X\(\/\).*/{ s//\1/; q; }
22964 test ! -n "$as_dirs" || mkdir $as_dirs
22965 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22966 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22967 { (exit 1); exit 1; }; }; }
22970 mv $tmp/config.h $ac_file
22974 rm -f $tmp/config.h
22978 cat >>$CONFIG_STATUS <<\_ACEOF
22981 # CONFIG_COMMANDS section.
22983 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
22984 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
22985 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
22986 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
22987 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22988 X"$ac_dest" : 'X\(//\)[^/]' \| \
22989 X"$ac_dest" : 'X\(//\)$' \| \
22990 X"$ac_dest" : 'X\(/\)' \| \
22991 . : '\(.\)' 2>/dev/null ||
22993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22994 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22995 /^X\(\/\/\)$/{ s//\1/; q; }
22996 /^X\(\/\).*/{ s//\1/; q; }
22998 { if $as_mkdir_p; then
23003 while test ! -d "$as_dir"; do
23004 as_dirs="$as_dir $as_dirs"
23005 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23006 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23007 X"$as_dir" : 'X\(//\)[^/]' \| \
23008 X"$as_dir" : 'X\(//\)$' \| \
23009 X"$as_dir" : 'X\(/\)' \| \
23010 . : '\(.\)' 2>/dev/null ||
23012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23013 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23014 /^X\(\/\/\)$/{ s//\1/; q; }
23015 /^X\(\/\).*/{ s//\1/; q; }
23018 test ! -n "$as_dirs" || mkdir $as_dirs
23019 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23020 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23021 { (exit 1); exit 1; }; }; }
23025 if test "$ac_dir" != .; then
23026 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23027 # A "../" for each directory in $ac_dir_suffix.
23028 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23030 ac_dir_suffix= ac_top_builddir=
23034 .) # No --srcdir option. We are building in place.
23036 if test -z "$ac_top_builddir"; then
23039 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23041 [\\/]* | ?:[\\/]* ) # Absolute path.
23042 ac_srcdir=$srcdir$ac_dir_suffix;
23043 ac_top_srcdir=$srcdir ;;
23044 *) # Relative path.
23045 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23046 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23049 # Do not use `cd foo && pwd` to compute absolute paths, because
23050 # the directories may not exist.
23052 .) ac_abs_builddir="$ac_dir";;
23055 .) ac_abs_builddir=`pwd`;;
23056 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23057 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23060 case $ac_abs_builddir in
23061 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23063 case ${ac_top_builddir}. in
23064 .) ac_abs_top_builddir=$ac_abs_builddir;;
23065 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23066 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23069 case $ac_abs_builddir in
23070 .) ac_abs_srcdir=$ac_srcdir;;
23073 .) ac_abs_srcdir=$ac_abs_builddir;;
23074 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23075 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23078 case $ac_abs_builddir in
23079 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23081 case $ac_top_srcdir in
23082 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23083 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23084 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23089 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23090 echo "$as_me: executing $ac_dest commands" >&6;}
23092 default ) (echo "Doing make of dependencies"; ${MAKE:-make} depend;)
23098 cat >>$CONFIG_STATUS <<\_ACEOF
23100 { (exit 0); exit 0; }
23102 chmod +x $CONFIG_STATUS
23103 ac_clean_files=$ac_clean_files_save
23106 # configure is writing to config.log, and then calls config.status.
23107 # config.status does its own redirection, appending to config.log.
23108 # Unfortunately, on DOS this fails, as config.log is still kept open
23109 # by configure, so config.status won't be able to write to it; its
23110 # output is simply discarded. So we exec the FD to /dev/null,
23111 # effectively closing config.log, so it can be properly (re)opened and
23112 # appended to by config.status. When coming back to configure, we
23113 # need to make the FD available again.
23114 if test "$no_create" != yes; then
23116 ac_config_status_args=
23117 test "$silent" = yes &&
23118 ac_config_status_args="$ac_config_status_args --quiet"
23120 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23122 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23123 # would make configure fail if this is the last instruction.
23124 $ac_cs_success || { (exit 1); exit 1; }
23129 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
23130 chmod 755 dvd-writepart dvd-freespace
23131 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
23136 chmod 755 $c/create_bacula_database $c/update_bacula_tables $c/make_bacula_tables
23137 chmod 755 $c/grant_bacula_privileges $c/drop_bacula_tables $c/drop_bacula_database
23139 chmod 755 $c/create_bdb_database $c/update_bdb_tables $c/make_bdb_tables
23140 chmod 755 $c/grant_bdb_privileges $c/drop_bdb_tables $c/drop_bdb_database
23142 chmod 755 $c/create_mysql_database $c/update_mysql_tables $c/make_mysql_tables
23143 chmod 755 $c/grant_mysql_privileges $c/drop_mysql_tables $c/drop_mysql_database
23145 chmod 755 $c/create_sqlite_database $c/update_sqlite_tables $c/make_sqlite_tables
23146 chmod 755 $c/grant_sqlite_privileges $c/drop_sqlite_tables $c/drop_sqlite_database
23148 chmod 755 $c/create_postgresql_database $c/update_postgresql_tables $c/make_postgresql_tables
23149 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables $c/drop_postgresql_database
23151 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup
23152 chmod 755 $c/sqlite
23155 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
23156 largefile_support="yes"
23160 # A whole lot of hand springs to get the compiler version.
23161 # This is because gcc changed the output in version 3.0
23163 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23164 if test "x${CCVERSION}" = "x" ; then
23165 CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23167 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
23168 if test x"${CXXVERSION}" = x ; then
23169 CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
23172 if test "x${subsysdir}" = "x${sbindir}" ; then
23175 echo "You have set --sbindir and --with-subsys-dir"
23176 echo " both equal to: ${subsysdir} "
23177 echo " This is not permitted. Please reconfigure."
23179 echo "Aborting configuration ..."
23185 if test "x${db_name}" = "xInternal" ; then
23188 echo "You have not specified either --enable-client-only or one of the"
23189 echo " supported databases: MySQL, PostgreSQL, SQLite3 or SQLite."
23190 echo " This is not permitted. Please reconfigure."
23192 echo "Aborting the configuration ..."
23199 Configuration on `date`:
23201 Host: $host -- ${DISTNAME} ${DISTVER}
23202 Bacula version: ${VERSION} (${DATE})
23203 Source code location: ${srcdir}
23204 Install binaries: ${sbindir}
23205 Install config files: ${sysconfdir}
23206 Scripts directory: ${scriptdir}
23207 Working directory: ${working_dir}
23208 PID directory: ${piddir}
23209 Subsys directory: ${subsysdir}
23210 Man directory: ${mandir}
23211 C Compiler: ${CC} ${CCVERSION}
23212 C++ Compiler: ${CXX} ${CXXVERSION}
23213 Compiler flags: ${WCFLAGS} ${CFLAGS}
23214 Linker flags: ${WLDFLAGS} ${LDFLAGS}
23216 Statically Linked Tools: ${support_static_tools}
23217 Statically Linked FD: ${support_static_fd}
23218 Statically Linked SD: ${support_static_sd}
23219 Statically Linked DIR: ${support_static_dir}
23220 Statically Linked CONS: ${support_static_cons}
23221 Database type: ${db_name}
23222 Database lib: ${DB_LIBS}
23224 Job Output Email: ${job_email}
23225 Traceback Email: ${dump_email}
23226 SMTP Host Address: ${smtp_host}
23228 Director Port: ${dir_port}
23229 File daemon Port: ${fd_port}
23230 Storage daemon Port: ${sd_port}
23232 Director User: ${dir_user}
23233 Director Group: ${dir_group}
23234 Storage Daemon User: ${sd_user}
23235 Storage DaemonGroup: ${sd_group}
23236 File Daemon User: ${fd_user}
23237 File Daemon Group: ${fd_group}
23239 SQL binaries Directory ${SQL_BINDIR}
23241 Large file support: $largefile_support
23242 Bacula conio support: ${got_conio} ${CONS_LIBS}
23243 readline support: ${got_readline} ${PRTREADLINE_SRC}
23244 TCP Wrappers support: ${TCPW_MSG}
23245 TLS support: ${support_tls}
23246 ZLIB support: ${have_zlib}
23247 enable-smartalloc: ${support_smartalloc}
23248 enable-gnome: ${support_gnome} ${gnome_version}
23249 enable-wx-console: ${support_wx_console} ${wx_version}
23250 enable-tray-monitor: ${support_tray_monitor}
23251 client-only: ${build_client_only}
23252 ACL support: ${have_acl}
23253 Python support: ${support_python} ${PYTHON_LIBS}